1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for c-ares 1.34.5. 4# 5# Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and c-ares mailing 279$0: list: http://lists.haxx.se/listinfo/c-ares about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='c-ares' 623PACKAGE_TARNAME='c-ares' 624PACKAGE_VERSION='1.34.5' 625PACKAGE_STRING='c-ares 1.34.5' 626PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares' 627PACKAGE_URL='' 628 629ac_unique_file="src/lib/ares_ipv6.h" 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665LIBOBJS 666BUILD_SUBDIRS 667PKGCONFIG_CFLAGS 668AM_CPPFLAGS 669AM_CFLAGS 670BUILD_TESTS_FALSE 671BUILD_TESTS_TRUE 672GMOCK112_LIBS 673GMOCK112_CFLAGS 674GMOCK_LIBS 675GMOCK_CFLAGS 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CARES_PRIVATE_LIBS 680PTHREAD_CFLAGS 681PTHREAD_LIBS 682PTHREAD_CXX 683PTHREAD_CC 684ax_pthread_config 685CPP 686CARES_SYMBOL_HIDING_CFLAG 687CARES_SYMBOL_HIDING_FALSE 688CARES_SYMBOL_HIDING_TRUE 689CARES_USE_NO_UNDEFINED_FALSE 690CARES_USE_NO_UNDEFINED_TRUE 691CODE_COVERAGE_LIBS 692CODE_COVERAGE_CXXFLAGS 693CODE_COVERAGE_CFLAGS 694CODE_COVERAGE_CPPFLAGS 695GENHTML 696LCOV 697GCOV 698ifnGNUmake 699ifGNUmake 700CODE_COVERAGE_ENABLED 701CODE_COVERAGE_ENABLED_FALSE 702CODE_COVERAGE_ENABLED_TRUE 703MAINT 704MAINTAINER_MODE_FALSE 705MAINTAINER_MODE_TRUE 706CARES_RANDOM_FILE 707CXXCPP 708LT_SYS_LIBRARY_PATH 709OTOOL64 710OTOOL 711LIPO 712NMEDIT 713DSYMUTIL 714MANIFEST_TOOL 715RANLIB 716ac_ct_AR 717AR 718FILECMD 719LN_S 720NM 721ac_ct_DUMPBIN 722DUMPBIN 723LD 724FGREP 725EGREP 726GREP 727SED 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736LIBTOOL 737OBJDUMP 738DLLTOOL 739AS 740AM_BACKSLASH 741AM_DEFAULT_VERBOSITY 742AM_DEFAULT_V 743AM_V 744CSCOPE 745ETAGS 746CTAGS 747am__fastdepCXX_FALSE 748am__fastdepCXX_TRUE 749CXXDEPMODE 750am__fastdepCC_FALSE 751am__fastdepCC_TRUE 752CCDEPMODE 753am__nodep 754AMDEPBACKSLASH 755AMDEP_FALSE 756AMDEP_TRUE 757am__include 758DEPDIR 759am__untar 760am__tar 761AMTAR 762am__leading_dot 763SET_MAKE 764AWK 765mkdir_p 766MKDIR_P 767INSTALL_STRIP_PROGRAM 768STRIP 769install_sh 770MAKEINFO 771AUTOHEADER 772AUTOMAKE 773AUTOCONF 774ACLOCAL 775VERSION 776PACKAGE 777CYGPATH_W 778am__isrc 779INSTALL_DATA 780INSTALL_SCRIPT 781INSTALL_PROGRAM 782HAVE_CXX14 783ac_ct_CXX 784CXXFLAGS 785CXX 786OBJEXT 787EXEEXT 788ac_ct_CC 789CPPFLAGS 790LDFLAGS 791CFLAGS 792CC 793CARES_VERSION_INFO 794target_alias 795host_alias 796build_alias 797LIBS 798ECHO_T 799ECHO_N 800ECHO_C 801DEFS 802mandir 803localedir 804libdir 805psdir 806pdfdir 807dvidir 808htmldir 809infodir 810docdir 811oldincludedir 812includedir 813runstatedir 814localstatedir 815sharedstatedir 816sysconfdir 817datadir 818datarootdir 819libexecdir 820sbindir 821bindir 822program_transform_name 823prefix 824exec_prefix 825PACKAGE_URL 826PACKAGE_BUGREPORT 827PACKAGE_STRING 828PACKAGE_VERSION 829PACKAGE_TARNAME 830PACKAGE_NAME 831PATH_SEPARATOR 832SHELL 833am__quote' 834ac_subst_files='' 835ac_user_opts=' 836enable_option_checking 837enable_dependency_tracking 838enable_silent_rules 839enable_shared 840enable_static 841with_pic 842enable_fast_install 843with_aix_soname 844with_gnu_ld 845with_sysroot 846enable_libtool_lock 847enable_warnings 848enable_symbol_hiding 849enable_tests 850enable_cares_threads 851with_random 852enable_maintainer_mode 853with_gcov 854enable_code_coverage 855enable_largefile 856enable_libgcc 857enable_tests_crossbuild 858' 859 ac_precious_vars='build_alias 860host_alias 861target_alias 862CC 863CFLAGS 864LDFLAGS 865LIBS 866CPPFLAGS 867CXX 868CXXFLAGS 869CCC 870LT_SYS_LIBRARY_PATH 871CXXCPP 872CPP 873PKG_CONFIG 874PKG_CONFIG_PATH 875PKG_CONFIG_LIBDIR 876GMOCK_CFLAGS 877GMOCK_LIBS 878GMOCK112_CFLAGS 879GMOCK112_LIBS' 880 881 882# Initialize some variables set by options. 883ac_init_help= 884ac_init_version=false 885ac_unrecognized_opts= 886ac_unrecognized_sep= 887# The variables have the same names as the options, with 888# dashes changed to underlines. 889cache_file=/dev/null 890exec_prefix=NONE 891no_create= 892no_recursion= 893prefix=NONE 894program_prefix=NONE 895program_suffix=NONE 896program_transform_name=s,x,x, 897silent= 898site= 899srcdir= 900verbose= 901x_includes=NONE 902x_libraries=NONE 903 904# Installation directory options. 905# These are left unexpanded so users can "make install exec_prefix=/foo" 906# and all the variables that are supposed to be based on exec_prefix 907# by default will actually change. 908# Use braces instead of parens because sh, perl, etc. also accept them. 909# (The list follows the same order as the GNU Coding Standards.) 910bindir='${exec_prefix}/bin' 911sbindir='${exec_prefix}/sbin' 912libexecdir='${exec_prefix}/libexec' 913datarootdir='${prefix}/share' 914datadir='${datarootdir}' 915sysconfdir='${prefix}/etc' 916sharedstatedir='${prefix}/com' 917localstatedir='${prefix}/var' 918runstatedir='${localstatedir}/run' 919includedir='${prefix}/include' 920oldincludedir='/usr/include' 921docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 922infodir='${datarootdir}/info' 923htmldir='${docdir}' 924dvidir='${docdir}' 925pdfdir='${docdir}' 926psdir='${docdir}' 927libdir='${exec_prefix}/lib' 928localedir='${datarootdir}/locale' 929mandir='${datarootdir}/man' 930 931ac_prev= 932ac_dashdash= 933for ac_option 934do 935 # If the previous option needs an argument, assign it. 936 if test -n "$ac_prev"; then 937 eval $ac_prev=\$ac_option 938 ac_prev= 939 continue 940 fi 941 942 case $ac_option in 943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 944 *=) ac_optarg= ;; 945 *) ac_optarg=yes ;; 946 esac 947 948 case $ac_dashdash$ac_option in 949 --) 950 ac_dashdash=yes ;; 951 952 -bindir | --bindir | --bindi | --bind | --bin | --bi) 953 ac_prev=bindir ;; 954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 955 bindir=$ac_optarg ;; 956 957 -build | --build | --buil | --bui | --bu) 958 ac_prev=build_alias ;; 959 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 960 build_alias=$ac_optarg ;; 961 962 -cache-file | --cache-file | --cache-fil | --cache-fi \ 963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 964 ac_prev=cache_file ;; 965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 967 cache_file=$ac_optarg ;; 968 969 --config-cache | -C) 970 cache_file=config.cache ;; 971 972 -datadir | --datadir | --datadi | --datad) 973 ac_prev=datadir ;; 974 -datadir=* | --datadir=* | --datadi=* | --datad=*) 975 datadir=$ac_optarg ;; 976 977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 978 | --dataroo | --dataro | --datar) 979 ac_prev=datarootdir ;; 980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 982 datarootdir=$ac_optarg ;; 983 984 -disable-* | --disable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: \`$ac_useropt'" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=no ;; 999 1000 -docdir | --docdir | --docdi | --doc | --do) 1001 ac_prev=docdir ;; 1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1003 docdir=$ac_optarg ;; 1004 1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1006 ac_prev=dvidir ;; 1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1008 dvidir=$ac_optarg ;; 1009 1010 -enable-* | --enable-*) 1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1014 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1015 ac_useropt_orig=$ac_useropt 1016 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1017 case $ac_user_opts in 1018 *" 1019"enable_$ac_useropt" 1020"*) ;; 1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1022 ac_unrecognized_sep=', ';; 1023 esac 1024 eval enable_$ac_useropt=\$ac_optarg ;; 1025 1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1028 | --exec | --exe | --ex) 1029 ac_prev=exec_prefix ;; 1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1032 | --exec=* | --exe=* | --ex=*) 1033 exec_prefix=$ac_optarg ;; 1034 1035 -gas | --gas | --ga | --g) 1036 # Obsolete; use --with-gas. 1037 with_gas=yes ;; 1038 1039 -help | --help | --hel | --he | -h) 1040 ac_init_help=long ;; 1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1042 ac_init_help=recursive ;; 1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1044 ac_init_help=short ;; 1045 1046 -host | --host | --hos | --ho) 1047 ac_prev=host_alias ;; 1048 -host=* | --host=* | --hos=* | --ho=*) 1049 host_alias=$ac_optarg ;; 1050 1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1052 ac_prev=htmldir ;; 1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1054 | --ht=*) 1055 htmldir=$ac_optarg ;; 1056 1057 -includedir | --includedir | --includedi | --included | --include \ 1058 | --includ | --inclu | --incl | --inc) 1059 ac_prev=includedir ;; 1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1061 | --includ=* | --inclu=* | --incl=* | --inc=*) 1062 includedir=$ac_optarg ;; 1063 1064 -infodir | --infodir | --infodi | --infod | --info | --inf) 1065 ac_prev=infodir ;; 1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1067 infodir=$ac_optarg ;; 1068 1069 -libdir | --libdir | --libdi | --libd) 1070 ac_prev=libdir ;; 1071 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1072 libdir=$ac_optarg ;; 1073 1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1075 | --libexe | --libex | --libe) 1076 ac_prev=libexecdir ;; 1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1078 | --libexe=* | --libex=* | --libe=*) 1079 libexecdir=$ac_optarg ;; 1080 1081 -localedir | --localedir | --localedi | --localed | --locale) 1082 ac_prev=localedir ;; 1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1084 localedir=$ac_optarg ;; 1085 1086 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1087 | --localstate | --localstat | --localsta | --localst | --locals) 1088 ac_prev=localstatedir ;; 1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1091 localstatedir=$ac_optarg ;; 1092 1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1094 ac_prev=mandir ;; 1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1096 mandir=$ac_optarg ;; 1097 1098 -nfp | --nfp | --nf) 1099 # Obsolete; use --without-fp. 1100 with_fp=no ;; 1101 1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1103 | --no-cr | --no-c | -n) 1104 no_create=yes ;; 1105 1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1108 no_recursion=yes ;; 1109 1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1112 | --oldin | --oldi | --old | --ol | --o) 1113 ac_prev=oldincludedir ;; 1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1117 oldincludedir=$ac_optarg ;; 1118 1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1120 ac_prev=prefix ;; 1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1122 prefix=$ac_optarg ;; 1123 1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1125 | --program-pre | --program-pr | --program-p) 1126 ac_prev=program_prefix ;; 1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1129 program_prefix=$ac_optarg ;; 1130 1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1132 | --program-suf | --program-su | --program-s) 1133 ac_prev=program_suffix ;; 1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1136 program_suffix=$ac_optarg ;; 1137 1138 -program-transform-name | --program-transform-name \ 1139 | --program-transform-nam | --program-transform-na \ 1140 | --program-transform-n | --program-transform- \ 1141 | --program-transform | --program-transfor \ 1142 | --program-transfo | --program-transf \ 1143 | --program-trans | --program-tran \ 1144 | --progr-tra | --program-tr | --program-t) 1145 ac_prev=program_transform_name ;; 1146 -program-transform-name=* | --program-transform-name=* \ 1147 | --program-transform-nam=* | --program-transform-na=* \ 1148 | --program-transform-n=* | --program-transform-=* \ 1149 | --program-transform=* | --program-transfor=* \ 1150 | --program-transfo=* | --program-transf=* \ 1151 | --program-trans=* | --program-tran=* \ 1152 | --progr-tra=* | --program-tr=* | --program-t=*) 1153 program_transform_name=$ac_optarg ;; 1154 1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1156 ac_prev=pdfdir ;; 1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1158 pdfdir=$ac_optarg ;; 1159 1160 -psdir | --psdir | --psdi | --psd | --ps) 1161 ac_prev=psdir ;; 1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1163 psdir=$ac_optarg ;; 1164 1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1166 | -silent | --silent | --silen | --sile | --sil) 1167 silent=yes ;; 1168 1169 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1170 | --runstate | --runstat | --runsta | --runst | --runs \ 1171 | --run | --ru | --r) 1172 ac_prev=runstatedir ;; 1173 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1174 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1175 | --run=* | --ru=* | --r=*) 1176 runstatedir=$ac_optarg ;; 1177 1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1179 ac_prev=sbindir ;; 1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1181 | --sbi=* | --sb=*) 1182 sbindir=$ac_optarg ;; 1183 1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1186 | --sharedst | --shareds | --shared | --share | --shar \ 1187 | --sha | --sh) 1188 ac_prev=sharedstatedir ;; 1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1192 | --sha=* | --sh=*) 1193 sharedstatedir=$ac_optarg ;; 1194 1195 -site | --site | --sit) 1196 ac_prev=site ;; 1197 -site=* | --site=* | --sit=*) 1198 site=$ac_optarg ;; 1199 1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1201 ac_prev=srcdir ;; 1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1203 srcdir=$ac_optarg ;; 1204 1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1206 | --syscon | --sysco | --sysc | --sys | --sy) 1207 ac_prev=sysconfdir ;; 1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1210 sysconfdir=$ac_optarg ;; 1211 1212 -target | --target | --targe | --targ | --tar | --ta | --t) 1213 ac_prev=target_alias ;; 1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1215 target_alias=$ac_optarg ;; 1216 1217 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1218 verbose=yes ;; 1219 1220 -version | --version | --versio | --versi | --vers | -V) 1221 ac_init_version=: ;; 1222 1223 -with-* | --with-*) 1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1225 # Reject names that are not valid shell variable names. 1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 as_fn_error $? "invalid package name: \`$ac_useropt'" 1228 ac_useropt_orig=$ac_useropt 1229 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1230 case $ac_user_opts in 1231 *" 1232"with_$ac_useropt" 1233"*) ;; 1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1235 ac_unrecognized_sep=', ';; 1236 esac 1237 eval with_$ac_useropt=\$ac_optarg ;; 1238 1239 -without-* | --without-*) 1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243 as_fn_error $? "invalid package name: \`$ac_useropt'" 1244 ac_useropt_orig=$ac_useropt 1245 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1246 case $ac_user_opts in 1247 *" 1248"with_$ac_useropt" 1249"*) ;; 1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1251 ac_unrecognized_sep=', ';; 1252 esac 1253 eval with_$ac_useropt=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1274Try \`$0 --help' for more information" 1275 ;; 1276 1277 *=*) 1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1279 # Reject names that are not valid shell variable names. 1280 case $ac_envvar in #( 1281 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1283 esac 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 as_fn_error $? "missing argument to $ac_option" 1301fi 1302 1303if test -n "$ac_unrecognized_opts"; then 1304 case $enable_option_checking in 1305 no) ;; 1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1307 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1308 esac 1309fi 1310 1311# Check all directory arguments for consistency. 1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1313 datadir sysconfdir sharedstatedir localstatedir includedir \ 1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1315 libdir localedir mandir runstatedir 1316do 1317 eval ac_val=\$$ac_var 1318 # Remove trailing slashes. 1319 case $ac_val in 1320 */ ) 1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1322 eval $ac_var=\$ac_val;; 1323 esac 1324 # Be sure to have absolute directory names. 1325 case $ac_val in 1326 [\\/$]* | ?:[\\/]* ) continue;; 1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1328 esac 1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1330done 1331 1332# There might be people who depend on the old broken behavior: `$host' 1333# used to hold the argument of --host etc. 1334# FIXME: To remove some day. 1335build=$build_alias 1336host=$host_alias 1337target=$target_alias 1338 1339# FIXME: To remove some day. 1340if test "x$host_alias" != x; then 1341 if test "x$build_alias" = x; then 1342 cross_compiling=maybe 1343 elif test "x$build_alias" != "x$host_alias"; then 1344 cross_compiling=yes 1345 fi 1346fi 1347 1348ac_tool_prefix= 1349test -n "$host_alias" && ac_tool_prefix=$host_alias- 1350 1351test "$silent" = yes && exec 6>/dev/null 1352 1353 1354ac_pwd=`pwd` && test -n "$ac_pwd" && 1355ac_ls_di=`ls -di .` && 1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1357 as_fn_error $? "working directory cannot be determined" 1358test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1359 as_fn_error $? "pwd does not report name of working directory" 1360 1361 1362# Find the source files, if location was not specified. 1363if test -z "$srcdir"; then 1364 ac_srcdir_defaulted=yes 1365 # Try the directory containing this script, then the parent directory. 1366 ac_confdir=`$as_dirname -- "$as_myself" || 1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1368 X"$as_myself" : 'X\(//\)[^/]' \| \ 1369 X"$as_myself" : 'X\(//\)$' \| \ 1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1371printf "%s\n" X"$as_myself" | 1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1373 s//\1/ 1374 q 1375 } 1376 /^X\(\/\/\)[^/].*/{ 1377 s//\1/ 1378 q 1379 } 1380 /^X\(\/\/\)$/{ 1381 s//\1/ 1382 q 1383 } 1384 /^X\(\/\).*/{ 1385 s//\1/ 1386 q 1387 } 1388 s/.*/./; q'` 1389 srcdir=$ac_confdir 1390 if test ! -r "$srcdir/$ac_unique_file"; then 1391 srcdir=.. 1392 fi 1393else 1394 ac_srcdir_defaulted=no 1395fi 1396if test ! -r "$srcdir/$ac_unique_file"; then 1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1399fi 1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1401ac_abs_confdir=`( 1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1403 pwd)` 1404# When building in place, set srcdir=. 1405if test "$ac_abs_confdir" = "$ac_pwd"; then 1406 srcdir=. 1407fi 1408# Remove unnecessary trailing slashes from srcdir. 1409# Double slashes in file names in object file debugging info 1410# mess up M-x gdb in Emacs. 1411case $srcdir in 1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1413esac 1414for ac_var in $ac_precious_vars; do 1415 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1416 eval ac_env_${ac_var}_value=\$${ac_var} 1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1419done 1420 1421# 1422# Report the --help message. 1423# 1424if test "$ac_init_help" = "long"; then 1425 # Omit some internal or obsolete options to make the list less imposing. 1426 # This message is too long to be a string in the A/UX 3.1 sh. 1427 cat <<_ACEOF 1428\`configure' configures c-ares 1.34.5 to adapt to many kinds of systems. 1429 1430Usage: $0 [OPTION]... [VAR=VALUE]... 1431 1432To assign environment variables (e.g., CC, CFLAGS...), specify them as 1433VAR=VALUE. See below for descriptions of some of the useful variables. 1434 1435Defaults for the options are specified in brackets. 1436 1437Configuration: 1438 -h, --help display this help and exit 1439 --help=short display options specific to this package 1440 --help=recursive display the short help of all the included packages 1441 -V, --version display version information and exit 1442 -q, --quiet, --silent do not print \`checking ...' messages 1443 --cache-file=FILE cache test results in FILE [disabled] 1444 -C, --config-cache alias for \`--cache-file=config.cache' 1445 -n, --no-create do not create output files 1446 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1447 1448Installation directories: 1449 --prefix=PREFIX install architecture-independent files in PREFIX 1450 [$ac_default_prefix] 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1452 [PREFIX] 1453 1454By default, \`make install' will install all the files in 1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1456an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1457for instance \`--prefix=\$HOME'. 1458 1459For better control, use the options below. 1460 1461Fine tuning of the installation directories: 1462 --bindir=DIR user executables [EPREFIX/bin] 1463 --sbindir=DIR system admin executables [EPREFIX/sbin] 1464 --libexecdir=DIR program executables [EPREFIX/libexec] 1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1468 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1469 --libdir=DIR object code libraries [EPREFIX/lib] 1470 --includedir=DIR C header files [PREFIX/include] 1471 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1474 --infodir=DIR info documentation [DATAROOTDIR/info] 1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1476 --mandir=DIR man documentation [DATAROOTDIR/man] 1477 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares] 1478 --htmldir=DIR html documentation [DOCDIR] 1479 --dvidir=DIR dvi documentation [DOCDIR] 1480 --pdfdir=DIR pdf documentation [DOCDIR] 1481 --psdir=DIR ps documentation [DOCDIR] 1482_ACEOF 1483 1484 cat <<\_ACEOF 1485 1486Program names: 1487 --program-prefix=PREFIX prepend PREFIX to installed program names 1488 --program-suffix=SUFFIX append SUFFIX to installed program names 1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1490 1491System types: 1492 --build=BUILD configure for building on BUILD [guessed] 1493 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1494_ACEOF 1495fi 1496 1497if test -n "$ac_init_help"; then 1498 case $ac_init_help in 1499 short | recursive ) echo "Configuration of c-ares 1.34.5:";; 1500 esac 1501 cat <<\_ACEOF 1502 1503Optional Features: 1504 --disable-option-checking ignore unrecognized --enable/--with options 1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1507 --enable-dependency-tracking 1508 do not reject slow dependency extractors 1509 --disable-dependency-tracking 1510 speeds up one-time build 1511 --enable-silent-rules less verbose build output (undo: "make V=1") 1512 --disable-silent-rules verbose build output (undo: "make V=0") 1513 --enable-shared[=PKGS] build shared libraries [default=yes] 1514 --enable-static[=PKGS] build static libraries [default=yes] 1515 --enable-fast-install[=PKGS] 1516 optimize for fast installation [default=yes] 1517 --disable-libtool-lock avoid locking (might break parallel builds) 1518 --disable-warnings Disable strict compiler warnings 1519 --disable-symbol-hiding Disable symbol hiding. Enabled by default if the 1520 compiler supports it. 1521 --disable-tests disable building of test suite. Built by default if 1522 GoogleTest is found. 1523 --disable-cares-threads Disable building of thread safety support 1524 --enable-maintainer-mode 1525 enable make rules and dependencies not useful (and 1526 sometimes confusing) to the casual installer 1527 --enable-code-coverage Whether to enable code coverage support 1528 --disable-largefile omit support for large files 1529 --enable-libgcc use libgcc when linking 1530 --enable-tests-crossbuild 1531 Enable test building even when cross building 1532 1533Optional Packages: 1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1536 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1537 both] 1538 --with-aix-soname=aix|svr4|both 1539 shared library versioning (aka "SONAME") variant to 1540 provide on AIX, [default=aix]. 1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1542 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1543 compiler's sysroot if not specified). 1544 --with-random=FILE read randomness from FILE (default=/dev/urandom) 1545 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov). 1546 1547Some influential environment variables: 1548 CC C compiler command 1549 CFLAGS C compiler flags 1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1551 nonstandard directory <lib dir> 1552 LIBS libraries to pass to the linker, e.g. -l<library> 1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1554 you have headers in a nonstandard directory <include dir> 1555 CXX C++ compiler command 1556 CXXFLAGS C++ compiler flags 1557 LT_SYS_LIBRARY_PATH 1558 User-defined run-time library search path. 1559 CXXCPP C++ preprocessor 1560 CPP C preprocessor 1561 PKG_CONFIG path to pkg-config utility 1562 PKG_CONFIG_PATH 1563 directories to add to pkg-config's search path 1564 PKG_CONFIG_LIBDIR 1565 path overriding pkg-config's built-in search path 1566 GMOCK_CFLAGS 1567 C compiler flags for GMOCK, overriding pkg-config 1568 GMOCK_LIBS linker flags for GMOCK, overriding pkg-config 1569 GMOCK112_CFLAGS 1570 C compiler flags for GMOCK112, overriding pkg-config 1571 GMOCK112_LIBS 1572 linker flags for GMOCK112, overriding pkg-config 1573 1574Use these variables to override the choices made by `configure' or to help 1575it to find libraries and programs with nonstandard names/locations. 1576 1577Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>. 1578_ACEOF 1579ac_status=$? 1580fi 1581 1582if test "$ac_init_help" = "recursive"; then 1583 # If there are subdirs, report their specific --help. 1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1585 test -d "$ac_dir" || 1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1587 continue 1588 ac_builddir=. 1589 1590case "$ac_dir" in 1591.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1592*) 1593 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1594 # A ".." for each directory in $ac_dir_suffix. 1595 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1596 case $ac_top_builddir_sub in 1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1599 esac ;; 1600esac 1601ac_abs_top_builddir=$ac_pwd 1602ac_abs_builddir=$ac_pwd$ac_dir_suffix 1603# for backward compatibility: 1604ac_top_builddir=$ac_top_build_prefix 1605 1606case $srcdir in 1607 .) # We are building in place. 1608 ac_srcdir=. 1609 ac_top_srcdir=$ac_top_builddir_sub 1610 ac_abs_top_srcdir=$ac_pwd ;; 1611 [\\/]* | ?:[\\/]* ) # Absolute name. 1612 ac_srcdir=$srcdir$ac_dir_suffix; 1613 ac_top_srcdir=$srcdir 1614 ac_abs_top_srcdir=$srcdir ;; 1615 *) # Relative name. 1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1617 ac_top_srcdir=$ac_top_build_prefix$srcdir 1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1619esac 1620ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1621 1622 cd "$ac_dir" || { ac_status=$?; continue; } 1623 # Check for configure.gnu first; this name is used for a wrapper for 1624 # Metaconfig's "Configure" on case-insensitive file systems. 1625 if test -f "$ac_srcdir/configure.gnu"; then 1626 echo && 1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1628 elif test -f "$ac_srcdir/configure"; then 1629 echo && 1630 $SHELL "$ac_srcdir/configure" --help=recursive 1631 else 1632 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1633 fi || ac_status=$? 1634 cd "$ac_pwd" || { ac_status=$?; break; } 1635 done 1636fi 1637 1638test -n "$ac_init_help" && exit $ac_status 1639if $ac_init_version; then 1640 cat <<\_ACEOF 1641c-ares configure 1.34.5 1642generated by GNU Autoconf 2.71 1643 1644Copyright (C) 2021 Free Software Foundation, Inc. 1645This configure script is free software; the Free Software Foundation 1646gives unlimited permission to copy, distribute and modify it. 1647_ACEOF 1648 exit 1649fi 1650 1651## ------------------------ ## 1652## Autoconf initialization. ## 1653## ------------------------ ## 1654 1655# ac_fn_c_try_compile LINENO 1656# -------------------------- 1657# Try to compile conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_c_try_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 rm -f conftest.$ac_objext conftest.beam 1662 if { { ac_try="$ac_compile" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668printf "%s\n" "$ac_try_echo"; } >&5 1669 (eval "$ac_compile") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { 1678 test -z "$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 } && test -s conftest.$ac_objext 1681then : 1682 ac_retval=0 1683else $as_nop 1684 printf "%s\n" "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=1 1688fi 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 as_fn_set_status $ac_retval 1691 1692} # ac_fn_c_try_compile 1693 1694# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1695# ------------------------------------------------------- 1696# Tests whether HEADER exists and can be compiled using the include files in 1697# INCLUDES, setting the cache variable VAR accordingly. 1698ac_fn_c_check_header_compile () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1702printf %s "checking for $2... " >&6; } 1703if eval test \${$3+y} 1704then : 1705 printf %s "(cached) " >&6 1706else $as_nop 1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708/* end confdefs.h. */ 1709$4 1710#include <$2> 1711_ACEOF 1712if ac_fn_c_try_compile "$LINENO" 1713then : 1714 eval "$3=yes" 1715else $as_nop 1716 eval "$3=no" 1717fi 1718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1719fi 1720eval ac_res=\$$3 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722printf "%s\n" "$ac_res" >&6; } 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 1725} # ac_fn_c_check_header_compile 1726 1727# ac_fn_cxx_try_compile LINENO 1728# ---------------------------- 1729# Try to compile conftest.$ac_ext, and return whether this succeeded. 1730ac_fn_cxx_try_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 rm -f conftest.$ac_objext conftest.beam 1734 if { { ac_try="$ac_compile" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740printf "%s\n" "$ac_try_echo"; } >&5 1741 (eval "$ac_compile") 2>conftest.err 1742 ac_status=$? 1743 if test -s conftest.err; then 1744 grep -v '^ *+' conftest.err >conftest.er1 1745 cat conftest.er1 >&5 1746 mv -f conftest.er1 conftest.err 1747 fi 1748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { 1750 test -z "$ac_cxx_werror_flag" || 1751 test ! -s conftest.err 1752 } && test -s conftest.$ac_objext 1753then : 1754 ac_retval=0 1755else $as_nop 1756 printf "%s\n" "$as_me: failed program was:" >&5 1757sed 's/^/| /' conftest.$ac_ext >&5 1758 1759 ac_retval=1 1760fi 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_cxx_try_compile 1765 1766# ac_fn_c_try_link LINENO 1767# ----------------------- 1768# Try to link conftest.$ac_ext, and return whether this succeeded. 1769ac_fn_c_try_link () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1773 if { { ac_try="$ac_link" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779printf "%s\n" "$ac_try_echo"; } >&5 1780 (eval "$ac_link") 2>conftest.err 1781 ac_status=$? 1782 if test -s conftest.err; then 1783 grep -v '^ *+' conftest.err >conftest.er1 1784 cat conftest.er1 >&5 1785 mv -f conftest.er1 conftest.err 1786 fi 1787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } && { 1789 test -z "$ac_c_werror_flag" || 1790 test ! -s conftest.err 1791 } && test -s conftest$ac_exeext && { 1792 test "$cross_compiling" = yes || 1793 test -x conftest$ac_exeext 1794 } 1795then : 1796 ac_retval=0 1797else $as_nop 1798 printf "%s\n" "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=1 1802fi 1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1805 # interfere with the next link command; also delete a directory that is 1806 # left behind by Apple's compiler. We do this before executing the actions. 1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 as_fn_set_status $ac_retval 1810 1811} # ac_fn_c_try_link 1812 1813# ac_fn_c_check_func LINENO FUNC VAR 1814# ---------------------------------- 1815# Tests whether FUNC exists, setting the cache variable VAR accordingly 1816ac_fn_c_check_func () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1820printf %s "checking for $2... " >&6; } 1821if eval test \${$3+y} 1822then : 1823 printf %s "(cached) " >&6 1824else $as_nop 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1829#define $2 innocuous_$2 1830 1831/* System header to define __stub macros and hopefully few prototypes, 1832 which can conflict with char $2 (); below. */ 1833 1834#include <limits.h> 1835#undef $2 1836 1837/* Override any GCC internal prototype to avoid an error. 1838 Use char because int might match the return type of a GCC 1839 builtin and then its argument prototype would still apply. */ 1840#ifdef __cplusplus 1841extern "C" 1842#endif 1843char $2 (); 1844/* The GNU C library defines this for functions which it implements 1845 to always fail with ENOSYS. Some functions are actually named 1846 something starting with __ and the normal name is an alias. */ 1847#if defined __stub_$2 || defined __stub___$2 1848choke me 1849#endif 1850 1851int 1852main (void) 1853{ 1854return $2 (); 1855 ; 1856 return 0; 1857} 1858_ACEOF 1859if ac_fn_c_try_link "$LINENO" 1860then : 1861 eval "$3=yes" 1862else $as_nop 1863 eval "$3=no" 1864fi 1865rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1866 conftest$ac_exeext conftest.$ac_ext 1867fi 1868eval ac_res=\$$3 1869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870printf "%s\n" "$ac_res" >&6; } 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1872 1873} # ac_fn_c_check_func 1874 1875# ac_fn_cxx_try_cpp LINENO 1876# ------------------------ 1877# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1878ac_fn_cxx_try_cpp () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 if { { ac_try="$ac_cpp conftest.$ac_ext" 1882case "(($ac_try" in 1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1884 *) ac_try_echo=$ac_try;; 1885esac 1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1887printf "%s\n" "$ac_try_echo"; } >&5 1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1889 ac_status=$? 1890 if test -s conftest.err; then 1891 grep -v '^ *+' conftest.err >conftest.er1 1892 cat conftest.er1 >&5 1893 mv -f conftest.er1 conftest.err 1894 fi 1895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1896 test $ac_status = 0; } > conftest.i && { 1897 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1898 test ! -s conftest.err 1899 } 1900then : 1901 ac_retval=0 1902else $as_nop 1903 printf "%s\n" "$as_me: failed program was:" >&5 1904sed 's/^/| /' conftest.$ac_ext >&5 1905 1906 ac_retval=1 1907fi 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1909 as_fn_set_status $ac_retval 1910 1911} # ac_fn_cxx_try_cpp 1912 1913# ac_fn_cxx_try_link LINENO 1914# ------------------------- 1915# Try to link conftest.$ac_ext, and return whether this succeeded. 1916ac_fn_cxx_try_link () 1917{ 1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1919 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1920 if { { ac_try="$ac_link" 1921case "(($ac_try" in 1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1923 *) ac_try_echo=$ac_try;; 1924esac 1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1926printf "%s\n" "$ac_try_echo"; } >&5 1927 (eval "$ac_link") 2>conftest.err 1928 ac_status=$? 1929 if test -s conftest.err; then 1930 grep -v '^ *+' conftest.err >conftest.er1 1931 cat conftest.er1 >&5 1932 mv -f conftest.er1 conftest.err 1933 fi 1934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1935 test $ac_status = 0; } && { 1936 test -z "$ac_cxx_werror_flag" || 1937 test ! -s conftest.err 1938 } && test -s conftest$ac_exeext && { 1939 test "$cross_compiling" = yes || 1940 test -x conftest$ac_exeext 1941 } 1942then : 1943 ac_retval=0 1944else $as_nop 1945 printf "%s\n" "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948 ac_retval=1 1949fi 1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1952 # interfere with the next link command; also delete a directory that is 1953 # left behind by Apple's compiler. We do this before executing the actions. 1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 as_fn_set_status $ac_retval 1957 1958} # ac_fn_cxx_try_link 1959 1960# ac_fn_c_try_cpp LINENO 1961# ---------------------- 1962# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1963ac_fn_c_try_cpp () 1964{ 1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1966 if { { ac_try="$ac_cpp conftest.$ac_ext" 1967case "(($ac_try" in 1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1969 *) ac_try_echo=$ac_try;; 1970esac 1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1972printf "%s\n" "$ac_try_echo"; } >&5 1973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1974 ac_status=$? 1975 if test -s conftest.err; then 1976 grep -v '^ *+' conftest.err >conftest.er1 1977 cat conftest.er1 >&5 1978 mv -f conftest.er1 conftest.err 1979 fi 1980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1981 test $ac_status = 0; } > conftest.i && { 1982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1983 test ! -s conftest.err 1984 } 1985then : 1986 ac_retval=0 1987else $as_nop 1988 printf "%s\n" "$as_me: failed program was:" >&5 1989sed 's/^/| /' conftest.$ac_ext >&5 1990 1991 ac_retval=1 1992fi 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1994 as_fn_set_status $ac_retval 1995 1996} # ac_fn_c_try_cpp 1997 1998# ac_fn_c_check_header_preproc LINENO HEADER VAR 1999# ---------------------------------------------- 2000# Tests whether HEADER exists and can be preprocessed (in isolation), setting 2001# the cache variable VAR accordingly. 2002ac_fn_c_check_header_preproc () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2006printf %s "checking for $2... " >&6; } 2007if eval test \${$3+y} 2008then : 2009 printf %s "(cached) " >&6 2010else $as_nop 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013#include <$2> 2014_ACEOF 2015if ac_fn_c_try_cpp "$LINENO" 2016then : 2017 eval "$3=yes" 2018else $as_nop 2019 eval "$3=no" 2020fi 2021rm -f conftest.err conftest.i conftest.$ac_ext 2022fi 2023eval ac_res=\$$3 2024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025printf "%s\n" "$ac_res" >&6; } 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_header_preproc 2029 2030# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2031# ------------------------------------------------------------------ 2032# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2033# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2034ac_fn_check_decl () 2035{ 2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2037 as_decl_name=`echo $2|sed 's/ *(.*//'` 2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2039printf %s "checking whether $as_decl_name is declared... " >&6; } 2040if eval test \${$3+y} 2041then : 2042 printf %s "(cached) " >&6 2043else $as_nop 2044 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2045 eval ac_save_FLAGS=\$$6 2046 as_fn_append $6 " $5" 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049$4 2050int 2051main (void) 2052{ 2053#ifndef $as_decl_name 2054#ifdef __cplusplus 2055 (void) $as_decl_use; 2056#else 2057 (void) $as_decl_name; 2058#endif 2059#endif 2060 2061 ; 2062 return 0; 2063} 2064_ACEOF 2065if ac_fn_c_try_compile "$LINENO" 2066then : 2067 eval "$3=yes" 2068else $as_nop 2069 eval "$3=no" 2070fi 2071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2072 eval $6=\$ac_save_FLAGS 2073 2074fi 2075eval ac_res=\$$3 2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2077printf "%s\n" "$ac_res" >&6; } 2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2079 2080} # ac_fn_check_decl 2081 2082# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2083# ------------------------------------------- 2084# Tests whether TYPE exists after having included INCLUDES, setting cache 2085# variable VAR accordingly. 2086ac_fn_c_check_type () 2087{ 2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2090printf %s "checking for $2... " >&6; } 2091if eval test \${$3+y} 2092then : 2093 printf %s "(cached) " >&6 2094else $as_nop 2095 eval "$3=no" 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097/* end confdefs.h. */ 2098$4 2099int 2100main (void) 2101{ 2102if (sizeof ($2)) 2103 return 0; 2104 ; 2105 return 0; 2106} 2107_ACEOF 2108if ac_fn_c_try_compile "$LINENO" 2109then : 2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2111/* end confdefs.h. */ 2112$4 2113int 2114main (void) 2115{ 2116if (sizeof (($2))) 2117 return 0; 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO" 2123then : 2124 2125else $as_nop 2126 eval "$3=yes" 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2131fi 2132eval ac_res=\$$3 2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2134printf "%s\n" "$ac_res" >&6; } 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 2137} # ac_fn_c_check_type 2138 2139# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2140# ---------------------------------------------------- 2141# Tries to find if the field MEMBER exists in type AGGR, after including 2142# INCLUDES, setting cache variable VAR accordingly. 2143ac_fn_c_check_member () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2147printf %s "checking for $2.$3... " >&6; } 2148if eval test \${$4+y} 2149then : 2150 printf %s "(cached) " >&6 2151else $as_nop 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$5 2155int 2156main (void) 2157{ 2158static $2 ac_aggr; 2159if (ac_aggr.$3) 2160return 0; 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO" 2166then : 2167 eval "$4=yes" 2168else $as_nop 2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2170/* end confdefs.h. */ 2171$5 2172int 2173main (void) 2174{ 2175static $2 ac_aggr; 2176if (sizeof ac_aggr.$3) 2177return 0; 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO" 2183then : 2184 eval "$4=yes" 2185else $as_nop 2186 eval "$4=no" 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2191fi 2192eval ac_res=\$$4 2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2194printf "%s\n" "$ac_res" >&6; } 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 2197} # ac_fn_c_check_member 2198 2199# ac_fn_c_try_run LINENO 2200# ---------------------- 2201# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2202# executables *can* be run. 2203ac_fn_c_try_run () 2204{ 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 if { { ac_try="$ac_link" 2207case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210esac 2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2212printf "%s\n" "$ac_try_echo"; } >&5 2213 (eval "$ac_link") 2>&5 2214 ac_status=$? 2215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2216 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2217 { { case "(($ac_try" in 2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2219 *) ac_try_echo=$ac_try;; 2220esac 2221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2222printf "%s\n" "$ac_try_echo"; } >&5 2223 (eval "$ac_try") 2>&5 2224 ac_status=$? 2225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; }; } 2227then : 2228 ac_retval=0 2229else $as_nop 2230 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2231 printf "%s\n" "$as_me: failed program was:" >&5 2232sed 's/^/| /' conftest.$ac_ext >&5 2233 2234 ac_retval=$ac_status 2235fi 2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2238 as_fn_set_status $ac_retval 2239 2240} # ac_fn_c_try_run 2241ac_configure_args_raw= 2242for ac_arg 2243do 2244 case $ac_arg in 2245 *\'*) 2246 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2247 esac 2248 as_fn_append ac_configure_args_raw " '$ac_arg'" 2249done 2250 2251case $ac_configure_args_raw in 2252 *$as_nl*) 2253 ac_safe_unquote= ;; 2254 *) 2255 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2256 ac_unsafe_a="$ac_unsafe_z#~" 2257 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2258 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2259esac 2260 2261cat >config.log <<_ACEOF 2262This file contains any messages produced by compilers while 2263running configure, to aid debugging if configure makes a mistake. 2264 2265It was created by c-ares $as_me 1.34.5, which was 2266generated by GNU Autoconf 2.71. Invocation command line was 2267 2268 $ $0$ac_configure_args_raw 2269 2270_ACEOF 2271exec 5>>config.log 2272{ 2273cat <<_ASUNAME 2274## --------- ## 2275## Platform. ## 2276## --------- ## 2277 2278hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2279uname -m = `(uname -m) 2>/dev/null || echo unknown` 2280uname -r = `(uname -r) 2>/dev/null || echo unknown` 2281uname -s = `(uname -s) 2>/dev/null || echo unknown` 2282uname -v = `(uname -v) 2>/dev/null || echo unknown` 2283 2284/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2285/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2286 2287/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2288/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2289/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2290/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2291/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2292/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2293/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2294 2295_ASUNAME 2296 2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2298for as_dir in $PATH 2299do 2300 IFS=$as_save_IFS 2301 case $as_dir in #((( 2302 '') as_dir=./ ;; 2303 */) ;; 2304 *) as_dir=$as_dir/ ;; 2305 esac 2306 printf "%s\n" "PATH: $as_dir" 2307 done 2308IFS=$as_save_IFS 2309 2310} >&5 2311 2312cat >&5 <<_ACEOF 2313 2314 2315## ----------- ## 2316## Core tests. ## 2317## ----------- ## 2318 2319_ACEOF 2320 2321 2322# Keep a trace of the command line. 2323# Strip out --no-create and --no-recursion so they do not pile up. 2324# Strip out --silent because we don't want to record it for future runs. 2325# Also quote any args containing shell meta-characters. 2326# Make two passes to allow for proper duplicate-argument suppression. 2327ac_configure_args= 2328ac_configure_args0= 2329ac_configure_args1= 2330ac_must_keep_next=false 2331for ac_pass in 1 2 2332do 2333 for ac_arg 2334 do 2335 case $ac_arg in 2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2338 | -silent | --silent | --silen | --sile | --sil) 2339 continue ;; 2340 *\'*) 2341 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 esac 2343 case $ac_pass in 2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2345 2) 2346 as_fn_append ac_configure_args1 " '$ac_arg'" 2347 if test $ac_must_keep_next = true; then 2348 ac_must_keep_next=false # Got value, back to normal. 2349 else 2350 case $ac_arg in 2351 *=* | --config-cache | -C | -disable-* | --disable-* \ 2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2354 | -with-* | --with-* | -without-* | --without-* | --x) 2355 case "$ac_configure_args0 " in 2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2357 esac 2358 ;; 2359 -* ) ac_must_keep_next=true ;; 2360 esac 2361 fi 2362 as_fn_append ac_configure_args " '$ac_arg'" 2363 ;; 2364 esac 2365 done 2366done 2367{ ac_configure_args0=; unset ac_configure_args0;} 2368{ ac_configure_args1=; unset ac_configure_args1;} 2369 2370# When interrupted or exit'd, cleanup temporary files, and complete 2371# config.log. We remove comments because anyway the quotes in there 2372# would cause problems or look ugly. 2373# WARNING: Use '\'' to represent an apostrophe within the trap. 2374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2375trap 'exit_status=$? 2376 # Sanitize IFS. 2377 IFS=" "" $as_nl" 2378 # Save into config.log some information that might help in debugging. 2379 { 2380 echo 2381 2382 printf "%s\n" "## ---------------- ## 2383## Cache variables. ## 2384## ---------------- ##" 2385 echo 2386 # The following way of writing the cache mishandles newlines in values, 2387( 2388 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2389 eval ac_val=\$$ac_var 2390 case $ac_val in #( 2391 *${as_nl}*) 2392 case $ac_var in #( 2393 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2394printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2395 esac 2396 case $ac_var in #( 2397 _ | IFS | as_nl) ;; #( 2398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2399 *) { eval $ac_var=; unset $ac_var;} ;; 2400 esac ;; 2401 esac 2402 done 2403 (set) 2>&1 | 2404 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2405 *${as_nl}ac_space=\ *) 2406 sed -n \ 2407 "s/'\''/'\''\\\\'\'''\''/g; 2408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2409 ;; #( 2410 *) 2411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2412 ;; 2413 esac | 2414 sort 2415) 2416 echo 2417 2418 printf "%s\n" "## ----------------- ## 2419## Output variables. ## 2420## ----------------- ##" 2421 echo 2422 for ac_var in $ac_subst_vars 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 printf "%s\n" "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 2432 if test -n "$ac_subst_files"; then 2433 printf "%s\n" "## ------------------- ## 2434## File substitutions. ## 2435## ------------------- ##" 2436 echo 2437 for ac_var in $ac_subst_files 2438 do 2439 eval ac_val=\$$ac_var 2440 case $ac_val in 2441 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2442 esac 2443 printf "%s\n" "$ac_var='\''$ac_val'\''" 2444 done | sort 2445 echo 2446 fi 2447 2448 if test -s confdefs.h; then 2449 printf "%s\n" "## ----------- ## 2450## confdefs.h. ## 2451## ----------- ##" 2452 echo 2453 cat confdefs.h 2454 echo 2455 fi 2456 test "$ac_signal" != 0 && 2457 printf "%s\n" "$as_me: caught signal $ac_signal" 2458 printf "%s\n" "$as_me: exit $exit_status" 2459 } >&5 2460 rm -f core *.core core.conftest.* && 2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2462 exit $exit_status 2463' 0 2464for ac_signal in 1 2 13 15; do 2465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2466done 2467ac_signal=0 2468 2469# confdefs.h avoids OS command line length limits that DEFS can exceed. 2470rm -f -r conftest* confdefs.h 2471 2472printf "%s\n" "/* confdefs.h */" > confdefs.h 2473 2474# Predefined preprocessor variables. 2475 2476printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2477 2478printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2479 2480printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2481 2482printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2483 2484printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2485 2486printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2487 2488 2489# Let the site file select an alternate cache file if it wants to. 2490# Prefer an explicitly selected file to automatically selected ones. 2491if test -n "$CONFIG_SITE"; then 2492 ac_site_files="$CONFIG_SITE" 2493elif test "x$prefix" != xNONE; then 2494 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2495else 2496 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2497fi 2498 2499for ac_site_file in $ac_site_files 2500do 2501 case $ac_site_file in #( 2502 */*) : 2503 ;; #( 2504 *) : 2505 ac_site_file=./$ac_site_file ;; 2506esac 2507 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2509printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2510 sed 's/^/| /' "$ac_site_file" >&5 2511 . "$ac_site_file" \ 2512 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2513printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2514as_fn_error $? "failed to load site script $ac_site_file 2515See \`config.log' for more details" "$LINENO" 5; } 2516 fi 2517done 2518 2519if test -r "$cache_file"; then 2520 # Some versions of bash will fail to source /dev/null (special files 2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2524printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2525 case $cache_file in 2526 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2527 *) . "./$cache_file";; 2528 esac 2529 fi 2530else 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2532printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2533 >$cache_file 2534fi 2535 2536as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2537# Test code for whether the C compiler supports C89 (global declarations) 2538ac_c_conftest_c89_globals=' 2539/* Does the compiler advertise C89 conformance? 2540 Do not test the value of __STDC__, because some compilers set it to 0 2541 while being otherwise adequately conformant. */ 2542#if !defined __STDC__ 2543# error "Compiler does not advertise C89 conformance" 2544#endif 2545 2546#include <stddef.h> 2547#include <stdarg.h> 2548struct stat; 2549/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2550struct buf { int x; }; 2551struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2552static char *e (p, i) 2553 char **p; 2554 int i; 2555{ 2556 return p[i]; 2557} 2558static char *f (char * (*g) (char **, int), char **p, ...) 2559{ 2560 char *s; 2561 va_list v; 2562 va_start (v,p); 2563 s = g (p, va_arg (v,int)); 2564 va_end (v); 2565 return s; 2566} 2567 2568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2569 function prototypes and stuff, but not \xHH hex character constants. 2570 These do not provoke an error unfortunately, instead are silently treated 2571 as an "x". The following induces an error, until -std is added to get 2572 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2573 array size at least. It is necessary to write \x00 == 0 to get something 2574 that is true only with -std. */ 2575int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2576 2577/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2578 inside strings and character constants. */ 2579#define FOO(x) '\''x'\'' 2580int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2581 2582int test (int i, double x); 2583struct s1 {int (*f) (int a);}; 2584struct s2 {int (*f) (double a);}; 2585int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2586 int, int);' 2587 2588# Test code for whether the C compiler supports C89 (body of main). 2589ac_c_conftest_c89_main=' 2590ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2591' 2592 2593# Test code for whether the C compiler supports C99 (global declarations) 2594ac_c_conftest_c99_globals=' 2595// Does the compiler advertise C99 conformance? 2596#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2597# error "Compiler does not advertise C99 conformance" 2598#endif 2599 2600#include <stdbool.h> 2601extern int puts (const char *); 2602extern int printf (const char *, ...); 2603extern int dprintf (int, const char *, ...); 2604extern void *malloc (size_t); 2605 2606// Check varargs macros. These examples are taken from C99 6.10.3.5. 2607// dprintf is used instead of fprintf to avoid needing to declare 2608// FILE and stderr. 2609#define debug(...) dprintf (2, __VA_ARGS__) 2610#define showlist(...) puts (#__VA_ARGS__) 2611#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2612static void 2613test_varargs_macros (void) 2614{ 2615 int x = 1234; 2616 int y = 5678; 2617 debug ("Flag"); 2618 debug ("X = %d\n", x); 2619 showlist (The first, second, and third items.); 2620 report (x>y, "x is %d but y is %d", x, y); 2621} 2622 2623// Check long long types. 2624#define BIG64 18446744073709551615ull 2625#define BIG32 4294967295ul 2626#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2627#if !BIG_OK 2628 #error "your preprocessor is broken" 2629#endif 2630#if BIG_OK 2631#else 2632 #error "your preprocessor is broken" 2633#endif 2634static long long int bignum = -9223372036854775807LL; 2635static unsigned long long int ubignum = BIG64; 2636 2637struct incomplete_array 2638{ 2639 int datasize; 2640 double data[]; 2641}; 2642 2643struct named_init { 2644 int number; 2645 const wchar_t *name; 2646 double average; 2647}; 2648 2649typedef const char *ccp; 2650 2651static inline int 2652test_restrict (ccp restrict text) 2653{ 2654 // See if C++-style comments work. 2655 // Iterate through items via the restricted pointer. 2656 // Also check for declarations in for loops. 2657 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2658 continue; 2659 return 0; 2660} 2661 2662// Check varargs and va_copy. 2663static bool 2664test_varargs (const char *format, ...) 2665{ 2666 va_list args; 2667 va_start (args, format); 2668 va_list args_copy; 2669 va_copy (args_copy, args); 2670 2671 const char *str = ""; 2672 int number = 0; 2673 float fnumber = 0; 2674 2675 while (*format) 2676 { 2677 switch (*format++) 2678 { 2679 case '\''s'\'': // string 2680 str = va_arg (args_copy, const char *); 2681 break; 2682 case '\''d'\'': // int 2683 number = va_arg (args_copy, int); 2684 break; 2685 case '\''f'\'': // float 2686 fnumber = va_arg (args_copy, double); 2687 break; 2688 default: 2689 break; 2690 } 2691 } 2692 va_end (args_copy); 2693 va_end (args); 2694 2695 return *str && number && fnumber; 2696} 2697' 2698 2699# Test code for whether the C compiler supports C99 (body of main). 2700ac_c_conftest_c99_main=' 2701 // Check bool. 2702 _Bool success = false; 2703 success |= (argc != 0); 2704 2705 // Check restrict. 2706 if (test_restrict ("String literal") == 0) 2707 success = true; 2708 char *restrict newvar = "Another string"; 2709 2710 // Check varargs. 2711 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2712 test_varargs_macros (); 2713 2714 // Check flexible array members. 2715 struct incomplete_array *ia = 2716 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2717 ia->datasize = 10; 2718 for (int i = 0; i < ia->datasize; ++i) 2719 ia->data[i] = i * 1.234; 2720 2721 // Check named initializers. 2722 struct named_init ni = { 2723 .number = 34, 2724 .name = L"Test wide string", 2725 .average = 543.34343, 2726 }; 2727 2728 ni.number = 58; 2729 2730 int dynamic_array[ni.number]; 2731 dynamic_array[0] = argv[0][0]; 2732 dynamic_array[ni.number - 1] = 543; 2733 2734 // work around unused variable warnings 2735 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2736 || dynamic_array[ni.number - 1] != 543); 2737' 2738 2739# Test code for whether the C compiler supports C11 (global declarations) 2740ac_c_conftest_c11_globals=' 2741// Does the compiler advertise C11 conformance? 2742#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2743# error "Compiler does not advertise C11 conformance" 2744#endif 2745 2746// Check _Alignas. 2747char _Alignas (double) aligned_as_double; 2748char _Alignas (0) no_special_alignment; 2749extern char aligned_as_int; 2750char _Alignas (0) _Alignas (int) aligned_as_int; 2751 2752// Check _Alignof. 2753enum 2754{ 2755 int_alignment = _Alignof (int), 2756 int_array_alignment = _Alignof (int[100]), 2757 char_alignment = _Alignof (char) 2758}; 2759_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2760 2761// Check _Noreturn. 2762int _Noreturn does_not_return (void) { for (;;) continue; } 2763 2764// Check _Static_assert. 2765struct test_static_assert 2766{ 2767 int x; 2768 _Static_assert (sizeof (int) <= sizeof (long int), 2769 "_Static_assert does not work in struct"); 2770 long int y; 2771}; 2772 2773// Check UTF-8 literals. 2774#define u8 syntax error! 2775char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2776 2777// Check duplicate typedefs. 2778typedef long *long_ptr; 2779typedef long int *long_ptr; 2780typedef long_ptr long_ptr; 2781 2782// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2783struct anonymous 2784{ 2785 union { 2786 struct { int i; int j; }; 2787 struct { int k; long int l; } w; 2788 }; 2789 int m; 2790} v1; 2791' 2792 2793# Test code for whether the C compiler supports C11 (body of main). 2794ac_c_conftest_c11_main=' 2795 _Static_assert ((offsetof (struct anonymous, i) 2796 == offsetof (struct anonymous, w.k)), 2797 "Anonymous union alignment botch"); 2798 v1.i = 2; 2799 v1.w.k = 5; 2800 ok |= v1.i != 5; 2801' 2802 2803# Test code for whether the C compiler supports C11 (complete). 2804ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2805${ac_c_conftest_c99_globals} 2806${ac_c_conftest_c11_globals} 2807 2808int 2809main (int argc, char **argv) 2810{ 2811 int ok = 0; 2812 ${ac_c_conftest_c89_main} 2813 ${ac_c_conftest_c99_main} 2814 ${ac_c_conftest_c11_main} 2815 return ok; 2816} 2817" 2818 2819# Test code for whether the C compiler supports C99 (complete). 2820ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2821${ac_c_conftest_c99_globals} 2822 2823int 2824main (int argc, char **argv) 2825{ 2826 int ok = 0; 2827 ${ac_c_conftest_c89_main} 2828 ${ac_c_conftest_c99_main} 2829 return ok; 2830} 2831" 2832 2833# Test code for whether the C compiler supports C89 (complete). 2834ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2835 2836int 2837main (int argc, char **argv) 2838{ 2839 int ok = 0; 2840 ${ac_c_conftest_c89_main} 2841 return ok; 2842} 2843" 2844 2845as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2846as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2847as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2848as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2849as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2850as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2851as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2852as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2853as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2854as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2855# Test code for whether the C++ compiler supports C++98 (global declarations) 2856ac_cxx_conftest_cxx98_globals=' 2857// Does the compiler advertise C++98 conformance? 2858#if !defined __cplusplus || __cplusplus < 199711L 2859# error "Compiler does not advertise C++98 conformance" 2860#endif 2861 2862// These inclusions are to reject old compilers that 2863// lack the unsuffixed header files. 2864#include <cstdlib> 2865#include <exception> 2866 2867// <cassert> and <cstring> are *not* freestanding headers in C++98. 2868extern void assert (int); 2869namespace std { 2870 extern int strcmp (const char *, const char *); 2871} 2872 2873// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2874using std::exception; 2875using std::strcmp; 2876 2877namespace { 2878 2879void test_exception_syntax() 2880{ 2881 try { 2882 throw "test"; 2883 } catch (const char *s) { 2884 // Extra parentheses suppress a warning when building autoconf itself, 2885 // due to lint rules shared with more typical C programs. 2886 assert (!(strcmp) (s, "test")); 2887 } 2888} 2889 2890template <typename T> struct test_template 2891{ 2892 T const val; 2893 explicit test_template(T t) : val(t) {} 2894 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2895}; 2896 2897} // anonymous namespace 2898' 2899 2900# Test code for whether the C++ compiler supports C++98 (body of main) 2901ac_cxx_conftest_cxx98_main=' 2902 assert (argc); 2903 assert (! argv[0]); 2904{ 2905 test_exception_syntax (); 2906 test_template<double> tt (2.0); 2907 assert (tt.add (4) == 6.0); 2908 assert (true && !false); 2909} 2910' 2911 2912# Test code for whether the C++ compiler supports C++11 (global declarations) 2913ac_cxx_conftest_cxx11_globals=' 2914// Does the compiler advertise C++ 2011 conformance? 2915#if !defined __cplusplus || __cplusplus < 201103L 2916# error "Compiler does not advertise C++11 conformance" 2917#endif 2918 2919namespace cxx11test 2920{ 2921 constexpr int get_val() { return 20; } 2922 2923 struct testinit 2924 { 2925 int i; 2926 double d; 2927 }; 2928 2929 class delegate 2930 { 2931 public: 2932 delegate(int n) : n(n) {} 2933 delegate(): delegate(2354) {} 2934 2935 virtual int getval() { return this->n; }; 2936 protected: 2937 int n; 2938 }; 2939 2940 class overridden : public delegate 2941 { 2942 public: 2943 overridden(int n): delegate(n) {} 2944 virtual int getval() override final { return this->n * 2; } 2945 }; 2946 2947 class nocopy 2948 { 2949 public: 2950 nocopy(int i): i(i) {} 2951 nocopy() = default; 2952 nocopy(const nocopy&) = delete; 2953 nocopy & operator=(const nocopy&) = delete; 2954 private: 2955 int i; 2956 }; 2957 2958 // for testing lambda expressions 2959 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2960 { 2961 return f(v); 2962 } 2963 2964 // for testing variadic templates and trailing return types 2965 template <typename V> auto sum(V first) -> V 2966 { 2967 return first; 2968 } 2969 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2970 { 2971 return first + sum(rest...); 2972 } 2973} 2974' 2975 2976# Test code for whether the C++ compiler supports C++11 (body of main) 2977ac_cxx_conftest_cxx11_main=' 2978{ 2979 // Test auto and decltype 2980 auto a1 = 6538; 2981 auto a2 = 48573953.4; 2982 auto a3 = "String literal"; 2983 2984 int total = 0; 2985 for (auto i = a3; *i; ++i) { total += *i; } 2986 2987 decltype(a2) a4 = 34895.034; 2988} 2989{ 2990 // Test constexpr 2991 short sa[cxx11test::get_val()] = { 0 }; 2992} 2993{ 2994 // Test initializer lists 2995 cxx11test::testinit il = { 4323, 435234.23544 }; 2996} 2997{ 2998 // Test range-based for 2999 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3000 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3001 for (auto &x : array) { x += 23; } 3002} 3003{ 3004 // Test lambda expressions 3005 using cxx11test::eval; 3006 assert (eval ([](int x) { return x*2; }, 21) == 42); 3007 double d = 2.0; 3008 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3009 assert (d == 5.0); 3010 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3011 assert (d == 5.0); 3012} 3013{ 3014 // Test use of variadic templates 3015 using cxx11test::sum; 3016 auto a = sum(1); 3017 auto b = sum(1, 2); 3018 auto c = sum(1.0, 2.0, 3.0); 3019} 3020{ 3021 // Test constructor delegation 3022 cxx11test::delegate d1; 3023 cxx11test::delegate d2(); 3024 cxx11test::delegate d3(45); 3025} 3026{ 3027 // Test override and final 3028 cxx11test::overridden o1(55464); 3029} 3030{ 3031 // Test nullptr 3032 char *c = nullptr; 3033} 3034{ 3035 // Test template brackets 3036 test_template<::test_template<int>> v(test_template<int>(12)); 3037} 3038{ 3039 // Unicode literals 3040 char const *utf8 = u8"UTF-8 string \u2500"; 3041 char16_t const *utf16 = u"UTF-8 string \u2500"; 3042 char32_t const *utf32 = U"UTF-32 string \u2500"; 3043} 3044' 3045 3046# Test code for whether the C compiler supports C++11 (complete). 3047ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3048${ac_cxx_conftest_cxx11_globals} 3049 3050int 3051main (int argc, char **argv) 3052{ 3053 int ok = 0; 3054 ${ac_cxx_conftest_cxx98_main} 3055 ${ac_cxx_conftest_cxx11_main} 3056 return ok; 3057} 3058" 3059 3060# Test code for whether the C compiler supports C++98 (complete). 3061ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3062int 3063main (int argc, char **argv) 3064{ 3065 int ok = 0; 3066 ${ac_cxx_conftest_cxx98_main} 3067 return ok; 3068} 3069" 3070 3071 3072# Auxiliary files required by this configure script. 3073ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 3074 3075# Locations in which to look for auxiliary files. 3076ac_aux_dir_candidates="${srcdir}/config" 3077 3078# Search for a directory containing all of the required auxiliary files, 3079# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3080# If we don't find one directory that contains all the files we need, 3081# we report the set of missing files from the *first* directory in 3082# $ac_aux_dir_candidates and give up. 3083ac_missing_aux_files="" 3084ac_first_candidate=: 3085printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3087as_found=false 3088for as_dir in $ac_aux_dir_candidates 3089do 3090 IFS=$as_save_IFS 3091 case $as_dir in #((( 3092 '') as_dir=./ ;; 3093 */) ;; 3094 *) as_dir=$as_dir/ ;; 3095 esac 3096 as_found=: 3097 3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3099 ac_aux_dir_found=yes 3100 ac_install_sh= 3101 for ac_aux in $ac_aux_files 3102 do 3103 # As a special case, if "install-sh" is required, that requirement 3104 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3105 # and $ac_install_sh is set appropriately for whichever one is found. 3106 if test x"$ac_aux" = x"install-sh" 3107 then 3108 if test -f "${as_dir}install-sh"; then 3109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3110 ac_install_sh="${as_dir}install-sh -c" 3111 elif test -f "${as_dir}install.sh"; then 3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3113 ac_install_sh="${as_dir}install.sh -c" 3114 elif test -f "${as_dir}shtool"; then 3115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3116 ac_install_sh="${as_dir}shtool install -c" 3117 else 3118 ac_aux_dir_found=no 3119 if $ac_first_candidate; then 3120 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3121 else 3122 break 3123 fi 3124 fi 3125 else 3126 if test -f "${as_dir}${ac_aux}"; then 3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3128 else 3129 ac_aux_dir_found=no 3130 if $ac_first_candidate; then 3131 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3132 else 3133 break 3134 fi 3135 fi 3136 fi 3137 done 3138 if test "$ac_aux_dir_found" = yes; then 3139 ac_aux_dir="$as_dir" 3140 break 3141 fi 3142 ac_first_candidate=false 3143 3144 as_found=false 3145done 3146IFS=$as_save_IFS 3147if $as_found 3148then : 3149 3150else $as_nop 3151 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3152fi 3153 3154 3155# These three variables are undocumented and unsupported, 3156# and are intended to be withdrawn in a future Autoconf release. 3157# They can cause serious problems if a builder's source tree is in a directory 3158# whose full name contains unusual characters. 3159if test -f "${ac_aux_dir}config.guess"; then 3160 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3161fi 3162if test -f "${ac_aux_dir}config.sub"; then 3163 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3164fi 3165if test -f "$ac_aux_dir/configure"; then 3166 ac_configure="$SHELL ${ac_aux_dir}configure" 3167fi 3168 3169# Check that the precious variables saved in the cache have kept the same 3170# value. 3171ac_cache_corrupted=false 3172for ac_var in $ac_precious_vars; do 3173 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3174 eval ac_new_set=\$ac_env_${ac_var}_set 3175 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3176 eval ac_new_val=\$ac_env_${ac_var}_value 3177 case $ac_old_set,$ac_new_set in 3178 set,) 3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3180printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3181 ac_cache_corrupted=: ;; 3182 ,set) 3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3184printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3185 ac_cache_corrupted=: ;; 3186 ,);; 3187 *) 3188 if test "x$ac_old_val" != "x$ac_new_val"; then 3189 # differences in whitespace do not lead to failure. 3190 ac_old_val_w=`echo x $ac_old_val` 3191 ac_new_val_w=`echo x $ac_new_val` 3192 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3194printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3195 ac_cache_corrupted=: 3196 else 3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3198printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3199 eval $ac_var=\$ac_old_val 3200 fi 3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3202printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3204printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3205 fi;; 3206 esac 3207 # Pass precious variables to config.status. 3208 if test "$ac_new_set" = set; then 3209 case $ac_new_val in 3210 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3211 *) ac_arg=$ac_var=$ac_new_val ;; 3212 esac 3213 case " $ac_configure_args " in 3214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3215 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3216 esac 3217 fi 3218done 3219if $ac_cache_corrupted; then 3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3221printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3223printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3224 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3225 and start over" "$LINENO" 5 3226fi 3227## -------------------- ## 3228## Main body of script. ## 3229## -------------------- ## 3230 3231ac_ext=c 3232ac_cpp='$CPP $CPPFLAGS' 3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3235ac_compiler_gnu=$ac_cv_c_compiler_gnu 3236 3237 3238 3239CARES_VERSION_INFO="21:4:19" 3240 3241 3242 3243ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h" 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258# Expand $ac_aux_dir to an absolute path. 3259am_aux_dir=`cd "$ac_aux_dir" && pwd` 3260 3261ac_ext=c 3262ac_cpp='$CPP $CPPFLAGS' 3263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3265ac_compiler_gnu=$ac_cv_c_compiler_gnu 3266if test -n "$ac_tool_prefix"; then 3267 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3268set dummy ${ac_tool_prefix}gcc; ac_word=$2 3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3270printf %s "checking for $ac_word... " >&6; } 3271if test ${ac_cv_prog_CC+y} 3272then : 3273 printf %s "(cached) " >&6 3274else $as_nop 3275 if test -n "$CC"; then 3276 ac_cv_prog_CC="$CC" # Let the user override the test. 3277else 3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH 3280do 3281 IFS=$as_save_IFS 3282 case $as_dir in #((( 3283 '') as_dir=./ ;; 3284 */) ;; 3285 *) as_dir=$as_dir/ ;; 3286 esac 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3289 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294 done 3295IFS=$as_save_IFS 3296 3297fi 3298fi 3299CC=$ac_cv_prog_CC 3300if test -n "$CC"; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3302printf "%s\n" "$CC" >&6; } 3303else 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305printf "%s\n" "no" >&6; } 3306fi 3307 3308 3309fi 3310if test -z "$ac_cv_prog_CC"; then 3311 ac_ct_CC=$CC 3312 # Extract the first word of "gcc", so it can be a program name with args. 3313set dummy gcc; ac_word=$2 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3315printf %s "checking for $ac_word... " >&6; } 3316if test ${ac_cv_prog_ac_ct_CC+y} 3317then : 3318 printf %s "(cached) " >&6 3319else $as_nop 3320 if test -n "$ac_ct_CC"; then 3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3322else 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 case $as_dir in #((( 3328 '') as_dir=./ ;; 3329 */) ;; 3330 *) as_dir=$as_dir/ ;; 3331 esac 3332 for ac_exec_ext in '' $ac_executable_extensions; do 3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3334 ac_cv_prog_ac_ct_CC="gcc" 3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3336 break 2 3337 fi 3338done 3339 done 3340IFS=$as_save_IFS 3341 3342fi 3343fi 3344ac_ct_CC=$ac_cv_prog_ac_ct_CC 3345if test -n "$ac_ct_CC"; then 3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3347printf "%s\n" "$ac_ct_CC" >&6; } 3348else 3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3350printf "%s\n" "no" >&6; } 3351fi 3352 3353 if test "x$ac_ct_CC" = x; then 3354 CC="" 3355 else 3356 case $cross_compiling:$ac_tool_warned in 3357yes:) 3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3359printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3360ac_tool_warned=yes ;; 3361esac 3362 CC=$ac_ct_CC 3363 fi 3364else 3365 CC="$ac_cv_prog_CC" 3366fi 3367 3368if test -z "$CC"; then 3369 if test -n "$ac_tool_prefix"; then 3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3371set dummy ${ac_tool_prefix}cc; ac_word=$2 3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3373printf %s "checking for $ac_word... " >&6; } 3374if test ${ac_cv_prog_CC+y} 3375then : 3376 printf %s "(cached) " >&6 3377else $as_nop 3378 if test -n "$CC"; then 3379 ac_cv_prog_CC="$CC" # Let the user override the test. 3380else 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 case $as_dir in #((( 3386 '') as_dir=./ ;; 3387 */) ;; 3388 *) as_dir=$as_dir/ ;; 3389 esac 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3392 ac_cv_prog_CC="${ac_tool_prefix}cc" 3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3394 break 2 3395 fi 3396done 3397 done 3398IFS=$as_save_IFS 3399 3400fi 3401fi 3402CC=$ac_cv_prog_CC 3403if test -n "$CC"; then 3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3405printf "%s\n" "$CC" >&6; } 3406else 3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408printf "%s\n" "no" >&6; } 3409fi 3410 3411 3412 fi 3413fi 3414if test -z "$CC"; then 3415 # Extract the first word of "cc", so it can be a program name with args. 3416set dummy cc; ac_word=$2 3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3418printf %s "checking for $ac_word... " >&6; } 3419if test ${ac_cv_prog_CC+y} 3420then : 3421 printf %s "(cached) " >&6 3422else $as_nop 3423 if test -n "$CC"; then 3424 ac_cv_prog_CC="$CC" # Let the user override the test. 3425else 3426 ac_prog_rejected=no 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 case $as_dir in #((( 3432 '') as_dir=./ ;; 3433 */) ;; 3434 *) as_dir=$as_dir/ ;; 3435 esac 3436 for ac_exec_ext in '' $ac_executable_extensions; do 3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3438 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3439 ac_prog_rejected=yes 3440 continue 3441 fi 3442 ac_cv_prog_CC="cc" 3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3444 break 2 3445 fi 3446done 3447 done 3448IFS=$as_save_IFS 3449 3450if test $ac_prog_rejected = yes; then 3451 # We found a bogon in the path, so make sure we never use it. 3452 set dummy $ac_cv_prog_CC 3453 shift 3454 if test $# != 0; then 3455 # We chose a different compiler from the bogus one. 3456 # However, it has the same basename, so the bogon will be chosen 3457 # first if we set CC to just the basename; use the full file name. 3458 shift 3459 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3460 fi 3461fi 3462fi 3463fi 3464CC=$ac_cv_prog_CC 3465if test -n "$CC"; then 3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3467printf "%s\n" "$CC" >&6; } 3468else 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3470printf "%s\n" "no" >&6; } 3471fi 3472 3473 3474fi 3475if test -z "$CC"; then 3476 if test -n "$ac_tool_prefix"; then 3477 for ac_prog in cl.exe 3478 do 3479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3480set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3482printf %s "checking for $ac_word... " >&6; } 3483if test ${ac_cv_prog_CC+y} 3484then : 3485 printf %s "(cached) " >&6 3486else $as_nop 3487 if test -n "$CC"; then 3488 ac_cv_prog_CC="$CC" # Let the user override the test. 3489else 3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3491for as_dir in $PATH 3492do 3493 IFS=$as_save_IFS 3494 case $as_dir in #((( 3495 '') as_dir=./ ;; 3496 */) ;; 3497 *) as_dir=$as_dir/ ;; 3498 esac 3499 for ac_exec_ext in '' $ac_executable_extensions; do 3500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3503 break 2 3504 fi 3505done 3506 done 3507IFS=$as_save_IFS 3508 3509fi 3510fi 3511CC=$ac_cv_prog_CC 3512if test -n "$CC"; then 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3514printf "%s\n" "$CC" >&6; } 3515else 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3517printf "%s\n" "no" >&6; } 3518fi 3519 3520 3521 test -n "$CC" && break 3522 done 3523fi 3524if test -z "$CC"; then 3525 ac_ct_CC=$CC 3526 for ac_prog in cl.exe 3527do 3528 # Extract the first word of "$ac_prog", so it can be a program name with args. 3529set dummy $ac_prog; ac_word=$2 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3531printf %s "checking for $ac_word... " >&6; } 3532if test ${ac_cv_prog_ac_ct_CC+y} 3533then : 3534 printf %s "(cached) " >&6 3535else $as_nop 3536 if test -n "$ac_ct_CC"; then 3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3538else 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 case $as_dir in #((( 3544 '') as_dir=./ ;; 3545 */) ;; 3546 *) as_dir=$as_dir/ ;; 3547 esac 3548 for ac_exec_ext in '' $ac_executable_extensions; do 3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3550 ac_cv_prog_ac_ct_CC="$ac_prog" 3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3552 break 2 3553 fi 3554done 3555 done 3556IFS=$as_save_IFS 3557 3558fi 3559fi 3560ac_ct_CC=$ac_cv_prog_ac_ct_CC 3561if test -n "$ac_ct_CC"; then 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3563printf "%s\n" "$ac_ct_CC" >&6; } 3564else 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3566printf "%s\n" "no" >&6; } 3567fi 3568 3569 3570 test -n "$ac_ct_CC" && break 3571done 3572 3573 if test "x$ac_ct_CC" = x; then 3574 CC="" 3575 else 3576 case $cross_compiling:$ac_tool_warned in 3577yes:) 3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3579printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3580ac_tool_warned=yes ;; 3581esac 3582 CC=$ac_ct_CC 3583 fi 3584fi 3585 3586fi 3587if test -z "$CC"; then 3588 if test -n "$ac_tool_prefix"; then 3589 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3590set dummy ${ac_tool_prefix}clang; ac_word=$2 3591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3592printf %s "checking for $ac_word... " >&6; } 3593if test ${ac_cv_prog_CC+y} 3594then : 3595 printf %s "(cached) " >&6 3596else $as_nop 3597 if test -n "$CC"; then 3598 ac_cv_prog_CC="$CC" # Let the user override the test. 3599else 3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601for as_dir in $PATH 3602do 3603 IFS=$as_save_IFS 3604 case $as_dir in #((( 3605 '') as_dir=./ ;; 3606 */) ;; 3607 *) as_dir=$as_dir/ ;; 3608 esac 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3611 ac_cv_prog_CC="${ac_tool_prefix}clang" 3612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3613 break 2 3614 fi 3615done 3616 done 3617IFS=$as_save_IFS 3618 3619fi 3620fi 3621CC=$ac_cv_prog_CC 3622if test -n "$CC"; then 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3624printf "%s\n" "$CC" >&6; } 3625else 3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3627printf "%s\n" "no" >&6; } 3628fi 3629 3630 3631fi 3632if test -z "$ac_cv_prog_CC"; then 3633 ac_ct_CC=$CC 3634 # Extract the first word of "clang", so it can be a program name with args. 3635set dummy clang; ac_word=$2 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3637printf %s "checking for $ac_word... " >&6; } 3638if test ${ac_cv_prog_ac_ct_CC+y} 3639then : 3640 printf %s "(cached) " >&6 3641else $as_nop 3642 if test -n "$ac_ct_CC"; then 3643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3644else 3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646for as_dir in $PATH 3647do 3648 IFS=$as_save_IFS 3649 case $as_dir in #((( 3650 '') as_dir=./ ;; 3651 */) ;; 3652 *) as_dir=$as_dir/ ;; 3653 esac 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_ac_ct_CC="clang" 3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661 done 3662IFS=$as_save_IFS 3663 3664fi 3665fi 3666ac_ct_CC=$ac_cv_prog_ac_ct_CC 3667if test -n "$ac_ct_CC"; then 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3669printf "%s\n" "$ac_ct_CC" >&6; } 3670else 3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3672printf "%s\n" "no" >&6; } 3673fi 3674 3675 if test "x$ac_ct_CC" = x; then 3676 CC="" 3677 else 3678 case $cross_compiling:$ac_tool_warned in 3679yes:) 3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3681printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3682ac_tool_warned=yes ;; 3683esac 3684 CC=$ac_ct_CC 3685 fi 3686else 3687 CC="$ac_cv_prog_CC" 3688fi 3689 3690fi 3691 3692 3693test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3694printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3695as_fn_error $? "no acceptable C compiler found in \$PATH 3696See \`config.log' for more details" "$LINENO" 5; } 3697 3698# Provide some information about the compiler. 3699printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3700set X $ac_compile 3701ac_compiler=$2 3702for ac_option in --version -v -V -qversion -version; do 3703 { { ac_try="$ac_compiler $ac_option >&5" 3704case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707esac 3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3709printf "%s\n" "$ac_try_echo"; } >&5 3710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3711 ac_status=$? 3712 if test -s conftest.err; then 3713 sed '10a\ 3714... rest of stderr output deleted ... 3715 10q' conftest.err >conftest.er1 3716 cat conftest.er1 >&5 3717 fi 3718 rm -f conftest.er1 conftest.err 3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; } 3721done 3722 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main (void) 3728{ 3729 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734ac_clean_files_save=$ac_clean_files 3735ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3736# Try to create an executable without -o first, disregard a.out. 3737# It will help us diagnose broken compilers, and finding out an intuition 3738# of exeext. 3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3740printf %s "checking whether the C compiler works... " >&6; } 3741ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3742 3743# The possible output files: 3744ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3745 3746ac_rmfiles= 3747for ac_file in $ac_files 3748do 3749 case $ac_file in 3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3751 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3752 esac 3753done 3754rm -f $ac_rmfiles 3755 3756if { { ac_try="$ac_link_default" 3757case "(($ac_try" in 3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 *) ac_try_echo=$ac_try;; 3760esac 3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762printf "%s\n" "$ac_try_echo"; } >&5 3763 (eval "$ac_link_default") 2>&5 3764 ac_status=$? 3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 test $ac_status = 0; } 3767then : 3768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3769# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3770# in a Makefile. We should not override ac_cv_exeext if it was cached, 3771# so that the user can short-circuit this test for compilers unknown to 3772# Autoconf. 3773for ac_file in $ac_files '' 3774do 3775 test -f "$ac_file" || continue 3776 case $ac_file in 3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3778 ;; 3779 [ab].out ) 3780 # We found the default executable, but exeext='' is most 3781 # certainly right. 3782 break;; 3783 *.* ) 3784 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3785 then :; else 3786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3787 fi 3788 # We set ac_cv_exeext here because the later test for it is not 3789 # safe: cross compilers may not add the suffix if given an `-o' 3790 # argument, so we may need to know it at that point already. 3791 # Even if this section looks crufty: it has the advantage of 3792 # actually working. 3793 break;; 3794 * ) 3795 break;; 3796 esac 3797done 3798test "$ac_cv_exeext" = no && ac_cv_exeext= 3799 3800else $as_nop 3801 ac_file='' 3802fi 3803if test -z "$ac_file" 3804then : 3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3806printf "%s\n" "no" >&6; } 3807printf "%s\n" "$as_me: failed program was:" >&5 3808sed 's/^/| /' conftest.$ac_ext >&5 3809 3810{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3811printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3812as_fn_error 77 "C compiler cannot create executables 3813See \`config.log' for more details" "$LINENO" 5; } 3814else $as_nop 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3816printf "%s\n" "yes" >&6; } 3817fi 3818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3819printf %s "checking for C compiler default output file name... " >&6; } 3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3821printf "%s\n" "$ac_file" >&6; } 3822ac_exeext=$ac_cv_exeext 3823 3824rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3825ac_clean_files=$ac_clean_files_save 3826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3827printf %s "checking for suffix of executables... " >&6; } 3828if { { ac_try="$ac_link" 3829case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832esac 3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3834printf "%s\n" "$ac_try_echo"; } >&5 3835 (eval "$ac_link") 2>&5 3836 ac_status=$? 3837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3838 test $ac_status = 0; } 3839then : 3840 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3841# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3842# work properly (i.e., refer to `conftest.exe'), while it won't with 3843# `rm'. 3844for ac_file in conftest.exe conftest conftest.*; do 3845 test -f "$ac_file" || continue 3846 case $ac_file in 3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3849 break;; 3850 * ) break;; 3851 esac 3852done 3853else $as_nop 3854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3855printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3856as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3857See \`config.log' for more details" "$LINENO" 5; } 3858fi 3859rm -f conftest conftest$ac_cv_exeext 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3861printf "%s\n" "$ac_cv_exeext" >&6; } 3862 3863rm -f conftest.$ac_ext 3864EXEEXT=$ac_cv_exeext 3865ac_exeext=$EXEEXT 3866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#include <stdio.h> 3869int 3870main (void) 3871{ 3872FILE *f = fopen ("conftest.out", "w"); 3873 return ferror (f) || fclose (f) != 0; 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879ac_clean_files="$ac_clean_files conftest.out" 3880# Check that the compiler produces executables we can run. If not, either 3881# the compiler is broken, or we cross compile. 3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3883printf %s "checking whether we are cross compiling... " >&6; } 3884if test "$cross_compiling" != yes; then 3885 { { ac_try="$ac_link" 3886case "(($ac_try" in 3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3888 *) ac_try_echo=$ac_try;; 3889esac 3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3891printf "%s\n" "$ac_try_echo"; } >&5 3892 (eval "$ac_link") 2>&5 3893 ac_status=$? 3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3895 test $ac_status = 0; } 3896 if { ac_try='./conftest$ac_cv_exeext' 3897 { { case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3902printf "%s\n" "$ac_try_echo"; } >&5 3903 (eval "$ac_try") 2>&5 3904 ac_status=$? 3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3906 test $ac_status = 0; }; }; then 3907 cross_compiling=no 3908 else 3909 if test "$cross_compiling" = maybe; then 3910 cross_compiling=yes 3911 else 3912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3913printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3914as_fn_error 77 "cannot run C compiled programs. 3915If you meant to cross compile, use \`--host'. 3916See \`config.log' for more details" "$LINENO" 5; } 3917 fi 3918 fi 3919fi 3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3921printf "%s\n" "$cross_compiling" >&6; } 3922 3923rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3924ac_clean_files=$ac_clean_files_save 3925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3926printf %s "checking for suffix of object files... " >&6; } 3927if test ${ac_cv_objext+y} 3928then : 3929 printf %s "(cached) " >&6 3930else $as_nop 3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932/* end confdefs.h. */ 3933 3934int 3935main (void) 3936{ 3937 3938 ; 3939 return 0; 3940} 3941_ACEOF 3942rm -f conftest.o conftest.obj 3943if { { ac_try="$ac_compile" 3944case "(($ac_try" in 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3946 *) ac_try_echo=$ac_try;; 3947esac 3948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3949printf "%s\n" "$ac_try_echo"; } >&5 3950 (eval "$ac_compile") 2>&5 3951 ac_status=$? 3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3953 test $ac_status = 0; } 3954then : 3955 for ac_file in conftest.o conftest.obj conftest.*; do 3956 test -f "$ac_file" || continue; 3957 case $ac_file in 3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3960 break;; 3961 esac 3962done 3963else $as_nop 3964 printf "%s\n" "$as_me: failed program was:" >&5 3965sed 's/^/| /' conftest.$ac_ext >&5 3966 3967{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3968printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3969as_fn_error $? "cannot compute suffix of object files: cannot compile 3970See \`config.log' for more details" "$LINENO" 5; } 3971fi 3972rm -f conftest.$ac_cv_objext conftest.$ac_ext 3973fi 3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3975printf "%s\n" "$ac_cv_objext" >&6; } 3976OBJEXT=$ac_cv_objext 3977ac_objext=$OBJEXT 3978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3979printf %s "checking whether the compiler supports GNU C... " >&6; } 3980if test ${ac_cv_c_compiler_gnu+y} 3981then : 3982 printf %s "(cached) " >&6 3983else $as_nop 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987int 3988main (void) 3989{ 3990#ifndef __GNUC__ 3991 choke me 3992#endif 3993 3994 ; 3995 return 0; 3996} 3997_ACEOF 3998if ac_fn_c_try_compile "$LINENO" 3999then : 4000 ac_compiler_gnu=yes 4001else $as_nop 4002 ac_compiler_gnu=no 4003fi 4004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4005ac_cv_c_compiler_gnu=$ac_compiler_gnu 4006 4007fi 4008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4009printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4010ac_compiler_gnu=$ac_cv_c_compiler_gnu 4011 4012if test $ac_compiler_gnu = yes; then 4013 GCC=yes 4014else 4015 GCC= 4016fi 4017ac_test_CFLAGS=${CFLAGS+y} 4018ac_save_CFLAGS=$CFLAGS 4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4020printf %s "checking whether $CC accepts -g... " >&6; } 4021if test ${ac_cv_prog_cc_g+y} 4022then : 4023 printf %s "(cached) " >&6 4024else $as_nop 4025 ac_save_c_werror_flag=$ac_c_werror_flag 4026 ac_c_werror_flag=yes 4027 ac_cv_prog_cc_g=no 4028 CFLAGS="-g" 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031 4032int 4033main (void) 4034{ 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040if ac_fn_c_try_compile "$LINENO" 4041then : 4042 ac_cv_prog_cc_g=yes 4043else $as_nop 4044 CFLAGS="" 4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047 4048int 4049main (void) 4050{ 4051 4052 ; 4053 return 0; 4054} 4055_ACEOF 4056if ac_fn_c_try_compile "$LINENO" 4057then : 4058 4059else $as_nop 4060 ac_c_werror_flag=$ac_save_c_werror_flag 4061 CFLAGS="-g" 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4063/* end confdefs.h. */ 4064 4065int 4066main (void) 4067{ 4068 4069 ; 4070 return 0; 4071} 4072_ACEOF 4073if ac_fn_c_try_compile "$LINENO" 4074then : 4075 ac_cv_prog_cc_g=yes 4076fi 4077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4078fi 4079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4080fi 4081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4082 ac_c_werror_flag=$ac_save_c_werror_flag 4083fi 4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4085printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4086if test $ac_test_CFLAGS; then 4087 CFLAGS=$ac_save_CFLAGS 4088elif test $ac_cv_prog_cc_g = yes; then 4089 if test "$GCC" = yes; then 4090 CFLAGS="-g -O2" 4091 else 4092 CFLAGS="-g" 4093 fi 4094else 4095 if test "$GCC" = yes; then 4096 CFLAGS="-O2" 4097 else 4098 CFLAGS= 4099 fi 4100fi 4101ac_prog_cc_stdc=no 4102if test x$ac_prog_cc_stdc = xno 4103then : 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4105printf %s "checking for $CC option to enable C11 features... " >&6; } 4106if test ${ac_cv_prog_cc_c11+y} 4107then : 4108 printf %s "(cached) " >&6 4109else $as_nop 4110 ac_cv_prog_cc_c11=no 4111ac_save_CC=$CC 4112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114$ac_c_conftest_c11_program 4115_ACEOF 4116for ac_arg in '' -std=gnu11 4117do 4118 CC="$ac_save_CC $ac_arg" 4119 if ac_fn_c_try_compile "$LINENO" 4120then : 4121 ac_cv_prog_cc_c11=$ac_arg 4122fi 4123rm -f core conftest.err conftest.$ac_objext conftest.beam 4124 test "x$ac_cv_prog_cc_c11" != "xno" && break 4125done 4126rm -f conftest.$ac_ext 4127CC=$ac_save_CC 4128fi 4129 4130if test "x$ac_cv_prog_cc_c11" = xno 4131then : 4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4133printf "%s\n" "unsupported" >&6; } 4134else $as_nop 4135 if test "x$ac_cv_prog_cc_c11" = x 4136then : 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4138printf "%s\n" "none needed" >&6; } 4139else $as_nop 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4141printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4142 CC="$CC $ac_cv_prog_cc_c11" 4143fi 4144 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4145 ac_prog_cc_stdc=c11 4146fi 4147fi 4148if test x$ac_prog_cc_stdc = xno 4149then : 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4151printf %s "checking for $CC option to enable C99 features... " >&6; } 4152if test ${ac_cv_prog_cc_c99+y} 4153then : 4154 printf %s "(cached) " >&6 4155else $as_nop 4156 ac_cv_prog_cc_c99=no 4157ac_save_CC=$CC 4158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4159/* end confdefs.h. */ 4160$ac_c_conftest_c99_program 4161_ACEOF 4162for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4163do 4164 CC="$ac_save_CC $ac_arg" 4165 if ac_fn_c_try_compile "$LINENO" 4166then : 4167 ac_cv_prog_cc_c99=$ac_arg 4168fi 4169rm -f core conftest.err conftest.$ac_objext conftest.beam 4170 test "x$ac_cv_prog_cc_c99" != "xno" && break 4171done 4172rm -f conftest.$ac_ext 4173CC=$ac_save_CC 4174fi 4175 4176if test "x$ac_cv_prog_cc_c99" = xno 4177then : 4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4179printf "%s\n" "unsupported" >&6; } 4180else $as_nop 4181 if test "x$ac_cv_prog_cc_c99" = x 4182then : 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4184printf "%s\n" "none needed" >&6; } 4185else $as_nop 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4187printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4188 CC="$CC $ac_cv_prog_cc_c99" 4189fi 4190 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4191 ac_prog_cc_stdc=c99 4192fi 4193fi 4194if test x$ac_prog_cc_stdc = xno 4195then : 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4197printf %s "checking for $CC option to enable C89 features... " >&6; } 4198if test ${ac_cv_prog_cc_c89+y} 4199then : 4200 printf %s "(cached) " >&6 4201else $as_nop 4202 ac_cv_prog_cc_c89=no 4203ac_save_CC=$CC 4204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205/* end confdefs.h. */ 4206$ac_c_conftest_c89_program 4207_ACEOF 4208for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4209do 4210 CC="$ac_save_CC $ac_arg" 4211 if ac_fn_c_try_compile "$LINENO" 4212then : 4213 ac_cv_prog_cc_c89=$ac_arg 4214fi 4215rm -f core conftest.err conftest.$ac_objext conftest.beam 4216 test "x$ac_cv_prog_cc_c89" != "xno" && break 4217done 4218rm -f conftest.$ac_ext 4219CC=$ac_save_CC 4220fi 4221 4222if test "x$ac_cv_prog_cc_c89" = xno 4223then : 4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4225printf "%s\n" "unsupported" >&6; } 4226else $as_nop 4227 if test "x$ac_cv_prog_cc_c89" = x 4228then : 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4230printf "%s\n" "none needed" >&6; } 4231else $as_nop 4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4233printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4234 CC="$CC $ac_cv_prog_cc_c89" 4235fi 4236 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4237 ac_prog_cc_stdc=c89 4238fi 4239fi 4240 4241ac_ext=c 4242ac_cpp='$CPP $CPPFLAGS' 4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4245ac_compiler_gnu=$ac_cv_c_compiler_gnu 4246 4247 4248 ac_ext=c 4249ac_cpp='$CPP $CPPFLAGS' 4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4252ac_compiler_gnu=$ac_cv_c_compiler_gnu 4253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4254printf %s "checking whether $CC understands -c and -o together... " >&6; } 4255if test ${am_cv_prog_cc_c_o+y} 4256then : 4257 printf %s "(cached) " >&6 4258else $as_nop 4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261 4262int 4263main (void) 4264{ 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270 # Make sure it works both with $CC and with simple cc. 4271 # Following AC_PROG_CC_C_O, we do the test twice because some 4272 # compilers refuse to overwrite an existing .o file with -o, 4273 # though they will create one. 4274 am_cv_prog_cc_c_o=yes 4275 for am_i in 1 2; do 4276 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4277 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4278 ac_status=$? 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); } \ 4281 && test -f conftest2.$ac_objext; then 4282 : OK 4283 else 4284 am_cv_prog_cc_c_o=no 4285 break 4286 fi 4287 done 4288 rm -f core conftest* 4289 unset am_i 4290fi 4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4292printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4293if test "$am_cv_prog_cc_c_o" != yes; then 4294 # Losing compiler, so override with the script. 4295 # FIXME: It is wrong to rewrite CC. 4296 # But if we don't then we get into trouble of one sort or another. 4297 # A longer-term fix would be to have automake use am__CC in this case, 4298 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4299 CC="$am_aux_dir/compile $CC" 4300fi 4301ac_ext=c 4302ac_cpp='$CPP $CPPFLAGS' 4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4305ac_compiler_gnu=$ac_cv_c_compiler_gnu 4306 4307 4308 4309ac_header= ac_cache= 4310for ac_item in $ac_header_c_list 4311do 4312 if test $ac_cache; then 4313 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4314 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4315 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4316 fi 4317 ac_header= ac_cache= 4318 elif test $ac_header; then 4319 ac_cache=$ac_item 4320 else 4321 ac_header=$ac_item 4322 fi 4323done 4324 4325 4326 4327 4328 4329 4330 4331 4332if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4333then : 4334 4335printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4336 4337fi 4338 4339 4340 4341 4342 4343 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4345printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4346if test ${ac_cv_safe_to_define___extensions__+y} 4347then : 4348 printf %s "(cached) " >&6 4349else $as_nop 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4351/* end confdefs.h. */ 4352 4353# define __EXTENSIONS__ 1 4354 $ac_includes_default 4355int 4356main (void) 4357{ 4358 4359 ; 4360 return 0; 4361} 4362_ACEOF 4363if ac_fn_c_try_compile "$LINENO" 4364then : 4365 ac_cv_safe_to_define___extensions__=yes 4366else $as_nop 4367 ac_cv_safe_to_define___extensions__=no 4368fi 4369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4370fi 4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4372printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4373 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4375printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4376if test ${ac_cv_should_define__xopen_source+y} 4377then : 4378 printf %s "(cached) " >&6 4379else $as_nop 4380 ac_cv_should_define__xopen_source=no 4381 if test $ac_cv_header_wchar_h = yes 4382then : 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385 4386 #include <wchar.h> 4387 mbstate_t x; 4388int 4389main (void) 4390{ 4391 4392 ; 4393 return 0; 4394} 4395_ACEOF 4396if ac_fn_c_try_compile "$LINENO" 4397then : 4398 4399else $as_nop 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402 4403 #define _XOPEN_SOURCE 500 4404 #include <wchar.h> 4405 mbstate_t x; 4406int 4407main (void) 4408{ 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414if ac_fn_c_try_compile "$LINENO" 4415then : 4416 ac_cv_should_define__xopen_source=yes 4417fi 4418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4419fi 4420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4421fi 4422fi 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4424printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4425 4426 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4427 4428 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4429 4430 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4431 4432 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4433 4434 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4435 4436 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4437 4438 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4439 4440 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4441 4442 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4443 4444 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4445 4446 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4447 4448 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4449 4450 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4451 4452 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4453 4454 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4455 4456 if test $ac_cv_header_minix_config_h = yes 4457then : 4458 MINIX=yes 4459 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4460 4461 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4462 4463 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4464 4465else $as_nop 4466 MINIX= 4467fi 4468 if test $ac_cv_safe_to_define___extensions__ = yes 4469then : 4470 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4471 4472fi 4473 if test $ac_cv_should_define__xopen_source = yes 4474then : 4475 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4476 4477fi 4478 4479 4480 4481 4482 4483 4484 4485ac_ext=cpp 4486ac_cpp='$CXXCPP $CPPFLAGS' 4487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4490if test -z "$CXX"; then 4491 if test -n "$CCC"; then 4492 CXX=$CCC 4493 else 4494 if test -n "$ac_tool_prefix"; then 4495 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4496 do 4497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4498set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4500printf %s "checking for $ac_word... " >&6; } 4501if test ${ac_cv_prog_CXX+y} 4502then : 4503 printf %s "(cached) " >&6 4504else $as_nop 4505 if test -n "$CXX"; then 4506 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4507else 4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4509for as_dir in $PATH 4510do 4511 IFS=$as_save_IFS 4512 case $as_dir in #((( 4513 '') as_dir=./ ;; 4514 */) ;; 4515 *) as_dir=$as_dir/ ;; 4516 esac 4517 for ac_exec_ext in '' $ac_executable_extensions; do 4518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4521 break 2 4522 fi 4523done 4524 done 4525IFS=$as_save_IFS 4526 4527fi 4528fi 4529CXX=$ac_cv_prog_CXX 4530if test -n "$CXX"; then 4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4532printf "%s\n" "$CXX" >&6; } 4533else 4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4535printf "%s\n" "no" >&6; } 4536fi 4537 4538 4539 test -n "$CXX" && break 4540 done 4541fi 4542if test -z "$CXX"; then 4543 ac_ct_CXX=$CXX 4544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 4545do 4546 # Extract the first word of "$ac_prog", so it can be a program name with args. 4547set dummy $ac_prog; ac_word=$2 4548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549printf %s "checking for $ac_word... " >&6; } 4550if test ${ac_cv_prog_ac_ct_CXX+y} 4551then : 4552 printf %s "(cached) " >&6 4553else $as_nop 4554 if test -n "$ac_ct_CXX"; then 4555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4556else 4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558for as_dir in $PATH 4559do 4560 IFS=$as_save_IFS 4561 case $as_dir in #((( 4562 '') as_dir=./ ;; 4563 */) ;; 4564 *) as_dir=$as_dir/ ;; 4565 esac 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4568 ac_cv_prog_ac_ct_CXX="$ac_prog" 4569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572done 4573 done 4574IFS=$as_save_IFS 4575 4576fi 4577fi 4578ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4579if test -n "$ac_ct_CXX"; then 4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4581printf "%s\n" "$ac_ct_CXX" >&6; } 4582else 4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4584printf "%s\n" "no" >&6; } 4585fi 4586 4587 4588 test -n "$ac_ct_CXX" && break 4589done 4590 4591 if test "x$ac_ct_CXX" = x; then 4592 CXX="g++" 4593 else 4594 case $cross_compiling:$ac_tool_warned in 4595yes:) 4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4597printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4598ac_tool_warned=yes ;; 4599esac 4600 CXX=$ac_ct_CXX 4601 fi 4602fi 4603 4604 fi 4605fi 4606# Provide some information about the compiler. 4607printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4608set X $ac_compile 4609ac_compiler=$2 4610for ac_option in --version -v -V -qversion; do 4611 { { ac_try="$ac_compiler $ac_option >&5" 4612case "(($ac_try" in 4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4614 *) ac_try_echo=$ac_try;; 4615esac 4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4617printf "%s\n" "$ac_try_echo"; } >&5 4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4619 ac_status=$? 4620 if test -s conftest.err; then 4621 sed '10a\ 4622... rest of stderr output deleted ... 4623 10q' conftest.err >conftest.er1 4624 cat conftest.er1 >&5 4625 fi 4626 rm -f conftest.er1 conftest.err 4627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4628 test $ac_status = 0; } 4629done 4630 4631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 4632printf %s "checking whether the compiler supports GNU C++... " >&6; } 4633if test ${ac_cv_cxx_compiler_gnu+y} 4634then : 4635 printf %s "(cached) " >&6 4636else $as_nop 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639 4640int 4641main (void) 4642{ 4643#ifndef __GNUC__ 4644 choke me 4645#endif 4646 4647 ; 4648 return 0; 4649} 4650_ACEOF 4651if ac_fn_cxx_try_compile "$LINENO" 4652then : 4653 ac_compiler_gnu=yes 4654else $as_nop 4655 ac_compiler_gnu=no 4656fi 4657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4658ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4659 4660fi 4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4662printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 4663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4664 4665if test $ac_compiler_gnu = yes; then 4666 GXX=yes 4667else 4668 GXX= 4669fi 4670ac_test_CXXFLAGS=${CXXFLAGS+y} 4671ac_save_CXXFLAGS=$CXXFLAGS 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4673printf %s "checking whether $CXX accepts -g... " >&6; } 4674if test ${ac_cv_prog_cxx_g+y} 4675then : 4676 printf %s "(cached) " >&6 4677else $as_nop 4678 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4679 ac_cxx_werror_flag=yes 4680 ac_cv_prog_cxx_g=no 4681 CXXFLAGS="-g" 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684 4685int 4686main (void) 4687{ 4688 4689 ; 4690 return 0; 4691} 4692_ACEOF 4693if ac_fn_cxx_try_compile "$LINENO" 4694then : 4695 ac_cv_prog_cxx_g=yes 4696else $as_nop 4697 CXXFLAGS="" 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700 4701int 4702main (void) 4703{ 4704 4705 ; 4706 return 0; 4707} 4708_ACEOF 4709if ac_fn_cxx_try_compile "$LINENO" 4710then : 4711 4712else $as_nop 4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4714 CXXFLAGS="-g" 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717 4718int 4719main (void) 4720{ 4721 4722 ; 4723 return 0; 4724} 4725_ACEOF 4726if ac_fn_cxx_try_compile "$LINENO" 4727then : 4728 ac_cv_prog_cxx_g=yes 4729fi 4730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4731fi 4732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4735 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4736fi 4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4738printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 4739if test $ac_test_CXXFLAGS; then 4740 CXXFLAGS=$ac_save_CXXFLAGS 4741elif test $ac_cv_prog_cxx_g = yes; then 4742 if test "$GXX" = yes; then 4743 CXXFLAGS="-g -O2" 4744 else 4745 CXXFLAGS="-g" 4746 fi 4747else 4748 if test "$GXX" = yes; then 4749 CXXFLAGS="-O2" 4750 else 4751 CXXFLAGS= 4752 fi 4753fi 4754ac_prog_cxx_stdcxx=no 4755if test x$ac_prog_cxx_stdcxx = xno 4756then : 4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 4758printf %s "checking for $CXX option to enable C++11 features... " >&6; } 4759if test ${ac_cv_prog_cxx_cxx11+y} 4760then : 4761 printf %s "(cached) " >&6 4762else $as_nop 4763 ac_cv_prog_cxx_cxx11=no 4764ac_save_CXX=$CXX 4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767$ac_cxx_conftest_cxx11_program 4768_ACEOF 4769for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 4770do 4771 CXX="$ac_save_CXX $ac_arg" 4772 if ac_fn_cxx_try_compile "$LINENO" 4773then : 4774 ac_cv_prog_cxx_cxx11=$ac_arg 4775fi 4776rm -f core conftest.err conftest.$ac_objext conftest.beam 4777 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 4778done 4779rm -f conftest.$ac_ext 4780CXX=$ac_save_CXX 4781fi 4782 4783if test "x$ac_cv_prog_cxx_cxx11" = xno 4784then : 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4786printf "%s\n" "unsupported" >&6; } 4787else $as_nop 4788 if test "x$ac_cv_prog_cxx_cxx11" = x 4789then : 4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4791printf "%s\n" "none needed" >&6; } 4792else $as_nop 4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 4794printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 4795 CXX="$CXX $ac_cv_prog_cxx_cxx11" 4796fi 4797 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 4798 ac_prog_cxx_stdcxx=cxx11 4799fi 4800fi 4801if test x$ac_prog_cxx_stdcxx = xno 4802then : 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 4804printf %s "checking for $CXX option to enable C++98 features... " >&6; } 4805if test ${ac_cv_prog_cxx_cxx98+y} 4806then : 4807 printf %s "(cached) " >&6 4808else $as_nop 4809 ac_cv_prog_cxx_cxx98=no 4810ac_save_CXX=$CXX 4811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813$ac_cxx_conftest_cxx98_program 4814_ACEOF 4815for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 4816do 4817 CXX="$ac_save_CXX $ac_arg" 4818 if ac_fn_cxx_try_compile "$LINENO" 4819then : 4820 ac_cv_prog_cxx_cxx98=$ac_arg 4821fi 4822rm -f core conftest.err conftest.$ac_objext conftest.beam 4823 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 4824done 4825rm -f conftest.$ac_ext 4826CXX=$ac_save_CXX 4827fi 4828 4829if test "x$ac_cv_prog_cxx_cxx98" = xno 4830then : 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4832printf "%s\n" "unsupported" >&6; } 4833else $as_nop 4834 if test "x$ac_cv_prog_cxx_cxx98" = x 4835then : 4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4837printf "%s\n" "none needed" >&6; } 4838else $as_nop 4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 4840printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 4841 CXX="$CXX $ac_cv_prog_cxx_cxx98" 4842fi 4843 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 4844 ac_prog_cxx_stdcxx=cxx98 4845fi 4846fi 4847 4848ac_ext=cpp 4849ac_cpp='$CXXCPP $CPPFLAGS' 4850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4853 4854 4855 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false 4856 ac_ext=cpp 4857ac_cpp='$CXXCPP $CPPFLAGS' 4858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4861 ac_success=no 4862 4863 4864 4865 4866 4867 if test x$ac_success = xno; then 4868 for alternative in ${ax_cxx_compile_alternatives}; do 4869 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do 4870 if test x"$switch" = xMSVC; then 4871 switch=-std:c++${alternative} 4872 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_${switch}_MSVC" | $as_tr_sh` 4873 else 4874 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 4875 fi 4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 4877printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; } 4878if eval test \${$cachevar+y} 4879then : 4880 printf %s "(cached) " >&6 4881else $as_nop 4882 ac_save_CXX="$CXX" 4883 CXX="$CXX $switch" 4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4885/* end confdefs.h. */ 4886 4887 4888// If the compiler admits that it is not ready for C++11, why torture it? 4889// Hopefully, this will speed up the test. 4890 4891#ifndef __cplusplus 4892 4893#error "This is not a C++ compiler" 4894 4895// MSVC always sets __cplusplus to 199711L in older versions; newer versions 4896// only set it correctly if /Zc:__cplusplus is specified as well as a 4897// /std:c++NN switch: 4898// 4899// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 4900// 4901// The value __cplusplus ought to have is available in _MSVC_LANG since 4902// Visual Studio 2015 Update 3: 4903// 4904// https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros 4905// 4906// This was also the first MSVC version to support C++14 so we can't use the 4907// value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having 4908// C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later. 4909#elif __cplusplus < 201103L && !defined _MSC_VER 4910 4911#error "This is not a C++11 compiler" 4912 4913#else 4914 4915namespace cxx11 4916{ 4917 4918 namespace test_static_assert 4919 { 4920 4921 template <typename T> 4922 struct check 4923 { 4924 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4925 }; 4926 4927 } 4928 4929 namespace test_final_override 4930 { 4931 4932 struct Base 4933 { 4934 virtual ~Base() {} 4935 virtual void f() {} 4936 }; 4937 4938 struct Derived : public Base 4939 { 4940 virtual ~Derived() override {} 4941 virtual void f() override {} 4942 }; 4943 4944 } 4945 4946 namespace test_double_right_angle_brackets 4947 { 4948 4949 template < typename T > 4950 struct check {}; 4951 4952 typedef check<void> single_type; 4953 typedef check<check<void>> double_type; 4954 typedef check<check<check<void>>> triple_type; 4955 typedef check<check<check<check<void>>>> quadruple_type; 4956 4957 } 4958 4959 namespace test_decltype 4960 { 4961 4962 int 4963 f() 4964 { 4965 int a = 1; 4966 decltype(a) b = 2; 4967 return a + b; 4968 } 4969 4970 } 4971 4972 namespace test_type_deduction 4973 { 4974 4975 template < typename T1, typename T2 > 4976 struct is_same 4977 { 4978 static const bool value = false; 4979 }; 4980 4981 template < typename T > 4982 struct is_same<T, T> 4983 { 4984 static const bool value = true; 4985 }; 4986 4987 template < typename T1, typename T2 > 4988 auto 4989 add(T1 a1, T2 a2) -> decltype(a1 + a2) 4990 { 4991 return a1 + a2; 4992 } 4993 4994 int 4995 test(const int c, volatile int v) 4996 { 4997 static_assert(is_same<int, decltype(0)>::value == true, ""); 4998 static_assert(is_same<int, decltype(c)>::value == false, ""); 4999 static_assert(is_same<int, decltype(v)>::value == false, ""); 5000 auto ac = c; 5001 auto av = v; 5002 auto sumi = ac + av + 'x'; 5003 auto sumf = ac + av + 1.0; 5004 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5005 static_assert(is_same<int, decltype(av)>::value == true, ""); 5006 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5007 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5008 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5009 return (sumf > 0.0) ? sumi : add(c, v); 5010 } 5011 5012 } 5013 5014 namespace test_noexcept 5015 { 5016 5017 int f() { return 0; } 5018 int g() noexcept { return 0; } 5019 5020 static_assert(noexcept(f()) == false, ""); 5021 static_assert(noexcept(g()) == true, ""); 5022 5023 } 5024 5025 namespace test_constexpr 5026 { 5027 5028 template < typename CharT > 5029 unsigned long constexpr 5030 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5031 { 5032 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5033 } 5034 5035 template < typename CharT > 5036 unsigned long constexpr 5037 strlen_c(const CharT *const s) noexcept 5038 { 5039 return strlen_c_r(s, 0UL); 5040 } 5041 5042 static_assert(strlen_c("") == 0UL, ""); 5043 static_assert(strlen_c("1") == 1UL, ""); 5044 static_assert(strlen_c("example") == 7UL, ""); 5045 static_assert(strlen_c("another\0example") == 7UL, ""); 5046 5047 } 5048 5049 namespace test_rvalue_references 5050 { 5051 5052 template < int N > 5053 struct answer 5054 { 5055 static constexpr int value = N; 5056 }; 5057 5058 answer<1> f(int&) { return answer<1>(); } 5059 answer<2> f(const int&) { return answer<2>(); } 5060 answer<3> f(int&&) { return answer<3>(); } 5061 5062 void 5063 test() 5064 { 5065 int i = 0; 5066 const int c = 0; 5067 static_assert(decltype(f(i))::value == 1, ""); 5068 static_assert(decltype(f(c))::value == 2, ""); 5069 static_assert(decltype(f(0))::value == 3, ""); 5070 } 5071 5072 } 5073 5074 namespace test_uniform_initialization 5075 { 5076 5077 struct test 5078 { 5079 static const int zero {}; 5080 static const int one {1}; 5081 }; 5082 5083 static_assert(test::zero == 0, ""); 5084 static_assert(test::one == 1, ""); 5085 5086 } 5087 5088 namespace test_lambdas 5089 { 5090 5091 void 5092 test1() 5093 { 5094 auto lambda1 = [](){}; 5095 auto lambda2 = lambda1; 5096 lambda1(); 5097 lambda2(); 5098 } 5099 5100 int 5101 test2() 5102 { 5103 auto a = [](int i, int j){ return i + j; }(1, 2); 5104 auto b = []() -> int { return '0'; }(); 5105 auto c = [=](){ return a + b; }(); 5106 auto d = [&](){ return c; }(); 5107 auto e = [a, &b](int x) mutable { 5108 const auto identity = [](int y){ return y; }; 5109 for (auto i = 0; i < a; ++i) 5110 a += b--; 5111 return x + identity(a + b); 5112 }(0); 5113 return a + b + c + d + e; 5114 } 5115 5116 int 5117 test3() 5118 { 5119 const auto nullary = [](){ return 0; }; 5120 const auto unary = [](int x){ return x; }; 5121 using nullary_t = decltype(nullary); 5122 using unary_t = decltype(unary); 5123 const auto higher1st = [](nullary_t f){ return f(); }; 5124 const auto higher2nd = [unary](nullary_t f1){ 5125 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5126 }; 5127 return higher1st(nullary) + higher2nd(nullary)(unary); 5128 } 5129 5130 } 5131 5132 namespace test_variadic_templates 5133 { 5134 5135 template <int...> 5136 struct sum; 5137 5138 template <int N0, int... N1toN> 5139 struct sum<N0, N1toN...> 5140 { 5141 static constexpr auto value = N0 + sum<N1toN...>::value; 5142 }; 5143 5144 template <> 5145 struct sum<> 5146 { 5147 static constexpr auto value = 0; 5148 }; 5149 5150 static_assert(sum<>::value == 0, ""); 5151 static_assert(sum<1>::value == 1, ""); 5152 static_assert(sum<23>::value == 23, ""); 5153 static_assert(sum<1, 2>::value == 3, ""); 5154 static_assert(sum<5, 5, 11>::value == 21, ""); 5155 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5156 5157 } 5158 5159 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5160 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5161 // because of this. 5162 namespace test_template_alias_sfinae 5163 { 5164 5165 struct foo {}; 5166 5167 template<typename T> 5168 using member = typename T::member_type; 5169 5170 template<typename T> 5171 void func(...) {} 5172 5173 template<typename T> 5174 void func(member<T>*) {} 5175 5176 void test(); 5177 5178 void test() { func<foo>(0); } 5179 5180 } 5181 5182} // namespace cxx11 5183 5184#endif // __cplusplus >= 201103L 5185 5186 5187 5188 5189// If the compiler admits that it is not ready for C++14, why torture it? 5190// Hopefully, this will speed up the test. 5191 5192#ifndef __cplusplus 5193 5194#error "This is not a C++ compiler" 5195 5196#elif __cplusplus < 201402L && !defined _MSC_VER 5197 5198#error "This is not a C++14 compiler" 5199 5200#else 5201 5202namespace cxx14 5203{ 5204 5205 namespace test_polymorphic_lambdas 5206 { 5207 5208 int 5209 test() 5210 { 5211 const auto lambda = [](auto&&... args){ 5212 const auto istiny = [](auto x){ 5213 return (sizeof(x) == 1UL) ? 1 : 0; 5214 }; 5215 const int aretiny[] = { istiny(args)... }; 5216 return aretiny[0]; 5217 }; 5218 return lambda(1, 1L, 1.0f, '1'); 5219 } 5220 5221 } 5222 5223 namespace test_binary_literals 5224 { 5225 5226 constexpr auto ivii = 0b0000000000101010; 5227 static_assert(ivii == 42, "wrong value"); 5228 5229 } 5230 5231 namespace test_generalized_constexpr 5232 { 5233 5234 template < typename CharT > 5235 constexpr unsigned long 5236 strlen_c(const CharT *const s) noexcept 5237 { 5238 auto length = 0UL; 5239 for (auto p = s; *p; ++p) 5240 ++length; 5241 return length; 5242 } 5243 5244 static_assert(strlen_c("") == 0UL, ""); 5245 static_assert(strlen_c("x") == 1UL, ""); 5246 static_assert(strlen_c("test") == 4UL, ""); 5247 static_assert(strlen_c("another\0test") == 7UL, ""); 5248 5249 } 5250 5251 namespace test_lambda_init_capture 5252 { 5253 5254 int 5255 test() 5256 { 5257 auto x = 0; 5258 const auto lambda1 = [a = x](int b){ return a + b; }; 5259 const auto lambda2 = [a = lambda1(x)](){ return a; }; 5260 return lambda2(); 5261 } 5262 5263 } 5264 5265 namespace test_digit_separators 5266 { 5267 5268 constexpr auto ten_million = 100'000'000; 5269 static_assert(ten_million == 100000000, ""); 5270 5271 } 5272 5273 namespace test_return_type_deduction 5274 { 5275 5276 auto f(int& x) { return x; } 5277 decltype(auto) g(int& x) { return x; } 5278 5279 template < typename T1, typename T2 > 5280 struct is_same 5281 { 5282 static constexpr auto value = false; 5283 }; 5284 5285 template < typename T > 5286 struct is_same<T, T> 5287 { 5288 static constexpr auto value = true; 5289 }; 5290 5291 int 5292 test() 5293 { 5294 auto x = 0; 5295 static_assert(is_same<int, decltype(f(x))>::value, ""); 5296 static_assert(is_same<int&, decltype(g(x))>::value, ""); 5297 return x; 5298 } 5299 5300 } 5301 5302} // namespace cxx14 5303 5304#endif // __cplusplus >= 201402L 5305 5306 5307 5308_ACEOF 5309if ac_fn_cxx_try_compile "$LINENO" 5310then : 5311 eval $cachevar=yes 5312else $as_nop 5313 eval $cachevar=no 5314fi 5315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5316 CXX="$ac_save_CXX" 5317fi 5318eval ac_res=\$$cachevar 5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5320printf "%s\n" "$ac_res" >&6; } 5321 if eval test x\$$cachevar = xyes; then 5322 CXX="$CXX $switch" 5323 if test -n "$CXXCPP" ; then 5324 CXXCPP="$CXXCPP $switch" 5325 fi 5326 ac_success=yes 5327 break 5328 fi 5329 done 5330 if test x$ac_success = xyes; then 5331 break 5332 fi 5333 done 5334 fi 5335 ac_ext=c 5336ac_cpp='$CPP $CPPFLAGS' 5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5339ac_compiler_gnu=$ac_cv_c_compiler_gnu 5340 5341 if test x$ax_cxx_compile_cxx14_required = xtrue; then 5342 if test x$ac_success = xno; then 5343 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 5344 fi 5345 fi 5346 if test x$ac_success = xno; then 5347 HAVE_CXX14=0 5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 5349printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;} 5350 else 5351 HAVE_CXX14=1 5352 5353printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h 5354 5355 fi 5356 5357 5358am__api_version='1.16' 5359 5360 5361 # Find a good install program. We prefer a C program (faster), 5362# so one script is as good as another. But avoid the broken or 5363# incompatible versions: 5364# SysV /etc/install, /usr/sbin/install 5365# SunOS /usr/etc/install 5366# IRIX /sbin/install 5367# AIX /bin/install 5368# AmigaOS /C/install, which installs bootblocks on floppy discs 5369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5370# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5372# OS/2's system install, which has a completely different semantic 5373# ./install, which can be erroneously created by make from ./install.sh. 5374# Reject install programs that cannot install multiple files. 5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5376printf %s "checking for a BSD-compatible install... " >&6; } 5377if test -z "$INSTALL"; then 5378if test ${ac_cv_path_install+y} 5379then : 5380 printf %s "(cached) " >&6 5381else $as_nop 5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5383for as_dir in $PATH 5384do 5385 IFS=$as_save_IFS 5386 case $as_dir in #((( 5387 '') as_dir=./ ;; 5388 */) ;; 5389 *) as_dir=$as_dir/ ;; 5390 esac 5391 # Account for fact that we put trailing slashes in our PATH walk. 5392case $as_dir in #(( 5393 ./ | /[cC]/* | \ 5394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5395 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5396 /usr/ucb/* ) ;; 5397 *) 5398 # OSF1 and SCO ODT 3.0 have their own names for install. 5399 # Don't use installbsd from OSF since it installs stuff as root 5400 # by default. 5401 for ac_prog in ginstall scoinst install; do 5402 for ac_exec_ext in '' $ac_executable_extensions; do 5403 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 5404 if test $ac_prog = install && 5405 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5406 # AIX install. It has an incompatible calling convention. 5407 : 5408 elif test $ac_prog = install && 5409 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5410 # program-specific install script used by HP pwplus--don't use. 5411 : 5412 else 5413 rm -rf conftest.one conftest.two conftest.dir 5414 echo one > conftest.one 5415 echo two > conftest.two 5416 mkdir conftest.dir 5417 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 5418 test -s conftest.one && test -s conftest.two && 5419 test -s conftest.dir/conftest.one && 5420 test -s conftest.dir/conftest.two 5421 then 5422 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 5423 break 3 5424 fi 5425 fi 5426 fi 5427 done 5428 done 5429 ;; 5430esac 5431 5432 done 5433IFS=$as_save_IFS 5434 5435rm -rf conftest.one conftest.two conftest.dir 5436 5437fi 5438 if test ${ac_cv_path_install+y}; then 5439 INSTALL=$ac_cv_path_install 5440 else 5441 # As a last resort, use the slow shell script. Don't cache a 5442 # value for INSTALL within a source directory, because that will 5443 # break other packages using the cache if that directory is 5444 # removed, or if the value is a relative name. 5445 INSTALL=$ac_install_sh 5446 fi 5447fi 5448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5449printf "%s\n" "$INSTALL" >&6; } 5450 5451# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5452# It thinks the first close brace ends the variable substitution. 5453test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5454 5455test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5456 5457test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5458 5459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 5460printf %s "checking whether build environment is sane... " >&6; } 5461# Reject unsafe characters in $srcdir or the absolute working directory 5462# name. Accept space and tab only in the latter. 5463am_lf=' 5464' 5465case `pwd` in 5466 *[\\\"\#\$\&\'\`$am_lf]*) 5467 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 5468esac 5469case $srcdir in 5470 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 5471 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 5472esac 5473 5474# Do 'set' in a subshell so we don't clobber the current shell's 5475# arguments. Must try -L first in case configure is actually a 5476# symlink; some systems play weird games with the mod time of symlinks 5477# (eg FreeBSD returns the mod time of the symlink's containing 5478# directory). 5479if ( 5480 am_has_slept=no 5481 for am_try in 1 2; do 5482 echo "timestamp, slept: $am_has_slept" > conftest.file 5483 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 5484 if test "$*" = "X"; then 5485 # -L didn't work. 5486 set X `ls -t "$srcdir/configure" conftest.file` 5487 fi 5488 if test "$*" != "X $srcdir/configure conftest.file" \ 5489 && test "$*" != "X conftest.file $srcdir/configure"; then 5490 5491 # If neither matched, then we have a broken ls. This can happen 5492 # if, for instance, CONFIG_SHELL is bash and it inherits a 5493 # broken ls alias from the environment. This has actually 5494 # happened. Such a system could not be considered "sane". 5495 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 5496 alias in your environment" "$LINENO" 5 5497 fi 5498 if test "$2" = conftest.file || test $am_try -eq 2; then 5499 break 5500 fi 5501 # Just in case. 5502 sleep 1 5503 am_has_slept=yes 5504 done 5505 test "$2" = conftest.file 5506 ) 5507then 5508 # Ok. 5509 : 5510else 5511 as_fn_error $? "newly created file is older than distributed files! 5512Check your system clock" "$LINENO" 5 5513fi 5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5515printf "%s\n" "yes" >&6; } 5516# If we didn't sleep, we still need to ensure time stamps of config.status and 5517# generated files are strictly newer. 5518am_sleep_pid= 5519if grep 'slept: no' conftest.file >/dev/null 2>&1; then 5520 ( sleep 1 ) & 5521 am_sleep_pid=$! 5522fi 5523 5524rm -f conftest.file 5525 5526test "$program_prefix" != NONE && 5527 program_transform_name="s&^&$program_prefix&;$program_transform_name" 5528# Use a double $ so make ignores it. 5529test "$program_suffix" != NONE && 5530 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 5531# Double any \ or $. 5532# By default was `s,x,x', remove it if useless. 5533ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 5534program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 5535 5536 5537 if test x"${MISSING+set}" != xset; then 5538 MISSING="\${SHELL} '$am_aux_dir/missing'" 5539fi 5540# Use eval to expand $SHELL 5541if eval "$MISSING --is-lightweight"; then 5542 am_missing_run="$MISSING " 5543else 5544 am_missing_run= 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 5546printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 5547fi 5548 5549if test x"${install_sh+set}" != xset; then 5550 case $am_aux_dir in 5551 *\ * | *\ *) 5552 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 5553 *) 5554 install_sh="\${SHELL} $am_aux_dir/install-sh" 5555 esac 5556fi 5557 5558# Installed binaries are usually stripped using 'strip' when the user 5559# run "make install-strip". However 'strip' might not be the right 5560# tool to use in cross-compilation environments, therefore Automake 5561# will honor the 'STRIP' environment variable to overrule this program. 5562if test "$cross_compiling" != no; then 5563 if test -n "$ac_tool_prefix"; then 5564 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5565set dummy ${ac_tool_prefix}strip; ac_word=$2 5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5567printf %s "checking for $ac_word... " >&6; } 5568if test ${ac_cv_prog_STRIP+y} 5569then : 5570 printf %s "(cached) " >&6 5571else $as_nop 5572 if test -n "$STRIP"; then 5573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5574else 5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5576for as_dir in $PATH 5577do 5578 IFS=$as_save_IFS 5579 case $as_dir in #((( 5580 '') as_dir=./ ;; 5581 */) ;; 5582 *) as_dir=$as_dir/ ;; 5583 esac 5584 for ac_exec_ext in '' $ac_executable_extensions; do 5585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5586 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5588 break 2 5589 fi 5590done 5591 done 5592IFS=$as_save_IFS 5593 5594fi 5595fi 5596STRIP=$ac_cv_prog_STRIP 5597if test -n "$STRIP"; then 5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5599printf "%s\n" "$STRIP" >&6; } 5600else 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602printf "%s\n" "no" >&6; } 5603fi 5604 5605 5606fi 5607if test -z "$ac_cv_prog_STRIP"; then 5608 ac_ct_STRIP=$STRIP 5609 # Extract the first word of "strip", so it can be a program name with args. 5610set dummy strip; ac_word=$2 5611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5612printf %s "checking for $ac_word... " >&6; } 5613if test ${ac_cv_prog_ac_ct_STRIP+y} 5614then : 5615 printf %s "(cached) " >&6 5616else $as_nop 5617 if test -n "$ac_ct_STRIP"; then 5618 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5619else 5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5621for as_dir in $PATH 5622do 5623 IFS=$as_save_IFS 5624 case $as_dir in #((( 5625 '') as_dir=./ ;; 5626 */) ;; 5627 *) as_dir=$as_dir/ ;; 5628 esac 5629 for ac_exec_ext in '' $ac_executable_extensions; do 5630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5631 ac_cv_prog_ac_ct_STRIP="strip" 5632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5633 break 2 5634 fi 5635done 5636 done 5637IFS=$as_save_IFS 5638 5639fi 5640fi 5641ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5642if test -n "$ac_ct_STRIP"; then 5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5644printf "%s\n" "$ac_ct_STRIP" >&6; } 5645else 5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5647printf "%s\n" "no" >&6; } 5648fi 5649 5650 if test "x$ac_ct_STRIP" = x; then 5651 STRIP=":" 5652 else 5653 case $cross_compiling:$ac_tool_warned in 5654yes:) 5655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5656printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5657ac_tool_warned=yes ;; 5658esac 5659 STRIP=$ac_ct_STRIP 5660 fi 5661else 5662 STRIP="$ac_cv_prog_STRIP" 5663fi 5664 5665fi 5666INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 5667 5668 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 5670printf %s "checking for a race-free mkdir -p... " >&6; } 5671if test -z "$MKDIR_P"; then 5672 if test ${ac_cv_path_mkdir+y} 5673then : 5674 printf %s "(cached) " >&6 5675else $as_nop 5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5678do 5679 IFS=$as_save_IFS 5680 case $as_dir in #((( 5681 '') as_dir=./ ;; 5682 */) ;; 5683 *) as_dir=$as_dir/ ;; 5684 esac 5685 for ac_prog in mkdir gmkdir; do 5686 for ac_exec_ext in '' $ac_executable_extensions; do 5687 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 5688 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 5689 'mkdir ('*'coreutils) '* | \ 5690 'BusyBox '* | \ 5691 'mkdir (fileutils) '4.1*) 5692 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 5693 break 3;; 5694 esac 5695 done 5696 done 5697 done 5698IFS=$as_save_IFS 5699 5700fi 5701 5702 test -d ./--version && rmdir ./--version 5703 if test ${ac_cv_path_mkdir+y}; then 5704 MKDIR_P="$ac_cv_path_mkdir -p" 5705 else 5706 # As a last resort, use the slow shell script. Don't cache a 5707 # value for MKDIR_P within a source directory, because that will 5708 # break other packages using the cache if that directory is 5709 # removed, or if the value is a relative name. 5710 MKDIR_P="$ac_install_sh -d" 5711 fi 5712fi 5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5714printf "%s\n" "$MKDIR_P" >&6; } 5715 5716for ac_prog in gawk mawk nawk awk 5717do 5718 # Extract the first word of "$ac_prog", so it can be a program name with args. 5719set dummy $ac_prog; ac_word=$2 5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5721printf %s "checking for $ac_word... " >&6; } 5722if test ${ac_cv_prog_AWK+y} 5723then : 5724 printf %s "(cached) " >&6 5725else $as_nop 5726 if test -n "$AWK"; then 5727 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5728else 5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5730for as_dir in $PATH 5731do 5732 IFS=$as_save_IFS 5733 case $as_dir in #((( 5734 '') as_dir=./ ;; 5735 */) ;; 5736 *) as_dir=$as_dir/ ;; 5737 esac 5738 for ac_exec_ext in '' $ac_executable_extensions; do 5739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5740 ac_cv_prog_AWK="$ac_prog" 5741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5742 break 2 5743 fi 5744done 5745 done 5746IFS=$as_save_IFS 5747 5748fi 5749fi 5750AWK=$ac_cv_prog_AWK 5751if test -n "$AWK"; then 5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5753printf "%s\n" "$AWK" >&6; } 5754else 5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5756printf "%s\n" "no" >&6; } 5757fi 5758 5759 5760 test -n "$AWK" && break 5761done 5762 5763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5764printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5765set x ${MAKE-make} 5766ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5767if eval test \${ac_cv_prog_make_${ac_make}_set+y} 5768then : 5769 printf %s "(cached) " >&6 5770else $as_nop 5771 cat >conftest.make <<\_ACEOF 5772SHELL = /bin/sh 5773all: 5774 @echo '@@@%%%=$(MAKE)=@@@%%%' 5775_ACEOF 5776# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5777case `${MAKE-make} -f conftest.make 2>/dev/null` in 5778 *@@@%%%=?*=@@@%%%*) 5779 eval ac_cv_prog_make_${ac_make}_set=yes;; 5780 *) 5781 eval ac_cv_prog_make_${ac_make}_set=no;; 5782esac 5783rm -f conftest.make 5784fi 5785if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5787printf "%s\n" "yes" >&6; } 5788 SET_MAKE= 5789else 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791printf "%s\n" "no" >&6; } 5792 SET_MAKE="MAKE=${MAKE-make}" 5793fi 5794 5795rm -rf .tst 2>/dev/null 5796mkdir .tst 2>/dev/null 5797if test -d .tst; then 5798 am__leading_dot=. 5799else 5800 am__leading_dot=_ 5801fi 5802rmdir .tst 2>/dev/null 5803 5804DEPDIR="${am__leading_dot}deps" 5805 5806ac_config_commands="$ac_config_commands depfiles" 5807 5808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5809printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5810cat > confinc.mk << 'END' 5811am__doit: 5812 @echo this is the am__doit target >confinc.out 5813.PHONY: am__doit 5814END 5815am__include="#" 5816am__quote= 5817# BSD make does it like this. 5818echo '.include "confinc.mk" # ignored' > confmf.BSD 5819# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5820echo 'include confinc.mk # ignored' > confmf.GNU 5821_am_result=no 5822for s in GNU BSD; do 5823 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5824 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5825 ac_status=$? 5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5827 (exit $ac_status); } 5828 case $?:`cat confinc.out 2>/dev/null` in #( 5829 '0:this is the am__doit target') : 5830 case $s in #( 5831 BSD) : 5832 am__include='.include' am__quote='"' ;; #( 5833 *) : 5834 am__include='include' am__quote='' ;; 5835esac ;; #( 5836 *) : 5837 ;; 5838esac 5839 if test "$am__include" != "#"; then 5840 _am_result="yes ($s style)" 5841 break 5842 fi 5843done 5844rm -f confinc.* confmf.* 5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5846printf "%s\n" "${_am_result}" >&6; } 5847 5848# Check whether --enable-dependency-tracking was given. 5849if test ${enable_dependency_tracking+y} 5850then : 5851 enableval=$enable_dependency_tracking; 5852fi 5853 5854if test "x$enable_dependency_tracking" != xno; then 5855 am_depcomp="$ac_aux_dir/depcomp" 5856 AMDEPBACKSLASH='\' 5857 am__nodep='_no' 5858fi 5859 if test "x$enable_dependency_tracking" != xno; then 5860 AMDEP_TRUE= 5861 AMDEP_FALSE='#' 5862else 5863 AMDEP_TRUE='#' 5864 AMDEP_FALSE= 5865fi 5866 5867 5868# Check whether --enable-silent-rules was given. 5869if test ${enable_silent_rules+y} 5870then : 5871 enableval=$enable_silent_rules; 5872fi 5873 5874case $enable_silent_rules in # ((( 5875 yes) AM_DEFAULT_VERBOSITY=0;; 5876 no) AM_DEFAULT_VERBOSITY=1;; 5877 *) AM_DEFAULT_VERBOSITY=1;; 5878esac 5879am_make=${MAKE-make} 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 5881printf %s "checking whether $am_make supports nested variables... " >&6; } 5882if test ${am_cv_make_support_nested_variables+y} 5883then : 5884 printf %s "(cached) " >&6 5885else $as_nop 5886 if printf "%s\n" 'TRUE=$(BAR$(V)) 5887BAR0=false 5888BAR1=true 5889V=1 5890am__doit: 5891 @$(TRUE) 5892.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5893 am_cv_make_support_nested_variables=yes 5894else 5895 am_cv_make_support_nested_variables=no 5896fi 5897fi 5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5899printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 5900if test $am_cv_make_support_nested_variables = yes; then 5901 AM_V='$(V)' 5902 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 5903else 5904 AM_V=$AM_DEFAULT_VERBOSITY 5905 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 5906fi 5907AM_BACKSLASH='\' 5908 5909if test "`cd $srcdir && pwd`" != "`pwd`"; then 5910 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5911 # is not polluted with repeated "-I." 5912 am__isrc=' -I$(srcdir)' 5913 # test to see if srcdir already configured 5914 if test -f $srcdir/config.status; then 5915 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5916 fi 5917fi 5918 5919# test whether we have cygpath 5920if test -z "$CYGPATH_W"; then 5921 if (cygpath --version) >/dev/null 2>/dev/null; then 5922 CYGPATH_W='cygpath -w' 5923 else 5924 CYGPATH_W=echo 5925 fi 5926fi 5927 5928 5929# Define the identity of the package. 5930 PACKAGE='c-ares' 5931 VERSION='1.34.5' 5932 5933 5934printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 5935 5936 5937printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 5938 5939# Some tools Automake needs. 5940 5941ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5942 5943 5944AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5945 5946 5947AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5948 5949 5950AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5951 5952 5953MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5954 5955# For better backward compatibility. To be removed once Automake 1.9.x 5956# dies out for good. For more background, see: 5957# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5958# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5959mkdir_p='$(MKDIR_P)' 5960 5961# We need awk for the "check" target (and possibly the TAP driver). The 5962# system "awk" is bad on some platforms. 5963# Always define AMTAR for backward compatibility. Yes, it's still used 5964# in the wild :-( We should find a proper way to deprecate it ... 5965AMTAR='$${TAR-tar}' 5966 5967 5968# We'll loop over all known methods to create a tar archive until one works. 5969_am_tools='gnutar pax cpio none' 5970 5971am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5972 5973 5974 5975 5976 5977depcc="$CC" am_compiler_list= 5978 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5980printf %s "checking dependency style of $depcc... " >&6; } 5981if test ${am_cv_CC_dependencies_compiler_type+y} 5982then : 5983 printf %s "(cached) " >&6 5984else $as_nop 5985 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5986 # We make a subdir and do the tests there. Otherwise we can end up 5987 # making bogus files that we don't know about and never remove. For 5988 # instance it was reported that on HP-UX the gcc test will end up 5989 # making a dummy file named 'D' -- because '-MD' means "put the output 5990 # in D". 5991 rm -rf conftest.dir 5992 mkdir conftest.dir 5993 # Copy depcomp to subdir because otherwise we won't find it if we're 5994 # using a relative directory. 5995 cp "$am_depcomp" conftest.dir 5996 cd conftest.dir 5997 # We will build objects and dependencies in a subdirectory because 5998 # it helps to detect inapplicable dependency modes. For instance 5999 # both Tru64's cc and ICC support -MD to output dependencies as a 6000 # side effect of compilation, but ICC will put the dependencies in 6001 # the current directory while Tru64 will put them in the object 6002 # directory. 6003 mkdir sub 6004 6005 am_cv_CC_dependencies_compiler_type=none 6006 if test "$am_compiler_list" = ""; then 6007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6008 fi 6009 am__universal=false 6010 case " $depcc " in #( 6011 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6012 esac 6013 6014 for depmode in $am_compiler_list; do 6015 # Setup a source with many dependencies, because some compilers 6016 # like to wrap large dependency lists on column 80 (with \), and 6017 # we should not choose a depcomp mode which is confused by this. 6018 # 6019 # We need to recreate these files for each test, as the compiler may 6020 # overwrite some of them when testing with obscure command lines. 6021 # This happens at least with the AIX C compiler. 6022 : > sub/conftest.c 6023 for i in 1 2 3 4 5 6; do 6024 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6025 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6026 # Solaris 10 /bin/sh. 6027 echo '/* dummy */' > sub/conftst$i.h 6028 done 6029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6030 6031 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6032 # mode. It turns out that the SunPro C++ compiler does not properly 6033 # handle '-M -o', and we need to detect this. Also, some Intel 6034 # versions had trouble with output in subdirs. 6035 am__obj=sub/conftest.${OBJEXT-o} 6036 am__minus_obj="-o $am__obj" 6037 case $depmode in 6038 gcc) 6039 # This depmode causes a compiler race in universal mode. 6040 test "$am__universal" = false || continue 6041 ;; 6042 nosideeffect) 6043 # After this tag, mechanisms are not by side-effect, so they'll 6044 # only be used when explicitly requested. 6045 if test "x$enable_dependency_tracking" = xyes; then 6046 continue 6047 else 6048 break 6049 fi 6050 ;; 6051 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6052 # This compiler won't grok '-c -o', but also, the minuso test has 6053 # not run yet. These depmodes are late enough in the game, and 6054 # so weak that their functioning should not be impacted. 6055 am__obj=conftest.${OBJEXT-o} 6056 am__minus_obj= 6057 ;; 6058 none) break ;; 6059 esac 6060 if depmode=$depmode \ 6061 source=sub/conftest.c object=$am__obj \ 6062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6063 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6064 >/dev/null 2>conftest.err && 6065 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6067 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6069 # icc doesn't choke on unknown options, it will just issue warnings 6070 # or remarks (even with -Werror). So we grep stderr for any message 6071 # that says an option was ignored or not supported. 6072 # When given -MP, icc 7.0 and 7.1 complain thusly: 6073 # icc: Command line warning: ignoring option '-M'; no argument required 6074 # The diagnosis changed in icc 8.0: 6075 # icc: Command line remark: option '-MP' not supported 6076 if (grep 'ignoring option' conftest.err || 6077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6078 am_cv_CC_dependencies_compiler_type=$depmode 6079 break 6080 fi 6081 fi 6082 done 6083 6084 cd .. 6085 rm -rf conftest.dir 6086else 6087 am_cv_CC_dependencies_compiler_type=none 6088fi 6089 6090fi 6091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6092printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6093CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6094 6095 if 6096 test "x$enable_dependency_tracking" != xno \ 6097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6098 am__fastdepCC_TRUE= 6099 am__fastdepCC_FALSE='#' 6100else 6101 am__fastdepCC_TRUE='#' 6102 am__fastdepCC_FALSE= 6103fi 6104 6105 6106depcc="$CXX" am_compiler_list= 6107 6108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6109printf %s "checking dependency style of $depcc... " >&6; } 6110if test ${am_cv_CXX_dependencies_compiler_type+y} 6111then : 6112 printf %s "(cached) " >&6 6113else $as_nop 6114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6115 # We make a subdir and do the tests there. Otherwise we can end up 6116 # making bogus files that we don't know about and never remove. For 6117 # instance it was reported that on HP-UX the gcc test will end up 6118 # making a dummy file named 'D' -- because '-MD' means "put the output 6119 # in D". 6120 rm -rf conftest.dir 6121 mkdir conftest.dir 6122 # Copy depcomp to subdir because otherwise we won't find it if we're 6123 # using a relative directory. 6124 cp "$am_depcomp" conftest.dir 6125 cd conftest.dir 6126 # We will build objects and dependencies in a subdirectory because 6127 # it helps to detect inapplicable dependency modes. For instance 6128 # both Tru64's cc and ICC support -MD to output dependencies as a 6129 # side effect of compilation, but ICC will put the dependencies in 6130 # the current directory while Tru64 will put them in the object 6131 # directory. 6132 mkdir sub 6133 6134 am_cv_CXX_dependencies_compiler_type=none 6135 if test "$am_compiler_list" = ""; then 6136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6137 fi 6138 am__universal=false 6139 case " $depcc " in #( 6140 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6141 esac 6142 6143 for depmode in $am_compiler_list; do 6144 # Setup a source with many dependencies, because some compilers 6145 # like to wrap large dependency lists on column 80 (with \), and 6146 # we should not choose a depcomp mode which is confused by this. 6147 # 6148 # We need to recreate these files for each test, as the compiler may 6149 # overwrite some of them when testing with obscure command lines. 6150 # This happens at least with the AIX C compiler. 6151 : > sub/conftest.c 6152 for i in 1 2 3 4 5 6; do 6153 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6154 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6155 # Solaris 10 /bin/sh. 6156 echo '/* dummy */' > sub/conftst$i.h 6157 done 6158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6159 6160 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6161 # mode. It turns out that the SunPro C++ compiler does not properly 6162 # handle '-M -o', and we need to detect this. Also, some Intel 6163 # versions had trouble with output in subdirs. 6164 am__obj=sub/conftest.${OBJEXT-o} 6165 am__minus_obj="-o $am__obj" 6166 case $depmode in 6167 gcc) 6168 # This depmode causes a compiler race in universal mode. 6169 test "$am__universal" = false || continue 6170 ;; 6171 nosideeffect) 6172 # After this tag, mechanisms are not by side-effect, so they'll 6173 # only be used when explicitly requested. 6174 if test "x$enable_dependency_tracking" = xyes; then 6175 continue 6176 else 6177 break 6178 fi 6179 ;; 6180 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6181 # This compiler won't grok '-c -o', but also, the minuso test has 6182 # not run yet. These depmodes are late enough in the game, and 6183 # so weak that their functioning should not be impacted. 6184 am__obj=conftest.${OBJEXT-o} 6185 am__minus_obj= 6186 ;; 6187 none) break ;; 6188 esac 6189 if depmode=$depmode \ 6190 source=sub/conftest.c object=$am__obj \ 6191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6193 >/dev/null 2>conftest.err && 6194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6198 # icc doesn't choke on unknown options, it will just issue warnings 6199 # or remarks (even with -Werror). So we grep stderr for any message 6200 # that says an option was ignored or not supported. 6201 # When given -MP, icc 7.0 and 7.1 complain thusly: 6202 # icc: Command line warning: ignoring option '-M'; no argument required 6203 # The diagnosis changed in icc 8.0: 6204 # icc: Command line remark: option '-MP' not supported 6205 if (grep 'ignoring option' conftest.err || 6206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6207 am_cv_CXX_dependencies_compiler_type=$depmode 6208 break 6209 fi 6210 fi 6211 done 6212 6213 cd .. 6214 rm -rf conftest.dir 6215else 6216 am_cv_CXX_dependencies_compiler_type=none 6217fi 6218 6219fi 6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6221printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 6222CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6223 6224 if 6225 test "x$enable_dependency_tracking" != xno \ 6226 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6227 am__fastdepCXX_TRUE= 6228 am__fastdepCXX_FALSE='#' 6229else 6230 am__fastdepCXX_TRUE='#' 6231 am__fastdepCXX_FALSE= 6232fi 6233 6234 6235# Variables for tags utilities; see am/tags.am 6236if test -z "$CTAGS"; then 6237 CTAGS=ctags 6238fi 6239 6240if test -z "$ETAGS"; then 6241 ETAGS=etags 6242fi 6243 6244if test -z "$CSCOPE"; then 6245 CSCOPE=cscope 6246fi 6247 6248 6249 6250# POSIX will say in a future version that running "rm -f" with no argument 6251# is OK; and we want to be able to make that assumption in our Makefile 6252# recipes. So use an aggressive probe to check that the usage we want is 6253# actually supported "in the wild" to an acceptable degree. 6254# See automake bug#10828. 6255# To make any issue more visible, cause the running configure to be aborted 6256# by default if the 'rm' program in use doesn't match our expectations; the 6257# user can still override this though. 6258if rm -f && rm -fr && rm -rf; then : OK; else 6259 cat >&2 <<'END' 6260Oops! 6261 6262Your 'rm' program seems unable to run without file operands specified 6263on the command line, even when the '-f' option is present. This is contrary 6264to the behaviour of most rm programs out there, and not conforming with 6265the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 6266 6267Please tell bug-automake@gnu.org about your system, including the value 6268of your $PATH and any error possibly output before this message. This 6269can help us improve future automake versions. 6270 6271END 6272 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 6273 echo 'Configuration will proceed anyway, since you have set the' >&2 6274 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 6275 echo >&2 6276 else 6277 cat >&2 <<'END' 6278Aborting the configuration process, to ensure you take notice of the issue. 6279 6280You can download and install GNU coreutils to get an 'rm' implementation 6281that behaves properly: <https://www.gnu.org/software/coreutils/>. 6282 6283If you want to complete the configuration process using your problematic 6284'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 6285to "yes", and re-run configure. 6286 6287END 6288 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 6289 fi 6290fi 6291 6292case `pwd` in 6293 *\ * | *\ *) 6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6295printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6296esac 6297 6298 6299 6300macro_version='2.4.7' 6301macro_revision='2.4.7' 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316ltmain=$ac_aux_dir/ltmain.sh 6317 6318 6319 6320 # Make sure we can run config.sub. 6321$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6322 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6323 6324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6325printf %s "checking build system type... " >&6; } 6326if test ${ac_cv_build+y} 6327then : 6328 printf %s "(cached) " >&6 6329else $as_nop 6330 ac_build_alias=$build_alias 6331test "x$ac_build_alias" = x && 6332 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6333test "x$ac_build_alias" = x && 6334 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6335ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6336 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6337 6338fi 6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6340printf "%s\n" "$ac_cv_build" >&6; } 6341case $ac_cv_build in 6342*-*-*) ;; 6343*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6344esac 6345build=$ac_cv_build 6346ac_save_IFS=$IFS; IFS='-' 6347set x $ac_cv_build 6348shift 6349build_cpu=$1 6350build_vendor=$2 6351shift; shift 6352# Remember, the first character of IFS is used to create $*, 6353# except with old shells: 6354build_os=$* 6355IFS=$ac_save_IFS 6356case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6357 6358 6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6360printf %s "checking host system type... " >&6; } 6361if test ${ac_cv_host+y} 6362then : 6363 printf %s "(cached) " >&6 6364else $as_nop 6365 if test "x$host_alias" = x; then 6366 ac_cv_host=$ac_cv_build 6367else 6368 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6369 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6370fi 6371 6372fi 6373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6374printf "%s\n" "$ac_cv_host" >&6; } 6375case $ac_cv_host in 6376*-*-*) ;; 6377*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6378esac 6379host=$ac_cv_host 6380ac_save_IFS=$IFS; IFS='-' 6381set x $ac_cv_host 6382shift 6383host_cpu=$1 6384host_vendor=$2 6385shift; shift 6386# Remember, the first character of IFS is used to create $*, 6387# except with old shells: 6388host_os=$* 6389IFS=$ac_save_IFS 6390case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6391 6392 6393# Backslashify metacharacters that are still active within 6394# double-quoted strings. 6395sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6396 6397# Same as above, but do not quote variable references. 6398double_quote_subst='s/\(["`\\]\)/\\\1/g' 6399 6400# Sed substitution to delay expansion of an escaped shell variable in a 6401# double_quote_subst'ed string. 6402delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6403 6404# Sed substitution to delay expansion of an escaped single quote. 6405delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6406 6407# Sed substitution to avoid accidental globbing in evaled expressions 6408no_glob_subst='s/\*/\\\*/g' 6409 6410ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6411ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6412ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6413 6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6415printf %s "checking how to print strings... " >&6; } 6416# Test print first, because it will be a builtin if present. 6417if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6418 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6419 ECHO='print -r --' 6420elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6421 ECHO='printf %s\n' 6422else 6423 # Use this function as a fallback that always works. 6424 func_fallback_echo () 6425 { 6426 eval 'cat <<_LTECHO_EOF 6427$1 6428_LTECHO_EOF' 6429 } 6430 ECHO='func_fallback_echo' 6431fi 6432 6433# func_echo_all arg... 6434# Invoke $ECHO with all args, space-separated. 6435func_echo_all () 6436{ 6437 $ECHO "" 6438} 6439 6440case $ECHO in 6441 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6442printf "%s\n" "printf" >&6; } ;; 6443 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6444printf "%s\n" "print -r" >&6; } ;; 6445 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6446printf "%s\n" "cat" >&6; } ;; 6447esac 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6463printf %s "checking for a sed that does not truncate output... " >&6; } 6464if test ${ac_cv_path_SED+y} 6465then : 6466 printf %s "(cached) " >&6 6467else $as_nop 6468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6469 for ac_i in 1 2 3 4 5 6 7; do 6470 ac_script="$ac_script$as_nl$ac_script" 6471 done 6472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6473 { ac_script=; unset ac_script;} 6474 if test -z "$SED"; then 6475 ac_path_SED_found=false 6476 # Loop through the user's path and test for each of PROGNAME-LIST 6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478for as_dir in $PATH 6479do 6480 IFS=$as_save_IFS 6481 case $as_dir in #((( 6482 '') as_dir=./ ;; 6483 */) ;; 6484 *) as_dir=$as_dir/ ;; 6485 esac 6486 for ac_prog in sed gsed 6487 do 6488 for ac_exec_ext in '' $ac_executable_extensions; do 6489 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6490 as_fn_executable_p "$ac_path_SED" || continue 6491# Check for GNU ac_path_SED and select it if it is found. 6492 # Check for GNU $ac_path_SED 6493case `"$ac_path_SED" --version 2>&1` in 6494*GNU*) 6495 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6496*) 6497 ac_count=0 6498 printf %s 0123456789 >"conftest.in" 6499 while : 6500 do 6501 cat "conftest.in" "conftest.in" >"conftest.tmp" 6502 mv "conftest.tmp" "conftest.in" 6503 cp "conftest.in" "conftest.nl" 6504 printf "%s\n" '' >> "conftest.nl" 6505 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6507 as_fn_arith $ac_count + 1 && ac_count=$as_val 6508 if test $ac_count -gt ${ac_path_SED_max-0}; then 6509 # Best one so far, save it but keep looking for a better one 6510 ac_cv_path_SED="$ac_path_SED" 6511 ac_path_SED_max=$ac_count 6512 fi 6513 # 10*(2^10) chars as input seems more than enough 6514 test $ac_count -gt 10 && break 6515 done 6516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6517esac 6518 6519 $ac_path_SED_found && break 3 6520 done 6521 done 6522 done 6523IFS=$as_save_IFS 6524 if test -z "$ac_cv_path_SED"; then 6525 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6526 fi 6527else 6528 ac_cv_path_SED=$SED 6529fi 6530 6531fi 6532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6533printf "%s\n" "$ac_cv_path_SED" >&6; } 6534 SED="$ac_cv_path_SED" 6535 rm -f conftest.sed 6536 6537test -z "$SED" && SED=sed 6538Xsed="$SED -e 1s/^X//" 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6551printf %s "checking for grep that handles long lines and -e... " >&6; } 6552if test ${ac_cv_path_GREP+y} 6553then : 6554 printf %s "(cached) " >&6 6555else $as_nop 6556 if test -z "$GREP"; then 6557 ac_path_GREP_found=false 6558 # Loop through the user's path and test for each of PROGNAME-LIST 6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6561do 6562 IFS=$as_save_IFS 6563 case $as_dir in #((( 6564 '') as_dir=./ ;; 6565 */) ;; 6566 *) as_dir=$as_dir/ ;; 6567 esac 6568 for ac_prog in grep ggrep 6569 do 6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6572 as_fn_executable_p "$ac_path_GREP" || continue 6573# Check for GNU ac_path_GREP and select it if it is found. 6574 # Check for GNU $ac_path_GREP 6575case `"$ac_path_GREP" --version 2>&1` in 6576*GNU*) 6577 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6578*) 6579 ac_count=0 6580 printf %s 0123456789 >"conftest.in" 6581 while : 6582 do 6583 cat "conftest.in" "conftest.in" >"conftest.tmp" 6584 mv "conftest.tmp" "conftest.in" 6585 cp "conftest.in" "conftest.nl" 6586 printf "%s\n" 'GREP' >> "conftest.nl" 6587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6589 as_fn_arith $ac_count + 1 && ac_count=$as_val 6590 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6591 # Best one so far, save it but keep looking for a better one 6592 ac_cv_path_GREP="$ac_path_GREP" 6593 ac_path_GREP_max=$ac_count 6594 fi 6595 # 10*(2^10) chars as input seems more than enough 6596 test $ac_count -gt 10 && break 6597 done 6598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6599esac 6600 6601 $ac_path_GREP_found && break 3 6602 done 6603 done 6604 done 6605IFS=$as_save_IFS 6606 if test -z "$ac_cv_path_GREP"; then 6607 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6608 fi 6609else 6610 ac_cv_path_GREP=$GREP 6611fi 6612 6613fi 6614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6615printf "%s\n" "$ac_cv_path_GREP" >&6; } 6616 GREP="$ac_cv_path_GREP" 6617 6618 6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6620printf %s "checking for egrep... " >&6; } 6621if test ${ac_cv_path_EGREP+y} 6622then : 6623 printf %s "(cached) " >&6 6624else $as_nop 6625 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6626 then ac_cv_path_EGREP="$GREP -E" 6627 else 6628 if test -z "$EGREP"; then 6629 ac_path_EGREP_found=false 6630 # Loop through the user's path and test for each of PROGNAME-LIST 6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6633do 6634 IFS=$as_save_IFS 6635 case $as_dir in #((( 6636 '') as_dir=./ ;; 6637 */) ;; 6638 *) as_dir=$as_dir/ ;; 6639 esac 6640 for ac_prog in egrep 6641 do 6642 for ac_exec_ext in '' $ac_executable_extensions; do 6643 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6644 as_fn_executable_p "$ac_path_EGREP" || continue 6645# Check for GNU ac_path_EGREP and select it if it is found. 6646 # Check for GNU $ac_path_EGREP 6647case `"$ac_path_EGREP" --version 2>&1` in 6648*GNU*) 6649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6650*) 6651 ac_count=0 6652 printf %s 0123456789 >"conftest.in" 6653 while : 6654 do 6655 cat "conftest.in" "conftest.in" >"conftest.tmp" 6656 mv "conftest.tmp" "conftest.in" 6657 cp "conftest.in" "conftest.nl" 6658 printf "%s\n" 'EGREP' >> "conftest.nl" 6659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6661 as_fn_arith $ac_count + 1 && ac_count=$as_val 6662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6663 # Best one so far, save it but keep looking for a better one 6664 ac_cv_path_EGREP="$ac_path_EGREP" 6665 ac_path_EGREP_max=$ac_count 6666 fi 6667 # 10*(2^10) chars as input seems more than enough 6668 test $ac_count -gt 10 && break 6669 done 6670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6671esac 6672 6673 $ac_path_EGREP_found && break 3 6674 done 6675 done 6676 done 6677IFS=$as_save_IFS 6678 if test -z "$ac_cv_path_EGREP"; then 6679 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6680 fi 6681else 6682 ac_cv_path_EGREP=$EGREP 6683fi 6684 6685 fi 6686fi 6687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6688printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6689 EGREP="$ac_cv_path_EGREP" 6690 6691 6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6693printf %s "checking for fgrep... " >&6; } 6694if test ${ac_cv_path_FGREP+y} 6695then : 6696 printf %s "(cached) " >&6 6697else $as_nop 6698 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6699 then ac_cv_path_FGREP="$GREP -F" 6700 else 6701 if test -z "$FGREP"; then 6702 ac_path_FGREP_found=false 6703 # Loop through the user's path and test for each of PROGNAME-LIST 6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6706do 6707 IFS=$as_save_IFS 6708 case $as_dir in #((( 6709 '') as_dir=./ ;; 6710 */) ;; 6711 *) as_dir=$as_dir/ ;; 6712 esac 6713 for ac_prog in fgrep 6714 do 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6717 as_fn_executable_p "$ac_path_FGREP" || continue 6718# Check for GNU ac_path_FGREP and select it if it is found. 6719 # Check for GNU $ac_path_FGREP 6720case `"$ac_path_FGREP" --version 2>&1` in 6721*GNU*) 6722 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6723*) 6724 ac_count=0 6725 printf %s 0123456789 >"conftest.in" 6726 while : 6727 do 6728 cat "conftest.in" "conftest.in" >"conftest.tmp" 6729 mv "conftest.tmp" "conftest.in" 6730 cp "conftest.in" "conftest.nl" 6731 printf "%s\n" 'FGREP' >> "conftest.nl" 6732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6734 as_fn_arith $ac_count + 1 && ac_count=$as_val 6735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6736 # Best one so far, save it but keep looking for a better one 6737 ac_cv_path_FGREP="$ac_path_FGREP" 6738 ac_path_FGREP_max=$ac_count 6739 fi 6740 # 10*(2^10) chars as input seems more than enough 6741 test $ac_count -gt 10 && break 6742 done 6743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6744esac 6745 6746 $ac_path_FGREP_found && break 3 6747 done 6748 done 6749 done 6750IFS=$as_save_IFS 6751 if test -z "$ac_cv_path_FGREP"; then 6752 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6753 fi 6754else 6755 ac_cv_path_FGREP=$FGREP 6756fi 6757 6758 fi 6759fi 6760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6761printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6762 FGREP="$ac_cv_path_FGREP" 6763 6764 6765test -z "$GREP" && GREP=grep 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785# Check whether --with-gnu-ld was given. 6786if test ${with_gnu_ld+y} 6787then : 6788 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6789else $as_nop 6790 with_gnu_ld=no 6791fi 6792 6793ac_prog=ld 6794if test yes = "$GCC"; then 6795 # Check if gcc -print-prog-name=ld gives a path. 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6797printf %s "checking for ld used by $CC... " >&6; } 6798 case $host in 6799 *-*-mingw*) 6800 # gcc leaves a trailing carriage return, which upsets mingw 6801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6802 *) 6803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6804 esac 6805 case $ac_prog in 6806 # Accept absolute paths. 6807 [\\/]* | ?:[\\/]*) 6808 re_direlt='/[^/][^/]*/\.\./' 6809 # Canonicalize the pathname of ld 6810 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6811 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6812 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6813 done 6814 test -z "$LD" && LD=$ac_prog 6815 ;; 6816 "") 6817 # If it fails, then pretend we aren't using GCC. 6818 ac_prog=ld 6819 ;; 6820 *) 6821 # If it is relative, then search for the first ld in PATH. 6822 with_gnu_ld=unknown 6823 ;; 6824 esac 6825elif test yes = "$with_gnu_ld"; then 6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6827printf %s "checking for GNU ld... " >&6; } 6828else 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6830printf %s "checking for non-GNU ld... " >&6; } 6831fi 6832if test ${lt_cv_path_LD+y} 6833then : 6834 printf %s "(cached) " >&6 6835else $as_nop 6836 if test -z "$LD"; then 6837 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6838 for ac_dir in $PATH; do 6839 IFS=$lt_save_ifs 6840 test -z "$ac_dir" && ac_dir=. 6841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6842 lt_cv_path_LD=$ac_dir/$ac_prog 6843 # Check to see if the program is GNU ld. I'd rather use --version, 6844 # but apparently some variants of GNU ld only accept -v. 6845 # Break only if it was the GNU/non-GNU ld that we prefer. 6846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6847 *GNU* | *'with BFD'*) 6848 test no != "$with_gnu_ld" && break 6849 ;; 6850 *) 6851 test yes != "$with_gnu_ld" && break 6852 ;; 6853 esac 6854 fi 6855 done 6856 IFS=$lt_save_ifs 6857else 6858 lt_cv_path_LD=$LD # Let the user override the test with a path. 6859fi 6860fi 6861 6862LD=$lt_cv_path_LD 6863if test -n "$LD"; then 6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6865printf "%s\n" "$LD" >&6; } 6866else 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6868printf "%s\n" "no" >&6; } 6869fi 6870test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6872printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6873if test ${lt_cv_prog_gnu_ld+y} 6874then : 6875 printf %s "(cached) " >&6 6876else $as_nop 6877 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6878case `$LD -v 2>&1 </dev/null` in 6879*GNU* | *'with BFD'*) 6880 lt_cv_prog_gnu_ld=yes 6881 ;; 6882*) 6883 lt_cv_prog_gnu_ld=no 6884 ;; 6885esac 6886fi 6887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6888printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6889with_gnu_ld=$lt_cv_prog_gnu_ld 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6900printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6901if test ${lt_cv_path_NM+y} 6902then : 6903 printf %s "(cached) " >&6 6904else $as_nop 6905 if test -n "$NM"; then 6906 # Let the user override the test. 6907 lt_cv_path_NM=$NM 6908else 6909 lt_nm_to_check=${ac_tool_prefix}nm 6910 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6911 lt_nm_to_check="$lt_nm_to_check nm" 6912 fi 6913 for lt_tmp_nm in $lt_nm_to_check; do 6914 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6915 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6916 IFS=$lt_save_ifs 6917 test -z "$ac_dir" && ac_dir=. 6918 tmp_nm=$ac_dir/$lt_tmp_nm 6919 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6920 # Check to see if the nm accepts a BSD-compat flag. 6921 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6922 # nm: unknown option "B" ignored 6923 # Tru64's nm complains that /dev/null is an invalid object file 6924 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6925 case $build_os in 6926 mingw*) lt_bad_file=conftest.nm/nofile ;; 6927 *) lt_bad_file=/dev/null ;; 6928 esac 6929 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6930 *$lt_bad_file* | *'Invalid file or object type'*) 6931 lt_cv_path_NM="$tmp_nm -B" 6932 break 2 6933 ;; 6934 *) 6935 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6936 */dev/null*) 6937 lt_cv_path_NM="$tmp_nm -p" 6938 break 2 6939 ;; 6940 *) 6941 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6942 continue # so that we can try to find one that supports BSD flags 6943 ;; 6944 esac 6945 ;; 6946 esac 6947 fi 6948 done 6949 IFS=$lt_save_ifs 6950 done 6951 : ${lt_cv_path_NM=no} 6952fi 6953fi 6954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6955printf "%s\n" "$lt_cv_path_NM" >&6; } 6956if test no != "$lt_cv_path_NM"; then 6957 NM=$lt_cv_path_NM 6958else 6959 # Didn't find any BSD compatible name lister, look for dumpbin. 6960 if test -n "$DUMPBIN"; then : 6961 # Let the user override the test. 6962 else 6963 if test -n "$ac_tool_prefix"; then 6964 for ac_prog in dumpbin "link -dump" 6965 do 6966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6967set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969printf %s "checking for $ac_word... " >&6; } 6970if test ${ac_cv_prog_DUMPBIN+y} 6971then : 6972 printf %s "(cached) " >&6 6973else $as_nop 6974 if test -n "$DUMPBIN"; then 6975 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6976else 6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6978for as_dir in $PATH 6979do 6980 IFS=$as_save_IFS 6981 case $as_dir in #((( 6982 '') as_dir=./ ;; 6983 */) ;; 6984 *) as_dir=$as_dir/ ;; 6985 esac 6986 for ac_exec_ext in '' $ac_executable_extensions; do 6987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6988 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6990 break 2 6991 fi 6992done 6993 done 6994IFS=$as_save_IFS 6995 6996fi 6997fi 6998DUMPBIN=$ac_cv_prog_DUMPBIN 6999if test -n "$DUMPBIN"; then 7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7001printf "%s\n" "$DUMPBIN" >&6; } 7002else 7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7004printf "%s\n" "no" >&6; } 7005fi 7006 7007 7008 test -n "$DUMPBIN" && break 7009 done 7010fi 7011if test -z "$DUMPBIN"; then 7012 ac_ct_DUMPBIN=$DUMPBIN 7013 for ac_prog in dumpbin "link -dump" 7014do 7015 # Extract the first word of "$ac_prog", so it can be a program name with args. 7016set dummy $ac_prog; ac_word=$2 7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7018printf %s "checking for $ac_word... " >&6; } 7019if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 7020then : 7021 printf %s "(cached) " >&6 7022else $as_nop 7023 if test -n "$ac_ct_DUMPBIN"; then 7024 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 case $as_dir in #((( 7031 '') as_dir=./ ;; 7032 */) ;; 7033 *) as_dir=$as_dir/ ;; 7034 esac 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041done 7042 done 7043IFS=$as_save_IFS 7044 7045fi 7046fi 7047ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7048if test -n "$ac_ct_DUMPBIN"; then 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7050printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 7051else 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053printf "%s\n" "no" >&6; } 7054fi 7055 7056 7057 test -n "$ac_ct_DUMPBIN" && break 7058done 7059 7060 if test "x$ac_ct_DUMPBIN" = x; then 7061 DUMPBIN=":" 7062 else 7063 case $cross_compiling:$ac_tool_warned in 7064yes:) 7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7066printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7067ac_tool_warned=yes ;; 7068esac 7069 DUMPBIN=$ac_ct_DUMPBIN 7070 fi 7071fi 7072 7073 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 7074 *COFF*) 7075 DUMPBIN="$DUMPBIN -symbols -headers" 7076 ;; 7077 *) 7078 DUMPBIN=: 7079 ;; 7080 esac 7081 fi 7082 7083 if test : != "$DUMPBIN"; then 7084 NM=$DUMPBIN 7085 fi 7086fi 7087test -z "$NM" && NM=nm 7088 7089 7090 7091 7092 7093 7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7095printf %s "checking the name lister ($NM) interface... " >&6; } 7096if test ${lt_cv_nm_interface+y} 7097then : 7098 printf %s "(cached) " >&6 7099else $as_nop 7100 lt_cv_nm_interface="BSD nm" 7101 echo "int some_variable = 0;" > conftest.$ac_ext 7102 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7103 (eval "$ac_compile" 2>conftest.err) 7104 cat conftest.err >&5 7105 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7106 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7107 cat conftest.err >&5 7108 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7109 cat conftest.out >&5 7110 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7111 lt_cv_nm_interface="MS dumpbin" 7112 fi 7113 rm -f conftest* 7114fi 7115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7116printf "%s\n" "$lt_cv_nm_interface" >&6; } 7117 7118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7119printf %s "checking whether ln -s works... " >&6; } 7120LN_S=$as_ln_s 7121if test "$LN_S" = "ln -s"; then 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7123printf "%s\n" "yes" >&6; } 7124else 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7126printf "%s\n" "no, using $LN_S" >&6; } 7127fi 7128 7129# find the maximum length of command line arguments 7130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7131printf %s "checking the maximum length of command line arguments... " >&6; } 7132if test ${lt_cv_sys_max_cmd_len+y} 7133then : 7134 printf %s "(cached) " >&6 7135else $as_nop 7136 i=0 7137 teststring=ABCD 7138 7139 case $build_os in 7140 msdosdjgpp*) 7141 # On DJGPP, this test can blow up pretty badly due to problems in libc 7142 # (any single argument exceeding 2000 bytes causes a buffer overrun 7143 # during glob expansion). Even if it were fixed, the result of this 7144 # check would be larger than it should be. 7145 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7146 ;; 7147 7148 gnu*) 7149 # Under GNU Hurd, this test is not required because there is 7150 # no limit to the length of command line arguments. 7151 # Libtool will interpret -1 as no limit whatsoever 7152 lt_cv_sys_max_cmd_len=-1; 7153 ;; 7154 7155 cygwin* | mingw* | cegcc*) 7156 # On Win9x/ME, this test blows up -- it succeeds, but takes 7157 # about 5 minutes as the teststring grows exponentially. 7158 # Worse, since 9x/ME are not pre-emptively multitasking, 7159 # you end up with a "frozen" computer, even though with patience 7160 # the test eventually succeeds (with a max line length of 256k). 7161 # Instead, let's just punt: use the minimum linelength reported by 7162 # all of the supported platforms: 8192 (on NT/2K/XP). 7163 lt_cv_sys_max_cmd_len=8192; 7164 ;; 7165 7166 mint*) 7167 # On MiNT this can take a long time and run out of memory. 7168 lt_cv_sys_max_cmd_len=8192; 7169 ;; 7170 7171 amigaos*) 7172 # On AmigaOS with pdksh, this test takes hours, literally. 7173 # So we just punt and use a minimum line length of 8192. 7174 lt_cv_sys_max_cmd_len=8192; 7175 ;; 7176 7177 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 7178 # This has been around since 386BSD, at least. Likely further. 7179 if test -x /sbin/sysctl; then 7180 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7181 elif test -x /usr/sbin/sysctl; then 7182 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7183 else 7184 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7185 fi 7186 # And add a safety zone 7187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7189 ;; 7190 7191 interix*) 7192 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7193 lt_cv_sys_max_cmd_len=196608 7194 ;; 7195 7196 os2*) 7197 # The test takes a long time on OS/2. 7198 lt_cv_sys_max_cmd_len=8192 7199 ;; 7200 7201 osf*) 7202 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7203 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7204 # nice to cause kernel panics so lets avoid the loop below. 7205 # First set a reasonable default. 7206 lt_cv_sys_max_cmd_len=16384 7207 # 7208 if test -x /sbin/sysconfig; then 7209 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7210 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7211 esac 7212 fi 7213 ;; 7214 sco3.2v5*) 7215 lt_cv_sys_max_cmd_len=102400 7216 ;; 7217 sysv5* | sco5v6* | sysv4.2uw2*) 7218 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7219 if test -n "$kargmax"; then 7220 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 7221 else 7222 lt_cv_sys_max_cmd_len=32768 7223 fi 7224 ;; 7225 *) 7226 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7227 if test -n "$lt_cv_sys_max_cmd_len" && \ 7228 test undefined != "$lt_cv_sys_max_cmd_len"; then 7229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7231 else 7232 # Make teststring a little bigger before we do anything with it. 7233 # a 1K string should be a reasonable start. 7234 for i in 1 2 3 4 5 6 7 8; do 7235 teststring=$teststring$teststring 7236 done 7237 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7238 # If test is not a shell built-in, we'll probably end up computing a 7239 # maximum length that is only half of the actual maximum length, but 7240 # we can't tell. 7241 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7242 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7243 test 17 != "$i" # 1/2 MB should be enough 7244 do 7245 i=`expr $i + 1` 7246 teststring=$teststring$teststring 7247 done 7248 # Only check the string length outside the loop. 7249 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7250 teststring= 7251 # Add a significant safety factor because C++ compilers can tack on 7252 # massive amounts of additional arguments before passing them to the 7253 # linker. It appears as though 1/2 is a usable value. 7254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7255 fi 7256 ;; 7257 esac 7258 7259fi 7260 7261if test -n "$lt_cv_sys_max_cmd_len"; then 7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7263printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 7264else 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 7266printf "%s\n" "none" >&6; } 7267fi 7268max_cmd_len=$lt_cv_sys_max_cmd_len 7269 7270 7271 7272 7273 7274 7275: ${CP="cp -f"} 7276: ${MV="mv -f"} 7277: ${RM="rm -f"} 7278 7279if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7280 lt_unset=unset 7281else 7282 lt_unset=false 7283fi 7284 7285 7286 7287 7288 7289# test EBCDIC or ASCII 7290case `echo X|tr X '\101'` in 7291 A) # ASCII based system 7292 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7293 lt_SP2NL='tr \040 \012' 7294 lt_NL2SP='tr \015\012 \040\040' 7295 ;; 7296 *) # EBCDIC based system 7297 lt_SP2NL='tr \100 \n' 7298 lt_NL2SP='tr \r\n \100\100' 7299 ;; 7300esac 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7311printf %s "checking how to convert $build file names to $host format... " >&6; } 7312if test ${lt_cv_to_host_file_cmd+y} 7313then : 7314 printf %s "(cached) " >&6 7315else $as_nop 7316 case $host in 7317 *-*-mingw* ) 7318 case $build in 7319 *-*-mingw* ) # actually msys 7320 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7321 ;; 7322 *-*-cygwin* ) 7323 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7324 ;; 7325 * ) # otherwise, assume *nix 7326 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7327 ;; 7328 esac 7329 ;; 7330 *-*-cygwin* ) 7331 case $build in 7332 *-*-mingw* ) # actually msys 7333 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7334 ;; 7335 *-*-cygwin* ) 7336 lt_cv_to_host_file_cmd=func_convert_file_noop 7337 ;; 7338 * ) # otherwise, assume *nix 7339 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7340 ;; 7341 esac 7342 ;; 7343 * ) # unhandled hosts (and "normal" native builds) 7344 lt_cv_to_host_file_cmd=func_convert_file_noop 7345 ;; 7346esac 7347 7348fi 7349 7350to_host_file_cmd=$lt_cv_to_host_file_cmd 7351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7352printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 7353 7354 7355 7356 7357 7358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7359printf %s "checking how to convert $build file names to toolchain format... " >&6; } 7360if test ${lt_cv_to_tool_file_cmd+y} 7361then : 7362 printf %s "(cached) " >&6 7363else $as_nop 7364 #assume ordinary cross tools, or native build. 7365lt_cv_to_tool_file_cmd=func_convert_file_noop 7366case $host in 7367 *-*-mingw* ) 7368 case $build in 7369 *-*-mingw* ) # actually msys 7370 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7371 ;; 7372 esac 7373 ;; 7374esac 7375 7376fi 7377 7378to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7380printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 7381 7382 7383 7384 7385 7386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7387printf %s "checking for $LD option to reload object files... " >&6; } 7388if test ${lt_cv_ld_reload_flag+y} 7389then : 7390 printf %s "(cached) " >&6 7391else $as_nop 7392 lt_cv_ld_reload_flag='-r' 7393fi 7394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7395printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 7396reload_flag=$lt_cv_ld_reload_flag 7397case $reload_flag in 7398"" | " "*) ;; 7399*) reload_flag=" $reload_flag" ;; 7400esac 7401reload_cmds='$LD$reload_flag -o $output$reload_objs' 7402case $host_os in 7403 cygwin* | mingw* | pw32* | cegcc*) 7404 if test yes != "$GCC"; then 7405 reload_cmds=false 7406 fi 7407 ;; 7408 darwin*) 7409 if test yes = "$GCC"; then 7410 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7411 else 7412 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7413 fi 7414 ;; 7415esac 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425if test -n "$ac_tool_prefix"; then 7426 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 7427set dummy ${ac_tool_prefix}file; ac_word=$2 7428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7429printf %s "checking for $ac_word... " >&6; } 7430if test ${ac_cv_prog_FILECMD+y} 7431then : 7432 printf %s "(cached) " >&6 7433else $as_nop 7434 if test -n "$FILECMD"; then 7435 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 7436else 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438for as_dir in $PATH 7439do 7440 IFS=$as_save_IFS 7441 case $as_dir in #((( 7442 '') as_dir=./ ;; 7443 */) ;; 7444 *) as_dir=$as_dir/ ;; 7445 esac 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 7449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452done 7453 done 7454IFS=$as_save_IFS 7455 7456fi 7457fi 7458FILECMD=$ac_cv_prog_FILECMD 7459if test -n "$FILECMD"; then 7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 7461printf "%s\n" "$FILECMD" >&6; } 7462else 7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464printf "%s\n" "no" >&6; } 7465fi 7466 7467 7468fi 7469if test -z "$ac_cv_prog_FILECMD"; then 7470 ac_ct_FILECMD=$FILECMD 7471 # Extract the first word of "file", so it can be a program name with args. 7472set dummy file; ac_word=$2 7473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474printf %s "checking for $ac_word... " >&6; } 7475if test ${ac_cv_prog_ac_ct_FILECMD+y} 7476then : 7477 printf %s "(cached) " >&6 7478else $as_nop 7479 if test -n "$ac_ct_FILECMD"; then 7480 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 7481else 7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7483for as_dir in $PATH 7484do 7485 IFS=$as_save_IFS 7486 case $as_dir in #((( 7487 '') as_dir=./ ;; 7488 */) ;; 7489 *) as_dir=$as_dir/ ;; 7490 esac 7491 for ac_exec_ext in '' $ac_executable_extensions; do 7492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7493 ac_cv_prog_ac_ct_FILECMD="file" 7494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7495 break 2 7496 fi 7497done 7498 done 7499IFS=$as_save_IFS 7500 7501fi 7502fi 7503ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 7504if test -n "$ac_ct_FILECMD"; then 7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 7506printf "%s\n" "$ac_ct_FILECMD" >&6; } 7507else 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7509printf "%s\n" "no" >&6; } 7510fi 7511 7512 if test "x$ac_ct_FILECMD" = x; then 7513 FILECMD=":" 7514 else 7515 case $cross_compiling:$ac_tool_warned in 7516yes:) 7517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7518printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7519ac_tool_warned=yes ;; 7520esac 7521 FILECMD=$ac_ct_FILECMD 7522 fi 7523else 7524 FILECMD="$ac_cv_prog_FILECMD" 7525fi 7526 7527 7528 7529 7530 7531 7532 7533if test -n "$ac_tool_prefix"; then 7534 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7535set dummy ${ac_tool_prefix}objdump; ac_word=$2 7536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7537printf %s "checking for $ac_word... " >&6; } 7538if test ${ac_cv_prog_OBJDUMP+y} 7539then : 7540 printf %s "(cached) " >&6 7541else $as_nop 7542 if test -n "$OBJDUMP"; then 7543 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7544else 7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7546for as_dir in $PATH 7547do 7548 IFS=$as_save_IFS 7549 case $as_dir in #((( 7550 '') as_dir=./ ;; 7551 */) ;; 7552 *) as_dir=$as_dir/ ;; 7553 esac 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7556 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7558 break 2 7559 fi 7560done 7561 done 7562IFS=$as_save_IFS 7563 7564fi 7565fi 7566OBJDUMP=$ac_cv_prog_OBJDUMP 7567if test -n "$OBJDUMP"; then 7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7569printf "%s\n" "$OBJDUMP" >&6; } 7570else 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572printf "%s\n" "no" >&6; } 7573fi 7574 7575 7576fi 7577if test -z "$ac_cv_prog_OBJDUMP"; then 7578 ac_ct_OBJDUMP=$OBJDUMP 7579 # Extract the first word of "objdump", so it can be a program name with args. 7580set dummy objdump; ac_word=$2 7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7582printf %s "checking for $ac_word... " >&6; } 7583if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 7584then : 7585 printf %s "(cached) " >&6 7586else $as_nop 7587 if test -n "$ac_ct_OBJDUMP"; then 7588 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7589else 7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591for as_dir in $PATH 7592do 7593 IFS=$as_save_IFS 7594 case $as_dir in #((( 7595 '') as_dir=./ ;; 7596 */) ;; 7597 *) as_dir=$as_dir/ ;; 7598 esac 7599 for ac_exec_ext in '' $ac_executable_extensions; do 7600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7601 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7603 break 2 7604 fi 7605done 7606 done 7607IFS=$as_save_IFS 7608 7609fi 7610fi 7611ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7612if test -n "$ac_ct_OBJDUMP"; then 7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7614printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 7615else 7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7617printf "%s\n" "no" >&6; } 7618fi 7619 7620 if test "x$ac_ct_OBJDUMP" = x; then 7621 OBJDUMP="false" 7622 else 7623 case $cross_compiling:$ac_tool_warned in 7624yes:) 7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7626printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7627ac_tool_warned=yes ;; 7628esac 7629 OBJDUMP=$ac_ct_OBJDUMP 7630 fi 7631else 7632 OBJDUMP="$ac_cv_prog_OBJDUMP" 7633fi 7634 7635test -z "$OBJDUMP" && OBJDUMP=objdump 7636 7637 7638 7639 7640 7641 7642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7643printf %s "checking how to recognize dependent libraries... " >&6; } 7644if test ${lt_cv_deplibs_check_method+y} 7645then : 7646 printf %s "(cached) " >&6 7647else $as_nop 7648 lt_cv_file_magic_cmd='$MAGIC_CMD' 7649lt_cv_file_magic_test_file= 7650lt_cv_deplibs_check_method='unknown' 7651# Need to set the preceding variable on all platforms that support 7652# interlibrary dependencies. 7653# 'none' -- dependencies not supported. 7654# 'unknown' -- same as none, but documents that we really don't know. 7655# 'pass_all' -- all dependencies passed with no checks. 7656# 'test_compile' -- check by making test program. 7657# 'file_magic [[regex]]' -- check by looking for files in library path 7658# that responds to the $file_magic_cmd with a given extended regex. 7659# If you have 'file' or equivalent on your system and you're not sure 7660# whether 'pass_all' will *always* work, you probably want this one. 7661 7662case $host_os in 7663aix[4-9]*) 7664 lt_cv_deplibs_check_method=pass_all 7665 ;; 7666 7667beos*) 7668 lt_cv_deplibs_check_method=pass_all 7669 ;; 7670 7671bsdi[45]*) 7672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7673 lt_cv_file_magic_cmd='$FILECMD -L' 7674 lt_cv_file_magic_test_file=/shlib/libc.so 7675 ;; 7676 7677cygwin*) 7678 # func_win32_libid is a shell function defined in ltmain.sh 7679 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7680 lt_cv_file_magic_cmd='func_win32_libid' 7681 ;; 7682 7683mingw* | pw32*) 7684 # Base MSYS/MinGW do not provide the 'file' command needed by 7685 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7686 # unless we find 'file', for example because we are cross-compiling. 7687 if ( file / ) >/dev/null 2>&1; then 7688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7689 lt_cv_file_magic_cmd='func_win32_libid' 7690 else 7691 # Keep this pattern in sync with the one in func_win32_libid. 7692 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7693 lt_cv_file_magic_cmd='$OBJDUMP -f' 7694 fi 7695 ;; 7696 7697cegcc*) 7698 # use the weaker test based on 'objdump'. See mingw*. 7699 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7700 lt_cv_file_magic_cmd='$OBJDUMP -f' 7701 ;; 7702 7703darwin* | rhapsody*) 7704 lt_cv_deplibs_check_method=pass_all 7705 ;; 7706 7707freebsd* | dragonfly* | midnightbsd*) 7708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7709 case $host_cpu in 7710 i*86 ) 7711 # Not sure whether the presence of OpenBSD here was a mistake. 7712 # Let's accept both of them until this is cleared up. 7713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7714 lt_cv_file_magic_cmd=$FILECMD 7715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7716 ;; 7717 esac 7718 else 7719 lt_cv_deplibs_check_method=pass_all 7720 fi 7721 ;; 7722 7723haiku*) 7724 lt_cv_deplibs_check_method=pass_all 7725 ;; 7726 7727hpux10.20* | hpux11*) 7728 lt_cv_file_magic_cmd=$FILECMD 7729 case $host_cpu in 7730 ia64*) 7731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7732 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7733 ;; 7734 hppa*64*) 7735 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]' 7736 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7737 ;; 7738 *) 7739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7740 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7741 ;; 7742 esac 7743 ;; 7744 7745interix[3-9]*) 7746 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7748 ;; 7749 7750irix5* | irix6* | nonstopux*) 7751 case $LD in 7752 *-32|*"-32 ") libmagic=32-bit;; 7753 *-n32|*"-n32 ") libmagic=N32;; 7754 *-64|*"-64 ") libmagic=64-bit;; 7755 *) libmagic=never-match;; 7756 esac 7757 lt_cv_deplibs_check_method=pass_all 7758 ;; 7759 7760# This must be glibc/ELF. 7761linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7762 lt_cv_deplibs_check_method=pass_all 7763 ;; 7764 7765netbsd* | netbsdelf*-gnu) 7766 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7768 else 7769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7770 fi 7771 ;; 7772 7773newos6*) 7774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7775 lt_cv_file_magic_cmd=$FILECMD 7776 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7777 ;; 7778 7779*nto* | *qnx*) 7780 lt_cv_deplibs_check_method=pass_all 7781 ;; 7782 7783openbsd* | bitrig*) 7784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7786 else 7787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7788 fi 7789 ;; 7790 7791osf3* | osf4* | osf5*) 7792 lt_cv_deplibs_check_method=pass_all 7793 ;; 7794 7795rdos*) 7796 lt_cv_deplibs_check_method=pass_all 7797 ;; 7798 7799solaris*) 7800 lt_cv_deplibs_check_method=pass_all 7801 ;; 7802 7803sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7804 lt_cv_deplibs_check_method=pass_all 7805 ;; 7806 7807sysv4 | sysv4.3*) 7808 case $host_vendor in 7809 motorola) 7810 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]' 7811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7812 ;; 7813 ncr) 7814 lt_cv_deplibs_check_method=pass_all 7815 ;; 7816 sequent) 7817 lt_cv_file_magic_cmd='/bin/file' 7818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7819 ;; 7820 sni) 7821 lt_cv_file_magic_cmd='/bin/file' 7822 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7823 lt_cv_file_magic_test_file=/lib/libc.so 7824 ;; 7825 siemens) 7826 lt_cv_deplibs_check_method=pass_all 7827 ;; 7828 pc) 7829 lt_cv_deplibs_check_method=pass_all 7830 ;; 7831 esac 7832 ;; 7833 7834tpf*) 7835 lt_cv_deplibs_check_method=pass_all 7836 ;; 7837os2*) 7838 lt_cv_deplibs_check_method=pass_all 7839 ;; 7840esac 7841 7842fi 7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7844printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7845 7846file_magic_glob= 7847want_nocaseglob=no 7848if test "$build" = "$host"; then 7849 case $host_os in 7850 mingw* | pw32*) 7851 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7852 want_nocaseglob=yes 7853 else 7854 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7855 fi 7856 ;; 7857 esac 7858fi 7859 7860file_magic_cmd=$lt_cv_file_magic_cmd 7861deplibs_check_method=$lt_cv_deplibs_check_method 7862test -z "$deplibs_check_method" && deplibs_check_method=unknown 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885if test -n "$ac_tool_prefix"; then 7886 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7887set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7889printf %s "checking for $ac_word... " >&6; } 7890if test ${ac_cv_prog_DLLTOOL+y} 7891then : 7892 printf %s "(cached) " >&6 7893else $as_nop 7894 if test -n "$DLLTOOL"; then 7895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7896else 7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7898for as_dir in $PATH 7899do 7900 IFS=$as_save_IFS 7901 case $as_dir in #((( 7902 '') as_dir=./ ;; 7903 */) ;; 7904 *) as_dir=$as_dir/ ;; 7905 esac 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7908 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912done 7913 done 7914IFS=$as_save_IFS 7915 7916fi 7917fi 7918DLLTOOL=$ac_cv_prog_DLLTOOL 7919if test -n "$DLLTOOL"; then 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7921printf "%s\n" "$DLLTOOL" >&6; } 7922else 7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7924printf "%s\n" "no" >&6; } 7925fi 7926 7927 7928fi 7929if test -z "$ac_cv_prog_DLLTOOL"; then 7930 ac_ct_DLLTOOL=$DLLTOOL 7931 # Extract the first word of "dlltool", so it can be a program name with args. 7932set dummy dlltool; ac_word=$2 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934printf %s "checking for $ac_word... " >&6; } 7935if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7936then : 7937 printf %s "(cached) " >&6 7938else $as_nop 7939 if test -n "$ac_ct_DLLTOOL"; then 7940 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7941else 7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7943for as_dir in $PATH 7944do 7945 IFS=$as_save_IFS 7946 case $as_dir in #((( 7947 '') as_dir=./ ;; 7948 */) ;; 7949 *) as_dir=$as_dir/ ;; 7950 esac 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7953 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957done 7958 done 7959IFS=$as_save_IFS 7960 7961fi 7962fi 7963ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7964if test -n "$ac_ct_DLLTOOL"; then 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7966printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7967else 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7969printf "%s\n" "no" >&6; } 7970fi 7971 7972 if test "x$ac_ct_DLLTOOL" = x; then 7973 DLLTOOL="false" 7974 else 7975 case $cross_compiling:$ac_tool_warned in 7976yes:) 7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7978printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7979ac_tool_warned=yes ;; 7980esac 7981 DLLTOOL=$ac_ct_DLLTOOL 7982 fi 7983else 7984 DLLTOOL="$ac_cv_prog_DLLTOOL" 7985fi 7986 7987test -z "$DLLTOOL" && DLLTOOL=dlltool 7988 7989 7990 7991 7992 7993 7994 7995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7996printf %s "checking how to associate runtime and link libraries... " >&6; } 7997if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7998then : 7999 printf %s "(cached) " >&6 8000else $as_nop 8001 lt_cv_sharedlib_from_linklib_cmd='unknown' 8002 8003case $host_os in 8004cygwin* | mingw* | pw32* | cegcc*) 8005 # two different shell functions defined in ltmain.sh; 8006 # decide which one to use based on capabilities of $DLLTOOL 8007 case `$DLLTOOL --help 2>&1` in 8008 *--identify-strict*) 8009 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8010 ;; 8011 *) 8012 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8013 ;; 8014 esac 8015 ;; 8016*) 8017 # fallback: assume linklib IS sharedlib 8018 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8019 ;; 8020esac 8021 8022fi 8023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8024printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8025sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8026test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8027 8028 8029 8030 8031 8032 8033 8034if test -n "$ac_tool_prefix"; then 8035 for ac_prog in ar 8036 do 8037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8038set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040printf %s "checking for $ac_word... " >&6; } 8041if test ${ac_cv_prog_AR+y} 8042then : 8043 printf %s "(cached) " >&6 8044else $as_nop 8045 if test -n "$AR"; then 8046 ac_cv_prog_AR="$AR" # Let the user override the test. 8047else 8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049for as_dir in $PATH 8050do 8051 IFS=$as_save_IFS 8052 case $as_dir in #((( 8053 '') as_dir=./ ;; 8054 */) ;; 8055 *) as_dir=$as_dir/ ;; 8056 esac 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi 8068fi 8069AR=$ac_cv_prog_AR 8070if test -n "$AR"; then 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8072printf "%s\n" "$AR" >&6; } 8073else 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075printf "%s\n" "no" >&6; } 8076fi 8077 8078 8079 test -n "$AR" && break 8080 done 8081fi 8082if test -z "$AR"; then 8083 ac_ct_AR=$AR 8084 for ac_prog in ar 8085do 8086 # Extract the first word of "$ac_prog", so it can be a program name with args. 8087set dummy $ac_prog; ac_word=$2 8088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8089printf %s "checking for $ac_word... " >&6; } 8090if test ${ac_cv_prog_ac_ct_AR+y} 8091then : 8092 printf %s "(cached) " >&6 8093else $as_nop 8094 if test -n "$ac_ct_AR"; then 8095 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8096else 8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8098for as_dir in $PATH 8099do 8100 IFS=$as_save_IFS 8101 case $as_dir in #((( 8102 '') as_dir=./ ;; 8103 */) ;; 8104 *) as_dir=$as_dir/ ;; 8105 esac 8106 for ac_exec_ext in '' $ac_executable_extensions; do 8107 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8108 ac_cv_prog_ac_ct_AR="$ac_prog" 8109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8110 break 2 8111 fi 8112done 8113 done 8114IFS=$as_save_IFS 8115 8116fi 8117fi 8118ac_ct_AR=$ac_cv_prog_ac_ct_AR 8119if test -n "$ac_ct_AR"; then 8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8121printf "%s\n" "$ac_ct_AR" >&6; } 8122else 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8124printf "%s\n" "no" >&6; } 8125fi 8126 8127 8128 test -n "$ac_ct_AR" && break 8129done 8130 8131 if test "x$ac_ct_AR" = x; then 8132 AR="false" 8133 else 8134 case $cross_compiling:$ac_tool_warned in 8135yes:) 8136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8137printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8138ac_tool_warned=yes ;; 8139esac 8140 AR=$ac_ct_AR 8141 fi 8142fi 8143 8144: ${AR=ar} 8145 8146 8147 8148 8149 8150 8151# Use ARFLAGS variable as AR's operation code to sync the variable naming with 8152# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 8153# higher priority because thats what people were doing historically (setting 8154# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 8155# variable obsoleted/removed. 8156 8157test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 8158lt_ar_flags=$AR_FLAGS 8159 8160 8161 8162 8163 8164 8165# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 8166# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 8167 8168 8169 8170 8171 8172 8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8174printf %s "checking for archiver @FILE support... " >&6; } 8175if test ${lt_cv_ar_at_file+y} 8176then : 8177 printf %s "(cached) " >&6 8178else $as_nop 8179 lt_cv_ar_at_file=no 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182 8183int 8184main (void) 8185{ 8186 8187 ; 8188 return 0; 8189} 8190_ACEOF 8191if ac_fn_c_try_compile "$LINENO" 8192then : 8193 echo conftest.$ac_objext > conftest.lst 8194 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8196 (eval $lt_ar_try) 2>&5 8197 ac_status=$? 8198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8199 test $ac_status = 0; } 8200 if test 0 -eq "$ac_status"; then 8201 # Ensure the archiver fails upon bogus file names. 8202 rm -f conftest.$ac_objext libconftest.a 8203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8204 (eval $lt_ar_try) 2>&5 8205 ac_status=$? 8206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8207 test $ac_status = 0; } 8208 if test 0 -ne "$ac_status"; then 8209 lt_cv_ar_at_file=@ 8210 fi 8211 fi 8212 rm -f conftest.* libconftest.a 8213 8214fi 8215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8216 8217fi 8218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8219printf "%s\n" "$lt_cv_ar_at_file" >&6; } 8220 8221if test no = "$lt_cv_ar_at_file"; then 8222 archiver_list_spec= 8223else 8224 archiver_list_spec=$lt_cv_ar_at_file 8225fi 8226 8227 8228 8229 8230 8231 8232 8233if test -n "$ac_tool_prefix"; then 8234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8235set dummy ${ac_tool_prefix}strip; ac_word=$2 8236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8237printf %s "checking for $ac_word... " >&6; } 8238if test ${ac_cv_prog_STRIP+y} 8239then : 8240 printf %s "(cached) " >&6 8241else $as_nop 8242 if test -n "$STRIP"; then 8243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8244else 8245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8246for as_dir in $PATH 8247do 8248 IFS=$as_save_IFS 8249 case $as_dir in #((( 8250 '') as_dir=./ ;; 8251 */) ;; 8252 *) as_dir=$as_dir/ ;; 8253 esac 8254 for ac_exec_ext in '' $ac_executable_extensions; do 8255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8256 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8258 break 2 8259 fi 8260done 8261 done 8262IFS=$as_save_IFS 8263 8264fi 8265fi 8266STRIP=$ac_cv_prog_STRIP 8267if test -n "$STRIP"; then 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8269printf "%s\n" "$STRIP" >&6; } 8270else 8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8272printf "%s\n" "no" >&6; } 8273fi 8274 8275 8276fi 8277if test -z "$ac_cv_prog_STRIP"; then 8278 ac_ct_STRIP=$STRIP 8279 # Extract the first word of "strip", so it can be a program name with args. 8280set dummy strip; ac_word=$2 8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8282printf %s "checking for $ac_word... " >&6; } 8283if test ${ac_cv_prog_ac_ct_STRIP+y} 8284then : 8285 printf %s "(cached) " >&6 8286else $as_nop 8287 if test -n "$ac_ct_STRIP"; then 8288 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8289else 8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8291for as_dir in $PATH 8292do 8293 IFS=$as_save_IFS 8294 case $as_dir in #((( 8295 '') as_dir=./ ;; 8296 */) ;; 8297 *) as_dir=$as_dir/ ;; 8298 esac 8299 for ac_exec_ext in '' $ac_executable_extensions; do 8300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8301 ac_cv_prog_ac_ct_STRIP="strip" 8302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8303 break 2 8304 fi 8305done 8306 done 8307IFS=$as_save_IFS 8308 8309fi 8310fi 8311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8312if test -n "$ac_ct_STRIP"; then 8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8314printf "%s\n" "$ac_ct_STRIP" >&6; } 8315else 8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8317printf "%s\n" "no" >&6; } 8318fi 8319 8320 if test "x$ac_ct_STRIP" = x; then 8321 STRIP=":" 8322 else 8323 case $cross_compiling:$ac_tool_warned in 8324yes:) 8325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8326printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8327ac_tool_warned=yes ;; 8328esac 8329 STRIP=$ac_ct_STRIP 8330 fi 8331else 8332 STRIP="$ac_cv_prog_STRIP" 8333fi 8334 8335test -z "$STRIP" && STRIP=: 8336 8337 8338 8339 8340 8341 8342if test -n "$ac_tool_prefix"; then 8343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8344set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8346printf %s "checking for $ac_word... " >&6; } 8347if test ${ac_cv_prog_RANLIB+y} 8348then : 8349 printf %s "(cached) " >&6 8350else $as_nop 8351 if test -n "$RANLIB"; then 8352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8353else 8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355for as_dir in $PATH 8356do 8357 IFS=$as_save_IFS 8358 case $as_dir in #((( 8359 '') as_dir=./ ;; 8360 */) ;; 8361 *) as_dir=$as_dir/ ;; 8362 esac 8363 for ac_exec_ext in '' $ac_executable_extensions; do 8364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8367 break 2 8368 fi 8369done 8370 done 8371IFS=$as_save_IFS 8372 8373fi 8374fi 8375RANLIB=$ac_cv_prog_RANLIB 8376if test -n "$RANLIB"; then 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8378printf "%s\n" "$RANLIB" >&6; } 8379else 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381printf "%s\n" "no" >&6; } 8382fi 8383 8384 8385fi 8386if test -z "$ac_cv_prog_RANLIB"; then 8387 ac_ct_RANLIB=$RANLIB 8388 # Extract the first word of "ranlib", so it can be a program name with args. 8389set dummy ranlib; ac_word=$2 8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391printf %s "checking for $ac_word... " >&6; } 8392if test ${ac_cv_prog_ac_ct_RANLIB+y} 8393then : 8394 printf %s "(cached) " >&6 8395else $as_nop 8396 if test -n "$ac_ct_RANLIB"; then 8397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8398else 8399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8400for as_dir in $PATH 8401do 8402 IFS=$as_save_IFS 8403 case $as_dir in #((( 8404 '') as_dir=./ ;; 8405 */) ;; 8406 *) as_dir=$as_dir/ ;; 8407 esac 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_ac_ct_RANLIB="ranlib" 8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414done 8415 done 8416IFS=$as_save_IFS 8417 8418fi 8419fi 8420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8421if test -n "$ac_ct_RANLIB"; then 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8423printf "%s\n" "$ac_ct_RANLIB" >&6; } 8424else 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8426printf "%s\n" "no" >&6; } 8427fi 8428 8429 if test "x$ac_ct_RANLIB" = x; then 8430 RANLIB=":" 8431 else 8432 case $cross_compiling:$ac_tool_warned in 8433yes:) 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8436ac_tool_warned=yes ;; 8437esac 8438 RANLIB=$ac_ct_RANLIB 8439 fi 8440else 8441 RANLIB="$ac_cv_prog_RANLIB" 8442fi 8443 8444test -z "$RANLIB" && RANLIB=: 8445 8446 8447 8448 8449 8450 8451# Determine commands to create old-style static archives. 8452old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8453old_postinstall_cmds='chmod 644 $oldlib' 8454old_postuninstall_cmds= 8455 8456if test -n "$RANLIB"; then 8457 case $host_os in 8458 bitrig* | openbsd*) 8459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8460 ;; 8461 *) 8462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8463 ;; 8464 esac 8465 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8466fi 8467 8468case $host_os in 8469 darwin*) 8470 lock_old_archive_extraction=yes ;; 8471 *) 8472 lock_old_archive_extraction=no ;; 8473esac 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513# If no C compiler was specified, use CC. 8514LTCC=${LTCC-"$CC"} 8515 8516# If no C compiler flags were specified, use CFLAGS. 8517LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8518 8519# Allow CC to be a program name with arguments. 8520compiler=$CC 8521 8522 8523# Check for command to grab the raw symbol name followed by C symbol from nm. 8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8525printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8526if test ${lt_cv_sys_global_symbol_pipe+y} 8527then : 8528 printf %s "(cached) " >&6 8529else $as_nop 8530 8531# These are sane defaults that work on at least a few old systems. 8532# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8533 8534# Character class describing NM global symbol codes. 8535symcode='[BCDEGRST]' 8536 8537# Regexp to match symbols that can be accessed directly from C. 8538sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8539 8540# Define system-specific variables. 8541case $host_os in 8542aix*) 8543 symcode='[BCDT]' 8544 ;; 8545cygwin* | mingw* | pw32* | cegcc*) 8546 symcode='[ABCDGISTW]' 8547 ;; 8548hpux*) 8549 if test ia64 = "$host_cpu"; then 8550 symcode='[ABCDEGRST]' 8551 fi 8552 ;; 8553irix* | nonstopux*) 8554 symcode='[BCDEGRST]' 8555 ;; 8556osf*) 8557 symcode='[BCDEGQRST]' 8558 ;; 8559solaris*) 8560 symcode='[BDRT]' 8561 ;; 8562sco3.2v5*) 8563 symcode='[DT]' 8564 ;; 8565sysv4.2uw2*) 8566 symcode='[DT]' 8567 ;; 8568sysv5* | sco5v6* | unixware* | OpenUNIX*) 8569 symcode='[ABDT]' 8570 ;; 8571sysv4) 8572 symcode='[DFNSTU]' 8573 ;; 8574esac 8575 8576# If we're using GNU nm, then use its standard symbol codes. 8577case `$NM -V 2>&1` in 8578*GNU* | *'with BFD'*) 8579 symcode='[ABCDGIRSTW]' ;; 8580esac 8581 8582if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8583 # Gets list of data symbols to import. 8584 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 8585 # Adjust the below global symbol transforms to fixup imported variables. 8586 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8587 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8588 lt_c_name_lib_hook="\ 8589 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8590 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8591else 8592 # Disable hooks by default. 8593 lt_cv_sys_global_symbol_to_import= 8594 lt_cdecl_hook= 8595 lt_c_name_hook= 8596 lt_c_name_lib_hook= 8597fi 8598 8599# Transform an extracted symbol line into a proper C declaration. 8600# Some systems (esp. on ia64) link data and code symbols differently, 8601# so use this general approach. 8602lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 8603$lt_cdecl_hook\ 8604" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8605" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8606 8607# Transform an extracted symbol line into symbol name and symbol address 8608lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 8609$lt_c_name_hook\ 8610" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8611" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8612 8613# Transform an extracted symbol line into symbol name with lib prefix and 8614# symbol address. 8615lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 8616$lt_c_name_lib_hook\ 8617" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8618" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8619" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8620 8621# Handle CRLF in mingw tool chain 8622opt_cr= 8623case $build_os in 8624mingw*) 8625 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8626 ;; 8627esac 8628 8629# Try without a prefix underscore, then with it. 8630for ac_symprfx in "" "_"; do 8631 8632 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8633 symxfrm="\\1 $ac_symprfx\\2 \\2" 8634 8635 # Write the raw and C identifiers. 8636 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8637 # Fake it for dumpbin and say T for any non-static function, 8638 # D for any global variable and I for any imported variable. 8639 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 8640 # which start with @ or ?. 8641 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8642" {last_section=section; section=\$ 3};"\ 8643" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8644" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8645" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8646" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8647" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8648" \$ 0!~/External *\|/{next};"\ 8649" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8650" {if(hide[section]) next};"\ 8651" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8652" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8653" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8654" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8655" ' prfx=^$ac_symprfx" 8656 else 8657 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8658 fi 8659 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 8660 8661 # Check to see that the pipe works correctly. 8662 pipe_works=no 8663 8664 rm -f conftest* 8665 cat > conftest.$ac_ext <<_LT_EOF 8666#ifdef __cplusplus 8667extern "C" { 8668#endif 8669char nm_test_var; 8670void nm_test_func(void); 8671void nm_test_func(void){} 8672#ifdef __cplusplus 8673} 8674#endif 8675int main(){nm_test_var='a';nm_test_func();return(0);} 8676_LT_EOF 8677 8678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8679 (eval $ac_compile) 2>&5 8680 ac_status=$? 8681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8682 test $ac_status = 0; }; then 8683 # Now try to grab the symbols. 8684 nlist=conftest.nm 8685 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8686 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8687 # Try sorting and uniquifying the output. 8688 if sort "$nlist" | uniq > "$nlist"T; then 8689 mv -f "$nlist"T "$nlist" 8690 else 8691 rm -f "$nlist"T 8692 fi 8693 8694 # Make sure that we snagged all the symbols we need. 8695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8697 cat <<_LT_EOF > conftest.$ac_ext 8698/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8699#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8700/* DATA imports from DLLs on WIN32 can't be const, because runtime 8701 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8702# define LT_DLSYM_CONST 8703#elif defined __osf__ 8704/* This system does not cope well with relocations in const data. */ 8705# define LT_DLSYM_CONST 8706#else 8707# define LT_DLSYM_CONST const 8708#endif 8709 8710#ifdef __cplusplus 8711extern "C" { 8712#endif 8713 8714_LT_EOF 8715 # Now generate the symbol file. 8716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8717 8718 cat <<_LT_EOF >> conftest.$ac_ext 8719 8720/* The mapping between symbol names and symbols. */ 8721LT_DLSYM_CONST struct { 8722 const char *name; 8723 void *address; 8724} 8725lt__PROGRAM__LTX_preloaded_symbols[] = 8726{ 8727 { "@PROGRAM@", (void *) 0 }, 8728_LT_EOF 8729 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8730 cat <<\_LT_EOF >> conftest.$ac_ext 8731 {0, (void *) 0} 8732}; 8733 8734/* This works around a problem in FreeBSD linker */ 8735#ifdef FREEBSD_WORKAROUND 8736static const void *lt_preloaded_setup() { 8737 return lt__PROGRAM__LTX_preloaded_symbols; 8738} 8739#endif 8740 8741#ifdef __cplusplus 8742} 8743#endif 8744_LT_EOF 8745 # Now try linking the two files. 8746 mv conftest.$ac_objext conftstm.$ac_objext 8747 lt_globsym_save_LIBS=$LIBS 8748 lt_globsym_save_CFLAGS=$CFLAGS 8749 LIBS=conftstm.$ac_objext 8750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8752 (eval $ac_link) 2>&5 8753 ac_status=$? 8754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8755 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8756 pipe_works=yes 8757 fi 8758 LIBS=$lt_globsym_save_LIBS 8759 CFLAGS=$lt_globsym_save_CFLAGS 8760 else 8761 echo "cannot find nm_test_func in $nlist" >&5 8762 fi 8763 else 8764 echo "cannot find nm_test_var in $nlist" >&5 8765 fi 8766 else 8767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8768 fi 8769 else 8770 echo "$progname: failed program was:" >&5 8771 cat conftest.$ac_ext >&5 8772 fi 8773 rm -rf conftest* conftst* 8774 8775 # Do not use the global_symbol_pipe unless it works. 8776 if test yes = "$pipe_works"; then 8777 break 8778 else 8779 lt_cv_sys_global_symbol_pipe= 8780 fi 8781done 8782 8783fi 8784 8785if test -z "$lt_cv_sys_global_symbol_pipe"; then 8786 lt_cv_sys_global_symbol_to_cdecl= 8787fi 8788if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8790printf "%s\n" "failed" >&6; } 8791else 8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8793printf "%s\n" "ok" >&6; } 8794fi 8795 8796# Response file support. 8797if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8798 nm_file_list_spec='@' 8799elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8800 nm_file_list_spec='@' 8801fi 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8840printf %s "checking for sysroot... " >&6; } 8841 8842# Check whether --with-sysroot was given. 8843if test ${with_sysroot+y} 8844then : 8845 withval=$with_sysroot; 8846else $as_nop 8847 with_sysroot=no 8848fi 8849 8850 8851lt_sysroot= 8852case $with_sysroot in #( 8853 yes) 8854 if test yes = "$GCC"; then 8855 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8856 fi 8857 ;; #( 8858 /*) 8859 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8860 ;; #( 8861 no|'') 8862 ;; #( 8863 *) 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8865printf "%s\n" "$with_sysroot" >&6; } 8866 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8867 ;; 8868esac 8869 8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8871printf "%s\n" "${lt_sysroot:-no}" >&6; } 8872 8873 8874 8875 8876 8877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8878printf %s "checking for a working dd... " >&6; } 8879if test ${ac_cv_path_lt_DD+y} 8880then : 8881 printf %s "(cached) " >&6 8882else $as_nop 8883 printf 0123456789abcdef0123456789abcdef >conftest.i 8884cat conftest.i conftest.i >conftest2.i 8885: ${lt_DD:=$DD} 8886if test -z "$lt_DD"; then 8887 ac_path_lt_DD_found=false 8888 # Loop through the user's path and test for each of PROGNAME-LIST 8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8890for as_dir in $PATH 8891do 8892 IFS=$as_save_IFS 8893 case $as_dir in #((( 8894 '') as_dir=./ ;; 8895 */) ;; 8896 *) as_dir=$as_dir/ ;; 8897 esac 8898 for ac_prog in dd 8899 do 8900 for ac_exec_ext in '' $ac_executable_extensions; do 8901 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8902 as_fn_executable_p "$ac_path_lt_DD" || continue 8903if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8904 cmp -s conftest.i conftest.out \ 8905 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8906fi 8907 $ac_path_lt_DD_found && break 3 8908 done 8909 done 8910 done 8911IFS=$as_save_IFS 8912 if test -z "$ac_cv_path_lt_DD"; then 8913 : 8914 fi 8915else 8916 ac_cv_path_lt_DD=$lt_DD 8917fi 8918 8919rm -f conftest.i conftest2.i conftest.out 8920fi 8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8922printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8923 8924 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8926printf %s "checking how to truncate binary pipes... " >&6; } 8927if test ${lt_cv_truncate_bin+y} 8928then : 8929 printf %s "(cached) " >&6 8930else $as_nop 8931 printf 0123456789abcdef0123456789abcdef >conftest.i 8932cat conftest.i conftest.i >conftest2.i 8933lt_cv_truncate_bin= 8934if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8935 cmp -s conftest.i conftest.out \ 8936 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8937fi 8938rm -f conftest.i conftest2.i conftest.out 8939test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8940fi 8941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8942printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8943 8944 8945 8946 8947 8948 8949 8950# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8951func_cc_basename () 8952{ 8953 for cc_temp in $*""; do 8954 case $cc_temp in 8955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8957 \-*) ;; 8958 *) break;; 8959 esac 8960 done 8961 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8962} 8963 8964# Check whether --enable-libtool-lock was given. 8965if test ${enable_libtool_lock+y} 8966then : 8967 enableval=$enable_libtool_lock; 8968fi 8969 8970test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8971 8972# Some flags need to be propagated to the compiler or linker for good 8973# libtool support. 8974case $host in 8975ia64-*-hpux*) 8976 # Find out what ABI is being produced by ac_compile, and set mode 8977 # options accordingly. 8978 echo 'int i;' > conftest.$ac_ext 8979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8980 (eval $ac_compile) 2>&5 8981 ac_status=$? 8982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8983 test $ac_status = 0; }; then 8984 case `$FILECMD conftest.$ac_objext` in 8985 *ELF-32*) 8986 HPUX_IA64_MODE=32 8987 ;; 8988 *ELF-64*) 8989 HPUX_IA64_MODE=64 8990 ;; 8991 esac 8992 fi 8993 rm -rf conftest* 8994 ;; 8995*-*-irix6*) 8996 # Find out what ABI is being produced by ac_compile, and set linker 8997 # options accordingly. 8998 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9000 (eval $ac_compile) 2>&5 9001 ac_status=$? 9002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9003 test $ac_status = 0; }; then 9004 if test yes = "$lt_cv_prog_gnu_ld"; then 9005 case `$FILECMD conftest.$ac_objext` in 9006 *32-bit*) 9007 LD="${LD-ld} -melf32bsmip" 9008 ;; 9009 *N32*) 9010 LD="${LD-ld} -melf32bmipn32" 9011 ;; 9012 *64-bit*) 9013 LD="${LD-ld} -melf64bmip" 9014 ;; 9015 esac 9016 else 9017 case `$FILECMD conftest.$ac_objext` in 9018 *32-bit*) 9019 LD="${LD-ld} -32" 9020 ;; 9021 *N32*) 9022 LD="${LD-ld} -n32" 9023 ;; 9024 *64-bit*) 9025 LD="${LD-ld} -64" 9026 ;; 9027 esac 9028 fi 9029 fi 9030 rm -rf conftest* 9031 ;; 9032 9033mips64*-*linux*) 9034 # Find out what ABI is being produced by ac_compile, and set linker 9035 # options accordingly. 9036 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9038 (eval $ac_compile) 2>&5 9039 ac_status=$? 9040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9041 test $ac_status = 0; }; then 9042 emul=elf 9043 case `$FILECMD conftest.$ac_objext` in 9044 *32-bit*) 9045 emul="${emul}32" 9046 ;; 9047 *64-bit*) 9048 emul="${emul}64" 9049 ;; 9050 esac 9051 case `$FILECMD conftest.$ac_objext` in 9052 *MSB*) 9053 emul="${emul}btsmip" 9054 ;; 9055 *LSB*) 9056 emul="${emul}ltsmip" 9057 ;; 9058 esac 9059 case `$FILECMD conftest.$ac_objext` in 9060 *N32*) 9061 emul="${emul}n32" 9062 ;; 9063 esac 9064 LD="${LD-ld} -m $emul" 9065 fi 9066 rm -rf conftest* 9067 ;; 9068 9069x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9070s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9071 # Find out what ABI is being produced by ac_compile, and set linker 9072 # options accordingly. Note that the listed cases only cover the 9073 # situations where additional linker options are needed (such as when 9074 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9075 # vice versa); the common cases where no linker options are needed do 9076 # not appear in the list. 9077 echo 'int i;' > conftest.$ac_ext 9078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9079 (eval $ac_compile) 2>&5 9080 ac_status=$? 9081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9082 test $ac_status = 0; }; then 9083 case `$FILECMD conftest.o` in 9084 *32-bit*) 9085 case $host in 9086 x86_64-*kfreebsd*-gnu) 9087 LD="${LD-ld} -m elf_i386_fbsd" 9088 ;; 9089 x86_64-*linux*) 9090 case `$FILECMD conftest.o` in 9091 *x86-64*) 9092 LD="${LD-ld} -m elf32_x86_64" 9093 ;; 9094 *) 9095 LD="${LD-ld} -m elf_i386" 9096 ;; 9097 esac 9098 ;; 9099 powerpc64le-*linux*) 9100 LD="${LD-ld} -m elf32lppclinux" 9101 ;; 9102 powerpc64-*linux*) 9103 LD="${LD-ld} -m elf32ppclinux" 9104 ;; 9105 s390x-*linux*) 9106 LD="${LD-ld} -m elf_s390" 9107 ;; 9108 sparc64-*linux*) 9109 LD="${LD-ld} -m elf32_sparc" 9110 ;; 9111 esac 9112 ;; 9113 *64-bit*) 9114 case $host in 9115 x86_64-*kfreebsd*-gnu) 9116 LD="${LD-ld} -m elf_x86_64_fbsd" 9117 ;; 9118 x86_64-*linux*) 9119 LD="${LD-ld} -m elf_x86_64" 9120 ;; 9121 powerpcle-*linux*) 9122 LD="${LD-ld} -m elf64lppc" 9123 ;; 9124 powerpc-*linux*) 9125 LD="${LD-ld} -m elf64ppc" 9126 ;; 9127 s390*-*linux*|s390*-*tpf*) 9128 LD="${LD-ld} -m elf64_s390" 9129 ;; 9130 sparc*-*linux*) 9131 LD="${LD-ld} -m elf64_sparc" 9132 ;; 9133 esac 9134 ;; 9135 esac 9136 fi 9137 rm -rf conftest* 9138 ;; 9139 9140*-*-sco3.2v5*) 9141 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9142 SAVE_CFLAGS=$CFLAGS 9143 CFLAGS="$CFLAGS -belf" 9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9145printf %s "checking whether the C compiler needs -belf... " >&6; } 9146if test ${lt_cv_cc_needs_belf+y} 9147then : 9148 printf %s "(cached) " >&6 9149else $as_nop 9150 ac_ext=c 9151ac_cpp='$CPP $CPPFLAGS' 9152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9154ac_compiler_gnu=$ac_cv_c_compiler_gnu 9155 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158 9159int 9160main (void) 9161{ 9162 9163 ; 9164 return 0; 9165} 9166_ACEOF 9167if ac_fn_c_try_link "$LINENO" 9168then : 9169 lt_cv_cc_needs_belf=yes 9170else $as_nop 9171 lt_cv_cc_needs_belf=no 9172fi 9173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9174 conftest$ac_exeext conftest.$ac_ext 9175 ac_ext=c 9176ac_cpp='$CPP $CPPFLAGS' 9177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9179ac_compiler_gnu=$ac_cv_c_compiler_gnu 9180 9181fi 9182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9183printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 9184 if test yes != "$lt_cv_cc_needs_belf"; then 9185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9186 CFLAGS=$SAVE_CFLAGS 9187 fi 9188 ;; 9189*-*solaris*) 9190 # Find out what ABI is being produced by ac_compile, and set linker 9191 # options accordingly. 9192 echo 'int i;' > conftest.$ac_ext 9193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9194 (eval $ac_compile) 2>&5 9195 ac_status=$? 9196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9197 test $ac_status = 0; }; then 9198 case `$FILECMD conftest.o` in 9199 *64-bit*) 9200 case $lt_cv_prog_gnu_ld in 9201 yes*) 9202 case $host in 9203 i?86-*-solaris*|x86_64-*-solaris*) 9204 LD="${LD-ld} -m elf_x86_64" 9205 ;; 9206 sparc*-*-solaris*) 9207 LD="${LD-ld} -m elf64_sparc" 9208 ;; 9209 esac 9210 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9211 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9212 LD=${LD-ld}_sol2 9213 fi 9214 ;; 9215 *) 9216 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9217 LD="${LD-ld} -64" 9218 fi 9219 ;; 9220 esac 9221 ;; 9222 esac 9223 fi 9224 rm -rf conftest* 9225 ;; 9226esac 9227 9228need_locks=$enable_libtool_lock 9229 9230if test -n "$ac_tool_prefix"; then 9231 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9232set dummy ${ac_tool_prefix}mt; ac_word=$2 9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9234printf %s "checking for $ac_word... " >&6; } 9235if test ${ac_cv_prog_MANIFEST_TOOL+y} 9236then : 9237 printf %s "(cached) " >&6 9238else $as_nop 9239 if test -n "$MANIFEST_TOOL"; then 9240 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9241else 9242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9243for as_dir in $PATH 9244do 9245 IFS=$as_save_IFS 9246 case $as_dir in #((( 9247 '') as_dir=./ ;; 9248 */) ;; 9249 *) as_dir=$as_dir/ ;; 9250 esac 9251 for ac_exec_ext in '' $ac_executable_extensions; do 9252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9253 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9255 break 2 9256 fi 9257done 9258 done 9259IFS=$as_save_IFS 9260 9261fi 9262fi 9263MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9264if test -n "$MANIFEST_TOOL"; then 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9266printf "%s\n" "$MANIFEST_TOOL" >&6; } 9267else 9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9269printf "%s\n" "no" >&6; } 9270fi 9271 9272 9273fi 9274if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9275 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9276 # Extract the first word of "mt", so it can be a program name with args. 9277set dummy mt; ac_word=$2 9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9279printf %s "checking for $ac_word... " >&6; } 9280if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 9281then : 9282 printf %s "(cached) " >&6 9283else $as_nop 9284 if test -n "$ac_ct_MANIFEST_TOOL"; then 9285 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9286else 9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9288for as_dir in $PATH 9289do 9290 IFS=$as_save_IFS 9291 case $as_dir in #((( 9292 '') as_dir=./ ;; 9293 */) ;; 9294 *) as_dir=$as_dir/ ;; 9295 esac 9296 for ac_exec_ext in '' $ac_executable_extensions; do 9297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9298 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9300 break 2 9301 fi 9302done 9303 done 9304IFS=$as_save_IFS 9305 9306fi 9307fi 9308ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9309if test -n "$ac_ct_MANIFEST_TOOL"; then 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9311printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 9312else 9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9314printf "%s\n" "no" >&6; } 9315fi 9316 9317 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9318 MANIFEST_TOOL=":" 9319 else 9320 case $cross_compiling:$ac_tool_warned in 9321yes:) 9322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9323printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9324ac_tool_warned=yes ;; 9325esac 9326 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9327 fi 9328else 9329 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9330fi 9331 9332test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9334printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9335if test ${lt_cv_path_mainfest_tool+y} 9336then : 9337 printf %s "(cached) " >&6 9338else $as_nop 9339 lt_cv_path_mainfest_tool=no 9340 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9341 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9342 cat conftest.err >&5 9343 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9344 lt_cv_path_mainfest_tool=yes 9345 fi 9346 rm -f conftest* 9347fi 9348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9349printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 9350if test yes != "$lt_cv_path_mainfest_tool"; then 9351 MANIFEST_TOOL=: 9352fi 9353 9354 9355 9356 9357 9358 9359 case $host_os in 9360 rhapsody* | darwin*) 9361 if test -n "$ac_tool_prefix"; then 9362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9363set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9365printf %s "checking for $ac_word... " >&6; } 9366if test ${ac_cv_prog_DSYMUTIL+y} 9367then : 9368 printf %s "(cached) " >&6 9369else $as_nop 9370 if test -n "$DSYMUTIL"; then 9371 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9372else 9373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9374for as_dir in $PATH 9375do 9376 IFS=$as_save_IFS 9377 case $as_dir in #((( 9378 '') as_dir=./ ;; 9379 */) ;; 9380 *) as_dir=$as_dir/ ;; 9381 esac 9382 for ac_exec_ext in '' $ac_executable_extensions; do 9383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9386 break 2 9387 fi 9388done 9389 done 9390IFS=$as_save_IFS 9391 9392fi 9393fi 9394DSYMUTIL=$ac_cv_prog_DSYMUTIL 9395if test -n "$DSYMUTIL"; then 9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9397printf "%s\n" "$DSYMUTIL" >&6; } 9398else 9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9400printf "%s\n" "no" >&6; } 9401fi 9402 9403 9404fi 9405if test -z "$ac_cv_prog_DSYMUTIL"; then 9406 ac_ct_DSYMUTIL=$DSYMUTIL 9407 # Extract the first word of "dsymutil", so it can be a program name with args. 9408set dummy dsymutil; ac_word=$2 9409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9410printf %s "checking for $ac_word... " >&6; } 9411if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 9412then : 9413 printf %s "(cached) " >&6 9414else $as_nop 9415 if test -n "$ac_ct_DSYMUTIL"; then 9416 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9417else 9418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9419for as_dir in $PATH 9420do 9421 IFS=$as_save_IFS 9422 case $as_dir in #((( 9423 '') as_dir=./ ;; 9424 */) ;; 9425 *) as_dir=$as_dir/ ;; 9426 esac 9427 for ac_exec_ext in '' $ac_executable_extensions; do 9428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9429 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9431 break 2 9432 fi 9433done 9434 done 9435IFS=$as_save_IFS 9436 9437fi 9438fi 9439ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9440if test -n "$ac_ct_DSYMUTIL"; then 9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9442printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 9443else 9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9445printf "%s\n" "no" >&6; } 9446fi 9447 9448 if test "x$ac_ct_DSYMUTIL" = x; then 9449 DSYMUTIL=":" 9450 else 9451 case $cross_compiling:$ac_tool_warned in 9452yes:) 9453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9454printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9455ac_tool_warned=yes ;; 9456esac 9457 DSYMUTIL=$ac_ct_DSYMUTIL 9458 fi 9459else 9460 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9461fi 9462 9463 if test -n "$ac_tool_prefix"; then 9464 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9465set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9467printf %s "checking for $ac_word... " >&6; } 9468if test ${ac_cv_prog_NMEDIT+y} 9469then : 9470 printf %s "(cached) " >&6 9471else $as_nop 9472 if test -n "$NMEDIT"; then 9473 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9474else 9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9476for as_dir in $PATH 9477do 9478 IFS=$as_save_IFS 9479 case $as_dir in #((( 9480 '') as_dir=./ ;; 9481 */) ;; 9482 *) as_dir=$as_dir/ ;; 9483 esac 9484 for ac_exec_ext in '' $ac_executable_extensions; do 9485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9488 break 2 9489 fi 9490done 9491 done 9492IFS=$as_save_IFS 9493 9494fi 9495fi 9496NMEDIT=$ac_cv_prog_NMEDIT 9497if test -n "$NMEDIT"; then 9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9499printf "%s\n" "$NMEDIT" >&6; } 9500else 9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9502printf "%s\n" "no" >&6; } 9503fi 9504 9505 9506fi 9507if test -z "$ac_cv_prog_NMEDIT"; then 9508 ac_ct_NMEDIT=$NMEDIT 9509 # Extract the first word of "nmedit", so it can be a program name with args. 9510set dummy nmedit; ac_word=$2 9511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9512printf %s "checking for $ac_word... " >&6; } 9513if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9514then : 9515 printf %s "(cached) " >&6 9516else $as_nop 9517 if test -n "$ac_ct_NMEDIT"; then 9518 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9519else 9520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9521for as_dir in $PATH 9522do 9523 IFS=$as_save_IFS 9524 case $as_dir in #((( 9525 '') as_dir=./ ;; 9526 */) ;; 9527 *) as_dir=$as_dir/ ;; 9528 esac 9529 for ac_exec_ext in '' $ac_executable_extensions; do 9530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9531 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9533 break 2 9534 fi 9535done 9536 done 9537IFS=$as_save_IFS 9538 9539fi 9540fi 9541ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9542if test -n "$ac_ct_NMEDIT"; then 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9544printf "%s\n" "$ac_ct_NMEDIT" >&6; } 9545else 9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9547printf "%s\n" "no" >&6; } 9548fi 9549 9550 if test "x$ac_ct_NMEDIT" = x; then 9551 NMEDIT=":" 9552 else 9553 case $cross_compiling:$ac_tool_warned in 9554yes:) 9555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9556printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9557ac_tool_warned=yes ;; 9558esac 9559 NMEDIT=$ac_ct_NMEDIT 9560 fi 9561else 9562 NMEDIT="$ac_cv_prog_NMEDIT" 9563fi 9564 9565 if test -n "$ac_tool_prefix"; then 9566 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9567set dummy ${ac_tool_prefix}lipo; ac_word=$2 9568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9569printf %s "checking for $ac_word... " >&6; } 9570if test ${ac_cv_prog_LIPO+y} 9571then : 9572 printf %s "(cached) " >&6 9573else $as_nop 9574 if test -n "$LIPO"; then 9575 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9576else 9577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9578for as_dir in $PATH 9579do 9580 IFS=$as_save_IFS 9581 case $as_dir in #((( 9582 '') as_dir=./ ;; 9583 */) ;; 9584 *) as_dir=$as_dir/ ;; 9585 esac 9586 for ac_exec_ext in '' $ac_executable_extensions; do 9587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9588 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9590 break 2 9591 fi 9592done 9593 done 9594IFS=$as_save_IFS 9595 9596fi 9597fi 9598LIPO=$ac_cv_prog_LIPO 9599if test -n "$LIPO"; then 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9601printf "%s\n" "$LIPO" >&6; } 9602else 9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9604printf "%s\n" "no" >&6; } 9605fi 9606 9607 9608fi 9609if test -z "$ac_cv_prog_LIPO"; then 9610 ac_ct_LIPO=$LIPO 9611 # Extract the first word of "lipo", so it can be a program name with args. 9612set dummy lipo; ac_word=$2 9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9614printf %s "checking for $ac_word... " >&6; } 9615if test ${ac_cv_prog_ac_ct_LIPO+y} 9616then : 9617 printf %s "(cached) " >&6 9618else $as_nop 9619 if test -n "$ac_ct_LIPO"; then 9620 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9621else 9622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9623for as_dir in $PATH 9624do 9625 IFS=$as_save_IFS 9626 case $as_dir in #((( 9627 '') as_dir=./ ;; 9628 */) ;; 9629 *) as_dir=$as_dir/ ;; 9630 esac 9631 for ac_exec_ext in '' $ac_executable_extensions; do 9632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9633 ac_cv_prog_ac_ct_LIPO="lipo" 9634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9635 break 2 9636 fi 9637done 9638 done 9639IFS=$as_save_IFS 9640 9641fi 9642fi 9643ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9644if test -n "$ac_ct_LIPO"; then 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9646printf "%s\n" "$ac_ct_LIPO" >&6; } 9647else 9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9649printf "%s\n" "no" >&6; } 9650fi 9651 9652 if test "x$ac_ct_LIPO" = x; then 9653 LIPO=":" 9654 else 9655 case $cross_compiling:$ac_tool_warned in 9656yes:) 9657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9658printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9659ac_tool_warned=yes ;; 9660esac 9661 LIPO=$ac_ct_LIPO 9662 fi 9663else 9664 LIPO="$ac_cv_prog_LIPO" 9665fi 9666 9667 if test -n "$ac_tool_prefix"; then 9668 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9669set dummy ${ac_tool_prefix}otool; ac_word=$2 9670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9671printf %s "checking for $ac_word... " >&6; } 9672if test ${ac_cv_prog_OTOOL+y} 9673then : 9674 printf %s "(cached) " >&6 9675else $as_nop 9676 if test -n "$OTOOL"; then 9677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9678else 9679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9680for as_dir in $PATH 9681do 9682 IFS=$as_save_IFS 9683 case $as_dir in #((( 9684 '') as_dir=./ ;; 9685 */) ;; 9686 *) as_dir=$as_dir/ ;; 9687 esac 9688 for ac_exec_ext in '' $ac_executable_extensions; do 9689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9690 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9692 break 2 9693 fi 9694done 9695 done 9696IFS=$as_save_IFS 9697 9698fi 9699fi 9700OTOOL=$ac_cv_prog_OTOOL 9701if test -n "$OTOOL"; then 9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9703printf "%s\n" "$OTOOL" >&6; } 9704else 9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9706printf "%s\n" "no" >&6; } 9707fi 9708 9709 9710fi 9711if test -z "$ac_cv_prog_OTOOL"; then 9712 ac_ct_OTOOL=$OTOOL 9713 # Extract the first word of "otool", so it can be a program name with args. 9714set dummy otool; ac_word=$2 9715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9716printf %s "checking for $ac_word... " >&6; } 9717if test ${ac_cv_prog_ac_ct_OTOOL+y} 9718then : 9719 printf %s "(cached) " >&6 9720else $as_nop 9721 if test -n "$ac_ct_OTOOL"; then 9722 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9723else 9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9725for as_dir in $PATH 9726do 9727 IFS=$as_save_IFS 9728 case $as_dir in #((( 9729 '') as_dir=./ ;; 9730 */) ;; 9731 *) as_dir=$as_dir/ ;; 9732 esac 9733 for ac_exec_ext in '' $ac_executable_extensions; do 9734 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9735 ac_cv_prog_ac_ct_OTOOL="otool" 9736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9737 break 2 9738 fi 9739done 9740 done 9741IFS=$as_save_IFS 9742 9743fi 9744fi 9745ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9746if test -n "$ac_ct_OTOOL"; then 9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9748printf "%s\n" "$ac_ct_OTOOL" >&6; } 9749else 9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9751printf "%s\n" "no" >&6; } 9752fi 9753 9754 if test "x$ac_ct_OTOOL" = x; then 9755 OTOOL=":" 9756 else 9757 case $cross_compiling:$ac_tool_warned in 9758yes:) 9759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9760printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9761ac_tool_warned=yes ;; 9762esac 9763 OTOOL=$ac_ct_OTOOL 9764 fi 9765else 9766 OTOOL="$ac_cv_prog_OTOOL" 9767fi 9768 9769 if test -n "$ac_tool_prefix"; then 9770 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9771set dummy ${ac_tool_prefix}otool64; ac_word=$2 9772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9773printf %s "checking for $ac_word... " >&6; } 9774if test ${ac_cv_prog_OTOOL64+y} 9775then : 9776 printf %s "(cached) " >&6 9777else $as_nop 9778 if test -n "$OTOOL64"; then 9779 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9780else 9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9782for as_dir in $PATH 9783do 9784 IFS=$as_save_IFS 9785 case $as_dir in #((( 9786 '') as_dir=./ ;; 9787 */) ;; 9788 *) as_dir=$as_dir/ ;; 9789 esac 9790 for ac_exec_ext in '' $ac_executable_extensions; do 9791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9792 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9794 break 2 9795 fi 9796done 9797 done 9798IFS=$as_save_IFS 9799 9800fi 9801fi 9802OTOOL64=$ac_cv_prog_OTOOL64 9803if test -n "$OTOOL64"; then 9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9805printf "%s\n" "$OTOOL64" >&6; } 9806else 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9808printf "%s\n" "no" >&6; } 9809fi 9810 9811 9812fi 9813if test -z "$ac_cv_prog_OTOOL64"; then 9814 ac_ct_OTOOL64=$OTOOL64 9815 # Extract the first word of "otool64", so it can be a program name with args. 9816set dummy otool64; ac_word=$2 9817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9818printf %s "checking for $ac_word... " >&6; } 9819if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9820then : 9821 printf %s "(cached) " >&6 9822else $as_nop 9823 if test -n "$ac_ct_OTOOL64"; then 9824 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9825else 9826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9827for as_dir in $PATH 9828do 9829 IFS=$as_save_IFS 9830 case $as_dir in #((( 9831 '') as_dir=./ ;; 9832 */) ;; 9833 *) as_dir=$as_dir/ ;; 9834 esac 9835 for ac_exec_ext in '' $ac_executable_extensions; do 9836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9837 ac_cv_prog_ac_ct_OTOOL64="otool64" 9838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9839 break 2 9840 fi 9841done 9842 done 9843IFS=$as_save_IFS 9844 9845fi 9846fi 9847ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9848if test -n "$ac_ct_OTOOL64"; then 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9850printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9851else 9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9853printf "%s\n" "no" >&6; } 9854fi 9855 9856 if test "x$ac_ct_OTOOL64" = x; then 9857 OTOOL64=":" 9858 else 9859 case $cross_compiling:$ac_tool_warned in 9860yes:) 9861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9862printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9863ac_tool_warned=yes ;; 9864esac 9865 OTOOL64=$ac_ct_OTOOL64 9866 fi 9867else 9868 OTOOL64="$ac_cv_prog_OTOOL64" 9869fi 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9898printf %s "checking for -single_module linker flag... " >&6; } 9899if test ${lt_cv_apple_cc_single_mod+y} 9900then : 9901 printf %s "(cached) " >&6 9902else $as_nop 9903 lt_cv_apple_cc_single_mod=no 9904 if test -z "$LT_MULTI_MODULE"; then 9905 # By default we will add the -single_module flag. You can override 9906 # by either setting the environment variable LT_MULTI_MODULE 9907 # non-empty at configure time, or by adding -multi_module to the 9908 # link flags. 9909 rm -rf libconftest.dylib* 9910 echo "int foo(void){return 1;}" > conftest.c 9911 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9912-dynamiclib -Wl,-single_module conftest.c" >&5 9913 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9914 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9915 _lt_result=$? 9916 # If there is a non-empty error log, and "single_module" 9917 # appears in it, assume the flag caused a linker warning 9918 if test -s conftest.err && $GREP single_module conftest.err; then 9919 cat conftest.err >&5 9920 # Otherwise, if the output was created with a 0 exit code from 9921 # the compiler, it worked. 9922 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9923 lt_cv_apple_cc_single_mod=yes 9924 else 9925 cat conftest.err >&5 9926 fi 9927 rm -rf libconftest.dylib* 9928 rm -f conftest.* 9929 fi 9930fi 9931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9932printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9933 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9935printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9936if test ${lt_cv_ld_exported_symbols_list+y} 9937then : 9938 printf %s "(cached) " >&6 9939else $as_nop 9940 lt_cv_ld_exported_symbols_list=no 9941 save_LDFLAGS=$LDFLAGS 9942 echo "_main" > conftest.sym 9943 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945/* end confdefs.h. */ 9946 9947int 9948main (void) 9949{ 9950 9951 ; 9952 return 0; 9953} 9954_ACEOF 9955if ac_fn_c_try_link "$LINENO" 9956then : 9957 lt_cv_ld_exported_symbols_list=yes 9958else $as_nop 9959 lt_cv_ld_exported_symbols_list=no 9960fi 9961rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9962 conftest$ac_exeext conftest.$ac_ext 9963 LDFLAGS=$save_LDFLAGS 9964 9965fi 9966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9967printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9968 9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9970printf %s "checking for -force_load linker flag... " >&6; } 9971if test ${lt_cv_ld_force_load+y} 9972then : 9973 printf %s "(cached) " >&6 9974else $as_nop 9975 lt_cv_ld_force_load=no 9976 cat > conftest.c << _LT_EOF 9977int forced_loaded() { return 2;} 9978_LT_EOF 9979 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9980 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9981 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9982 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9983 echo "$RANLIB libconftest.a" >&5 9984 $RANLIB libconftest.a 2>&5 9985 cat > conftest.c << _LT_EOF 9986int main() { return 0;} 9987_LT_EOF 9988 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9989 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9990 _lt_result=$? 9991 if test -s conftest.err && $GREP force_load conftest.err; then 9992 cat conftest.err >&5 9993 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9994 lt_cv_ld_force_load=yes 9995 else 9996 cat conftest.err >&5 9997 fi 9998 rm -f conftest.err libconftest.a conftest conftest.c 9999 rm -rf conftest.dSYM 10000 10001fi 10002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10003printf "%s\n" "$lt_cv_ld_force_load" >&6; } 10004 case $host_os in 10005 rhapsody* | darwin1.[012]) 10006 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10007 darwin1.*) 10008 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10009 darwin*) 10010 case $MACOSX_DEPLOYMENT_TARGET,$host in 10011 10.[012],*|,*powerpc*-darwin[5-8]*) 10012 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10013 *) 10014 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10015 esac 10016 ;; 10017 esac 10018 if test yes = "$lt_cv_apple_cc_single_mod"; then 10019 _lt_dar_single_mod='$single_module' 10020 fi 10021 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10022 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10023 else 10024 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10025 fi 10026 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10027 _lt_dsymutil='~$DSYMUTIL $lib || :' 10028 else 10029 _lt_dsymutil= 10030 fi 10031 ;; 10032 esac 10033 10034# func_munge_path_list VARIABLE PATH 10035# ----------------------------------- 10036# VARIABLE is name of variable containing _space_ separated list of 10037# directories to be munged by the contents of PATH, which is string 10038# having a format: 10039# "DIR[:DIR]:" 10040# string "DIR[ DIR]" will be prepended to VARIABLE 10041# ":DIR[:DIR]" 10042# string "DIR[ DIR]" will be appended to VARIABLE 10043# "DIRP[:DIRP]::[DIRA:]DIRA" 10044# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10045# "DIRA[ DIRA]" will be appended to VARIABLE 10046# "DIR[:DIR]" 10047# VARIABLE will be replaced by "DIR[ DIR]" 10048func_munge_path_list () 10049{ 10050 case x$2 in 10051 x) 10052 ;; 10053 *:) 10054 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10055 ;; 10056 x:*) 10057 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10058 ;; 10059 *::*) 10060 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10061 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10062 ;; 10063 *) 10064 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10065 ;; 10066 esac 10067} 10068 10069ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10070" 10071if test "x$ac_cv_header_dlfcn_h" = xyes 10072then : 10073 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 10074 10075fi 10076 10077 10078 10079func_stripname_cnf () 10080{ 10081 case $2 in 10082 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10083 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10084 esac 10085} # func_stripname_cnf 10086 10087 10088 10089 10090 10091# Set options 10092enable_win32_dll=yes 10093 10094case $host in 10095*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10096 if test -n "$ac_tool_prefix"; then 10097 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10098set dummy ${ac_tool_prefix}as; ac_word=$2 10099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10100printf %s "checking for $ac_word... " >&6; } 10101if test ${ac_cv_prog_AS+y} 10102then : 10103 printf %s "(cached) " >&6 10104else $as_nop 10105 if test -n "$AS"; then 10106 ac_cv_prog_AS="$AS" # Let the user override the test. 10107else 10108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10109for as_dir in $PATH 10110do 10111 IFS=$as_save_IFS 10112 case $as_dir in #((( 10113 '') as_dir=./ ;; 10114 */) ;; 10115 *) as_dir=$as_dir/ ;; 10116 esac 10117 for ac_exec_ext in '' $ac_executable_extensions; do 10118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10119 ac_cv_prog_AS="${ac_tool_prefix}as" 10120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10121 break 2 10122 fi 10123done 10124 done 10125IFS=$as_save_IFS 10126 10127fi 10128fi 10129AS=$ac_cv_prog_AS 10130if test -n "$AS"; then 10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 10132printf "%s\n" "$AS" >&6; } 10133else 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10135printf "%s\n" "no" >&6; } 10136fi 10137 10138 10139fi 10140if test -z "$ac_cv_prog_AS"; then 10141 ac_ct_AS=$AS 10142 # Extract the first word of "as", so it can be a program name with args. 10143set dummy as; ac_word=$2 10144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145printf %s "checking for $ac_word... " >&6; } 10146if test ${ac_cv_prog_ac_ct_AS+y} 10147then : 10148 printf %s "(cached) " >&6 10149else $as_nop 10150 if test -n "$ac_ct_AS"; then 10151 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 10152else 10153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10154for as_dir in $PATH 10155do 10156 IFS=$as_save_IFS 10157 case $as_dir in #((( 10158 '') as_dir=./ ;; 10159 */) ;; 10160 *) as_dir=$as_dir/ ;; 10161 esac 10162 for ac_exec_ext in '' $ac_executable_extensions; do 10163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10164 ac_cv_prog_ac_ct_AS="as" 10165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10166 break 2 10167 fi 10168done 10169 done 10170IFS=$as_save_IFS 10171 10172fi 10173fi 10174ac_ct_AS=$ac_cv_prog_ac_ct_AS 10175if test -n "$ac_ct_AS"; then 10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 10177printf "%s\n" "$ac_ct_AS" >&6; } 10178else 10179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10180printf "%s\n" "no" >&6; } 10181fi 10182 10183 if test "x$ac_ct_AS" = x; then 10184 AS="false" 10185 else 10186 case $cross_compiling:$ac_tool_warned in 10187yes:) 10188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10189printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10190ac_tool_warned=yes ;; 10191esac 10192 AS=$ac_ct_AS 10193 fi 10194else 10195 AS="$ac_cv_prog_AS" 10196fi 10197 10198 if test -n "$ac_tool_prefix"; then 10199 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10200set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10202printf %s "checking for $ac_word... " >&6; } 10203if test ${ac_cv_prog_DLLTOOL+y} 10204then : 10205 printf %s "(cached) " >&6 10206else $as_nop 10207 if test -n "$DLLTOOL"; then 10208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10209else 10210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10211for as_dir in $PATH 10212do 10213 IFS=$as_save_IFS 10214 case $as_dir in #((( 10215 '') as_dir=./ ;; 10216 */) ;; 10217 *) as_dir=$as_dir/ ;; 10218 esac 10219 for ac_exec_ext in '' $ac_executable_extensions; do 10220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10221 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10223 break 2 10224 fi 10225done 10226 done 10227IFS=$as_save_IFS 10228 10229fi 10230fi 10231DLLTOOL=$ac_cv_prog_DLLTOOL 10232if test -n "$DLLTOOL"; then 10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10234printf "%s\n" "$DLLTOOL" >&6; } 10235else 10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10237printf "%s\n" "no" >&6; } 10238fi 10239 10240 10241fi 10242if test -z "$ac_cv_prog_DLLTOOL"; then 10243 ac_ct_DLLTOOL=$DLLTOOL 10244 # Extract the first word of "dlltool", so it can be a program name with args. 10245set dummy dlltool; ac_word=$2 10246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10247printf %s "checking for $ac_word... " >&6; } 10248if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 10249then : 10250 printf %s "(cached) " >&6 10251else $as_nop 10252 if test -n "$ac_ct_DLLTOOL"; then 10253 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10254else 10255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10256for as_dir in $PATH 10257do 10258 IFS=$as_save_IFS 10259 case $as_dir in #((( 10260 '') as_dir=./ ;; 10261 */) ;; 10262 *) as_dir=$as_dir/ ;; 10263 esac 10264 for ac_exec_ext in '' $ac_executable_extensions; do 10265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10266 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10268 break 2 10269 fi 10270done 10271 done 10272IFS=$as_save_IFS 10273 10274fi 10275fi 10276ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10277if test -n "$ac_ct_DLLTOOL"; then 10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10279printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 10280else 10281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10282printf "%s\n" "no" >&6; } 10283fi 10284 10285 if test "x$ac_ct_DLLTOOL" = x; then 10286 DLLTOOL="false" 10287 else 10288 case $cross_compiling:$ac_tool_warned in 10289yes:) 10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10291printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10292ac_tool_warned=yes ;; 10293esac 10294 DLLTOOL=$ac_ct_DLLTOOL 10295 fi 10296else 10297 DLLTOOL="$ac_cv_prog_DLLTOOL" 10298fi 10299 10300 if test -n "$ac_tool_prefix"; then 10301 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10302set dummy ${ac_tool_prefix}objdump; ac_word=$2 10303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10304printf %s "checking for $ac_word... " >&6; } 10305if test ${ac_cv_prog_OBJDUMP+y} 10306then : 10307 printf %s "(cached) " >&6 10308else $as_nop 10309 if test -n "$OBJDUMP"; then 10310 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10311else 10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10313for as_dir in $PATH 10314do 10315 IFS=$as_save_IFS 10316 case $as_dir in #((( 10317 '') as_dir=./ ;; 10318 */) ;; 10319 *) as_dir=$as_dir/ ;; 10320 esac 10321 for ac_exec_ext in '' $ac_executable_extensions; do 10322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10323 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10325 break 2 10326 fi 10327done 10328 done 10329IFS=$as_save_IFS 10330 10331fi 10332fi 10333OBJDUMP=$ac_cv_prog_OBJDUMP 10334if test -n "$OBJDUMP"; then 10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10336printf "%s\n" "$OBJDUMP" >&6; } 10337else 10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10339printf "%s\n" "no" >&6; } 10340fi 10341 10342 10343fi 10344if test -z "$ac_cv_prog_OBJDUMP"; then 10345 ac_ct_OBJDUMP=$OBJDUMP 10346 # Extract the first word of "objdump", so it can be a program name with args. 10347set dummy objdump; ac_word=$2 10348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10349printf %s "checking for $ac_word... " >&6; } 10350if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 10351then : 10352 printf %s "(cached) " >&6 10353else $as_nop 10354 if test -n "$ac_ct_OBJDUMP"; then 10355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10356else 10357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10358for as_dir in $PATH 10359do 10360 IFS=$as_save_IFS 10361 case $as_dir in #((( 10362 '') as_dir=./ ;; 10363 */) ;; 10364 *) as_dir=$as_dir/ ;; 10365 esac 10366 for ac_exec_ext in '' $ac_executable_extensions; do 10367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10368 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10370 break 2 10371 fi 10372done 10373 done 10374IFS=$as_save_IFS 10375 10376fi 10377fi 10378ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10379if test -n "$ac_ct_OBJDUMP"; then 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10381printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 10382else 10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10384printf "%s\n" "no" >&6; } 10385fi 10386 10387 if test "x$ac_ct_OBJDUMP" = x; then 10388 OBJDUMP="false" 10389 else 10390 case $cross_compiling:$ac_tool_warned in 10391yes:) 10392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10393printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10394ac_tool_warned=yes ;; 10395esac 10396 OBJDUMP=$ac_ct_OBJDUMP 10397 fi 10398else 10399 OBJDUMP="$ac_cv_prog_OBJDUMP" 10400fi 10401 10402 ;; 10403esac 10404 10405test -z "$AS" && AS=as 10406 10407 10408 10409 10410 10411test -z "$DLLTOOL" && DLLTOOL=dlltool 10412 10413 10414 10415 10416 10417test -z "$OBJDUMP" && OBJDUMP=objdump 10418 10419 10420 10421 10422 10423 10424 10425 enable_dlopen=no 10426 10427 10428 10429 # Check whether --enable-shared was given. 10430if test ${enable_shared+y} 10431then : 10432 enableval=$enable_shared; p=${PACKAGE-default} 10433 case $enableval in 10434 yes) enable_shared=yes ;; 10435 no) enable_shared=no ;; 10436 *) 10437 enable_shared=no 10438 # Look at the argument we got. We use all the common list separators. 10439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10440 for pkg in $enableval; do 10441 IFS=$lt_save_ifs 10442 if test "X$pkg" = "X$p"; then 10443 enable_shared=yes 10444 fi 10445 done 10446 IFS=$lt_save_ifs 10447 ;; 10448 esac 10449else $as_nop 10450 enable_shared=yes 10451fi 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 # Check whether --enable-static was given. 10462if test ${enable_static+y} 10463then : 10464 enableval=$enable_static; p=${PACKAGE-default} 10465 case $enableval in 10466 yes) enable_static=yes ;; 10467 no) enable_static=no ;; 10468 *) 10469 enable_static=no 10470 # Look at the argument we got. We use all the common list separators. 10471 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10472 for pkg in $enableval; do 10473 IFS=$lt_save_ifs 10474 if test "X$pkg" = "X$p"; then 10475 enable_static=yes 10476 fi 10477 done 10478 IFS=$lt_save_ifs 10479 ;; 10480 esac 10481else $as_nop 10482 enable_static=yes 10483fi 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494# Check whether --with-pic was given. 10495if test ${with_pic+y} 10496then : 10497 withval=$with_pic; lt_p=${PACKAGE-default} 10498 case $withval in 10499 yes|no) pic_mode=$withval ;; 10500 *) 10501 pic_mode=default 10502 # Look at the argument we got. We use all the common list separators. 10503 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10504 for lt_pkg in $withval; do 10505 IFS=$lt_save_ifs 10506 if test "X$lt_pkg" = "X$lt_p"; then 10507 pic_mode=yes 10508 fi 10509 done 10510 IFS=$lt_save_ifs 10511 ;; 10512 esac 10513else $as_nop 10514 pic_mode=default 10515fi 10516 10517 10518 10519 10520 10521 10522 10523 10524 # Check whether --enable-fast-install was given. 10525if test ${enable_fast_install+y} 10526then : 10527 enableval=$enable_fast_install; p=${PACKAGE-default} 10528 case $enableval in 10529 yes) enable_fast_install=yes ;; 10530 no) enable_fast_install=no ;; 10531 *) 10532 enable_fast_install=no 10533 # Look at the argument we got. We use all the common list separators. 10534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10535 for pkg in $enableval; do 10536 IFS=$lt_save_ifs 10537 if test "X$pkg" = "X$p"; then 10538 enable_fast_install=yes 10539 fi 10540 done 10541 IFS=$lt_save_ifs 10542 ;; 10543 esac 10544else $as_nop 10545 enable_fast_install=yes 10546fi 10547 10548 10549 10550 10551 10552 10553 10554 10555 shared_archive_member_spec= 10556case $host,$enable_shared in 10557power*-*-aix[5-9]*,yes) 10558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10559printf %s "checking which variant of shared library versioning to provide... " >&6; } 10560 10561# Check whether --with-aix-soname was given. 10562if test ${with_aix_soname+y} 10563then : 10564 withval=$with_aix_soname; case $withval in 10565 aix|svr4|both) 10566 ;; 10567 *) 10568 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10569 ;; 10570 esac 10571 lt_cv_with_aix_soname=$with_aix_soname 10572else $as_nop 10573 if test ${lt_cv_with_aix_soname+y} 10574then : 10575 printf %s "(cached) " >&6 10576else $as_nop 10577 lt_cv_with_aix_soname=aix 10578fi 10579 10580 with_aix_soname=$lt_cv_with_aix_soname 10581fi 10582 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10584printf "%s\n" "$with_aix_soname" >&6; } 10585 if test aix != "$with_aix_soname"; then 10586 # For the AIX way of multilib, we name the shared archive member 10587 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10588 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10589 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10590 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10591 if test 64 = "${OBJECT_MODE-32}"; then 10592 shared_archive_member_spec=shr_64 10593 else 10594 shared_archive_member_spec=shr 10595 fi 10596 fi 10597 ;; 10598*) 10599 with_aix_soname=aix 10600 ;; 10601esac 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612# This can be used to rebuild libtool when needed 10613LIBTOOL_DEPS=$ltmain 10614 10615# Always use our own libtool. 10616LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647test -z "$LN_S" && LN_S="ln -s" 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662if test -n "${ZSH_VERSION+set}"; then 10663 setopt NO_GLOB_SUBST 10664fi 10665 10666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10667printf %s "checking for objdir... " >&6; } 10668if test ${lt_cv_objdir+y} 10669then : 10670 printf %s "(cached) " >&6 10671else $as_nop 10672 rm -f .libs 2>/dev/null 10673mkdir .libs 2>/dev/null 10674if test -d .libs; then 10675 lt_cv_objdir=.libs 10676else 10677 # MS-DOS does not allow filenames that begin with a dot. 10678 lt_cv_objdir=_libs 10679fi 10680rmdir .libs 2>/dev/null 10681fi 10682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10683printf "%s\n" "$lt_cv_objdir" >&6; } 10684objdir=$lt_cv_objdir 10685 10686 10687 10688 10689 10690printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 10691 10692 10693 10694 10695case $host_os in 10696aix3*) 10697 # AIX sometimes has problems with the GCC collect2 program. For some 10698 # reason, if we set the COLLECT_NAMES environment variable, the problems 10699 # vanish in a puff of smoke. 10700 if test set != "${COLLECT_NAMES+set}"; then 10701 COLLECT_NAMES= 10702 export COLLECT_NAMES 10703 fi 10704 ;; 10705esac 10706 10707# Global variables: 10708ofile=libtool 10709can_build_shared=yes 10710 10711# All known linkers require a '.a' archive for static linking (except MSVC and 10712# ICC, which need '.lib'). 10713libext=a 10714 10715with_gnu_ld=$lt_cv_prog_gnu_ld 10716 10717old_CC=$CC 10718old_CFLAGS=$CFLAGS 10719 10720# Set sane defaults for various variables 10721test -z "$CC" && CC=cc 10722test -z "$LTCC" && LTCC=$CC 10723test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10724test -z "$LD" && LD=ld 10725test -z "$ac_objext" && ac_objext=o 10726 10727func_cc_basename $compiler 10728cc_basename=$func_cc_basename_result 10729 10730 10731# Only perform the check for file, if the check method requires it 10732test -z "$MAGIC_CMD" && MAGIC_CMD=file 10733case $deplibs_check_method in 10734file_magic*) 10735 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10737printf %s "checking for ${ac_tool_prefix}file... " >&6; } 10738if test ${lt_cv_path_MAGIC_CMD+y} 10739then : 10740 printf %s "(cached) " >&6 10741else $as_nop 10742 case $MAGIC_CMD in 10743[\\/*] | ?:[\\/]*) 10744 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10745 ;; 10746*) 10747 lt_save_MAGIC_CMD=$MAGIC_CMD 10748 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10750 for ac_dir in $ac_dummy; do 10751 IFS=$lt_save_ifs 10752 test -z "$ac_dir" && ac_dir=. 10753 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10754 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10755 if test -n "$file_magic_test_file"; then 10756 case $deplibs_check_method in 10757 "file_magic "*) 10758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10759 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10761 $EGREP "$file_magic_regex" > /dev/null; then 10762 : 10763 else 10764 cat <<_LT_EOF 1>&2 10765 10766*** Warning: the command libtool uses to detect shared libraries, 10767*** $file_magic_cmd, produces output that libtool cannot recognize. 10768*** The result is that libtool may fail to recognize shared libraries 10769*** as such. This will affect the creation of libtool libraries that 10770*** depend on shared libraries, but programs linked with such libtool 10771*** libraries will work regardless of this problem. Nevertheless, you 10772*** may want to report the problem to your system manager and/or to 10773*** bug-libtool@gnu.org 10774 10775_LT_EOF 10776 fi ;; 10777 esac 10778 fi 10779 break 10780 fi 10781 done 10782 IFS=$lt_save_ifs 10783 MAGIC_CMD=$lt_save_MAGIC_CMD 10784 ;; 10785esac 10786fi 10787 10788MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10789if test -n "$MAGIC_CMD"; then 10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10791printf "%s\n" "$MAGIC_CMD" >&6; } 10792else 10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10794printf "%s\n" "no" >&6; } 10795fi 10796 10797 10798 10799 10800 10801if test -z "$lt_cv_path_MAGIC_CMD"; then 10802 if test -n "$ac_tool_prefix"; then 10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10804printf %s "checking for file... " >&6; } 10805if test ${lt_cv_path_MAGIC_CMD+y} 10806then : 10807 printf %s "(cached) " >&6 10808else $as_nop 10809 case $MAGIC_CMD in 10810[\\/*] | ?:[\\/]*) 10811 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10812 ;; 10813*) 10814 lt_save_MAGIC_CMD=$MAGIC_CMD 10815 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10816 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10817 for ac_dir in $ac_dummy; do 10818 IFS=$lt_save_ifs 10819 test -z "$ac_dir" && ac_dir=. 10820 if test -f "$ac_dir/file"; then 10821 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10822 if test -n "$file_magic_test_file"; then 10823 case $deplibs_check_method in 10824 "file_magic "*) 10825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10826 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10828 $EGREP "$file_magic_regex" > /dev/null; then 10829 : 10830 else 10831 cat <<_LT_EOF 1>&2 10832 10833*** Warning: the command libtool uses to detect shared libraries, 10834*** $file_magic_cmd, produces output that libtool cannot recognize. 10835*** The result is that libtool may fail to recognize shared libraries 10836*** as such. This will affect the creation of libtool libraries that 10837*** depend on shared libraries, but programs linked with such libtool 10838*** libraries will work regardless of this problem. Nevertheless, you 10839*** may want to report the problem to your system manager and/or to 10840*** bug-libtool@gnu.org 10841 10842_LT_EOF 10843 fi ;; 10844 esac 10845 fi 10846 break 10847 fi 10848 done 10849 IFS=$lt_save_ifs 10850 MAGIC_CMD=$lt_save_MAGIC_CMD 10851 ;; 10852esac 10853fi 10854 10855MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10856if test -n "$MAGIC_CMD"; then 10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10858printf "%s\n" "$MAGIC_CMD" >&6; } 10859else 10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10861printf "%s\n" "no" >&6; } 10862fi 10863 10864 10865 else 10866 MAGIC_CMD=: 10867 fi 10868fi 10869 10870 fi 10871 ;; 10872esac 10873 10874# Use C for the default configuration in the libtool script 10875 10876lt_save_CC=$CC 10877ac_ext=c 10878ac_cpp='$CPP $CPPFLAGS' 10879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10881ac_compiler_gnu=$ac_cv_c_compiler_gnu 10882 10883 10884# Source file extension for C test sources. 10885ac_ext=c 10886 10887# Object file extension for compiled C test sources. 10888objext=o 10889objext=$objext 10890 10891# Code to be used in simple compile tests 10892lt_simple_compile_test_code="int some_variable = 0;" 10893 10894# Code to be used in simple link tests 10895lt_simple_link_test_code='int main(){return(0);}' 10896 10897 10898 10899 10900 10901 10902 10903# If no C compiler was specified, use CC. 10904LTCC=${LTCC-"$CC"} 10905 10906# If no C compiler flags were specified, use CFLAGS. 10907LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10908 10909# Allow CC to be a program name with arguments. 10910compiler=$CC 10911 10912# Save the default compiler, since it gets overwritten when the other 10913# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10914compiler_DEFAULT=$CC 10915 10916# save warnings/boilerplate of simple test code 10917ac_outfile=conftest.$ac_objext 10918echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10919eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10920_lt_compiler_boilerplate=`cat conftest.err` 10921$RM conftest* 10922 10923ac_outfile=conftest.$ac_objext 10924echo "$lt_simple_link_test_code" >conftest.$ac_ext 10925eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10926_lt_linker_boilerplate=`cat conftest.err` 10927$RM -r conftest* 10928 10929 10930## CAVEAT EMPTOR: 10931## There is no encapsulation within the following macros, do not change 10932## the running order or otherwise move them around unless you know exactly 10933## what you are doing... 10934if test -n "$compiler"; then 10935 10936lt_prog_compiler_no_builtin_flag= 10937 10938if test yes = "$GCC"; then 10939 case $cc_basename in 10940 nvcc*) 10941 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10942 *) 10943 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10944 esac 10945 10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10947printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10948if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10949then : 10950 printf %s "(cached) " >&6 10951else $as_nop 10952 lt_cv_prog_compiler_rtti_exceptions=no 10953 ac_outfile=conftest.$ac_objext 10954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10955 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10956 # Insert the option either (1) after the last *FLAGS variable, or 10957 # (2) before a word containing "conftest.", or (3) at the end. 10958 # Note that $ac_compile itself does not contain backslashes and begins 10959 # with a dollar sign (not a hyphen), so the echo should work correctly. 10960 # The option is referenced via a variable to avoid confusing sed. 10961 lt_compile=`echo "$ac_compile" | $SED \ 10962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10964 -e 's:$: $lt_compiler_flag:'` 10965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10966 (eval "$lt_compile" 2>conftest.err) 10967 ac_status=$? 10968 cat conftest.err >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 if (exit $ac_status) && test -s "$ac_outfile"; then 10971 # The compiler can only warn and ignore the option if not recognized 10972 # So say no if there are warnings other than the usual output. 10973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10976 lt_cv_prog_compiler_rtti_exceptions=yes 10977 fi 10978 fi 10979 $RM conftest* 10980 10981fi 10982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10983printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10984 10985if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10986 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10987else 10988 : 10989fi 10990 10991fi 10992 10993 10994 10995 10996 10997 10998 lt_prog_compiler_wl= 10999lt_prog_compiler_pic= 11000lt_prog_compiler_static= 11001 11002 11003 if test yes = "$GCC"; then 11004 lt_prog_compiler_wl='-Wl,' 11005 lt_prog_compiler_static='-static' 11006 11007 case $host_os in 11008 aix*) 11009 # All AIX code is PIC. 11010 if test ia64 = "$host_cpu"; then 11011 # AIX 5 now supports IA64 processor 11012 lt_prog_compiler_static='-Bstatic' 11013 fi 11014 lt_prog_compiler_pic='-fPIC' 11015 ;; 11016 11017 amigaos*) 11018 case $host_cpu in 11019 powerpc) 11020 # see comment about AmigaOS4 .so support 11021 lt_prog_compiler_pic='-fPIC' 11022 ;; 11023 m68k) 11024 # FIXME: we need at least 68020 code to build shared libraries, but 11025 # adding the '-m68020' flag to GCC prevents building anything better, 11026 # like '-m68040'. 11027 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11028 ;; 11029 esac 11030 ;; 11031 11032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11033 # PIC is the default for these OSes. 11034 ;; 11035 11036 mingw* | cygwin* | pw32* | os2* | cegcc*) 11037 # This hack is so that the source file can tell whether it is being 11038 # built for inclusion in a dll (and should export symbols for example). 11039 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11040 # (--disable-auto-import) libraries 11041 lt_prog_compiler_pic='-DDLL_EXPORT' 11042 case $host_os in 11043 os2*) 11044 lt_prog_compiler_static='$wl-static' 11045 ;; 11046 esac 11047 ;; 11048 11049 darwin* | rhapsody*) 11050 # PIC is the default on this platform 11051 # Common symbols not allowed in MH_DYLIB files 11052 lt_prog_compiler_pic='-fno-common' 11053 ;; 11054 11055 haiku*) 11056 # PIC is the default for Haiku. 11057 # The "-static" flag exists, but is broken. 11058 lt_prog_compiler_static= 11059 ;; 11060 11061 hpux*) 11062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11064 # sets the default TLS model and affects inlining. 11065 case $host_cpu in 11066 hppa*64*) 11067 # +Z the default 11068 ;; 11069 *) 11070 lt_prog_compiler_pic='-fPIC' 11071 ;; 11072 esac 11073 ;; 11074 11075 interix[3-9]*) 11076 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11077 # Instead, we relocate shared libraries at runtime. 11078 ;; 11079 11080 msdosdjgpp*) 11081 # Just because we use GCC doesn't mean we suddenly get shared libraries 11082 # on systems that don't support them. 11083 lt_prog_compiler_can_build_shared=no 11084 enable_shared=no 11085 ;; 11086 11087 *nto* | *qnx*) 11088 # QNX uses GNU C++, but need to define -shared option too, otherwise 11089 # it will coredump. 11090 lt_prog_compiler_pic='-fPIC -shared' 11091 ;; 11092 11093 sysv4*MP*) 11094 if test -d /usr/nec; then 11095 lt_prog_compiler_pic=-Kconform_pic 11096 fi 11097 ;; 11098 11099 *) 11100 lt_prog_compiler_pic='-fPIC' 11101 ;; 11102 esac 11103 11104 case $cc_basename in 11105 nvcc*) # Cuda Compiler Driver 2.2 11106 lt_prog_compiler_wl='-Xlinker ' 11107 if test -n "$lt_prog_compiler_pic"; then 11108 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11109 fi 11110 ;; 11111 esac 11112 else 11113 # PORTME Check for flag to pass linker flags through the system compiler. 11114 case $host_os in 11115 aix*) 11116 lt_prog_compiler_wl='-Wl,' 11117 if test ia64 = "$host_cpu"; then 11118 # AIX 5 now supports IA64 processor 11119 lt_prog_compiler_static='-Bstatic' 11120 else 11121 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11122 fi 11123 ;; 11124 11125 darwin* | rhapsody*) 11126 # PIC is the default on this platform 11127 # Common symbols not allowed in MH_DYLIB files 11128 lt_prog_compiler_pic='-fno-common' 11129 case $cc_basename in 11130 nagfor*) 11131 # NAG Fortran compiler 11132 lt_prog_compiler_wl='-Wl,-Wl,,' 11133 lt_prog_compiler_pic='-PIC' 11134 lt_prog_compiler_static='-Bstatic' 11135 ;; 11136 esac 11137 ;; 11138 11139 mingw* | cygwin* | pw32* | os2* | cegcc*) 11140 # This hack is so that the source file can tell whether it is being 11141 # built for inclusion in a dll (and should export symbols for example). 11142 lt_prog_compiler_pic='-DDLL_EXPORT' 11143 case $host_os in 11144 os2*) 11145 lt_prog_compiler_static='$wl-static' 11146 ;; 11147 esac 11148 ;; 11149 11150 hpux9* | hpux10* | hpux11*) 11151 lt_prog_compiler_wl='-Wl,' 11152 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11153 # not for PA HP-UX. 11154 case $host_cpu in 11155 hppa*64*|ia64*) 11156 # +Z the default 11157 ;; 11158 *) 11159 lt_prog_compiler_pic='+Z' 11160 ;; 11161 esac 11162 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11163 lt_prog_compiler_static='$wl-a ${wl}archive' 11164 ;; 11165 11166 irix5* | irix6* | nonstopux*) 11167 lt_prog_compiler_wl='-Wl,' 11168 # PIC (with -KPIC) is the default. 11169 lt_prog_compiler_static='-non_shared' 11170 ;; 11171 11172 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11173 case $cc_basename in 11174 # old Intel for x86_64, which still supported -KPIC. 11175 ecc*) 11176 lt_prog_compiler_wl='-Wl,' 11177 lt_prog_compiler_pic='-KPIC' 11178 lt_prog_compiler_static='-static' 11179 ;; 11180 # flang / f18. f95 an alias for gfortran or flang on Debian 11181 flang* | f18* | f95*) 11182 lt_prog_compiler_wl='-Wl,' 11183 lt_prog_compiler_pic='-fPIC' 11184 lt_prog_compiler_static='-static' 11185 ;; 11186 # icc used to be incompatible with GCC. 11187 # ICC 10 doesn't accept -KPIC any more. 11188 icc* | ifort*) 11189 lt_prog_compiler_wl='-Wl,' 11190 lt_prog_compiler_pic='-fPIC' 11191 lt_prog_compiler_static='-static' 11192 ;; 11193 # Lahey Fortran 8.1. 11194 lf95*) 11195 lt_prog_compiler_wl='-Wl,' 11196 lt_prog_compiler_pic='--shared' 11197 lt_prog_compiler_static='--static' 11198 ;; 11199 nagfor*) 11200 # NAG Fortran compiler 11201 lt_prog_compiler_wl='-Wl,-Wl,,' 11202 lt_prog_compiler_pic='-PIC' 11203 lt_prog_compiler_static='-Bstatic' 11204 ;; 11205 tcc*) 11206 # Fabrice Bellard et al's Tiny C Compiler 11207 lt_prog_compiler_wl='-Wl,' 11208 lt_prog_compiler_pic='-fPIC' 11209 lt_prog_compiler_static='-static' 11210 ;; 11211 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11212 # Portland Group compilers (*not* the Pentium gcc compiler, 11213 # which looks to be a dead project) 11214 lt_prog_compiler_wl='-Wl,' 11215 lt_prog_compiler_pic='-fpic' 11216 lt_prog_compiler_static='-Bstatic' 11217 ;; 11218 ccc*) 11219 lt_prog_compiler_wl='-Wl,' 11220 # All Alpha code is PIC. 11221 lt_prog_compiler_static='-non_shared' 11222 ;; 11223 xl* | bgxl* | bgf* | mpixl*) 11224 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11225 lt_prog_compiler_wl='-Wl,' 11226 lt_prog_compiler_pic='-qpic' 11227 lt_prog_compiler_static='-qstaticlink' 11228 ;; 11229 *) 11230 case `$CC -V 2>&1 | $SED 5q` in 11231 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11232 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11233 lt_prog_compiler_pic='-KPIC' 11234 lt_prog_compiler_static='-Bstatic' 11235 lt_prog_compiler_wl='' 11236 ;; 11237 *Sun\ F* | *Sun*Fortran*) 11238 lt_prog_compiler_pic='-KPIC' 11239 lt_prog_compiler_static='-Bstatic' 11240 lt_prog_compiler_wl='-Qoption ld ' 11241 ;; 11242 *Sun\ C*) 11243 # Sun C 5.9 11244 lt_prog_compiler_pic='-KPIC' 11245 lt_prog_compiler_static='-Bstatic' 11246 lt_prog_compiler_wl='-Wl,' 11247 ;; 11248 *Intel*\ [CF]*Compiler*) 11249 lt_prog_compiler_wl='-Wl,' 11250 lt_prog_compiler_pic='-fPIC' 11251 lt_prog_compiler_static='-static' 11252 ;; 11253 *Portland\ Group*) 11254 lt_prog_compiler_wl='-Wl,' 11255 lt_prog_compiler_pic='-fpic' 11256 lt_prog_compiler_static='-Bstatic' 11257 ;; 11258 esac 11259 ;; 11260 esac 11261 ;; 11262 11263 newsos6) 11264 lt_prog_compiler_pic='-KPIC' 11265 lt_prog_compiler_static='-Bstatic' 11266 ;; 11267 11268 *nto* | *qnx*) 11269 # QNX uses GNU C++, but need to define -shared option too, otherwise 11270 # it will coredump. 11271 lt_prog_compiler_pic='-fPIC -shared' 11272 ;; 11273 11274 osf3* | osf4* | osf5*) 11275 lt_prog_compiler_wl='-Wl,' 11276 # All OSF/1 code is PIC. 11277 lt_prog_compiler_static='-non_shared' 11278 ;; 11279 11280 rdos*) 11281 lt_prog_compiler_static='-non_shared' 11282 ;; 11283 11284 solaris*) 11285 lt_prog_compiler_pic='-KPIC' 11286 lt_prog_compiler_static='-Bstatic' 11287 case $cc_basename in 11288 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11289 lt_prog_compiler_wl='-Qoption ld ';; 11290 *) 11291 lt_prog_compiler_wl='-Wl,';; 11292 esac 11293 ;; 11294 11295 sunos4*) 11296 lt_prog_compiler_wl='-Qoption ld ' 11297 lt_prog_compiler_pic='-PIC' 11298 lt_prog_compiler_static='-Bstatic' 11299 ;; 11300 11301 sysv4 | sysv4.2uw2* | sysv4.3*) 11302 lt_prog_compiler_wl='-Wl,' 11303 lt_prog_compiler_pic='-KPIC' 11304 lt_prog_compiler_static='-Bstatic' 11305 ;; 11306 11307 sysv4*MP*) 11308 if test -d /usr/nec; then 11309 lt_prog_compiler_pic='-Kconform_pic' 11310 lt_prog_compiler_static='-Bstatic' 11311 fi 11312 ;; 11313 11314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11315 lt_prog_compiler_wl='-Wl,' 11316 lt_prog_compiler_pic='-KPIC' 11317 lt_prog_compiler_static='-Bstatic' 11318 ;; 11319 11320 unicos*) 11321 lt_prog_compiler_wl='-Wl,' 11322 lt_prog_compiler_can_build_shared=no 11323 ;; 11324 11325 uts4*) 11326 lt_prog_compiler_pic='-pic' 11327 lt_prog_compiler_static='-Bstatic' 11328 ;; 11329 11330 *) 11331 lt_prog_compiler_can_build_shared=no 11332 ;; 11333 esac 11334 fi 11335 11336case $host_os in 11337 # For platforms that do not support PIC, -DPIC is meaningless: 11338 *djgpp*) 11339 lt_prog_compiler_pic= 11340 ;; 11341 *) 11342 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11343 ;; 11344esac 11345 11346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11347printf %s "checking for $compiler option to produce PIC... " >&6; } 11348if test ${lt_cv_prog_compiler_pic+y} 11349then : 11350 printf %s "(cached) " >&6 11351else $as_nop 11352 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11353fi 11354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11355printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 11356lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11357 11358# 11359# Check to make sure the PIC flag actually works. 11360# 11361if test -n "$lt_prog_compiler_pic"; then 11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11363printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11364if test ${lt_cv_prog_compiler_pic_works+y} 11365then : 11366 printf %s "(cached) " >&6 11367else $as_nop 11368 lt_cv_prog_compiler_pic_works=no 11369 ac_outfile=conftest.$ac_objext 11370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11371 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11372 # Insert the option either (1) after the last *FLAGS variable, or 11373 # (2) before a word containing "conftest.", or (3) at the end. 11374 # Note that $ac_compile itself does not contain backslashes and begins 11375 # with a dollar sign (not a hyphen), so the echo should work correctly. 11376 # The option is referenced via a variable to avoid confusing sed. 11377 lt_compile=`echo "$ac_compile" | $SED \ 11378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11380 -e 's:$: $lt_compiler_flag:'` 11381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11382 (eval "$lt_compile" 2>conftest.err) 11383 ac_status=$? 11384 cat conftest.err >&5 11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11386 if (exit $ac_status) && test -s "$ac_outfile"; then 11387 # The compiler can only warn and ignore the option if not recognized 11388 # So say no if there are warnings other than the usual output. 11389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11392 lt_cv_prog_compiler_pic_works=yes 11393 fi 11394 fi 11395 $RM conftest* 11396 11397fi 11398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11399printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 11400 11401if test yes = "$lt_cv_prog_compiler_pic_works"; then 11402 case $lt_prog_compiler_pic in 11403 "" | " "*) ;; 11404 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11405 esac 11406else 11407 lt_prog_compiler_pic= 11408 lt_prog_compiler_can_build_shared=no 11409fi 11410 11411fi 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423# 11424# Check to make sure the static flag actually works. 11425# 11426wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11428printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11429if test ${lt_cv_prog_compiler_static_works+y} 11430then : 11431 printf %s "(cached) " >&6 11432else $as_nop 11433 lt_cv_prog_compiler_static_works=no 11434 save_LDFLAGS=$LDFLAGS 11435 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11436 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11438 # The linker can only warn and ignore the option if not recognized 11439 # So say no if there are warnings 11440 if test -s conftest.err; then 11441 # Append any errors to the config.log. 11442 cat conftest.err 1>&5 11443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11445 if diff conftest.exp conftest.er2 >/dev/null; then 11446 lt_cv_prog_compiler_static_works=yes 11447 fi 11448 else 11449 lt_cv_prog_compiler_static_works=yes 11450 fi 11451 fi 11452 $RM -r conftest* 11453 LDFLAGS=$save_LDFLAGS 11454 11455fi 11456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11457printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 11458 11459if test yes = "$lt_cv_prog_compiler_static_works"; then 11460 : 11461else 11462 lt_prog_compiler_static= 11463fi 11464 11465 11466 11467 11468 11469 11470 11471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11472printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11473if test ${lt_cv_prog_compiler_c_o+y} 11474then : 11475 printf %s "(cached) " >&6 11476else $as_nop 11477 lt_cv_prog_compiler_c_o=no 11478 $RM -r conftest 2>/dev/null 11479 mkdir conftest 11480 cd conftest 11481 mkdir out 11482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11483 11484 lt_compiler_flag="-o out/conftest2.$ac_objext" 11485 # Insert the option either (1) after the last *FLAGS variable, or 11486 # (2) before a word containing "conftest.", or (3) at the end. 11487 # Note that $ac_compile itself does not contain backslashes and begins 11488 # with a dollar sign (not a hyphen), so the echo should work correctly. 11489 lt_compile=`echo "$ac_compile" | $SED \ 11490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11492 -e 's:$: $lt_compiler_flag:'` 11493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11494 (eval "$lt_compile" 2>out/conftest.err) 11495 ac_status=$? 11496 cat out/conftest.err >&5 11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11498 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11499 then 11500 # The compiler can only warn and ignore the option if not recognized 11501 # So say no if there are warnings 11502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11505 lt_cv_prog_compiler_c_o=yes 11506 fi 11507 fi 11508 chmod u+w . 2>&5 11509 $RM conftest* 11510 # SGI C++ compiler will create directory out/ii_files/ for 11511 # template instantiation 11512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11513 $RM out/* && rmdir out 11514 cd .. 11515 $RM -r conftest 11516 $RM conftest* 11517 11518fi 11519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11520printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11521 11522 11523 11524 11525 11526 11527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11528printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11529if test ${lt_cv_prog_compiler_c_o+y} 11530then : 11531 printf %s "(cached) " >&6 11532else $as_nop 11533 lt_cv_prog_compiler_c_o=no 11534 $RM -r conftest 2>/dev/null 11535 mkdir conftest 11536 cd conftest 11537 mkdir out 11538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11539 11540 lt_compiler_flag="-o out/conftest2.$ac_objext" 11541 # Insert the option either (1) after the last *FLAGS variable, or 11542 # (2) before a word containing "conftest.", or (3) at the end. 11543 # Note that $ac_compile itself does not contain backslashes and begins 11544 # with a dollar sign (not a hyphen), so the echo should work correctly. 11545 lt_compile=`echo "$ac_compile" | $SED \ 11546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11548 -e 's:$: $lt_compiler_flag:'` 11549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11550 (eval "$lt_compile" 2>out/conftest.err) 11551 ac_status=$? 11552 cat out/conftest.err >&5 11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11554 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11555 then 11556 # The compiler can only warn and ignore the option if not recognized 11557 # So say no if there are warnings 11558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11561 lt_cv_prog_compiler_c_o=yes 11562 fi 11563 fi 11564 chmod u+w . 2>&5 11565 $RM conftest* 11566 # SGI C++ compiler will create directory out/ii_files/ for 11567 # template instantiation 11568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11569 $RM out/* && rmdir out 11570 cd .. 11571 $RM -r conftest 11572 $RM conftest* 11573 11574fi 11575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11576printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11577 11578 11579 11580 11581hard_links=nottested 11582if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11583 # do not overwrite the value of need_locks provided by the user 11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11585printf %s "checking if we can lock with hard links... " >&6; } 11586 hard_links=yes 11587 $RM conftest* 11588 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11589 touch conftest.a 11590 ln conftest.a conftest.b 2>&5 || hard_links=no 11591 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11593printf "%s\n" "$hard_links" >&6; } 11594 if test no = "$hard_links"; then 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11596printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11597 need_locks=warn 11598 fi 11599else 11600 need_locks=no 11601fi 11602 11603 11604 11605 11606 11607 11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11609printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11610 11611 runpath_var= 11612 allow_undefined_flag= 11613 always_export_symbols=no 11614 archive_cmds= 11615 archive_expsym_cmds= 11616 compiler_needs_object=no 11617 enable_shared_with_static_runtimes=no 11618 export_dynamic_flag_spec= 11619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11620 hardcode_automatic=no 11621 hardcode_direct=no 11622 hardcode_direct_absolute=no 11623 hardcode_libdir_flag_spec= 11624 hardcode_libdir_separator= 11625 hardcode_minus_L=no 11626 hardcode_shlibpath_var=unsupported 11627 inherit_rpath=no 11628 link_all_deplibs=unknown 11629 module_cmds= 11630 module_expsym_cmds= 11631 old_archive_from_new_cmds= 11632 old_archive_from_expsyms_cmds= 11633 thread_safe_flag_spec= 11634 whole_archive_flag_spec= 11635 # include_expsyms should be a list of space-separated symbols to be *always* 11636 # included in the symbol list 11637 include_expsyms= 11638 # exclude_expsyms can be an extended regexp of symbols to exclude 11639 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11640 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11641 # as well as any symbol that contains 'd'. 11642 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11643 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11644 # platforms (ab)use it in PIC code, but their linkers get confused if 11645 # the symbol is explicitly referenced. Since portable code cannot 11646 # rely on this symbol name, it's probably fine to never include it in 11647 # preloaded symbol tables. 11648 # Exclude shared library initialization/finalization symbols. 11649 extract_expsyms_cmds= 11650 11651 case $host_os in 11652 cygwin* | mingw* | pw32* | cegcc*) 11653 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 11654 # When not using gcc, we currently assume that we are using 11655 # Microsoft Visual C++ or Intel C++ Compiler. 11656 if test yes != "$GCC"; then 11657 with_gnu_ld=no 11658 fi 11659 ;; 11660 interix*) 11661 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 11662 with_gnu_ld=yes 11663 ;; 11664 openbsd* | bitrig*) 11665 with_gnu_ld=no 11666 ;; 11667 linux* | k*bsd*-gnu | gnu*) 11668 link_all_deplibs=no 11669 ;; 11670 esac 11671 11672 ld_shlibs=yes 11673 11674 # On some targets, GNU ld is compatible enough with the native linker 11675 # that we're better off using the native interface for both. 11676 lt_use_gnu_ld_interface=no 11677 if test yes = "$with_gnu_ld"; then 11678 case $host_os in 11679 aix*) 11680 # The AIX port of GNU ld has always aspired to compatibility 11681 # with the native linker. However, as the warning in the GNU ld 11682 # block says, versions before 2.19.5* couldn't really create working 11683 # shared libraries, regardless of the interface used. 11684 case `$LD -v 2>&1` in 11685 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11686 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11687 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11688 *) 11689 lt_use_gnu_ld_interface=yes 11690 ;; 11691 esac 11692 ;; 11693 *) 11694 lt_use_gnu_ld_interface=yes 11695 ;; 11696 esac 11697 fi 11698 11699 if test yes = "$lt_use_gnu_ld_interface"; then 11700 # If archive_cmds runs LD, not CC, wlarc should be empty 11701 wlarc='$wl' 11702 11703 # Set some defaults for GNU ld with shared library support. These 11704 # are reset later if shared libraries are not supported. Putting them 11705 # here allows them to be overridden if necessary. 11706 runpath_var=LD_RUN_PATH 11707 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11708 export_dynamic_flag_spec='$wl--export-dynamic' 11709 # ancient GNU ld didn't support --whole-archive et. al. 11710 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11711 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11712 else 11713 whole_archive_flag_spec= 11714 fi 11715 supports_anon_versioning=no 11716 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 11717 *GNU\ gold*) supports_anon_versioning=yes ;; 11718 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11719 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11720 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11721 *\ 2.11.*) ;; # other 2.11 versions 11722 *) supports_anon_versioning=yes ;; 11723 esac 11724 11725 # See if GNU ld supports shared libraries. 11726 case $host_os in 11727 aix[3-9]*) 11728 # On AIX/PPC, the GNU linker is very broken 11729 if test ia64 != "$host_cpu"; then 11730 ld_shlibs=no 11731 cat <<_LT_EOF 1>&2 11732 11733*** Warning: the GNU linker, at least up to release 2.19, is reported 11734*** to be unable to reliably create shared libraries on AIX. 11735*** Therefore, libtool is disabling shared libraries support. If you 11736*** really care for shared libraries, you may want to install binutils 11737*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11738*** You will then need to restart the configuration process. 11739 11740_LT_EOF 11741 fi 11742 ;; 11743 11744 amigaos*) 11745 case $host_cpu in 11746 powerpc) 11747 # see comment about AmigaOS4 .so support 11748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11749 archive_expsym_cmds='' 11750 ;; 11751 m68k) 11752 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)' 11753 hardcode_libdir_flag_spec='-L$libdir' 11754 hardcode_minus_L=yes 11755 ;; 11756 esac 11757 ;; 11758 11759 beos*) 11760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11761 allow_undefined_flag=unsupported 11762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11763 # support --undefined. This deserves some investigation. FIXME 11764 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11765 else 11766 ld_shlibs=no 11767 fi 11768 ;; 11769 11770 cygwin* | mingw* | pw32* | cegcc*) 11771 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11772 # as there is no search path for DLLs. 11773 hardcode_libdir_flag_spec='-L$libdir' 11774 export_dynamic_flag_spec='$wl--export-all-symbols' 11775 allow_undefined_flag=unsupported 11776 always_export_symbols=no 11777 enable_shared_with_static_runtimes=yes 11778 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' 11779 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11780 11781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11783 # If the export-symbols file already is a .def file, use it as 11784 # is; otherwise, prepend EXPORTS... 11785 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11786 cp $export_symbols $output_objdir/$soname.def; 11787 else 11788 echo EXPORTS > $output_objdir/$soname.def; 11789 cat $export_symbols >> $output_objdir/$soname.def; 11790 fi~ 11791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11792 else 11793 ld_shlibs=no 11794 fi 11795 ;; 11796 11797 haiku*) 11798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11799 link_all_deplibs=yes 11800 ;; 11801 11802 os2*) 11803 hardcode_libdir_flag_spec='-L$libdir' 11804 hardcode_minus_L=yes 11805 allow_undefined_flag=unsupported 11806 shrext_cmds=.dll 11807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11810 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11813 emximp -o $lib $output_objdir/$libname.def' 11814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11817 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11818 prefix_cmds="$SED"~ 11819 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11820 prefix_cmds="$prefix_cmds -e 1d"; 11821 fi~ 11822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11825 emximp -o $lib $output_objdir/$libname.def' 11826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11827 enable_shared_with_static_runtimes=yes 11828 file_list_spec='@' 11829 ;; 11830 11831 interix[3-9]*) 11832 hardcode_direct=no 11833 hardcode_shlibpath_var=no 11834 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11835 export_dynamic_flag_spec='$wl-E' 11836 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11837 # Instead, shared libraries are loaded at an image base (0x10000000 by 11838 # default) and relocated if they conflict, which is a slow very memory 11839 # consuming and fragmenting process. To avoid this, we pick a random, 11840 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11841 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11843 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' 11844 ;; 11845 11846 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11847 tmp_diet=no 11848 if test linux-dietlibc = "$host_os"; then 11849 case $cc_basename in 11850 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11851 esac 11852 fi 11853 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11854 && test no = "$tmp_diet" 11855 then 11856 tmp_addflag=' $pic_flag' 11857 tmp_sharedflag='-shared' 11858 case $cc_basename,$host_cpu in 11859 pgcc*) # Portland Group C compiler 11860 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' 11861 tmp_addflag=' $pic_flag' 11862 ;; 11863 pgf77* | pgf90* | pgf95* | pgfortran*) 11864 # Portland Group f77 and f90 compilers 11865 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' 11866 tmp_addflag=' $pic_flag -Mnomain' ;; 11867 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11868 tmp_addflag=' -i_dynamic' ;; 11869 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11870 tmp_addflag=' -i_dynamic -nofor_main' ;; 11871 ifc* | ifort*) # Intel Fortran compiler 11872 tmp_addflag=' -nofor_main' ;; 11873 lf95*) # Lahey Fortran 8.1 11874 whole_archive_flag_spec= 11875 tmp_sharedflag='--shared' ;; 11876 nagfor*) # NAGFOR 5.3 11877 tmp_sharedflag='-Wl,-shared' ;; 11878 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11879 tmp_sharedflag='-qmkshrobj' 11880 tmp_addflag= ;; 11881 nvcc*) # Cuda Compiler Driver 2.2 11882 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' 11883 compiler_needs_object=yes 11884 ;; 11885 esac 11886 case `$CC -V 2>&1 | $SED 5q` in 11887 *Sun\ C*) # Sun C 5.9 11888 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' 11889 compiler_needs_object=yes 11890 tmp_sharedflag='-G' ;; 11891 *Sun\ F*) # Sun Fortran 8.3 11892 tmp_sharedflag='-G' ;; 11893 esac 11894 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11895 11896 if test yes = "$supports_anon_versioning"; then 11897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11898 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11899 echo "local: *; };" >> $output_objdir/$libname.ver~ 11900 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11901 fi 11902 11903 case $cc_basename in 11904 tcc*) 11905 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11906 export_dynamic_flag_spec='-rdynamic' 11907 ;; 11908 xlf* | bgf* | bgxlf* | mpixlf*) 11909 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11910 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11912 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11913 if test yes = "$supports_anon_versioning"; then 11914 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11915 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11916 echo "local: *; };" >> $output_objdir/$libname.ver~ 11917 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11918 fi 11919 ;; 11920 esac 11921 else 11922 ld_shlibs=no 11923 fi 11924 ;; 11925 11926 netbsd* | netbsdelf*-gnu) 11927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11928 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11929 wlarc= 11930 else 11931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11932 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11933 fi 11934 ;; 11935 11936 solaris*) 11937 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11938 ld_shlibs=no 11939 cat <<_LT_EOF 1>&2 11940 11941*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11942*** create shared libraries on Solaris systems. Therefore, libtool 11943*** is disabling shared libraries support. We urge you to upgrade GNU 11944*** binutils to release 2.9.1 or newer. Another option is to modify 11945*** your PATH or compiler configuration so that the native linker is 11946*** used, and then restart. 11947 11948_LT_EOF 11949 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11951 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11952 else 11953 ld_shlibs=no 11954 fi 11955 ;; 11956 11957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11958 case `$LD -v 2>&1` in 11959 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11960 ld_shlibs=no 11961 cat <<_LT_EOF 1>&2 11962 11963*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11964*** reliably create shared libraries on SCO systems. Therefore, libtool 11965*** is disabling shared libraries support. We urge you to upgrade GNU 11966*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11967*** your PATH or compiler configuration so that the native linker is 11968*** used, and then restart. 11969 11970_LT_EOF 11971 ;; 11972 *) 11973 # For security reasons, it is highly recommended that you always 11974 # use absolute paths for naming shared libraries, and exclude the 11975 # DT_RUNPATH tag from executables and libraries. But doing so 11976 # requires that you compile everything twice, which is a pain. 11977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11980 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11981 else 11982 ld_shlibs=no 11983 fi 11984 ;; 11985 esac 11986 ;; 11987 11988 sunos4*) 11989 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11990 wlarc= 11991 hardcode_direct=yes 11992 hardcode_shlibpath_var=no 11993 ;; 11994 11995 *) 11996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11999 else 12000 ld_shlibs=no 12001 fi 12002 ;; 12003 esac 12004 12005 if test no = "$ld_shlibs"; then 12006 runpath_var= 12007 hardcode_libdir_flag_spec= 12008 export_dynamic_flag_spec= 12009 whole_archive_flag_spec= 12010 fi 12011 else 12012 # PORTME fill in a description of your system's linker (not GNU ld) 12013 case $host_os in 12014 aix3*) 12015 allow_undefined_flag=unsupported 12016 always_export_symbols=yes 12017 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' 12018 # Note: this linker hardcodes the directories in LIBPATH if there 12019 # are no directories specified by -L. 12020 hardcode_minus_L=yes 12021 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12022 # Neither direct hardcoding nor static linking is supported with a 12023 # broken collect2. 12024 hardcode_direct=unsupported 12025 fi 12026 ;; 12027 12028 aix[4-9]*) 12029 if test ia64 = "$host_cpu"; then 12030 # On IA64, the linker does run time linking by default, so we don't 12031 # have to do anything special. 12032 aix_use_runtimelinking=no 12033 exp_sym_flag='-Bexport' 12034 no_entry_flag= 12035 else 12036 # If we're using GNU nm, then we don't want the "-C" option. 12037 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12038 # Without the "-l" option, or with the "-B" option, AIX nm treats 12039 # weak defined symbols like other global defined symbols, whereas 12040 # GNU nm marks them as "W". 12041 # While the 'weak' keyword is ignored in the Export File, we need 12042 # it in the Import File for the 'aix-soname' feature, so we have 12043 # to replace the "-B" option with "-P" for AIX nm. 12044 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12045 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' 12046 else 12047 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' 12048 fi 12049 aix_use_runtimelinking=no 12050 12051 # Test if we are trying to use run time linking or normal 12052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12053 # have runtime linking enabled, and use it for executables. 12054 # For shared libraries, we enable/disable runtime linking 12055 # depending on the kind of the shared library created - 12056 # when "with_aix_soname,aix_use_runtimelinking" is: 12057 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12058 # "aix,yes" lib.so shared, rtl:yes, for executables 12059 # lib.a static archive 12060 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12061 # lib.a(lib.so.V) shared, rtl:no, for executables 12062 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12063 # lib.a(lib.so.V) shared, rtl:no 12064 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12065 # lib.a static archive 12066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12067 for ld_flag in $LDFLAGS; do 12068 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12069 aix_use_runtimelinking=yes 12070 break 12071 fi 12072 done 12073 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12074 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12075 # so we don't have lib.a shared libs to link our executables. 12076 # We have to force runtime linking in this case. 12077 aix_use_runtimelinking=yes 12078 LDFLAGS="$LDFLAGS -Wl,-brtl" 12079 fi 12080 ;; 12081 esac 12082 12083 exp_sym_flag='-bexport' 12084 no_entry_flag='-bnoentry' 12085 fi 12086 12087 # When large executables or shared objects are built, AIX ld can 12088 # have problems creating the table of contents. If linking a library 12089 # or program results in "error TOC overflow" add -mminimal-toc to 12090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12092 12093 archive_cmds='' 12094 hardcode_direct=yes 12095 hardcode_direct_absolute=yes 12096 hardcode_libdir_separator=':' 12097 link_all_deplibs=yes 12098 file_list_spec='$wl-f,' 12099 case $with_aix_soname,$aix_use_runtimelinking in 12100 aix,*) ;; # traditional, no import file 12101 svr4,* | *,yes) # use import file 12102 # The Import File defines what to hardcode. 12103 hardcode_direct=no 12104 hardcode_direct_absolute=no 12105 ;; 12106 esac 12107 12108 if test yes = "$GCC"; then 12109 case $host_os in aix4.[012]|aix4.[012].*) 12110 # We only want to do this on AIX 4.2 and lower, the check 12111 # below for broken collect2 doesn't work under 4.3+ 12112 collect2name=`$CC -print-prog-name=collect2` 12113 if test -f "$collect2name" && 12114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12115 then 12116 # We have reworked collect2 12117 : 12118 else 12119 # We have old collect2 12120 hardcode_direct=unsupported 12121 # It fails to find uninstalled libraries when the uninstalled 12122 # path is not listed in the libpath. Setting hardcode_minus_L 12123 # to unsupported forces relinking 12124 hardcode_minus_L=yes 12125 hardcode_libdir_flag_spec='-L$libdir' 12126 hardcode_libdir_separator= 12127 fi 12128 ;; 12129 esac 12130 shared_flag='-shared' 12131 if test yes = "$aix_use_runtimelinking"; then 12132 shared_flag="$shared_flag "'$wl-G' 12133 fi 12134 # Need to ensure runtime linking is disabled for the traditional 12135 # shared library, or the linker may eventually find shared libraries 12136 # /with/ Import File - we do not want to mix them. 12137 shared_flag_aix='-shared' 12138 shared_flag_svr4='-shared $wl-G' 12139 else 12140 # not using gcc 12141 if test ia64 = "$host_cpu"; then 12142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12143 # chokes on -Wl,-G. The following line is correct: 12144 shared_flag='-G' 12145 else 12146 if test yes = "$aix_use_runtimelinking"; then 12147 shared_flag='$wl-G' 12148 else 12149 shared_flag='$wl-bM:SRE' 12150 fi 12151 shared_flag_aix='$wl-bM:SRE' 12152 shared_flag_svr4='$wl-G' 12153 fi 12154 fi 12155 12156 export_dynamic_flag_spec='$wl-bexpall' 12157 # It seems that -bexpall does not export symbols beginning with 12158 # underscore (_), so it is better to generate a list of symbols to export. 12159 always_export_symbols=yes 12160 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12161 # Warning - without using the other runtime loading flags (-brtl), 12162 # -berok will link without error, but may produce a broken library. 12163 allow_undefined_flag='-berok' 12164 # Determine the default libpath from the value encoded in an 12165 # empty executable. 12166 if test set = "${lt_cv_aix_libpath+set}"; then 12167 aix_libpath=$lt_cv_aix_libpath 12168else 12169 if test ${lt_cv_aix_libpath_+y} 12170then : 12171 printf %s "(cached) " >&6 12172else $as_nop 12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12174/* end confdefs.h. */ 12175 12176int 12177main (void) 12178{ 12179 12180 ; 12181 return 0; 12182} 12183_ACEOF 12184if ac_fn_c_try_link "$LINENO" 12185then : 12186 12187 lt_aix_libpath_sed=' 12188 /Import File Strings/,/^$/ { 12189 /^0/ { 12190 s/^0 *\([^ ]*\) *$/\1/ 12191 p 12192 } 12193 }' 12194 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12195 # Check for a 64-bit object if we didn't find anything. 12196 if test -z "$lt_cv_aix_libpath_"; then 12197 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12198 fi 12199fi 12200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12201 conftest$ac_exeext conftest.$ac_ext 12202 if test -z "$lt_cv_aix_libpath_"; then 12203 lt_cv_aix_libpath_=/usr/lib:/lib 12204 fi 12205 12206fi 12207 12208 aix_libpath=$lt_cv_aix_libpath_ 12209fi 12210 12211 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12212 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 12213 else 12214 if test ia64 = "$host_cpu"; then 12215 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12216 allow_undefined_flag="-z nodefs" 12217 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" 12218 else 12219 # Determine the default libpath from the value encoded in an 12220 # empty executable. 12221 if test set = "${lt_cv_aix_libpath+set}"; then 12222 aix_libpath=$lt_cv_aix_libpath 12223else 12224 if test ${lt_cv_aix_libpath_+y} 12225then : 12226 printf %s "(cached) " >&6 12227else $as_nop 12228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12229/* end confdefs.h. */ 12230 12231int 12232main (void) 12233{ 12234 12235 ; 12236 return 0; 12237} 12238_ACEOF 12239if ac_fn_c_try_link "$LINENO" 12240then : 12241 12242 lt_aix_libpath_sed=' 12243 /Import File Strings/,/^$/ { 12244 /^0/ { 12245 s/^0 *\([^ ]*\) *$/\1/ 12246 p 12247 } 12248 }' 12249 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12250 # Check for a 64-bit object if we didn't find anything. 12251 if test -z "$lt_cv_aix_libpath_"; then 12252 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12253 fi 12254fi 12255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12256 conftest$ac_exeext conftest.$ac_ext 12257 if test -z "$lt_cv_aix_libpath_"; then 12258 lt_cv_aix_libpath_=/usr/lib:/lib 12259 fi 12260 12261fi 12262 12263 aix_libpath=$lt_cv_aix_libpath_ 12264fi 12265 12266 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12267 # Warning - without using the other run time loading flags, 12268 # -berok will link without error, but may produce a broken library. 12269 no_undefined_flag=' $wl-bernotok' 12270 allow_undefined_flag=' $wl-berok' 12271 if test yes = "$with_gnu_ld"; then 12272 # We only use this code for GNU lds that support --whole-archive. 12273 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12274 else 12275 # Exported symbols can be pulled into shared objects from archives 12276 whole_archive_flag_spec='$convenience' 12277 fi 12278 archive_cmds_need_lc=yes 12279 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12280 # -brtl affects multiple linker settings, -berok does not and is overridden later 12281 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12282 if test svr4 != "$with_aix_soname"; then 12283 # This is similar to how AIX traditionally builds its shared libraries. 12284 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' 12285 fi 12286 if test aix != "$with_aix_soname"; then 12287 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' 12288 else 12289 # used by -dlpreopen to get the symbols 12290 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12291 fi 12292 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12293 fi 12294 fi 12295 ;; 12296 12297 amigaos*) 12298 case $host_cpu in 12299 powerpc) 12300 # see comment about AmigaOS4 .so support 12301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12302 archive_expsym_cmds='' 12303 ;; 12304 m68k) 12305 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)' 12306 hardcode_libdir_flag_spec='-L$libdir' 12307 hardcode_minus_L=yes 12308 ;; 12309 esac 12310 ;; 12311 12312 bsdi[45]*) 12313 export_dynamic_flag_spec=-rdynamic 12314 ;; 12315 12316 cygwin* | mingw* | pw32* | cegcc*) 12317 # When not using gcc, we currently assume that we are using 12318 # Microsoft Visual C++ or Intel C++ Compiler. 12319 # hardcode_libdir_flag_spec is actually meaningless, as there is 12320 # no search path for DLLs. 12321 case $cc_basename in 12322 cl* | icl*) 12323 # Native MSVC or ICC 12324 hardcode_libdir_flag_spec=' ' 12325 allow_undefined_flag=unsupported 12326 always_export_symbols=yes 12327 file_list_spec='@' 12328 # Tell ltmain to make .lib files, not .a files. 12329 libext=lib 12330 # Tell ltmain to make .dll files, not .so files. 12331 shrext_cmds=.dll 12332 # FIXME: Setting linknames here is a bad hack. 12333 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12334 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12335 cp "$export_symbols" "$output_objdir/$soname.def"; 12336 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12337 else 12338 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12339 fi~ 12340 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12341 linknames=' 12342 # The linker will not automatically build a static lib if we build a DLL. 12343 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12344 enable_shared_with_static_runtimes=yes 12345 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12347 # Don't use ranlib 12348 old_postinstall_cmds='chmod 644 $oldlib' 12349 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12350 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12351 case $lt_outputfile in 12352 *.exe|*.EXE) ;; 12353 *) 12354 lt_outputfile=$lt_outputfile.exe 12355 lt_tool_outputfile=$lt_tool_outputfile.exe 12356 ;; 12357 esac~ 12358 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12359 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12360 $RM "$lt_outputfile.manifest"; 12361 fi' 12362 ;; 12363 *) 12364 # Assume MSVC and ICC wrapper 12365 hardcode_libdir_flag_spec=' ' 12366 allow_undefined_flag=unsupported 12367 # Tell ltmain to make .lib files, not .a files. 12368 libext=lib 12369 # Tell ltmain to make .dll files, not .so files. 12370 shrext_cmds=.dll 12371 # FIXME: Setting linknames here is a bad hack. 12372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12373 # The linker will automatically build a .lib file if we build a DLL. 12374 old_archive_from_new_cmds='true' 12375 # FIXME: Should let the user specify the lib program. 12376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12377 enable_shared_with_static_runtimes=yes 12378 ;; 12379 esac 12380 ;; 12381 12382 darwin* | rhapsody*) 12383 12384 12385 archive_cmds_need_lc=no 12386 hardcode_direct=no 12387 hardcode_automatic=yes 12388 hardcode_shlibpath_var=unsupported 12389 if test yes = "$lt_cv_ld_force_load"; then 12390 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\"`' 12391 12392 else 12393 whole_archive_flag_spec='' 12394 fi 12395 link_all_deplibs=yes 12396 allow_undefined_flag=$_lt_dar_allow_undefined 12397 case $cc_basename in 12398 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12399 *) _lt_dar_can_shared=$GCC ;; 12400 esac 12401 if test yes = "$_lt_dar_can_shared"; then 12402 output_verbose_link_cmd=func_echo_all 12403 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12404 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12405 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" 12406 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" 12407 12408 else 12409 ld_shlibs=no 12410 fi 12411 12412 ;; 12413 12414 dgux*) 12415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12416 hardcode_libdir_flag_spec='-L$libdir' 12417 hardcode_shlibpath_var=no 12418 ;; 12419 12420 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12421 # support. Future versions do this automatically, but an explicit c++rt0.o 12422 # does not break anything, and helps significantly (at the cost of a little 12423 # extra space). 12424 freebsd2.2*) 12425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12426 hardcode_libdir_flag_spec='-R$libdir' 12427 hardcode_direct=yes 12428 hardcode_shlibpath_var=no 12429 ;; 12430 12431 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12432 freebsd2.*) 12433 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12434 hardcode_direct=yes 12435 hardcode_minus_L=yes 12436 hardcode_shlibpath_var=no 12437 ;; 12438 12439 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12440 freebsd* | dragonfly* | midnightbsd*) 12441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12442 hardcode_libdir_flag_spec='-R$libdir' 12443 hardcode_direct=yes 12444 hardcode_shlibpath_var=no 12445 ;; 12446 12447 hpux9*) 12448 if test yes = "$GCC"; then 12449 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' 12450 else 12451 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' 12452 fi 12453 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12454 hardcode_libdir_separator=: 12455 hardcode_direct=yes 12456 12457 # hardcode_minus_L: Not really in the search PATH, 12458 # but as the default location of the library. 12459 hardcode_minus_L=yes 12460 export_dynamic_flag_spec='$wl-E' 12461 ;; 12462 12463 hpux10*) 12464 if test yes,no = "$GCC,$with_gnu_ld"; then 12465 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12466 else 12467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12468 fi 12469 if test no = "$with_gnu_ld"; then 12470 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12471 hardcode_libdir_separator=: 12472 hardcode_direct=yes 12473 hardcode_direct_absolute=yes 12474 export_dynamic_flag_spec='$wl-E' 12475 # hardcode_minus_L: Not really in the search PATH, 12476 # but as the default location of the library. 12477 hardcode_minus_L=yes 12478 fi 12479 ;; 12480 12481 hpux11*) 12482 if test yes,no = "$GCC,$with_gnu_ld"; then 12483 case $host_cpu in 12484 hppa*64*) 12485 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12486 ;; 12487 ia64*) 12488 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12489 ;; 12490 *) 12491 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12492 ;; 12493 esac 12494 else 12495 case $host_cpu in 12496 hppa*64*) 12497 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12498 ;; 12499 ia64*) 12500 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12501 ;; 12502 *) 12503 12504 # Older versions of the 11.00 compiler do not understand -b yet 12505 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12507printf %s "checking if $CC understands -b... " >&6; } 12508if test ${lt_cv_prog_compiler__b+y} 12509then : 12510 printf %s "(cached) " >&6 12511else $as_nop 12512 lt_cv_prog_compiler__b=no 12513 save_LDFLAGS=$LDFLAGS 12514 LDFLAGS="$LDFLAGS -b" 12515 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12517 # The linker can only warn and ignore the option if not recognized 12518 # So say no if there are warnings 12519 if test -s conftest.err; then 12520 # Append any errors to the config.log. 12521 cat conftest.err 1>&5 12522 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12524 if diff conftest.exp conftest.er2 >/dev/null; then 12525 lt_cv_prog_compiler__b=yes 12526 fi 12527 else 12528 lt_cv_prog_compiler__b=yes 12529 fi 12530 fi 12531 $RM -r conftest* 12532 LDFLAGS=$save_LDFLAGS 12533 12534fi 12535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12536printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 12537 12538if test yes = "$lt_cv_prog_compiler__b"; then 12539 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12540else 12541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12542fi 12543 12544 ;; 12545 esac 12546 fi 12547 if test no = "$with_gnu_ld"; then 12548 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12549 hardcode_libdir_separator=: 12550 12551 case $host_cpu in 12552 hppa*64*|ia64*) 12553 hardcode_direct=no 12554 hardcode_shlibpath_var=no 12555 ;; 12556 *) 12557 hardcode_direct=yes 12558 hardcode_direct_absolute=yes 12559 export_dynamic_flag_spec='$wl-E' 12560 12561 # hardcode_minus_L: Not really in the search PATH, 12562 # but as the default location of the library. 12563 hardcode_minus_L=yes 12564 ;; 12565 esac 12566 fi 12567 ;; 12568 12569 irix5* | irix6* | nonstopux*) 12570 if test yes = "$GCC"; then 12571 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' 12572 # Try to use the -exported_symbol ld option, if it does not 12573 # work, assume that -exports_file does not work either and 12574 # implicitly export all symbols. 12575 # This should be the same for all languages, so no per-tag cache variable. 12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12577printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12578if test ${lt_cv_irix_exported_symbol+y} 12579then : 12580 printf %s "(cached) " >&6 12581else $as_nop 12582 save_LDFLAGS=$LDFLAGS 12583 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12585/* end confdefs.h. */ 12586int foo (void) { return 0; } 12587_ACEOF 12588if ac_fn_c_try_link "$LINENO" 12589then : 12590 lt_cv_irix_exported_symbol=yes 12591else $as_nop 12592 lt_cv_irix_exported_symbol=no 12593fi 12594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12595 conftest$ac_exeext conftest.$ac_ext 12596 LDFLAGS=$save_LDFLAGS 12597fi 12598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12599printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 12600 if test yes = "$lt_cv_irix_exported_symbol"; then 12601 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' 12602 fi 12603 link_all_deplibs=no 12604 else 12605 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' 12606 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' 12607 fi 12608 archive_cmds_need_lc='no' 12609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12610 hardcode_libdir_separator=: 12611 inherit_rpath=yes 12612 link_all_deplibs=yes 12613 ;; 12614 12615 linux*) 12616 case $cc_basename in 12617 tcc*) 12618 # Fabrice Bellard et al's Tiny C Compiler 12619 ld_shlibs=yes 12620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12621 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12622 ;; 12623 esac 12624 ;; 12625 12626 netbsd* | netbsdelf*-gnu) 12627 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12629 else 12630 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12631 fi 12632 hardcode_libdir_flag_spec='-R$libdir' 12633 hardcode_direct=yes 12634 hardcode_shlibpath_var=no 12635 ;; 12636 12637 newsos6) 12638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12639 hardcode_direct=yes 12640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12641 hardcode_libdir_separator=: 12642 hardcode_shlibpath_var=no 12643 ;; 12644 12645 *nto* | *qnx*) 12646 ;; 12647 12648 openbsd* | bitrig*) 12649 if test -f /usr/libexec/ld.so; then 12650 hardcode_direct=yes 12651 hardcode_shlibpath_var=no 12652 hardcode_direct_absolute=yes 12653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12654 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12655 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12656 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12657 export_dynamic_flag_spec='$wl-E' 12658 else 12659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12660 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12661 fi 12662 else 12663 ld_shlibs=no 12664 fi 12665 ;; 12666 12667 os2*) 12668 hardcode_libdir_flag_spec='-L$libdir' 12669 hardcode_minus_L=yes 12670 allow_undefined_flag=unsupported 12671 shrext_cmds=.dll 12672 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12673 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12674 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12675 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12676 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12678 emximp -o $lib $output_objdir/$libname.def' 12679 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12682 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12683 prefix_cmds="$SED"~ 12684 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12685 prefix_cmds="$prefix_cmds -e 1d"; 12686 fi~ 12687 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12688 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12690 emximp -o $lib $output_objdir/$libname.def' 12691 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12692 enable_shared_with_static_runtimes=yes 12693 file_list_spec='@' 12694 ;; 12695 12696 osf3*) 12697 if test yes = "$GCC"; then 12698 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12699 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' 12700 else 12701 allow_undefined_flag=' -expect_unresolved \*' 12702 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' 12703 fi 12704 archive_cmds_need_lc='no' 12705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12706 hardcode_libdir_separator=: 12707 ;; 12708 12709 osf4* | osf5*) # as osf3* with the addition of -msym flag 12710 if test yes = "$GCC"; then 12711 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12712 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' 12713 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12714 else 12715 allow_undefined_flag=' -expect_unresolved \*' 12716 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' 12717 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~ 12718 $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' 12719 12720 # Both c and cxx compiler support -rpath directly 12721 hardcode_libdir_flag_spec='-rpath $libdir' 12722 fi 12723 archive_cmds_need_lc='no' 12724 hardcode_libdir_separator=: 12725 ;; 12726 12727 solaris*) 12728 no_undefined_flag=' -z defs' 12729 if test yes = "$GCC"; then 12730 wlarc='$wl' 12731 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12733 $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' 12734 else 12735 case `$CC -V 2>&1` in 12736 *"Compilers 5.0"*) 12737 wlarc='' 12738 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12740 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12741 ;; 12742 *) 12743 wlarc='$wl' 12744 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12745 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12746 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12747 ;; 12748 esac 12749 fi 12750 hardcode_libdir_flag_spec='-R$libdir' 12751 hardcode_shlibpath_var=no 12752 case $host_os in 12753 solaris2.[0-5] | solaris2.[0-5].*) ;; 12754 *) 12755 # The compiler driver will combine and reorder linker options, 12756 # but understands '-z linker_flag'. GCC discards it without '$wl', 12757 # but is careful enough not to reorder. 12758 # Supported since Solaris 2.6 (maybe 2.5.1?) 12759 if test yes = "$GCC"; then 12760 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12761 else 12762 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12763 fi 12764 ;; 12765 esac 12766 link_all_deplibs=yes 12767 ;; 12768 12769 sunos4*) 12770 if test sequent = "$host_vendor"; then 12771 # Use $CC to link under sequent, because it throws in some extra .o 12772 # files that make .init and .fini sections work. 12773 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12774 else 12775 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12776 fi 12777 hardcode_libdir_flag_spec='-L$libdir' 12778 hardcode_direct=yes 12779 hardcode_minus_L=yes 12780 hardcode_shlibpath_var=no 12781 ;; 12782 12783 sysv4) 12784 case $host_vendor in 12785 sni) 12786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12787 hardcode_direct=yes # is this really true??? 12788 ;; 12789 siemens) 12790 ## LD is ld it makes a PLAMLIB 12791 ## CC just makes a GrossModule. 12792 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12793 reload_cmds='$CC -r -o $output$reload_objs' 12794 hardcode_direct=no 12795 ;; 12796 motorola) 12797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12798 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12799 ;; 12800 esac 12801 runpath_var='LD_RUN_PATH' 12802 hardcode_shlibpath_var=no 12803 ;; 12804 12805 sysv4.3*) 12806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12807 hardcode_shlibpath_var=no 12808 export_dynamic_flag_spec='-Bexport' 12809 ;; 12810 12811 sysv4*MP*) 12812 if test -d /usr/nec; then 12813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12814 hardcode_shlibpath_var=no 12815 runpath_var=LD_RUN_PATH 12816 hardcode_runpath_var=yes 12817 ld_shlibs=yes 12818 fi 12819 ;; 12820 12821 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12822 no_undefined_flag='$wl-z,text' 12823 archive_cmds_need_lc=no 12824 hardcode_shlibpath_var=no 12825 runpath_var='LD_RUN_PATH' 12826 12827 if test yes = "$GCC"; then 12828 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12829 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12830 else 12831 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12832 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12833 fi 12834 ;; 12835 12836 sysv5* | sco3.2v5* | sco5v6*) 12837 # Note: We CANNOT use -z defs as we might desire, because we do not 12838 # link with -lc, and that would cause any symbols used from libc to 12839 # always be unresolved, which means just about no library would 12840 # ever link correctly. If we're not using GNU ld we use -z text 12841 # though, which does catch some bad symbols but isn't as heavy-handed 12842 # as -z defs. 12843 no_undefined_flag='$wl-z,text' 12844 allow_undefined_flag='$wl-z,nodefs' 12845 archive_cmds_need_lc=no 12846 hardcode_shlibpath_var=no 12847 hardcode_libdir_flag_spec='$wl-R,$libdir' 12848 hardcode_libdir_separator=':' 12849 link_all_deplibs=yes 12850 export_dynamic_flag_spec='$wl-Bexport' 12851 runpath_var='LD_RUN_PATH' 12852 12853 if test yes = "$GCC"; then 12854 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12855 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12856 else 12857 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12858 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12859 fi 12860 ;; 12861 12862 uts4*) 12863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12864 hardcode_libdir_flag_spec='-L$libdir' 12865 hardcode_shlibpath_var=no 12866 ;; 12867 12868 *) 12869 ld_shlibs=no 12870 ;; 12871 esac 12872 12873 if test sni = "$host_vendor"; then 12874 case $host in 12875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12876 export_dynamic_flag_spec='$wl-Blargedynsym' 12877 ;; 12878 esac 12879 fi 12880 fi 12881 12882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12883printf "%s\n" "$ld_shlibs" >&6; } 12884test no = "$ld_shlibs" && can_build_shared=no 12885 12886with_gnu_ld=$with_gnu_ld 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902# 12903# Do we need to explicitly link libc? 12904# 12905case "x$archive_cmds_need_lc" in 12906x|xyes) 12907 # Assume -lc should be added 12908 archive_cmds_need_lc=yes 12909 12910 if test yes,yes = "$GCC,$enable_shared"; then 12911 case $archive_cmds in 12912 *'~'*) 12913 # FIXME: we may have to deal with multi-command sequences. 12914 ;; 12915 '$CC '*) 12916 # Test whether the compiler implicitly links with -lc since on some 12917 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12918 # to ld, don't add -lc before -lgcc. 12919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12920printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12921if test ${lt_cv_archive_cmds_need_lc+y} 12922then : 12923 printf %s "(cached) " >&6 12924else $as_nop 12925 $RM conftest* 12926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12927 12928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12929 (eval $ac_compile) 2>&5 12930 ac_status=$? 12931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12932 test $ac_status = 0; } 2>conftest.err; then 12933 soname=conftest 12934 lib=conftest 12935 libobjs=conftest.$ac_objext 12936 deplibs= 12937 wl=$lt_prog_compiler_wl 12938 pic_flag=$lt_prog_compiler_pic 12939 compiler_flags=-v 12940 linker_flags=-v 12941 verstring= 12942 output_objdir=. 12943 libname=conftest 12944 lt_save_allow_undefined_flag=$allow_undefined_flag 12945 allow_undefined_flag= 12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12947 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12948 ac_status=$? 12949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12950 test $ac_status = 0; } 12951 then 12952 lt_cv_archive_cmds_need_lc=no 12953 else 12954 lt_cv_archive_cmds_need_lc=yes 12955 fi 12956 allow_undefined_flag=$lt_save_allow_undefined_flag 12957 else 12958 cat conftest.err 1>&5 12959 fi 12960 $RM conftest* 12961 12962fi 12963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12964printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12965 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12966 ;; 12967 esac 12968 fi 12969 ;; 12970esac 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13124printf %s "checking dynamic linker characteristics... " >&6; } 13125 13126if test yes = "$GCC"; then 13127 case $host_os in 13128 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13129 *) lt_awk_arg='/^libraries:/' ;; 13130 esac 13131 case $host_os in 13132 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13133 *) lt_sed_strip_eq='s|=/|/|g' ;; 13134 esac 13135 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13136 case $lt_search_path_spec in 13137 *\;*) 13138 # if the path contains ";" then we assume it to be the separator 13139 # otherwise default to the standard path separator (i.e. ":") - it is 13140 # assumed that no part of a normal pathname contains ";" but that should 13141 # okay in the real world where ";" in dirpaths is itself problematic. 13142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13143 ;; 13144 *) 13145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13146 ;; 13147 esac 13148 # Ok, now we have the path, separated by spaces, we can step through it 13149 # and add multilib dir if necessary... 13150 lt_tmp_lt_search_path_spec= 13151 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13152 # ...but if some path component already ends with the multilib dir we assume 13153 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13154 case "$lt_multi_os_dir; $lt_search_path_spec " in 13155 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13156 lt_multi_os_dir= 13157 ;; 13158 esac 13159 for lt_sys_path in $lt_search_path_spec; do 13160 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13161 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13162 elif test -n "$lt_multi_os_dir"; then 13163 test -d "$lt_sys_path" && \ 13164 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13165 fi 13166 done 13167 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13168BEGIN {RS = " "; FS = "/|\n";} { 13169 lt_foo = ""; 13170 lt_count = 0; 13171 for (lt_i = NF; lt_i > 0; lt_i--) { 13172 if ($lt_i != "" && $lt_i != ".") { 13173 if ($lt_i == "..") { 13174 lt_count++; 13175 } else { 13176 if (lt_count == 0) { 13177 lt_foo = "/" $lt_i lt_foo; 13178 } else { 13179 lt_count--; 13180 } 13181 } 13182 } 13183 } 13184 if (lt_foo != "") { lt_freq[lt_foo]++; } 13185 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13186}'` 13187 # AWK program above erroneously prepends '/' to C:/dos/paths 13188 # for these hosts. 13189 case $host_os in 13190 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13191 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13192 esac 13193 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13194else 13195 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13196fi 13197library_names_spec= 13198libname_spec='lib$name' 13199soname_spec= 13200shrext_cmds=.so 13201postinstall_cmds= 13202postuninstall_cmds= 13203finish_cmds= 13204finish_eval= 13205shlibpath_var= 13206shlibpath_overrides_runpath=unknown 13207version_type=none 13208dynamic_linker="$host_os ld.so" 13209sys_lib_dlsearch_path_spec="/lib /usr/lib" 13210need_lib_prefix=unknown 13211hardcode_into_libs=no 13212 13213# when you set need_version to no, make sure it does not cause -set_version 13214# flags to be left without arguments 13215need_version=unknown 13216 13217 13218 13219case $host_os in 13220aix3*) 13221 version_type=linux # correct to gnu/linux during the next big refactor 13222 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13223 shlibpath_var=LIBPATH 13224 13225 # AIX 3 has no versioning support, so we append a major version to the name. 13226 soname_spec='$libname$release$shared_ext$major' 13227 ;; 13228 13229aix[4-9]*) 13230 version_type=linux # correct to gnu/linux during the next big refactor 13231 need_lib_prefix=no 13232 need_version=no 13233 hardcode_into_libs=yes 13234 if test ia64 = "$host_cpu"; then 13235 # AIX 5 supports IA64 13236 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13237 shlibpath_var=LD_LIBRARY_PATH 13238 else 13239 # With GCC up to 2.95.x, collect2 would create an import file 13240 # for dependence libraries. The import file would start with 13241 # the line '#! .'. This would cause the generated library to 13242 # depend on '.', always an invalid library. This was fixed in 13243 # development snapshots of GCC prior to 3.0. 13244 case $host_os in 13245 aix4 | aix4.[01] | aix4.[01].*) 13246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13247 echo ' yes ' 13248 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13249 : 13250 else 13251 can_build_shared=no 13252 fi 13253 ;; 13254 esac 13255 # Using Import Files as archive members, it is possible to support 13256 # filename-based versioning of shared library archives on AIX. While 13257 # this would work for both with and without runtime linking, it will 13258 # prevent static linking of such archives. So we do filename-based 13259 # shared library versioning with .so extension only, which is used 13260 # when both runtime linking and shared linking is enabled. 13261 # Unfortunately, runtime linking may impact performance, so we do 13262 # not want this to be the default eventually. Also, we use the 13263 # versioned .so libs for executables only if there is the -brtl 13264 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13265 # To allow for filename-based versioning support, we need to create 13266 # libNAME.so.V as an archive file, containing: 13267 # *) an Import File, referring to the versioned filename of the 13268 # archive as well as the shared archive member, telling the 13269 # bitwidth (32 or 64) of that shared object, and providing the 13270 # list of exported symbols of that shared object, eventually 13271 # decorated with the 'weak' keyword 13272 # *) the shared object with the F_LOADONLY flag set, to really avoid 13273 # it being seen by the linker. 13274 # At run time we better use the real file rather than another symlink, 13275 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13276 13277 case $with_aix_soname,$aix_use_runtimelinking in 13278 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13279 # soname into executable. Probably we can add versioning support to 13280 # collect2, so additional links can be useful in future. 13281 aix,yes) # traditional libtool 13282 dynamic_linker='AIX unversionable lib.so' 13283 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13284 # instead of lib<name>.a to let people know that these are not 13285 # typical AIX shared libraries. 13286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13287 ;; 13288 aix,no) # traditional AIX only 13289 dynamic_linker='AIX lib.a(lib.so.V)' 13290 # We preserve .a as extension for shared libraries through AIX4.2 13291 # and later when we are not doing run time linking. 13292 library_names_spec='$libname$release.a $libname.a' 13293 soname_spec='$libname$release$shared_ext$major' 13294 ;; 13295 svr4,*) # full svr4 only 13296 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13297 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13298 # We do not specify a path in Import Files, so LIBPATH fires. 13299 shlibpath_overrides_runpath=yes 13300 ;; 13301 *,yes) # both, prefer svr4 13302 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13303 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13304 # unpreferred sharedlib libNAME.a needs extra handling 13305 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"' 13306 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"' 13307 # We do not specify a path in Import Files, so LIBPATH fires. 13308 shlibpath_overrides_runpath=yes 13309 ;; 13310 *,no) # both, prefer aix 13311 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13312 library_names_spec='$libname$release.a $libname.a' 13313 soname_spec='$libname$release$shared_ext$major' 13314 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13315 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)' 13316 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"' 13317 ;; 13318 esac 13319 shlibpath_var=LIBPATH 13320 fi 13321 ;; 13322 13323amigaos*) 13324 case $host_cpu in 13325 powerpc) 13326 # Since July 2007 AmigaOS4 officially supports .so libraries. 13327 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13329 ;; 13330 m68k) 13331 library_names_spec='$libname.ixlibrary $libname.a' 13332 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13333 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' 13334 ;; 13335 esac 13336 ;; 13337 13338beos*) 13339 library_names_spec='$libname$shared_ext' 13340 dynamic_linker="$host_os ld.so" 13341 shlibpath_var=LIBRARY_PATH 13342 ;; 13343 13344bsdi[45]*) 13345 version_type=linux # correct to gnu/linux during the next big refactor 13346 need_version=no 13347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13348 soname_spec='$libname$release$shared_ext$major' 13349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13350 shlibpath_var=LD_LIBRARY_PATH 13351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13353 # the default ld.so.conf also contains /usr/contrib/lib and 13354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13355 # libtool to hard-code these into programs 13356 ;; 13357 13358cygwin* | mingw* | pw32* | cegcc*) 13359 version_type=windows 13360 shrext_cmds=.dll 13361 need_version=no 13362 need_lib_prefix=no 13363 13364 case $GCC,$cc_basename in 13365 yes,*) 13366 # gcc 13367 library_names_spec='$libname.dll.a' 13368 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13369 postinstall_cmds='base_file=`basename \$file`~ 13370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13371 dldir=$destdir/`dirname \$dlpath`~ 13372 test -d \$dldir || mkdir -p \$dldir~ 13373 $install_prog $dir/$dlname \$dldir/$dlname~ 13374 chmod a+x \$dldir/$dlname~ 13375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13377 fi' 13378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13379 dlpath=$dir/\$dldll~ 13380 $RM \$dlpath' 13381 shlibpath_overrides_runpath=yes 13382 13383 case $host_os in 13384 cygwin*) 13385 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13386 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13387 13388 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13389 ;; 13390 mingw* | cegcc*) 13391 # MinGW DLLs use traditional 'lib' prefix 13392 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13393 ;; 13394 pw32*) 13395 # pw32 DLLs use 'pw' prefix rather than 'lib' 13396 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13397 ;; 13398 esac 13399 dynamic_linker='Win32 ld.exe' 13400 ;; 13401 13402 *,cl* | *,icl*) 13403 # Native MSVC or ICC 13404 libname_spec='$name' 13405 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13406 library_names_spec='$libname.dll.lib' 13407 13408 case $build_os in 13409 mingw*) 13410 sys_lib_search_path_spec= 13411 lt_save_ifs=$IFS 13412 IFS=';' 13413 for lt_path in $LIB 13414 do 13415 IFS=$lt_save_ifs 13416 # Let DOS variable expansion print the short 8.3 style file name. 13417 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13418 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13419 done 13420 IFS=$lt_save_ifs 13421 # Convert to MSYS style. 13422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13423 ;; 13424 cygwin*) 13425 # Convert to unix form, then to dos form, then back to unix form 13426 # but this time dos style (no spaces!) so that the unix form looks 13427 # like /cygdrive/c/PROGRA~1:/cygdr... 13428 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13429 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13430 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13431 ;; 13432 *) 13433 sys_lib_search_path_spec=$LIB 13434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13435 # It is most probably a Windows format PATH. 13436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13437 else 13438 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13439 fi 13440 # FIXME: find the short name or the path components, as spaces are 13441 # common. (e.g. "Program Files" -> "PROGRA~1") 13442 ;; 13443 esac 13444 13445 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13446 postinstall_cmds='base_file=`basename \$file`~ 13447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13448 dldir=$destdir/`dirname \$dlpath`~ 13449 test -d \$dldir || mkdir -p \$dldir~ 13450 $install_prog $dir/$dlname \$dldir/$dlname' 13451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13452 dlpath=$dir/\$dldll~ 13453 $RM \$dlpath' 13454 shlibpath_overrides_runpath=yes 13455 dynamic_linker='Win32 link.exe' 13456 ;; 13457 13458 *) 13459 # Assume MSVC and ICC wrapper 13460 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13461 dynamic_linker='Win32 ld.exe' 13462 ;; 13463 esac 13464 # FIXME: first we should search . and the directory the executable is in 13465 shlibpath_var=PATH 13466 ;; 13467 13468darwin* | rhapsody*) 13469 dynamic_linker="$host_os dyld" 13470 version_type=darwin 13471 need_lib_prefix=no 13472 need_version=no 13473 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13474 soname_spec='$libname$release$major$shared_ext' 13475 shlibpath_overrides_runpath=yes 13476 shlibpath_var=DYLD_LIBRARY_PATH 13477 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13478 13479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13481 ;; 13482 13483dgux*) 13484 version_type=linux # correct to gnu/linux during the next big refactor 13485 need_lib_prefix=no 13486 need_version=no 13487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13488 soname_spec='$libname$release$shared_ext$major' 13489 shlibpath_var=LD_LIBRARY_PATH 13490 ;; 13491 13492freebsd* | dragonfly* | midnightbsd*) 13493 # DragonFly does not have aout. When/if they implement a new 13494 # versioning mechanism, adjust this. 13495 if test -x /usr/bin/objformat; then 13496 objformat=`/usr/bin/objformat` 13497 else 13498 case $host_os in 13499 freebsd[23].*) objformat=aout ;; 13500 *) objformat=elf ;; 13501 esac 13502 fi 13503 version_type=freebsd-$objformat 13504 case $version_type in 13505 freebsd-elf*) 13506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13507 soname_spec='$libname$release$shared_ext$major' 13508 need_version=no 13509 need_lib_prefix=no 13510 ;; 13511 freebsd-*) 13512 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13513 need_version=yes 13514 ;; 13515 esac 13516 shlibpath_var=LD_LIBRARY_PATH 13517 case $host_os in 13518 freebsd2.*) 13519 shlibpath_overrides_runpath=yes 13520 ;; 13521 freebsd3.[01]* | freebsdelf3.[01]*) 13522 shlibpath_overrides_runpath=yes 13523 hardcode_into_libs=yes 13524 ;; 13525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13527 shlibpath_overrides_runpath=no 13528 hardcode_into_libs=yes 13529 ;; 13530 *) # from 4.6 on, and DragonFly 13531 shlibpath_overrides_runpath=yes 13532 hardcode_into_libs=yes 13533 ;; 13534 esac 13535 ;; 13536 13537haiku*) 13538 version_type=linux # correct to gnu/linux during the next big refactor 13539 need_lib_prefix=no 13540 need_version=no 13541 dynamic_linker="$host_os runtime_loader" 13542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13543 soname_spec='$libname$release$shared_ext$major' 13544 shlibpath_var=LIBRARY_PATH 13545 shlibpath_overrides_runpath=no 13546 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13547 hardcode_into_libs=yes 13548 ;; 13549 13550hpux9* | hpux10* | hpux11*) 13551 # Give a soname corresponding to the major version so that dld.sl refuses to 13552 # link against other versions. 13553 version_type=sunos 13554 need_lib_prefix=no 13555 need_version=no 13556 case $host_cpu in 13557 ia64*) 13558 shrext_cmds='.so' 13559 hardcode_into_libs=yes 13560 dynamic_linker="$host_os dld.so" 13561 shlibpath_var=LD_LIBRARY_PATH 13562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13564 soname_spec='$libname$release$shared_ext$major' 13565 if test 32 = "$HPUX_IA64_MODE"; then 13566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13567 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13568 else 13569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13570 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13571 fi 13572 ;; 13573 hppa*64*) 13574 shrext_cmds='.sl' 13575 hardcode_into_libs=yes 13576 dynamic_linker="$host_os dld.sl" 13577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13580 soname_spec='$libname$release$shared_ext$major' 13581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13583 ;; 13584 *) 13585 shrext_cmds='.sl' 13586 dynamic_linker="$host_os dld.sl" 13587 shlibpath_var=SHLIB_PATH 13588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13590 soname_spec='$libname$release$shared_ext$major' 13591 ;; 13592 esac 13593 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13594 postinstall_cmds='chmod 555 $lib' 13595 # or fails outright, so override atomically: 13596 install_override_mode=555 13597 ;; 13598 13599interix[3-9]*) 13600 version_type=linux # correct to gnu/linux during the next big refactor 13601 need_lib_prefix=no 13602 need_version=no 13603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13604 soname_spec='$libname$release$shared_ext$major' 13605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13606 shlibpath_var=LD_LIBRARY_PATH 13607 shlibpath_overrides_runpath=no 13608 hardcode_into_libs=yes 13609 ;; 13610 13611irix5* | irix6* | nonstopux*) 13612 case $host_os in 13613 nonstopux*) version_type=nonstopux ;; 13614 *) 13615 if test yes = "$lt_cv_prog_gnu_ld"; then 13616 version_type=linux # correct to gnu/linux during the next big refactor 13617 else 13618 version_type=irix 13619 fi ;; 13620 esac 13621 need_lib_prefix=no 13622 need_version=no 13623 soname_spec='$libname$release$shared_ext$major' 13624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13625 case $host_os in 13626 irix5* | nonstopux*) 13627 libsuff= shlibsuff= 13628 ;; 13629 *) 13630 case $LD in # libtool.m4 will add one of these switches to LD 13631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13632 libsuff= shlibsuff= libmagic=32-bit;; 13633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13634 libsuff=32 shlibsuff=N32 libmagic=N32;; 13635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13636 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13637 *) libsuff= shlibsuff= libmagic=never-match;; 13638 esac 13639 ;; 13640 esac 13641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13642 shlibpath_overrides_runpath=no 13643 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13644 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13645 hardcode_into_libs=yes 13646 ;; 13647 13648# No shared lib support for Linux oldld, aout, or coff. 13649linux*oldld* | linux*aout* | linux*coff*) 13650 dynamic_linker=no 13651 ;; 13652 13653linux*android*) 13654 version_type=none # Android doesn't support versioned libraries. 13655 need_lib_prefix=no 13656 need_version=no 13657 library_names_spec='$libname$release$shared_ext' 13658 soname_spec='$libname$release$shared_ext' 13659 finish_cmds= 13660 shlibpath_var=LD_LIBRARY_PATH 13661 shlibpath_overrides_runpath=yes 13662 13663 # This implies no fast_install, which is unacceptable. 13664 # Some rework will be needed to allow for fast_install 13665 # before this can be enabled. 13666 hardcode_into_libs=yes 13667 13668 dynamic_linker='Android linker' 13669 # Don't embed -rpath directories since the linker doesn't support them. 13670 hardcode_libdir_flag_spec='-L$libdir' 13671 ;; 13672 13673# This must be glibc/ELF. 13674linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13675 version_type=linux # correct to gnu/linux during the next big refactor 13676 need_lib_prefix=no 13677 need_version=no 13678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13679 soname_spec='$libname$release$shared_ext$major' 13680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13681 shlibpath_var=LD_LIBRARY_PATH 13682 shlibpath_overrides_runpath=no 13683 13684 # Some binutils ld are patched to set DT_RUNPATH 13685 if test ${lt_cv_shlibpath_overrides_runpath+y} 13686then : 13687 printf %s "(cached) " >&6 13688else $as_nop 13689 lt_cv_shlibpath_overrides_runpath=no 13690 save_LDFLAGS=$LDFLAGS 13691 save_libdir=$libdir 13692 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13693 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696 13697int 13698main (void) 13699{ 13700 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705if ac_fn_c_try_link "$LINENO" 13706then : 13707 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 13708then : 13709 lt_cv_shlibpath_overrides_runpath=yes 13710fi 13711fi 13712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13713 conftest$ac_exeext conftest.$ac_ext 13714 LDFLAGS=$save_LDFLAGS 13715 libdir=$save_libdir 13716 13717fi 13718 13719 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13720 13721 # This implies no fast_install, which is unacceptable. 13722 # Some rework will be needed to allow for fast_install 13723 # before this can be enabled. 13724 hardcode_into_libs=yes 13725 13726 # Ideally, we could use ldconfig to report *all* directores which are 13727 # searched for libraries, however this is still not possible. Aside from not 13728 # being certain /sbin/ldconfig is available, command 13729 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13730 # even though it is searched at run-time. Try to do the best guess by 13731 # appending ld.so.conf contents (and includes) to the search path. 13732 if test -f /etc/ld.so.conf; then 13733 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' ' '` 13734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13735 fi 13736 13737 # We used to test for /lib/ld.so.1 and disable shared libraries on 13738 # powerpc, because MkLinux only supported shared libraries with the 13739 # GNU dynamic linker. Since this was broken with cross compilers, 13740 # most powerpc-linux boxes support dynamic linking these days and 13741 # people can always --disable-shared, the test was removed, and we 13742 # assume the GNU/Linux dynamic linker is in use. 13743 dynamic_linker='GNU/Linux ld.so' 13744 ;; 13745 13746netbsdelf*-gnu) 13747 version_type=linux 13748 need_lib_prefix=no 13749 need_version=no 13750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13751 soname_spec='${libname}${release}${shared_ext}$major' 13752 shlibpath_var=LD_LIBRARY_PATH 13753 shlibpath_overrides_runpath=no 13754 hardcode_into_libs=yes 13755 dynamic_linker='NetBSD ld.elf_so' 13756 ;; 13757 13758netbsd*) 13759 version_type=sunos 13760 need_lib_prefix=no 13761 need_version=no 13762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13765 dynamic_linker='NetBSD (a.out) ld.so' 13766 else 13767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13768 soname_spec='$libname$release$shared_ext$major' 13769 dynamic_linker='NetBSD ld.elf_so' 13770 fi 13771 shlibpath_var=LD_LIBRARY_PATH 13772 shlibpath_overrides_runpath=yes 13773 hardcode_into_libs=yes 13774 ;; 13775 13776newsos6) 13777 version_type=linux # correct to gnu/linux during the next big refactor 13778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13779 shlibpath_var=LD_LIBRARY_PATH 13780 shlibpath_overrides_runpath=yes 13781 ;; 13782 13783*nto* | *qnx*) 13784 version_type=qnx 13785 need_lib_prefix=no 13786 need_version=no 13787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13788 soname_spec='$libname$release$shared_ext$major' 13789 shlibpath_var=LD_LIBRARY_PATH 13790 shlibpath_overrides_runpath=no 13791 hardcode_into_libs=yes 13792 dynamic_linker='ldqnx.so' 13793 ;; 13794 13795openbsd* | bitrig*) 13796 version_type=sunos 13797 sys_lib_dlsearch_path_spec=/usr/lib 13798 need_lib_prefix=no 13799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13800 need_version=no 13801 else 13802 need_version=yes 13803 fi 13804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13806 shlibpath_var=LD_LIBRARY_PATH 13807 shlibpath_overrides_runpath=yes 13808 ;; 13809 13810os2*) 13811 libname_spec='$name' 13812 version_type=windows 13813 shrext_cmds=.dll 13814 need_version=no 13815 need_lib_prefix=no 13816 # OS/2 can only load a DLL with a base name of 8 characters or less. 13817 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13818 v=$($ECHO $release$versuffix | tr -d .-); 13819 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13820 $ECHO $n$v`$shared_ext' 13821 library_names_spec='${libname}_dll.$libext' 13822 dynamic_linker='OS/2 ld.exe' 13823 shlibpath_var=BEGINLIBPATH 13824 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13826 postinstall_cmds='base_file=`basename \$file`~ 13827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13828 dldir=$destdir/`dirname \$dlpath`~ 13829 test -d \$dldir || mkdir -p \$dldir~ 13830 $install_prog $dir/$dlname \$dldir/$dlname~ 13831 chmod a+x \$dldir/$dlname~ 13832 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13833 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13834 fi' 13835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13836 dlpath=$dir/\$dldll~ 13837 $RM \$dlpath' 13838 ;; 13839 13840osf3* | osf4* | osf5*) 13841 version_type=osf 13842 need_lib_prefix=no 13843 need_version=no 13844 soname_spec='$libname$release$shared_ext$major' 13845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13846 shlibpath_var=LD_LIBRARY_PATH 13847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13849 ;; 13850 13851rdos*) 13852 dynamic_linker=no 13853 ;; 13854 13855solaris*) 13856 version_type=linux # correct to gnu/linux during the next big refactor 13857 need_lib_prefix=no 13858 need_version=no 13859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13860 soname_spec='$libname$release$shared_ext$major' 13861 shlibpath_var=LD_LIBRARY_PATH 13862 shlibpath_overrides_runpath=yes 13863 hardcode_into_libs=yes 13864 # ldd complains unless libraries are executable 13865 postinstall_cmds='chmod +x $lib' 13866 ;; 13867 13868sunos4*) 13869 version_type=sunos 13870 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13872 shlibpath_var=LD_LIBRARY_PATH 13873 shlibpath_overrides_runpath=yes 13874 if test yes = "$with_gnu_ld"; then 13875 need_lib_prefix=no 13876 fi 13877 need_version=yes 13878 ;; 13879 13880sysv4 | sysv4.3*) 13881 version_type=linux # correct to gnu/linux during the next big refactor 13882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13883 soname_spec='$libname$release$shared_ext$major' 13884 shlibpath_var=LD_LIBRARY_PATH 13885 case $host_vendor in 13886 sni) 13887 shlibpath_overrides_runpath=no 13888 need_lib_prefix=no 13889 runpath_var=LD_RUN_PATH 13890 ;; 13891 siemens) 13892 need_lib_prefix=no 13893 ;; 13894 motorola) 13895 need_lib_prefix=no 13896 need_version=no 13897 shlibpath_overrides_runpath=no 13898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13899 ;; 13900 esac 13901 ;; 13902 13903sysv4*MP*) 13904 if test -d /usr/nec; then 13905 version_type=linux # correct to gnu/linux during the next big refactor 13906 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13907 soname_spec='$libname$shared_ext.$major' 13908 shlibpath_var=LD_LIBRARY_PATH 13909 fi 13910 ;; 13911 13912sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13913 version_type=sco 13914 need_lib_prefix=no 13915 need_version=no 13916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13917 soname_spec='$libname$release$shared_ext$major' 13918 shlibpath_var=LD_LIBRARY_PATH 13919 shlibpath_overrides_runpath=yes 13920 hardcode_into_libs=yes 13921 if test yes = "$with_gnu_ld"; then 13922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13923 else 13924 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13925 case $host_os in 13926 sco3.2v5*) 13927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13928 ;; 13929 esac 13930 fi 13931 sys_lib_dlsearch_path_spec='/usr/lib' 13932 ;; 13933 13934tpf*) 13935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13936 version_type=linux # correct to gnu/linux during the next big refactor 13937 need_lib_prefix=no 13938 need_version=no 13939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13940 shlibpath_var=LD_LIBRARY_PATH 13941 shlibpath_overrides_runpath=no 13942 hardcode_into_libs=yes 13943 ;; 13944 13945uts4*) 13946 version_type=linux # correct to gnu/linux during the next big refactor 13947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13948 soname_spec='$libname$release$shared_ext$major' 13949 shlibpath_var=LD_LIBRARY_PATH 13950 ;; 13951 13952*) 13953 dynamic_linker=no 13954 ;; 13955esac 13956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13957printf "%s\n" "$dynamic_linker" >&6; } 13958test no = "$dynamic_linker" && can_build_shared=no 13959 13960variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13961if test yes = "$GCC"; then 13962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13963fi 13964 13965if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13966 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13967fi 13968 13969if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13970 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13971fi 13972 13973# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13974configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13975 13976# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13977func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13978 13979# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13980configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14079printf %s "checking how to hardcode library paths into programs... " >&6; } 14080hardcode_action= 14081if test -n "$hardcode_libdir_flag_spec" || 14082 test -n "$runpath_var" || 14083 test yes = "$hardcode_automatic"; then 14084 14085 # We can hardcode non-existent directories. 14086 if test no != "$hardcode_direct" && 14087 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14088 # have to relink, otherwise we might link with an installed library 14089 # when we should be linking with a yet-to-be-installed one 14090 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14091 test no != "$hardcode_minus_L"; then 14092 # Linking always hardcodes the temporary library directory. 14093 hardcode_action=relink 14094 else 14095 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14096 hardcode_action=immediate 14097 fi 14098else 14099 # We cannot hardcode anything, or else we can only hardcode existing 14100 # directories. 14101 hardcode_action=unsupported 14102fi 14103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14104printf "%s\n" "$hardcode_action" >&6; } 14105 14106if test relink = "$hardcode_action" || 14107 test yes = "$inherit_rpath"; then 14108 # Fast installation is not supported 14109 enable_fast_install=no 14110elif test yes = "$shlibpath_overrides_runpath" || 14111 test no = "$enable_shared"; then 14112 # Fast installation is not necessary 14113 enable_fast_install=needless 14114fi 14115 14116 14117 14118 14119 14120 14121 if test yes != "$enable_dlopen"; then 14122 enable_dlopen=unknown 14123 enable_dlopen_self=unknown 14124 enable_dlopen_self_static=unknown 14125else 14126 lt_cv_dlopen=no 14127 lt_cv_dlopen_libs= 14128 14129 case $host_os in 14130 beos*) 14131 lt_cv_dlopen=load_add_on 14132 lt_cv_dlopen_libs= 14133 lt_cv_dlopen_self=yes 14134 ;; 14135 14136 mingw* | pw32* | cegcc*) 14137 lt_cv_dlopen=LoadLibrary 14138 lt_cv_dlopen_libs= 14139 ;; 14140 14141 cygwin*) 14142 lt_cv_dlopen=dlopen 14143 lt_cv_dlopen_libs= 14144 ;; 14145 14146 darwin*) 14147 # if libdl is installed we need to link against it 14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14149printf %s "checking for dlopen in -ldl... " >&6; } 14150if test ${ac_cv_lib_dl_dlopen+y} 14151then : 14152 printf %s "(cached) " >&6 14153else $as_nop 14154 ac_check_lib_save_LIBS=$LIBS 14155LIBS="-ldl $LIBS" 14156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158 14159/* Override any GCC internal prototype to avoid an error. 14160 Use char because int might match the return type of a GCC 14161 builtin and then its argument prototype would still apply. */ 14162char dlopen (); 14163int 14164main (void) 14165{ 14166return dlopen (); 14167 ; 14168 return 0; 14169} 14170_ACEOF 14171if ac_fn_c_try_link "$LINENO" 14172then : 14173 ac_cv_lib_dl_dlopen=yes 14174else $as_nop 14175 ac_cv_lib_dl_dlopen=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14178 conftest$ac_exeext conftest.$ac_ext 14179LIBS=$ac_check_lib_save_LIBS 14180fi 14181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14182printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 14183if test "x$ac_cv_lib_dl_dlopen" = xyes 14184then : 14185 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14186else $as_nop 14187 14188 lt_cv_dlopen=dyld 14189 lt_cv_dlopen_libs= 14190 lt_cv_dlopen_self=yes 14191 14192fi 14193 14194 ;; 14195 14196 tpf*) 14197 # Don't try to run any link tests for TPF. We know it's impossible 14198 # because TPF is a cross-compiler, and we know how we open DSOs. 14199 lt_cv_dlopen=dlopen 14200 lt_cv_dlopen_libs= 14201 lt_cv_dlopen_self=no 14202 ;; 14203 14204 *) 14205 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14206if test "x$ac_cv_func_shl_load" = xyes 14207then : 14208 lt_cv_dlopen=shl_load 14209else $as_nop 14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14211printf %s "checking for shl_load in -ldld... " >&6; } 14212if test ${ac_cv_lib_dld_shl_load+y} 14213then : 14214 printf %s "(cached) " >&6 14215else $as_nop 14216 ac_check_lib_save_LIBS=$LIBS 14217LIBS="-ldld $LIBS" 14218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14219/* end confdefs.h. */ 14220 14221/* Override any GCC internal prototype to avoid an error. 14222 Use char because int might match the return type of a GCC 14223 builtin and then its argument prototype would still apply. */ 14224char shl_load (); 14225int 14226main (void) 14227{ 14228return shl_load (); 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_link "$LINENO" 14234then : 14235 ac_cv_lib_dld_shl_load=yes 14236else $as_nop 14237 ac_cv_lib_dld_shl_load=no 14238fi 14239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14240 conftest$ac_exeext conftest.$ac_ext 14241LIBS=$ac_check_lib_save_LIBS 14242fi 14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14244printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 14245if test "x$ac_cv_lib_dld_shl_load" = xyes 14246then : 14247 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14248else $as_nop 14249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14250if test "x$ac_cv_func_dlopen" = xyes 14251then : 14252 lt_cv_dlopen=dlopen 14253else $as_nop 14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14255printf %s "checking for dlopen in -ldl... " >&6; } 14256if test ${ac_cv_lib_dl_dlopen+y} 14257then : 14258 printf %s "(cached) " >&6 14259else $as_nop 14260 ac_check_lib_save_LIBS=$LIBS 14261LIBS="-ldl $LIBS" 14262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263/* end confdefs.h. */ 14264 14265/* Override any GCC internal prototype to avoid an error. 14266 Use char because int might match the return type of a GCC 14267 builtin and then its argument prototype would still apply. */ 14268char dlopen (); 14269int 14270main (void) 14271{ 14272return dlopen (); 14273 ; 14274 return 0; 14275} 14276_ACEOF 14277if ac_fn_c_try_link "$LINENO" 14278then : 14279 ac_cv_lib_dl_dlopen=yes 14280else $as_nop 14281 ac_cv_lib_dl_dlopen=no 14282fi 14283rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14284 conftest$ac_exeext conftest.$ac_ext 14285LIBS=$ac_check_lib_save_LIBS 14286fi 14287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14288printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 14289if test "x$ac_cv_lib_dl_dlopen" = xyes 14290then : 14291 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14292else $as_nop 14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14294printf %s "checking for dlopen in -lsvld... " >&6; } 14295if test ${ac_cv_lib_svld_dlopen+y} 14296then : 14297 printf %s "(cached) " >&6 14298else $as_nop 14299 ac_check_lib_save_LIBS=$LIBS 14300LIBS="-lsvld $LIBS" 14301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14302/* end confdefs.h. */ 14303 14304/* Override any GCC internal prototype to avoid an error. 14305 Use char because int might match the return type of a GCC 14306 builtin and then its argument prototype would still apply. */ 14307char dlopen (); 14308int 14309main (void) 14310{ 14311return dlopen (); 14312 ; 14313 return 0; 14314} 14315_ACEOF 14316if ac_fn_c_try_link "$LINENO" 14317then : 14318 ac_cv_lib_svld_dlopen=yes 14319else $as_nop 14320 ac_cv_lib_svld_dlopen=no 14321fi 14322rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14323 conftest$ac_exeext conftest.$ac_ext 14324LIBS=$ac_check_lib_save_LIBS 14325fi 14326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14327printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 14328if test "x$ac_cv_lib_svld_dlopen" = xyes 14329then : 14330 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14331else $as_nop 14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14333printf %s "checking for dld_link in -ldld... " >&6; } 14334if test ${ac_cv_lib_dld_dld_link+y} 14335then : 14336 printf %s "(cached) " >&6 14337else $as_nop 14338 ac_check_lib_save_LIBS=$LIBS 14339LIBS="-ldld $LIBS" 14340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342 14343/* Override any GCC internal prototype to avoid an error. 14344 Use char because int might match the return type of a GCC 14345 builtin and then its argument prototype would still apply. */ 14346char dld_link (); 14347int 14348main (void) 14349{ 14350return dld_link (); 14351 ; 14352 return 0; 14353} 14354_ACEOF 14355if ac_fn_c_try_link "$LINENO" 14356then : 14357 ac_cv_lib_dld_dld_link=yes 14358else $as_nop 14359 ac_cv_lib_dld_dld_link=no 14360fi 14361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14362 conftest$ac_exeext conftest.$ac_ext 14363LIBS=$ac_check_lib_save_LIBS 14364fi 14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14366printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 14367if test "x$ac_cv_lib_dld_dld_link" = xyes 14368then : 14369 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14370fi 14371 14372 14373fi 14374 14375 14376fi 14377 14378 14379fi 14380 14381 14382fi 14383 14384 14385fi 14386 14387 ;; 14388 esac 14389 14390 if test no = "$lt_cv_dlopen"; then 14391 enable_dlopen=no 14392 else 14393 enable_dlopen=yes 14394 fi 14395 14396 case $lt_cv_dlopen in 14397 dlopen) 14398 save_CPPFLAGS=$CPPFLAGS 14399 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14400 14401 save_LDFLAGS=$LDFLAGS 14402 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14403 14404 save_LIBS=$LIBS 14405 LIBS="$lt_cv_dlopen_libs $LIBS" 14406 14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14408printf %s "checking whether a program can dlopen itself... " >&6; } 14409if test ${lt_cv_dlopen_self+y} 14410then : 14411 printf %s "(cached) " >&6 14412else $as_nop 14413 if test yes = "$cross_compiling"; then : 14414 lt_cv_dlopen_self=cross 14415else 14416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14417 lt_status=$lt_dlunknown 14418 cat > conftest.$ac_ext <<_LT_EOF 14419#line $LINENO "configure" 14420#include "confdefs.h" 14421 14422#if HAVE_DLFCN_H 14423#include <dlfcn.h> 14424#endif 14425 14426#include <stdio.h> 14427 14428#ifdef RTLD_GLOBAL 14429# define LT_DLGLOBAL RTLD_GLOBAL 14430#else 14431# ifdef DL_GLOBAL 14432# define LT_DLGLOBAL DL_GLOBAL 14433# else 14434# define LT_DLGLOBAL 0 14435# endif 14436#endif 14437 14438/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14439 find out it does not work in some platform. */ 14440#ifndef LT_DLLAZY_OR_NOW 14441# ifdef RTLD_LAZY 14442# define LT_DLLAZY_OR_NOW RTLD_LAZY 14443# else 14444# ifdef DL_LAZY 14445# define LT_DLLAZY_OR_NOW DL_LAZY 14446# else 14447# ifdef RTLD_NOW 14448# define LT_DLLAZY_OR_NOW RTLD_NOW 14449# else 14450# ifdef DL_NOW 14451# define LT_DLLAZY_OR_NOW DL_NOW 14452# else 14453# define LT_DLLAZY_OR_NOW 0 14454# endif 14455# endif 14456# endif 14457# endif 14458#endif 14459 14460/* When -fvisibility=hidden is used, assume the code has been annotated 14461 correspondingly for the symbols needed. */ 14462#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14463int fnord () __attribute__((visibility("default"))); 14464#endif 14465 14466int fnord () { return 42; } 14467int main () 14468{ 14469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14470 int status = $lt_dlunknown; 14471 14472 if (self) 14473 { 14474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14475 else 14476 { 14477 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14478 else puts (dlerror ()); 14479 } 14480 /* dlclose (self); */ 14481 } 14482 else 14483 puts (dlerror ()); 14484 14485 return status; 14486} 14487_LT_EOF 14488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14489 (eval $ac_link) 2>&5 14490 ac_status=$? 14491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14492 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14493 (./conftest; exit; ) >&5 2>/dev/null 14494 lt_status=$? 14495 case x$lt_status in 14496 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14497 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14498 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14499 esac 14500 else : 14501 # compilation failed 14502 lt_cv_dlopen_self=no 14503 fi 14504fi 14505rm -fr conftest* 14506 14507 14508fi 14509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14510printf "%s\n" "$lt_cv_dlopen_self" >&6; } 14511 14512 if test yes = "$lt_cv_dlopen_self"; then 14513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14515printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 14516if test ${lt_cv_dlopen_self_static+y} 14517then : 14518 printf %s "(cached) " >&6 14519else $as_nop 14520 if test yes = "$cross_compiling"; then : 14521 lt_cv_dlopen_self_static=cross 14522else 14523 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14524 lt_status=$lt_dlunknown 14525 cat > conftest.$ac_ext <<_LT_EOF 14526#line $LINENO "configure" 14527#include "confdefs.h" 14528 14529#if HAVE_DLFCN_H 14530#include <dlfcn.h> 14531#endif 14532 14533#include <stdio.h> 14534 14535#ifdef RTLD_GLOBAL 14536# define LT_DLGLOBAL RTLD_GLOBAL 14537#else 14538# ifdef DL_GLOBAL 14539# define LT_DLGLOBAL DL_GLOBAL 14540# else 14541# define LT_DLGLOBAL 0 14542# endif 14543#endif 14544 14545/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14546 find out it does not work in some platform. */ 14547#ifndef LT_DLLAZY_OR_NOW 14548# ifdef RTLD_LAZY 14549# define LT_DLLAZY_OR_NOW RTLD_LAZY 14550# else 14551# ifdef DL_LAZY 14552# define LT_DLLAZY_OR_NOW DL_LAZY 14553# else 14554# ifdef RTLD_NOW 14555# define LT_DLLAZY_OR_NOW RTLD_NOW 14556# else 14557# ifdef DL_NOW 14558# define LT_DLLAZY_OR_NOW DL_NOW 14559# else 14560# define LT_DLLAZY_OR_NOW 0 14561# endif 14562# endif 14563# endif 14564# endif 14565#endif 14566 14567/* When -fvisibility=hidden is used, assume the code has been annotated 14568 correspondingly for the symbols needed. */ 14569#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14570int fnord () __attribute__((visibility("default"))); 14571#endif 14572 14573int fnord () { return 42; } 14574int main () 14575{ 14576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14577 int status = $lt_dlunknown; 14578 14579 if (self) 14580 { 14581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14582 else 14583 { 14584 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14585 else puts (dlerror ()); 14586 } 14587 /* dlclose (self); */ 14588 } 14589 else 14590 puts (dlerror ()); 14591 14592 return status; 14593} 14594_LT_EOF 14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14596 (eval $ac_link) 2>&5 14597 ac_status=$? 14598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14599 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14600 (./conftest; exit; ) >&5 2>/dev/null 14601 lt_status=$? 14602 case x$lt_status in 14603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14605 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14606 esac 14607 else : 14608 # compilation failed 14609 lt_cv_dlopen_self_static=no 14610 fi 14611fi 14612rm -fr conftest* 14613 14614 14615fi 14616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14617printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 14618 fi 14619 14620 CPPFLAGS=$save_CPPFLAGS 14621 LDFLAGS=$save_LDFLAGS 14622 LIBS=$save_LIBS 14623 ;; 14624 esac 14625 14626 case $lt_cv_dlopen_self in 14627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14628 *) enable_dlopen_self=unknown ;; 14629 esac 14630 14631 case $lt_cv_dlopen_self_static in 14632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14633 *) enable_dlopen_self_static=unknown ;; 14634 esac 14635fi 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653striplib= 14654old_striplib= 14655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14656printf %s "checking whether stripping libraries is possible... " >&6; } 14657if test -z "$STRIP"; then 14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14659printf "%s\n" "no" >&6; } 14660else 14661 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14662 old_striplib="$STRIP --strip-debug" 14663 striplib="$STRIP --strip-unneeded" 14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14665printf "%s\n" "yes" >&6; } 14666 else 14667 case $host_os in 14668 darwin*) 14669 # FIXME - insert some real tests, host_os isn't really good enough 14670 striplib="$STRIP -x" 14671 old_striplib="$STRIP -S" 14672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14673printf "%s\n" "yes" >&6; } 14674 ;; 14675 freebsd*) 14676 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 14677 old_striplib="$STRIP --strip-debug" 14678 striplib="$STRIP --strip-unneeded" 14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14680printf "%s\n" "yes" >&6; } 14681 else 14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14683printf "%s\n" "no" >&6; } 14684 fi 14685 ;; 14686 *) 14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14688printf "%s\n" "no" >&6; } 14689 ;; 14690 esac 14691 fi 14692fi 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 # Report what library types will actually be built 14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14707printf %s "checking if libtool supports shared libraries... " >&6; } 14708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14709printf "%s\n" "$can_build_shared" >&6; } 14710 14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14712printf %s "checking whether to build shared libraries... " >&6; } 14713 test no = "$can_build_shared" && enable_shared=no 14714 14715 # On AIX, shared libraries and static libraries use the same namespace, and 14716 # are all built from PIC. 14717 case $host_os in 14718 aix3*) 14719 test yes = "$enable_shared" && enable_static=no 14720 if test -n "$RANLIB"; then 14721 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14722 postinstall_cmds='$RANLIB $lib' 14723 fi 14724 ;; 14725 14726 aix[4-9]*) 14727 if test ia64 != "$host_cpu"; then 14728 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14729 yes,aix,yes) ;; # shared object as lib.so file only 14730 yes,svr4,*) ;; # shared object as lib.so archive member only 14731 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14732 esac 14733 fi 14734 ;; 14735 esac 14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14737printf "%s\n" "$enable_shared" >&6; } 14738 14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14740printf %s "checking whether to build static libraries... " >&6; } 14741 # Make sure either enable_shared or enable_static is yes. 14742 test yes = "$enable_shared" || enable_static=yes 14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14744printf "%s\n" "$enable_static" >&6; } 14745 14746 14747 14748 14749fi 14750ac_ext=c 14751ac_cpp='$CPP $CPPFLAGS' 14752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14754ac_compiler_gnu=$ac_cv_c_compiler_gnu 14755 14756CC=$lt_save_CC 14757 14758 if test -n "$CXX" && ( test no != "$CXX" && 14759 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 14760 (test g++ != "$CXX"))); then 14761 ac_ext=cpp 14762ac_cpp='$CXXCPP $CPPFLAGS' 14763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14767printf %s "checking how to run the C++ preprocessor... " >&6; } 14768if test -z "$CXXCPP"; then 14769 if test ${ac_cv_prog_CXXCPP+y} 14770then : 14771 printf %s "(cached) " >&6 14772else $as_nop 14773 # Double quotes because $CXX needs to be expanded 14774 for CXXCPP in "$CXX -E" cpp /lib/cpp 14775 do 14776 ac_preproc_ok=false 14777for ac_cxx_preproc_warn_flag in '' yes 14778do 14779 # Use a header file that comes with gcc, so configuring glibc 14780 # with a fresh cross-compiler works. 14781 # On the NeXT, cc -E runs the code through the compiler's parser, 14782 # not just through cpp. "Syntax error" is here to catch this case. 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785#include <limits.h> 14786 Syntax error 14787_ACEOF 14788if ac_fn_cxx_try_cpp "$LINENO" 14789then : 14790 14791else $as_nop 14792 # Broken: fails on valid input. 14793continue 14794fi 14795rm -f conftest.err conftest.i conftest.$ac_ext 14796 14797 # OK, works on sane cases. Now check whether nonexistent headers 14798 # can be detected and how. 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801#include <ac_nonexistent.h> 14802_ACEOF 14803if ac_fn_cxx_try_cpp "$LINENO" 14804then : 14805 # Broken: success on invalid input. 14806continue 14807else $as_nop 14808 # Passes both tests. 14809ac_preproc_ok=: 14810break 14811fi 14812rm -f conftest.err conftest.i conftest.$ac_ext 14813 14814done 14815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14816rm -f conftest.i conftest.err conftest.$ac_ext 14817if $ac_preproc_ok 14818then : 14819 break 14820fi 14821 14822 done 14823 ac_cv_prog_CXXCPP=$CXXCPP 14824 14825fi 14826 CXXCPP=$ac_cv_prog_CXXCPP 14827else 14828 ac_cv_prog_CXXCPP=$CXXCPP 14829fi 14830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14831printf "%s\n" "$CXXCPP" >&6; } 14832ac_preproc_ok=false 14833for ac_cxx_preproc_warn_flag in '' yes 14834do 14835 # Use a header file that comes with gcc, so configuring glibc 14836 # with a fresh cross-compiler works. 14837 # On the NeXT, cc -E runs the code through the compiler's parser, 14838 # not just through cpp. "Syntax error" is here to catch this case. 14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14840/* end confdefs.h. */ 14841#include <limits.h> 14842 Syntax error 14843_ACEOF 14844if ac_fn_cxx_try_cpp "$LINENO" 14845then : 14846 14847else $as_nop 14848 # Broken: fails on valid input. 14849continue 14850fi 14851rm -f conftest.err conftest.i conftest.$ac_ext 14852 14853 # OK, works on sane cases. Now check whether nonexistent headers 14854 # can be detected and how. 14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856/* end confdefs.h. */ 14857#include <ac_nonexistent.h> 14858_ACEOF 14859if ac_fn_cxx_try_cpp "$LINENO" 14860then : 14861 # Broken: success on invalid input. 14862continue 14863else $as_nop 14864 # Passes both tests. 14865ac_preproc_ok=: 14866break 14867fi 14868rm -f conftest.err conftest.i conftest.$ac_ext 14869 14870done 14871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14872rm -f conftest.i conftest.err conftest.$ac_ext 14873if $ac_preproc_ok 14874then : 14875 14876else $as_nop 14877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 14879as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14880See \`config.log' for more details" "$LINENO" 5; } 14881fi 14882 14883ac_ext=c 14884ac_cpp='$CPP $CPPFLAGS' 14885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14887ac_compiler_gnu=$ac_cv_c_compiler_gnu 14888 14889else 14890 _lt_caught_CXX_error=yes 14891fi 14892 14893ac_ext=cpp 14894ac_cpp='$CXXCPP $CPPFLAGS' 14895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14898 14899archive_cmds_need_lc_CXX=no 14900allow_undefined_flag_CXX= 14901always_export_symbols_CXX=no 14902archive_expsym_cmds_CXX= 14903compiler_needs_object_CXX=no 14904export_dynamic_flag_spec_CXX= 14905hardcode_direct_CXX=no 14906hardcode_direct_absolute_CXX=no 14907hardcode_libdir_flag_spec_CXX= 14908hardcode_libdir_separator_CXX= 14909hardcode_minus_L_CXX=no 14910hardcode_shlibpath_var_CXX=unsupported 14911hardcode_automatic_CXX=no 14912inherit_rpath_CXX=no 14913module_cmds_CXX= 14914module_expsym_cmds_CXX= 14915link_all_deplibs_CXX=unknown 14916old_archive_cmds_CXX=$old_archive_cmds 14917reload_flag_CXX=$reload_flag 14918reload_cmds_CXX=$reload_cmds 14919no_undefined_flag_CXX= 14920whole_archive_flag_spec_CXX= 14921enable_shared_with_static_runtimes_CXX=no 14922 14923# Source file extension for C++ test sources. 14924ac_ext=cpp 14925 14926# Object file extension for compiled C++ test sources. 14927objext=o 14928objext_CXX=$objext 14929 14930# No sense in running all these tests if we already determined that 14931# the CXX compiler isn't working. Some variables (like enable_shared) 14932# are currently assumed to apply to all compilers on this platform, 14933# and will be corrupted by setting them based on a non-working compiler. 14934if test yes != "$_lt_caught_CXX_error"; then 14935 # Code to be used in simple compile tests 14936 lt_simple_compile_test_code="int some_variable = 0;" 14937 14938 # Code to be used in simple link tests 14939 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14940 14941 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14942 14943 14944 14945 14946 14947 14948# If no C compiler was specified, use CC. 14949LTCC=${LTCC-"$CC"} 14950 14951# If no C compiler flags were specified, use CFLAGS. 14952LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14953 14954# Allow CC to be a program name with arguments. 14955compiler=$CC 14956 14957 14958 # save warnings/boilerplate of simple test code 14959 ac_outfile=conftest.$ac_objext 14960echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14961eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14962_lt_compiler_boilerplate=`cat conftest.err` 14963$RM conftest* 14964 14965 ac_outfile=conftest.$ac_objext 14966echo "$lt_simple_link_test_code" >conftest.$ac_ext 14967eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14968_lt_linker_boilerplate=`cat conftest.err` 14969$RM -r conftest* 14970 14971 14972 # Allow CC to be a program name with arguments. 14973 lt_save_CC=$CC 14974 lt_save_CFLAGS=$CFLAGS 14975 lt_save_LD=$LD 14976 lt_save_GCC=$GCC 14977 GCC=$GXX 14978 lt_save_with_gnu_ld=$with_gnu_ld 14979 lt_save_path_LD=$lt_cv_path_LD 14980 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14981 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14982 else 14983 $as_unset lt_cv_prog_gnu_ld 14984 fi 14985 if test -n "${lt_cv_path_LDCXX+set}"; then 14986 lt_cv_path_LD=$lt_cv_path_LDCXX 14987 else 14988 $as_unset lt_cv_path_LD 14989 fi 14990 test -z "${LDCXX+set}" || LD=$LDCXX 14991 CC=${CXX-"c++"} 14992 CFLAGS=$CXXFLAGS 14993 compiler=$CC 14994 compiler_CXX=$CC 14995 func_cc_basename $compiler 14996cc_basename=$func_cc_basename_result 14997 14998 14999 if test -n "$compiler"; then 15000 # We don't want -fno-exception when compiling C++ code, so set the 15001 # no_builtin_flag separately 15002 if test yes = "$GXX"; then 15003 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15004 else 15005 lt_prog_compiler_no_builtin_flag_CXX= 15006 fi 15007 15008 if test yes = "$GXX"; then 15009 # Set up default GNU C++ configuration 15010 15011 15012 15013# Check whether --with-gnu-ld was given. 15014if test ${with_gnu_ld+y} 15015then : 15016 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15017else $as_nop 15018 with_gnu_ld=no 15019fi 15020 15021ac_prog=ld 15022if test yes = "$GCC"; then 15023 # Check if gcc -print-prog-name=ld gives a path. 15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15025printf %s "checking for ld used by $CC... " >&6; } 15026 case $host in 15027 *-*-mingw*) 15028 # gcc leaves a trailing carriage return, which upsets mingw 15029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15030 *) 15031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15032 esac 15033 case $ac_prog in 15034 # Accept absolute paths. 15035 [\\/]* | ?:[\\/]*) 15036 re_direlt='/[^/][^/]*/\.\./' 15037 # Canonicalize the pathname of ld 15038 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15039 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15040 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15041 done 15042 test -z "$LD" && LD=$ac_prog 15043 ;; 15044 "") 15045 # If it fails, then pretend we aren't using GCC. 15046 ac_prog=ld 15047 ;; 15048 *) 15049 # If it is relative, then search for the first ld in PATH. 15050 with_gnu_ld=unknown 15051 ;; 15052 esac 15053elif test yes = "$with_gnu_ld"; then 15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15055printf %s "checking for GNU ld... " >&6; } 15056else 15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15058printf %s "checking for non-GNU ld... " >&6; } 15059fi 15060if test ${lt_cv_path_LD+y} 15061then : 15062 printf %s "(cached) " >&6 15063else $as_nop 15064 if test -z "$LD"; then 15065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15066 for ac_dir in $PATH; do 15067 IFS=$lt_save_ifs 15068 test -z "$ac_dir" && ac_dir=. 15069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15070 lt_cv_path_LD=$ac_dir/$ac_prog 15071 # Check to see if the program is GNU ld. I'd rather use --version, 15072 # but apparently some variants of GNU ld only accept -v. 15073 # Break only if it was the GNU/non-GNU ld that we prefer. 15074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15075 *GNU* | *'with BFD'*) 15076 test no != "$with_gnu_ld" && break 15077 ;; 15078 *) 15079 test yes != "$with_gnu_ld" && break 15080 ;; 15081 esac 15082 fi 15083 done 15084 IFS=$lt_save_ifs 15085else 15086 lt_cv_path_LD=$LD # Let the user override the test with a path. 15087fi 15088fi 15089 15090LD=$lt_cv_path_LD 15091if test -n "$LD"; then 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15093printf "%s\n" "$LD" >&6; } 15094else 15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15096printf "%s\n" "no" >&6; } 15097fi 15098test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15100printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 15101if test ${lt_cv_prog_gnu_ld+y} 15102then : 15103 printf %s "(cached) " >&6 15104else $as_nop 15105 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15106case `$LD -v 2>&1 </dev/null` in 15107*GNU* | *'with BFD'*) 15108 lt_cv_prog_gnu_ld=yes 15109 ;; 15110*) 15111 lt_cv_prog_gnu_ld=no 15112 ;; 15113esac 15114fi 15115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15116printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 15117with_gnu_ld=$lt_cv_prog_gnu_ld 15118 15119 15120 15121 15122 15123 15124 15125 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15126 # archiving commands below assume that GNU ld is being used. 15127 if test yes = "$with_gnu_ld"; then 15128 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15129 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15130 15131 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15132 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15133 15134 # If archive_cmds runs LD, not CC, wlarc should be empty 15135 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15136 # investigate it a little bit more. (MM) 15137 wlarc='$wl' 15138 15139 # ancient GNU ld didn't support --whole-archive et. al. 15140 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15141 $GREP 'no-whole-archive' > /dev/null; then 15142 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15143 else 15144 whole_archive_flag_spec_CXX= 15145 fi 15146 else 15147 with_gnu_ld=no 15148 wlarc= 15149 15150 # A generic and very simple default shared library creation 15151 # command for GNU C++ for the case where it uses the native 15152 # linker, instead of GNU ld. If possible, this setting should 15153 # overridden to take advantage of the native linker features on 15154 # the platform it is being used on. 15155 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15156 fi 15157 15158 # Commands to make compiler produce verbose output that lists 15159 # what "hidden" libraries, object files and flags are used when 15160 # linking a shared library. 15161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 15162 15163 else 15164 GXX=no 15165 with_gnu_ld=no 15166 wlarc= 15167 fi 15168 15169 # PORTME: fill in a description of your system's C++ link characteristics 15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15171printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15172 ld_shlibs_CXX=yes 15173 case $host_os in 15174 aix3*) 15175 # FIXME: insert proper C++ library support 15176 ld_shlibs_CXX=no 15177 ;; 15178 aix[4-9]*) 15179 if test ia64 = "$host_cpu"; then 15180 # On IA64, the linker does run time linking by default, so we don't 15181 # have to do anything special. 15182 aix_use_runtimelinking=no 15183 exp_sym_flag='-Bexport' 15184 no_entry_flag= 15185 else 15186 aix_use_runtimelinking=no 15187 15188 # Test if we are trying to use run time linking or normal 15189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15190 # have runtime linking enabled, and use it for executables. 15191 # For shared libraries, we enable/disable runtime linking 15192 # depending on the kind of the shared library created - 15193 # when "with_aix_soname,aix_use_runtimelinking" is: 15194 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15195 # "aix,yes" lib.so shared, rtl:yes, for executables 15196 # lib.a static archive 15197 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15198 # lib.a(lib.so.V) shared, rtl:no, for executables 15199 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15200 # lib.a(lib.so.V) shared, rtl:no 15201 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15202 # lib.a static archive 15203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15204 for ld_flag in $LDFLAGS; do 15205 case $ld_flag in 15206 *-brtl*) 15207 aix_use_runtimelinking=yes 15208 break 15209 ;; 15210 esac 15211 done 15212 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15213 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15214 # so we don't have lib.a shared libs to link our executables. 15215 # We have to force runtime linking in this case. 15216 aix_use_runtimelinking=yes 15217 LDFLAGS="$LDFLAGS -Wl,-brtl" 15218 fi 15219 ;; 15220 esac 15221 15222 exp_sym_flag='-bexport' 15223 no_entry_flag='-bnoentry' 15224 fi 15225 15226 # When large executables or shared objects are built, AIX ld can 15227 # have problems creating the table of contents. If linking a library 15228 # or program results in "error TOC overflow" add -mminimal-toc to 15229 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15230 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15231 15232 archive_cmds_CXX='' 15233 hardcode_direct_CXX=yes 15234 hardcode_direct_absolute_CXX=yes 15235 hardcode_libdir_separator_CXX=':' 15236 link_all_deplibs_CXX=yes 15237 file_list_spec_CXX='$wl-f,' 15238 case $with_aix_soname,$aix_use_runtimelinking in 15239 aix,*) ;; # no import file 15240 svr4,* | *,yes) # use import file 15241 # The Import File defines what to hardcode. 15242 hardcode_direct_CXX=no 15243 hardcode_direct_absolute_CXX=no 15244 ;; 15245 esac 15246 15247 if test yes = "$GXX"; then 15248 case $host_os in aix4.[012]|aix4.[012].*) 15249 # We only want to do this on AIX 4.2 and lower, the check 15250 # below for broken collect2 doesn't work under 4.3+ 15251 collect2name=`$CC -print-prog-name=collect2` 15252 if test -f "$collect2name" && 15253 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15254 then 15255 # We have reworked collect2 15256 : 15257 else 15258 # We have old collect2 15259 hardcode_direct_CXX=unsupported 15260 # It fails to find uninstalled libraries when the uninstalled 15261 # path is not listed in the libpath. Setting hardcode_minus_L 15262 # to unsupported forces relinking 15263 hardcode_minus_L_CXX=yes 15264 hardcode_libdir_flag_spec_CXX='-L$libdir' 15265 hardcode_libdir_separator_CXX= 15266 fi 15267 esac 15268 shared_flag='-shared' 15269 if test yes = "$aix_use_runtimelinking"; then 15270 shared_flag=$shared_flag' $wl-G' 15271 fi 15272 # Need to ensure runtime linking is disabled for the traditional 15273 # shared library, or the linker may eventually find shared libraries 15274 # /with/ Import File - we do not want to mix them. 15275 shared_flag_aix='-shared' 15276 shared_flag_svr4='-shared $wl-G' 15277 else 15278 # not using gcc 15279 if test ia64 = "$host_cpu"; then 15280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15281 # chokes on -Wl,-G. The following line is correct: 15282 shared_flag='-G' 15283 else 15284 if test yes = "$aix_use_runtimelinking"; then 15285 shared_flag='$wl-G' 15286 else 15287 shared_flag='$wl-bM:SRE' 15288 fi 15289 shared_flag_aix='$wl-bM:SRE' 15290 shared_flag_svr4='$wl-G' 15291 fi 15292 fi 15293 15294 export_dynamic_flag_spec_CXX='$wl-bexpall' 15295 # It seems that -bexpall does not export symbols beginning with 15296 # underscore (_), so it is better to generate a list of symbols to 15297 # export. 15298 always_export_symbols_CXX=yes 15299 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15300 # Warning - without using the other runtime loading flags (-brtl), 15301 # -berok will link without error, but may produce a broken library. 15302 # The "-G" linker flag allows undefined symbols. 15303 no_undefined_flag_CXX='-bernotok' 15304 # Determine the default libpath from the value encoded in an empty 15305 # executable. 15306 if test set = "${lt_cv_aix_libpath+set}"; then 15307 aix_libpath=$lt_cv_aix_libpath 15308else 15309 if test ${lt_cv_aix_libpath__CXX+y} 15310then : 15311 printf %s "(cached) " >&6 15312else $as_nop 15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15314/* end confdefs.h. */ 15315 15316int 15317main (void) 15318{ 15319 15320 ; 15321 return 0; 15322} 15323_ACEOF 15324if ac_fn_cxx_try_link "$LINENO" 15325then : 15326 15327 lt_aix_libpath_sed=' 15328 /Import File Strings/,/^$/ { 15329 /^0/ { 15330 s/^0 *\([^ ]*\) *$/\1/ 15331 p 15332 } 15333 }' 15334 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15335 # Check for a 64-bit object if we didn't find anything. 15336 if test -z "$lt_cv_aix_libpath__CXX"; then 15337 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15338 fi 15339fi 15340rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15341 conftest$ac_exeext conftest.$ac_ext 15342 if test -z "$lt_cv_aix_libpath__CXX"; then 15343 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15344 fi 15345 15346fi 15347 15348 aix_libpath=$lt_cv_aix_libpath__CXX 15349fi 15350 15351 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15352 15353 archive_expsym_cmds_CXX='$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 15354 else 15355 if test ia64 = "$host_cpu"; then 15356 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 15357 allow_undefined_flag_CXX="-z nodefs" 15358 archive_expsym_cmds_CXX="\$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" 15359 else 15360 # Determine the default libpath from the value encoded in an 15361 # empty executable. 15362 if test set = "${lt_cv_aix_libpath+set}"; then 15363 aix_libpath=$lt_cv_aix_libpath 15364else 15365 if test ${lt_cv_aix_libpath__CXX+y} 15366then : 15367 printf %s "(cached) " >&6 15368else $as_nop 15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15370/* end confdefs.h. */ 15371 15372int 15373main (void) 15374{ 15375 15376 ; 15377 return 0; 15378} 15379_ACEOF 15380if ac_fn_cxx_try_link "$LINENO" 15381then : 15382 15383 lt_aix_libpath_sed=' 15384 /Import File Strings/,/^$/ { 15385 /^0/ { 15386 s/^0 *\([^ ]*\) *$/\1/ 15387 p 15388 } 15389 }' 15390 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15391 # Check for a 64-bit object if we didn't find anything. 15392 if test -z "$lt_cv_aix_libpath__CXX"; then 15393 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15394 fi 15395fi 15396rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15397 conftest$ac_exeext conftest.$ac_ext 15398 if test -z "$lt_cv_aix_libpath__CXX"; then 15399 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15400 fi 15401 15402fi 15403 15404 aix_libpath=$lt_cv_aix_libpath__CXX 15405fi 15406 15407 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15408 # Warning - without using the other run time loading flags, 15409 # -berok will link without error, but may produce a broken library. 15410 no_undefined_flag_CXX=' $wl-bernotok' 15411 allow_undefined_flag_CXX=' $wl-berok' 15412 if test yes = "$with_gnu_ld"; then 15413 # We only use this code for GNU lds that support --whole-archive. 15414 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15415 else 15416 # Exported symbols can be pulled into shared objects from archives 15417 whole_archive_flag_spec_CXX='$convenience' 15418 fi 15419 archive_cmds_need_lc_CXX=yes 15420 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15421 # -brtl affects multiple linker settings, -berok does not and is overridden later 15422 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15423 if test svr4 != "$with_aix_soname"; then 15424 # This is similar to how AIX traditionally builds its shared 15425 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15426 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 15427 fi 15428 if test aix != "$with_aix_soname"; then 15429 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 15430 else 15431 # used by -dlpreopen to get the symbols 15432 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15433 fi 15434 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15435 fi 15436 fi 15437 ;; 15438 15439 beos*) 15440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15441 allow_undefined_flag_CXX=unsupported 15442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15443 # support --undefined. This deserves some investigation. FIXME 15444 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15445 else 15446 ld_shlibs_CXX=no 15447 fi 15448 ;; 15449 15450 chorus*) 15451 case $cc_basename in 15452 *) 15453 # FIXME: insert proper C++ library support 15454 ld_shlibs_CXX=no 15455 ;; 15456 esac 15457 ;; 15458 15459 cygwin* | mingw* | pw32* | cegcc*) 15460 case $GXX,$cc_basename in 15461 ,cl* | no,cl* | ,icl* | no,icl*) 15462 # Native MSVC or ICC 15463 # hardcode_libdir_flag_spec is actually meaningless, as there is 15464 # no search path for DLLs. 15465 hardcode_libdir_flag_spec_CXX=' ' 15466 allow_undefined_flag_CXX=unsupported 15467 always_export_symbols_CXX=yes 15468 file_list_spec_CXX='@' 15469 # Tell ltmain to make .lib files, not .a files. 15470 libext=lib 15471 # Tell ltmain to make .dll files, not .so files. 15472 shrext_cmds=.dll 15473 # FIXME: Setting linknames here is a bad hack. 15474 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15475 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15476 cp "$export_symbols" "$output_objdir/$soname.def"; 15477 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15478 else 15479 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15480 fi~ 15481 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15482 linknames=' 15483 # The linker will not automatically build a static lib if we build a DLL. 15484 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15485 enable_shared_with_static_runtimes_CXX=yes 15486 # Don't use ranlib 15487 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15488 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15489 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15490 case $lt_outputfile in 15491 *.exe|*.EXE) ;; 15492 *) 15493 lt_outputfile=$lt_outputfile.exe 15494 lt_tool_outputfile=$lt_tool_outputfile.exe 15495 ;; 15496 esac~ 15497 func_to_tool_file "$lt_outputfile"~ 15498 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15499 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15500 $RM "$lt_outputfile.manifest"; 15501 fi' 15502 ;; 15503 *) 15504 # g++ 15505 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15506 # as there is no search path for DLLs. 15507 hardcode_libdir_flag_spec_CXX='-L$libdir' 15508 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15509 allow_undefined_flag_CXX=unsupported 15510 always_export_symbols_CXX=no 15511 enable_shared_with_static_runtimes_CXX=yes 15512 15513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15514 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15515 # If the export-symbols file already is a .def file, use it as 15516 # is; otherwise, prepend EXPORTS... 15517 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15518 cp $export_symbols $output_objdir/$soname.def; 15519 else 15520 echo EXPORTS > $output_objdir/$soname.def; 15521 cat $export_symbols >> $output_objdir/$soname.def; 15522 fi~ 15523 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15524 else 15525 ld_shlibs_CXX=no 15526 fi 15527 ;; 15528 esac 15529 ;; 15530 darwin* | rhapsody*) 15531 15532 15533 archive_cmds_need_lc_CXX=no 15534 hardcode_direct_CXX=no 15535 hardcode_automatic_CXX=yes 15536 hardcode_shlibpath_var_CXX=unsupported 15537 if test yes = "$lt_cv_ld_force_load"; then 15538 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15539 15540 else 15541 whole_archive_flag_spec_CXX='' 15542 fi 15543 link_all_deplibs_CXX=yes 15544 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15545 case $cc_basename in 15546 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15547 *) _lt_dar_can_shared=$GCC ;; 15548 esac 15549 if test yes = "$_lt_dar_can_shared"; then 15550 output_verbose_link_cmd=func_echo_all 15551 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 15552 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15553 archive_expsym_cmds_CXX="$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" 15554 module_expsym_cmds_CXX="$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" 15555 if test yes != "$lt_cv_apple_cc_single_mod"; then 15556 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 15557 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 15558 fi 15559 15560 else 15561 ld_shlibs_CXX=no 15562 fi 15563 15564 ;; 15565 15566 os2*) 15567 hardcode_libdir_flag_spec_CXX='-L$libdir' 15568 hardcode_minus_L_CXX=yes 15569 allow_undefined_flag_CXX=unsupported 15570 shrext_cmds=.dll 15571 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15572 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15573 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15574 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15575 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15576 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15577 emximp -o $lib $output_objdir/$libname.def' 15578 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15579 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15580 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15581 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15582 prefix_cmds="$SED"~ 15583 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15584 prefix_cmds="$prefix_cmds -e 1d"; 15585 fi~ 15586 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15587 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15588 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15589 emximp -o $lib $output_objdir/$libname.def' 15590 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15591 enable_shared_with_static_runtimes_CXX=yes 15592 file_list_spec_CXX='@' 15593 ;; 15594 15595 dgux*) 15596 case $cc_basename in 15597 ec++*) 15598 # FIXME: insert proper C++ library support 15599 ld_shlibs_CXX=no 15600 ;; 15601 ghcx*) 15602 # Green Hills C++ Compiler 15603 # FIXME: insert proper C++ library support 15604 ld_shlibs_CXX=no 15605 ;; 15606 *) 15607 # FIXME: insert proper C++ library support 15608 ld_shlibs_CXX=no 15609 ;; 15610 esac 15611 ;; 15612 15613 freebsd2.*) 15614 # C++ shared libraries reported to be fairly broken before 15615 # switch to ELF 15616 ld_shlibs_CXX=no 15617 ;; 15618 15619 freebsd-elf*) 15620 archive_cmds_need_lc_CXX=no 15621 ;; 15622 15623 freebsd* | dragonfly* | midnightbsd*) 15624 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15625 # conventions 15626 ld_shlibs_CXX=yes 15627 ;; 15628 15629 haiku*) 15630 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15631 link_all_deplibs_CXX=yes 15632 ;; 15633 15634 hpux9*) 15635 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15636 hardcode_libdir_separator_CXX=: 15637 export_dynamic_flag_spec_CXX='$wl-E' 15638 hardcode_direct_CXX=yes 15639 hardcode_minus_L_CXX=yes # Not in the search PATH, 15640 # but as the default 15641 # location of the library. 15642 15643 case $cc_basename in 15644 CC*) 15645 # FIXME: insert proper C++ library support 15646 ld_shlibs_CXX=no 15647 ;; 15648 aCC*) 15649 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15650 # Commands to make compiler produce verbose output that lists 15651 # what "hidden" libraries, object files and flags are used when 15652 # linking a shared library. 15653 # 15654 # There doesn't appear to be a way to prevent this compiler from 15655 # explicitly linking system object files so we need to strip them 15656 # from the output so that they don't get included in the library 15657 # dependencies. 15658 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15659 ;; 15660 *) 15661 if test yes = "$GXX"; then 15662 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15663 else 15664 # FIXME: insert proper C++ library support 15665 ld_shlibs_CXX=no 15666 fi 15667 ;; 15668 esac 15669 ;; 15670 15671 hpux10*|hpux11*) 15672 if test no = "$with_gnu_ld"; then 15673 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15674 hardcode_libdir_separator_CXX=: 15675 15676 case $host_cpu in 15677 hppa*64*|ia64*) 15678 ;; 15679 *) 15680 export_dynamic_flag_spec_CXX='$wl-E' 15681 ;; 15682 esac 15683 fi 15684 case $host_cpu in 15685 hppa*64*|ia64*) 15686 hardcode_direct_CXX=no 15687 hardcode_shlibpath_var_CXX=no 15688 ;; 15689 *) 15690 hardcode_direct_CXX=yes 15691 hardcode_direct_absolute_CXX=yes 15692 hardcode_minus_L_CXX=yes # Not in the search PATH, 15693 # but as the default 15694 # location of the library. 15695 ;; 15696 esac 15697 15698 case $cc_basename in 15699 CC*) 15700 # FIXME: insert proper C++ library support 15701 ld_shlibs_CXX=no 15702 ;; 15703 aCC*) 15704 case $host_cpu in 15705 hppa*64*) 15706 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15707 ;; 15708 ia64*) 15709 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15710 ;; 15711 *) 15712 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15713 ;; 15714 esac 15715 # Commands to make compiler produce verbose output that lists 15716 # what "hidden" libraries, object files and flags are used when 15717 # linking a shared library. 15718 # 15719 # There doesn't appear to be a way to prevent this compiler from 15720 # explicitly linking system object files so we need to strip them 15721 # from the output so that they don't get included in the library 15722 # dependencies. 15723 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15724 ;; 15725 *) 15726 if test yes = "$GXX"; then 15727 if test no = "$with_gnu_ld"; then 15728 case $host_cpu in 15729 hppa*64*) 15730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15731 ;; 15732 ia64*) 15733 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15734 ;; 15735 *) 15736 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15737 ;; 15738 esac 15739 fi 15740 else 15741 # FIXME: insert proper C++ library support 15742 ld_shlibs_CXX=no 15743 fi 15744 ;; 15745 esac 15746 ;; 15747 15748 interix[3-9]*) 15749 hardcode_direct_CXX=no 15750 hardcode_shlibpath_var_CXX=no 15751 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15752 export_dynamic_flag_spec_CXX='$wl-E' 15753 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15754 # Instead, shared libraries are loaded at an image base (0x10000000 by 15755 # default) and relocated if they conflict, which is a slow very memory 15756 # consuming and fragmenting process. To avoid this, we pick a random, 15757 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15758 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15759 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15760 archive_expsym_cmds_CXX='$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' 15761 ;; 15762 irix5* | irix6*) 15763 case $cc_basename in 15764 CC*) 15765 # SGI C++ 15766 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15767 15768 # Archives containing C++ object files must be created using 15769 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15770 # necessary to make sure instantiated templates are included 15771 # in the archive. 15772 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15773 ;; 15774 *) 15775 if test yes = "$GXX"; then 15776 if test no = "$with_gnu_ld"; then 15777 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 15778 else 15779 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 15780 fi 15781 fi 15782 link_all_deplibs_CXX=yes 15783 ;; 15784 esac 15785 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15786 hardcode_libdir_separator_CXX=: 15787 inherit_rpath_CXX=yes 15788 ;; 15789 15790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15791 case $cc_basename in 15792 KCC*) 15793 # Kuck and Associates, Inc. (KAI) C++ Compiler 15794 15795 # KCC will only create a shared library if the output file 15796 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15797 # to its proper name (with version) after linking. 15798 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15799 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 15800 # Commands to make compiler produce verbose output that lists 15801 # what "hidden" libraries, object files and flags are used when 15802 # linking a shared library. 15803 # 15804 # There doesn't appear to be a way to prevent this compiler from 15805 # explicitly linking system object files so we need to strip them 15806 # from the output so that they don't get included in the library 15807 # dependencies. 15808 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15809 15810 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15811 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15812 15813 # Archives containing C++ object files must be created using 15814 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15815 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15816 ;; 15817 icpc* | ecpc* ) 15818 # Intel C++ 15819 with_gnu_ld=yes 15820 # version 8.0 and above of icpc choke on multiply defined symbols 15821 # if we add $predep_objects and $postdep_objects, however 7.1 and 15822 # earlier do not add the objects themselves. 15823 case `$CC -V 2>&1` in 15824 *"Version 7."*) 15825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15826 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15827 ;; 15828 *) # Version 8.0 or newer 15829 tmp_idyn= 15830 case $host_cpu in 15831 ia64*) tmp_idyn=' -i_dynamic';; 15832 esac 15833 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15834 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15835 ;; 15836 esac 15837 archive_cmds_need_lc_CXX=no 15838 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15839 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15840 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15841 ;; 15842 pgCC* | pgcpp*) 15843 # Portland Group C++ compiler 15844 case `$CC -V` in 15845 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15846 prelink_cmds_CXX='tpldir=Template.dir~ 15847 rm -rf $tpldir~ 15848 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15849 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15850 old_archive_cmds_CXX='tpldir=Template.dir~ 15851 rm -rf $tpldir~ 15852 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15853 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15854 $RANLIB $oldlib' 15855 archive_cmds_CXX='tpldir=Template.dir~ 15856 rm -rf $tpldir~ 15857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15858 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15859 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15860 rm -rf $tpldir~ 15861 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15862 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15863 ;; 15864 *) # Version 6 and above use weak symbols 15865 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15867 ;; 15868 esac 15869 15870 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15871 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15872 whole_archive_flag_spec_CXX='$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' 15873 ;; 15874 cxx*) 15875 # Compaq C++ 15876 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15877 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 15878 15879 runpath_var=LD_RUN_PATH 15880 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15881 hardcode_libdir_separator_CXX=: 15882 15883 # Commands to make compiler produce verbose output that lists 15884 # what "hidden" libraries, object files and flags are used when 15885 # linking a shared library. 15886 # 15887 # There doesn't appear to be a way to prevent this compiler from 15888 # explicitly linking system object files so we need to strip them 15889 # from the output so that they don't get included in the library 15890 # dependencies. 15891 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 15892 ;; 15893 xl* | mpixl* | bgxl*) 15894 # IBM XL 8.0 on PPC, with GNU ld 15895 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15896 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15897 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15898 if test yes = "$supports_anon_versioning"; then 15899 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15900 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15901 echo "local: *; };" >> $output_objdir/$libname.ver~ 15902 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15903 fi 15904 ;; 15905 *) 15906 case `$CC -V 2>&1 | $SED 5q` in 15907 *Sun\ C*) 15908 # Sun C++ 5.9 15909 no_undefined_flag_CXX=' -zdefs' 15910 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15911 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 15912 hardcode_libdir_flag_spec_CXX='-R$libdir' 15913 whole_archive_flag_spec_CXX='$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' 15914 compiler_needs_object_CXX=yes 15915 15916 # Not sure whether something based on 15917 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15918 # would be better. 15919 output_verbose_link_cmd='func_echo_all' 15920 15921 # Archives containing C++ object files must be created using 15922 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15923 # necessary to make sure instantiated templates are included 15924 # in the archive. 15925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15926 ;; 15927 esac 15928 ;; 15929 esac 15930 ;; 15931 15932 lynxos*) 15933 # FIXME: insert proper C++ library support 15934 ld_shlibs_CXX=no 15935 ;; 15936 15937 m88k*) 15938 # FIXME: insert proper C++ library support 15939 ld_shlibs_CXX=no 15940 ;; 15941 15942 mvs*) 15943 case $cc_basename in 15944 cxx*) 15945 # FIXME: insert proper C++ library support 15946 ld_shlibs_CXX=no 15947 ;; 15948 *) 15949 # FIXME: insert proper C++ library support 15950 ld_shlibs_CXX=no 15951 ;; 15952 esac 15953 ;; 15954 15955 netbsd*) 15956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15957 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15958 wlarc= 15959 hardcode_libdir_flag_spec_CXX='-R$libdir' 15960 hardcode_direct_CXX=yes 15961 hardcode_shlibpath_var_CXX=no 15962 fi 15963 # Workaround some broken pre-1.5 toolchains 15964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15965 ;; 15966 15967 *nto* | *qnx*) 15968 ld_shlibs_CXX=yes 15969 ;; 15970 15971 openbsd* | bitrig*) 15972 if test -f /usr/libexec/ld.so; then 15973 hardcode_direct_CXX=yes 15974 hardcode_shlibpath_var_CXX=no 15975 hardcode_direct_absolute_CXX=yes 15976 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15977 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15979 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15980 export_dynamic_flag_spec_CXX='$wl-E' 15981 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15982 fi 15983 output_verbose_link_cmd=func_echo_all 15984 else 15985 ld_shlibs_CXX=no 15986 fi 15987 ;; 15988 15989 osf3* | osf4* | osf5*) 15990 case $cc_basename in 15991 KCC*) 15992 # Kuck and Associates, Inc. (KAI) C++ Compiler 15993 15994 # KCC will only create a shared library if the output file 15995 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15996 # to its proper name (with version) after linking. 15997 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15998 15999 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16000 hardcode_libdir_separator_CXX=: 16001 16002 # Archives containing C++ object files must be created using 16003 # the KAI C++ compiler. 16004 case $host in 16005 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16006 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16007 esac 16008 ;; 16009 RCC*) 16010 # Rational C++ 2.4.1 16011 # FIXME: insert proper C++ library support 16012 ld_shlibs_CXX=no 16013 ;; 16014 cxx*) 16015 case $host in 16016 osf3*) 16017 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16018 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16019 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16020 ;; 16021 *) 16022 allow_undefined_flag_CXX=' -expect_unresolved \*' 16023 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16024 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16025 echo "-hidden">> $lib.exp~ 16026 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 16027 $RM $lib.exp' 16028 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16029 ;; 16030 esac 16031 16032 hardcode_libdir_separator_CXX=: 16033 16034 # Commands to make compiler produce verbose output that lists 16035 # what "hidden" libraries, object files and flags are used when 16036 # linking a shared library. 16037 # 16038 # There doesn't appear to be a way to prevent this compiler from 16039 # explicitly linking system object files so we need to strip them 16040 # from the output so that they don't get included in the library 16041 # dependencies. 16042 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16043 ;; 16044 *) 16045 if test yes,no = "$GXX,$with_gnu_ld"; then 16046 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16047 case $host in 16048 osf3*) 16049 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 16050 ;; 16051 *) 16052 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 16053 ;; 16054 esac 16055 16056 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16057 hardcode_libdir_separator_CXX=: 16058 16059 # Commands to make compiler produce verbose output that lists 16060 # what "hidden" libraries, object files and flags are used when 16061 # linking a shared library. 16062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 16063 16064 else 16065 # FIXME: insert proper C++ library support 16066 ld_shlibs_CXX=no 16067 fi 16068 ;; 16069 esac 16070 ;; 16071 16072 psos*) 16073 # FIXME: insert proper C++ library support 16074 ld_shlibs_CXX=no 16075 ;; 16076 16077 sunos4*) 16078 case $cc_basename in 16079 CC*) 16080 # Sun C++ 4.x 16081 # FIXME: insert proper C++ library support 16082 ld_shlibs_CXX=no 16083 ;; 16084 lcc*) 16085 # Lucid 16086 # FIXME: insert proper C++ library support 16087 ld_shlibs_CXX=no 16088 ;; 16089 *) 16090 # FIXME: insert proper C++ library support 16091 ld_shlibs_CXX=no 16092 ;; 16093 esac 16094 ;; 16095 16096 solaris*) 16097 case $cc_basename in 16098 CC* | sunCC*) 16099 # Sun C++ 4.2, 5.x and Centerline C++ 16100 archive_cmds_need_lc_CXX=yes 16101 no_undefined_flag_CXX=' -zdefs' 16102 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16103 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16104 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16105 16106 hardcode_libdir_flag_spec_CXX='-R$libdir' 16107 hardcode_shlibpath_var_CXX=no 16108 case $host_os in 16109 solaris2.[0-5] | solaris2.[0-5].*) ;; 16110 *) 16111 # The compiler driver will combine and reorder linker options, 16112 # but understands '-z linker_flag'. 16113 # Supported since Solaris 2.6 (maybe 2.5.1?) 16114 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16115 ;; 16116 esac 16117 link_all_deplibs_CXX=yes 16118 16119 output_verbose_link_cmd='func_echo_all' 16120 16121 # Archives containing C++ object files must be created using 16122 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16123 # necessary to make sure instantiated templates are included 16124 # in the archive. 16125 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16126 ;; 16127 gcx*) 16128 # Green Hills C++ Compiler 16129 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16130 16131 # The C++ compiler must be used to create the archive. 16132 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16133 ;; 16134 *) 16135 # GNU C++ compiler with Solaris linker 16136 if test yes,no = "$GXX,$with_gnu_ld"; then 16137 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16138 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16139 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16140 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16141 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16142 16143 # Commands to make compiler produce verbose output that lists 16144 # what "hidden" libraries, object files and flags are used when 16145 # linking a shared library. 16146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 16147 else 16148 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16149 # platform. 16150 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16151 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16152 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16153 16154 # Commands to make compiler produce verbose output that lists 16155 # what "hidden" libraries, object files and flags are used when 16156 # linking a shared library. 16157 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 16158 fi 16159 16160 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 16161 case $host_os in 16162 solaris2.[0-5] | solaris2.[0-5].*) ;; 16163 *) 16164 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16165 ;; 16166 esac 16167 fi 16168 ;; 16169 esac 16170 ;; 16171 16172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16173 no_undefined_flag_CXX='$wl-z,text' 16174 archive_cmds_need_lc_CXX=no 16175 hardcode_shlibpath_var_CXX=no 16176 runpath_var='LD_RUN_PATH' 16177 16178 case $cc_basename in 16179 CC*) 16180 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16181 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16182 ;; 16183 *) 16184 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16185 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16186 ;; 16187 esac 16188 ;; 16189 16190 sysv5* | sco3.2v5* | sco5v6*) 16191 # Note: We CANNOT use -z defs as we might desire, because we do not 16192 # link with -lc, and that would cause any symbols used from libc to 16193 # always be unresolved, which means just about no library would 16194 # ever link correctly. If we're not using GNU ld we use -z text 16195 # though, which does catch some bad symbols but isn't as heavy-handed 16196 # as -z defs. 16197 no_undefined_flag_CXX='$wl-z,text' 16198 allow_undefined_flag_CXX='$wl-z,nodefs' 16199 archive_cmds_need_lc_CXX=no 16200 hardcode_shlibpath_var_CXX=no 16201 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 16202 hardcode_libdir_separator_CXX=':' 16203 link_all_deplibs_CXX=yes 16204 export_dynamic_flag_spec_CXX='$wl-Bexport' 16205 runpath_var='LD_RUN_PATH' 16206 16207 case $cc_basename in 16208 CC*) 16209 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16210 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16211 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16212 '"$old_archive_cmds_CXX" 16213 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16214 '"$reload_cmds_CXX" 16215 ;; 16216 *) 16217 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16218 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16219 ;; 16220 esac 16221 ;; 16222 16223 tandem*) 16224 case $cc_basename in 16225 NCC*) 16226 # NonStop-UX NCC 3.20 16227 # FIXME: insert proper C++ library support 16228 ld_shlibs_CXX=no 16229 ;; 16230 *) 16231 # FIXME: insert proper C++ library support 16232 ld_shlibs_CXX=no 16233 ;; 16234 esac 16235 ;; 16236 16237 vxworks*) 16238 # FIXME: insert proper C++ library support 16239 ld_shlibs_CXX=no 16240 ;; 16241 16242 *) 16243 # FIXME: insert proper C++ library support 16244 ld_shlibs_CXX=no 16245 ;; 16246 esac 16247 16248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16249printf "%s\n" "$ld_shlibs_CXX" >&6; } 16250 test no = "$ld_shlibs_CXX" && can_build_shared=no 16251 16252 GCC_CXX=$GXX 16253 LD_CXX=$LD 16254 16255 ## CAVEAT EMPTOR: 16256 ## There is no encapsulation within the following macros, do not change 16257 ## the running order or otherwise move them around unless you know exactly 16258 ## what you are doing... 16259 # Dependencies to place before and after the object being linked: 16260predep_objects_CXX= 16261postdep_objects_CXX= 16262predeps_CXX= 16263postdeps_CXX= 16264compiler_lib_search_path_CXX= 16265 16266cat > conftest.$ac_ext <<_LT_EOF 16267class Foo 16268{ 16269public: 16270 Foo (void) { a = 0; } 16271private: 16272 int a; 16273}; 16274_LT_EOF 16275 16276 16277_lt_libdeps_save_CFLAGS=$CFLAGS 16278case "$CC $CFLAGS " in #( 16279*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16280*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16281*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 16282esac 16283 16284if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16285 (eval $ac_compile) 2>&5 16286 ac_status=$? 16287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16288 test $ac_status = 0; }; then 16289 # Parse the compiler output and extract the necessary 16290 # objects, libraries and library flags. 16291 16292 # Sentinel used to keep track of whether or not we are before 16293 # the conftest object file. 16294 pre_test_object_deps_done=no 16295 16296 for p in `eval "$output_verbose_link_cmd"`; do 16297 case $prev$p in 16298 16299 -L* | -R* | -l*) 16300 # Some compilers place space between "-{L,R}" and the path. 16301 # Remove the space. 16302 if test x-L = "$p" || 16303 test x-R = "$p"; then 16304 prev=$p 16305 continue 16306 fi 16307 16308 # Expand the sysroot to ease extracting the directories later. 16309 if test -z "$prev"; then 16310 case $p in 16311 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16312 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16313 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16314 esac 16315 fi 16316 case $p in 16317 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16318 esac 16319 if test no = "$pre_test_object_deps_done"; then 16320 case $prev in 16321 -L | -R) 16322 # Internal compiler library paths should come after those 16323 # provided the user. The postdeps already come after the 16324 # user supplied libs so there is no need to process them. 16325 if test -z "$compiler_lib_search_path_CXX"; then 16326 compiler_lib_search_path_CXX=$prev$p 16327 else 16328 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 16329 fi 16330 ;; 16331 # The "-l" case would never come before the object being 16332 # linked, so don't bother handling this case. 16333 esac 16334 else 16335 if test -z "$postdeps_CXX"; then 16336 postdeps_CXX=$prev$p 16337 else 16338 postdeps_CXX="${postdeps_CXX} $prev$p" 16339 fi 16340 fi 16341 prev= 16342 ;; 16343 16344 *.lto.$objext) ;; # Ignore GCC LTO objects 16345 *.$objext) 16346 # This assumes that the test object file only shows up 16347 # once in the compiler output. 16348 if test "$p" = "conftest.$objext"; then 16349 pre_test_object_deps_done=yes 16350 continue 16351 fi 16352 16353 if test no = "$pre_test_object_deps_done"; then 16354 if test -z "$predep_objects_CXX"; then 16355 predep_objects_CXX=$p 16356 else 16357 predep_objects_CXX="$predep_objects_CXX $p" 16358 fi 16359 else 16360 if test -z "$postdep_objects_CXX"; then 16361 postdep_objects_CXX=$p 16362 else 16363 postdep_objects_CXX="$postdep_objects_CXX $p" 16364 fi 16365 fi 16366 ;; 16367 16368 *) ;; # Ignore the rest. 16369 16370 esac 16371 done 16372 16373 # Clean up. 16374 rm -f a.out a.exe 16375else 16376 echo "libtool.m4: error: problem compiling CXX test program" 16377fi 16378 16379$RM -f confest.$objext 16380CFLAGS=$_lt_libdeps_save_CFLAGS 16381 16382# PORTME: override above test on systems where it is broken 16383case $host_os in 16384interix[3-9]*) 16385 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16386 # hack all around it, let's just trust "g++" to DTRT. 16387 predep_objects_CXX= 16388 postdep_objects_CXX= 16389 postdeps_CXX= 16390 ;; 16391esac 16392 16393 16394case " $postdeps_CXX " in 16395*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16396esac 16397 compiler_lib_search_dirs_CXX= 16398if test -n "${compiler_lib_search_path_CXX}"; then 16399 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 16400fi 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 lt_prog_compiler_wl_CXX= 16433lt_prog_compiler_pic_CXX= 16434lt_prog_compiler_static_CXX= 16435 16436 16437 # C++ specific cases for pic, static, wl, etc. 16438 if test yes = "$GXX"; then 16439 lt_prog_compiler_wl_CXX='-Wl,' 16440 lt_prog_compiler_static_CXX='-static' 16441 16442 case $host_os in 16443 aix*) 16444 # All AIX code is PIC. 16445 if test ia64 = "$host_cpu"; then 16446 # AIX 5 now supports IA64 processor 16447 lt_prog_compiler_static_CXX='-Bstatic' 16448 fi 16449 lt_prog_compiler_pic_CXX='-fPIC' 16450 ;; 16451 16452 amigaos*) 16453 case $host_cpu in 16454 powerpc) 16455 # see comment about AmigaOS4 .so support 16456 lt_prog_compiler_pic_CXX='-fPIC' 16457 ;; 16458 m68k) 16459 # FIXME: we need at least 68020 code to build shared libraries, but 16460 # adding the '-m68020' flag to GCC prevents building anything better, 16461 # like '-m68040'. 16462 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16463 ;; 16464 esac 16465 ;; 16466 16467 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16468 # PIC is the default for these OSes. 16469 ;; 16470 mingw* | cygwin* | os2* | pw32* | cegcc*) 16471 # This hack is so that the source file can tell whether it is being 16472 # built for inclusion in a dll (and should export symbols for example). 16473 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16474 # (--disable-auto-import) libraries 16475 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16476 case $host_os in 16477 os2*) 16478 lt_prog_compiler_static_CXX='$wl-static' 16479 ;; 16480 esac 16481 ;; 16482 darwin* | rhapsody*) 16483 # PIC is the default on this platform 16484 # Common symbols not allowed in MH_DYLIB files 16485 lt_prog_compiler_pic_CXX='-fno-common' 16486 ;; 16487 *djgpp*) 16488 # DJGPP does not support shared libraries at all 16489 lt_prog_compiler_pic_CXX= 16490 ;; 16491 haiku*) 16492 # PIC is the default for Haiku. 16493 # The "-static" flag exists, but is broken. 16494 lt_prog_compiler_static_CXX= 16495 ;; 16496 interix[3-9]*) 16497 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16498 # Instead, we relocate shared libraries at runtime. 16499 ;; 16500 sysv4*MP*) 16501 if test -d /usr/nec; then 16502 lt_prog_compiler_pic_CXX=-Kconform_pic 16503 fi 16504 ;; 16505 hpux*) 16506 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16507 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16508 # sets the default TLS model and affects inlining. 16509 case $host_cpu in 16510 hppa*64*) 16511 ;; 16512 *) 16513 lt_prog_compiler_pic_CXX='-fPIC' 16514 ;; 16515 esac 16516 ;; 16517 *qnx* | *nto*) 16518 # QNX uses GNU C++, but need to define -shared option too, otherwise 16519 # it will coredump. 16520 lt_prog_compiler_pic_CXX='-fPIC -shared' 16521 ;; 16522 *) 16523 lt_prog_compiler_pic_CXX='-fPIC' 16524 ;; 16525 esac 16526 else 16527 case $host_os in 16528 aix[4-9]*) 16529 # All AIX code is PIC. 16530 if test ia64 = "$host_cpu"; then 16531 # AIX 5 now supports IA64 processor 16532 lt_prog_compiler_static_CXX='-Bstatic' 16533 else 16534 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16535 fi 16536 ;; 16537 chorus*) 16538 case $cc_basename in 16539 cxch68*) 16540 # Green Hills C++ Compiler 16541 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 16542 ;; 16543 esac 16544 ;; 16545 mingw* | cygwin* | os2* | pw32* | cegcc*) 16546 # This hack is so that the source file can tell whether it is being 16547 # built for inclusion in a dll (and should export symbols for example). 16548 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16549 ;; 16550 dgux*) 16551 case $cc_basename in 16552 ec++*) 16553 lt_prog_compiler_pic_CXX='-KPIC' 16554 ;; 16555 ghcx*) 16556 # Green Hills C++ Compiler 16557 lt_prog_compiler_pic_CXX='-pic' 16558 ;; 16559 *) 16560 ;; 16561 esac 16562 ;; 16563 freebsd* | dragonfly* | midnightbsd*) 16564 # FreeBSD uses GNU C++ 16565 ;; 16566 hpux9* | hpux10* | hpux11*) 16567 case $cc_basename in 16568 CC*) 16569 lt_prog_compiler_wl_CXX='-Wl,' 16570 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16571 if test ia64 != "$host_cpu"; then 16572 lt_prog_compiler_pic_CXX='+Z' 16573 fi 16574 ;; 16575 aCC*) 16576 lt_prog_compiler_wl_CXX='-Wl,' 16577 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16578 case $host_cpu in 16579 hppa*64*|ia64*) 16580 # +Z the default 16581 ;; 16582 *) 16583 lt_prog_compiler_pic_CXX='+Z' 16584 ;; 16585 esac 16586 ;; 16587 *) 16588 ;; 16589 esac 16590 ;; 16591 interix*) 16592 # This is c89, which is MS Visual C++ (no shared libs) 16593 # Anyone wants to do a port? 16594 ;; 16595 irix5* | irix6* | nonstopux*) 16596 case $cc_basename in 16597 CC*) 16598 lt_prog_compiler_wl_CXX='-Wl,' 16599 lt_prog_compiler_static_CXX='-non_shared' 16600 # CC pic flag -KPIC is the default. 16601 ;; 16602 *) 16603 ;; 16604 esac 16605 ;; 16606 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16607 case $cc_basename in 16608 KCC*) 16609 # KAI C++ Compiler 16610 lt_prog_compiler_wl_CXX='--backend -Wl,' 16611 lt_prog_compiler_pic_CXX='-fPIC' 16612 ;; 16613 ecpc* ) 16614 # old Intel C++ for x86_64, which still supported -KPIC. 16615 lt_prog_compiler_wl_CXX='-Wl,' 16616 lt_prog_compiler_pic_CXX='-KPIC' 16617 lt_prog_compiler_static_CXX='-static' 16618 ;; 16619 icpc* ) 16620 # Intel C++, used to be incompatible with GCC. 16621 # ICC 10 doesn't accept -KPIC any more. 16622 lt_prog_compiler_wl_CXX='-Wl,' 16623 lt_prog_compiler_pic_CXX='-fPIC' 16624 lt_prog_compiler_static_CXX='-static' 16625 ;; 16626 pgCC* | pgcpp*) 16627 # Portland Group C++ compiler 16628 lt_prog_compiler_wl_CXX='-Wl,' 16629 lt_prog_compiler_pic_CXX='-fpic' 16630 lt_prog_compiler_static_CXX='-Bstatic' 16631 ;; 16632 cxx*) 16633 # Compaq C++ 16634 # Make sure the PIC flag is empty. It appears that all Alpha 16635 # Linux and Compaq Tru64 Unix objects are PIC. 16636 lt_prog_compiler_pic_CXX= 16637 lt_prog_compiler_static_CXX='-non_shared' 16638 ;; 16639 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16640 # IBM XL 8.0, 9.0 on PPC and BlueGene 16641 lt_prog_compiler_wl_CXX='-Wl,' 16642 lt_prog_compiler_pic_CXX='-qpic' 16643 lt_prog_compiler_static_CXX='-qstaticlink' 16644 ;; 16645 *) 16646 case `$CC -V 2>&1 | $SED 5q` in 16647 *Sun\ C*) 16648 # Sun C++ 5.9 16649 lt_prog_compiler_pic_CXX='-KPIC' 16650 lt_prog_compiler_static_CXX='-Bstatic' 16651 lt_prog_compiler_wl_CXX='-Qoption ld ' 16652 ;; 16653 esac 16654 ;; 16655 esac 16656 ;; 16657 lynxos*) 16658 ;; 16659 m88k*) 16660 ;; 16661 mvs*) 16662 case $cc_basename in 16663 cxx*) 16664 lt_prog_compiler_pic_CXX='-W c,exportall' 16665 ;; 16666 *) 16667 ;; 16668 esac 16669 ;; 16670 netbsd* | netbsdelf*-gnu) 16671 ;; 16672 *qnx* | *nto*) 16673 # QNX uses GNU C++, but need to define -shared option too, otherwise 16674 # it will coredump. 16675 lt_prog_compiler_pic_CXX='-fPIC -shared' 16676 ;; 16677 osf3* | osf4* | osf5*) 16678 case $cc_basename in 16679 KCC*) 16680 lt_prog_compiler_wl_CXX='--backend -Wl,' 16681 ;; 16682 RCC*) 16683 # Rational C++ 2.4.1 16684 lt_prog_compiler_pic_CXX='-pic' 16685 ;; 16686 cxx*) 16687 # Digital/Compaq C++ 16688 lt_prog_compiler_wl_CXX='-Wl,' 16689 # Make sure the PIC flag is empty. It appears that all Alpha 16690 # Linux and Compaq Tru64 Unix objects are PIC. 16691 lt_prog_compiler_pic_CXX= 16692 lt_prog_compiler_static_CXX='-non_shared' 16693 ;; 16694 *) 16695 ;; 16696 esac 16697 ;; 16698 psos*) 16699 ;; 16700 solaris*) 16701 case $cc_basename in 16702 CC* | sunCC*) 16703 # Sun C++ 4.2, 5.x and Centerline C++ 16704 lt_prog_compiler_pic_CXX='-KPIC' 16705 lt_prog_compiler_static_CXX='-Bstatic' 16706 lt_prog_compiler_wl_CXX='-Qoption ld ' 16707 ;; 16708 gcx*) 16709 # Green Hills C++ Compiler 16710 lt_prog_compiler_pic_CXX='-PIC' 16711 ;; 16712 *) 16713 ;; 16714 esac 16715 ;; 16716 sunos4*) 16717 case $cc_basename in 16718 CC*) 16719 # Sun C++ 4.x 16720 lt_prog_compiler_pic_CXX='-pic' 16721 lt_prog_compiler_static_CXX='-Bstatic' 16722 ;; 16723 lcc*) 16724 # Lucid 16725 lt_prog_compiler_pic_CXX='-pic' 16726 ;; 16727 *) 16728 ;; 16729 esac 16730 ;; 16731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16732 case $cc_basename in 16733 CC*) 16734 lt_prog_compiler_wl_CXX='-Wl,' 16735 lt_prog_compiler_pic_CXX='-KPIC' 16736 lt_prog_compiler_static_CXX='-Bstatic' 16737 ;; 16738 esac 16739 ;; 16740 tandem*) 16741 case $cc_basename in 16742 NCC*) 16743 # NonStop-UX NCC 3.20 16744 lt_prog_compiler_pic_CXX='-KPIC' 16745 ;; 16746 *) 16747 ;; 16748 esac 16749 ;; 16750 vxworks*) 16751 ;; 16752 *) 16753 lt_prog_compiler_can_build_shared_CXX=no 16754 ;; 16755 esac 16756 fi 16757 16758case $host_os in 16759 # For platforms that do not support PIC, -DPIC is meaningless: 16760 *djgpp*) 16761 lt_prog_compiler_pic_CXX= 16762 ;; 16763 *) 16764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16765 ;; 16766esac 16767 16768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16769printf %s "checking for $compiler option to produce PIC... " >&6; } 16770if test ${lt_cv_prog_compiler_pic_CXX+y} 16771then : 16772 printf %s "(cached) " >&6 16773else $as_nop 16774 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16775fi 16776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16777printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 16778lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16779 16780# 16781# Check to make sure the PIC flag actually works. 16782# 16783if test -n "$lt_prog_compiler_pic_CXX"; then 16784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16785printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16786if test ${lt_cv_prog_compiler_pic_works_CXX+y} 16787then : 16788 printf %s "(cached) " >&6 16789else $as_nop 16790 lt_cv_prog_compiler_pic_works_CXX=no 16791 ac_outfile=conftest.$ac_objext 16792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16793 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 16794 # Insert the option either (1) after the last *FLAGS variable, or 16795 # (2) before a word containing "conftest.", or (3) at the end. 16796 # Note that $ac_compile itself does not contain backslashes and begins 16797 # with a dollar sign (not a hyphen), so the echo should work correctly. 16798 # The option is referenced via a variable to avoid confusing sed. 16799 lt_compile=`echo "$ac_compile" | $SED \ 16800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16802 -e 's:$: $lt_compiler_flag:'` 16803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16804 (eval "$lt_compile" 2>conftest.err) 16805 ac_status=$? 16806 cat conftest.err >&5 16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16808 if (exit $ac_status) && test -s "$ac_outfile"; then 16809 # The compiler can only warn and ignore the option if not recognized 16810 # So say no if there are warnings other than the usual output. 16811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16814 lt_cv_prog_compiler_pic_works_CXX=yes 16815 fi 16816 fi 16817 $RM conftest* 16818 16819fi 16820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16821printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16822 16823if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16824 case $lt_prog_compiler_pic_CXX in 16825 "" | " "*) ;; 16826 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16827 esac 16828else 16829 lt_prog_compiler_pic_CXX= 16830 lt_prog_compiler_can_build_shared_CXX=no 16831fi 16832 16833fi 16834 16835 16836 16837 16838 16839# 16840# Check to make sure the static flag actually works. 16841# 16842wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16844printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16845if test ${lt_cv_prog_compiler_static_works_CXX+y} 16846then : 16847 printf %s "(cached) " >&6 16848else $as_nop 16849 lt_cv_prog_compiler_static_works_CXX=no 16850 save_LDFLAGS=$LDFLAGS 16851 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16852 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16854 # The linker can only warn and ignore the option if not recognized 16855 # So say no if there are warnings 16856 if test -s conftest.err; then 16857 # Append any errors to the config.log. 16858 cat conftest.err 1>&5 16859 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16861 if diff conftest.exp conftest.er2 >/dev/null; then 16862 lt_cv_prog_compiler_static_works_CXX=yes 16863 fi 16864 else 16865 lt_cv_prog_compiler_static_works_CXX=yes 16866 fi 16867 fi 16868 $RM -r conftest* 16869 LDFLAGS=$save_LDFLAGS 16870 16871fi 16872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16873printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16874 16875if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16876 : 16877else 16878 lt_prog_compiler_static_CXX= 16879fi 16880 16881 16882 16883 16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16885printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16886if test ${lt_cv_prog_compiler_c_o_CXX+y} 16887then : 16888 printf %s "(cached) " >&6 16889else $as_nop 16890 lt_cv_prog_compiler_c_o_CXX=no 16891 $RM -r conftest 2>/dev/null 16892 mkdir conftest 16893 cd conftest 16894 mkdir out 16895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16896 16897 lt_compiler_flag="-o out/conftest2.$ac_objext" 16898 # Insert the option either (1) after the last *FLAGS variable, or 16899 # (2) before a word containing "conftest.", or (3) at the end. 16900 # Note that $ac_compile itself does not contain backslashes and begins 16901 # with a dollar sign (not a hyphen), so the echo should work correctly. 16902 lt_compile=`echo "$ac_compile" | $SED \ 16903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16905 -e 's:$: $lt_compiler_flag:'` 16906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16907 (eval "$lt_compile" 2>out/conftest.err) 16908 ac_status=$? 16909 cat out/conftest.err >&5 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16912 then 16913 # The compiler can only warn and ignore the option if not recognized 16914 # So say no if there are warnings 16915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16918 lt_cv_prog_compiler_c_o_CXX=yes 16919 fi 16920 fi 16921 chmod u+w . 2>&5 16922 $RM conftest* 16923 # SGI C++ compiler will create directory out/ii_files/ for 16924 # template instantiation 16925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16926 $RM out/* && rmdir out 16927 cd .. 16928 $RM -r conftest 16929 $RM conftest* 16930 16931fi 16932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16933printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16934 16935 16936 16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16938printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16939if test ${lt_cv_prog_compiler_c_o_CXX+y} 16940then : 16941 printf %s "(cached) " >&6 16942else $as_nop 16943 lt_cv_prog_compiler_c_o_CXX=no 16944 $RM -r conftest 2>/dev/null 16945 mkdir conftest 16946 cd conftest 16947 mkdir out 16948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16949 16950 lt_compiler_flag="-o out/conftest2.$ac_objext" 16951 # Insert the option either (1) after the last *FLAGS variable, or 16952 # (2) before a word containing "conftest.", or (3) at the end. 16953 # Note that $ac_compile itself does not contain backslashes and begins 16954 # with a dollar sign (not a hyphen), so the echo should work correctly. 16955 lt_compile=`echo "$ac_compile" | $SED \ 16956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16958 -e 's:$: $lt_compiler_flag:'` 16959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16960 (eval "$lt_compile" 2>out/conftest.err) 16961 ac_status=$? 16962 cat out/conftest.err >&5 16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16964 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16965 then 16966 # The compiler can only warn and ignore the option if not recognized 16967 # So say no if there are warnings 16968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16969 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16970 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16971 lt_cv_prog_compiler_c_o_CXX=yes 16972 fi 16973 fi 16974 chmod u+w . 2>&5 16975 $RM conftest* 16976 # SGI C++ compiler will create directory out/ii_files/ for 16977 # template instantiation 16978 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16979 $RM out/* && rmdir out 16980 cd .. 16981 $RM -r conftest 16982 $RM conftest* 16983 16984fi 16985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16986printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16987 16988 16989 16990 16991hard_links=nottested 16992if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16993 # do not overwrite the value of need_locks provided by the user 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16995printf %s "checking if we can lock with hard links... " >&6; } 16996 hard_links=yes 16997 $RM conftest* 16998 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16999 touch conftest.a 17000 ln conftest.a conftest.b 2>&5 || hard_links=no 17001 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17003printf "%s\n" "$hard_links" >&6; } 17004 if test no = "$hard_links"; then 17005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17006printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17007 need_locks=warn 17008 fi 17009else 17010 need_locks=no 17011fi 17012 17013 17014 17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17016printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17017 17018 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17019 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17020 case $host_os in 17021 aix[4-9]*) 17022 # If we're using GNU nm, then we don't want the "-C" option. 17023 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17024 # Without the "-l" option, or with the "-B" option, AIX nm treats 17025 # weak defined symbols like other global defined symbols, whereas 17026 # GNU nm marks them as "W". 17027 # While the 'weak' keyword is ignored in the Export File, we need 17028 # it in the Import File for the 'aix-soname' feature, so we have 17029 # to replace the "-B" option with "-P" for AIX nm. 17030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17031 export_symbols_cmds_CXX='$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' 17032 else 17033 export_symbols_cmds_CXX='`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' 17034 fi 17035 ;; 17036 pw32*) 17037 export_symbols_cmds_CXX=$ltdll_cmds 17038 ;; 17039 cygwin* | mingw* | cegcc*) 17040 case $cc_basename in 17041 cl* | icl*) 17042 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17043 ;; 17044 *) 17045 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 17046 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17047 ;; 17048 esac 17049 ;; 17050 linux* | k*bsd*-gnu | gnu*) 17051 link_all_deplibs_CXX=no 17052 ;; 17053 *) 17054 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17055 ;; 17056 esac 17057 17058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17059printf "%s\n" "$ld_shlibs_CXX" >&6; } 17060test no = "$ld_shlibs_CXX" && can_build_shared=no 17061 17062with_gnu_ld_CXX=$with_gnu_ld 17063 17064 17065 17066 17067 17068 17069# 17070# Do we need to explicitly link libc? 17071# 17072case "x$archive_cmds_need_lc_CXX" in 17073x|xyes) 17074 # Assume -lc should be added 17075 archive_cmds_need_lc_CXX=yes 17076 17077 if test yes,yes = "$GCC,$enable_shared"; then 17078 case $archive_cmds_CXX in 17079 *'~'*) 17080 # FIXME: we may have to deal with multi-command sequences. 17081 ;; 17082 '$CC '*) 17083 # Test whether the compiler implicitly links with -lc since on some 17084 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17085 # to ld, don't add -lc before -lgcc. 17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17087printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17088if test ${lt_cv_archive_cmds_need_lc_CXX+y} 17089then : 17090 printf %s "(cached) " >&6 17091else $as_nop 17092 $RM conftest* 17093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17094 17095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17096 (eval $ac_compile) 2>&5 17097 ac_status=$? 17098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17099 test $ac_status = 0; } 2>conftest.err; then 17100 soname=conftest 17101 lib=conftest 17102 libobjs=conftest.$ac_objext 17103 deplibs= 17104 wl=$lt_prog_compiler_wl_CXX 17105 pic_flag=$lt_prog_compiler_pic_CXX 17106 compiler_flags=-v 17107 linker_flags=-v 17108 verstring= 17109 output_objdir=. 17110 libname=conftest 17111 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17112 allow_undefined_flag_CXX= 17113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17114 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17115 ac_status=$? 17116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17117 test $ac_status = 0; } 17118 then 17119 lt_cv_archive_cmds_need_lc_CXX=no 17120 else 17121 lt_cv_archive_cmds_need_lc_CXX=yes 17122 fi 17123 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17124 else 17125 cat conftest.err 1>&5 17126 fi 17127 $RM conftest* 17128 17129fi 17130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17131printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17132 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17133 ;; 17134 esac 17135 fi 17136 ;; 17137esac 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17201printf %s "checking dynamic linker characteristics... " >&6; } 17202 17203library_names_spec= 17204libname_spec='lib$name' 17205soname_spec= 17206shrext_cmds=.so 17207postinstall_cmds= 17208postuninstall_cmds= 17209finish_cmds= 17210finish_eval= 17211shlibpath_var= 17212shlibpath_overrides_runpath=unknown 17213version_type=none 17214dynamic_linker="$host_os ld.so" 17215sys_lib_dlsearch_path_spec="/lib /usr/lib" 17216need_lib_prefix=unknown 17217hardcode_into_libs=no 17218 17219# when you set need_version to no, make sure it does not cause -set_version 17220# flags to be left without arguments 17221need_version=unknown 17222 17223 17224 17225case $host_os in 17226aix3*) 17227 version_type=linux # correct to gnu/linux during the next big refactor 17228 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17229 shlibpath_var=LIBPATH 17230 17231 # AIX 3 has no versioning support, so we append a major version to the name. 17232 soname_spec='$libname$release$shared_ext$major' 17233 ;; 17234 17235aix[4-9]*) 17236 version_type=linux # correct to gnu/linux during the next big refactor 17237 need_lib_prefix=no 17238 need_version=no 17239 hardcode_into_libs=yes 17240 if test ia64 = "$host_cpu"; then 17241 # AIX 5 supports IA64 17242 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17243 shlibpath_var=LD_LIBRARY_PATH 17244 else 17245 # With GCC up to 2.95.x, collect2 would create an import file 17246 # for dependence libraries. The import file would start with 17247 # the line '#! .'. This would cause the generated library to 17248 # depend on '.', always an invalid library. This was fixed in 17249 # development snapshots of GCC prior to 3.0. 17250 case $host_os in 17251 aix4 | aix4.[01] | aix4.[01].*) 17252 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17253 echo ' yes ' 17254 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17255 : 17256 else 17257 can_build_shared=no 17258 fi 17259 ;; 17260 esac 17261 # Using Import Files as archive members, it is possible to support 17262 # filename-based versioning of shared library archives on AIX. While 17263 # this would work for both with and without runtime linking, it will 17264 # prevent static linking of such archives. So we do filename-based 17265 # shared library versioning with .so extension only, which is used 17266 # when both runtime linking and shared linking is enabled. 17267 # Unfortunately, runtime linking may impact performance, so we do 17268 # not want this to be the default eventually. Also, we use the 17269 # versioned .so libs for executables only if there is the -brtl 17270 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17271 # To allow for filename-based versioning support, we need to create 17272 # libNAME.so.V as an archive file, containing: 17273 # *) an Import File, referring to the versioned filename of the 17274 # archive as well as the shared archive member, telling the 17275 # bitwidth (32 or 64) of that shared object, and providing the 17276 # list of exported symbols of that shared object, eventually 17277 # decorated with the 'weak' keyword 17278 # *) the shared object with the F_LOADONLY flag set, to really avoid 17279 # it being seen by the linker. 17280 # At run time we better use the real file rather than another symlink, 17281 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17282 17283 case $with_aix_soname,$aix_use_runtimelinking in 17284 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17285 # soname into executable. Probably we can add versioning support to 17286 # collect2, so additional links can be useful in future. 17287 aix,yes) # traditional libtool 17288 dynamic_linker='AIX unversionable lib.so' 17289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17290 # instead of lib<name>.a to let people know that these are not 17291 # typical AIX shared libraries. 17292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17293 ;; 17294 aix,no) # traditional AIX only 17295 dynamic_linker='AIX lib.a(lib.so.V)' 17296 # We preserve .a as extension for shared libraries through AIX4.2 17297 # and later when we are not doing run time linking. 17298 library_names_spec='$libname$release.a $libname.a' 17299 soname_spec='$libname$release$shared_ext$major' 17300 ;; 17301 svr4,*) # full svr4 only 17302 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17303 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17304 # We do not specify a path in Import Files, so LIBPATH fires. 17305 shlibpath_overrides_runpath=yes 17306 ;; 17307 *,yes) # both, prefer svr4 17308 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17309 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17310 # unpreferred sharedlib libNAME.a needs extra handling 17311 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"' 17312 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"' 17313 # We do not specify a path in Import Files, so LIBPATH fires. 17314 shlibpath_overrides_runpath=yes 17315 ;; 17316 *,no) # both, prefer aix 17317 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17318 library_names_spec='$libname$release.a $libname.a' 17319 soname_spec='$libname$release$shared_ext$major' 17320 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17321 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)' 17322 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"' 17323 ;; 17324 esac 17325 shlibpath_var=LIBPATH 17326 fi 17327 ;; 17328 17329amigaos*) 17330 case $host_cpu in 17331 powerpc) 17332 # Since July 2007 AmigaOS4 officially supports .so libraries. 17333 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17335 ;; 17336 m68k) 17337 library_names_spec='$libname.ixlibrary $libname.a' 17338 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17339 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' 17340 ;; 17341 esac 17342 ;; 17343 17344beos*) 17345 library_names_spec='$libname$shared_ext' 17346 dynamic_linker="$host_os ld.so" 17347 shlibpath_var=LIBRARY_PATH 17348 ;; 17349 17350bsdi[45]*) 17351 version_type=linux # correct to gnu/linux during the next big refactor 17352 need_version=no 17353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17354 soname_spec='$libname$release$shared_ext$major' 17355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17356 shlibpath_var=LD_LIBRARY_PATH 17357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17359 # the default ld.so.conf also contains /usr/contrib/lib and 17360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17361 # libtool to hard-code these into programs 17362 ;; 17363 17364cygwin* | mingw* | pw32* | cegcc*) 17365 version_type=windows 17366 shrext_cmds=.dll 17367 need_version=no 17368 need_lib_prefix=no 17369 17370 case $GCC,$cc_basename in 17371 yes,*) 17372 # gcc 17373 library_names_spec='$libname.dll.a' 17374 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17375 postinstall_cmds='base_file=`basename \$file`~ 17376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17377 dldir=$destdir/`dirname \$dlpath`~ 17378 test -d \$dldir || mkdir -p \$dldir~ 17379 $install_prog $dir/$dlname \$dldir/$dlname~ 17380 chmod a+x \$dldir/$dlname~ 17381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17383 fi' 17384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17385 dlpath=$dir/\$dldll~ 17386 $RM \$dlpath' 17387 shlibpath_overrides_runpath=yes 17388 17389 case $host_os in 17390 cygwin*) 17391 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17392 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17393 17394 ;; 17395 mingw* | cegcc*) 17396 # MinGW DLLs use traditional 'lib' prefix 17397 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17398 ;; 17399 pw32*) 17400 # pw32 DLLs use 'pw' prefix rather than 'lib' 17401 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17402 ;; 17403 esac 17404 dynamic_linker='Win32 ld.exe' 17405 ;; 17406 17407 *,cl* | *,icl*) 17408 # Native MSVC or ICC 17409 libname_spec='$name' 17410 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17411 library_names_spec='$libname.dll.lib' 17412 17413 case $build_os in 17414 mingw*) 17415 sys_lib_search_path_spec= 17416 lt_save_ifs=$IFS 17417 IFS=';' 17418 for lt_path in $LIB 17419 do 17420 IFS=$lt_save_ifs 17421 # Let DOS variable expansion print the short 8.3 style file name. 17422 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17423 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17424 done 17425 IFS=$lt_save_ifs 17426 # Convert to MSYS style. 17427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17428 ;; 17429 cygwin*) 17430 # Convert to unix form, then to dos form, then back to unix form 17431 # but this time dos style (no spaces!) so that the unix form looks 17432 # like /cygdrive/c/PROGRA~1:/cygdr... 17433 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17434 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17435 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17436 ;; 17437 *) 17438 sys_lib_search_path_spec=$LIB 17439 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17440 # It is most probably a Windows format PATH. 17441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17442 else 17443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17444 fi 17445 # FIXME: find the short name or the path components, as spaces are 17446 # common. (e.g. "Program Files" -> "PROGRA~1") 17447 ;; 17448 esac 17449 17450 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17451 postinstall_cmds='base_file=`basename \$file`~ 17452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17453 dldir=$destdir/`dirname \$dlpath`~ 17454 test -d \$dldir || mkdir -p \$dldir~ 17455 $install_prog $dir/$dlname \$dldir/$dlname' 17456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17457 dlpath=$dir/\$dldll~ 17458 $RM \$dlpath' 17459 shlibpath_overrides_runpath=yes 17460 dynamic_linker='Win32 link.exe' 17461 ;; 17462 17463 *) 17464 # Assume MSVC and ICC wrapper 17465 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17466 dynamic_linker='Win32 ld.exe' 17467 ;; 17468 esac 17469 # FIXME: first we should search . and the directory the executable is in 17470 shlibpath_var=PATH 17471 ;; 17472 17473darwin* | rhapsody*) 17474 dynamic_linker="$host_os dyld" 17475 version_type=darwin 17476 need_lib_prefix=no 17477 need_version=no 17478 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17479 soname_spec='$libname$release$major$shared_ext' 17480 shlibpath_overrides_runpath=yes 17481 shlibpath_var=DYLD_LIBRARY_PATH 17482 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17483 17484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17485 ;; 17486 17487dgux*) 17488 version_type=linux # correct to gnu/linux during the next big refactor 17489 need_lib_prefix=no 17490 need_version=no 17491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17492 soname_spec='$libname$release$shared_ext$major' 17493 shlibpath_var=LD_LIBRARY_PATH 17494 ;; 17495 17496freebsd* | dragonfly* | midnightbsd*) 17497 # DragonFly does not have aout. When/if they implement a new 17498 # versioning mechanism, adjust this. 17499 if test -x /usr/bin/objformat; then 17500 objformat=`/usr/bin/objformat` 17501 else 17502 case $host_os in 17503 freebsd[23].*) objformat=aout ;; 17504 *) objformat=elf ;; 17505 esac 17506 fi 17507 version_type=freebsd-$objformat 17508 case $version_type in 17509 freebsd-elf*) 17510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17511 soname_spec='$libname$release$shared_ext$major' 17512 need_version=no 17513 need_lib_prefix=no 17514 ;; 17515 freebsd-*) 17516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17517 need_version=yes 17518 ;; 17519 esac 17520 shlibpath_var=LD_LIBRARY_PATH 17521 case $host_os in 17522 freebsd2.*) 17523 shlibpath_overrides_runpath=yes 17524 ;; 17525 freebsd3.[01]* | freebsdelf3.[01]*) 17526 shlibpath_overrides_runpath=yes 17527 hardcode_into_libs=yes 17528 ;; 17529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17531 shlibpath_overrides_runpath=no 17532 hardcode_into_libs=yes 17533 ;; 17534 *) # from 4.6 on, and DragonFly 17535 shlibpath_overrides_runpath=yes 17536 hardcode_into_libs=yes 17537 ;; 17538 esac 17539 ;; 17540 17541haiku*) 17542 version_type=linux # correct to gnu/linux during the next big refactor 17543 need_lib_prefix=no 17544 need_version=no 17545 dynamic_linker="$host_os runtime_loader" 17546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17547 soname_spec='$libname$release$shared_ext$major' 17548 shlibpath_var=LIBRARY_PATH 17549 shlibpath_overrides_runpath=no 17550 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17551 hardcode_into_libs=yes 17552 ;; 17553 17554hpux9* | hpux10* | hpux11*) 17555 # Give a soname corresponding to the major version so that dld.sl refuses to 17556 # link against other versions. 17557 version_type=sunos 17558 need_lib_prefix=no 17559 need_version=no 17560 case $host_cpu in 17561 ia64*) 17562 shrext_cmds='.so' 17563 hardcode_into_libs=yes 17564 dynamic_linker="$host_os dld.so" 17565 shlibpath_var=LD_LIBRARY_PATH 17566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17568 soname_spec='$libname$release$shared_ext$major' 17569 if test 32 = "$HPUX_IA64_MODE"; then 17570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17571 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17572 else 17573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17574 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17575 fi 17576 ;; 17577 hppa*64*) 17578 shrext_cmds='.sl' 17579 hardcode_into_libs=yes 17580 dynamic_linker="$host_os dld.sl" 17581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17584 soname_spec='$libname$release$shared_ext$major' 17585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17587 ;; 17588 *) 17589 shrext_cmds='.sl' 17590 dynamic_linker="$host_os dld.sl" 17591 shlibpath_var=SHLIB_PATH 17592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17594 soname_spec='$libname$release$shared_ext$major' 17595 ;; 17596 esac 17597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17598 postinstall_cmds='chmod 555 $lib' 17599 # or fails outright, so override atomically: 17600 install_override_mode=555 17601 ;; 17602 17603interix[3-9]*) 17604 version_type=linux # correct to gnu/linux during the next big refactor 17605 need_lib_prefix=no 17606 need_version=no 17607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17608 soname_spec='$libname$release$shared_ext$major' 17609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17610 shlibpath_var=LD_LIBRARY_PATH 17611 shlibpath_overrides_runpath=no 17612 hardcode_into_libs=yes 17613 ;; 17614 17615irix5* | irix6* | nonstopux*) 17616 case $host_os in 17617 nonstopux*) version_type=nonstopux ;; 17618 *) 17619 if test yes = "$lt_cv_prog_gnu_ld"; then 17620 version_type=linux # correct to gnu/linux during the next big refactor 17621 else 17622 version_type=irix 17623 fi ;; 17624 esac 17625 need_lib_prefix=no 17626 need_version=no 17627 soname_spec='$libname$release$shared_ext$major' 17628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17629 case $host_os in 17630 irix5* | nonstopux*) 17631 libsuff= shlibsuff= 17632 ;; 17633 *) 17634 case $LD in # libtool.m4 will add one of these switches to LD 17635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17636 libsuff= shlibsuff= libmagic=32-bit;; 17637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17638 libsuff=32 shlibsuff=N32 libmagic=N32;; 17639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17640 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17641 *) libsuff= shlibsuff= libmagic=never-match;; 17642 esac 17643 ;; 17644 esac 17645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17646 shlibpath_overrides_runpath=no 17647 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17648 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17649 hardcode_into_libs=yes 17650 ;; 17651 17652# No shared lib support for Linux oldld, aout, or coff. 17653linux*oldld* | linux*aout* | linux*coff*) 17654 dynamic_linker=no 17655 ;; 17656 17657linux*android*) 17658 version_type=none # Android doesn't support versioned libraries. 17659 need_lib_prefix=no 17660 need_version=no 17661 library_names_spec='$libname$release$shared_ext' 17662 soname_spec='$libname$release$shared_ext' 17663 finish_cmds= 17664 shlibpath_var=LD_LIBRARY_PATH 17665 shlibpath_overrides_runpath=yes 17666 17667 # This implies no fast_install, which is unacceptable. 17668 # Some rework will be needed to allow for fast_install 17669 # before this can be enabled. 17670 hardcode_into_libs=yes 17671 17672 dynamic_linker='Android linker' 17673 # Don't embed -rpath directories since the linker doesn't support them. 17674 hardcode_libdir_flag_spec_CXX='-L$libdir' 17675 ;; 17676 17677# This must be glibc/ELF. 17678linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17679 version_type=linux # correct to gnu/linux during the next big refactor 17680 need_lib_prefix=no 17681 need_version=no 17682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17683 soname_spec='$libname$release$shared_ext$major' 17684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17685 shlibpath_var=LD_LIBRARY_PATH 17686 shlibpath_overrides_runpath=no 17687 17688 # Some binutils ld are patched to set DT_RUNPATH 17689 if test ${lt_cv_shlibpath_overrides_runpath+y} 17690then : 17691 printf %s "(cached) " >&6 17692else $as_nop 17693 lt_cv_shlibpath_overrides_runpath=no 17694 save_LDFLAGS=$LDFLAGS 17695 save_libdir=$libdir 17696 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17697 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17699/* end confdefs.h. */ 17700 17701int 17702main (void) 17703{ 17704 17705 ; 17706 return 0; 17707} 17708_ACEOF 17709if ac_fn_cxx_try_link "$LINENO" 17710then : 17711 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 17712then : 17713 lt_cv_shlibpath_overrides_runpath=yes 17714fi 17715fi 17716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17717 conftest$ac_exeext conftest.$ac_ext 17718 LDFLAGS=$save_LDFLAGS 17719 libdir=$save_libdir 17720 17721fi 17722 17723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17724 17725 # This implies no fast_install, which is unacceptable. 17726 # Some rework will be needed to allow for fast_install 17727 # before this can be enabled. 17728 hardcode_into_libs=yes 17729 17730 # Ideally, we could use ldconfig to report *all* directores which are 17731 # searched for libraries, however this is still not possible. Aside from not 17732 # being certain /sbin/ldconfig is available, command 17733 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17734 # even though it is searched at run-time. Try to do the best guess by 17735 # appending ld.so.conf contents (and includes) to the search path. 17736 if test -f /etc/ld.so.conf; then 17737 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' ' '` 17738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17739 fi 17740 17741 # We used to test for /lib/ld.so.1 and disable shared libraries on 17742 # powerpc, because MkLinux only supported shared libraries with the 17743 # GNU dynamic linker. Since this was broken with cross compilers, 17744 # most powerpc-linux boxes support dynamic linking these days and 17745 # people can always --disable-shared, the test was removed, and we 17746 # assume the GNU/Linux dynamic linker is in use. 17747 dynamic_linker='GNU/Linux ld.so' 17748 ;; 17749 17750netbsdelf*-gnu) 17751 version_type=linux 17752 need_lib_prefix=no 17753 need_version=no 17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17755 soname_spec='${libname}${release}${shared_ext}$major' 17756 shlibpath_var=LD_LIBRARY_PATH 17757 shlibpath_overrides_runpath=no 17758 hardcode_into_libs=yes 17759 dynamic_linker='NetBSD ld.elf_so' 17760 ;; 17761 17762netbsd*) 17763 version_type=sunos 17764 need_lib_prefix=no 17765 need_version=no 17766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17767 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17769 dynamic_linker='NetBSD (a.out) ld.so' 17770 else 17771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17772 soname_spec='$libname$release$shared_ext$major' 17773 dynamic_linker='NetBSD ld.elf_so' 17774 fi 17775 shlibpath_var=LD_LIBRARY_PATH 17776 shlibpath_overrides_runpath=yes 17777 hardcode_into_libs=yes 17778 ;; 17779 17780newsos6) 17781 version_type=linux # correct to gnu/linux during the next big refactor 17782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17783 shlibpath_var=LD_LIBRARY_PATH 17784 shlibpath_overrides_runpath=yes 17785 ;; 17786 17787*nto* | *qnx*) 17788 version_type=qnx 17789 need_lib_prefix=no 17790 need_version=no 17791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17792 soname_spec='$libname$release$shared_ext$major' 17793 shlibpath_var=LD_LIBRARY_PATH 17794 shlibpath_overrides_runpath=no 17795 hardcode_into_libs=yes 17796 dynamic_linker='ldqnx.so' 17797 ;; 17798 17799openbsd* | bitrig*) 17800 version_type=sunos 17801 sys_lib_dlsearch_path_spec=/usr/lib 17802 need_lib_prefix=no 17803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17804 need_version=no 17805 else 17806 need_version=yes 17807 fi 17808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17810 shlibpath_var=LD_LIBRARY_PATH 17811 shlibpath_overrides_runpath=yes 17812 ;; 17813 17814os2*) 17815 libname_spec='$name' 17816 version_type=windows 17817 shrext_cmds=.dll 17818 need_version=no 17819 need_lib_prefix=no 17820 # OS/2 can only load a DLL with a base name of 8 characters or less. 17821 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17822 v=$($ECHO $release$versuffix | tr -d .-); 17823 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17824 $ECHO $n$v`$shared_ext' 17825 library_names_spec='${libname}_dll.$libext' 17826 dynamic_linker='OS/2 ld.exe' 17827 shlibpath_var=BEGINLIBPATH 17828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17830 postinstall_cmds='base_file=`basename \$file`~ 17831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17832 dldir=$destdir/`dirname \$dlpath`~ 17833 test -d \$dldir || mkdir -p \$dldir~ 17834 $install_prog $dir/$dlname \$dldir/$dlname~ 17835 chmod a+x \$dldir/$dlname~ 17836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17838 fi' 17839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17840 dlpath=$dir/\$dldll~ 17841 $RM \$dlpath' 17842 ;; 17843 17844osf3* | osf4* | osf5*) 17845 version_type=osf 17846 need_lib_prefix=no 17847 need_version=no 17848 soname_spec='$libname$release$shared_ext$major' 17849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17850 shlibpath_var=LD_LIBRARY_PATH 17851 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17853 ;; 17854 17855rdos*) 17856 dynamic_linker=no 17857 ;; 17858 17859solaris*) 17860 version_type=linux # correct to gnu/linux during the next big refactor 17861 need_lib_prefix=no 17862 need_version=no 17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17864 soname_spec='$libname$release$shared_ext$major' 17865 shlibpath_var=LD_LIBRARY_PATH 17866 shlibpath_overrides_runpath=yes 17867 hardcode_into_libs=yes 17868 # ldd complains unless libraries are executable 17869 postinstall_cmds='chmod +x $lib' 17870 ;; 17871 17872sunos4*) 17873 version_type=sunos 17874 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17876 shlibpath_var=LD_LIBRARY_PATH 17877 shlibpath_overrides_runpath=yes 17878 if test yes = "$with_gnu_ld"; then 17879 need_lib_prefix=no 17880 fi 17881 need_version=yes 17882 ;; 17883 17884sysv4 | sysv4.3*) 17885 version_type=linux # correct to gnu/linux during the next big refactor 17886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17887 soname_spec='$libname$release$shared_ext$major' 17888 shlibpath_var=LD_LIBRARY_PATH 17889 case $host_vendor in 17890 sni) 17891 shlibpath_overrides_runpath=no 17892 need_lib_prefix=no 17893 runpath_var=LD_RUN_PATH 17894 ;; 17895 siemens) 17896 need_lib_prefix=no 17897 ;; 17898 motorola) 17899 need_lib_prefix=no 17900 need_version=no 17901 shlibpath_overrides_runpath=no 17902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17903 ;; 17904 esac 17905 ;; 17906 17907sysv4*MP*) 17908 if test -d /usr/nec; then 17909 version_type=linux # correct to gnu/linux during the next big refactor 17910 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17911 soname_spec='$libname$shared_ext.$major' 17912 shlibpath_var=LD_LIBRARY_PATH 17913 fi 17914 ;; 17915 17916sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17917 version_type=sco 17918 need_lib_prefix=no 17919 need_version=no 17920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17921 soname_spec='$libname$release$shared_ext$major' 17922 shlibpath_var=LD_LIBRARY_PATH 17923 shlibpath_overrides_runpath=yes 17924 hardcode_into_libs=yes 17925 if test yes = "$with_gnu_ld"; then 17926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17927 else 17928 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17929 case $host_os in 17930 sco3.2v5*) 17931 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17932 ;; 17933 esac 17934 fi 17935 sys_lib_dlsearch_path_spec='/usr/lib' 17936 ;; 17937 17938tpf*) 17939 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17940 version_type=linux # correct to gnu/linux during the next big refactor 17941 need_lib_prefix=no 17942 need_version=no 17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17944 shlibpath_var=LD_LIBRARY_PATH 17945 shlibpath_overrides_runpath=no 17946 hardcode_into_libs=yes 17947 ;; 17948 17949uts4*) 17950 version_type=linux # correct to gnu/linux during the next big refactor 17951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17952 soname_spec='$libname$release$shared_ext$major' 17953 shlibpath_var=LD_LIBRARY_PATH 17954 ;; 17955 17956*) 17957 dynamic_linker=no 17958 ;; 17959esac 17960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17961printf "%s\n" "$dynamic_linker" >&6; } 17962test no = "$dynamic_linker" && can_build_shared=no 17963 17964variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17965if test yes = "$GCC"; then 17966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17967fi 17968 17969if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17970 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17971fi 17972 17973if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17974 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17975fi 17976 17977# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17978configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17979 17980# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17981func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17982 17983# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17984configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18026printf %s "checking how to hardcode library paths into programs... " >&6; } 18027hardcode_action_CXX= 18028if test -n "$hardcode_libdir_flag_spec_CXX" || 18029 test -n "$runpath_var_CXX" || 18030 test yes = "$hardcode_automatic_CXX"; then 18031 18032 # We can hardcode non-existent directories. 18033 if test no != "$hardcode_direct_CXX" && 18034 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18035 # have to relink, otherwise we might link with an installed library 18036 # when we should be linking with a yet-to-be-installed one 18037 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18038 test no != "$hardcode_minus_L_CXX"; then 18039 # Linking always hardcodes the temporary library directory. 18040 hardcode_action_CXX=relink 18041 else 18042 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18043 hardcode_action_CXX=immediate 18044 fi 18045else 18046 # We cannot hardcode anything, or else we can only hardcode existing 18047 # directories. 18048 hardcode_action_CXX=unsupported 18049fi 18050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18051printf "%s\n" "$hardcode_action_CXX" >&6; } 18052 18053if test relink = "$hardcode_action_CXX" || 18054 test yes = "$inherit_rpath_CXX"; then 18055 # Fast installation is not supported 18056 enable_fast_install=no 18057elif test yes = "$shlibpath_overrides_runpath" || 18058 test no = "$enable_shared"; then 18059 # Fast installation is not necessary 18060 enable_fast_install=needless 18061fi 18062 18063 18064 18065 18066 18067 18068 18069 fi # test -n "$compiler" 18070 18071 CC=$lt_save_CC 18072 CFLAGS=$lt_save_CFLAGS 18073 LDCXX=$LD 18074 LD=$lt_save_LD 18075 GCC=$lt_save_GCC 18076 with_gnu_ld=$lt_save_with_gnu_ld 18077 lt_cv_path_LDCXX=$lt_cv_path_LD 18078 lt_cv_path_LD=$lt_save_path_LD 18079 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18080 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18081fi # test yes != "$_lt_caught_CXX_error" 18082 18083ac_ext=c 18084ac_cpp='$CPP $CPPFLAGS' 18085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18087ac_compiler_gnu=$ac_cv_c_compiler_gnu 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 ac_config_commands="$ac_config_commands libtool" 18104 18105 18106 18107 18108# Only expand once: 18109 18110 18111ac_ext=c 18112ac_cpp='$CPP $CPPFLAGS' 18113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18115ac_compiler_gnu=$ac_cv_c_compiler_gnu 18116 18117ac_ext=c 18118ac_cpp='$CPP $CPPFLAGS' 18119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18121ac_compiler_gnu=$ac_cv_c_compiler_gnu 18122if test -n "$ac_tool_prefix"; then 18123 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18124set dummy ${ac_tool_prefix}gcc; ac_word=$2 18125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18126printf %s "checking for $ac_word... " >&6; } 18127if test ${ac_cv_prog_CC+y} 18128then : 18129 printf %s "(cached) " >&6 18130else $as_nop 18131 if test -n "$CC"; then 18132 ac_cv_prog_CC="$CC" # Let the user override the test. 18133else 18134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18135for as_dir in $PATH 18136do 18137 IFS=$as_save_IFS 18138 case $as_dir in #((( 18139 '') as_dir=./ ;; 18140 */) ;; 18141 *) as_dir=$as_dir/ ;; 18142 esac 18143 for ac_exec_ext in '' $ac_executable_extensions; do 18144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18145 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18147 break 2 18148 fi 18149done 18150 done 18151IFS=$as_save_IFS 18152 18153fi 18154fi 18155CC=$ac_cv_prog_CC 18156if test -n "$CC"; then 18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18158printf "%s\n" "$CC" >&6; } 18159else 18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18161printf "%s\n" "no" >&6; } 18162fi 18163 18164 18165fi 18166if test -z "$ac_cv_prog_CC"; then 18167 ac_ct_CC=$CC 18168 # Extract the first word of "gcc", so it can be a program name with args. 18169set dummy gcc; ac_word=$2 18170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18171printf %s "checking for $ac_word... " >&6; } 18172if test ${ac_cv_prog_ac_ct_CC+y} 18173then : 18174 printf %s "(cached) " >&6 18175else $as_nop 18176 if test -n "$ac_ct_CC"; then 18177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18178else 18179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18180for as_dir in $PATH 18181do 18182 IFS=$as_save_IFS 18183 case $as_dir in #((( 18184 '') as_dir=./ ;; 18185 */) ;; 18186 *) as_dir=$as_dir/ ;; 18187 esac 18188 for ac_exec_ext in '' $ac_executable_extensions; do 18189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18190 ac_cv_prog_ac_ct_CC="gcc" 18191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18192 break 2 18193 fi 18194done 18195 done 18196IFS=$as_save_IFS 18197 18198fi 18199fi 18200ac_ct_CC=$ac_cv_prog_ac_ct_CC 18201if test -n "$ac_ct_CC"; then 18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18203printf "%s\n" "$ac_ct_CC" >&6; } 18204else 18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18206printf "%s\n" "no" >&6; } 18207fi 18208 18209 if test "x$ac_ct_CC" = x; then 18210 CC="" 18211 else 18212 case $cross_compiling:$ac_tool_warned in 18213yes:) 18214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18215printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18216ac_tool_warned=yes ;; 18217esac 18218 CC=$ac_ct_CC 18219 fi 18220else 18221 CC="$ac_cv_prog_CC" 18222fi 18223 18224if test -z "$CC"; then 18225 if test -n "$ac_tool_prefix"; then 18226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18227set dummy ${ac_tool_prefix}cc; ac_word=$2 18228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18229printf %s "checking for $ac_word... " >&6; } 18230if test ${ac_cv_prog_CC+y} 18231then : 18232 printf %s "(cached) " >&6 18233else $as_nop 18234 if test -n "$CC"; then 18235 ac_cv_prog_CC="$CC" # Let the user override the test. 18236else 18237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18238for as_dir in $PATH 18239do 18240 IFS=$as_save_IFS 18241 case $as_dir in #((( 18242 '') as_dir=./ ;; 18243 */) ;; 18244 *) as_dir=$as_dir/ ;; 18245 esac 18246 for ac_exec_ext in '' $ac_executable_extensions; do 18247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18248 ac_cv_prog_CC="${ac_tool_prefix}cc" 18249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18250 break 2 18251 fi 18252done 18253 done 18254IFS=$as_save_IFS 18255 18256fi 18257fi 18258CC=$ac_cv_prog_CC 18259if test -n "$CC"; then 18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18261printf "%s\n" "$CC" >&6; } 18262else 18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18264printf "%s\n" "no" >&6; } 18265fi 18266 18267 18268 fi 18269fi 18270if test -z "$CC"; then 18271 # Extract the first word of "cc", so it can be a program name with args. 18272set dummy cc; ac_word=$2 18273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18274printf %s "checking for $ac_word... " >&6; } 18275if test ${ac_cv_prog_CC+y} 18276then : 18277 printf %s "(cached) " >&6 18278else $as_nop 18279 if test -n "$CC"; then 18280 ac_cv_prog_CC="$CC" # Let the user override the test. 18281else 18282 ac_prog_rejected=no 18283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18284for as_dir in $PATH 18285do 18286 IFS=$as_save_IFS 18287 case $as_dir in #((( 18288 '') as_dir=./ ;; 18289 */) ;; 18290 *) as_dir=$as_dir/ ;; 18291 esac 18292 for ac_exec_ext in '' $ac_executable_extensions; do 18293 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18294 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18295 ac_prog_rejected=yes 18296 continue 18297 fi 18298 ac_cv_prog_CC="cc" 18299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18300 break 2 18301 fi 18302done 18303 done 18304IFS=$as_save_IFS 18305 18306if test $ac_prog_rejected = yes; then 18307 # We found a bogon in the path, so make sure we never use it. 18308 set dummy $ac_cv_prog_CC 18309 shift 18310 if test $# != 0; then 18311 # We chose a different compiler from the bogus one. 18312 # However, it has the same basename, so the bogon will be chosen 18313 # first if we set CC to just the basename; use the full file name. 18314 shift 18315 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 18316 fi 18317fi 18318fi 18319fi 18320CC=$ac_cv_prog_CC 18321if test -n "$CC"; then 18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18323printf "%s\n" "$CC" >&6; } 18324else 18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18326printf "%s\n" "no" >&6; } 18327fi 18328 18329 18330fi 18331if test -z "$CC"; then 18332 if test -n "$ac_tool_prefix"; then 18333 for ac_prog in cl.exe 18334 do 18335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18336set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18338printf %s "checking for $ac_word... " >&6; } 18339if test ${ac_cv_prog_CC+y} 18340then : 18341 printf %s "(cached) " >&6 18342else $as_nop 18343 if test -n "$CC"; then 18344 ac_cv_prog_CC="$CC" # Let the user override the test. 18345else 18346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18347for as_dir in $PATH 18348do 18349 IFS=$as_save_IFS 18350 case $as_dir in #((( 18351 '') as_dir=./ ;; 18352 */) ;; 18353 *) as_dir=$as_dir/ ;; 18354 esac 18355 for ac_exec_ext in '' $ac_executable_extensions; do 18356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18359 break 2 18360 fi 18361done 18362 done 18363IFS=$as_save_IFS 18364 18365fi 18366fi 18367CC=$ac_cv_prog_CC 18368if test -n "$CC"; then 18369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18370printf "%s\n" "$CC" >&6; } 18371else 18372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18373printf "%s\n" "no" >&6; } 18374fi 18375 18376 18377 test -n "$CC" && break 18378 done 18379fi 18380if test -z "$CC"; then 18381 ac_ct_CC=$CC 18382 for ac_prog in cl.exe 18383do 18384 # Extract the first word of "$ac_prog", so it can be a program name with args. 18385set dummy $ac_prog; ac_word=$2 18386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18387printf %s "checking for $ac_word... " >&6; } 18388if test ${ac_cv_prog_ac_ct_CC+y} 18389then : 18390 printf %s "(cached) " >&6 18391else $as_nop 18392 if test -n "$ac_ct_CC"; then 18393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18394else 18395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18396for as_dir in $PATH 18397do 18398 IFS=$as_save_IFS 18399 case $as_dir in #((( 18400 '') as_dir=./ ;; 18401 */) ;; 18402 *) as_dir=$as_dir/ ;; 18403 esac 18404 for ac_exec_ext in '' $ac_executable_extensions; do 18405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18406 ac_cv_prog_ac_ct_CC="$ac_prog" 18407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18408 break 2 18409 fi 18410done 18411 done 18412IFS=$as_save_IFS 18413 18414fi 18415fi 18416ac_ct_CC=$ac_cv_prog_ac_ct_CC 18417if test -n "$ac_ct_CC"; then 18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18419printf "%s\n" "$ac_ct_CC" >&6; } 18420else 18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18422printf "%s\n" "no" >&6; } 18423fi 18424 18425 18426 test -n "$ac_ct_CC" && break 18427done 18428 18429 if test "x$ac_ct_CC" = x; then 18430 CC="" 18431 else 18432 case $cross_compiling:$ac_tool_warned in 18433yes:) 18434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18436ac_tool_warned=yes ;; 18437esac 18438 CC=$ac_ct_CC 18439 fi 18440fi 18441 18442fi 18443if test -z "$CC"; then 18444 if test -n "$ac_tool_prefix"; then 18445 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 18446set dummy ${ac_tool_prefix}clang; ac_word=$2 18447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18448printf %s "checking for $ac_word... " >&6; } 18449if test ${ac_cv_prog_CC+y} 18450then : 18451 printf %s "(cached) " >&6 18452else $as_nop 18453 if test -n "$CC"; then 18454 ac_cv_prog_CC="$CC" # Let the user override the test. 18455else 18456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18457for as_dir in $PATH 18458do 18459 IFS=$as_save_IFS 18460 case $as_dir in #((( 18461 '') as_dir=./ ;; 18462 */) ;; 18463 *) as_dir=$as_dir/ ;; 18464 esac 18465 for ac_exec_ext in '' $ac_executable_extensions; do 18466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18467 ac_cv_prog_CC="${ac_tool_prefix}clang" 18468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18469 break 2 18470 fi 18471done 18472 done 18473IFS=$as_save_IFS 18474 18475fi 18476fi 18477CC=$ac_cv_prog_CC 18478if test -n "$CC"; then 18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 18480printf "%s\n" "$CC" >&6; } 18481else 18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18483printf "%s\n" "no" >&6; } 18484fi 18485 18486 18487fi 18488if test -z "$ac_cv_prog_CC"; then 18489 ac_ct_CC=$CC 18490 # Extract the first word of "clang", so it can be a program name with args. 18491set dummy clang; ac_word=$2 18492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18493printf %s "checking for $ac_word... " >&6; } 18494if test ${ac_cv_prog_ac_ct_CC+y} 18495then : 18496 printf %s "(cached) " >&6 18497else $as_nop 18498 if test -n "$ac_ct_CC"; then 18499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18500else 18501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18502for as_dir in $PATH 18503do 18504 IFS=$as_save_IFS 18505 case $as_dir in #((( 18506 '') as_dir=./ ;; 18507 */) ;; 18508 *) as_dir=$as_dir/ ;; 18509 esac 18510 for ac_exec_ext in '' $ac_executable_extensions; do 18511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18512 ac_cv_prog_ac_ct_CC="clang" 18513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18514 break 2 18515 fi 18516done 18517 done 18518IFS=$as_save_IFS 18519 18520fi 18521fi 18522ac_ct_CC=$ac_cv_prog_ac_ct_CC 18523if test -n "$ac_ct_CC"; then 18524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 18525printf "%s\n" "$ac_ct_CC" >&6; } 18526else 18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18528printf "%s\n" "no" >&6; } 18529fi 18530 18531 if test "x$ac_ct_CC" = x; then 18532 CC="" 18533 else 18534 case $cross_compiling:$ac_tool_warned in 18535yes:) 18536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18537printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18538ac_tool_warned=yes ;; 18539esac 18540 CC=$ac_ct_CC 18541 fi 18542else 18543 CC="$ac_cv_prog_CC" 18544fi 18545 18546fi 18547 18548 18549test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18550printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18551as_fn_error $? "no acceptable C compiler found in \$PATH 18552See \`config.log' for more details" "$LINENO" 5; } 18553 18554# Provide some information about the compiler. 18555printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 18556set X $ac_compile 18557ac_compiler=$2 18558for ac_option in --version -v -V -qversion -version; do 18559 { { ac_try="$ac_compiler $ac_option >&5" 18560case "(($ac_try" in 18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18562 *) ac_try_echo=$ac_try;; 18563esac 18564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 18565printf "%s\n" "$ac_try_echo"; } >&5 18566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 18567 ac_status=$? 18568 if test -s conftest.err; then 18569 sed '10a\ 18570... rest of stderr output deleted ... 18571 10q' conftest.err >conftest.er1 18572 cat conftest.er1 >&5 18573 fi 18574 rm -f conftest.er1 conftest.err 18575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18576 test $ac_status = 0; } 18577done 18578 18579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 18580printf %s "checking whether the compiler supports GNU C... " >&6; } 18581if test ${ac_cv_c_compiler_gnu+y} 18582then : 18583 printf %s "(cached) " >&6 18584else $as_nop 18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18586/* end confdefs.h. */ 18587 18588int 18589main (void) 18590{ 18591#ifndef __GNUC__ 18592 choke me 18593#endif 18594 18595 ; 18596 return 0; 18597} 18598_ACEOF 18599if ac_fn_c_try_compile "$LINENO" 18600then : 18601 ac_compiler_gnu=yes 18602else $as_nop 18603 ac_compiler_gnu=no 18604fi 18605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18606ac_cv_c_compiler_gnu=$ac_compiler_gnu 18607 18608fi 18609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 18610printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 18611ac_compiler_gnu=$ac_cv_c_compiler_gnu 18612 18613if test $ac_compiler_gnu = yes; then 18614 GCC=yes 18615else 18616 GCC= 18617fi 18618ac_test_CFLAGS=${CFLAGS+y} 18619ac_save_CFLAGS=$CFLAGS 18620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 18621printf %s "checking whether $CC accepts -g... " >&6; } 18622if test ${ac_cv_prog_cc_g+y} 18623then : 18624 printf %s "(cached) " >&6 18625else $as_nop 18626 ac_save_c_werror_flag=$ac_c_werror_flag 18627 ac_c_werror_flag=yes 18628 ac_cv_prog_cc_g=no 18629 CFLAGS="-g" 18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18631/* end confdefs.h. */ 18632 18633int 18634main (void) 18635{ 18636 18637 ; 18638 return 0; 18639} 18640_ACEOF 18641if ac_fn_c_try_compile "$LINENO" 18642then : 18643 ac_cv_prog_cc_g=yes 18644else $as_nop 18645 CFLAGS="" 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648 18649int 18650main (void) 18651{ 18652 18653 ; 18654 return 0; 18655} 18656_ACEOF 18657if ac_fn_c_try_compile "$LINENO" 18658then : 18659 18660else $as_nop 18661 ac_c_werror_flag=$ac_save_c_werror_flag 18662 CFLAGS="-g" 18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18664/* end confdefs.h. */ 18665 18666int 18667main (void) 18668{ 18669 18670 ; 18671 return 0; 18672} 18673_ACEOF 18674if ac_fn_c_try_compile "$LINENO" 18675then : 18676 ac_cv_prog_cc_g=yes 18677fi 18678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18679fi 18680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18681fi 18682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18683 ac_c_werror_flag=$ac_save_c_werror_flag 18684fi 18685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 18686printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 18687if test $ac_test_CFLAGS; then 18688 CFLAGS=$ac_save_CFLAGS 18689elif test $ac_cv_prog_cc_g = yes; then 18690 if test "$GCC" = yes; then 18691 CFLAGS="-g -O2" 18692 else 18693 CFLAGS="-g" 18694 fi 18695else 18696 if test "$GCC" = yes; then 18697 CFLAGS="-O2" 18698 else 18699 CFLAGS= 18700 fi 18701fi 18702ac_prog_cc_stdc=no 18703if test x$ac_prog_cc_stdc = xno 18704then : 18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 18706printf %s "checking for $CC option to enable C11 features... " >&6; } 18707if test ${ac_cv_prog_cc_c11+y} 18708then : 18709 printf %s "(cached) " >&6 18710else $as_nop 18711 ac_cv_prog_cc_c11=no 18712ac_save_CC=$CC 18713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18714/* end confdefs.h. */ 18715$ac_c_conftest_c11_program 18716_ACEOF 18717for ac_arg in '' -std=gnu11 18718do 18719 CC="$ac_save_CC $ac_arg" 18720 if ac_fn_c_try_compile "$LINENO" 18721then : 18722 ac_cv_prog_cc_c11=$ac_arg 18723fi 18724rm -f core conftest.err conftest.$ac_objext conftest.beam 18725 test "x$ac_cv_prog_cc_c11" != "xno" && break 18726done 18727rm -f conftest.$ac_ext 18728CC=$ac_save_CC 18729fi 18730 18731if test "x$ac_cv_prog_cc_c11" = xno 18732then : 18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18734printf "%s\n" "unsupported" >&6; } 18735else $as_nop 18736 if test "x$ac_cv_prog_cc_c11" = x 18737then : 18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18739printf "%s\n" "none needed" >&6; } 18740else $as_nop 18741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 18742printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 18743 CC="$CC $ac_cv_prog_cc_c11" 18744fi 18745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 18746 ac_prog_cc_stdc=c11 18747fi 18748fi 18749if test x$ac_prog_cc_stdc = xno 18750then : 18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 18752printf %s "checking for $CC option to enable C99 features... " >&6; } 18753if test ${ac_cv_prog_cc_c99+y} 18754then : 18755 printf %s "(cached) " >&6 18756else $as_nop 18757 ac_cv_prog_cc_c99=no 18758ac_save_CC=$CC 18759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18760/* end confdefs.h. */ 18761$ac_c_conftest_c99_program 18762_ACEOF 18763for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 18764do 18765 CC="$ac_save_CC $ac_arg" 18766 if ac_fn_c_try_compile "$LINENO" 18767then : 18768 ac_cv_prog_cc_c99=$ac_arg 18769fi 18770rm -f core conftest.err conftest.$ac_objext conftest.beam 18771 test "x$ac_cv_prog_cc_c99" != "xno" && break 18772done 18773rm -f conftest.$ac_ext 18774CC=$ac_save_CC 18775fi 18776 18777if test "x$ac_cv_prog_cc_c99" = xno 18778then : 18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18780printf "%s\n" "unsupported" >&6; } 18781else $as_nop 18782 if test "x$ac_cv_prog_cc_c99" = x 18783then : 18784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18785printf "%s\n" "none needed" >&6; } 18786else $as_nop 18787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 18788printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 18789 CC="$CC $ac_cv_prog_cc_c99" 18790fi 18791 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 18792 ac_prog_cc_stdc=c99 18793fi 18794fi 18795if test x$ac_prog_cc_stdc = xno 18796then : 18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 18798printf %s "checking for $CC option to enable C89 features... " >&6; } 18799if test ${ac_cv_prog_cc_c89+y} 18800then : 18801 printf %s "(cached) " >&6 18802else $as_nop 18803 ac_cv_prog_cc_c89=no 18804ac_save_CC=$CC 18805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18806/* end confdefs.h. */ 18807$ac_c_conftest_c89_program 18808_ACEOF 18809for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 18810do 18811 CC="$ac_save_CC $ac_arg" 18812 if ac_fn_c_try_compile "$LINENO" 18813then : 18814 ac_cv_prog_cc_c89=$ac_arg 18815fi 18816rm -f core conftest.err conftest.$ac_objext conftest.beam 18817 test "x$ac_cv_prog_cc_c89" != "xno" && break 18818done 18819rm -f conftest.$ac_ext 18820CC=$ac_save_CC 18821fi 18822 18823if test "x$ac_cv_prog_cc_c89" = xno 18824then : 18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 18826printf "%s\n" "unsupported" >&6; } 18827else $as_nop 18828 if test "x$ac_cv_prog_cc_c89" = x 18829then : 18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 18831printf "%s\n" "none needed" >&6; } 18832else $as_nop 18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 18834printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 18835 CC="$CC $ac_cv_prog_cc_c89" 18836fi 18837 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 18838 ac_prog_cc_stdc=c89 18839fi 18840fi 18841 18842ac_ext=c 18843ac_cpp='$CPP $CPPFLAGS' 18844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18846ac_compiler_gnu=$ac_cv_c_compiler_gnu 18847 18848 18849 ac_ext=c 18850ac_cpp='$CPP $CPPFLAGS' 18851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18853ac_compiler_gnu=$ac_cv_c_compiler_gnu 18854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 18855printf %s "checking whether $CC understands -c and -o together... " >&6; } 18856if test ${am_cv_prog_cc_c_o+y} 18857then : 18858 printf %s "(cached) " >&6 18859else $as_nop 18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18861/* end confdefs.h. */ 18862 18863int 18864main (void) 18865{ 18866 18867 ; 18868 return 0; 18869} 18870_ACEOF 18871 # Make sure it works both with $CC and with simple cc. 18872 # Following AC_PROG_CC_C_O, we do the test twice because some 18873 # compilers refuse to overwrite an existing .o file with -o, 18874 # though they will create one. 18875 am_cv_prog_cc_c_o=yes 18876 for am_i in 1 2; do 18877 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 18878 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 18879 ac_status=$? 18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18881 (exit $ac_status); } \ 18882 && test -f conftest2.$ac_objext; then 18883 : OK 18884 else 18885 am_cv_prog_cc_c_o=no 18886 break 18887 fi 18888 done 18889 rm -f core conftest* 18890 unset am_i 18891fi 18892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 18893printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 18894if test "$am_cv_prog_cc_c_o" != yes; then 18895 # Losing compiler, so override with the script. 18896 # FIXME: It is wrong to rewrite CC. 18897 # But if we don't then we get into trouble of one sort or another. 18898 # A longer-term fix would be to have automake use am__CC in this case, 18899 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 18900 CC="$am_aux_dir/compile $CC" 18901fi 18902ac_ext=c 18903ac_cpp='$CPP $CPPFLAGS' 18904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18906ac_compiler_gnu=$ac_cv_c_compiler_gnu 18907 18908 18909 18910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 18911printf %s "checking for egrep... " >&6; } 18912if test ${ac_cv_path_EGREP+y} 18913then : 18914 printf %s "(cached) " >&6 18915else $as_nop 18916 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 18917 then ac_cv_path_EGREP="$GREP -E" 18918 else 18919 if test -z "$EGREP"; then 18920 ac_path_EGREP_found=false 18921 # Loop through the user's path and test for each of PROGNAME-LIST 18922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18923for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 18924do 18925 IFS=$as_save_IFS 18926 case $as_dir in #((( 18927 '') as_dir=./ ;; 18928 */) ;; 18929 *) as_dir=$as_dir/ ;; 18930 esac 18931 for ac_prog in egrep 18932 do 18933 for ac_exec_ext in '' $ac_executable_extensions; do 18934 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 18935 as_fn_executable_p "$ac_path_EGREP" || continue 18936# Check for GNU ac_path_EGREP and select it if it is found. 18937 # Check for GNU $ac_path_EGREP 18938case `"$ac_path_EGREP" --version 2>&1` in 18939*GNU*) 18940 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 18941*) 18942 ac_count=0 18943 printf %s 0123456789 >"conftest.in" 18944 while : 18945 do 18946 cat "conftest.in" "conftest.in" >"conftest.tmp" 18947 mv "conftest.tmp" "conftest.in" 18948 cp "conftest.in" "conftest.nl" 18949 printf "%s\n" 'EGREP' >> "conftest.nl" 18950 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 18951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 18952 as_fn_arith $ac_count + 1 && ac_count=$as_val 18953 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 18954 # Best one so far, save it but keep looking for a better one 18955 ac_cv_path_EGREP="$ac_path_EGREP" 18956 ac_path_EGREP_max=$ac_count 18957 fi 18958 # 10*(2^10) chars as input seems more than enough 18959 test $ac_count -gt 10 && break 18960 done 18961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 18962esac 18963 18964 $ac_path_EGREP_found && break 3 18965 done 18966 done 18967 done 18968IFS=$as_save_IFS 18969 if test -z "$ac_cv_path_EGREP"; then 18970 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 18971 fi 18972else 18973 ac_cv_path_EGREP=$EGREP 18974fi 18975 18976 fi 18977fi 18978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 18979printf "%s\n" "$ac_cv_path_EGREP" >&6; } 18980 EGREP="$ac_cv_path_EGREP" 18981 18982 18983 18984 18985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 18986printf %s "checking for C compiler vendor... " >&6; } 18987if test ${ax_cv_c_compiler_vendor+y} 18988then : 18989 printf %s "(cached) " >&6 18990else $as_nop 18991 18992 vendors=" 18993 intel: __ICC,__ECC,__INTEL_COMPILER 18994 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 18995 pathscale: __PATHCC__,__PATHSCALE__ 18996 clang: __clang__ 18997 cray: _CRAYC 18998 fujitsu: __FUJITSU 18999 sdcc: SDCC,__SDCC 19000 sx: _SX 19001 nvhpc: __NVCOMPILER 19002 portland: __PGI 19003 gnu: __GNUC__ 19004 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 19005 hp: __HP_cc,__HP_aCC 19006 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 19007 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 19008 comeau: __COMO__ 19009 kai: __KCC 19010 lcc: __LCC__ 19011 sgi: __sgi,sgi 19012 microsoft: _MSC_VER 19013 metrowerks: __MWERKS__ 19014 watcom: __WATCOMC__ 19015 tcc: __TINYC__ 19016 unknown: UNKNOWN 19017 " 19018 for ventest in $vendors; do 19019 case $ventest in 19020 *:) 19021 vendor=$ventest 19022 continue 19023 ;; 19024 *) 19025 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 19026 ;; 19027 esac 19028 19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19030/* end confdefs.h. */ 19031 19032int 19033main (void) 19034{ 19035 19036#if !($vencpp) 19037 thisisanerror; 19038#endif 19039 19040 ; 19041 return 0; 19042} 19043_ACEOF 19044if ac_fn_c_try_compile "$LINENO" 19045then : 19046 break 19047fi 19048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19049 done 19050 19051 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 19052 19053fi 19054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 19055printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; } 19056 19057 19058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether this is native windows" >&5 19059printf %s "checking whether this is native windows... " >&6; } 19060ac_cv_native_windows=no 19061ac_cv_windows=no 19062case $host_os in 19063 mingw*) 19064 ac_cv_native_windows=yes 19065 ac_cv_windows=yes 19066 ;; 19067 cygwin*) 19068 ac_cv_windows=yes 19069 ;; 19070esac 19071if test "$ax_cv_c_compiler_vendor" = "microsoft" ; then 19072 ac_cv_native_windows=yes 19073 ac_cv_windows=yes 19074fi 19075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5 19076printf "%s\n" "$ac_cv_native_windows" >&6; } 19077 19078 19079# Check whether --enable-shared was given. 19080if test ${enable_shared+y} 19081then : 19082 enableval=$enable_shared; p=${PACKAGE-default} 19083 case $enableval in 19084 yes) enable_shared=yes ;; 19085 no) enable_shared=no ;; 19086 *) 19087 enable_shared=no 19088 # Look at the argument we got. We use all the common list separators. 19089 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19090 for pkg in $enableval; do 19091 IFS=$lt_save_ifs 19092 if test "X$pkg" = "X$p"; then 19093 enable_shared=yes 19094 fi 19095 done 19096 IFS=$lt_save_ifs 19097 ;; 19098 esac 19099else $as_nop 19100 enable_shared=yes 19101fi 19102 19103 19104 19105 19106 19107 19108 19109if test "x$ac_cv_windows" = "xyes" 19110then : 19111 # Check whether --enable-static was given. 19112if test ${enable_static+y} 19113then : 19114 enableval=$enable_static; p=${PACKAGE-default} 19115 case $enableval in 19116 yes) enable_static=yes ;; 19117 no) enable_static=no ;; 19118 *) 19119 enable_static=no 19120 # Look at the argument we got. We use all the common list separators. 19121 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19122 for pkg in $enableval; do 19123 IFS=$lt_save_ifs 19124 if test "X$pkg" = "X$p"; then 19125 enable_static=yes 19126 fi 19127 done 19128 IFS=$lt_save_ifs 19129 ;; 19130 esac 19131else $as_nop 19132 enable_static=no 19133fi 19134 19135 19136 19137 19138 19139 19140else $as_nop 19141 # Check whether --enable-static was given. 19142if test ${enable_static+y} 19143then : 19144 enableval=$enable_static; p=${PACKAGE-default} 19145 case $enableval in 19146 yes) enable_static=yes ;; 19147 no) enable_static=no ;; 19148 *) 19149 enable_static=no 19150 # Look at the argument we got. We use all the common list separators. 19151 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19152 for pkg in $enableval; do 19153 IFS=$lt_save_ifs 19154 if test "X$pkg" = "X$p"; then 19155 enable_static=yes 19156 fi 19157 done 19158 IFS=$lt_save_ifs 19159 ;; 19160 esac 19161else $as_nop 19162 enable_static=yes 19163fi 19164 19165 19166 19167 19168 19169 19170fi 19171 19172# Check whether --enable-warnings was given. 19173if test ${enable_warnings+y} 19174then : 19175 enableval=$enable_warnings; enable_warnings=${enableval} 19176else $as_nop 19177 enable_warnings=yes 19178fi 19179 19180 19181# Check whether --enable-symbol-hiding was given. 19182if test ${enable_symbol_hiding+y} 19183then : 19184 enableval=$enable_symbol_hiding; 19185 symbol_hiding="$enableval" 19186 if test "$symbol_hiding" = "no" -a "x$enable_shared" = "xyes" ; then 19187 case $host_os in 19188 cygwin* | mingw* | pw32* | cegcc*) 19189 as_fn_error $? "Cannot disable symbol hiding on windows" "$LINENO" 5 19190 ;; 19191 esac 19192 fi 19193 19194else $as_nop 19195 19196 if test "x$enable_shared" = "xyes" ; then 19197 symbol_hiding="maybe" 19198 else 19199 symbol_hiding="no" 19200 fi 19201 19202 19203fi 19204 19205 19206# Check whether --enable-tests was given. 19207if test ${enable_tests+y} 19208then : 19209 enableval=$enable_tests; build_tests="$enableval" 19210else $as_nop 19211 if test "x$HAVE_CXX14" = "x1" && test "x$cross_compiling" = "xno" ; then 19212 build_tests="maybe" 19213 else 19214 build_tests="no" 19215 fi 19216 19217 19218fi 19219 19220 19221# Check whether --enable-cares-threads was given. 19222if test ${enable_cares_threads+y} 19223then : 19224 enableval=$enable_cares_threads; CARES_THREADS=${enableval} 19225else $as_nop 19226 CARES_THREADS=yes 19227fi 19228 19229 19230 19231# Check whether --with-random was given. 19232if test ${with_random+y} 19233then : 19234 withval=$with_random; CARES_RANDOM_FILE="$withval" 19235else $as_nop 19236 CARES_RANDOM_FILE="/dev/urandom" 19237 19238fi 19239 19240if test -n "$CARES_RANDOM_FILE" && test X"$CARES_RANDOM_FILE" != Xno ; then 19241 19242 19243printf "%s\n" "#define CARES_RANDOM_FILE \"$CARES_RANDOM_FILE\"" >>confdefs.h 19244 19245fi 19246 19247 19248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 19249printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 19250 # Check whether --enable-maintainer-mode was given. 19251if test ${enable_maintainer_mode+y} 19252then : 19253 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 19254else $as_nop 19255 USE_MAINTAINER_MODE=no 19256fi 19257 19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 19259printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 19260 if test $USE_MAINTAINER_MODE = yes; then 19261 MAINTAINER_MODE_TRUE= 19262 MAINTAINER_MODE_FALSE='#' 19263else 19264 MAINTAINER_MODE_TRUE='#' 19265 MAINTAINER_MODE_FALSE= 19266fi 19267 19268 MAINT=$MAINTAINER_MODE_TRUE 19269 19270 19271# Check whether --enable-silent-rules was given. 19272if test ${enable_silent_rules+y} 19273then : 19274 enableval=$enable_silent_rules; 19275fi 19276 19277case $enable_silent_rules in # ((( 19278 yes) AM_DEFAULT_VERBOSITY=0;; 19279 no) AM_DEFAULT_VERBOSITY=1;; 19280 *) AM_DEFAULT_VERBOSITY=0;; 19281esac 19282am_make=${MAKE-make} 19283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19284printf %s "checking whether $am_make supports nested variables... " >&6; } 19285if test ${am_cv_make_support_nested_variables+y} 19286then : 19287 printf %s "(cached) " >&6 19288else $as_nop 19289 if printf "%s\n" 'TRUE=$(BAR$(V)) 19290BAR0=false 19291BAR1=true 19292V=1 19293am__doit: 19294 @$(TRUE) 19295.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19296 am_cv_make_support_nested_variables=yes 19297else 19298 am_cv_make_support_nested_variables=no 19299fi 19300fi 19301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19302printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19303if test $am_cv_make_support_nested_variables = yes; then 19304 AM_V='$(V)' 19305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19306else 19307 AM_V=$AM_DEFAULT_VERBOSITY 19308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19309fi 19310AM_BACKSLASH='\' 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 # allow to override gcov location 19332 19333# Check whether --with-gcov was given. 19334if test ${with_gcov+y} 19335then : 19336 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov 19337else $as_nop 19338 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov 19339fi 19340 19341 19342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5 19343printf %s "checking whether to build with code coverage support... " >&6; } 19344 # Check whether --enable-code-coverage was given. 19345if test ${enable_code_coverage+y} 19346then : 19347 enableval=$enable_code_coverage; 19348else $as_nop 19349 enable_code_coverage=no 19350fi 19351 19352 19353 if test "x$enable_code_coverage" = xyes; then 19354 CODE_COVERAGE_ENABLED_TRUE= 19355 CODE_COVERAGE_ENABLED_FALSE='#' 19356else 19357 CODE_COVERAGE_ENABLED_TRUE='#' 19358 CODE_COVERAGE_ENABLED_FALSE= 19359fi 19360 19361 CODE_COVERAGE_ENABLED=$enable_code_coverage 19362 19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5 19364printf "%s\n" "$enable_code_coverage" >&6; } 19365 19366 if test "x$enable_code_coverage" = xyes 19367then : 19368 19369 19370 for ac_prog in gawk mawk nawk awk 19371do 19372 # Extract the first word of "$ac_prog", so it can be a program name with args. 19373set dummy $ac_prog; ac_word=$2 19374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19375printf %s "checking for $ac_word... " >&6; } 19376if test ${ac_cv_prog_AWK+y} 19377then : 19378 printf %s "(cached) " >&6 19379else $as_nop 19380 if test -n "$AWK"; then 19381 ac_cv_prog_AWK="$AWK" # Let the user override the test. 19382else 19383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19384for as_dir in $PATH 19385do 19386 IFS=$as_save_IFS 19387 case $as_dir in #((( 19388 '') as_dir=./ ;; 19389 */) ;; 19390 *) as_dir=$as_dir/ ;; 19391 esac 19392 for ac_exec_ext in '' $ac_executable_extensions; do 19393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19394 ac_cv_prog_AWK="$ac_prog" 19395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19396 break 2 19397 fi 19398done 19399 done 19400IFS=$as_save_IFS 19401 19402fi 19403fi 19404AWK=$ac_cv_prog_AWK 19405if test -n "$AWK"; then 19406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 19407printf "%s\n" "$AWK" >&6; } 19408else 19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19410printf "%s\n" "no" >&6; } 19411fi 19412 19413 19414 test -n "$AWK" && break 19415done 19416 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 19418printf %s "checking for GNU make... " >&6; } 19419if test ${_cv_gnu_make_command+y} 19420then : 19421 printf %s "(cached) " >&6 19422else $as_nop 19423 _cv_gnu_make_command="" ; 19424 for a in "$MAKE" make gmake gnumake ; do 19425 if test -z "$a" ; then continue ; fi ; 19426 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then 19427 _cv_gnu_make_command=$a ; 19428 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make") 19429 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }') 19430 break ; 19431 fi 19432 done ; 19433fi 19434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 19435printf "%s\n" "$_cv_gnu_make_command" >&6; } 19436 if test "x$_cv_gnu_make_command" = x"" 19437then : 19438 ifGNUmake="#" 19439else $as_nop 19440 ifGNUmake="" 19441fi 19442 if test "x$_cv_gnu_make_command" = x"" 19443then : 19444 ifnGNUmake="" 19445else $as_nop 19446 ifnGNUmake="#" 19447fi 19448 if test "x$_cv_gnu_make_command" = x"" 19449then : 19450 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;} 19451else $as_nop 19452 ax_cv_gnu_make_command=${_cv_gnu_make_command} 19453fi 19454 if test "x$_cv_gnu_make_command" = x"" 19455then : 19456 as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5 19457fi 19458 19459 19460 19461 19462 # check for gcov 19463 if test -n "$ac_tool_prefix"; then 19464 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 19465set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 19466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19467printf %s "checking for $ac_word... " >&6; } 19468if test ${ac_cv_prog_GCOV+y} 19469then : 19470 printf %s "(cached) " >&6 19471else $as_nop 19472 if test -n "$GCOV"; then 19473 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 19474else 19475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19476for as_dir in $PATH 19477do 19478 IFS=$as_save_IFS 19479 case $as_dir in #((( 19480 '') as_dir=./ ;; 19481 */) ;; 19482 *) as_dir=$as_dir/ ;; 19483 esac 19484 for ac_exec_ext in '' $ac_executable_extensions; do 19485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19486 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 19487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19488 break 2 19489 fi 19490done 19491 done 19492IFS=$as_save_IFS 19493 19494fi 19495fi 19496GCOV=$ac_cv_prog_GCOV 19497if test -n "$GCOV"; then 19498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 19499printf "%s\n" "$GCOV" >&6; } 19500else 19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19502printf "%s\n" "no" >&6; } 19503fi 19504 19505 19506fi 19507if test -z "$ac_cv_prog_GCOV"; then 19508 ac_ct_GCOV=$GCOV 19509 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 19510set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 19511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19512printf %s "checking for $ac_word... " >&6; } 19513if test ${ac_cv_prog_ac_ct_GCOV+y} 19514then : 19515 printf %s "(cached) " >&6 19516else $as_nop 19517 if test -n "$ac_ct_GCOV"; then 19518 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 19519else 19520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19521for as_dir in $PATH 19522do 19523 IFS=$as_save_IFS 19524 case $as_dir in #((( 19525 '') as_dir=./ ;; 19526 */) ;; 19527 *) as_dir=$as_dir/ ;; 19528 esac 19529 for ac_exec_ext in '' $ac_executable_extensions; do 19530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19531 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 19532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19533 break 2 19534 fi 19535done 19536 done 19537IFS=$as_save_IFS 19538 19539fi 19540fi 19541ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 19542if test -n "$ac_ct_GCOV"; then 19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 19544printf "%s\n" "$ac_ct_GCOV" >&6; } 19545else 19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19547printf "%s\n" "no" >&6; } 19548fi 19549 19550 if test "x$ac_ct_GCOV" = x; then 19551 GCOV=":" 19552 else 19553 case $cross_compiling:$ac_tool_warned in 19554yes:) 19555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19556printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19557ac_tool_warned=yes ;; 19558esac 19559 GCOV=$ac_ct_GCOV 19560 fi 19561else 19562 GCOV="$ac_cv_prog_GCOV" 19563fi 19564 19565 if test "X$GCOV" = "X:" 19566then : 19567 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5 19568fi 19569 19570 19571 if test "$GCC" = "no" 19572then : 19573 19574 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5 19575 19576fi 19577 19578 # Extract the first word of "lcov", so it can be a program name with args. 19579set dummy lcov; ac_word=$2 19580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19581printf %s "checking for $ac_word... " >&6; } 19582if test ${ac_cv_prog_LCOV+y} 19583then : 19584 printf %s "(cached) " >&6 19585else $as_nop 19586 if test -n "$LCOV"; then 19587 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 19588else 19589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19590for as_dir in $PATH 19591do 19592 IFS=$as_save_IFS 19593 case $as_dir in #((( 19594 '') as_dir=./ ;; 19595 */) ;; 19596 *) as_dir=$as_dir/ ;; 19597 esac 19598 for ac_exec_ext in '' $ac_executable_extensions; do 19599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19600 ac_cv_prog_LCOV="lcov" 19601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19602 break 2 19603 fi 19604done 19605 done 19606IFS=$as_save_IFS 19607 19608fi 19609fi 19610LCOV=$ac_cv_prog_LCOV 19611if test -n "$LCOV"; then 19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 19613printf "%s\n" "$LCOV" >&6; } 19614else 19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19616printf "%s\n" "no" >&6; } 19617fi 19618 19619 19620 # Extract the first word of "genhtml", so it can be a program name with args. 19621set dummy genhtml; ac_word=$2 19622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19623printf %s "checking for $ac_word... " >&6; } 19624if test ${ac_cv_prog_GENHTML+y} 19625then : 19626 printf %s "(cached) " >&6 19627else $as_nop 19628 if test -n "$GENHTML"; then 19629 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 19630else 19631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19632for as_dir in $PATH 19633do 19634 IFS=$as_save_IFS 19635 case $as_dir in #((( 19636 '') as_dir=./ ;; 19637 */) ;; 19638 *) as_dir=$as_dir/ ;; 19639 esac 19640 for ac_exec_ext in '' $ac_executable_extensions; do 19641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19642 ac_cv_prog_GENHTML="genhtml" 19643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19644 break 2 19645 fi 19646done 19647 done 19648IFS=$as_save_IFS 19649 19650fi 19651fi 19652GENHTML=$ac_cv_prog_GENHTML 19653if test -n "$GENHTML"; then 19654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 19655printf "%s\n" "$GENHTML" >&6; } 19656else 19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19658printf "%s\n" "no" >&6; } 19659fi 19660 19661 19662 19663 if test x"$LCOV" = x 19664then : 19665 19666 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5 19667 19668fi 19669 19670 if test x"$GENHTML" = x 19671then : 19672 19673 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 19674 19675fi 19676 19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 19678printf %s "checking for _gcov_init in -lgcov... " >&6; } 19679if test ${ac_cv_lib_gcov__gcov_init+y} 19680then : 19681 printf %s "(cached) " >&6 19682else $as_nop 19683 ac_check_lib_save_LIBS=$LIBS 19684LIBS="-lgcov $LIBS" 19685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19686/* end confdefs.h. */ 19687 19688/* Override any GCC internal prototype to avoid an error. 19689 Use char because int might match the return type of a GCC 19690 builtin and then its argument prototype would still apply. */ 19691char _gcov_init (); 19692int 19693main (void) 19694{ 19695return _gcov_init (); 19696 ; 19697 return 0; 19698} 19699_ACEOF 19700if ac_fn_c_try_link "$LINENO" 19701then : 19702 ac_cv_lib_gcov__gcov_init=yes 19703else $as_nop 19704 ac_cv_lib_gcov__gcov_init=no 19705fi 19706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19707 conftest$ac_exeext conftest.$ac_ext 19708LIBS=$ac_check_lib_save_LIBS 19709fi 19710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 19711printf "%s\n" "$ac_cv_lib_gcov__gcov_init" >&6; } 19712if test "x$ac_cv_lib_gcov__gcov_init" = xyes 19713then : 19714 CODE_COVERAGE_LIBS="-lgcov" 19715else $as_nop 19716 CODE_COVERAGE_LIBS="" 19717fi 19718 19719 19720 CODE_COVERAGE_CPPFLAGS="-DNDEBUG" 19721 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 19722 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 19723 19724 19725 19726 19727 19728 19729 19730fi 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742# Check whether --enable-largefile was given. 19743if test ${enable_largefile+y} 19744then : 19745 enableval=$enable_largefile; 19746fi 19747 19748if test "$enable_largefile" != no; then 19749 19750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19751printf %s "checking for special C compiler options needed for large files... " >&6; } 19752if test ${ac_cv_sys_largefile_CC+y} 19753then : 19754 printf %s "(cached) " >&6 19755else $as_nop 19756 ac_cv_sys_largefile_CC=no 19757 if test "$GCC" != yes; then 19758 ac_save_CC=$CC 19759 while :; do 19760 # IRIX 6.2 and later do not support large files by default, 19761 # so use the C compiler's -n32 option if that helps. 19762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19763/* end confdefs.h. */ 19764#include <sys/types.h> 19765 /* Check that off_t can represent 2**63 - 1 correctly. 19766 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19767 since some C++ compilers masquerading as C compilers 19768 incorrectly reject 9223372036854775807. */ 19769#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19771 && LARGE_OFF_T % 2147483647 == 1) 19772 ? 1 : -1]; 19773int 19774main (void) 19775{ 19776 19777 ; 19778 return 0; 19779} 19780_ACEOF 19781 if ac_fn_c_try_compile "$LINENO" 19782then : 19783 break 19784fi 19785rm -f core conftest.err conftest.$ac_objext conftest.beam 19786 CC="$CC -n32" 19787 if ac_fn_c_try_compile "$LINENO" 19788then : 19789 ac_cv_sys_largefile_CC=' -n32'; break 19790fi 19791rm -f core conftest.err conftest.$ac_objext conftest.beam 19792 break 19793 done 19794 CC=$ac_save_CC 19795 rm -f conftest.$ac_ext 19796 fi 19797fi 19798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19799printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 19800 if test "$ac_cv_sys_largefile_CC" != no; then 19801 CC=$CC$ac_cv_sys_largefile_CC 19802 fi 19803 19804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19805printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19806if test ${ac_cv_sys_file_offset_bits+y} 19807then : 19808 printf %s "(cached) " >&6 19809else $as_nop 19810 while :; do 19811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19812/* end confdefs.h. */ 19813#include <sys/types.h> 19814 /* Check that off_t can represent 2**63 - 1 correctly. 19815 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19816 since some C++ compilers masquerading as C compilers 19817 incorrectly reject 9223372036854775807. */ 19818#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19820 && LARGE_OFF_T % 2147483647 == 1) 19821 ? 1 : -1]; 19822int 19823main (void) 19824{ 19825 19826 ; 19827 return 0; 19828} 19829_ACEOF 19830if ac_fn_c_try_compile "$LINENO" 19831then : 19832 ac_cv_sys_file_offset_bits=no; break 19833fi 19834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19836/* end confdefs.h. */ 19837#define _FILE_OFFSET_BITS 64 19838#include <sys/types.h> 19839 /* Check that off_t can represent 2**63 - 1 correctly. 19840 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19841 since some C++ compilers masquerading as C compilers 19842 incorrectly reject 9223372036854775807. */ 19843#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19845 && LARGE_OFF_T % 2147483647 == 1) 19846 ? 1 : -1]; 19847int 19848main (void) 19849{ 19850 19851 ; 19852 return 0; 19853} 19854_ACEOF 19855if ac_fn_c_try_compile "$LINENO" 19856then : 19857 ac_cv_sys_file_offset_bits=64; break 19858fi 19859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19860 ac_cv_sys_file_offset_bits=unknown 19861 break 19862done 19863fi 19864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19865printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 19866case $ac_cv_sys_file_offset_bits in #( 19867 no | unknown) ;; 19868 *) 19869printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 19870;; 19871esac 19872rm -rf conftest* 19873 if test $ac_cv_sys_file_offset_bits = unknown; then 19874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19875printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 19876if test ${ac_cv_sys_large_files+y} 19877then : 19878 printf %s "(cached) " >&6 19879else $as_nop 19880 while :; do 19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19882/* end confdefs.h. */ 19883#include <sys/types.h> 19884 /* Check that off_t can represent 2**63 - 1 correctly. 19885 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19886 since some C++ compilers masquerading as C compilers 19887 incorrectly reject 9223372036854775807. */ 19888#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19890 && LARGE_OFF_T % 2147483647 == 1) 19891 ? 1 : -1]; 19892int 19893main (void) 19894{ 19895 19896 ; 19897 return 0; 19898} 19899_ACEOF 19900if ac_fn_c_try_compile "$LINENO" 19901then : 19902 ac_cv_sys_large_files=no; break 19903fi 19904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19906/* end confdefs.h. */ 19907#define _LARGE_FILES 1 19908#include <sys/types.h> 19909 /* Check that off_t can represent 2**63 - 1 correctly. 19910 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19911 since some C++ compilers masquerading as C compilers 19912 incorrectly reject 9223372036854775807. */ 19913#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19915 && LARGE_OFF_T % 2147483647 == 1) 19916 ? 1 : -1]; 19917int 19918main (void) 19919{ 19920 19921 ; 19922 return 0; 19923} 19924_ACEOF 19925if ac_fn_c_try_compile "$LINENO" 19926then : 19927 ac_cv_sys_large_files=1; break 19928fi 19929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19930 ac_cv_sys_large_files=unknown 19931 break 19932done 19933fi 19934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 19935printf "%s\n" "$ac_cv_sys_large_files" >&6; } 19936case $ac_cv_sys_large_files in #( 19937 no | unknown) ;; 19938 *) 19939printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 19940;; 19941esac 19942rm -rf conftest* 19943 fi 19944fi 19945 19946 19947case $host_os in 19948 solaris*) 19949 19950printf "%s\n" "#define ETC_INET 1" >>confdefs.h 19951 19952 ;; 19953esac 19954 19955case $host_os in 19956 solaris2*) 19957 if test "x$GCC" = 'xyes'; then 19958 19959 19960 19961 19962for flag in -mimpure-text; do 19963 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh` 19964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 19965printf %s "checking whether the linker accepts $flag... " >&6; } 19966if eval test \${$as_CACHEVAR+y} 19967then : 19968 printf %s "(cached) " >&6 19969else $as_nop 19970 19971 ax_check_save_flags=$LDFLAGS 19972 LDFLAGS="$LDFLAGS $flag" 19973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19974/* end confdefs.h. */ 19975 19976int 19977main (void) 19978{ 19979 19980 ; 19981 return 0; 19982} 19983_ACEOF 19984if ac_fn_c_try_link "$LINENO" 19985then : 19986 eval "$as_CACHEVAR=yes" 19987else $as_nop 19988 eval "$as_CACHEVAR=no" 19989fi 19990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19991 conftest$ac_exeext conftest.$ac_ext 19992 LDFLAGS=$ax_check_save_flags 19993fi 19994eval ac_res=\$$as_CACHEVAR 19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19996printf "%s\n" "$ac_res" >&6; } 19997if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 19998then : 19999 20000if test ${LDFLAGS+y} 20001then : 20002 20003 case " $LDFLAGS " in #( 20004 *" $flag "*) : 20005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5 20006 (: LDFLAGS already contains $flag) 2>&5 20007 ac_status=$? 20008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20009 test $ac_status = 0; } ;; #( 20010 *) : 20011 20012 as_fn_append LDFLAGS " $flag" 20013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5 20014 (: LDFLAGS="$LDFLAGS") 2>&5 20015 ac_status=$? 20016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20017 test $ac_status = 0; } 20018 ;; 20019esac 20020 20021else $as_nop 20022 20023 LDFLAGS=$flag 20024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5 20025 (: LDFLAGS="$LDFLAGS") 2>&5 20026 ac_status=$? 20027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20028 test $ac_status = 0; } 20029 20030fi 20031 20032else $as_nop 20033 : 20034fi 20035 20036done 20037 20038 fi 20039 ;; 20040 *) 20041 ;; 20042esac 20043 20044cares_use_no_undefined=no 20045case $host_os in 20046 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*) 20047 cares_use_no_undefined=yes 20048 ;; 20049 *) 20050 ;; 20051esac 20052 if test "$cares_use_no_undefined" = 'yes'; then 20053 CARES_USE_NO_UNDEFINED_TRUE= 20054 CARES_USE_NO_UNDEFINED_FALSE='#' 20055else 20056 CARES_USE_NO_UNDEFINED_TRUE='#' 20057 CARES_USE_NO_UNDEFINED_FALSE= 20058fi 20059 20060 20061 20062if test "$ac_cv_native_windows" = "yes" ; then 20063 AM_CPPFLAGS="$AM_CPPFLAGS -D_WIN32_WINNT=0x0602 -DWIN32_LEAN_AND_MEAN" 20064fi 20065 20066if test "$ac_cv_native_windows" = "yes" -a "x$enable_shared" = "xyes" -a "x$enable_static" = "xyes" ; then 20067 as_fn_error $? "Windows cannot build both static and shared simultaneously, specify --disable-shared or --disable-static" "$LINENO" 5 20068fi 20069 20070if test "x$enable_shared" = "xno" -a "x$enable_static" = "xyes" ; then 20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need CARES_STATICLIB definition" >&5 20072printf %s "checking whether we need CARES_STATICLIB definition... " >&6; } 20073 if test "$ac_cv_native_windows" = "yes" ; then 20074 20075if test ${AM_CPPFLAGS+y} 20076then : 20077 20078 case " $AM_CPPFLAGS " in #( 20079 *" -DCARES_STATICLIB "*) : 20080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains -DCARES_STATICLIB"; } >&5 20081 (: AM_CPPFLAGS already contains -DCARES_STATICLIB) 2>&5 20082 ac_status=$? 20083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20084 test $ac_status = 0; } ;; #( 20085 *) : 20086 20087 as_fn_append AM_CPPFLAGS " -DCARES_STATICLIB" 20088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5 20089 (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5 20090 ac_status=$? 20091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20092 test $ac_status = 0; } 20093 ;; 20094esac 20095 20096else $as_nop 20097 20098 AM_CPPFLAGS=-DCARES_STATICLIB 20099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5 20100 (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5 20101 ac_status=$? 20102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20103 test $ac_status = 0; } 20104 20105fi 20106 20107 PKGCONFIG_CFLAGS="-DCARES_STATICLIB" 20108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20109printf "%s\n" "yes" >&6; } 20110 else 20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20112printf "%s\n" "no" >&6; } 20113 fi 20114fi 20115 20116CARES_SYMBOL_HIDING_CFLAG="" 20117if test "$symbol_hiding" != "no" ; then 20118 compiler_supports_symbol_hiding="no" 20119 if test "$ac_cv_windows" = "yes" ; then 20120 compiler_supports_symbol_hiding="yes" 20121 else 20122 case "$ax_cv_c_compiler_vendor" in 20123 clang|gnu|intel) 20124 20125 20126 20127 20128for flag in -fvisibility=hidden; do 20129 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh` 20130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20131printf %s "checking whether the C compiler accepts $flag... " >&6; } 20132if eval test \${$as_CACHEVAR+y} 20133then : 20134 printf %s "(cached) " >&6 20135else $as_nop 20136 20137 ax_check_save_flags=$CFLAGS 20138 if test x"$GCC" = xyes ; then 20139 add_gnu_werror="-Werror" 20140 fi 20141 CFLAGS="$CFLAGS $flag $add_gnu_werror" 20142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20143/* end confdefs.h. */ 20144 20145int 20146main (void) 20147{ 20148 20149 ; 20150 return 0; 20151} 20152_ACEOF 20153if ac_fn_c_try_compile "$LINENO" 20154then : 20155 eval "$as_CACHEVAR=yes" 20156else $as_nop 20157 eval "$as_CACHEVAR=no" 20158fi 20159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20160 CFLAGS=$ax_check_save_flags 20161fi 20162eval ac_res=\$$as_CACHEVAR 20163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20164printf "%s\n" "$ac_res" >&6; } 20165if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20166then : 20167 20168if test ${CARES_SYMBOL_HIDING_CFLAG+y} 20169then : 20170 20171 case " $CARES_SYMBOL_HIDING_CFLAG " in #( 20172 *" $flag "*) : 20173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG already contains \$flag"; } >&5 20174 (: CARES_SYMBOL_HIDING_CFLAG already contains $flag) 2>&5 20175 ac_status=$? 20176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20177 test $ac_status = 0; } ;; #( 20178 *) : 20179 20180 as_fn_append CARES_SYMBOL_HIDING_CFLAG " $flag" 20181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG=\"\$CARES_SYMBOL_HIDING_CFLAG\""; } >&5 20182 (: CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG") 2>&5 20183 ac_status=$? 20184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20185 test $ac_status = 0; } 20186 ;; 20187esac 20188 20189else $as_nop 20190 20191 CARES_SYMBOL_HIDING_CFLAG=$flag 20192 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG=\"\$CARES_SYMBOL_HIDING_CFLAG\""; } >&5 20193 (: CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG") 2>&5 20194 ac_status=$? 20195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20196 test $ac_status = 0; } 20197 20198fi 20199 20200else $as_nop 20201 : 20202fi 20203 20204done 20205 20206 if test "x$CARES_SYMBOL_HIDING_CFLAG" != "x" ; then 20207 compiler_supports_symbol_hiding="yes" 20208 fi 20209 ;; 20210 sun) 20211 20212 20213 20214 20215for flag in -xldscope=hidden; do 20216 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh` 20217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20218printf %s "checking whether the C compiler accepts $flag... " >&6; } 20219if eval test \${$as_CACHEVAR+y} 20220then : 20221 printf %s "(cached) " >&6 20222else $as_nop 20223 20224 ax_check_save_flags=$CFLAGS 20225 if test x"$GCC" = xyes ; then 20226 add_gnu_werror="-Werror" 20227 fi 20228 CFLAGS="$CFLAGS $flag $add_gnu_werror" 20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20230/* end confdefs.h. */ 20231 20232int 20233main (void) 20234{ 20235 20236 ; 20237 return 0; 20238} 20239_ACEOF 20240if ac_fn_c_try_compile "$LINENO" 20241then : 20242 eval "$as_CACHEVAR=yes" 20243else $as_nop 20244 eval "$as_CACHEVAR=no" 20245fi 20246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20247 CFLAGS=$ax_check_save_flags 20248fi 20249eval ac_res=\$$as_CACHEVAR 20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20251printf "%s\n" "$ac_res" >&6; } 20252if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20253then : 20254 20255if test ${CARES_SYMBOL_HIDING_CFLAG+y} 20256then : 20257 20258 case " $CARES_SYMBOL_HIDING_CFLAG " in #( 20259 *" $flag "*) : 20260 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG already contains \$flag"; } >&5 20261 (: CARES_SYMBOL_HIDING_CFLAG already contains $flag) 2>&5 20262 ac_status=$? 20263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20264 test $ac_status = 0; } ;; #( 20265 *) : 20266 20267 as_fn_append CARES_SYMBOL_HIDING_CFLAG " $flag" 20268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG=\"\$CARES_SYMBOL_HIDING_CFLAG\""; } >&5 20269 (: CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG") 2>&5 20270 ac_status=$? 20271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20272 test $ac_status = 0; } 20273 ;; 20274esac 20275 20276else $as_nop 20277 20278 CARES_SYMBOL_HIDING_CFLAG=$flag 20279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CARES_SYMBOL_HIDING_CFLAG=\"\$CARES_SYMBOL_HIDING_CFLAG\""; } >&5 20280 (: CARES_SYMBOL_HIDING_CFLAG="$CARES_SYMBOL_HIDING_CFLAG") 2>&5 20281 ac_status=$? 20282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20283 test $ac_status = 0; } 20284 20285fi 20286 20287else $as_nop 20288 : 20289fi 20290 20291done 20292 20293 if test "x$CARES_SYMBOL_HIDING_CFLAG" != "x" ; then 20294 compiler_supports_symbol_hiding="yes" 20295 fi 20296 ;; 20297 esac 20298 fi 20299 if test "$compiler_supports_symbol_hiding" = "no" ; then 20300 if test "$symbol_hiding" = "yes" ; then 20301 as_fn_error $? "Compiler does not support symbol hiding" "$LINENO" 5 20302 else 20303 symbol_hiding="no" 20304 fi 20305 else 20306 20307printf "%s\n" "#define CARES_SYMBOL_HIDING 1 " >>confdefs.h 20308 20309 symbol_hiding="yes" 20310 fi 20311fi 20312 if test "x$symbol_hiding" = "xyes"; then 20313 CARES_SYMBOL_HIDING_TRUE= 20314 CARES_SYMBOL_HIDING_FALSE='#' 20315else 20316 CARES_SYMBOL_HIDING_TRUE='#' 20317 CARES_SYMBOL_HIDING_FALSE= 20318fi 20319 20320 20321 20322 20323if test "$enable_warnings" = "yes"; then 20324 20325 20326 20327 20328for flag in -Wall -Wextra -Waggregate-return -Wcast-align -Wcast-qual -Wconversion -Wdeclaration-after-statement -Wdouble-promotion -Wfloat-equal -Wformat-security -Winit-self -Wjump-misses-init -Wlogical-op -Wmissing-braces -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wno-coverage-mismatch -Wold-style-definition -Wpacked -Wpedantic -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-conversion -Wstrict-overflow -Wstrict-prototypes -Wtrampolines -Wundef -Wunreachable-code -Wunused -Wvariadic-macros -Wvla -Wwrite-strings -Werror=implicit-int -Werror=implicit-function-declaration -Werror=partial-availability -Wno-long-long ; do 20329 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh` 20330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20331printf %s "checking whether the C compiler accepts $flag... " >&6; } 20332if eval test \${$as_CACHEVAR+y} 20333then : 20334 printf %s "(cached) " >&6 20335else $as_nop 20336 20337 ax_check_save_flags=$CFLAGS 20338 if test x"$GCC" = xyes ; then 20339 add_gnu_werror="-Werror" 20340 fi 20341 CFLAGS="$CFLAGS -Werror $flag $add_gnu_werror" 20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20343/* end confdefs.h. */ 20344 20345int 20346main (void) 20347{ 20348 20349 ; 20350 return 0; 20351} 20352_ACEOF 20353if ac_fn_c_try_compile "$LINENO" 20354then : 20355 eval "$as_CACHEVAR=yes" 20356else $as_nop 20357 eval "$as_CACHEVAR=no" 20358fi 20359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20360 CFLAGS=$ax_check_save_flags 20361fi 20362eval ac_res=\$$as_CACHEVAR 20363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20364printf "%s\n" "$ac_res" >&6; } 20365if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20366then : 20367 20368if test ${AM_CFLAGS+y} 20369then : 20370 20371 case " $AM_CFLAGS " in #( 20372 *" $flag "*) : 20373 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5 20374 (: AM_CFLAGS already contains $flag) 2>&5 20375 ac_status=$? 20376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20377 test $ac_status = 0; } ;; #( 20378 *) : 20379 20380 as_fn_append AM_CFLAGS " $flag" 20381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20382 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20383 ac_status=$? 20384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20385 test $ac_status = 0; } 20386 ;; 20387esac 20388 20389else $as_nop 20390 20391 AM_CFLAGS=$flag 20392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20393 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20394 ac_status=$? 20395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20396 test $ac_status = 0; } 20397 20398fi 20399 20400else $as_nop 20401 : 20402fi 20403 20404done 20405 20406fi 20407 20408case $host_os in 20409 *qnx*|*android*) 20410 20411 20412 20413 20414for flag in -std=c99; do 20415 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh` 20416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20417printf %s "checking whether the C compiler accepts $flag... " >&6; } 20418if eval test \${$as_CACHEVAR+y} 20419then : 20420 printf %s "(cached) " >&6 20421else $as_nop 20422 20423 ax_check_save_flags=$CFLAGS 20424 if test x"$GCC" = xyes ; then 20425 add_gnu_werror="-Werror" 20426 fi 20427 CFLAGS="$CFLAGS -Werror $flag $add_gnu_werror" 20428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20429/* end confdefs.h. */ 20430 20431int 20432main (void) 20433{ 20434 20435 ; 20436 return 0; 20437} 20438_ACEOF 20439if ac_fn_c_try_compile "$LINENO" 20440then : 20441 eval "$as_CACHEVAR=yes" 20442else $as_nop 20443 eval "$as_CACHEVAR=no" 20444fi 20445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20446 CFLAGS=$ax_check_save_flags 20447fi 20448eval ac_res=\$$as_CACHEVAR 20449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20450printf "%s\n" "$ac_res" >&6; } 20451if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20452then : 20453 20454if test ${AM_CFLAGS+y} 20455then : 20456 20457 case " $AM_CFLAGS " in #( 20458 *" $flag "*) : 20459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5 20460 (: AM_CFLAGS already contains $flag) 2>&5 20461 ac_status=$? 20462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20463 test $ac_status = 0; } ;; #( 20464 *) : 20465 20466 as_fn_append AM_CFLAGS " $flag" 20467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20468 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20469 ac_status=$? 20470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20471 test $ac_status = 0; } 20472 ;; 20473esac 20474 20475else $as_nop 20476 20477 AM_CFLAGS=$flag 20478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20479 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20480 ac_status=$? 20481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20482 test $ac_status = 0; } 20483 20484fi 20485 20486else $as_nop 20487 : 20488fi 20489 20490done 20491 20492 ;; 20493 *) 20494 20495 20496 20497 20498for flag in -std=c90; do 20499 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh` 20500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20501printf %s "checking whether the C compiler accepts $flag... " >&6; } 20502if eval test \${$as_CACHEVAR+y} 20503then : 20504 printf %s "(cached) " >&6 20505else $as_nop 20506 20507 ax_check_save_flags=$CFLAGS 20508 if test x"$GCC" = xyes ; then 20509 add_gnu_werror="-Werror" 20510 fi 20511 CFLAGS="$CFLAGS -Werror $flag $add_gnu_werror" 20512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20513/* end confdefs.h. */ 20514 20515int 20516main (void) 20517{ 20518 20519 ; 20520 return 0; 20521} 20522_ACEOF 20523if ac_fn_c_try_compile "$LINENO" 20524then : 20525 eval "$as_CACHEVAR=yes" 20526else $as_nop 20527 eval "$as_CACHEVAR=no" 20528fi 20529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20530 CFLAGS=$ax_check_save_flags 20531fi 20532eval ac_res=\$$as_CACHEVAR 20533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20534printf "%s\n" "$ac_res" >&6; } 20535if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20536then : 20537 20538if test ${AM_CFLAGS+y} 20539then : 20540 20541 case " $AM_CFLAGS " in #( 20542 *" $flag "*) : 20543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5 20544 (: AM_CFLAGS already contains $flag) 2>&5 20545 ac_status=$? 20546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20547 test $ac_status = 0; } ;; #( 20548 *) : 20549 20550 as_fn_append AM_CFLAGS " $flag" 20551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20552 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20553 ac_status=$? 20554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20555 test $ac_status = 0; } 20556 ;; 20557esac 20558 20559else $as_nop 20560 20561 AM_CFLAGS=$flag 20562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20563 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20564 ac_status=$? 20565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20566 test $ac_status = 0; } 20567 20568fi 20569 20570else $as_nop 20571 : 20572fi 20573 20574done 20575 20576 ;; 20577esac 20578 20579case $host_os in 20580 *qnx*) 20581 20582 20583 20584 20585for flag in -D_QNX_SOURCE; do 20586 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_-Werror_$flag" | $as_tr_sh` 20587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20588printf %s "checking whether the C compiler accepts $flag... " >&6; } 20589if eval test \${$as_CACHEVAR+y} 20590then : 20591 printf %s "(cached) " >&6 20592else $as_nop 20593 20594 ax_check_save_flags=$CFLAGS 20595 if test x"$GCC" = xyes ; then 20596 add_gnu_werror="-Werror" 20597 fi 20598 CFLAGS="$CFLAGS -Werror $flag $add_gnu_werror" 20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20600/* end confdefs.h. */ 20601 20602int 20603main (void) 20604{ 20605 20606 ; 20607 return 0; 20608} 20609_ACEOF 20610if ac_fn_c_try_compile "$LINENO" 20611then : 20612 eval "$as_CACHEVAR=yes" 20613else $as_nop 20614 eval "$as_CACHEVAR=no" 20615fi 20616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20617 CFLAGS=$ax_check_save_flags 20618fi 20619eval ac_res=\$$as_CACHEVAR 20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20621printf "%s\n" "$ac_res" >&6; } 20622if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20623then : 20624 20625if test ${AM_CPPFLAGS+y} 20626then : 20627 20628 case " $AM_CPPFLAGS " in #( 20629 *" $flag "*) : 20630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS already contains \$flag"; } >&5 20631 (: AM_CPPFLAGS already contains $flag) 2>&5 20632 ac_status=$? 20633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20634 test $ac_status = 0; } ;; #( 20635 *) : 20636 20637 as_fn_append AM_CPPFLAGS " $flag" 20638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5 20639 (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5 20640 ac_status=$? 20641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20642 test $ac_status = 0; } 20643 ;; 20644esac 20645 20646else $as_nop 20647 20648 AM_CPPFLAGS=$flag 20649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CPPFLAGS=\"\$AM_CPPFLAGS\""; } >&5 20650 (: AM_CPPFLAGS="$AM_CPPFLAGS") 2>&5 20651 ac_status=$? 20652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20653 test $ac_status = 0; } 20654 20655fi 20656 20657else $as_nop 20658 : 20659fi 20660 20661done 20662 20663 ;; 20664esac 20665 20666if test "$ax_cv_c_compiler_vendor" = "intel"; then 20667 20668 20669 20670 20671for flag in -shared-intel; do 20672 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh` 20673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 20674printf %s "checking whether the C compiler accepts $flag... " >&6; } 20675if eval test \${$as_CACHEVAR+y} 20676then : 20677 printf %s "(cached) " >&6 20678else $as_nop 20679 20680 ax_check_save_flags=$CFLAGS 20681 if test x"$GCC" = xyes ; then 20682 add_gnu_werror="-Werror" 20683 fi 20684 CFLAGS="$CFLAGS $flag $add_gnu_werror" 20685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20686/* end confdefs.h. */ 20687 20688int 20689main (void) 20690{ 20691 20692 ; 20693 return 0; 20694} 20695_ACEOF 20696if ac_fn_c_try_compile "$LINENO" 20697then : 20698 eval "$as_CACHEVAR=yes" 20699else $as_nop 20700 eval "$as_CACHEVAR=no" 20701fi 20702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20703 CFLAGS=$ax_check_save_flags 20704fi 20705eval ac_res=\$$as_CACHEVAR 20706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20707printf "%s\n" "$ac_res" >&6; } 20708if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 20709then : 20710 20711if test ${AM_CFLAGS+y} 20712then : 20713 20714 case " $AM_CFLAGS " in #( 20715 *" $flag "*) : 20716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains \$flag"; } >&5 20717 (: AM_CFLAGS already contains $flag) 2>&5 20718 ac_status=$? 20719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20720 test $ac_status = 0; } ;; #( 20721 *) : 20722 20723 as_fn_append AM_CFLAGS " $flag" 20724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20725 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20726 ac_status=$? 20727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20728 test $ac_status = 0; } 20729 ;; 20730esac 20731 20732else $as_nop 20733 20734 AM_CFLAGS=$flag 20735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5 20736 (: AM_CFLAGS="$AM_CFLAGS") 2>&5 20737 ac_status=$? 20738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20739 test $ac_status = 0; } 20740 20741fi 20742 20743else $as_nop 20744 : 20745fi 20746 20747done 20748 20749fi 20750 20751if test "$ac_cv_native_windows" = "yes" ; then 20752 20753 ac_ext=c 20754ac_cpp='$CPP $CPPFLAGS' 20755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20757ac_compiler_gnu=$ac_cv_c_compiler_gnu 20758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20759printf %s "checking how to run the C preprocessor... " >&6; } 20760# On Suns, sometimes $CPP names a directory. 20761if test -n "$CPP" && test -d "$CPP"; then 20762 CPP= 20763fi 20764if test -z "$CPP"; then 20765 if test ${ac_cv_prog_CPP+y} 20766then : 20767 printf %s "(cached) " >&6 20768else $as_nop 20769 # Double quotes because $CC needs to be expanded 20770 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20771 do 20772 ac_preproc_ok=false 20773for ac_c_preproc_warn_flag in '' yes 20774do 20775 # Use a header file that comes with gcc, so configuring glibc 20776 # with a fresh cross-compiler works. 20777 # On the NeXT, cc -E runs the code through the compiler's parser, 20778 # not just through cpp. "Syntax error" is here to catch this case. 20779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20780/* end confdefs.h. */ 20781#include <limits.h> 20782 Syntax error 20783_ACEOF 20784if ac_fn_c_try_cpp "$LINENO" 20785then : 20786 20787else $as_nop 20788 # Broken: fails on valid input. 20789continue 20790fi 20791rm -f conftest.err conftest.i conftest.$ac_ext 20792 20793 # OK, works on sane cases. Now check whether nonexistent headers 20794 # can be detected and how. 20795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20796/* end confdefs.h. */ 20797#include <ac_nonexistent.h> 20798_ACEOF 20799if ac_fn_c_try_cpp "$LINENO" 20800then : 20801 # Broken: success on invalid input. 20802continue 20803else $as_nop 20804 # Passes both tests. 20805ac_preproc_ok=: 20806break 20807fi 20808rm -f conftest.err conftest.i conftest.$ac_ext 20809 20810done 20811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20812rm -f conftest.i conftest.err conftest.$ac_ext 20813if $ac_preproc_ok 20814then : 20815 break 20816fi 20817 20818 done 20819 ac_cv_prog_CPP=$CPP 20820 20821fi 20822 CPP=$ac_cv_prog_CPP 20823else 20824 ac_cv_prog_CPP=$CPP 20825fi 20826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20827printf "%s\n" "$CPP" >&6; } 20828ac_preproc_ok=false 20829for ac_c_preproc_warn_flag in '' yes 20830do 20831 # Use a header file that comes with gcc, so configuring glibc 20832 # with a fresh cross-compiler works. 20833 # On the NeXT, cc -E runs the code through the compiler's parser, 20834 # not just through cpp. "Syntax error" is here to catch this case. 20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20836/* end confdefs.h. */ 20837#include <limits.h> 20838 Syntax error 20839_ACEOF 20840if ac_fn_c_try_cpp "$LINENO" 20841then : 20842 20843else $as_nop 20844 # Broken: fails on valid input. 20845continue 20846fi 20847rm -f conftest.err conftest.i conftest.$ac_ext 20848 20849 # OK, works on sane cases. Now check whether nonexistent headers 20850 # can be detected and how. 20851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20852/* end confdefs.h. */ 20853#include <ac_nonexistent.h> 20854_ACEOF 20855if ac_fn_c_try_cpp "$LINENO" 20856then : 20857 # Broken: success on invalid input. 20858continue 20859else $as_nop 20860 # Passes both tests. 20861ac_preproc_ok=: 20862break 20863fi 20864rm -f conftest.err conftest.i conftest.$ac_ext 20865 20866done 20867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20868rm -f conftest.i conftest.err conftest.$ac_ext 20869if $ac_preproc_ok 20870then : 20871 20872else $as_nop 20873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20874printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20875as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20876See \`config.log' for more details" "$LINENO" 5; } 20877fi 20878 20879ac_ext=c 20880ac_cpp='$CPP $CPPFLAGS' 20881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20883ac_compiler_gnu=$ac_cv_c_compiler_gnu 20884 20885 20886ac_fn_c_check_header_preproc "$LINENO" "windows.h" "ac_cv_header_windows_h" 20887if test "x$ac_cv_header_windows_h" = xyes 20888then : 20889 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 20890 20891fi 20892ac_fn_c_check_header_preproc "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" 20893if test "x$ac_cv_header_winsock2_h" = xyes 20894then : 20895 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 20896 20897fi 20898ac_fn_c_check_header_preproc "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" 20899if test "x$ac_cv_header_ws2tcpip_h" = xyes 20900then : 20901 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 20902 20903fi 20904ac_fn_c_check_header_preproc "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" 20905if test "x$ac_cv_header_iphlpapi_h" = xyes 20906then : 20907 printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h 20908 20909fi 20910ac_fn_c_check_header_preproc "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" 20911if test "x$ac_cv_header_netioapi_h" = xyes 20912then : 20913 printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h 20914 20915fi 20916ac_fn_c_check_header_preproc "$LINENO" "ws2ipdef.h" "ac_cv_header_ws2ipdef_h" 20917if test "x$ac_cv_header_ws2ipdef_h" = xyes 20918then : 20919 printf "%s\n" "#define HAVE_WS2IPDEF_H 1" >>confdefs.h 20920 20921fi 20922ac_fn_c_check_header_preproc "$LINENO" "winternl.h" "ac_cv_header_winternl_h" 20923if test "x$ac_cv_header_winternl_h" = xyes 20924then : 20925 printf "%s\n" "#define HAVE_WINTERNL_H 1" >>confdefs.h 20926 20927fi 20928ac_fn_c_check_header_preproc "$LINENO" "ntdef.h" "ac_cv_header_ntdef_h" 20929if test "x$ac_cv_header_ntdef_h" = xyes 20930then : 20931 printf "%s\n" "#define HAVE_NTDEF_H 1" >>confdefs.h 20932 20933fi 20934ac_fn_c_check_header_preproc "$LINENO" "ntstatus.h" "ac_cv_header_ntstatus_h" 20935if test "x$ac_cv_header_ntstatus_h" = xyes 20936then : 20937 printf "%s\n" "#define HAVE_NTSTATUS_H 1" >>confdefs.h 20938 20939fi 20940ac_fn_c_check_header_preproc "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" 20941if test "x$ac_cv_header_mswsock_h" = xyes 20942then : 20943 printf "%s\n" "#define HAVE_MSWSOCK_H 1" >>confdefs.h 20944 20945fi 20946 20947 20948 if test "$ac_cv_header_winsock2_h" = "yes"; then 20949 LIBS="$LIBS -lws2_32 -liphlpapi" 20950 fi 20951fi 20952 20953 20954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyport" >&5 20955printf %s "checking for library containing getservbyport... " >&6; } 20956if test ${ac_cv_search_getservbyport+y} 20957then : 20958 printf %s "(cached) " >&6 20959else $as_nop 20960 ac_func_search_save_LIBS=$LIBS 20961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20962/* end confdefs.h. */ 20963 20964/* Override any GCC internal prototype to avoid an error. 20965 Use char because int might match the return type of a GCC 20966 builtin and then its argument prototype would still apply. */ 20967char getservbyport (); 20968int 20969main (void) 20970{ 20971return getservbyport (); 20972 ; 20973 return 0; 20974} 20975_ACEOF 20976for ac_lib in '' nsl socket resolv 20977do 20978 if test -z "$ac_lib"; then 20979 ac_res="none required" 20980 else 20981 ac_res=-l$ac_lib 20982 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20983 fi 20984 if ac_fn_c_try_link "$LINENO" 20985then : 20986 ac_cv_search_getservbyport=$ac_res 20987fi 20988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20989 conftest$ac_exeext 20990 if test ${ac_cv_search_getservbyport+y} 20991then : 20992 break 20993fi 20994done 20995if test ${ac_cv_search_getservbyport+y} 20996then : 20997 20998else $as_nop 20999 ac_cv_search_getservbyport=no 21000fi 21001rm conftest.$ac_ext 21002LIBS=$ac_func_search_save_LIBS 21003fi 21004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyport" >&5 21005printf "%s\n" "$ac_cv_search_getservbyport" >&6; } 21006ac_res=$ac_cv_search_getservbyport 21007if test "$ac_res" != no 21008then : 21009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21010 21011fi 21012 21013 21014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libxnet is required" >&5 21015printf %s "checking if libxnet is required... " >&6; } 21016need_xnet=no 21017case $host_os in 21018 hpux*) 21019 XNET_LIBS="" 21020 21021 21022 21023 21024for flag in -lxnet; do 21025 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh` 21026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 21027printf %s "checking whether the linker accepts $flag... " >&6; } 21028if eval test \${$as_CACHEVAR+y} 21029then : 21030 printf %s "(cached) " >&6 21031else $as_nop 21032 21033 ax_check_save_flags=$LDFLAGS 21034 LDFLAGS="$LDFLAGS $flag" 21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21036/* end confdefs.h. */ 21037 21038int 21039main (void) 21040{ 21041 21042 ; 21043 return 0; 21044} 21045_ACEOF 21046if ac_fn_c_try_link "$LINENO" 21047then : 21048 eval "$as_CACHEVAR=yes" 21049else $as_nop 21050 eval "$as_CACHEVAR=no" 21051fi 21052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21053 conftest$ac_exeext conftest.$ac_ext 21054 LDFLAGS=$ax_check_save_flags 21055fi 21056eval ac_res=\$$as_CACHEVAR 21057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21058printf "%s\n" "$ac_res" >&6; } 21059if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 21060then : 21061 21062if test ${XNET_LIBS+y} 21063then : 21064 21065 case " $XNET_LIBS " in #( 21066 *" $flag "*) : 21067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : XNET_LIBS already contains \$flag"; } >&5 21068 (: XNET_LIBS already contains $flag) 2>&5 21069 ac_status=$? 21070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21071 test $ac_status = 0; } ;; #( 21072 *) : 21073 21074 as_fn_append XNET_LIBS " $flag" 21075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : XNET_LIBS=\"\$XNET_LIBS\""; } >&5 21076 (: XNET_LIBS="$XNET_LIBS") 2>&5 21077 ac_status=$? 21078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21079 test $ac_status = 0; } 21080 ;; 21081esac 21082 21083else $as_nop 21084 21085 XNET_LIBS=$flag 21086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : XNET_LIBS=\"\$XNET_LIBS\""; } >&5 21087 (: XNET_LIBS="$XNET_LIBS") 2>&5 21088 ac_status=$? 21089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21090 test $ac_status = 0; } 21091 21092fi 21093 21094else $as_nop 21095 : 21096fi 21097 21098done 21099 21100 if test "x$XNET_LIBS" != "x" ; then 21101 LIBS="$LIBS $XNET_LIBS" 21102 need_xnet=yes 21103 fi 21104 ;; 21105esac 21106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_xnet" >&5 21107printf "%s\n" "$need_xnet" >&6; } 21108 21109if test "x$host_vendor" = "xibm" -a "x$host_os" = "xopenedition" 21110then : 21111 21112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 21113printf %s "checking for library containing res_init... " >&6; } 21114if test ${ac_cv_search_res_init+y} 21115then : 21116 printf %s "(cached) " >&6 21117else $as_nop 21118 ac_func_search_save_LIBS=$LIBS 21119cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21120/* end confdefs.h. */ 21121 21122/* Override any GCC internal prototype to avoid an error. 21123 Use char because int might match the return type of a GCC 21124 builtin and then its argument prototype would still apply. */ 21125char res_init (); 21126int 21127main (void) 21128{ 21129return res_init (); 21130 ; 21131 return 0; 21132} 21133_ACEOF 21134for ac_lib in '' resolv 21135do 21136 if test -z "$ac_lib"; then 21137 ac_res="none required" 21138 else 21139 ac_res=-l$ac_lib 21140 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21141 fi 21142 if ac_fn_c_try_link "$LINENO" 21143then : 21144 ac_cv_search_res_init=$ac_res 21145fi 21146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21147 conftest$ac_exeext 21148 if test ${ac_cv_search_res_init+y} 21149then : 21150 break 21151fi 21152done 21153if test ${ac_cv_search_res_init+y} 21154then : 21155 21156else $as_nop 21157 ac_cv_search_res_init=no 21158fi 21159rm conftest.$ac_ext 21160LIBS=$ac_func_search_save_LIBS 21161fi 21162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 21163printf "%s\n" "$ac_cv_search_res_init" >&6; } 21164ac_res=$ac_cv_search_res_init 21165if test "$ac_res" != no 21166then : 21167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21168 21169 21170printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h 21171 21172 21173else $as_nop 21174 21175 as_fn_error $? "Unable to find libresolv which is required for z/OS" "$LINENO" 5 21176 21177fi 21178 21179 21180fi 21181 21182 21183if test "x$host_vendor" = "xapple" 21184then : 21185 21186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5 21187printf %s "checking for iOS minimum version 10 or later... " >&6; } 21188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21189/* end confdefs.h. */ 21190 21191 21192#include <stdio.h> 21193#include <AvailabilityMacros.h> 21194#include <TargetConditionals.h> 21195 21196int 21197main (void) 21198{ 21199 21200#if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000 21201#error Not iOS 10 or later 21202#endif 21203return 0; 21204 21205 ; 21206 return 0; 21207} 21208 21209_ACEOF 21210if ac_fn_c_try_compile "$LINENO" 21211then : 21212 21213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21214printf "%s\n" "yes" >&6; } 21215 ac_cv_ios_10="yes" 21216 21217else $as_nop 21218 21219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21220printf "%s\n" "no" >&6; } 21221 21222fi 21223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21224 21225fi 21226 21227if test "x$host_vendor" = "xapple" 21228then : 21229 21230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5 21231printf %s "checking for macOS minimum version 10.12 or later... " >&6; } 21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21233/* end confdefs.h. */ 21234 21235 21236#include <stdio.h> 21237#include <AvailabilityMacros.h> 21238#include <TargetConditionals.h> 21239 21240int 21241main (void) 21242{ 21243 21244#ifndef MAC_OS_X_VERSION_10_12 21245# define MAC_OS_X_VERSION_10_12 101200 21246#endif 21247#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 21248#error Not macOS 10.12 or later 21249#endif 21250return 0; 21251 21252 ; 21253 return 0; 21254} 21255 21256_ACEOF 21257if ac_fn_c_try_compile "$LINENO" 21258then : 21259 21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21261printf "%s\n" "yes" >&6; } 21262 ac_cv_macos_10_12="yes" 21263 21264else $as_nop 21265 21266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21267printf "%s\n" "no" >&6; } 21268 21269fi 21270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21271 21272fi 21273 21274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 21275printf %s "checking whether to use libgcc... " >&6; } 21276# Check whether --enable-libgcc was given. 21277if test ${enable_libgcc+y} 21278then : 21279 enableval=$enable_libgcc; case "$enableval" in 21280 yes) 21281 LIBS="$LIBS -lgcc" 21282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21283printf "%s\n" "yes" >&6; } 21284 ;; 21285 *) 21286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21287printf "%s\n" "no" >&6; } 21288 ;; 21289 esac 21290else $as_nop 21291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21292printf "%s\n" "no" >&6; } 21293 21294fi 21295 21296 21297ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" " 21298#ifdef HAVE_SYS_TYPES_H 21299#include <sys/types.h> 21300#endif 21301#ifdef HAVE_SYS_TIME_H 21302#include <sys/time.h> 21303#endif 21304#ifdef HAVE_ARPA_NAMESER_H 21305#include <arpa/nameser.h> 21306#endif 21307 21308#ifdef HAVE_SYS_SOCKET_H 21309#include <sys/socket.h> 21310#endif 21311#ifdef HAVE_NETINET_IN_H 21312#include <netinet/in.h> 21313#endif 21314 21315 21316" 21317if test "x$ac_cv_header_malloc_h" = xyes 21318then : 21319 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 21320 21321fi 21322ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" " 21323#ifdef HAVE_SYS_TYPES_H 21324#include <sys/types.h> 21325#endif 21326#ifdef HAVE_SYS_TIME_H 21327#include <sys/time.h> 21328#endif 21329#ifdef HAVE_ARPA_NAMESER_H 21330#include <arpa/nameser.h> 21331#endif 21332 21333#ifdef HAVE_SYS_SOCKET_H 21334#include <sys/socket.h> 21335#endif 21336#ifdef HAVE_NETINET_IN_H 21337#include <netinet/in.h> 21338#endif 21339 21340 21341" 21342if test "x$ac_cv_header_memory_h" = xyes 21343then : 21344 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h 21345 21346fi 21347ac_fn_c_check_header_compile "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" " 21348#ifdef HAVE_SYS_TYPES_H 21349#include <sys/types.h> 21350#endif 21351#ifdef HAVE_SYS_TIME_H 21352#include <sys/time.h> 21353#endif 21354#ifdef HAVE_ARPA_NAMESER_H 21355#include <arpa/nameser.h> 21356#endif 21357 21358#ifdef HAVE_SYS_SOCKET_H 21359#include <sys/socket.h> 21360#endif 21361#ifdef HAVE_NETINET_IN_H 21362#include <netinet/in.h> 21363#endif 21364 21365 21366" 21367if test "x$ac_cv_header_AvailabilityMacros_h" = xyes 21368then : 21369 printf "%s\n" "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h 21370 21371fi 21372ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" " 21373#ifdef HAVE_SYS_TYPES_H 21374#include <sys/types.h> 21375#endif 21376#ifdef HAVE_SYS_TIME_H 21377#include <sys/time.h> 21378#endif 21379#ifdef HAVE_ARPA_NAMESER_H 21380#include <arpa/nameser.h> 21381#endif 21382 21383#ifdef HAVE_SYS_SOCKET_H 21384#include <sys/socket.h> 21385#endif 21386#ifdef HAVE_NETINET_IN_H 21387#include <netinet/in.h> 21388#endif 21389 21390 21391" 21392if test "x$ac_cv_header_sys_types_h" = xyes 21393then : 21394 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 21395 21396fi 21397ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" " 21398#ifdef HAVE_SYS_TYPES_H 21399#include <sys/types.h> 21400#endif 21401#ifdef HAVE_SYS_TIME_H 21402#include <sys/time.h> 21403#endif 21404#ifdef HAVE_ARPA_NAMESER_H 21405#include <arpa/nameser.h> 21406#endif 21407 21408#ifdef HAVE_SYS_SOCKET_H 21409#include <sys/socket.h> 21410#endif 21411#ifdef HAVE_NETINET_IN_H 21412#include <netinet/in.h> 21413#endif 21414 21415 21416" 21417if test "x$ac_cv_header_sys_time_h" = xyes 21418then : 21419 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 21420 21421fi 21422ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" " 21423#ifdef HAVE_SYS_TYPES_H 21424#include <sys/types.h> 21425#endif 21426#ifdef HAVE_SYS_TIME_H 21427#include <sys/time.h> 21428#endif 21429#ifdef HAVE_ARPA_NAMESER_H 21430#include <arpa/nameser.h> 21431#endif 21432 21433#ifdef HAVE_SYS_SOCKET_H 21434#include <sys/socket.h> 21435#endif 21436#ifdef HAVE_NETINET_IN_H 21437#include <netinet/in.h> 21438#endif 21439 21440 21441" 21442if test "x$ac_cv_header_sys_select_h" = xyes 21443then : 21444 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 21445 21446fi 21447ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" " 21448#ifdef HAVE_SYS_TYPES_H 21449#include <sys/types.h> 21450#endif 21451#ifdef HAVE_SYS_TIME_H 21452#include <sys/time.h> 21453#endif 21454#ifdef HAVE_ARPA_NAMESER_H 21455#include <arpa/nameser.h> 21456#endif 21457 21458#ifdef HAVE_SYS_SOCKET_H 21459#include <sys/socket.h> 21460#endif 21461#ifdef HAVE_NETINET_IN_H 21462#include <netinet/in.h> 21463#endif 21464 21465 21466" 21467if test "x$ac_cv_header_sys_socket_h" = xyes 21468then : 21469 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 21470 21471fi 21472ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" " 21473#ifdef HAVE_SYS_TYPES_H 21474#include <sys/types.h> 21475#endif 21476#ifdef HAVE_SYS_TIME_H 21477#include <sys/time.h> 21478#endif 21479#ifdef HAVE_ARPA_NAMESER_H 21480#include <arpa/nameser.h> 21481#endif 21482 21483#ifdef HAVE_SYS_SOCKET_H 21484#include <sys/socket.h> 21485#endif 21486#ifdef HAVE_NETINET_IN_H 21487#include <netinet/in.h> 21488#endif 21489 21490 21491" 21492if test "x$ac_cv_header_sys_filio_h" = xyes 21493then : 21494 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 21495 21496fi 21497ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" " 21498#ifdef HAVE_SYS_TYPES_H 21499#include <sys/types.h> 21500#endif 21501#ifdef HAVE_SYS_TIME_H 21502#include <sys/time.h> 21503#endif 21504#ifdef HAVE_ARPA_NAMESER_H 21505#include <arpa/nameser.h> 21506#endif 21507 21508#ifdef HAVE_SYS_SOCKET_H 21509#include <sys/socket.h> 21510#endif 21511#ifdef HAVE_NETINET_IN_H 21512#include <netinet/in.h> 21513#endif 21514 21515 21516" 21517if test "x$ac_cv_header_sys_ioctl_h" = xyes 21518then : 21519 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 21520 21521fi 21522ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" " 21523#ifdef HAVE_SYS_TYPES_H 21524#include <sys/types.h> 21525#endif 21526#ifdef HAVE_SYS_TIME_H 21527#include <sys/time.h> 21528#endif 21529#ifdef HAVE_ARPA_NAMESER_H 21530#include <arpa/nameser.h> 21531#endif 21532 21533#ifdef HAVE_SYS_SOCKET_H 21534#include <sys/socket.h> 21535#endif 21536#ifdef HAVE_NETINET_IN_H 21537#include <netinet/in.h> 21538#endif 21539 21540 21541" 21542if test "x$ac_cv_header_sys_param_h" = xyes 21543then : 21544 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 21545 21546fi 21547ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" " 21548#ifdef HAVE_SYS_TYPES_H 21549#include <sys/types.h> 21550#endif 21551#ifdef HAVE_SYS_TIME_H 21552#include <sys/time.h> 21553#endif 21554#ifdef HAVE_ARPA_NAMESER_H 21555#include <arpa/nameser.h> 21556#endif 21557 21558#ifdef HAVE_SYS_SOCKET_H 21559#include <sys/socket.h> 21560#endif 21561#ifdef HAVE_NETINET_IN_H 21562#include <netinet/in.h> 21563#endif 21564 21565 21566" 21567if test "x$ac_cv_header_sys_uio_h" = xyes 21568then : 21569 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 21570 21571fi 21572ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" " 21573#ifdef HAVE_SYS_TYPES_H 21574#include <sys/types.h> 21575#endif 21576#ifdef HAVE_SYS_TIME_H 21577#include <sys/time.h> 21578#endif 21579#ifdef HAVE_ARPA_NAMESER_H 21580#include <arpa/nameser.h> 21581#endif 21582 21583#ifdef HAVE_SYS_SOCKET_H 21584#include <sys/socket.h> 21585#endif 21586#ifdef HAVE_NETINET_IN_H 21587#include <netinet/in.h> 21588#endif 21589 21590 21591" 21592if test "x$ac_cv_header_sys_random_h" = xyes 21593then : 21594 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 21595 21596fi 21597ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" " 21598#ifdef HAVE_SYS_TYPES_H 21599#include <sys/types.h> 21600#endif 21601#ifdef HAVE_SYS_TIME_H 21602#include <sys/time.h> 21603#endif 21604#ifdef HAVE_ARPA_NAMESER_H 21605#include <arpa/nameser.h> 21606#endif 21607 21608#ifdef HAVE_SYS_SOCKET_H 21609#include <sys/socket.h> 21610#endif 21611#ifdef HAVE_NETINET_IN_H 21612#include <netinet/in.h> 21613#endif 21614 21615 21616" 21617if test "x$ac_cv_header_sys_event_h" = xyes 21618then : 21619 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h 21620 21621fi 21622ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" " 21623#ifdef HAVE_SYS_TYPES_H 21624#include <sys/types.h> 21625#endif 21626#ifdef HAVE_SYS_TIME_H 21627#include <sys/time.h> 21628#endif 21629#ifdef HAVE_ARPA_NAMESER_H 21630#include <arpa/nameser.h> 21631#endif 21632 21633#ifdef HAVE_SYS_SOCKET_H 21634#include <sys/socket.h> 21635#endif 21636#ifdef HAVE_NETINET_IN_H 21637#include <netinet/in.h> 21638#endif 21639 21640 21641" 21642if test "x$ac_cv_header_sys_epoll_h" = xyes 21643then : 21644 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h 21645 21646fi 21647ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" " 21648#ifdef HAVE_SYS_TYPES_H 21649#include <sys/types.h> 21650#endif 21651#ifdef HAVE_SYS_TIME_H 21652#include <sys/time.h> 21653#endif 21654#ifdef HAVE_ARPA_NAMESER_H 21655#include <arpa/nameser.h> 21656#endif 21657 21658#ifdef HAVE_SYS_SOCKET_H 21659#include <sys/socket.h> 21660#endif 21661#ifdef HAVE_NETINET_IN_H 21662#include <netinet/in.h> 21663#endif 21664 21665 21666" 21667if test "x$ac_cv_header_assert_h" = xyes 21668then : 21669 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h 21670 21671fi 21672ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" " 21673#ifdef HAVE_SYS_TYPES_H 21674#include <sys/types.h> 21675#endif 21676#ifdef HAVE_SYS_TIME_H 21677#include <sys/time.h> 21678#endif 21679#ifdef HAVE_ARPA_NAMESER_H 21680#include <arpa/nameser.h> 21681#endif 21682 21683#ifdef HAVE_SYS_SOCKET_H 21684#include <sys/socket.h> 21685#endif 21686#ifdef HAVE_NETINET_IN_H 21687#include <netinet/in.h> 21688#endif 21689 21690 21691" 21692if test "x$ac_cv_header_iphlpapi_h" = xyes 21693then : 21694 printf "%s\n" "#define HAVE_IPHLPAPI_H 1" >>confdefs.h 21695 21696fi 21697ac_fn_c_check_header_compile "$LINENO" "netioapi.h" "ac_cv_header_netioapi_h" " 21698#ifdef HAVE_SYS_TYPES_H 21699#include <sys/types.h> 21700#endif 21701#ifdef HAVE_SYS_TIME_H 21702#include <sys/time.h> 21703#endif 21704#ifdef HAVE_ARPA_NAMESER_H 21705#include <arpa/nameser.h> 21706#endif 21707 21708#ifdef HAVE_SYS_SOCKET_H 21709#include <sys/socket.h> 21710#endif 21711#ifdef HAVE_NETINET_IN_H 21712#include <netinet/in.h> 21713#endif 21714 21715 21716" 21717if test "x$ac_cv_header_netioapi_h" = xyes 21718then : 21719 printf "%s\n" "#define HAVE_NETIOAPI_H 1" >>confdefs.h 21720 21721fi 21722ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" " 21723#ifdef HAVE_SYS_TYPES_H 21724#include <sys/types.h> 21725#endif 21726#ifdef HAVE_SYS_TIME_H 21727#include <sys/time.h> 21728#endif 21729#ifdef HAVE_ARPA_NAMESER_H 21730#include <arpa/nameser.h> 21731#endif 21732 21733#ifdef HAVE_SYS_SOCKET_H 21734#include <sys/socket.h> 21735#endif 21736#ifdef HAVE_NETINET_IN_H 21737#include <netinet/in.h> 21738#endif 21739 21740 21741" 21742if test "x$ac_cv_header_netdb_h" = xyes 21743then : 21744 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 21745 21746fi 21747ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" " 21748#ifdef HAVE_SYS_TYPES_H 21749#include <sys/types.h> 21750#endif 21751#ifdef HAVE_SYS_TIME_H 21752#include <sys/time.h> 21753#endif 21754#ifdef HAVE_ARPA_NAMESER_H 21755#include <arpa/nameser.h> 21756#endif 21757 21758#ifdef HAVE_SYS_SOCKET_H 21759#include <sys/socket.h> 21760#endif 21761#ifdef HAVE_NETINET_IN_H 21762#include <netinet/in.h> 21763#endif 21764 21765 21766" 21767if test "x$ac_cv_header_netinet_in_h" = xyes 21768then : 21769 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 21770 21771fi 21772ac_fn_c_check_header_compile "$LINENO" "netinet6/in6.h" "ac_cv_header_netinet6_in6_h" " 21773#ifdef HAVE_SYS_TYPES_H 21774#include <sys/types.h> 21775#endif 21776#ifdef HAVE_SYS_TIME_H 21777#include <sys/time.h> 21778#endif 21779#ifdef HAVE_ARPA_NAMESER_H 21780#include <arpa/nameser.h> 21781#endif 21782 21783#ifdef HAVE_SYS_SOCKET_H 21784#include <sys/socket.h> 21785#endif 21786#ifdef HAVE_NETINET_IN_H 21787#include <netinet/in.h> 21788#endif 21789 21790 21791" 21792if test "x$ac_cv_header_netinet6_in6_h" = xyes 21793then : 21794 printf "%s\n" "#define HAVE_NETINET6_IN6_H 1" >>confdefs.h 21795 21796fi 21797ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" " 21798#ifdef HAVE_SYS_TYPES_H 21799#include <sys/types.h> 21800#endif 21801#ifdef HAVE_SYS_TIME_H 21802#include <sys/time.h> 21803#endif 21804#ifdef HAVE_ARPA_NAMESER_H 21805#include <arpa/nameser.h> 21806#endif 21807 21808#ifdef HAVE_SYS_SOCKET_H 21809#include <sys/socket.h> 21810#endif 21811#ifdef HAVE_NETINET_IN_H 21812#include <netinet/in.h> 21813#endif 21814 21815 21816" 21817if test "x$ac_cv_header_netinet_tcp_h" = xyes 21818then : 21819 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 21820 21821fi 21822ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 21823#ifdef HAVE_SYS_TYPES_H 21824#include <sys/types.h> 21825#endif 21826#ifdef HAVE_SYS_TIME_H 21827#include <sys/time.h> 21828#endif 21829#ifdef HAVE_ARPA_NAMESER_H 21830#include <arpa/nameser.h> 21831#endif 21832 21833#ifdef HAVE_SYS_SOCKET_H 21834#include <sys/socket.h> 21835#endif 21836#ifdef HAVE_NETINET_IN_H 21837#include <netinet/in.h> 21838#endif 21839 21840 21841" 21842if test "x$ac_cv_header_net_if_h" = xyes 21843then : 21844 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 21845 21846fi 21847ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" " 21848#ifdef HAVE_SYS_TYPES_H 21849#include <sys/types.h> 21850#endif 21851#ifdef HAVE_SYS_TIME_H 21852#include <sys/time.h> 21853#endif 21854#ifdef HAVE_ARPA_NAMESER_H 21855#include <arpa/nameser.h> 21856#endif 21857 21858#ifdef HAVE_SYS_SOCKET_H 21859#include <sys/socket.h> 21860#endif 21861#ifdef HAVE_NETINET_IN_H 21862#include <netinet/in.h> 21863#endif 21864 21865 21866" 21867if test "x$ac_cv_header_ifaddrs_h" = xyes 21868then : 21869 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 21870 21871fi 21872ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" " 21873#ifdef HAVE_SYS_TYPES_H 21874#include <sys/types.h> 21875#endif 21876#ifdef HAVE_SYS_TIME_H 21877#include <sys/time.h> 21878#endif 21879#ifdef HAVE_ARPA_NAMESER_H 21880#include <arpa/nameser.h> 21881#endif 21882 21883#ifdef HAVE_SYS_SOCKET_H 21884#include <sys/socket.h> 21885#endif 21886#ifdef HAVE_NETINET_IN_H 21887#include <netinet/in.h> 21888#endif 21889 21890 21891" 21892if test "x$ac_cv_header_fcntl_h" = xyes 21893then : 21894 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 21895 21896fi 21897ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" " 21898#ifdef HAVE_SYS_TYPES_H 21899#include <sys/types.h> 21900#endif 21901#ifdef HAVE_SYS_TIME_H 21902#include <sys/time.h> 21903#endif 21904#ifdef HAVE_ARPA_NAMESER_H 21905#include <arpa/nameser.h> 21906#endif 21907 21908#ifdef HAVE_SYS_SOCKET_H 21909#include <sys/socket.h> 21910#endif 21911#ifdef HAVE_NETINET_IN_H 21912#include <netinet/in.h> 21913#endif 21914 21915 21916" 21917if test "x$ac_cv_header_errno_h" = xyes 21918then : 21919 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 21920 21921fi 21922ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" " 21923#ifdef HAVE_SYS_TYPES_H 21924#include <sys/types.h> 21925#endif 21926#ifdef HAVE_SYS_TIME_H 21927#include <sys/time.h> 21928#endif 21929#ifdef HAVE_ARPA_NAMESER_H 21930#include <arpa/nameser.h> 21931#endif 21932 21933#ifdef HAVE_SYS_SOCKET_H 21934#include <sys/socket.h> 21935#endif 21936#ifdef HAVE_NETINET_IN_H 21937#include <netinet/in.h> 21938#endif 21939 21940 21941" 21942if test "x$ac_cv_header_socket_h" = xyes 21943then : 21944 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h 21945 21946fi 21947ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" " 21948#ifdef HAVE_SYS_TYPES_H 21949#include <sys/types.h> 21950#endif 21951#ifdef HAVE_SYS_TIME_H 21952#include <sys/time.h> 21953#endif 21954#ifdef HAVE_ARPA_NAMESER_H 21955#include <arpa/nameser.h> 21956#endif 21957 21958#ifdef HAVE_SYS_SOCKET_H 21959#include <sys/socket.h> 21960#endif 21961#ifdef HAVE_NETINET_IN_H 21962#include <netinet/in.h> 21963#endif 21964 21965 21966" 21967if test "x$ac_cv_header_strings_h" = xyes 21968then : 21969 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 21970 21971fi 21972ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" " 21973#ifdef HAVE_SYS_TYPES_H 21974#include <sys/types.h> 21975#endif 21976#ifdef HAVE_SYS_TIME_H 21977#include <sys/time.h> 21978#endif 21979#ifdef HAVE_ARPA_NAMESER_H 21980#include <arpa/nameser.h> 21981#endif 21982 21983#ifdef HAVE_SYS_SOCKET_H 21984#include <sys/socket.h> 21985#endif 21986#ifdef HAVE_NETINET_IN_H 21987#include <netinet/in.h> 21988#endif 21989 21990 21991" 21992if test "x$ac_cv_header_stdbool_h" = xyes 21993then : 21994 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 21995 21996fi 21997ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" " 21998#ifdef HAVE_SYS_TYPES_H 21999#include <sys/types.h> 22000#endif 22001#ifdef HAVE_SYS_TIME_H 22002#include <sys/time.h> 22003#endif 22004#ifdef HAVE_ARPA_NAMESER_H 22005#include <arpa/nameser.h> 22006#endif 22007 22008#ifdef HAVE_SYS_SOCKET_H 22009#include <sys/socket.h> 22010#endif 22011#ifdef HAVE_NETINET_IN_H 22012#include <netinet/in.h> 22013#endif 22014 22015 22016" 22017if test "x$ac_cv_header_time_h" = xyes 22018then : 22019 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 22020 22021fi 22022ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" " 22023#ifdef HAVE_SYS_TYPES_H 22024#include <sys/types.h> 22025#endif 22026#ifdef HAVE_SYS_TIME_H 22027#include <sys/time.h> 22028#endif 22029#ifdef HAVE_ARPA_NAMESER_H 22030#include <arpa/nameser.h> 22031#endif 22032 22033#ifdef HAVE_SYS_SOCKET_H 22034#include <sys/socket.h> 22035#endif 22036#ifdef HAVE_NETINET_IN_H 22037#include <netinet/in.h> 22038#endif 22039 22040 22041" 22042if test "x$ac_cv_header_poll_h" = xyes 22043then : 22044 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 22045 22046fi 22047ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" " 22048#ifdef HAVE_SYS_TYPES_H 22049#include <sys/types.h> 22050#endif 22051#ifdef HAVE_SYS_TIME_H 22052#include <sys/time.h> 22053#endif 22054#ifdef HAVE_ARPA_NAMESER_H 22055#include <arpa/nameser.h> 22056#endif 22057 22058#ifdef HAVE_SYS_SOCKET_H 22059#include <sys/socket.h> 22060#endif 22061#ifdef HAVE_NETINET_IN_H 22062#include <netinet/in.h> 22063#endif 22064 22065 22066" 22067if test "x$ac_cv_header_limits_h" = xyes 22068then : 22069 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 22070 22071fi 22072ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" " 22073#ifdef HAVE_SYS_TYPES_H 22074#include <sys/types.h> 22075#endif 22076#ifdef HAVE_SYS_TIME_H 22077#include <sys/time.h> 22078#endif 22079#ifdef HAVE_ARPA_NAMESER_H 22080#include <arpa/nameser.h> 22081#endif 22082 22083#ifdef HAVE_SYS_SOCKET_H 22084#include <sys/socket.h> 22085#endif 22086#ifdef HAVE_NETINET_IN_H 22087#include <netinet/in.h> 22088#endif 22089 22090 22091" 22092if test "x$ac_cv_header_arpa_nameser_h" = xyes 22093then : 22094 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h 22095 22096fi 22097ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" " 22098#ifdef HAVE_SYS_TYPES_H 22099#include <sys/types.h> 22100#endif 22101#ifdef HAVE_SYS_TIME_H 22102#include <sys/time.h> 22103#endif 22104#ifdef HAVE_ARPA_NAMESER_H 22105#include <arpa/nameser.h> 22106#endif 22107 22108#ifdef HAVE_SYS_SOCKET_H 22109#include <sys/socket.h> 22110#endif 22111#ifdef HAVE_NETINET_IN_H 22112#include <netinet/in.h> 22113#endif 22114 22115 22116" 22117if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes 22118then : 22119 printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h 22120 22121fi 22122ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" " 22123#ifdef HAVE_SYS_TYPES_H 22124#include <sys/types.h> 22125#endif 22126#ifdef HAVE_SYS_TIME_H 22127#include <sys/time.h> 22128#endif 22129#ifdef HAVE_ARPA_NAMESER_H 22130#include <arpa/nameser.h> 22131#endif 22132 22133#ifdef HAVE_SYS_SOCKET_H 22134#include <sys/socket.h> 22135#endif 22136#ifdef HAVE_NETINET_IN_H 22137#include <netinet/in.h> 22138#endif 22139 22140 22141" 22142if test "x$ac_cv_header_arpa_inet_h" = xyes 22143then : 22144 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 22145 22146fi 22147ac_fn_c_check_header_compile "$LINENO" "sys/system_properties.h" "ac_cv_header_sys_system_properties_h" " 22148#ifdef HAVE_SYS_TYPES_H 22149#include <sys/types.h> 22150#endif 22151#ifdef HAVE_SYS_TIME_H 22152#include <sys/time.h> 22153#endif 22154#ifdef HAVE_ARPA_NAMESER_H 22155#include <arpa/nameser.h> 22156#endif 22157 22158#ifdef HAVE_SYS_SOCKET_H 22159#include <sys/socket.h> 22160#endif 22161#ifdef HAVE_NETINET_IN_H 22162#include <netinet/in.h> 22163#endif 22164 22165 22166" 22167if test "x$ac_cv_header_sys_system_properties_h" = xyes 22168then : 22169 printf "%s\n" "#define HAVE_SYS_SYSTEM_PROPERTIES_H 1" >>confdefs.h 22170 22171fi 22172 22173 22174 22175cares_all_includes=" 22176#include <stdio.h> 22177#include <stdlib.h> 22178#ifdef HAVE_AVAILABILITYMACROS_H 22179# include <AvailabilityMacros.h> 22180#endif 22181#ifdef HAVE_SYS_UIO_H 22182# include <sys/uio.h> 22183#endif 22184#ifdef HAVE_NETINET_IN_H 22185# include <netinet/in.h> 22186#endif 22187#ifdef HAVE_TCP_H 22188# include <tcp.h> 22189#endif 22190#ifdef HAVE_SYS_FILIO_H 22191# include <sys/filio.h> 22192#endif 22193#ifdef HAVE_SYS_IOCTL_H 22194# include <sys/ioctl.h> 22195#endif 22196#ifdef HAVE_UNISTD_H 22197# include <unistd.h> 22198#endif 22199#ifdef HAVE_STRING_H 22200# include <string.h> 22201#endif 22202#ifdef HAVE_STRINGS_H 22203# include <strings.h> 22204#endif 22205#ifdef HAVE_TIME_H 22206# include <time.h> 22207#endif 22208#ifdef HAVE_SYS_TIME_H 22209# include <sys/time.h> 22210#endif 22211#ifdef HAVE_SYS_TYPES_H 22212# include <sys/types.h> 22213#endif 22214#ifdef HAVE_SYS_STAT_H 22215# include <sys/stat.h> 22216#endif 22217#ifdef HAVE_SYS_RANDOM_H 22218# include <sys/random.h> 22219#endif 22220#ifdef HAVE_SYS_EVENT_H 22221# include <sys/event.h> 22222#endif 22223#ifdef HAVE_SYS_EPOLL_H 22224# include <sys/epoll.h> 22225#endif 22226#ifdef HAVE_SYS_SOCKET_H 22227# include <sys/socket.h> 22228#endif 22229#ifdef HAVE_SYS_PARAM_H 22230# include <sys/param.h> 22231#endif 22232#ifdef HAVE_FCNTL_H 22233# include <fcntl.h> 22234#endif 22235#ifdef HAVE_POLL_H 22236# include <poll.h> 22237#endif 22238#ifdef HAVE_NET_IF_H 22239# include <net/if.h> 22240#endif 22241#ifdef HAVE_IFADDRS_H 22242# include <ifaddrs.h> 22243#endif 22244#ifdef HAVE_NETINET_IN_H 22245# include <netinet/in.h> 22246#endif 22247#ifdef HAVE_NETINET_TCP_H 22248# include <netinet/tcp.h> 22249#endif 22250#ifdef HAVE_NETDB_H 22251# include <netdb.h> 22252#endif 22253#ifdef HAVE_ARPA_INET_H 22254# include <arpa/inet.h> 22255#endif 22256#ifdef HAVE_RESOLV_H 22257# include <resolv.h> 22258#endif 22259#ifdef HAVE_SYS_SYSTEM_PROPERTIES_H 22260# include <sys/system_properties.h> 22261#endif 22262#ifdef HAVE_IPHLPAPI_H 22263# include <iphlpapi.h> 22264#endif 22265#ifdef HAVE_NETIOAPI_H 22266# include <netioapi.h> 22267#endif 22268#ifdef HAVE_WINSOCK2_H 22269# include <winsock2.h> 22270#endif 22271#ifdef HAVE_WS2IPDEF_H 22272# include <ws2ipdef.h> 22273#endif 22274#ifdef HAVE_WS2TCPIP_H 22275# include <ws2tcpip.h> 22276#endif 22277#ifdef HAVE_WINDOWS_H 22278# include <windows.h> 22279#endif 22280" 22281 22282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 22283printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 22284if test ${ac_cv_c_undeclared_builtin_options+y} 22285then : 22286 printf %s "(cached) " >&6 22287else $as_nop 22288 ac_save_CFLAGS=$CFLAGS 22289 ac_cv_c_undeclared_builtin_options='cannot detect' 22290 for ac_arg in '' -fno-builtin; do 22291 CFLAGS="$ac_save_CFLAGS $ac_arg" 22292 # This test program should *not* compile successfully. 22293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22294/* end confdefs.h. */ 22295 22296int 22297main (void) 22298{ 22299(void) strchr; 22300 ; 22301 return 0; 22302} 22303_ACEOF 22304if ac_fn_c_try_compile "$LINENO" 22305then : 22306 22307else $as_nop 22308 # This test program should compile successfully. 22309 # No library function is consistently available on 22310 # freestanding implementations, so test against a dummy 22311 # declaration. Include always-available headers on the 22312 # off chance that they somehow elicit warnings. 22313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22314/* end confdefs.h. */ 22315#include <float.h> 22316#include <limits.h> 22317#include <stdarg.h> 22318#include <stddef.h> 22319extern void ac_decl (int, char *); 22320 22321int 22322main (void) 22323{ 22324(void) ac_decl (0, (char *) 0); 22325 (void) ac_decl; 22326 22327 ; 22328 return 0; 22329} 22330_ACEOF 22331if ac_fn_c_try_compile "$LINENO" 22332then : 22333 if test x"$ac_arg" = x 22334then : 22335 ac_cv_c_undeclared_builtin_options='none needed' 22336else $as_nop 22337 ac_cv_c_undeclared_builtin_options=$ac_arg 22338fi 22339 break 22340fi 22341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22342fi 22343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22344 done 22345 CFLAGS=$ac_save_CFLAGS 22346 22347fi 22348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 22349printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 22350 case $ac_cv_c_undeclared_builtin_options in #( 22351 'cannot detect') : 22352 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22353printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22354as_fn_error $? "cannot make $CC report undeclared builtins 22355See \`config.log' for more details" "$LINENO" 5; } ;; #( 22356 'none needed') : 22357 ac_c_undeclared_builtin_options='' ;; #( 22358 *) : 22359 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 22360esac 22361 22362ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 22363if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_H" = xyes 22364then : 22365 22366cat >>confdefs.h <<_EOF 22367#define CARES_HAVE_ARPA_NAMESER_H 1 22368_EOF 22369 22370fi 22371ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_COMPAT_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 22372if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" = xyes 22373then : 22374 22375cat >>confdefs.h <<_EOF 22376#define CARES_HAVE_ARPA_NAMESER_COMPAT_H 1 22377_EOF 22378 22379fi 22380ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 22381if test "x$ac_cv_type_long_long" = xyes 22382then : 22383 22384printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h 22385 22386fi 22387 22388ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 22389if test "x$ac_cv_type_ssize_t" = xyes 22390then : 22391 CARES_TYPEOF_ARES_SSIZE_T=ssize_t 22392else $as_nop 22393 CARES_TYPEOF_ARES_SSIZE_T=int 22394fi 22395 22396 22397printf "%s\n" "#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}" >>confdefs.h 22398 22399 22400ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$cares_all_includes 22401 22402" 22403if test "x$ac_cv_type_socklen_t" = xyes 22404then : 22405 22406 22407printf "%s\n" "#define HAVE_SOCKLEN_T /**/" >>confdefs.h 22408 22409 22410cat >>confdefs.h <<_EOF 22411#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t 22412_EOF 22413 22414 22415else $as_nop 22416 22417cat >>confdefs.h <<_EOF 22418#define CARES_TYPEOF_ARES_SOCKLEN_T int 22419_EOF 22420 22421fi 22422 22423 22424ac_fn_c_check_type "$LINENO" "SOCKET" "ac_cv_type_SOCKET" "$cares_all_includes 22425" 22426if test "x$ac_cv_type_SOCKET" = xyes 22427then : 22428 22429fi 22430 22431 22432 22433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 22434printf %s "checking for library containing clock_gettime... " >&6; } 22435if test ${ac_cv_search_clock_gettime+y} 22436then : 22437 printf %s "(cached) " >&6 22438else $as_nop 22439 ac_func_search_save_LIBS=$LIBS 22440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22441/* end confdefs.h. */ 22442 22443/* Override any GCC internal prototype to avoid an error. 22444 Use char because int might match the return type of a GCC 22445 builtin and then its argument prototype would still apply. */ 22446char clock_gettime (); 22447int 22448main (void) 22449{ 22450return clock_gettime (); 22451 ; 22452 return 0; 22453} 22454_ACEOF 22455for ac_lib in '' rt posix4 22456do 22457 if test -z "$ac_lib"; then 22458 ac_res="none required" 22459 else 22460 ac_res=-l$ac_lib 22461 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22462 fi 22463 if ac_fn_c_try_link "$LINENO" 22464then : 22465 ac_cv_search_clock_gettime=$ac_res 22466fi 22467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22468 conftest$ac_exeext 22469 if test ${ac_cv_search_clock_gettime+y} 22470then : 22471 break 22472fi 22473done 22474if test ${ac_cv_search_clock_gettime+y} 22475then : 22476 22477else $as_nop 22478 ac_cv_search_clock_gettime=no 22479fi 22480rm conftest.$ac_ext 22481LIBS=$ac_func_search_save_LIBS 22482fi 22483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 22484printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 22485ac_res=$ac_cv_search_clock_gettime 22486if test "$ac_res" != no 22487then : 22488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22489 22490fi 22491 22492 22493 22494ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$cares_all_includes 22495" "$ac_c_undeclared_builtin_options" "CFLAGS" 22496if test "x$ac_cv_have_decl_strnlen" = xyes 22497then : 22498 22499printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 22500 22501fi 22502ac_fn_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$cares_all_includes 22503" "$ac_c_undeclared_builtin_options" "CFLAGS" 22504if test "x$ac_cv_have_decl_memmem" = xyes 22505then : 22506 22507printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h 22508 22509fi 22510ac_fn_check_decl "$LINENO" "recv" "ac_cv_have_decl_recv" "$cares_all_includes 22511" "$ac_c_undeclared_builtin_options" "CFLAGS" 22512if test "x$ac_cv_have_decl_recv" = xyes 22513then : 22514 22515printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h 22516 22517fi 22518ac_fn_check_decl "$LINENO" "recvfrom" "ac_cv_have_decl_recvfrom" "$cares_all_includes 22519" "$ac_c_undeclared_builtin_options" "CFLAGS" 22520if test "x$ac_cv_have_decl_recvfrom" = xyes 22521then : 22522 22523printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h 22524 22525fi 22526ac_fn_check_decl "$LINENO" "send" "ac_cv_have_decl_send" "$cares_all_includes 22527" "$ac_c_undeclared_builtin_options" "CFLAGS" 22528if test "x$ac_cv_have_decl_send" = xyes 22529then : 22530 22531printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h 22532 22533fi 22534ac_fn_check_decl "$LINENO" "sendto" "ac_cv_have_decl_sendto" "$cares_all_includes 22535" "$ac_c_undeclared_builtin_options" "CFLAGS" 22536if test "x$ac_cv_have_decl_sendto" = xyes 22537then : 22538 22539printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h 22540 22541fi 22542ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "$cares_all_includes 22543" "$ac_c_undeclared_builtin_options" "CFLAGS" 22544if test "x$ac_cv_have_decl_getnameinfo" = xyes 22545then : 22546 22547printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 22548 22549fi 22550ac_fn_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "$cares_all_includes 22551" "$ac_c_undeclared_builtin_options" "CFLAGS" 22552if test "x$ac_cv_have_decl_gethostname" = xyes 22553then : 22554 22555printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 22556 22557fi 22558ac_fn_check_decl "$LINENO" "connect" "ac_cv_have_decl_connect" "$cares_all_includes 22559" "$ac_c_undeclared_builtin_options" "CFLAGS" 22560if test "x$ac_cv_have_decl_connect" = xyes 22561then : 22562 22563printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h 22564 22565fi 22566ac_fn_check_decl "$LINENO" "connectx" "ac_cv_have_decl_connectx" "$cares_all_includes 22567" "$ac_c_undeclared_builtin_options" "CFLAGS" 22568if test "x$ac_cv_have_decl_connectx" = xyes 22569then : 22570 22571printf "%s\n" "#define HAVE_CONNECTX 1" >>confdefs.h 22572 22573fi 22574ac_fn_check_decl "$LINENO" "closesocket" "ac_cv_have_decl_closesocket" "$cares_all_includes 22575" "$ac_c_undeclared_builtin_options" "CFLAGS" 22576if test "x$ac_cv_have_decl_closesocket" = xyes 22577then : 22578 22579printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h 22580 22581fi 22582ac_fn_check_decl "$LINENO" "CloseSocket" "ac_cv_have_decl_CloseSocket" "$cares_all_includes 22583" "$ac_c_undeclared_builtin_options" "CFLAGS" 22584if test "x$ac_cv_have_decl_CloseSocket" = xyes 22585then : 22586 22587printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h 22588 22589fi 22590ac_fn_check_decl "$LINENO" "fcntl" "ac_cv_have_decl_fcntl" "$cares_all_includes 22591" "$ac_c_undeclared_builtin_options" "CFLAGS" 22592if test "x$ac_cv_have_decl_fcntl" = xyes 22593then : 22594 22595printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 22596 22597fi 22598ac_fn_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$cares_all_includes 22599" "$ac_c_undeclared_builtin_options" "CFLAGS" 22600if test "x$ac_cv_have_decl_getenv" = xyes 22601then : 22602 22603printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h 22604 22605fi 22606ac_fn_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "$cares_all_includes 22607" "$ac_c_undeclared_builtin_options" "CFLAGS" 22608if test "x$ac_cv_have_decl_gethostname" = xyes 22609then : 22610 22611printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 22612 22613fi 22614ac_fn_check_decl "$LINENO" "getrandom" "ac_cv_have_decl_getrandom" "$cares_all_includes 22615" "$ac_c_undeclared_builtin_options" "CFLAGS" 22616if test "x$ac_cv_have_decl_getrandom" = xyes 22617then : 22618 22619printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 22620 22621fi 22622ac_fn_check_decl "$LINENO" "getservbyport_r" "ac_cv_have_decl_getservbyport_r" "$cares_all_includes 22623" "$ac_c_undeclared_builtin_options" "CFLAGS" 22624if test "x$ac_cv_have_decl_getservbyport_r" = xyes 22625then : 22626 22627printf "%s\n" "#define HAVE_GETSERVBYPORT_R 1" >>confdefs.h 22628 22629fi 22630ac_fn_check_decl "$LINENO" "inet_net_pton" "ac_cv_have_decl_inet_net_pton" "$cares_all_includes 22631" "$ac_c_undeclared_builtin_options" "CFLAGS" 22632if test "x$ac_cv_have_decl_inet_net_pton" = xyes 22633then : 22634 22635printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h 22636 22637fi 22638ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "$cares_all_includes 22639" "$ac_c_undeclared_builtin_options" "CFLAGS" 22640if test "x$ac_cv_have_decl_inet_ntop" = xyes 22641then : 22642 22643printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 22644 22645fi 22646ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "$cares_all_includes 22647" "$ac_c_undeclared_builtin_options" "CFLAGS" 22648if test "x$ac_cv_have_decl_inet_pton" = xyes 22649then : 22650 22651printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 22652 22653fi 22654ac_fn_check_decl "$LINENO" "ioctl" "ac_cv_have_decl_ioctl" "$cares_all_includes 22655" "$ac_c_undeclared_builtin_options" "CFLAGS" 22656if test "x$ac_cv_have_decl_ioctl" = xyes 22657then : 22658 22659printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h 22660 22661fi 22662ac_fn_check_decl "$LINENO" "ioctlsocket" "ac_cv_have_decl_ioctlsocket" "$cares_all_includes 22663" "$ac_c_undeclared_builtin_options" "CFLAGS" 22664if test "x$ac_cv_have_decl_ioctlsocket" = xyes 22665then : 22666 22667printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 22668 22669fi 22670ac_fn_check_decl "$LINENO" "IoctlSocket" "ac_cv_have_decl_IoctlSocket" "$cares_all_includes 22671" "$ac_c_undeclared_builtin_options" "CFLAGS" 22672if test "x$ac_cv_have_decl_IoctlSocket" = xyes 22673then : 22674 22675printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h 22676 22677fi 22678ac_fn_check_decl "$LINENO" "setsockopt" "ac_cv_have_decl_setsockopt" "$cares_all_includes 22679" "$ac_c_undeclared_builtin_options" "CFLAGS" 22680if test "x$ac_cv_have_decl_setsockopt" = xyes 22681then : 22682 22683printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h 22684 22685fi 22686ac_fn_check_decl "$LINENO" "socket" "ac_cv_have_decl_socket" "$cares_all_includes 22687" "$ac_c_undeclared_builtin_options" "CFLAGS" 22688if test "x$ac_cv_have_decl_socket" = xyes 22689then : 22690 22691printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 22692 22693fi 22694ac_fn_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$cares_all_includes 22695" "$ac_c_undeclared_builtin_options" "CFLAGS" 22696if test "x$ac_cv_have_decl_strcasecmp" = xyes 22697then : 22698 22699printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22700 22701fi 22702ac_fn_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$cares_all_includes 22703" "$ac_c_undeclared_builtin_options" "CFLAGS" 22704if test "x$ac_cv_have_decl_strdup" = xyes 22705then : 22706 22707printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 22708 22709fi 22710ac_fn_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$cares_all_includes 22711" "$ac_c_undeclared_builtin_options" "CFLAGS" 22712if test "x$ac_cv_have_decl_stricmp" = xyes 22713then : 22714 22715printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h 22716 22717fi 22718ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$cares_all_includes 22719" "$ac_c_undeclared_builtin_options" "CFLAGS" 22720if test "x$ac_cv_have_decl_strncasecmp" = xyes 22721then : 22722 22723printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 22724 22725fi 22726ac_fn_check_decl "$LINENO" "strncmpi" "ac_cv_have_decl_strncmpi" "$cares_all_includes 22727" "$ac_c_undeclared_builtin_options" "CFLAGS" 22728if test "x$ac_cv_have_decl_strncmpi" = xyes 22729then : 22730 22731printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h 22732 22733fi 22734ac_fn_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$cares_all_includes 22735" "$ac_c_undeclared_builtin_options" "CFLAGS" 22736if test "x$ac_cv_have_decl_strnicmp" = xyes 22737then : 22738 22739printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h 22740 22741fi 22742ac_fn_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "$cares_all_includes 22743" "$ac_c_undeclared_builtin_options" "CFLAGS" 22744if test "x$ac_cv_have_decl_writev" = xyes 22745then : 22746 22747printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 22748 22749fi 22750ac_fn_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$cares_all_includes 22751" "$ac_c_undeclared_builtin_options" "CFLAGS" 22752if test "x$ac_cv_have_decl_arc4random_buf" = xyes 22753then : 22754 22755printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 22756 22757fi 22758ac_fn_check_decl "$LINENO" "stat" "ac_cv_have_decl_stat" "$cares_all_includes 22759" "$ac_c_undeclared_builtin_options" "CFLAGS" 22760if test "x$ac_cv_have_decl_stat" = xyes 22761then : 22762 22763printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h 22764 22765fi 22766ac_fn_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" "$cares_all_includes 22767" "$ac_c_undeclared_builtin_options" "CFLAGS" 22768if test "x$ac_cv_have_decl_gettimeofday" = xyes 22769then : 22770 22771printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 22772 22773fi 22774ac_fn_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "$cares_all_includes 22775" "$ac_c_undeclared_builtin_options" "CFLAGS" 22776if test "x$ac_cv_have_decl_clock_gettime" = xyes 22777then : 22778 22779printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 22780 22781fi 22782ac_fn_check_decl "$LINENO" "if_indextoname" "ac_cv_have_decl_if_indextoname" "$cares_all_includes 22783" "$ac_c_undeclared_builtin_options" "CFLAGS" 22784if test "x$ac_cv_have_decl_if_indextoname" = xyes 22785then : 22786 22787printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h 22788 22789fi 22790ac_fn_check_decl "$LINENO" "if_nametoindex" "ac_cv_have_decl_if_nametoindex" "$cares_all_includes 22791" "$ac_c_undeclared_builtin_options" "CFLAGS" 22792if test "x$ac_cv_have_decl_if_nametoindex" = xyes 22793then : 22794 22795printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 22796 22797fi 22798ac_fn_check_decl "$LINENO" "getifaddrs" "ac_cv_have_decl_getifaddrs" "$cares_all_includes 22799" "$ac_c_undeclared_builtin_options" "CFLAGS" 22800if test "x$ac_cv_have_decl_getifaddrs" = xyes 22801then : 22802 22803printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 22804 22805fi 22806ac_fn_check_decl "$LINENO" "poll" "ac_cv_have_decl_poll" "$cares_all_includes 22807" "$ac_c_undeclared_builtin_options" "CFLAGS" 22808if test "x$ac_cv_have_decl_poll" = xyes 22809then : 22810 22811printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 22812 22813fi 22814ac_fn_check_decl "$LINENO" "pipe" "ac_cv_have_decl_pipe" "$cares_all_includes 22815" "$ac_c_undeclared_builtin_options" "CFLAGS" 22816if test "x$ac_cv_have_decl_pipe" = xyes 22817then : 22818 22819printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 22820 22821fi 22822ac_fn_check_decl "$LINENO" "pipe2" "ac_cv_have_decl_pipe2" "$cares_all_includes 22823" "$ac_c_undeclared_builtin_options" "CFLAGS" 22824if test "x$ac_cv_have_decl_pipe2" = xyes 22825then : 22826 22827printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 22828 22829fi 22830ac_fn_check_decl "$LINENO" "kqueue" "ac_cv_have_decl_kqueue" "$cares_all_includes 22831" "$ac_c_undeclared_builtin_options" "CFLAGS" 22832if test "x$ac_cv_have_decl_kqueue" = xyes 22833then : 22834 22835printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h 22836 22837fi 22838ac_fn_check_decl "$LINENO" "epoll_create1" "ac_cv_have_decl_epoll_create1" "$cares_all_includes 22839" "$ac_c_undeclared_builtin_options" "CFLAGS" 22840if test "x$ac_cv_have_decl_epoll_create1" = xyes 22841then : 22842 22843printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 22844 22845fi 22846ac_fn_check_decl "$LINENO" "GetBestRoute2" "ac_cv_have_decl_GetBestRoute2" "$cares_all_includes 22847" "$ac_c_undeclared_builtin_options" "CFLAGS" 22848if test "x$ac_cv_have_decl_GetBestRoute2" = xyes 22849then : 22850 22851printf "%s\n" "#define HAVE_GETBESTROUTE2 1" >>confdefs.h 22852 22853fi 22854ac_fn_check_decl "$LINENO" "ConvertInterfaceIndexToLuid" "ac_cv_have_decl_ConvertInterfaceIndexToLuid" "$cares_all_includes 22855" "$ac_c_undeclared_builtin_options" "CFLAGS" 22856if test "x$ac_cv_have_decl_ConvertInterfaceIndexToLuid" = xyes 22857then : 22858 22859printf "%s\n" "#define HAVE_CONVERTINTERFACEINDEXTOLUID 1" >>confdefs.h 22860 22861fi 22862ac_fn_check_decl "$LINENO" "ConvertInterfaceLuidToNameA" "ac_cv_have_decl_ConvertInterfaceLuidToNameA" "$cares_all_includes 22863" "$ac_c_undeclared_builtin_options" "CFLAGS" 22864if test "x$ac_cv_have_decl_ConvertInterfaceLuidToNameA" = xyes 22865then : 22866 22867printf "%s\n" "#define HAVE_CONVERTINTERFACELUIDTONAMEA 1" >>confdefs.h 22868 22869fi 22870ac_fn_check_decl "$LINENO" "NotifyIpInterfaceChange" "ac_cv_have_decl_NotifyIpInterfaceChange" "$cares_all_includes 22871" "$ac_c_undeclared_builtin_options" "CFLAGS" 22872if test "x$ac_cv_have_decl_NotifyIpInterfaceChange" = xyes 22873then : 22874 22875printf "%s\n" "#define HAVE_NOTIFYIPINTERFACECHANGE 1" >>confdefs.h 22876 22877fi 22878ac_fn_check_decl "$LINENO" "RegisterWaitForSingleObject" "ac_cv_have_decl_RegisterWaitForSingleObject" "$cares_all_includes 22879" "$ac_c_undeclared_builtin_options" "CFLAGS" 22880if test "x$ac_cv_have_decl_RegisterWaitForSingleObject" = xyes 22881then : 22882 22883printf "%s\n" "#define HAVE_REGISTERWAITFORSINGLEOBJECT 1" >>confdefs.h 22884 22885fi 22886ac_fn_check_decl "$LINENO" "__system_property_get" "ac_cv_have_decl___system_property_get" "$cares_all_includes 22887" "$ac_c_undeclared_builtin_options" "CFLAGS" 22888if test "x$ac_cv_have_decl___system_property_get" = xyes 22889then : 22890 22891printf "%s\n" "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h 22892 22893fi 22894 22895 22896 22897if test "x$ac_cv_type_ssize_t" = "xyes" -a "x$ac_cv_type_socklen_t" = "xyes" -a "x$ac_cv_native_windows" != "xyes" ; then 22898 recvfrom_type_retv="ssize_t" 22899 recvfrom_type_arg3="size_t" 22900else 22901 recvfrom_type_retv="int" 22902 recvfrom_type_arg3="int" 22903fi 22904 22905if test "x$ac_cv_type_SOCKET" = "xyes" ; then 22906 recvfrom_type_arg1="SOCKET" 22907else 22908 recvfrom_type_arg1="int" 22909fi 22910 22911if test "x$ac_cv_type_socklen_t" = "xyes" ; then 22912 recvfrom_type_arg6="socklen_t *" 22913 getnameinfo_type_arg2="socklen_t" 22914 getnameinfo_type_arg46="socklen_t" 22915else 22916 recvfrom_type_arg6="int *" 22917 getnameinfo_type_arg2="int" 22918 getnameinfo_type_arg46="int" 22919fi 22920 22921if test "x$ac_cv_native_windows" = "xyes" ; then 22922 recv_type_arg2="char *" 22923else 22924 recv_type_arg2="void *" 22925fi 22926 22927recv_type_retv=${recvfrom_type_retv} 22928send_type_retv=${recvfrom_type_retv} 22929recv_type_arg1=${recvfrom_type_arg1} 22930recvfrom_type_arg2=${recv_type_arg2} 22931send_type_arg1=${recvfrom_type_arg1} 22932recv_type_arg3=${recvfrom_type_arg3} 22933send_type_arg3=${recvfrom_type_arg3} 22934gethostname_type_arg2=${recvfrom_type_arg3} 22935 22936recvfrom_qual_arg5= 22937recvfrom_type_arg4=int 22938recvfrom_type_arg5="struct sockaddr *" 22939recv_type_arg4=int 22940getnameinfo_type_arg1="struct sockaddr *" 22941getnameinfo_type_arg7=int 22942send_type_arg2="const void *" 22943send_type_arg4=int 22944 22945 22946printf "%s\n" "#define RECVFROM_TYPE_RETV ${recvfrom_type_retv} " >>confdefs.h 22947 22948 22949printf "%s\n" "#define RECVFROM_TYPE_ARG1 ${recvfrom_type_arg1} " >>confdefs.h 22950 22951 22952printf "%s\n" "#define RECVFROM_TYPE_ARG2 ${recvfrom_type_arg2} " >>confdefs.h 22953 22954 22955printf "%s\n" "#define RECVFROM_TYPE_ARG3 ${recvfrom_type_arg3} " >>confdefs.h 22956 22957 22958printf "%s\n" "#define RECVFROM_TYPE_ARG4 ${recvfrom_type_arg4} " >>confdefs.h 22959 22960 22961printf "%s\n" "#define RECVFROM_TYPE_ARG5 ${recvfrom_type_arg5} " >>confdefs.h 22962 22963 22964printf "%s\n" "#define RECVFROM_QUAL_ARG5 ${recvfrom_qual_arg5}" >>confdefs.h 22965 22966 22967 22968printf "%s\n" "#define RECV_TYPE_RETV ${recv_type_retv} " >>confdefs.h 22969 22970 22971printf "%s\n" "#define RECV_TYPE_ARG1 ${recv_type_arg1} " >>confdefs.h 22972 22973 22974printf "%s\n" "#define RECV_TYPE_ARG2 ${recv_type_arg2} " >>confdefs.h 22975 22976 22977printf "%s\n" "#define RECV_TYPE_ARG3 ${recv_type_arg3} " >>confdefs.h 22978 22979 22980printf "%s\n" "#define RECV_TYPE_ARG4 ${recv_type_arg4} " >>confdefs.h 22981 22982 22983 22984printf "%s\n" "#define SEND_TYPE_RETV ${send_type_retv} " >>confdefs.h 22985 22986 22987printf "%s\n" "#define SEND_TYPE_ARG1 ${send_type_arg1} " >>confdefs.h 22988 22989 22990printf "%s\n" "#define SEND_TYPE_ARG2 ${send_type_arg2} " >>confdefs.h 22991 22992 22993printf "%s\n" "#define SEND_TYPE_ARG3 ${send_type_arg3} " >>confdefs.h 22994 22995 22996printf "%s\n" "#define SEND_TYPE_ARG4 ${send_type_arg4} " >>confdefs.h 22997 22998 22999 23000printf "%s\n" "#define GETNAMEINFO_TYPE_ARG1 ${getnameinfo_type_arg1} " >>confdefs.h 23001 23002 23003printf "%s\n" "#define GETNAMEINFO_TYPE_ARG2 ${getnameinfo_type_arg2} " >>confdefs.h 23004 23005 23006printf "%s\n" "#define GETNAMEINFO_TYPE_ARG7 ${getnameinfo_type_arg7} " >>confdefs.h 23007 23008 23009printf "%s\n" "#define GETNAMEINFO_TYPE_ARG46 ${getnameinfo_type_arg46} " >>confdefs.h 23010 23011 23012 23013printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 ${gethostname_type_arg2} " >>confdefs.h 23014 23015 23016 23017if test "$ac_cv_have_decl_getservbyport_r" = "yes" ; then 23018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getservbyport_r()" >&5 23019printf %s "checking number of arguments for getservbyport_r()... " >&6; } 23020 getservbyport_r_args=6 23021 case $host_os in 23022 solaris*) 23023 getservbyport_r_args=5 23024 ;; 23025 aix*|openbsd*) 23026 getservbyport_r_args=4 23027 ;; 23028 esac 23029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $getservbyport_r_args" >&5 23030printf "%s\n" "$getservbyport_r_args" >&6; } 23031 23032printf "%s\n" "#define GETSERVBYPORT_R_ARGS $getservbyport_r_args " >>confdefs.h 23033 23034fi 23035 23036if test "$ac_cv_have_decl_getservbyname_r" = "yes" ; then 23037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments for getservbyname_r()" >&5 23038printf %s "checking number of arguments for getservbyname_r()... " >&6; } 23039 getservbyname_r_args=6 23040 case $host_os in 23041 solaris*) 23042 getservbyname_r_args=5 23043 ;; 23044 aix*|openbsd*) 23045 getservbyname_r_args=4 23046 ;; 23047 esac 23048 23049printf "%s\n" "#define GETSERVBYNAME_R_ARGS $getservbyname_r_args " >>confdefs.h 23050 23051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $getservbyname_r_args" >&5 23052printf "%s\n" "$getservbyname_r_args" >&6; } 23053fi 23054 23055ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23056if test "x$ac_cv_type_size_t" = xyes 23057then : 23058 23059else $as_nop 23060 23061printf "%s\n" "#define size_t unsigned int" >>confdefs.h 23062 23063fi 23064 23065ac_fn_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "$cares_all_includes 23066" "$ac_c_undeclared_builtin_options" "CFLAGS" 23067if test "x$ac_cv_have_decl_AF_INET6" = xyes 23068then : 23069 23070printf "%s\n" "#define HAVE_AF_INET6 1" >>confdefs.h 23071 23072fi 23073ac_fn_check_decl "$LINENO" "PF_INET6" "ac_cv_have_decl_PF_INET6" "$cares_all_includes 23074" "$ac_c_undeclared_builtin_options" "CFLAGS" 23075if test "x$ac_cv_have_decl_PF_INET6" = xyes 23076then : 23077 23078printf "%s\n" "#define HAVE_PF_INET6 1" >>confdefs.h 23079 23080fi 23081ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "$cares_all_includes 23082" 23083if test "x$ac_cv_type_struct_in6_addr" = xyes 23084then : 23085 23086printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 23087 23088 23089fi 23090 23091ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$cares_all_includes 23092" 23093if test "x$ac_cv_type_struct_sockaddr_in6" = xyes 23094then : 23095 23096printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 23097 23098 23099fi 23100 23101ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$cares_all_includes 23102" 23103if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 23104then : 23105 23106printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 23107 23108 23109fi 23110 23111ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "$cares_all_includes 23112" 23113if test "x$ac_cv_type_struct_addrinfo" = xyes 23114then : 23115 23116printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 23117 23118 23119fi 23120 23121ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$cares_all_includes 23122" 23123if test "x$ac_cv_type_struct_timeval" = xyes 23124then : 23125 23126printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 23127 23128 23129fi 23130 23131ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "$cares_all_includes 23132" 23133if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes 23134then : 23135 23136printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 23137 23138 23139fi 23140 23141ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" "$cares_all_includes 23142" 23143if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes 23144then : 23145 23146printf "%s\n" "#define HAVE_STRUCT_ADDRINFO_AI_FLAGS 1" >>confdefs.h 23147 23148 23149fi 23150 23151ac_fn_check_decl "$LINENO" "FIONBIO" "ac_cv_have_decl_FIONBIO" "$cares_all_includes 23152" "$ac_c_undeclared_builtin_options" "CFLAGS" 23153if test "x$ac_cv_have_decl_FIONBIO" = xyes 23154then : 23155 23156fi 23157ac_fn_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "$cares_all_includes 23158" "$ac_c_undeclared_builtin_options" "CFLAGS" 23159if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes 23160then : 23161 23162fi 23163ac_fn_check_decl "$LINENO" "SO_NONBLOCK" "ac_cv_have_decl_SO_NONBLOCK" "$cares_all_includes 23164" "$ac_c_undeclared_builtin_options" "CFLAGS" 23165if test "x$ac_cv_have_decl_SO_NONBLOCK" = xyes 23166then : 23167 23168fi 23169ac_fn_check_decl "$LINENO" "MSG_NOSIGNAL" "ac_cv_have_decl_MSG_NOSIGNAL" "$cares_all_includes 23170" "$ac_c_undeclared_builtin_options" "CFLAGS" 23171if test "x$ac_cv_have_decl_MSG_NOSIGNAL" = xyes 23172then : 23173 23174fi 23175ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "$cares_all_includes 23176" "$ac_c_undeclared_builtin_options" "CFLAGS" 23177if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes 23178then : 23179 23180fi 23181 23182if test "$ac_cv_have_decl_CLOCK_MONOTONIC" = "yes" -a "$ac_cv_have_decl_clock_gettime" = "yes" ; then 23183 23184printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1 " >>confdefs.h 23185 23186fi 23187 23188if test "$ac_cv_have_decl_FIONBIO" = "yes" -a "$ac_cv_have_decl_ioctl" = "yes" ; then 23189 23190printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1 " >>confdefs.h 23191 23192fi 23193if test "$ac_cv_have_decl_FIONBIO" = "yes" -a "$ac_cv_have_decl_ioctlsocket" = "yes" ; then 23194 23195printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1 " >>confdefs.h 23196 23197fi 23198if test "$ac_cv_have_decl_SO_NONBLOCK" = "yes" -a "$ac_cv_have_decl_setsockopt" = "yes" ; then 23199 23200printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1 " >>confdefs.h 23201 23202fi 23203if test "$ac_cv_have_decl_O_NONBLOCK" = "yes" -a "$ac_cv_have_decl_fcntl" = "yes" ; then 23204 23205printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1 " >>confdefs.h 23206 23207fi 23208 23209if test "x$ac_cv_header_sys_types_h" = "xyes" ; then 23210 23211cat >>confdefs.h <<_EOF 23212#define CARES_HAVE_SYS_TYPES_H 1 23213_EOF 23214 23215fi 23216if test "x$ac_cv_header_sys_socket_h" = "xyes" ; then 23217 23218cat >>confdefs.h <<_EOF 23219#define CARES_HAVE_SYS_SOCKET_H 1 23220_EOF 23221 23222fi 23223if test "x$ac_cv_header_sys_select_h" = "xyes" ; then 23224 23225cat >>confdefs.h <<_EOF 23226#define CARES_HAVE_SYS_SELECT_H 1 23227_EOF 23228 23229fi 23230if test "x$ac_cv_header_ws2tcpip_h" = "xyes" ; then 23231 23232cat >>confdefs.h <<_EOF 23233#define CARES_HAVE_WS2TCPIP_H 1 23234_EOF 23235 23236fi 23237if test "x$ac_cv_header_winsock2_h" = "xyes" ; then 23238 23239cat >>confdefs.h <<_EOF 23240#define CARES_HAVE_WINSOCK2_H 1 23241_EOF 23242 23243fi 23244if test "x$ac_cv_header_windows_h" = "xyes" ; then 23245 23246cat >>confdefs.h <<_EOF 23247#define CARES_HAVE_WINDOWS_H 1 23248_EOF 23249 23250fi 23251if test "x$ac_cv_header_arpa_nameser_h" = "xyes" ; then 23252 23253cat >>confdefs.h <<_EOF 23254#define CARES_HAVE_ARPA_NAMESER_H 1 23255_EOF 23256 23257fi 23258if test "x$ac_cv_header_arpa_nameser_compa_h" = "xyes" ; then 23259 23260cat >>confdefs.h <<_EOF 23261#define CARES_HAVE_ARPA_NAMESER_COMPA_H 1 23262_EOF 23263 23264fi 23265 23266 23267 23268if test "${CARES_THREADS}" = "yes" -a "x${ac_cv_native_windows}" != "xyes" ; then 23269 23270 23271 23272 23273ac_ext=c 23274ac_cpp='$CPP $CPPFLAGS' 23275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23277ac_compiler_gnu=$ac_cv_c_compiler_gnu 23278 23279ax_pthread_ok=no 23280 23281# We used to check for pthread.h first, but this fails if pthread.h 23282# requires special compiler flags (e.g. on Tru64 or Sequent). 23283# It gets checked for in the link test anyway. 23284 23285# First of all, check if the user has set any of the PTHREAD_LIBS, 23286# etcetera environment variables, and if threads linking works using 23287# them: 23288if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 23289 ax_pthread_save_CC="$CC" 23290 ax_pthread_save_CFLAGS="$CFLAGS" 23291 ax_pthread_save_LIBS="$LIBS" 23292 if test "x$PTHREAD_CC" != "x" 23293then : 23294 CC="$PTHREAD_CC" 23295fi 23296 if test "x$PTHREAD_CXX" != "x" 23297then : 23298 CXX="$PTHREAD_CXX" 23299fi 23300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 23301 LIBS="$PTHREAD_LIBS $LIBS" 23302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 23303printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 23304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23305/* end confdefs.h. */ 23306 23307/* Override any GCC internal prototype to avoid an error. 23308 Use char because int might match the return type of a GCC 23309 builtin and then its argument prototype would still apply. */ 23310char pthread_join (); 23311int 23312main (void) 23313{ 23314return pthread_join (); 23315 ; 23316 return 0; 23317} 23318_ACEOF 23319if ac_fn_c_try_link "$LINENO" 23320then : 23321 ax_pthread_ok=yes 23322fi 23323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23324 conftest$ac_exeext conftest.$ac_ext 23325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 23326printf "%s\n" "$ax_pthread_ok" >&6; } 23327 if test "x$ax_pthread_ok" = "xno"; then 23328 PTHREAD_LIBS="" 23329 PTHREAD_CFLAGS="" 23330 fi 23331 CC="$ax_pthread_save_CC" 23332 CFLAGS="$ax_pthread_save_CFLAGS" 23333 LIBS="$ax_pthread_save_LIBS" 23334fi 23335 23336# We must check for the threads library under a number of different 23337# names; the ordering is very important because some systems 23338# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 23339# libraries is broken (non-POSIX). 23340 23341# Create a list of thread flags to try. Items with a "," contain both 23342# C compiler flags (before ",") and linker flags (after ","). Other items 23343# starting with a "-" are C compiler flags, and remaining items are 23344# library names, except for "none" which indicates that we try without 23345# any flags at all, and "pthread-config" which is a program returning 23346# the flags for the Pth emulation library. 23347 23348ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 23349 23350# The ordering *is* (sometimes) important. Some notes on the 23351# individual items follow: 23352 23353# pthreads: AIX (must check this before -lpthread) 23354# none: in case threads are in libc; should be tried before -Kthread and 23355# other compiler flags to prevent continual compiler warnings 23356# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 23357# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 23358# (Note: HP C rejects this with "bad form for `-t' option") 23359# -pthreads: Solaris/gcc (Note: HP C also rejects) 23360# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 23361# doesn't hurt to check since this sometimes defines pthreads and 23362# -D_REENTRANT too), HP C (must be checked before -lpthread, which 23363# is present but should not be used directly; and before -mthreads, 23364# because the compiler interprets this as "-mt" + "-hreads") 23365# -mthreads: Mingw32/gcc, Lynx/gcc 23366# pthread: Linux, etcetera 23367# --thread-safe: KAI C++ 23368# pthread-config: use pthread-config program (for GNU Pth library) 23369 23370case $host_os in 23371 23372 freebsd*) 23373 23374 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 23375 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 23376 23377 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 23378 ;; 23379 23380 hpux*) 23381 23382 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 23383 # multi-threading and also sets -lpthread." 23384 23385 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 23386 ;; 23387 23388 openedition*) 23389 23390 # IBM z/OS requires a feature-test macro to be defined in order to 23391 # enable POSIX threads at all, so give the user a hint if this is 23392 # not set. (We don't define these ourselves, as they can affect 23393 # other portions of the system API in unpredictable ways.) 23394 23395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23396/* end confdefs.h. */ 23397 23398# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 23399 AX_PTHREAD_ZOS_MISSING 23400# endif 23401 23402_ACEOF 23403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23404 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 23405then : 23406 { 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 23407printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 23408fi 23409rm -rf conftest* 23410 23411 ;; 23412 23413 solaris*) 23414 23415 # On Solaris (at least, for some versions), libc contains stubbed 23416 # (non-functional) versions of the pthreads routines, so link-based 23417 # tests will erroneously succeed. (N.B.: The stubs are missing 23418 # pthread_cleanup_push, or rather a function called by this macro, 23419 # so we could check for that, but who knows whether they'll stub 23420 # that too in a future libc.) So we'll check first for the 23421 # standard Solaris way of linking pthreads (-mt -lpthread). 23422 23423 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 23424 ;; 23425esac 23426 23427# Are we compiling with Clang? 23428 23429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 23430printf %s "checking whether $CC is Clang... " >&6; } 23431if test ${ax_cv_PTHREAD_CLANG+y} 23432then : 23433 printf %s "(cached) " >&6 23434else $as_nop 23435 ax_cv_PTHREAD_CLANG=no 23436 # Note that Autoconf sets GCC=yes for Clang as well as GCC 23437 if test "x$GCC" = "xyes"; then 23438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23439/* end confdefs.h. */ 23440/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 23441# if defined(__clang__) && defined(__llvm__) 23442 AX_PTHREAD_CC_IS_CLANG 23443# endif 23444 23445_ACEOF 23446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23447 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 23448then : 23449 ax_cv_PTHREAD_CLANG=yes 23450fi 23451rm -rf conftest* 23452 23453 fi 23454 23455fi 23456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 23457printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 23458ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 23459 23460 23461# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 23462 23463# Note that for GCC and Clang -pthread generally implies -lpthread, 23464# except when -nostdlib is passed. 23465# This is problematic using libtool to build C++ shared libraries with pthread: 23466# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 23467# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 23468# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 23469# To solve this, first try -pthread together with -lpthread for GCC 23470 23471if test "x$GCC" = "xyes" 23472then : 23473 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 23474fi 23475 23476# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 23477 23478if test "x$ax_pthread_clang" = "xyes" 23479then : 23480 ax_pthread_flags="-pthread,-lpthread -pthread" 23481fi 23482 23483 23484# The presence of a feature test macro requesting re-entrant function 23485# definitions is, on some systems, a strong hint that pthreads support is 23486# correctly enabled 23487 23488case $host_os in 23489 darwin* | hpux* | linux* | osf* | solaris*) 23490 ax_pthread_check_macro="_REENTRANT" 23491 ;; 23492 23493 aix*) 23494 ax_pthread_check_macro="_THREAD_SAFE" 23495 ;; 23496 23497 *) 23498 ax_pthread_check_macro="--" 23499 ;; 23500esac 23501if test "x$ax_pthread_check_macro" = "x--" 23502then : 23503 ax_pthread_check_cond=0 23504else $as_nop 23505 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 23506fi 23507 23508 23509if test "x$ax_pthread_ok" = "xno"; then 23510for ax_pthread_try_flag in $ax_pthread_flags; do 23511 23512 case $ax_pthread_try_flag in 23513 none) 23514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 23515printf %s "checking whether pthreads work without any flags... " >&6; } 23516 ;; 23517 23518 *,*) 23519 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 23520 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 23521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 23522printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 23523 ;; 23524 23525 -*) 23526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 23527printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 23528 PTHREAD_CFLAGS="$ax_pthread_try_flag" 23529 ;; 23530 23531 pthread-config) 23532 # Extract the first word of "pthread-config", so it can be a program name with args. 23533set dummy pthread-config; ac_word=$2 23534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23535printf %s "checking for $ac_word... " >&6; } 23536if test ${ac_cv_prog_ax_pthread_config+y} 23537then : 23538 printf %s "(cached) " >&6 23539else $as_nop 23540 if test -n "$ax_pthread_config"; then 23541 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 23542else 23543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23544for as_dir in $PATH 23545do 23546 IFS=$as_save_IFS 23547 case $as_dir in #((( 23548 '') as_dir=./ ;; 23549 */) ;; 23550 *) as_dir=$as_dir/ ;; 23551 esac 23552 for ac_exec_ext in '' $ac_executable_extensions; do 23553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23554 ac_cv_prog_ax_pthread_config="yes" 23555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23556 break 2 23557 fi 23558done 23559 done 23560IFS=$as_save_IFS 23561 23562 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 23563fi 23564fi 23565ax_pthread_config=$ac_cv_prog_ax_pthread_config 23566if test -n "$ax_pthread_config"; then 23567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 23568printf "%s\n" "$ax_pthread_config" >&6; } 23569else 23570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23571printf "%s\n" "no" >&6; } 23572fi 23573 23574 23575 if test "x$ax_pthread_config" = "xno" 23576then : 23577 continue 23578fi 23579 PTHREAD_CFLAGS="`pthread-config --cflags`" 23580 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 23581 ;; 23582 23583 *) 23584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 23585printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 23586 PTHREAD_LIBS="-l$ax_pthread_try_flag" 23587 ;; 23588 esac 23589 23590 ax_pthread_save_CFLAGS="$CFLAGS" 23591 ax_pthread_save_LIBS="$LIBS" 23592 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 23593 LIBS="$PTHREAD_LIBS $LIBS" 23594 23595 # Check for various functions. We must include pthread.h, 23596 # since some functions may be macros. (On the Sequent, we 23597 # need a special flag -Kthread to make this header compile.) 23598 # We check for pthread_join because it is in -lpthread on IRIX 23599 # while pthread_create is in libc. We check for pthread_attr_init 23600 # due to DEC craziness with -lpthreads. We check for 23601 # pthread_cleanup_push because it is one of the few pthread 23602 # functions on Solaris that doesn't have a non-functional libc stub. 23603 # We try pthread_create on general principles. 23604 23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23606/* end confdefs.h. */ 23607#include <pthread.h> 23608# if $ax_pthread_check_cond 23609# error "$ax_pthread_check_macro must be defined" 23610# endif 23611 static void *some_global = NULL; 23612 static void routine(void *a) 23613 { 23614 /* To avoid any unused-parameter or 23615 unused-but-set-parameter warning. */ 23616 some_global = a; 23617 } 23618 static void *start_routine(void *a) { return a; } 23619int 23620main (void) 23621{ 23622pthread_t th; pthread_attr_t attr; 23623 pthread_create(&th, 0, start_routine, 0); 23624 pthread_join(th, 0); 23625 pthread_attr_init(&attr); 23626 pthread_cleanup_push(routine, 0); 23627 pthread_cleanup_pop(0) /* ; */ 23628 ; 23629 return 0; 23630} 23631_ACEOF 23632if ac_fn_c_try_link "$LINENO" 23633then : 23634 ax_pthread_ok=yes 23635fi 23636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23637 conftest$ac_exeext conftest.$ac_ext 23638 23639 CFLAGS="$ax_pthread_save_CFLAGS" 23640 LIBS="$ax_pthread_save_LIBS" 23641 23642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 23643printf "%s\n" "$ax_pthread_ok" >&6; } 23644 if test "x$ax_pthread_ok" = "xyes" 23645then : 23646 break 23647fi 23648 23649 PTHREAD_LIBS="" 23650 PTHREAD_CFLAGS="" 23651done 23652fi 23653 23654 23655# Clang needs special handling, because older versions handle the -pthread 23656# option in a rather... idiosyncratic way 23657 23658if test "x$ax_pthread_clang" = "xyes"; then 23659 23660 # Clang takes -pthread; it has never supported any other flag 23661 23662 # (Note 1: This will need to be revisited if a system that Clang 23663 # supports has POSIX threads in a separate library. This tends not 23664 # to be the way of modern systems, but it's conceivable.) 23665 23666 # (Note 2: On some systems, notably Darwin, -pthread is not needed 23667 # to get POSIX threads support; the API is always present and 23668 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 23669 # -pthread does define _REENTRANT, and while the Darwin headers 23670 # ignore this macro, third-party headers might not.) 23671 23672 # However, older versions of Clang make a point of warning the user 23673 # that, in an invocation where only linking and no compilation is 23674 # taking place, the -pthread option has no effect ("argument unused 23675 # during compilation"). They expect -pthread to be passed in only 23676 # when source code is being compiled. 23677 # 23678 # Problem is, this is at odds with the way Automake and most other 23679 # C build frameworks function, which is that the same flags used in 23680 # compilation (CFLAGS) are also used in linking. Many systems 23681 # supported by AX_PTHREAD require exactly this for POSIX threads 23682 # support, and in fact it is often not straightforward to specify a 23683 # flag that is used only in the compilation phase and not in 23684 # linking. Such a scenario is extremely rare in practice. 23685 # 23686 # Even though use of the -pthread flag in linking would only print 23687 # a warning, this can be a nuisance for well-run software projects 23688 # that build with -Werror. So if the active version of Clang has 23689 # this misfeature, we search for an option to squash it. 23690 23691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 23692printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 23693if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 23694then : 23695 printf %s "(cached) " >&6 23696else $as_nop 23697 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 23698 # Create an alternate version of $ac_link that compiles and 23699 # links in two steps (.c -> .o, .o -> exe) instead of one 23700 # (.c -> exe), because the warning occurs only in the second 23701 # step 23702 ax_pthread_save_ac_link="$ac_link" 23703 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 23704 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 23705 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 23706 ax_pthread_save_CFLAGS="$CFLAGS" 23707 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 23708 if test "x$ax_pthread_try" = "xunknown" 23709then : 23710 break 23711fi 23712 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 23713 ac_link="$ax_pthread_save_ac_link" 23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23715/* end confdefs.h. */ 23716int main(void){return 0;} 23717_ACEOF 23718if ac_fn_c_try_link "$LINENO" 23719then : 23720 ac_link="$ax_pthread_2step_ac_link" 23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23722/* end confdefs.h. */ 23723int main(void){return 0;} 23724_ACEOF 23725if ac_fn_c_try_link "$LINENO" 23726then : 23727 break 23728fi 23729rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23730 conftest$ac_exeext conftest.$ac_ext 23731 23732fi 23733rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23734 conftest$ac_exeext conftest.$ac_ext 23735 done 23736 ac_link="$ax_pthread_save_ac_link" 23737 CFLAGS="$ax_pthread_save_CFLAGS" 23738 if test "x$ax_pthread_try" = "x" 23739then : 23740 ax_pthread_try=no 23741fi 23742 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 23743 23744fi 23745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 23746printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 23747 23748 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 23749 no | unknown) ;; 23750 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 23751 esac 23752 23753fi # $ax_pthread_clang = yes 23754 23755 23756 23757# Various other checks: 23758if test "x$ax_pthread_ok" = "xyes"; then 23759 ax_pthread_save_CFLAGS="$CFLAGS" 23760 ax_pthread_save_LIBS="$LIBS" 23761 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 23762 LIBS="$PTHREAD_LIBS $LIBS" 23763 23764 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 23765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 23766printf %s "checking for joinable pthread attribute... " >&6; } 23767if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 23768then : 23769 printf %s "(cached) " >&6 23770else $as_nop 23771 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 23772 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 23773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23774/* end confdefs.h. */ 23775#include <pthread.h> 23776int 23777main (void) 23778{ 23779int attr = $ax_pthread_attr; return attr /* ; */ 23780 ; 23781 return 0; 23782} 23783_ACEOF 23784if ac_fn_c_try_link "$LINENO" 23785then : 23786 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 23787fi 23788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23789 conftest$ac_exeext conftest.$ac_ext 23790 done 23791 23792fi 23793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 23794printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 23795 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 23796 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 23797 test "x$ax_pthread_joinable_attr_defined" != "xyes" 23798then : 23799 23800printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 23801 23802 ax_pthread_joinable_attr_defined=yes 23803 23804fi 23805 23806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 23807printf %s "checking whether more special flags are required for pthreads... " >&6; } 23808if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 23809then : 23810 printf %s "(cached) " >&6 23811else $as_nop 23812 ax_cv_PTHREAD_SPECIAL_FLAGS=no 23813 case $host_os in 23814 solaris*) 23815 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 23816 ;; 23817 esac 23818 23819fi 23820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 23821printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 23822 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 23823 test "x$ax_pthread_special_flags_added" != "xyes" 23824then : 23825 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 23826 ax_pthread_special_flags_added=yes 23827fi 23828 23829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 23830printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 23831if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 23832then : 23833 printf %s "(cached) " >&6 23834else $as_nop 23835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23836/* end confdefs.h. */ 23837#include <pthread.h> 23838int 23839main (void) 23840{ 23841int i = PTHREAD_PRIO_INHERIT; 23842 return i; 23843 ; 23844 return 0; 23845} 23846_ACEOF 23847if ac_fn_c_try_link "$LINENO" 23848then : 23849 ax_cv_PTHREAD_PRIO_INHERIT=yes 23850else $as_nop 23851 ax_cv_PTHREAD_PRIO_INHERIT=no 23852fi 23853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23854 conftest$ac_exeext conftest.$ac_ext 23855 23856fi 23857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 23858printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 23859 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 23860 test "x$ax_pthread_prio_inherit_defined" != "xyes" 23861then : 23862 23863printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 23864 23865 ax_pthread_prio_inherit_defined=yes 23866 23867fi 23868 23869 CFLAGS="$ax_pthread_save_CFLAGS" 23870 LIBS="$ax_pthread_save_LIBS" 23871 23872 # More AIX lossage: compile with *_r variant 23873 if test "x$GCC" != "xyes"; then 23874 case $host_os in 23875 aix*) 23876 case "x/$CC" in #( 23877 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 23878 #handle absolute path differently from PATH based program lookup 23879 case "x$CC" in #( 23880 x/*) : 23881 23882 if as_fn_executable_p ${CC}_r 23883then : 23884 PTHREAD_CC="${CC}_r" 23885fi 23886 if test "x${CXX}" != "x" 23887then : 23888 if as_fn_executable_p ${CXX}_r 23889then : 23890 PTHREAD_CXX="${CXX}_r" 23891fi 23892fi 23893 ;; #( 23894 *) : 23895 23896 for ac_prog in ${CC}_r 23897do 23898 # Extract the first word of "$ac_prog", so it can be a program name with args. 23899set dummy $ac_prog; ac_word=$2 23900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23901printf %s "checking for $ac_word... " >&6; } 23902if test ${ac_cv_prog_PTHREAD_CC+y} 23903then : 23904 printf %s "(cached) " >&6 23905else $as_nop 23906 if test -n "$PTHREAD_CC"; then 23907 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 23908else 23909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23910for as_dir in $PATH 23911do 23912 IFS=$as_save_IFS 23913 case $as_dir in #((( 23914 '') as_dir=./ ;; 23915 */) ;; 23916 *) as_dir=$as_dir/ ;; 23917 esac 23918 for ac_exec_ext in '' $ac_executable_extensions; do 23919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23920 ac_cv_prog_PTHREAD_CC="$ac_prog" 23921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23922 break 2 23923 fi 23924done 23925 done 23926IFS=$as_save_IFS 23927 23928fi 23929fi 23930PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 23931if test -n "$PTHREAD_CC"; then 23932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 23933printf "%s\n" "$PTHREAD_CC" >&6; } 23934else 23935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23936printf "%s\n" "no" >&6; } 23937fi 23938 23939 23940 test -n "$PTHREAD_CC" && break 23941done 23942test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 23943 23944 if test "x${CXX}" != "x" 23945then : 23946 for ac_prog in ${CXX}_r 23947do 23948 # Extract the first word of "$ac_prog", so it can be a program name with args. 23949set dummy $ac_prog; ac_word=$2 23950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23951printf %s "checking for $ac_word... " >&6; } 23952if test ${ac_cv_prog_PTHREAD_CXX+y} 23953then : 23954 printf %s "(cached) " >&6 23955else $as_nop 23956 if test -n "$PTHREAD_CXX"; then 23957 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 23958else 23959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23960for as_dir in $PATH 23961do 23962 IFS=$as_save_IFS 23963 case $as_dir in #((( 23964 '') as_dir=./ ;; 23965 */) ;; 23966 *) as_dir=$as_dir/ ;; 23967 esac 23968 for ac_exec_ext in '' $ac_executable_extensions; do 23969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23970 ac_cv_prog_PTHREAD_CXX="$ac_prog" 23971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23972 break 2 23973 fi 23974done 23975 done 23976IFS=$as_save_IFS 23977 23978fi 23979fi 23980PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 23981if test -n "$PTHREAD_CXX"; then 23982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 23983printf "%s\n" "$PTHREAD_CXX" >&6; } 23984else 23985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23986printf "%s\n" "no" >&6; } 23987fi 23988 23989 23990 test -n "$PTHREAD_CXX" && break 23991done 23992test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 23993 23994fi 23995 23996 ;; 23997esac 23998 ;; #( 23999 *) : 24000 ;; 24001esac 24002 ;; 24003 esac 24004 fi 24005fi 24006 24007test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 24008test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 24009 24010 24011 24012 24013 24014 24015# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 24016if test "x$ax_pthread_ok" = "xyes"; then 24017 24018 : 24019else 24020 ax_pthread_ok=no 24021 24022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: threads requested but not supported" >&5 24023printf "%s\n" "$as_me: WARNING: threads requested but not supported" >&2;} 24024 CARES_THREADS=no 24025 24026fi 24027ac_ext=c 24028ac_cpp='$CPP $CPPFLAGS' 24029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24031ac_compiler_gnu=$ac_cv_c_compiler_gnu 24032 24033 24034 24035 if test "${CARES_THREADS}" = "yes" ; then 24036 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 24037if test "x$ac_cv_header_pthread_h" = xyes 24038then : 24039 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 24040 24041fi 24042ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default" 24043if test "x$ac_cv_header_pthread_np_h" = xyes 24044then : 24045 printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 24046 24047fi 24048 24049 LIBS="$PTHREAD_LIBS $LIBS" 24050 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" 24051 CC="$PTHREAD_CC" 24052 CXX="$PTHREAD_CXX" 24053 fi 24054fi 24055 24056if test "${CARES_THREADS}" = "yes" ; then 24057 24058printf "%s\n" "#define CARES_THREADS 1 " >>confdefs.h 24059 24060fi 24061 24062CARES_PRIVATE_LIBS="$LIBS" 24063 24064 24065BUILD_SUBDIRS="include src docs" 24066 24067 24068 24069if test "x$build_tests" != "xno" -a "x$HAVE_CXX14" = "0" ; then 24070 if test "x$build_tests" = "xmaybe" ; then 24071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot build tests without a CXX14 compiler" >&5 24072printf "%s\n" "$as_me: WARNING: cannot build tests without a CXX14 compiler" >&2;} 24073 build_tests=no 24074 else 24075 as_fn_error $? "*** Building tests requires a CXX14 compiler" "$LINENO" 5 24076 fi 24077fi 24078if test "x$build_tests" != "xno" -a "x$cross_compiling" = "xyes" ; then 24079 if test "x$build_tests" = "xmaybe" ; then 24080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot build tests when cross compiling" >&5 24081printf "%s\n" "$as_me: WARNING: cannot build tests when cross compiling" >&2;} 24082 build_tests=no 24083 else 24084 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5 24085 fi 24086fi 24087 24088# Check whether --enable-tests-crossbuild was given. 24089if test ${enable_tests_crossbuild+y} 24090then : 24091 enableval=$enable_tests_crossbuild; build_tests="$enableval" 24092 24093fi 24094 24095 24096if test "x$build_tests" != "xno" ; then 24097 24098 24099 24100 24101 24102 24103 24104if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24105 if test -n "$ac_tool_prefix"; then 24106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24107set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24109printf %s "checking for $ac_word... " >&6; } 24110if test ${ac_cv_path_PKG_CONFIG+y} 24111then : 24112 printf %s "(cached) " >&6 24113else $as_nop 24114 case $PKG_CONFIG in 24115 [\\/]* | ?:[\\/]*) 24116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24117 ;; 24118 *) 24119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24120for as_dir in $PATH 24121do 24122 IFS=$as_save_IFS 24123 case $as_dir in #((( 24124 '') as_dir=./ ;; 24125 */) ;; 24126 *) as_dir=$as_dir/ ;; 24127 esac 24128 for ac_exec_ext in '' $ac_executable_extensions; do 24129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24130 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 24131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24132 break 2 24133 fi 24134done 24135 done 24136IFS=$as_save_IFS 24137 24138 ;; 24139esac 24140fi 24141PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24142if test -n "$PKG_CONFIG"; then 24143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24144printf "%s\n" "$PKG_CONFIG" >&6; } 24145else 24146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24147printf "%s\n" "no" >&6; } 24148fi 24149 24150 24151fi 24152if test -z "$ac_cv_path_PKG_CONFIG"; then 24153 ac_pt_PKG_CONFIG=$PKG_CONFIG 24154 # Extract the first word of "pkg-config", so it can be a program name with args. 24155set dummy pkg-config; ac_word=$2 24156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24157printf %s "checking for $ac_word... " >&6; } 24158if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 24159then : 24160 printf %s "(cached) " >&6 24161else $as_nop 24162 case $ac_pt_PKG_CONFIG in 24163 [\\/]* | ?:[\\/]*) 24164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24165 ;; 24166 *) 24167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24168for as_dir in $PATH 24169do 24170 IFS=$as_save_IFS 24171 case $as_dir in #((( 24172 '') as_dir=./ ;; 24173 */) ;; 24174 *) as_dir=$as_dir/ ;; 24175 esac 24176 for ac_exec_ext in '' $ac_executable_extensions; do 24177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24178 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 24179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24180 break 2 24181 fi 24182done 24183 done 24184IFS=$as_save_IFS 24185 24186 ;; 24187esac 24188fi 24189ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24190if test -n "$ac_pt_PKG_CONFIG"; then 24191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24192printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 24193else 24194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24195printf "%s\n" "no" >&6; } 24196fi 24197 24198 if test "x$ac_pt_PKG_CONFIG" = x; then 24199 PKG_CONFIG="" 24200 else 24201 case $cross_compiling:$ac_tool_warned in 24202yes:) 24203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24204printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24205ac_tool_warned=yes ;; 24206esac 24207 PKG_CONFIG=$ac_pt_PKG_CONFIG 24208 fi 24209else 24210 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24211fi 24212 24213fi 24214if test -n "$PKG_CONFIG"; then 24215 _pkg_min_version=0.9.0 24216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24217printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24218 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24220printf "%s\n" "yes" >&6; } 24221 else 24222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24223printf "%s\n" "no" >&6; } 24224 PKG_CONFIG="" 24225 fi 24226fi 24227 24228pkg_failed=no 24229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmock" >&5 24230printf %s "checking for gmock... " >&6; } 24231 24232if test -n "$GMOCK_CFLAGS"; then 24233 pkg_cv_GMOCK_CFLAGS="$GMOCK_CFLAGS" 24234 elif test -n "$PKG_CONFIG"; then 24235 if test -n "$PKG_CONFIG" && \ 24236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmock\""; } >&5 24237 ($PKG_CONFIG --exists --print-errors "gmock") 2>&5 24238 ac_status=$? 24239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24240 test $ac_status = 0; }; then 24241 pkg_cv_GMOCK_CFLAGS=`$PKG_CONFIG --cflags "gmock" 2>/dev/null` 24242 test "x$?" != "x0" && pkg_failed=yes 24243else 24244 pkg_failed=yes 24245fi 24246 else 24247 pkg_failed=untried 24248fi 24249if test -n "$GMOCK_LIBS"; then 24250 pkg_cv_GMOCK_LIBS="$GMOCK_LIBS" 24251 elif test -n "$PKG_CONFIG"; then 24252 if test -n "$PKG_CONFIG" && \ 24253 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmock\""; } >&5 24254 ($PKG_CONFIG --exists --print-errors "gmock") 2>&5 24255 ac_status=$? 24256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24257 test $ac_status = 0; }; then 24258 pkg_cv_GMOCK_LIBS=`$PKG_CONFIG --libs "gmock" 2>/dev/null` 24259 test "x$?" != "x0" && pkg_failed=yes 24260else 24261 pkg_failed=yes 24262fi 24263 else 24264 pkg_failed=untried 24265fi 24266 24267 24268 24269if test $pkg_failed = yes; then 24270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24271printf "%s\n" "no" >&6; } 24272 24273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24274 _pkg_short_errors_supported=yes 24275else 24276 _pkg_short_errors_supported=no 24277fi 24278 if test $_pkg_short_errors_supported = yes; then 24279 GMOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmock" 2>&1` 24280 else 24281 GMOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmock" 2>&1` 24282 fi 24283 # Put the nasty error message in config.log where it belongs 24284 echo "$GMOCK_PKG_ERRORS" >&5 24285 24286 have_gmock=no 24287elif test $pkg_failed = untried; then 24288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24289printf "%s\n" "no" >&6; } 24290 have_gmock=no 24291else 24292 GMOCK_CFLAGS=$pkg_cv_GMOCK_CFLAGS 24293 GMOCK_LIBS=$pkg_cv_GMOCK_LIBS 24294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24295printf "%s\n" "yes" >&6; } 24296 have_gmock=yes 24297fi 24298 if test "x$have_gmock" = "xno" ; then 24299 if test "x$build_tests" = "xmaybe" ; then 24300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gmock could not be found, not building tests" >&5 24301printf "%s\n" "$as_me: WARNING: gmock could not be found, not building tests" >&2;} 24302 build_tests=no 24303 else 24304 as_fn_error $? "tests require gmock" "$LINENO" 5 24305 fi 24306 else 24307 24308pkg_failed=no 24309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmock >= 1.12.0" >&5 24310printf %s "checking for gmock >= 1.12.0... " >&6; } 24311 24312if test -n "$GMOCK112_CFLAGS"; then 24313 pkg_cv_GMOCK112_CFLAGS="$GMOCK112_CFLAGS" 24314 elif test -n "$PKG_CONFIG"; then 24315 if test -n "$PKG_CONFIG" && \ 24316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmock >= 1.12.0\""; } >&5 24317 ($PKG_CONFIG --exists --print-errors "gmock >= 1.12.0") 2>&5 24318 ac_status=$? 24319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24320 test $ac_status = 0; }; then 24321 pkg_cv_GMOCK112_CFLAGS=`$PKG_CONFIG --cflags "gmock >= 1.12.0" 2>/dev/null` 24322 test "x$?" != "x0" && pkg_failed=yes 24323else 24324 pkg_failed=yes 24325fi 24326 else 24327 pkg_failed=untried 24328fi 24329if test -n "$GMOCK112_LIBS"; then 24330 pkg_cv_GMOCK112_LIBS="$GMOCK112_LIBS" 24331 elif test -n "$PKG_CONFIG"; then 24332 if test -n "$PKG_CONFIG" && \ 24333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmock >= 1.12.0\""; } >&5 24334 ($PKG_CONFIG --exists --print-errors "gmock >= 1.12.0") 2>&5 24335 ac_status=$? 24336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24337 test $ac_status = 0; }; then 24338 pkg_cv_GMOCK112_LIBS=`$PKG_CONFIG --libs "gmock >= 1.12.0" 2>/dev/null` 24339 test "x$?" != "x0" && pkg_failed=yes 24340else 24341 pkg_failed=yes 24342fi 24343 else 24344 pkg_failed=untried 24345fi 24346 24347 24348 24349if test $pkg_failed = yes; then 24350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24351printf "%s\n" "no" >&6; } 24352 24353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24354 _pkg_short_errors_supported=yes 24355else 24356 _pkg_short_errors_supported=no 24357fi 24358 if test $_pkg_short_errors_supported = yes; then 24359 GMOCK112_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmock >= 1.12.0" 2>&1` 24360 else 24361 GMOCK112_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmock >= 1.12.0" 2>&1` 24362 fi 24363 # Put the nasty error message in config.log where it belongs 24364 echo "$GMOCK112_PKG_ERRORS" >&5 24365 24366 have_gmock_v112=no 24367elif test $pkg_failed = untried; then 24368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24369printf "%s\n" "no" >&6; } 24370 have_gmock_v112=no 24371else 24372 GMOCK112_CFLAGS=$pkg_cv_GMOCK112_CFLAGS 24373 GMOCK112_LIBS=$pkg_cv_GMOCK112_LIBS 24374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24375printf "%s\n" "yes" >&6; } 24376 have_gmock_v112=yes 24377fi 24378 if test "x$have_gmock_v112" = "xyes" ; then 24379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether user namespaces are supported" >&5 24380printf %s "checking whether user namespaces are supported... " >&6; } 24381if test ${ares_cv_user_namespace+y} 24382then : 24383 printf %s "(cached) " >&6 24384else $as_nop 24385 24386 ac_ext=c 24387ac_cpp='$CPP $CPPFLAGS' 24388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24390ac_compiler_gnu=$ac_cv_c_compiler_gnu 24391 24392 if test "$cross_compiling" = yes 24393then : 24394 ares_cv_user_namespace=no 24395else $as_nop 24396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24397/* end confdefs.h. */ 24398 24399#define _GNU_SOURCE 24400#include <fcntl.h> 24401#include <sched.h> 24402#include <signal.h> 24403#include <stdio.h> 24404#include <string.h> 24405#include <sys/types.h> 24406#include <sys/wait.h> 24407 24408int userfn(void *d) { 24409 usleep(100000); /* synchronize by sleep */ 24410 return (getuid() != 0); 24411} 24412char userst[1024*1024]; 24413int main() { 24414 char buffer[1024]; 24415 int rc, status, fd; 24416 pid_t child = clone(userfn, userst + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0); 24417 if (child < 0) return 1; 24418 24419 snprintf(buffer, sizeof(buffer), "/proc/%d/uid_map", child); 24420 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755); 24421 snprintf(buffer, sizeof(buffer), "0 %d 1\n", getuid()); 24422 write(fd, buffer, strlen(buffer)); 24423 close(fd); 24424 24425 rc = waitpid(child, &status, 0); 24426 if (rc <= 0) return 1; 24427 if (!WIFEXITED(status)) return 1; 24428 return WEXITSTATUS(status); 24429} 24430 24431_ACEOF 24432if ac_fn_c_try_run "$LINENO" 24433then : 24434 ares_cv_user_namespace=yes 24435else $as_nop 24436 ares_cv_user_namespace=no 24437fi 24438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24439 conftest.$ac_objext conftest.beam conftest.$ac_ext 24440fi 24441 24442 ac_ext=c 24443ac_cpp='$CPP $CPPFLAGS' 24444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24446ac_compiler_gnu=$ac_cv_c_compiler_gnu 24447 24448 24449fi 24450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ares_cv_user_namespace" >&5 24451printf "%s\n" "$ares_cv_user_namespace" >&6; } 24452 if test "$ares_cv_user_namespace" = yes; then 24453 24454printf "%s\n" "#define HAVE_USER_NAMESPACE 1" >>confdefs.h 24455 24456 fi 24457 24458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UTS namespaces are supported" >&5 24459printf %s "checking whether UTS namespaces are supported... " >&6; } 24460if test ${ares_cv_uts_namespace+y} 24461then : 24462 printf %s "(cached) " >&6 24463else $as_nop 24464 24465 ac_ext=c 24466ac_cpp='$CPP $CPPFLAGS' 24467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24469ac_compiler_gnu=$ac_cv_c_compiler_gnu 24470 24471 if test "$cross_compiling" = yes 24472then : 24473 ares_cv_uts_namespace=no 24474else $as_nop 24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24476/* end confdefs.h. */ 24477 24478#define _GNU_SOURCE 24479#include <sched.h> 24480#include <signal.h> 24481#include <stdio.h> 24482#include <string.h> 24483#include <fcntl.h> 24484#include <unistd.h> 24485#include <sys/types.h> 24486#include <sys/wait.h> 24487 24488int utsfn(void *d) { 24489 char buffer[1024]; 24490 const char *name = "autoconftest"; 24491 int rc = sethostname(name, strlen(name)); 24492 if (rc != 0) return 1; 24493 gethostname(buffer, 1024); 24494 return (strcmp(buffer, name) != 0); 24495} 24496 24497char st2[1024*1024]; 24498int fn(void *d) { 24499 pid_t child; 24500 int rc, status; 24501 usleep(100000); /* synchronize by sleep */ 24502 if (getuid() != 0) return 1; 24503 child = clone(utsfn, st2 + 1024*1024, CLONE_NEWUTS|SIGCHLD, 0); 24504 if (child < 0) return 1; 24505 rc = waitpid(child, &status, 0); 24506 if (rc <= 0) return 1; 24507 if (!WIFEXITED(status)) return 1; 24508 return WEXITSTATUS(status); 24509} 24510char st[1024*1024]; 24511int main() { 24512 char buffer[1024]; 24513 int rc, status, fd; 24514 pid_t child = clone(fn, st + 1024*1024, CLONE_NEWUSER|SIGCHLD, 0); 24515 if (child < 0) return 1; 24516 24517 snprintf(buffer, sizeof(buffer), "/proc/%d/uid_map", child); 24518 fd = open(buffer, O_CREAT|O_WRONLY|O_TRUNC, 0755); 24519 snprintf(buffer, sizeof(buffer), "0 %d 1\n", getuid()); 24520 write(fd, buffer, strlen(buffer)); 24521 close(fd); 24522 24523 rc = waitpid(child, &status, 0); 24524 if (rc <= 0) return 1; 24525 if (!WIFEXITED(status)) return 1; 24526 return WEXITSTATUS(status); 24527} 24528 24529 24530_ACEOF 24531if ac_fn_c_try_run "$LINENO" 24532then : 24533 ares_cv_uts_namespace=yes 24534else $as_nop 24535 ares_cv_uts_namespace=no 24536fi 24537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24538 conftest.$ac_objext conftest.beam conftest.$ac_ext 24539fi 24540 24541 ac_ext=c 24542ac_cpp='$CPP $CPPFLAGS' 24543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24545ac_compiler_gnu=$ac_cv_c_compiler_gnu 24546 24547 24548fi 24549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ares_cv_uts_namespace" >&5 24550printf "%s\n" "$ares_cv_uts_namespace" >&6; } 24551 if test "$ares_cv_uts_namespace" = yes; then 24552 24553printf "%s\n" "#define HAVE_UTS_NAMESPACE 1" >>confdefs.h 24554 24555 fi 24556 24557 fi 24558 fi 24559fi 24560if test "x$build_tests" != "xno" ; then 24561 build_tests=yes 24562 24563 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true 24564 ac_ext=cpp 24565ac_cpp='$CXXCPP $CPPFLAGS' 24566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24569 ac_success=no 24570 24571 24572 24573 24574 24575 if test x$ac_success = xno; then 24576 for alternative in ${ax_cxx_compile_alternatives}; do 24577 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do 24578 if test x"$switch" = xMSVC; then 24579 switch=-std:c++${alternative} 24580 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_${switch}_MSVC" | $as_tr_sh` 24581 else 24582 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 24583 fi 24584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 24585printf %s "checking whether $CXX supports C++14 features with $switch... " >&6; } 24586if eval test \${$cachevar+y} 24587then : 24588 printf %s "(cached) " >&6 24589else $as_nop 24590 ac_save_CXX="$CXX" 24591 CXX="$CXX $switch" 24592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24593/* end confdefs.h. */ 24594 24595 24596// If the compiler admits that it is not ready for C++11, why torture it? 24597// Hopefully, this will speed up the test. 24598 24599#ifndef __cplusplus 24600 24601#error "This is not a C++ compiler" 24602 24603// MSVC always sets __cplusplus to 199711L in older versions; newer versions 24604// only set it correctly if /Zc:__cplusplus is specified as well as a 24605// /std:c++NN switch: 24606// 24607// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 24608// 24609// The value __cplusplus ought to have is available in _MSVC_LANG since 24610// Visual Studio 2015 Update 3: 24611// 24612// https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros 24613// 24614// This was also the first MSVC version to support C++14 so we can't use the 24615// value of either __cplusplus or _MSVC_LANG to quickly rule out MSVC having 24616// C++11 or C++14 support, but we can check _MSVC_LANG for C++17 and later. 24617#elif __cplusplus < 201103L && !defined _MSC_VER 24618 24619#error "This is not a C++11 compiler" 24620 24621#else 24622 24623namespace cxx11 24624{ 24625 24626 namespace test_static_assert 24627 { 24628 24629 template <typename T> 24630 struct check 24631 { 24632 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 24633 }; 24634 24635 } 24636 24637 namespace test_final_override 24638 { 24639 24640 struct Base 24641 { 24642 virtual ~Base() {} 24643 virtual void f() {} 24644 }; 24645 24646 struct Derived : public Base 24647 { 24648 virtual ~Derived() override {} 24649 virtual void f() override {} 24650 }; 24651 24652 } 24653 24654 namespace test_double_right_angle_brackets 24655 { 24656 24657 template < typename T > 24658 struct check {}; 24659 24660 typedef check<void> single_type; 24661 typedef check<check<void>> double_type; 24662 typedef check<check<check<void>>> triple_type; 24663 typedef check<check<check<check<void>>>> quadruple_type; 24664 24665 } 24666 24667 namespace test_decltype 24668 { 24669 24670 int 24671 f() 24672 { 24673 int a = 1; 24674 decltype(a) b = 2; 24675 return a + b; 24676 } 24677 24678 } 24679 24680 namespace test_type_deduction 24681 { 24682 24683 template < typename T1, typename T2 > 24684 struct is_same 24685 { 24686 static const bool value = false; 24687 }; 24688 24689 template < typename T > 24690 struct is_same<T, T> 24691 { 24692 static const bool value = true; 24693 }; 24694 24695 template < typename T1, typename T2 > 24696 auto 24697 add(T1 a1, T2 a2) -> decltype(a1 + a2) 24698 { 24699 return a1 + a2; 24700 } 24701 24702 int 24703 test(const int c, volatile int v) 24704 { 24705 static_assert(is_same<int, decltype(0)>::value == true, ""); 24706 static_assert(is_same<int, decltype(c)>::value == false, ""); 24707 static_assert(is_same<int, decltype(v)>::value == false, ""); 24708 auto ac = c; 24709 auto av = v; 24710 auto sumi = ac + av + 'x'; 24711 auto sumf = ac + av + 1.0; 24712 static_assert(is_same<int, decltype(ac)>::value == true, ""); 24713 static_assert(is_same<int, decltype(av)>::value == true, ""); 24714 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 24715 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 24716 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 24717 return (sumf > 0.0) ? sumi : add(c, v); 24718 } 24719 24720 } 24721 24722 namespace test_noexcept 24723 { 24724 24725 int f() { return 0; } 24726 int g() noexcept { return 0; } 24727 24728 static_assert(noexcept(f()) == false, ""); 24729 static_assert(noexcept(g()) == true, ""); 24730 24731 } 24732 24733 namespace test_constexpr 24734 { 24735 24736 template < typename CharT > 24737 unsigned long constexpr 24738 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 24739 { 24740 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 24741 } 24742 24743 template < typename CharT > 24744 unsigned long constexpr 24745 strlen_c(const CharT *const s) noexcept 24746 { 24747 return strlen_c_r(s, 0UL); 24748 } 24749 24750 static_assert(strlen_c("") == 0UL, ""); 24751 static_assert(strlen_c("1") == 1UL, ""); 24752 static_assert(strlen_c("example") == 7UL, ""); 24753 static_assert(strlen_c("another\0example") == 7UL, ""); 24754 24755 } 24756 24757 namespace test_rvalue_references 24758 { 24759 24760 template < int N > 24761 struct answer 24762 { 24763 static constexpr int value = N; 24764 }; 24765 24766 answer<1> f(int&) { return answer<1>(); } 24767 answer<2> f(const int&) { return answer<2>(); } 24768 answer<3> f(int&&) { return answer<3>(); } 24769 24770 void 24771 test() 24772 { 24773 int i = 0; 24774 const int c = 0; 24775 static_assert(decltype(f(i))::value == 1, ""); 24776 static_assert(decltype(f(c))::value == 2, ""); 24777 static_assert(decltype(f(0))::value == 3, ""); 24778 } 24779 24780 } 24781 24782 namespace test_uniform_initialization 24783 { 24784 24785 struct test 24786 { 24787 static const int zero {}; 24788 static const int one {1}; 24789 }; 24790 24791 static_assert(test::zero == 0, ""); 24792 static_assert(test::one == 1, ""); 24793 24794 } 24795 24796 namespace test_lambdas 24797 { 24798 24799 void 24800 test1() 24801 { 24802 auto lambda1 = [](){}; 24803 auto lambda2 = lambda1; 24804 lambda1(); 24805 lambda2(); 24806 } 24807 24808 int 24809 test2() 24810 { 24811 auto a = [](int i, int j){ return i + j; }(1, 2); 24812 auto b = []() -> int { return '0'; }(); 24813 auto c = [=](){ return a + b; }(); 24814 auto d = [&](){ return c; }(); 24815 auto e = [a, &b](int x) mutable { 24816 const auto identity = [](int y){ return y; }; 24817 for (auto i = 0; i < a; ++i) 24818 a += b--; 24819 return x + identity(a + b); 24820 }(0); 24821 return a + b + c + d + e; 24822 } 24823 24824 int 24825 test3() 24826 { 24827 const auto nullary = [](){ return 0; }; 24828 const auto unary = [](int x){ return x; }; 24829 using nullary_t = decltype(nullary); 24830 using unary_t = decltype(unary); 24831 const auto higher1st = [](nullary_t f){ return f(); }; 24832 const auto higher2nd = [unary](nullary_t f1){ 24833 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 24834 }; 24835 return higher1st(nullary) + higher2nd(nullary)(unary); 24836 } 24837 24838 } 24839 24840 namespace test_variadic_templates 24841 { 24842 24843 template <int...> 24844 struct sum; 24845 24846 template <int N0, int... N1toN> 24847 struct sum<N0, N1toN...> 24848 { 24849 static constexpr auto value = N0 + sum<N1toN...>::value; 24850 }; 24851 24852 template <> 24853 struct sum<> 24854 { 24855 static constexpr auto value = 0; 24856 }; 24857 24858 static_assert(sum<>::value == 0, ""); 24859 static_assert(sum<1>::value == 1, ""); 24860 static_assert(sum<23>::value == 23, ""); 24861 static_assert(sum<1, 2>::value == 3, ""); 24862 static_assert(sum<5, 5, 11>::value == 21, ""); 24863 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 24864 24865 } 24866 24867 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 24868 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 24869 // because of this. 24870 namespace test_template_alias_sfinae 24871 { 24872 24873 struct foo {}; 24874 24875 template<typename T> 24876 using member = typename T::member_type; 24877 24878 template<typename T> 24879 void func(...) {} 24880 24881 template<typename T> 24882 void func(member<T>*) {} 24883 24884 void test(); 24885 24886 void test() { func<foo>(0); } 24887 24888 } 24889 24890} // namespace cxx11 24891 24892#endif // __cplusplus >= 201103L 24893 24894 24895 24896 24897// If the compiler admits that it is not ready for C++14, why torture it? 24898// Hopefully, this will speed up the test. 24899 24900#ifndef __cplusplus 24901 24902#error "This is not a C++ compiler" 24903 24904#elif __cplusplus < 201402L && !defined _MSC_VER 24905 24906#error "This is not a C++14 compiler" 24907 24908#else 24909 24910namespace cxx14 24911{ 24912 24913 namespace test_polymorphic_lambdas 24914 { 24915 24916 int 24917 test() 24918 { 24919 const auto lambda = [](auto&&... args){ 24920 const auto istiny = [](auto x){ 24921 return (sizeof(x) == 1UL) ? 1 : 0; 24922 }; 24923 const int aretiny[] = { istiny(args)... }; 24924 return aretiny[0]; 24925 }; 24926 return lambda(1, 1L, 1.0f, '1'); 24927 } 24928 24929 } 24930 24931 namespace test_binary_literals 24932 { 24933 24934 constexpr auto ivii = 0b0000000000101010; 24935 static_assert(ivii == 42, "wrong value"); 24936 24937 } 24938 24939 namespace test_generalized_constexpr 24940 { 24941 24942 template < typename CharT > 24943 constexpr unsigned long 24944 strlen_c(const CharT *const s) noexcept 24945 { 24946 auto length = 0UL; 24947 for (auto p = s; *p; ++p) 24948 ++length; 24949 return length; 24950 } 24951 24952 static_assert(strlen_c("") == 0UL, ""); 24953 static_assert(strlen_c("x") == 1UL, ""); 24954 static_assert(strlen_c("test") == 4UL, ""); 24955 static_assert(strlen_c("another\0test") == 7UL, ""); 24956 24957 } 24958 24959 namespace test_lambda_init_capture 24960 { 24961 24962 int 24963 test() 24964 { 24965 auto x = 0; 24966 const auto lambda1 = [a = x](int b){ return a + b; }; 24967 const auto lambda2 = [a = lambda1(x)](){ return a; }; 24968 return lambda2(); 24969 } 24970 24971 } 24972 24973 namespace test_digit_separators 24974 { 24975 24976 constexpr auto ten_million = 100'000'000; 24977 static_assert(ten_million == 100000000, ""); 24978 24979 } 24980 24981 namespace test_return_type_deduction 24982 { 24983 24984 auto f(int& x) { return x; } 24985 decltype(auto) g(int& x) { return x; } 24986 24987 template < typename T1, typename T2 > 24988 struct is_same 24989 { 24990 static constexpr auto value = false; 24991 }; 24992 24993 template < typename T > 24994 struct is_same<T, T> 24995 { 24996 static constexpr auto value = true; 24997 }; 24998 24999 int 25000 test() 25001 { 25002 auto x = 0; 25003 static_assert(is_same<int, decltype(f(x))>::value, ""); 25004 static_assert(is_same<int&, decltype(g(x))>::value, ""); 25005 return x; 25006 } 25007 25008 } 25009 25010} // namespace cxx14 25011 25012#endif // __cplusplus >= 201402L 25013 25014 25015 25016_ACEOF 25017if ac_fn_cxx_try_compile "$LINENO" 25018then : 25019 eval $cachevar=yes 25020else $as_nop 25021 eval $cachevar=no 25022fi 25023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25024 CXX="$ac_save_CXX" 25025fi 25026eval ac_res=\$$cachevar 25027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25028printf "%s\n" "$ac_res" >&6; } 25029 if eval test x\$$cachevar = xyes; then 25030 CXX="$CXX $switch" 25031 if test -n "$CXXCPP" ; then 25032 CXXCPP="$CXXCPP $switch" 25033 fi 25034 ac_success=yes 25035 break 25036 fi 25037 done 25038 if test x$ac_success = xyes; then 25039 break 25040 fi 25041 done 25042 fi 25043 ac_ext=c 25044ac_cpp='$CPP $CPPFLAGS' 25045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25047ac_compiler_gnu=$ac_cv_c_compiler_gnu 25048 25049 if test x$ax_cxx_compile_cxx14_required = xtrue; then 25050 if test x$ac_success = xno; then 25051 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 25052 fi 25053 fi 25054 if test x$ac_success = xno; then 25055 HAVE_CXX14=0 25056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 25057printf "%s\n" "$as_me: No compiler with C++14 support was found" >&6;} 25058 else 25059 HAVE_CXX14=1 25060 25061printf "%s\n" "#define HAVE_CXX14 1" >>confdefs.h 25062 25063 fi 25064 25065 25066 if test "$ac_cv_native_windows" != "yes" ; then 25067 25068 25069 25070 25071ac_ext=c 25072ac_cpp='$CPP $CPPFLAGS' 25073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25075ac_compiler_gnu=$ac_cv_c_compiler_gnu 25076 25077ax_pthread_ok=no 25078 25079# We used to check for pthread.h first, but this fails if pthread.h 25080# requires special compiler flags (e.g. on Tru64 or Sequent). 25081# It gets checked for in the link test anyway. 25082 25083# First of all, check if the user has set any of the PTHREAD_LIBS, 25084# etcetera environment variables, and if threads linking works using 25085# them: 25086if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 25087 ax_pthread_save_CC="$CC" 25088 ax_pthread_save_CFLAGS="$CFLAGS" 25089 ax_pthread_save_LIBS="$LIBS" 25090 if test "x$PTHREAD_CC" != "x" 25091then : 25092 CC="$PTHREAD_CC" 25093fi 25094 if test "x$PTHREAD_CXX" != "x" 25095then : 25096 CXX="$PTHREAD_CXX" 25097fi 25098 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25099 LIBS="$PTHREAD_LIBS $LIBS" 25100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 25101printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 25102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25103/* end confdefs.h. */ 25104 25105/* Override any GCC internal prototype to avoid an error. 25106 Use char because int might match the return type of a GCC 25107 builtin and then its argument prototype would still apply. */ 25108char pthread_join (); 25109int 25110main (void) 25111{ 25112return pthread_join (); 25113 ; 25114 return 0; 25115} 25116_ACEOF 25117if ac_fn_c_try_link "$LINENO" 25118then : 25119 ax_pthread_ok=yes 25120fi 25121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25122 conftest$ac_exeext conftest.$ac_ext 25123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25124printf "%s\n" "$ax_pthread_ok" >&6; } 25125 if test "x$ax_pthread_ok" = "xno"; then 25126 PTHREAD_LIBS="" 25127 PTHREAD_CFLAGS="" 25128 fi 25129 CC="$ax_pthread_save_CC" 25130 CFLAGS="$ax_pthread_save_CFLAGS" 25131 LIBS="$ax_pthread_save_LIBS" 25132fi 25133 25134# We must check for the threads library under a number of different 25135# names; the ordering is very important because some systems 25136# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 25137# libraries is broken (non-POSIX). 25138 25139# Create a list of thread flags to try. Items with a "," contain both 25140# C compiler flags (before ",") and linker flags (after ","). Other items 25141# starting with a "-" are C compiler flags, and remaining items are 25142# library names, except for "none" which indicates that we try without 25143# any flags at all, and "pthread-config" which is a program returning 25144# the flags for the Pth emulation library. 25145 25146ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 25147 25148# The ordering *is* (sometimes) important. Some notes on the 25149# individual items follow: 25150 25151# pthreads: AIX (must check this before -lpthread) 25152# none: in case threads are in libc; should be tried before -Kthread and 25153# other compiler flags to prevent continual compiler warnings 25154# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 25155# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 25156# (Note: HP C rejects this with "bad form for `-t' option") 25157# -pthreads: Solaris/gcc (Note: HP C also rejects) 25158# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 25159# doesn't hurt to check since this sometimes defines pthreads and 25160# -D_REENTRANT too), HP C (must be checked before -lpthread, which 25161# is present but should not be used directly; and before -mthreads, 25162# because the compiler interprets this as "-mt" + "-hreads") 25163# -mthreads: Mingw32/gcc, Lynx/gcc 25164# pthread: Linux, etcetera 25165# --thread-safe: KAI C++ 25166# pthread-config: use pthread-config program (for GNU Pth library) 25167 25168case $host_os in 25169 25170 freebsd*) 25171 25172 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 25173 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 25174 25175 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 25176 ;; 25177 25178 hpux*) 25179 25180 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 25181 # multi-threading and also sets -lpthread." 25182 25183 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 25184 ;; 25185 25186 openedition*) 25187 25188 # IBM z/OS requires a feature-test macro to be defined in order to 25189 # enable POSIX threads at all, so give the user a hint if this is 25190 # not set. (We don't define these ourselves, as they can affect 25191 # other portions of the system API in unpredictable ways.) 25192 25193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25194/* end confdefs.h. */ 25195 25196# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 25197 AX_PTHREAD_ZOS_MISSING 25198# endif 25199 25200_ACEOF 25201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25202 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 25203then : 25204 { 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 25205printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 25206fi 25207rm -rf conftest* 25208 25209 ;; 25210 25211 solaris*) 25212 25213 # On Solaris (at least, for some versions), libc contains stubbed 25214 # (non-functional) versions of the pthreads routines, so link-based 25215 # tests will erroneously succeed. (N.B.: The stubs are missing 25216 # pthread_cleanup_push, or rather a function called by this macro, 25217 # so we could check for that, but who knows whether they'll stub 25218 # that too in a future libc.) So we'll check first for the 25219 # standard Solaris way of linking pthreads (-mt -lpthread). 25220 25221 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 25222 ;; 25223esac 25224 25225# Are we compiling with Clang? 25226 25227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 25228printf %s "checking whether $CC is Clang... " >&6; } 25229if test ${ax_cv_PTHREAD_CLANG+y} 25230then : 25231 printf %s "(cached) " >&6 25232else $as_nop 25233 ax_cv_PTHREAD_CLANG=no 25234 # Note that Autoconf sets GCC=yes for Clang as well as GCC 25235 if test "x$GCC" = "xyes"; then 25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25237/* end confdefs.h. */ 25238/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 25239# if defined(__clang__) && defined(__llvm__) 25240 AX_PTHREAD_CC_IS_CLANG 25241# endif 25242 25243_ACEOF 25244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25245 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 25246then : 25247 ax_cv_PTHREAD_CLANG=yes 25248fi 25249rm -rf conftest* 25250 25251 fi 25252 25253fi 25254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 25255printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 25256ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 25257 25258 25259# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 25260 25261# Note that for GCC and Clang -pthread generally implies -lpthread, 25262# except when -nostdlib is passed. 25263# This is problematic using libtool to build C++ shared libraries with pthread: 25264# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 25265# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 25266# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 25267# To solve this, first try -pthread together with -lpthread for GCC 25268 25269if test "x$GCC" = "xyes" 25270then : 25271 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 25272fi 25273 25274# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 25275 25276if test "x$ax_pthread_clang" = "xyes" 25277then : 25278 ax_pthread_flags="-pthread,-lpthread -pthread" 25279fi 25280 25281 25282# The presence of a feature test macro requesting re-entrant function 25283# definitions is, on some systems, a strong hint that pthreads support is 25284# correctly enabled 25285 25286case $host_os in 25287 darwin* | hpux* | linux* | osf* | solaris*) 25288 ax_pthread_check_macro="_REENTRANT" 25289 ;; 25290 25291 aix*) 25292 ax_pthread_check_macro="_THREAD_SAFE" 25293 ;; 25294 25295 *) 25296 ax_pthread_check_macro="--" 25297 ;; 25298esac 25299if test "x$ax_pthread_check_macro" = "x--" 25300then : 25301 ax_pthread_check_cond=0 25302else $as_nop 25303 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 25304fi 25305 25306 25307if test "x$ax_pthread_ok" = "xno"; then 25308for ax_pthread_try_flag in $ax_pthread_flags; do 25309 25310 case $ax_pthread_try_flag in 25311 none) 25312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 25313printf %s "checking whether pthreads work without any flags... " >&6; } 25314 ;; 25315 25316 *,*) 25317 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 25318 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 25319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 25320printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 25321 ;; 25322 25323 -*) 25324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 25325printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 25326 PTHREAD_CFLAGS="$ax_pthread_try_flag" 25327 ;; 25328 25329 pthread-config) 25330 # Extract the first word of "pthread-config", so it can be a program name with args. 25331set dummy pthread-config; ac_word=$2 25332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25333printf %s "checking for $ac_word... " >&6; } 25334if test ${ac_cv_prog_ax_pthread_config+y} 25335then : 25336 printf %s "(cached) " >&6 25337else $as_nop 25338 if test -n "$ax_pthread_config"; then 25339 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 25340else 25341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25342for as_dir in $PATH 25343do 25344 IFS=$as_save_IFS 25345 case $as_dir in #((( 25346 '') as_dir=./ ;; 25347 */) ;; 25348 *) as_dir=$as_dir/ ;; 25349 esac 25350 for ac_exec_ext in '' $ac_executable_extensions; do 25351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25352 ac_cv_prog_ax_pthread_config="yes" 25353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25354 break 2 25355 fi 25356done 25357 done 25358IFS=$as_save_IFS 25359 25360 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 25361fi 25362fi 25363ax_pthread_config=$ac_cv_prog_ax_pthread_config 25364if test -n "$ax_pthread_config"; then 25365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 25366printf "%s\n" "$ax_pthread_config" >&6; } 25367else 25368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25369printf "%s\n" "no" >&6; } 25370fi 25371 25372 25373 if test "x$ax_pthread_config" = "xno" 25374then : 25375 continue 25376fi 25377 PTHREAD_CFLAGS="`pthread-config --cflags`" 25378 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 25379 ;; 25380 25381 *) 25382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 25383printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 25384 PTHREAD_LIBS="-l$ax_pthread_try_flag" 25385 ;; 25386 esac 25387 25388 ax_pthread_save_CFLAGS="$CFLAGS" 25389 ax_pthread_save_LIBS="$LIBS" 25390 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25391 LIBS="$PTHREAD_LIBS $LIBS" 25392 25393 # Check for various functions. We must include pthread.h, 25394 # since some functions may be macros. (On the Sequent, we 25395 # need a special flag -Kthread to make this header compile.) 25396 # We check for pthread_join because it is in -lpthread on IRIX 25397 # while pthread_create is in libc. We check for pthread_attr_init 25398 # due to DEC craziness with -lpthreads. We check for 25399 # pthread_cleanup_push because it is one of the few pthread 25400 # functions on Solaris that doesn't have a non-functional libc stub. 25401 # We try pthread_create on general principles. 25402 25403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25404/* end confdefs.h. */ 25405#include <pthread.h> 25406# if $ax_pthread_check_cond 25407# error "$ax_pthread_check_macro must be defined" 25408# endif 25409 static void *some_global = NULL; 25410 static void routine(void *a) 25411 { 25412 /* To avoid any unused-parameter or 25413 unused-but-set-parameter warning. */ 25414 some_global = a; 25415 } 25416 static void *start_routine(void *a) { return a; } 25417int 25418main (void) 25419{ 25420pthread_t th; pthread_attr_t attr; 25421 pthread_create(&th, 0, start_routine, 0); 25422 pthread_join(th, 0); 25423 pthread_attr_init(&attr); 25424 pthread_cleanup_push(routine, 0); 25425 pthread_cleanup_pop(0) /* ; */ 25426 ; 25427 return 0; 25428} 25429_ACEOF 25430if ac_fn_c_try_link "$LINENO" 25431then : 25432 ax_pthread_ok=yes 25433fi 25434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25435 conftest$ac_exeext conftest.$ac_ext 25436 25437 CFLAGS="$ax_pthread_save_CFLAGS" 25438 LIBS="$ax_pthread_save_LIBS" 25439 25440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25441printf "%s\n" "$ax_pthread_ok" >&6; } 25442 if test "x$ax_pthread_ok" = "xyes" 25443then : 25444 break 25445fi 25446 25447 PTHREAD_LIBS="" 25448 PTHREAD_CFLAGS="" 25449done 25450fi 25451 25452 25453# Clang needs special handling, because older versions handle the -pthread 25454# option in a rather... idiosyncratic way 25455 25456if test "x$ax_pthread_clang" = "xyes"; then 25457 25458 # Clang takes -pthread; it has never supported any other flag 25459 25460 # (Note 1: This will need to be revisited if a system that Clang 25461 # supports has POSIX threads in a separate library. This tends not 25462 # to be the way of modern systems, but it's conceivable.) 25463 25464 # (Note 2: On some systems, notably Darwin, -pthread is not needed 25465 # to get POSIX threads support; the API is always present and 25466 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 25467 # -pthread does define _REENTRANT, and while the Darwin headers 25468 # ignore this macro, third-party headers might not.) 25469 25470 # However, older versions of Clang make a point of warning the user 25471 # that, in an invocation where only linking and no compilation is 25472 # taking place, the -pthread option has no effect ("argument unused 25473 # during compilation"). They expect -pthread to be passed in only 25474 # when source code is being compiled. 25475 # 25476 # Problem is, this is at odds with the way Automake and most other 25477 # C build frameworks function, which is that the same flags used in 25478 # compilation (CFLAGS) are also used in linking. Many systems 25479 # supported by AX_PTHREAD require exactly this for POSIX threads 25480 # support, and in fact it is often not straightforward to specify a 25481 # flag that is used only in the compilation phase and not in 25482 # linking. Such a scenario is extremely rare in practice. 25483 # 25484 # Even though use of the -pthread flag in linking would only print 25485 # a warning, this can be a nuisance for well-run software projects 25486 # that build with -Werror. So if the active version of Clang has 25487 # this misfeature, we search for an option to squash it. 25488 25489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 25490printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 25491if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 25492then : 25493 printf %s "(cached) " >&6 25494else $as_nop 25495 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 25496 # Create an alternate version of $ac_link that compiles and 25497 # links in two steps (.c -> .o, .o -> exe) instead of one 25498 # (.c -> exe), because the warning occurs only in the second 25499 # step 25500 ax_pthread_save_ac_link="$ac_link" 25501 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 25502 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 25503 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 25504 ax_pthread_save_CFLAGS="$CFLAGS" 25505 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 25506 if test "x$ax_pthread_try" = "xunknown" 25507then : 25508 break 25509fi 25510 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 25511 ac_link="$ax_pthread_save_ac_link" 25512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25513/* end confdefs.h. */ 25514int main(void){return 0;} 25515_ACEOF 25516if ac_fn_c_try_link "$LINENO" 25517then : 25518 ac_link="$ax_pthread_2step_ac_link" 25519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25520/* end confdefs.h. */ 25521int main(void){return 0;} 25522_ACEOF 25523if ac_fn_c_try_link "$LINENO" 25524then : 25525 break 25526fi 25527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25528 conftest$ac_exeext conftest.$ac_ext 25529 25530fi 25531rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25532 conftest$ac_exeext conftest.$ac_ext 25533 done 25534 ac_link="$ax_pthread_save_ac_link" 25535 CFLAGS="$ax_pthread_save_CFLAGS" 25536 if test "x$ax_pthread_try" = "x" 25537then : 25538 ax_pthread_try=no 25539fi 25540 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 25541 25542fi 25543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 25544printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 25545 25546 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 25547 no | unknown) ;; 25548 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 25549 esac 25550 25551fi # $ax_pthread_clang = yes 25552 25553 25554 25555# Various other checks: 25556if test "x$ax_pthread_ok" = "xyes"; then 25557 ax_pthread_save_CFLAGS="$CFLAGS" 25558 ax_pthread_save_LIBS="$LIBS" 25559 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25560 LIBS="$PTHREAD_LIBS $LIBS" 25561 25562 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 25563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 25564printf %s "checking for joinable pthread attribute... " >&6; } 25565if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 25566then : 25567 printf %s "(cached) " >&6 25568else $as_nop 25569 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 25570 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 25571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25572/* end confdefs.h. */ 25573#include <pthread.h> 25574int 25575main (void) 25576{ 25577int attr = $ax_pthread_attr; return attr /* ; */ 25578 ; 25579 return 0; 25580} 25581_ACEOF 25582if ac_fn_c_try_link "$LINENO" 25583then : 25584 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 25585fi 25586rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25587 conftest$ac_exeext conftest.$ac_ext 25588 done 25589 25590fi 25591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 25592printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 25593 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 25594 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 25595 test "x$ax_pthread_joinable_attr_defined" != "xyes" 25596then : 25597 25598printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 25599 25600 ax_pthread_joinable_attr_defined=yes 25601 25602fi 25603 25604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 25605printf %s "checking whether more special flags are required for pthreads... " >&6; } 25606if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 25607then : 25608 printf %s "(cached) " >&6 25609else $as_nop 25610 ax_cv_PTHREAD_SPECIAL_FLAGS=no 25611 case $host_os in 25612 solaris*) 25613 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 25614 ;; 25615 esac 25616 25617fi 25618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 25619printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 25620 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 25621 test "x$ax_pthread_special_flags_added" != "xyes" 25622then : 25623 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 25624 ax_pthread_special_flags_added=yes 25625fi 25626 25627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 25628printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 25629if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 25630then : 25631 printf %s "(cached) " >&6 25632else $as_nop 25633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25634/* end confdefs.h. */ 25635#include <pthread.h> 25636int 25637main (void) 25638{ 25639int i = PTHREAD_PRIO_INHERIT; 25640 return i; 25641 ; 25642 return 0; 25643} 25644_ACEOF 25645if ac_fn_c_try_link "$LINENO" 25646then : 25647 ax_cv_PTHREAD_PRIO_INHERIT=yes 25648else $as_nop 25649 ax_cv_PTHREAD_PRIO_INHERIT=no 25650fi 25651rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25652 conftest$ac_exeext conftest.$ac_ext 25653 25654fi 25655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 25656printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 25657 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 25658 test "x$ax_pthread_prio_inherit_defined" != "xyes" 25659then : 25660 25661printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 25662 25663 ax_pthread_prio_inherit_defined=yes 25664 25665fi 25666 25667 CFLAGS="$ax_pthread_save_CFLAGS" 25668 LIBS="$ax_pthread_save_LIBS" 25669 25670 # More AIX lossage: compile with *_r variant 25671 if test "x$GCC" != "xyes"; then 25672 case $host_os in 25673 aix*) 25674 case "x/$CC" in #( 25675 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 25676 #handle absolute path differently from PATH based program lookup 25677 case "x$CC" in #( 25678 x/*) : 25679 25680 if as_fn_executable_p ${CC}_r 25681then : 25682 PTHREAD_CC="${CC}_r" 25683fi 25684 if test "x${CXX}" != "x" 25685then : 25686 if as_fn_executable_p ${CXX}_r 25687then : 25688 PTHREAD_CXX="${CXX}_r" 25689fi 25690fi 25691 ;; #( 25692 *) : 25693 25694 for ac_prog in ${CC}_r 25695do 25696 # Extract the first word of "$ac_prog", so it can be a program name with args. 25697set dummy $ac_prog; ac_word=$2 25698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25699printf %s "checking for $ac_word... " >&6; } 25700if test ${ac_cv_prog_PTHREAD_CC+y} 25701then : 25702 printf %s "(cached) " >&6 25703else $as_nop 25704 if test -n "$PTHREAD_CC"; then 25705 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 25706else 25707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25708for as_dir in $PATH 25709do 25710 IFS=$as_save_IFS 25711 case $as_dir in #((( 25712 '') as_dir=./ ;; 25713 */) ;; 25714 *) as_dir=$as_dir/ ;; 25715 esac 25716 for ac_exec_ext in '' $ac_executable_extensions; do 25717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25718 ac_cv_prog_PTHREAD_CC="$ac_prog" 25719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25720 break 2 25721 fi 25722done 25723 done 25724IFS=$as_save_IFS 25725 25726fi 25727fi 25728PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 25729if test -n "$PTHREAD_CC"; then 25730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 25731printf "%s\n" "$PTHREAD_CC" >&6; } 25732else 25733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25734printf "%s\n" "no" >&6; } 25735fi 25736 25737 25738 test -n "$PTHREAD_CC" && break 25739done 25740test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25741 25742 if test "x${CXX}" != "x" 25743then : 25744 for ac_prog in ${CXX}_r 25745do 25746 # Extract the first word of "$ac_prog", so it can be a program name with args. 25747set dummy $ac_prog; ac_word=$2 25748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25749printf %s "checking for $ac_word... " >&6; } 25750if test ${ac_cv_prog_PTHREAD_CXX+y} 25751then : 25752 printf %s "(cached) " >&6 25753else $as_nop 25754 if test -n "$PTHREAD_CXX"; then 25755 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 25756else 25757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25758for as_dir in $PATH 25759do 25760 IFS=$as_save_IFS 25761 case $as_dir in #((( 25762 '') as_dir=./ ;; 25763 */) ;; 25764 *) as_dir=$as_dir/ ;; 25765 esac 25766 for ac_exec_ext in '' $ac_executable_extensions; do 25767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25768 ac_cv_prog_PTHREAD_CXX="$ac_prog" 25769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25770 break 2 25771 fi 25772done 25773 done 25774IFS=$as_save_IFS 25775 25776fi 25777fi 25778PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 25779if test -n "$PTHREAD_CXX"; then 25780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 25781printf "%s\n" "$PTHREAD_CXX" >&6; } 25782else 25783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25784printf "%s\n" "no" >&6; } 25785fi 25786 25787 25788 test -n "$PTHREAD_CXX" && break 25789done 25790test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 25791 25792fi 25793 25794 ;; 25795esac 25796 ;; #( 25797 *) : 25798 ;; 25799esac 25800 ;; 25801 esac 25802 fi 25803fi 25804 25805test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25806test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 25807 25808 25809 25810 25811 25812 25813# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 25814if test "x$ax_pthread_ok" = "xyes"; then 25815 CARES_TEST_PTHREADS="yes" 25816 : 25817else 25818 ax_pthread_ok=no 25819 as_fn_error $? "threading required for tests" "$LINENO" 5 25820fi 25821ac_ext=c 25822ac_cpp='$CPP $CPPFLAGS' 25823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25825ac_compiler_gnu=$ac_cv_c_compiler_gnu 25826 25827 25828 fi 25829 25830 BUILD_SUBDIRS="${BUILD_SUBDIRS} test" 25831fi 25832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5 25833printf %s "checking whether to build tests... " >&6; } 25834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5 25835printf "%s\n" "$build_tests" >&6; } 25836 25837 if test "x$build_tests" = "xyes"; then 25838 BUILD_TESTS_TRUE= 25839 BUILD_TESTS_FALSE='#' 25840else 25841 BUILD_TESTS_TRUE='#' 25842 BUILD_TESTS_FALSE= 25843fi 25844 25845 25846 25847 25848 25849 25850 25851ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc" 25852 25853if test -z "$BUILD_TESTS_TRUE"; then : 25854 ac_config_files="$ac_config_files test/Makefile" 25855 25856fi 25857 25858cat >confcache <<\_ACEOF 25859# This file is a shell script that caches the results of configure 25860# tests run on this system so they can be shared between configure 25861# scripts and configure runs, see configure's option --config-cache. 25862# It is not useful on other systems. If it contains results you don't 25863# want to keep, you may remove or edit it. 25864# 25865# config.status only pays attention to the cache file if you give it 25866# the --recheck option to rerun configure. 25867# 25868# `ac_cv_env_foo' variables (set or unset) will be overridden when 25869# loading this file, other *unset* `ac_cv_foo' will be assigned the 25870# following values. 25871 25872_ACEOF 25873 25874# The following way of writing the cache mishandles newlines in values, 25875# but we know of no workaround that is simple, portable, and efficient. 25876# So, we kill variables containing newlines. 25877# Ultrix sh set writes to stderr and can't be redirected directly, 25878# and sets the high bit in the cache file unless we assign to the vars. 25879( 25880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25881 eval ac_val=\$$ac_var 25882 case $ac_val in #( 25883 *${as_nl}*) 25884 case $ac_var in #( 25885 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25886printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25887 esac 25888 case $ac_var in #( 25889 _ | IFS | as_nl) ;; #( 25890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25891 *) { eval $ac_var=; unset $ac_var;} ;; 25892 esac ;; 25893 esac 25894 done 25895 25896 (set) 2>&1 | 25897 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25898 *${as_nl}ac_space=\ *) 25899 # `set' does not quote correctly, so add quotes: double-quote 25900 # substitution turns \\\\ into \\, and sed turns \\ into \. 25901 sed -n \ 25902 "s/'/'\\\\''/g; 25903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25904 ;; #( 25905 *) 25906 # `set' quotes correctly as required by POSIX, so do not add quotes. 25907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25908 ;; 25909 esac | 25910 sort 25911) | 25912 sed ' 25913 /^ac_cv_env_/b end 25914 t clear 25915 :clear 25916 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 25917 t end 25918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25919 :end' >>confcache 25920if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25921 if test -w "$cache_file"; then 25922 if test "x$cache_file" != "x/dev/null"; then 25923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25924printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 25925 if test ! -f "$cache_file" || test -h "$cache_file"; then 25926 cat confcache >"$cache_file" 25927 else 25928 case $cache_file in #( 25929 */* | ?:*) 25930 mv -f confcache "$cache_file"$$ && 25931 mv -f "$cache_file"$$ "$cache_file" ;; #( 25932 *) 25933 mv -f confcache "$cache_file" ;; 25934 esac 25935 fi 25936 fi 25937 else 25938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25939printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 25940 fi 25941fi 25942rm -f confcache 25943 25944test "x$prefix" = xNONE && prefix=$ac_default_prefix 25945# Let make expand exec_prefix. 25946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25947 25948DEFS=-DHAVE_CONFIG_H 25949 25950ac_libobjs= 25951ac_ltlibobjs= 25952U= 25953for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25954 # 1. Remove the extension, and $U if already installed. 25955 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25956 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 25957 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25958 # will be set to the directory where LIBOBJS objects are built. 25959 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25960 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25961done 25962LIBOBJS=$ac_libobjs 25963 25964LTLIBOBJS=$ac_ltlibobjs 25965 25966 25967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 25968printf %s "checking that generated files are newer than configure... " >&6; } 25969 if test -n "$am_sleep_pid"; then 25970 # Hide warnings about reused PIDs. 25971 wait $am_sleep_pid 2>/dev/null 25972 fi 25973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 25974printf "%s\n" "done" >&6; } 25975if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 25976 as_fn_error $? "conditional \"AMDEP\" was never defined. 25977Usually this means the macro was only invoked conditionally." "$LINENO" 5 25978fi 25979if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 25980 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 25981Usually this means the macro was only invoked conditionally." "$LINENO" 5 25982fi 25983if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 25984 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 25985Usually this means the macro was only invoked conditionally." "$LINENO" 5 25986fi 25987 if test -n "$EXEEXT"; then 25988 am__EXEEXT_TRUE= 25989 am__EXEEXT_FALSE='#' 25990else 25991 am__EXEEXT_TRUE='#' 25992 am__EXEEXT_FALSE= 25993fi 25994 25995if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 25996 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 25997Usually this means the macro was only invoked conditionally." "$LINENO" 5 25998fi 25999if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then 26000 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. 26001Usually this means the macro was only invoked conditionally." "$LINENO" 5 26002fi 26003if test -z "${CARES_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_USE_NO_UNDEFINED_FALSE}"; then 26004 as_fn_error $? "conditional \"CARES_USE_NO_UNDEFINED\" was never defined. 26005Usually this means the macro was only invoked conditionally." "$LINENO" 5 26006fi 26007if test -z "${CARES_SYMBOL_HIDING_TRUE}" && test -z "${CARES_SYMBOL_HIDING_FALSE}"; then 26008 as_fn_error $? "conditional \"CARES_SYMBOL_HIDING\" was never defined. 26009Usually this means the macro was only invoked conditionally." "$LINENO" 5 26010fi 26011if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then 26012 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined. 26013Usually this means the macro was only invoked conditionally." "$LINENO" 5 26014fi 26015 26016: "${CONFIG_STATUS=./config.status}" 26017ac_write_fail=0 26018ac_clean_files_save=$ac_clean_files 26019ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26021printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 26022as_write_fail=0 26023cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 26024#! $SHELL 26025# Generated by $as_me. 26026# Run this file to recreate the current configuration. 26027# Compiler output produced by configure, useful for debugging 26028# configure, is in config.log if it exists. 26029 26030debug=false 26031ac_cs_recheck=false 26032ac_cs_silent=false 26033 26034SHELL=\${CONFIG_SHELL-$SHELL} 26035export SHELL 26036_ASEOF 26037cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26038## -------------------- ## 26039## M4sh Initialization. ## 26040## -------------------- ## 26041 26042# Be more Bourne compatible 26043DUALCASE=1; export DUALCASE # for MKS sh 26044as_nop=: 26045if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 26046then : 26047 emulate sh 26048 NULLCMD=: 26049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26050 # is contrary to our usage. Disable this feature. 26051 alias -g '${1+"$@"}'='"$@"' 26052 setopt NO_GLOB_SUBST 26053else $as_nop 26054 case `(set -o) 2>/dev/null` in #( 26055 *posix*) : 26056 set -o posix ;; #( 26057 *) : 26058 ;; 26059esac 26060fi 26061 26062 26063 26064# Reset variables that may have inherited troublesome values from 26065# the environment. 26066 26067# IFS needs to be set, to space, tab, and newline, in precisely that order. 26068# (If _AS_PATH_WALK were called with IFS unset, it would have the 26069# side effect of setting IFS to empty, thus disabling word splitting.) 26070# Quoting is to prevent editors from complaining about space-tab. 26071as_nl=' 26072' 26073export as_nl 26074IFS=" "" $as_nl" 26075 26076PS1='$ ' 26077PS2='> ' 26078PS4='+ ' 26079 26080# Ensure predictable behavior from utilities with locale-dependent output. 26081LC_ALL=C 26082export LC_ALL 26083LANGUAGE=C 26084export LANGUAGE 26085 26086# We cannot yet rely on "unset" to work, but we need these variables 26087# to be unset--not just set to an empty or harmless value--now, to 26088# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 26089# also avoids known problems related to "unset" and subshell syntax 26090# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 26091for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 26092do eval test \${$as_var+y} \ 26093 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 26094done 26095 26096# Ensure that fds 0, 1, and 2 are open. 26097if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 26098if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 26099if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 26100 26101# The user is always right. 26102if ${PATH_SEPARATOR+false} :; then 26103 PATH_SEPARATOR=: 26104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 26105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26106 PATH_SEPARATOR=';' 26107 } 26108fi 26109 26110 26111# Find who we are. Look in the path if we contain no directory separator. 26112as_myself= 26113case $0 in #(( 26114 *[\\/]* ) as_myself=$0 ;; 26115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26116for as_dir in $PATH 26117do 26118 IFS=$as_save_IFS 26119 case $as_dir in #((( 26120 '') as_dir=./ ;; 26121 */) ;; 26122 *) as_dir=$as_dir/ ;; 26123 esac 26124 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 26125 done 26126IFS=$as_save_IFS 26127 26128 ;; 26129esac 26130# We did not find ourselves, most probably we were run as `sh COMMAND' 26131# in which case we are not to be found in the path. 26132if test "x$as_myself" = x; then 26133 as_myself=$0 26134fi 26135if test ! -f "$as_myself"; then 26136 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26137 exit 1 26138fi 26139 26140 26141 26142# as_fn_error STATUS ERROR [LINENO LOG_FD] 26143# ---------------------------------------- 26144# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 26145# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 26146# script with STATUS, using 1 if that was 0. 26147as_fn_error () 26148{ 26149 as_status=$1; test $as_status -eq 0 && as_status=1 26150 if test "$4"; then 26151 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 26152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 26153 fi 26154 printf "%s\n" "$as_me: error: $2" >&2 26155 as_fn_exit $as_status 26156} # as_fn_error 26157 26158 26159 26160# as_fn_set_status STATUS 26161# ----------------------- 26162# Set $? to STATUS, without forking. 26163as_fn_set_status () 26164{ 26165 return $1 26166} # as_fn_set_status 26167 26168# as_fn_exit STATUS 26169# ----------------- 26170# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 26171as_fn_exit () 26172{ 26173 set +e 26174 as_fn_set_status $1 26175 exit $1 26176} # as_fn_exit 26177 26178# as_fn_unset VAR 26179# --------------- 26180# Portably unset VAR. 26181as_fn_unset () 26182{ 26183 { eval $1=; unset $1;} 26184} 26185as_unset=as_fn_unset 26186 26187# as_fn_append VAR VALUE 26188# ---------------------- 26189# Append the text in VALUE to the end of the definition contained in VAR. Take 26190# advantage of any shell optimizations that allow amortized linear growth over 26191# repeated appends, instead of the typical quadratic growth present in naive 26192# implementations. 26193if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 26194then : 26195 eval 'as_fn_append () 26196 { 26197 eval $1+=\$2 26198 }' 26199else $as_nop 26200 as_fn_append () 26201 { 26202 eval $1=\$$1\$2 26203 } 26204fi # as_fn_append 26205 26206# as_fn_arith ARG... 26207# ------------------ 26208# Perform arithmetic evaluation on the ARGs, and store the result in the 26209# global $as_val. Take advantage of shells that can avoid forks. The arguments 26210# must be portable across $(()) and expr. 26211if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 26212then : 26213 eval 'as_fn_arith () 26214 { 26215 as_val=$(( $* )) 26216 }' 26217else $as_nop 26218 as_fn_arith () 26219 { 26220 as_val=`expr "$@" || test $? -eq 1` 26221 } 26222fi # as_fn_arith 26223 26224 26225if expr a : '\(a\)' >/dev/null 2>&1 && 26226 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26227 as_expr=expr 26228else 26229 as_expr=false 26230fi 26231 26232if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 26233 as_basename=basename 26234else 26235 as_basename=false 26236fi 26237 26238if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26239 as_dirname=dirname 26240else 26241 as_dirname=false 26242fi 26243 26244as_me=`$as_basename -- "$0" || 26245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26246 X"$0" : 'X\(//\)$' \| \ 26247 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26248printf "%s\n" X/"$0" | 26249 sed '/^.*\/\([^/][^/]*\)\/*$/{ 26250 s//\1/ 26251 q 26252 } 26253 /^X\/\(\/\/\)$/{ 26254 s//\1/ 26255 q 26256 } 26257 /^X\/\(\/\).*/{ 26258 s//\1/ 26259 q 26260 } 26261 s/.*/./; q'` 26262 26263# Avoid depending upon Character Ranges. 26264as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26265as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26266as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26267as_cr_digits='0123456789' 26268as_cr_alnum=$as_cr_Letters$as_cr_digits 26269 26270 26271# Determine whether it's possible to make 'echo' print without a newline. 26272# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 26273# for compatibility with existing Makefiles. 26274ECHO_C= ECHO_N= ECHO_T= 26275case `echo -n x` in #((((( 26276-n*) 26277 case `echo 'xy\c'` in 26278 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26279 xy) ECHO_C='\c';; 26280 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 26281 ECHO_T=' ';; 26282 esac;; 26283*) 26284 ECHO_N='-n';; 26285esac 26286 26287# For backward compatibility with old third-party macros, we provide 26288# the shell variables $as_echo and $as_echo_n. New code should use 26289# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 26290as_echo='printf %s\n' 26291as_echo_n='printf %s' 26292 26293rm -f conf$$ conf$$.exe conf$$.file 26294if test -d conf$$.dir; then 26295 rm -f conf$$.dir/conf$$.file 26296else 26297 rm -f conf$$.dir 26298 mkdir conf$$.dir 2>/dev/null 26299fi 26300if (echo >conf$$.file) 2>/dev/null; then 26301 if ln -s conf$$.file conf$$ 2>/dev/null; then 26302 as_ln_s='ln -s' 26303 # ... but there are two gotchas: 26304 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 26305 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 26306 # In both cases, we have to default to `cp -pR'. 26307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 26308 as_ln_s='cp -pR' 26309 elif ln conf$$.file conf$$ 2>/dev/null; then 26310 as_ln_s=ln 26311 else 26312 as_ln_s='cp -pR' 26313 fi 26314else 26315 as_ln_s='cp -pR' 26316fi 26317rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26318rmdir conf$$.dir 2>/dev/null 26319 26320 26321# as_fn_mkdir_p 26322# ------------- 26323# Create "$as_dir" as a directory, including parents if necessary. 26324as_fn_mkdir_p () 26325{ 26326 26327 case $as_dir in #( 26328 -*) as_dir=./$as_dir;; 26329 esac 26330 test -d "$as_dir" || eval $as_mkdir_p || { 26331 as_dirs= 26332 while :; do 26333 case $as_dir in #( 26334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 26335 *) as_qdir=$as_dir;; 26336 esac 26337 as_dirs="'$as_qdir' $as_dirs" 26338 as_dir=`$as_dirname -- "$as_dir" || 26339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26340 X"$as_dir" : 'X\(//\)[^/]' \| \ 26341 X"$as_dir" : 'X\(//\)$' \| \ 26342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 26343printf "%s\n" X"$as_dir" | 26344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26345 s//\1/ 26346 q 26347 } 26348 /^X\(\/\/\)[^/].*/{ 26349 s//\1/ 26350 q 26351 } 26352 /^X\(\/\/\)$/{ 26353 s//\1/ 26354 q 26355 } 26356 /^X\(\/\).*/{ 26357 s//\1/ 26358 q 26359 } 26360 s/.*/./; q'` 26361 test -d "$as_dir" && break 26362 done 26363 test -z "$as_dirs" || eval "mkdir $as_dirs" 26364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 26365 26366 26367} # as_fn_mkdir_p 26368if mkdir -p . 2>/dev/null; then 26369 as_mkdir_p='mkdir -p "$as_dir"' 26370else 26371 test -d ./-p && rmdir ./-p 26372 as_mkdir_p=false 26373fi 26374 26375 26376# as_fn_executable_p FILE 26377# ----------------------- 26378# Test if FILE is an executable regular file. 26379as_fn_executable_p () 26380{ 26381 test -f "$1" && test -x "$1" 26382} # as_fn_executable_p 26383as_test_x='test -x' 26384as_executable_p=as_fn_executable_p 26385 26386# Sed expression to map a string onto a valid CPP name. 26387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26388 26389# Sed expression to map a string onto a valid variable name. 26390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26391 26392 26393exec 6>&1 26394## ----------------------------------- ## 26395## Main body of $CONFIG_STATUS script. ## 26396## ----------------------------------- ## 26397_ASEOF 26398test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 26399 26400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26401# Save the log message, to keep $0 and so on meaningful, and to 26402# report actual input values of CONFIG_FILES etc. instead of their 26403# values after options handling. 26404ac_log=" 26405This file was extended by c-ares $as_me 1.34.5, which was 26406generated by GNU Autoconf 2.71. Invocation command line was 26407 26408 CONFIG_FILES = $CONFIG_FILES 26409 CONFIG_HEADERS = $CONFIG_HEADERS 26410 CONFIG_LINKS = $CONFIG_LINKS 26411 CONFIG_COMMANDS = $CONFIG_COMMANDS 26412 $ $0 $@ 26413 26414on `(hostname || uname -n) 2>/dev/null | sed 1q` 26415" 26416 26417_ACEOF 26418 26419case $ac_config_files in *" 26420"*) set x $ac_config_files; shift; ac_config_files=$*;; 26421esac 26422 26423case $ac_config_headers in *" 26424"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 26425esac 26426 26427 26428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26429# Files that config.status was made for. 26430config_files="$ac_config_files" 26431config_headers="$ac_config_headers" 26432config_commands="$ac_config_commands" 26433 26434_ACEOF 26435 26436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26437ac_cs_usage="\ 26438\`$as_me' instantiates files and other configuration actions 26439from templates according to the current configuration. Unless the files 26440and actions are specified as TAGs, all are instantiated by default. 26441 26442Usage: $0 [OPTION]... [TAG]... 26443 26444 -h, --help print this help, then exit 26445 -V, --version print version number and configuration settings, then exit 26446 --config print configuration, then exit 26447 -q, --quiet, --silent 26448 do not print progress messages 26449 -d, --debug don't remove temporary files 26450 --recheck update $as_me by reconfiguring in the same conditions 26451 --file=FILE[:TEMPLATE] 26452 instantiate the configuration file FILE 26453 --header=FILE[:TEMPLATE] 26454 instantiate the configuration header FILE 26455 26456Configuration files: 26457$config_files 26458 26459Configuration headers: 26460$config_headers 26461 26462Configuration commands: 26463$config_commands 26464 26465Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>." 26466 26467_ACEOF 26468ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 26469ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 26470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26471ac_cs_config='$ac_cs_config_escaped' 26472ac_cs_version="\\ 26473c-ares config.status 1.34.5 26474configured by $0, generated by GNU Autoconf 2.71, 26475 with options \\"\$ac_cs_config\\" 26476 26477Copyright (C) 2021 Free Software Foundation, Inc. 26478This config.status script is free software; the Free Software Foundation 26479gives unlimited permission to copy, distribute and modify it." 26480 26481ac_pwd='$ac_pwd' 26482srcdir='$srcdir' 26483INSTALL='$INSTALL' 26484MKDIR_P='$MKDIR_P' 26485AWK='$AWK' 26486test -n "\$AWK" || AWK=awk 26487_ACEOF 26488 26489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26490# The default lists apply if the user does not specify any file. 26491ac_need_defaults=: 26492while test $# != 0 26493do 26494 case $1 in 26495 --*=?*) 26496 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26497 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 26498 ac_shift=: 26499 ;; 26500 --*=) 26501 ac_option=`expr "X$1" : 'X\([^=]*\)='` 26502 ac_optarg= 26503 ac_shift=: 26504 ;; 26505 *) 26506 ac_option=$1 26507 ac_optarg=$2 26508 ac_shift=shift 26509 ;; 26510 esac 26511 26512 case $ac_option in 26513 # Handling of the options. 26514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26515 ac_cs_recheck=: ;; 26516 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26517 printf "%s\n" "$ac_cs_version"; exit ;; 26518 --config | --confi | --conf | --con | --co | --c ) 26519 printf "%s\n" "$ac_cs_config"; exit ;; 26520 --debug | --debu | --deb | --de | --d | -d ) 26521 debug=: ;; 26522 --file | --fil | --fi | --f ) 26523 $ac_shift 26524 case $ac_optarg in 26525 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26526 '') as_fn_error $? "missing file argument" ;; 26527 esac 26528 as_fn_append CONFIG_FILES " '$ac_optarg'" 26529 ac_need_defaults=false;; 26530 --header | --heade | --head | --hea ) 26531 $ac_shift 26532 case $ac_optarg in 26533 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26534 esac 26535 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26536 ac_need_defaults=false;; 26537 --he | --h) 26538 # Conflict between --help and --header 26539 as_fn_error $? "ambiguous option: \`$1' 26540Try \`$0 --help' for more information.";; 26541 --help | --hel | -h ) 26542 printf "%s\n" "$ac_cs_usage"; exit ;; 26543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26544 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26545 ac_cs_silent=: ;; 26546 26547 # This is an error. 26548 -*) as_fn_error $? "unrecognized option: \`$1' 26549Try \`$0 --help' for more information." ;; 26550 26551 *) as_fn_append ac_config_targets " $1" 26552 ac_need_defaults=false ;; 26553 26554 esac 26555 shift 26556done 26557 26558ac_configure_extra_args= 26559 26560if $ac_cs_silent; then 26561 exec 6>/dev/null 26562 ac_configure_extra_args="$ac_configure_extra_args --silent" 26563fi 26564 26565_ACEOF 26566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26567if \$ac_cs_recheck; then 26568 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26569 shift 26570 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 26571 CONFIG_SHELL='$SHELL' 26572 export CONFIG_SHELL 26573 exec "\$@" 26574fi 26575 26576_ACEOF 26577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26578exec 5>>config.log 26579{ 26580 echo 26581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26582## Running $as_me. ## 26583_ASBOX 26584 printf "%s\n" "$ac_log" 26585} >&5 26586 26587_ACEOF 26588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26589# 26590# INIT-COMMANDS 26591# 26592AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 26593 26594 26595# The HP-UX ksh and POSIX shell print the target directory to stdout 26596# if CDPATH is set. 26597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 26598 26599sed_quote_subst='$sed_quote_subst' 26600double_quote_subst='$double_quote_subst' 26601delay_variable_subst='$delay_variable_subst' 26602macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 26603macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 26604AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 26605DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 26606OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 26607enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 26608enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 26609pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 26610enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 26611shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 26612SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 26613ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 26614PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 26615host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 26616host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 26617host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 26618build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 26619build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 26620build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 26621SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 26622Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 26623GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 26624EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 26625FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 26626LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 26627NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 26628LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 26629max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 26630ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 26631exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 26632lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 26633lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 26634lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 26635lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 26636lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 26637reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 26638reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 26639FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 26640deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 26641file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 26642file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 26643want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 26644sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 26645AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 26646lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 26647AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 26648archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 26649STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 26650RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 26651old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26652old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26653old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 26654lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 26655CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 26656CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 26657compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 26658GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 26659lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 26660lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 26661lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 26662lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 26663lt_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"`' 26664lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 26665nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 26666lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 26667lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 26668objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 26669MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 26670lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 26671lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 26672lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 26673lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 26674lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 26675need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 26676MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 26677DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 26678NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 26679LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 26680OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 26681OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 26682libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 26683shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 26684extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26685archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 26686enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 26687export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 26688whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 26689compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 26690old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 26691old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26692archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 26693archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26694module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 26695module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26696with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 26697allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 26698no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26699hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26700hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26701hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 26702hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 26703hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 26704hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 26705hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 26706inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 26707link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 26708always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 26709export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 26710exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 26711include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 26712prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 26713postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 26714file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 26715variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 26716need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 26717need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 26718version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 26719runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 26720shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 26721shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 26722libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 26723library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 26724soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 26725install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 26726postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26727postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26728finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 26729finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 26730hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26731sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26732configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 26733configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 26734hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26735enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 26736enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 26737enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 26738old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 26739striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 26740compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 26741predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 26742postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 26743predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 26744postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 26745compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 26746LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 26747reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 26748reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26749old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26750compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 26751GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 26752lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 26753lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 26754lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 26755lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 26756lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 26757archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 26758enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 26759export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26760whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26761compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 26762old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26763old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26764archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26765archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26766module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26767module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26768with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 26769allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26770no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26771hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26772hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 26773hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 26774hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 26775hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 26776hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 26777hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 26778inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 26779link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 26780always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 26781export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26782exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26783include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26784prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26785postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26786file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 26787hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 26788compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 26789predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26790postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26791predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 26792postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 26793compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 26794 26795LTCC='$LTCC' 26796LTCFLAGS='$LTCFLAGS' 26797compiler='$compiler_DEFAULT' 26798 26799# A function that is used when there is no print builtin or printf. 26800func_fallback_echo () 26801{ 26802 eval 'cat <<_LTECHO_EOF 26803\$1 26804_LTECHO_EOF' 26805} 26806 26807# Quote evaled strings. 26808for var in AS \ 26809DLLTOOL \ 26810OBJDUMP \ 26811SHELL \ 26812ECHO \ 26813PATH_SEPARATOR \ 26814SED \ 26815GREP \ 26816EGREP \ 26817FGREP \ 26818LD \ 26819NM \ 26820LN_S \ 26821lt_SP2NL \ 26822lt_NL2SP \ 26823reload_flag \ 26824FILECMD \ 26825deplibs_check_method \ 26826file_magic_cmd \ 26827file_magic_glob \ 26828want_nocaseglob \ 26829sharedlib_from_linklib_cmd \ 26830AR \ 26831archiver_list_spec \ 26832STRIP \ 26833RANLIB \ 26834CC \ 26835CFLAGS \ 26836compiler \ 26837lt_cv_sys_global_symbol_pipe \ 26838lt_cv_sys_global_symbol_to_cdecl \ 26839lt_cv_sys_global_symbol_to_import \ 26840lt_cv_sys_global_symbol_to_c_name_address \ 26841lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 26842lt_cv_nm_interface \ 26843nm_file_list_spec \ 26844lt_cv_truncate_bin \ 26845lt_prog_compiler_no_builtin_flag \ 26846lt_prog_compiler_pic \ 26847lt_prog_compiler_wl \ 26848lt_prog_compiler_static \ 26849lt_cv_prog_compiler_c_o \ 26850need_locks \ 26851MANIFEST_TOOL \ 26852DSYMUTIL \ 26853NMEDIT \ 26854LIPO \ 26855OTOOL \ 26856OTOOL64 \ 26857shrext_cmds \ 26858export_dynamic_flag_spec \ 26859whole_archive_flag_spec \ 26860compiler_needs_object \ 26861with_gnu_ld \ 26862allow_undefined_flag \ 26863no_undefined_flag \ 26864hardcode_libdir_flag_spec \ 26865hardcode_libdir_separator \ 26866exclude_expsyms \ 26867include_expsyms \ 26868file_list_spec \ 26869variables_saved_for_relink \ 26870libname_spec \ 26871library_names_spec \ 26872soname_spec \ 26873install_override_mode \ 26874finish_eval \ 26875old_striplib \ 26876striplib \ 26877compiler_lib_search_dirs \ 26878predep_objects \ 26879postdep_objects \ 26880predeps \ 26881postdeps \ 26882compiler_lib_search_path \ 26883LD_CXX \ 26884reload_flag_CXX \ 26885compiler_CXX \ 26886lt_prog_compiler_no_builtin_flag_CXX \ 26887lt_prog_compiler_pic_CXX \ 26888lt_prog_compiler_wl_CXX \ 26889lt_prog_compiler_static_CXX \ 26890lt_cv_prog_compiler_c_o_CXX \ 26891export_dynamic_flag_spec_CXX \ 26892whole_archive_flag_spec_CXX \ 26893compiler_needs_object_CXX \ 26894with_gnu_ld_CXX \ 26895allow_undefined_flag_CXX \ 26896no_undefined_flag_CXX \ 26897hardcode_libdir_flag_spec_CXX \ 26898hardcode_libdir_separator_CXX \ 26899exclude_expsyms_CXX \ 26900include_expsyms_CXX \ 26901file_list_spec_CXX \ 26902compiler_lib_search_dirs_CXX \ 26903predep_objects_CXX \ 26904postdep_objects_CXX \ 26905predeps_CXX \ 26906postdeps_CXX \ 26907compiler_lib_search_path_CXX; do 26908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26909 *[\\\\\\\`\\"\\\$]*) 26910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26911 ;; 26912 *) 26913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26914 ;; 26915 esac 26916done 26917 26918# Double-quote double-evaled strings. 26919for var in reload_cmds \ 26920old_postinstall_cmds \ 26921old_postuninstall_cmds \ 26922old_archive_cmds \ 26923extract_expsyms_cmds \ 26924old_archive_from_new_cmds \ 26925old_archive_from_expsyms_cmds \ 26926archive_cmds \ 26927archive_expsym_cmds \ 26928module_cmds \ 26929module_expsym_cmds \ 26930export_symbols_cmds \ 26931prelink_cmds \ 26932postlink_cmds \ 26933postinstall_cmds \ 26934postuninstall_cmds \ 26935finish_cmds \ 26936sys_lib_search_path_spec \ 26937configure_time_dlsearch_path \ 26938configure_time_lt_sys_library_path \ 26939reload_cmds_CXX \ 26940old_archive_cmds_CXX \ 26941old_archive_from_new_cmds_CXX \ 26942old_archive_from_expsyms_cmds_CXX \ 26943archive_cmds_CXX \ 26944archive_expsym_cmds_CXX \ 26945module_cmds_CXX \ 26946module_expsym_cmds_CXX \ 26947export_symbols_cmds_CXX \ 26948prelink_cmds_CXX \ 26949postlink_cmds_CXX; do 26950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26951 *[\\\\\\\`\\"\\\$]*) 26952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 26953 ;; 26954 *) 26955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26956 ;; 26957 esac 26958done 26959 26960ac_aux_dir='$ac_aux_dir' 26961 26962# See if we are running on zsh, and set the options that allow our 26963# commands through without removal of \ escapes INIT. 26964if test -n "\${ZSH_VERSION+set}"; then 26965 setopt NO_GLOB_SUBST 26966fi 26967 26968 26969 PACKAGE='$PACKAGE' 26970 VERSION='$VERSION' 26971 RM='$RM' 26972 ofile='$ofile' 26973 26974 26975 26976 26977 26978 26979_ACEOF 26980 26981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26982 26983# Handling of arguments. 26984for ac_config_target in $ac_config_targets 26985do 26986 case $ac_config_target in 26987 "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;; 26988 "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;; 26989 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 26990 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26991 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26992 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 26993 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 26994 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 26995 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 26996 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 26997 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;; 26998 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 26999 27000 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27001 esac 27002done 27003 27004 27005# If the user did not use the arguments to specify the items to instantiate, 27006# then the envvar interface is used. Set only those that are not. 27007# We use the long form for the default assignment because of an extremely 27008# bizarre bug on SunOS 4.1.3. 27009if $ac_need_defaults; then 27010 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 27011 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 27012 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 27013fi 27014 27015# Have a temporary directory for convenience. Make it in the build tree 27016# simply because there is no reason against having it here, and in addition, 27017# creating and moving files from /tmp can sometimes cause problems. 27018# Hook for its removal unless debugging. 27019# Note that there is a small window in which the directory will not be cleaned: 27020# after its creation but before its name has been assigned to `$tmp'. 27021$debug || 27022{ 27023 tmp= ac_tmp= 27024 trap 'exit_status=$? 27025 : "${ac_tmp:=$tmp}" 27026 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 27027' 0 27028 trap 'as_fn_exit 1' 1 2 13 15 27029} 27030# Create a (secure) tmp directory for tmp files. 27031 27032{ 27033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27034 test -d "$tmp" 27035} || 27036{ 27037 tmp=./conf$$-$RANDOM 27038 (umask 077 && mkdir "$tmp") 27039} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 27040ac_tmp=$tmp 27041 27042# Set up the scripts for CONFIG_FILES section. 27043# No need to generate them if there are no CONFIG_FILES. 27044# This happens for instance with `./config.status config.h'. 27045if test -n "$CONFIG_FILES"; then 27046 27047 27048ac_cr=`echo X | tr X '\015'` 27049# On cygwin, bash can eat \r inside `` if the user requested igncr. 27050# But we know of no other shell where ac_cr would be empty at this 27051# point, so we can use a bashism as a fallback. 27052if test "x$ac_cr" = x; then 27053 eval ac_cr=\$\'\\r\' 27054fi 27055ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27056if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27057 ac_cs_awk_cr='\\r' 27058else 27059 ac_cs_awk_cr=$ac_cr 27060fi 27061 27062echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 27063_ACEOF 27064 27065 27066{ 27067 echo "cat >conf$$subs.awk <<_ACEOF" && 27068 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27069 echo "_ACEOF" 27070} >conf$$subs.sh || 27071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27072ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 27073ac_delim='%!_!# ' 27074for ac_last_try in false false false false false :; do 27075 . ./conf$$subs.sh || 27076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27077 27078 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27079 if test $ac_delim_n = $ac_delim_num; then 27080 break 27081 elif $ac_last_try; then 27082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 27083 else 27084 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27085 fi 27086done 27087rm -f conf$$subs.sh 27088 27089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27090cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 27091_ACEOF 27092sed -n ' 27093h 27094s/^/S["/; s/!.*/"]=/ 27095p 27096g 27097s/^[^!]*!// 27098:repl 27099t repl 27100s/'"$ac_delim"'$// 27101t delim 27102:nl 27103h 27104s/\(.\{148\}\)..*/\1/ 27105t more1 27106s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27107p 27108n 27109b repl 27110:more1 27111s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27112p 27113g 27114s/.\{148\}// 27115t nl 27116:delim 27117h 27118s/\(.\{148\}\)..*/\1/ 27119t more2 27120s/["\\]/\\&/g; s/^/"/; s/$/"/ 27121p 27122b 27123:more2 27124s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 27125p 27126g 27127s/.\{148\}// 27128t delim 27129' <conf$$subs.awk | sed ' 27130/^[^""]/{ 27131 N 27132 s/\n// 27133} 27134' >>$CONFIG_STATUS || ac_write_fail=1 27135rm -f conf$$subs.awk 27136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27137_ACAWK 27138cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 27139 for (key in S) S_is_set[key] = 1 27140 FS = "" 27141 27142} 27143{ 27144 line = $ 0 27145 nfields = split(line, field, "@") 27146 substed = 0 27147 len = length(field[1]) 27148 for (i = 2; i < nfields; i++) { 27149 key = field[i] 27150 keylen = length(key) 27151 if (S_is_set[key]) { 27152 value = S[key] 27153 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 27154 len += length(value) + length(field[++i]) 27155 substed = 1 27156 } else 27157 len += 1 + keylen 27158 } 27159 27160 print line 27161} 27162 27163_ACAWK 27164_ACEOF 27165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27166if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 27167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 27168else 27169 cat 27170fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 27171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 27172_ACEOF 27173 27174# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 27175# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 27176# trailing colons and then remove the whole line if VPATH becomes empty 27177# (actually we leave an empty line to preserve line numbers). 27178if test "x$srcdir" = x.; then 27179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 27180h 27181s/// 27182s/^/:/ 27183s/[ ]*$/:/ 27184s/:\$(srcdir):/:/g 27185s/:\${srcdir}:/:/g 27186s/:@srcdir@:/:/g 27187s/^:*// 27188s/:*$// 27189x 27190s/\(=[ ]*\).*/\1/ 27191G 27192s/\n// 27193s/^[^=]*=[ ]*$// 27194}' 27195fi 27196 27197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27198fi # test -n "$CONFIG_FILES" 27199 27200# Set up the scripts for CONFIG_HEADERS section. 27201# No need to generate them if there are no CONFIG_HEADERS. 27202# This happens for instance with `./config.status Makefile'. 27203if test -n "$CONFIG_HEADERS"; then 27204cat >"$ac_tmp/defines.awk" <<\_ACAWK || 27205BEGIN { 27206_ACEOF 27207 27208# Transform confdefs.h into an awk script `defines.awk', embedded as 27209# here-document in config.status, that substitutes the proper values into 27210# config.h.in to produce config.h. 27211 27212# Create a delimiter string that does not exist in confdefs.h, to ease 27213# handling of long lines. 27214ac_delim='%!_!# ' 27215for ac_last_try in false false :; do 27216 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 27217 if test -z "$ac_tt"; then 27218 break 27219 elif $ac_last_try; then 27220 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 27221 else 27222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27223 fi 27224done 27225 27226# For the awk script, D is an array of macro values keyed by name, 27227# likewise P contains macro parameters if any. Preserve backslash 27228# newline sequences. 27229 27230ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 27231sed -n ' 27232s/.\{148\}/&'"$ac_delim"'/g 27233t rset 27234:rset 27235s/^[ ]*#[ ]*define[ ][ ]*/ / 27236t def 27237d 27238:def 27239s/\\$// 27240t bsnl 27241s/["\\]/\\&/g 27242s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27243D["\1"]=" \3"/p 27244s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 27245d 27246:bsnl 27247s/["\\]/\\&/g 27248s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 27249D["\1"]=" \3\\\\\\n"\\/p 27250t cont 27251s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 27252t cont 27253d 27254:cont 27255n 27256s/.\{148\}/&'"$ac_delim"'/g 27257t clear 27258:clear 27259s/\\$// 27260t bsnlc 27261s/["\\]/\\&/g; s/^/"/; s/$/"/p 27262d 27263:bsnlc 27264s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 27265b cont 27266' <confdefs.h | sed ' 27267s/'"$ac_delim"'/"\\\ 27268"/g' >>$CONFIG_STATUS || ac_write_fail=1 27269 27270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27271 for (key in D) D_is_set[key] = 1 27272 FS = "" 27273} 27274/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 27275 line = \$ 0 27276 split(line, arg, " ") 27277 if (arg[1] == "#") { 27278 defundef = arg[2] 27279 mac1 = arg[3] 27280 } else { 27281 defundef = substr(arg[1], 2) 27282 mac1 = arg[2] 27283 } 27284 split(mac1, mac2, "(") #) 27285 macro = mac2[1] 27286 prefix = substr(line, 1, index(line, defundef) - 1) 27287 if (D_is_set[macro]) { 27288 # Preserve the white space surrounding the "#". 27289 print prefix "define", macro P[macro] D[macro] 27290 next 27291 } else { 27292 # Replace #undef with comments. This is necessary, for example, 27293 # in the case of _POSIX_SOURCE, which is predefined and required 27294 # on some systems where configure will not decide to define it. 27295 if (defundef == "undef") { 27296 print "/*", prefix defundef, macro, "*/" 27297 next 27298 } 27299 } 27300} 27301{ print } 27302_ACAWK 27303_ACEOF 27304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27305 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 27306fi # test -n "$CONFIG_HEADERS" 27307 27308 27309eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 27310shift 27311for ac_tag 27312do 27313 case $ac_tag in 27314 :[FHLC]) ac_mode=$ac_tag; continue;; 27315 esac 27316 case $ac_mode$ac_tag in 27317 :[FHL]*:*);; 27318 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 27319 :[FH]-) ac_tag=-:-;; 27320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27321 esac 27322 ac_save_IFS=$IFS 27323 IFS=: 27324 set x $ac_tag 27325 IFS=$ac_save_IFS 27326 shift 27327 ac_file=$1 27328 shift 27329 27330 case $ac_mode in 27331 :L) ac_source=$1;; 27332 :[FH]) 27333 ac_file_inputs= 27334 for ac_f 27335 do 27336 case $ac_f in 27337 -) ac_f="$ac_tmp/stdin";; 27338 *) # Look for the file first in the build tree, then in the source tree 27339 # (if the path is not absolute). The absolute path cannot be DOS-style, 27340 # because $ac_f cannot contain `:'. 27341 test -f "$ac_f" || 27342 case $ac_f in 27343 [\\/$]*) false;; 27344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27345 esac || 27346 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27347 esac 27348 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27349 as_fn_append ac_file_inputs " '$ac_f'" 27350 done 27351 27352 # Let's still pretend it is `configure' which instantiates (i.e., don't 27353 # use $as_me), people would be surprised to read: 27354 # /* config.h. Generated by config.status. */ 27355 configure_input='Generated from '` 27356 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27357 `' by configure.' 27358 if test x"$ac_file" != x-; then 27359 configure_input="$ac_file. $configure_input" 27360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27361printf "%s\n" "$as_me: creating $ac_file" >&6;} 27362 fi 27363 # Neutralize special characters interpreted by sed in replacement strings. 27364 case $configure_input in #( 27365 *\&* | *\|* | *\\* ) 27366 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 27367 sed 's/[\\\\&|]/\\\\&/g'`;; #( 27368 *) ac_sed_conf_input=$configure_input;; 27369 esac 27370 27371 case $ac_tag in 27372 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 27373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 27374 esac 27375 ;; 27376 esac 27377 27378 ac_dir=`$as_dirname -- "$ac_file" || 27379$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27380 X"$ac_file" : 'X\(//\)[^/]' \| \ 27381 X"$ac_file" : 'X\(//\)$' \| \ 27382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 27383printf "%s\n" X"$ac_file" | 27384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27385 s//\1/ 27386 q 27387 } 27388 /^X\(\/\/\)[^/].*/{ 27389 s//\1/ 27390 q 27391 } 27392 /^X\(\/\/\)$/{ 27393 s//\1/ 27394 q 27395 } 27396 /^X\(\/\).*/{ 27397 s//\1/ 27398 q 27399 } 27400 s/.*/./; q'` 27401 as_dir="$ac_dir"; as_fn_mkdir_p 27402 ac_builddir=. 27403 27404case "$ac_dir" in 27405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27406*) 27407 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 27408 # A ".." for each directory in $ac_dir_suffix. 27409 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 27410 case $ac_top_builddir_sub in 27411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 27412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 27413 esac ;; 27414esac 27415ac_abs_top_builddir=$ac_pwd 27416ac_abs_builddir=$ac_pwd$ac_dir_suffix 27417# for backward compatibility: 27418ac_top_builddir=$ac_top_build_prefix 27419 27420case $srcdir in 27421 .) # We are building in place. 27422 ac_srcdir=. 27423 ac_top_srcdir=$ac_top_builddir_sub 27424 ac_abs_top_srcdir=$ac_pwd ;; 27425 [\\/]* | ?:[\\/]* ) # Absolute name. 27426 ac_srcdir=$srcdir$ac_dir_suffix; 27427 ac_top_srcdir=$srcdir 27428 ac_abs_top_srcdir=$srcdir ;; 27429 *) # Relative name. 27430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 27431 ac_top_srcdir=$ac_top_build_prefix$srcdir 27432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 27433esac 27434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 27435 27436 27437 case $ac_mode in 27438 :F) 27439 # 27440 # CONFIG_FILE 27441 # 27442 27443 case $INSTALL in 27444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 27445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 27446 esac 27447 ac_MKDIR_P=$MKDIR_P 27448 case $MKDIR_P in 27449 [\\/$]* | ?:[\\/]* ) ;; 27450 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 27451 esac 27452_ACEOF 27453 27454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27455# If the template does not know about datarootdir, expand it. 27456# FIXME: This hack should be removed a few years after 2.60. 27457ac_datarootdir_hack=; ac_datarootdir_seen= 27458ac_sed_dataroot=' 27459/datarootdir/ { 27460 p 27461 q 27462} 27463/@datadir@/p 27464/@docdir@/p 27465/@infodir@/p 27466/@localedir@/p 27467/@mandir@/p' 27468case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27469*datarootdir*) ac_datarootdir_seen=yes;; 27470*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27472printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27473_ACEOF 27474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27475 ac_datarootdir_hack=' 27476 s&@datadir@&$datadir&g 27477 s&@docdir@&$docdir&g 27478 s&@infodir@&$infodir&g 27479 s&@localedir@&$localedir&g 27480 s&@mandir@&$mandir&g 27481 s&\\\${datarootdir}&$datarootdir&g' ;; 27482esac 27483_ACEOF 27484 27485# Neutralize VPATH when `$srcdir' = `.'. 27486# Shell code in configure.ac might set extrasub. 27487# FIXME: do we really want to maintain this feature? 27488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27489ac_sed_extra="$ac_vpsub 27490$extrasub 27491_ACEOF 27492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27493:t 27494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27495s|@configure_input@|$ac_sed_conf_input|;t t 27496s&@top_builddir@&$ac_top_builddir_sub&;t t 27497s&@top_build_prefix@&$ac_top_build_prefix&;t t 27498s&@srcdir@&$ac_srcdir&;t t 27499s&@abs_srcdir@&$ac_abs_srcdir&;t t 27500s&@top_srcdir@&$ac_top_srcdir&;t t 27501s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 27502s&@builddir@&$ac_builddir&;t t 27503s&@abs_builddir@&$ac_abs_builddir&;t t 27504s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27505s&@INSTALL@&$ac_INSTALL&;t t 27506s&@MKDIR_P@&$ac_MKDIR_P&;t t 27507$ac_datarootdir_hack 27508" 27509eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 27510 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27511 27512test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27513 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 27514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 27515 "$ac_tmp/out"`; test -z "$ac_out"; } && 27516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27517which seems to be undefined. Please make sure it is defined" >&5 27518printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27519which seems to be undefined. Please make sure it is defined" >&2;} 27520 27521 rm -f "$ac_tmp/stdin" 27522 case $ac_file in 27523 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 27524 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 27525 esac \ 27526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27527 ;; 27528 :H) 27529 # 27530 # CONFIG_HEADER 27531 # 27532 if test x"$ac_file" != x-; then 27533 { 27534 printf "%s\n" "/* $configure_input */" >&1 \ 27535 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 27536 } >"$ac_tmp/config.h" \ 27537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27538 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 27539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27540printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 27541 else 27542 rm -f "$ac_file" 27543 mv "$ac_tmp/config.h" "$ac_file" \ 27544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 27545 fi 27546 else 27547 printf "%s\n" "/* $configure_input */" >&1 \ 27548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 27549 || as_fn_error $? "could not create -" "$LINENO" 5 27550 fi 27551# Compute "$ac_file"'s index in $config_headers. 27552_am_arg="$ac_file" 27553_am_stamp_count=1 27554for _am_header in $config_headers :; do 27555 case $_am_header in 27556 $_am_arg | $_am_arg:* ) 27557 break ;; 27558 * ) 27559 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 27560 esac 27561done 27562echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 27563$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27564 X"$_am_arg" : 'X\(//\)[^/]' \| \ 27565 X"$_am_arg" : 'X\(//\)$' \| \ 27566 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 27567printf "%s\n" X"$_am_arg" | 27568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27569 s//\1/ 27570 q 27571 } 27572 /^X\(\/\/\)[^/].*/{ 27573 s//\1/ 27574 q 27575 } 27576 /^X\(\/\/\)$/{ 27577 s//\1/ 27578 q 27579 } 27580 /^X\(\/\).*/{ 27581 s//\1/ 27582 q 27583 } 27584 s/.*/./; q'`/stamp-h$_am_stamp_count 27585 ;; 27586 27587 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27588printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 27589 ;; 27590 esac 27591 27592 27593 case $ac_file$ac_mode in 27594 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 27595 # Older Autoconf quotes --file arguments for eval, but not when files 27596 # are listed without --file. Let's play safe and only enable the eval 27597 # if we detect the quoting. 27598 # TODO: see whether this extra hack can be removed once we start 27599 # requiring Autoconf 2.70 or later. 27600 case $CONFIG_FILES in #( 27601 *\'*) : 27602 eval set x "$CONFIG_FILES" ;; #( 27603 *) : 27604 set x $CONFIG_FILES ;; #( 27605 *) : 27606 ;; 27607esac 27608 shift 27609 # Used to flag and report bootstrapping failures. 27610 am_rc=0 27611 for am_mf 27612 do 27613 # Strip MF so we end up with the name of the file. 27614 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 27615 # Check whether this is an Automake generated Makefile which includes 27616 # dependency-tracking related rules and includes. 27617 # Grep'ing the whole file directly is not great: AIX grep has a line 27618 # limit of 2048, but all sed's we know have understand at least 4000. 27619 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 27620 || continue 27621 am_dirpart=`$as_dirname -- "$am_mf" || 27622$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27623 X"$am_mf" : 'X\(//\)[^/]' \| \ 27624 X"$am_mf" : 'X\(//\)$' \| \ 27625 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 27626printf "%s\n" X"$am_mf" | 27627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27628 s//\1/ 27629 q 27630 } 27631 /^X\(\/\/\)[^/].*/{ 27632 s//\1/ 27633 q 27634 } 27635 /^X\(\/\/\)$/{ 27636 s//\1/ 27637 q 27638 } 27639 /^X\(\/\).*/{ 27640 s//\1/ 27641 q 27642 } 27643 s/.*/./; q'` 27644 am_filepart=`$as_basename -- "$am_mf" || 27645$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 27646 X"$am_mf" : 'X\(//\)$' \| \ 27647 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 27648printf "%s\n" X/"$am_mf" | 27649 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27650 s//\1/ 27651 q 27652 } 27653 /^X\/\(\/\/\)$/{ 27654 s//\1/ 27655 q 27656 } 27657 /^X\/\(\/\).*/{ 27658 s//\1/ 27659 q 27660 } 27661 s/.*/./; q'` 27662 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 27663 && sed -e '/# am--include-marker/d' "$am_filepart" \ 27664 | $MAKE -f - am--depfiles" >&5 27665 (cd "$am_dirpart" \ 27666 && sed -e '/# am--include-marker/d' "$am_filepart" \ 27667 | $MAKE -f - am--depfiles) >&5 2>&5 27668 ac_status=$? 27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27670 (exit $ac_status); } || am_rc=$? 27671 done 27672 if test $am_rc -ne 0; then 27673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27674printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 27675as_fn_error $? "Something went wrong bootstrapping makefile fragments 27676 for automatic dependency tracking. If GNU make was not used, consider 27677 re-running the configure script with MAKE=\"gmake\" (or whatever is 27678 necessary). You can also try re-running configure with the 27679 '--disable-dependency-tracking' option to at least be able to build 27680 the package (albeit without support for automatic dependency tracking). 27681See \`config.log' for more details" "$LINENO" 5; } 27682 fi 27683 { am_dirpart=; unset am_dirpart;} 27684 { am_filepart=; unset am_filepart;} 27685 { am_mf=; unset am_mf;} 27686 { am_rc=; unset am_rc;} 27687 rm -f conftest-deps.mk 27688} 27689 ;; 27690 "libtool":C) 27691 27692 # See if we are running on zsh, and set the options that allow our 27693 # commands through without removal of \ escapes. 27694 if test -n "${ZSH_VERSION+set}"; then 27695 setopt NO_GLOB_SUBST 27696 fi 27697 27698 cfgfile=${ofile}T 27699 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 27700 $RM "$cfgfile" 27701 27702 cat <<_LT_EOF >> "$cfgfile" 27703#! $SHELL 27704# Generated automatically by $as_me ($PACKAGE) $VERSION 27705# NOTE: Changes made to this file will be lost: look at ltmain.sh. 27706 27707# Provide generalized library-building support services. 27708# Written by Gordon Matzigkeit, 1996 27709 27710# Copyright (C) 2014 Free Software Foundation, Inc. 27711# This is free software; see the source for copying conditions. There is NO 27712# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27713 27714# GNU Libtool is free software; you can redistribute it and/or modify 27715# it under the terms of the GNU General Public License as published by 27716# the Free Software Foundation; either version 2 of of the License, or 27717# (at your option) any later version. 27718# 27719# As a special exception to the GNU General Public License, if you 27720# distribute this file as part of a program or library that is built 27721# using GNU Libtool, you may include this file under the same 27722# distribution terms that you use for the rest of that program. 27723# 27724# GNU Libtool is distributed in the hope that it will be useful, but 27725# WITHOUT ANY WARRANTY; without even the implied warranty of 27726# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27727# GNU General Public License for more details. 27728# 27729# You should have received a copy of the GNU General Public License 27730# along with this program. If not, see <http://www.gnu.org/licenses/>. 27731 27732 27733# The names of the tagged configurations supported by this script. 27734available_tags='CXX ' 27735 27736# Configured defaults for sys_lib_dlsearch_path munging. 27737: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 27738 27739# ### BEGIN LIBTOOL CONFIG 27740 27741# Which release of libtool.m4 was used? 27742macro_version=$macro_version 27743macro_revision=$macro_revision 27744 27745# Assembler program. 27746AS=$lt_AS 27747 27748# DLL creation program. 27749DLLTOOL=$lt_DLLTOOL 27750 27751# Object dumper program. 27752OBJDUMP=$lt_OBJDUMP 27753 27754# Whether or not to build shared libraries. 27755build_libtool_libs=$enable_shared 27756 27757# Whether or not to build static libraries. 27758build_old_libs=$enable_static 27759 27760# What type of objects to build. 27761pic_mode=$pic_mode 27762 27763# Whether or not to optimize for fast installation. 27764fast_install=$enable_fast_install 27765 27766# Shared archive member basename,for filename based shared library versioning on AIX. 27767shared_archive_member_spec=$shared_archive_member_spec 27768 27769# Shell to use when invoking shell scripts. 27770SHELL=$lt_SHELL 27771 27772# An echo program that protects backslashes. 27773ECHO=$lt_ECHO 27774 27775# The PATH separator for the build system. 27776PATH_SEPARATOR=$lt_PATH_SEPARATOR 27777 27778# The host system. 27779host_alias=$host_alias 27780host=$host 27781host_os=$host_os 27782 27783# The build system. 27784build_alias=$build_alias 27785build=$build 27786build_os=$build_os 27787 27788# A sed program that does not truncate output. 27789SED=$lt_SED 27790 27791# Sed that helps us avoid accidentally triggering echo(1) options like -n. 27792Xsed="\$SED -e 1s/^X//" 27793 27794# A grep program that handles long lines. 27795GREP=$lt_GREP 27796 27797# An ERE matcher. 27798EGREP=$lt_EGREP 27799 27800# A literal string matcher. 27801FGREP=$lt_FGREP 27802 27803# A BSD- or MS-compatible name lister. 27804NM=$lt_NM 27805 27806# Whether we need soft or hard links. 27807LN_S=$lt_LN_S 27808 27809# What is the maximum length of a command? 27810max_cmd_len=$max_cmd_len 27811 27812# Object file suffix (normally "o"). 27813objext=$ac_objext 27814 27815# Executable file suffix (normally ""). 27816exeext=$exeext 27817 27818# whether the shell understands "unset". 27819lt_unset=$lt_unset 27820 27821# turn spaces into newlines. 27822SP2NL=$lt_lt_SP2NL 27823 27824# turn newlines into spaces. 27825NL2SP=$lt_lt_NL2SP 27826 27827# convert \$build file names to \$host format. 27828to_host_file_cmd=$lt_cv_to_host_file_cmd 27829 27830# convert \$build files to toolchain format. 27831to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27832 27833# A file(cmd) program that detects file types. 27834FILECMD=$lt_FILECMD 27835 27836# Method to check whether dependent libraries are shared objects. 27837deplibs_check_method=$lt_deplibs_check_method 27838 27839# Command to use when deplibs_check_method = "file_magic". 27840file_magic_cmd=$lt_file_magic_cmd 27841 27842# How to find potential files when deplibs_check_method = "file_magic". 27843file_magic_glob=$lt_file_magic_glob 27844 27845# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27846want_nocaseglob=$lt_want_nocaseglob 27847 27848# Command to associate shared and link libraries. 27849sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27850 27851# The archiver. 27852AR=$lt_AR 27853 27854# Flags to create an archive (by configure). 27855lt_ar_flags=$lt_ar_flags 27856 27857# Flags to create an archive. 27858AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 27859 27860# How to feed a file listing to the archiver. 27861archiver_list_spec=$lt_archiver_list_spec 27862 27863# A symbol stripping program. 27864STRIP=$lt_STRIP 27865 27866# Commands used to install an old-style archive. 27867RANLIB=$lt_RANLIB 27868old_postinstall_cmds=$lt_old_postinstall_cmds 27869old_postuninstall_cmds=$lt_old_postuninstall_cmds 27870 27871# Whether to use a lock for old archive extraction. 27872lock_old_archive_extraction=$lock_old_archive_extraction 27873 27874# A C compiler. 27875LTCC=$lt_CC 27876 27877# LTCC compiler flags. 27878LTCFLAGS=$lt_CFLAGS 27879 27880# Take the output of nm and produce a listing of raw symbols and C names. 27881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27882 27883# Transform the output of nm in a proper C declaration. 27884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27885 27886# Transform the output of nm into a list of symbols to manually relocate. 27887global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 27888 27889# Transform the output of nm in a C name address pair. 27890global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27891 27892# Transform the output of nm in a C name address pair when lib prefix is needed. 27893global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27894 27895# The name lister interface. 27896nm_interface=$lt_lt_cv_nm_interface 27897 27898# Specify filename containing input files for \$NM. 27899nm_file_list_spec=$lt_nm_file_list_spec 27900 27901# The root where to search for dependent libraries,and where our libraries should be installed. 27902lt_sysroot=$lt_sysroot 27903 27904# Command to truncate a binary pipe. 27905lt_truncate_bin=$lt_lt_cv_truncate_bin 27906 27907# The name of the directory that contains temporary libtool files. 27908objdir=$objdir 27909 27910# Used to examine libraries when file_magic_cmd begins with "file". 27911MAGIC_CMD=$MAGIC_CMD 27912 27913# Must we lock files when doing compilation? 27914need_locks=$lt_need_locks 27915 27916# Manifest tool. 27917MANIFEST_TOOL=$lt_MANIFEST_TOOL 27918 27919# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27920DSYMUTIL=$lt_DSYMUTIL 27921 27922# Tool to change global to local symbols on Mac OS X. 27923NMEDIT=$lt_NMEDIT 27924 27925# Tool to manipulate fat objects and archives on Mac OS X. 27926LIPO=$lt_LIPO 27927 27928# ldd/readelf like tool for Mach-O binaries on Mac OS X. 27929OTOOL=$lt_OTOOL 27930 27931# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27932OTOOL64=$lt_OTOOL64 27933 27934# Old archive suffix (normally "a"). 27935libext=$libext 27936 27937# Shared library suffix (normally ".so"). 27938shrext_cmds=$lt_shrext_cmds 27939 27940# The commands to extract the exported symbol list from a shared archive. 27941extract_expsyms_cmds=$lt_extract_expsyms_cmds 27942 27943# Variables whose values should be saved in libtool wrapper scripts and 27944# restored at link time. 27945variables_saved_for_relink=$lt_variables_saved_for_relink 27946 27947# Do we need the "lib" prefix for modules? 27948need_lib_prefix=$need_lib_prefix 27949 27950# Do we need a version for libraries? 27951need_version=$need_version 27952 27953# Library versioning type. 27954version_type=$version_type 27955 27956# Shared library runtime path variable. 27957runpath_var=$runpath_var 27958 27959# Shared library path variable. 27960shlibpath_var=$shlibpath_var 27961 27962# Is shlibpath searched before the hard-coded library search path? 27963shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27964 27965# Format of library name prefix. 27966libname_spec=$lt_libname_spec 27967 27968# List of archive names. First name is the real one, the rest are links. 27969# The last name is the one that the linker finds with -lNAME 27970library_names_spec=$lt_library_names_spec 27971 27972# The coded name of the library, if different from the real name. 27973soname_spec=$lt_soname_spec 27974 27975# Permission mode override for installation of shared libraries. 27976install_override_mode=$lt_install_override_mode 27977 27978# Command to use after installation of a shared archive. 27979postinstall_cmds=$lt_postinstall_cmds 27980 27981# Command to use after uninstallation of a shared archive. 27982postuninstall_cmds=$lt_postuninstall_cmds 27983 27984# Commands used to finish a libtool library installation in a directory. 27985finish_cmds=$lt_finish_cmds 27986 27987# As "finish_cmds", except a single script fragment to be evaled but 27988# not shown. 27989finish_eval=$lt_finish_eval 27990 27991# Whether we should hardcode library paths into libraries. 27992hardcode_into_libs=$hardcode_into_libs 27993 27994# Compile-time system search path for libraries. 27995sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27996 27997# Detected run-time system search path for libraries. 27998sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 27999 28000# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 28001configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 28002 28003# Whether dlopen is supported. 28004dlopen_support=$enable_dlopen 28005 28006# Whether dlopen of programs is supported. 28007dlopen_self=$enable_dlopen_self 28008 28009# Whether dlopen of statically linked programs is supported. 28010dlopen_self_static=$enable_dlopen_self_static 28011 28012# Commands to strip libraries. 28013old_striplib=$lt_old_striplib 28014striplib=$lt_striplib 28015 28016 28017# The linker used to build libraries. 28018LD=$lt_LD 28019 28020# How to create reloadable object files. 28021reload_flag=$lt_reload_flag 28022reload_cmds=$lt_reload_cmds 28023 28024# Commands used to build an old-style archive. 28025old_archive_cmds=$lt_old_archive_cmds 28026 28027# A language specific compiler. 28028CC=$lt_compiler 28029 28030# Is the compiler the GNU compiler? 28031with_gcc=$GCC 28032 28033# Compiler flag to turn off builtin functions. 28034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 28035 28036# Additional compiler flags for building library objects. 28037pic_flag=$lt_lt_prog_compiler_pic 28038 28039# How to pass a linker flag through the compiler. 28040wl=$lt_lt_prog_compiler_wl 28041 28042# Compiler flag to prevent dynamic linking. 28043link_static_flag=$lt_lt_prog_compiler_static 28044 28045# Does compiler simultaneously support -c and -o options? 28046compiler_c_o=$lt_lt_cv_prog_compiler_c_o 28047 28048# Whether or not to add -lc for building shared libraries. 28049build_libtool_need_lc=$archive_cmds_need_lc 28050 28051# Whether or not to disallow shared libs when runtime libs are static. 28052allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 28053 28054# Compiler flag to allow reflexive dlopens. 28055export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 28056 28057# Compiler flag to generate shared objects directly from archives. 28058whole_archive_flag_spec=$lt_whole_archive_flag_spec 28059 28060# Whether the compiler copes with passing no objects directly. 28061compiler_needs_object=$lt_compiler_needs_object 28062 28063# Create an old-style archive from a shared archive. 28064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 28065 28066# Create a temporary old-style archive to link instead of a shared archive. 28067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 28068 28069# Commands used to build a shared archive. 28070archive_cmds=$lt_archive_cmds 28071archive_expsym_cmds=$lt_archive_expsym_cmds 28072 28073# Commands used to build a loadable module if different from building 28074# a shared archive. 28075module_cmds=$lt_module_cmds 28076module_expsym_cmds=$lt_module_expsym_cmds 28077 28078# Whether we are building with GNU ld or not. 28079with_gnu_ld=$lt_with_gnu_ld 28080 28081# Flag that allows shared libraries with undefined symbols to be built. 28082allow_undefined_flag=$lt_allow_undefined_flag 28083 28084# Flag that enforces no undefined symbols. 28085no_undefined_flag=$lt_no_undefined_flag 28086 28087# Flag to hardcode \$libdir into a binary during linking. 28088# This must work even if \$libdir does not exist 28089hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 28090 28091# Whether we need a single "-rpath" flag with a separated argument. 28092hardcode_libdir_separator=$lt_hardcode_libdir_separator 28093 28094# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28095# DIR into the resulting binary. 28096hardcode_direct=$hardcode_direct 28097 28098# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28099# DIR into the resulting binary and the resulting library dependency is 28100# "absolute",i.e impossible to change by setting \$shlibpath_var if the 28101# library is relocated. 28102hardcode_direct_absolute=$hardcode_direct_absolute 28103 28104# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28105# into the resulting binary. 28106hardcode_minus_L=$hardcode_minus_L 28107 28108# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28109# into the resulting binary. 28110hardcode_shlibpath_var=$hardcode_shlibpath_var 28111 28112# Set to "yes" if building a shared library automatically hardcodes DIR 28113# into the library and all subsequent libraries and executables linked 28114# against it. 28115hardcode_automatic=$hardcode_automatic 28116 28117# Set to yes if linker adds runtime paths of dependent libraries 28118# to runtime path list. 28119inherit_rpath=$inherit_rpath 28120 28121# Whether libtool must link a program against all its dependency libraries. 28122link_all_deplibs=$link_all_deplibs 28123 28124# Set to "yes" if exported symbols are required. 28125always_export_symbols=$always_export_symbols 28126 28127# The commands to list exported symbols. 28128export_symbols_cmds=$lt_export_symbols_cmds 28129 28130# Symbols that should not be listed in the preloaded symbols. 28131exclude_expsyms=$lt_exclude_expsyms 28132 28133# Symbols that must always be exported. 28134include_expsyms=$lt_include_expsyms 28135 28136# Commands necessary for linking programs (against libraries) with templates. 28137prelink_cmds=$lt_prelink_cmds 28138 28139# Commands necessary for finishing linking programs. 28140postlink_cmds=$lt_postlink_cmds 28141 28142# Specify filename containing input files. 28143file_list_spec=$lt_file_list_spec 28144 28145# How to hardcode a shared library path into an executable. 28146hardcode_action=$hardcode_action 28147 28148# The directories searched by this compiler when creating a shared library. 28149compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 28150 28151# Dependencies to place before and after the objects being linked to 28152# create a shared library. 28153predep_objects=$lt_predep_objects 28154postdep_objects=$lt_postdep_objects 28155predeps=$lt_predeps 28156postdeps=$lt_postdeps 28157 28158# The library search path used internally by the compiler when linking 28159# a shared library. 28160compiler_lib_search_path=$lt_compiler_lib_search_path 28161 28162# ### END LIBTOOL CONFIG 28163 28164_LT_EOF 28165 28166 cat <<'_LT_EOF' >> "$cfgfile" 28167 28168# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 28169 28170# func_munge_path_list VARIABLE PATH 28171# ----------------------------------- 28172# VARIABLE is name of variable containing _space_ separated list of 28173# directories to be munged by the contents of PATH, which is string 28174# having a format: 28175# "DIR[:DIR]:" 28176# string "DIR[ DIR]" will be prepended to VARIABLE 28177# ":DIR[:DIR]" 28178# string "DIR[ DIR]" will be appended to VARIABLE 28179# "DIRP[:DIRP]::[DIRA:]DIRA" 28180# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 28181# "DIRA[ DIRA]" will be appended to VARIABLE 28182# "DIR[:DIR]" 28183# VARIABLE will be replaced by "DIR[ DIR]" 28184func_munge_path_list () 28185{ 28186 case x$2 in 28187 x) 28188 ;; 28189 *:) 28190 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 28191 ;; 28192 x:*) 28193 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 28194 ;; 28195 *::*) 28196 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 28197 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 28198 ;; 28199 *) 28200 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 28201 ;; 28202 esac 28203} 28204 28205 28206# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 28207func_cc_basename () 28208{ 28209 for cc_temp in $*""; do 28210 case $cc_temp in 28211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 28212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 28213 \-*) ;; 28214 *) break;; 28215 esac 28216 done 28217 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 28218} 28219 28220 28221# ### END FUNCTIONS SHARED WITH CONFIGURE 28222 28223_LT_EOF 28224 28225 case $host_os in 28226 aix3*) 28227 cat <<\_LT_EOF >> "$cfgfile" 28228# AIX sometimes has problems with the GCC collect2 program. For some 28229# reason, if we set the COLLECT_NAMES environment variable, the problems 28230# vanish in a puff of smoke. 28231if test set != "${COLLECT_NAMES+set}"; then 28232 COLLECT_NAMES= 28233 export COLLECT_NAMES 28234fi 28235_LT_EOF 28236 ;; 28237 esac 28238 28239 28240 28241ltmain=$ac_aux_dir/ltmain.sh 28242 28243 28244 # We use sed instead of cat because bash on DJGPP gets confused if 28245 # if finds mixed CR/LF and LF-only lines. Since sed operates in 28246 # text mode, it properly converts lines to CR/LF. This bash problem 28247 # is reportedly fixed, but why not run on old versions too? 28248 $SED '$q' "$ltmain" >> "$cfgfile" \ 28249 || (rm -f "$cfgfile"; exit 1) 28250 28251 mv -f "$cfgfile" "$ofile" || 28252 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 28253 chmod +x "$ofile" 28254 28255 28256 cat <<_LT_EOF >> "$ofile" 28257 28258# ### BEGIN LIBTOOL TAG CONFIG: CXX 28259 28260# The linker used to build libraries. 28261LD=$lt_LD_CXX 28262 28263# How to create reloadable object files. 28264reload_flag=$lt_reload_flag_CXX 28265reload_cmds=$lt_reload_cmds_CXX 28266 28267# Commands used to build an old-style archive. 28268old_archive_cmds=$lt_old_archive_cmds_CXX 28269 28270# A language specific compiler. 28271CC=$lt_compiler_CXX 28272 28273# Is the compiler the GNU compiler? 28274with_gcc=$GCC_CXX 28275 28276# Compiler flag to turn off builtin functions. 28277no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 28278 28279# Additional compiler flags for building library objects. 28280pic_flag=$lt_lt_prog_compiler_pic_CXX 28281 28282# How to pass a linker flag through the compiler. 28283wl=$lt_lt_prog_compiler_wl_CXX 28284 28285# Compiler flag to prevent dynamic linking. 28286link_static_flag=$lt_lt_prog_compiler_static_CXX 28287 28288# Does compiler simultaneously support -c and -o options? 28289compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 28290 28291# Whether or not to add -lc for building shared libraries. 28292build_libtool_need_lc=$archive_cmds_need_lc_CXX 28293 28294# Whether or not to disallow shared libs when runtime libs are static. 28295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 28296 28297# Compiler flag to allow reflexive dlopens. 28298export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 28299 28300# Compiler flag to generate shared objects directly from archives. 28301whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 28302 28303# Whether the compiler copes with passing no objects directly. 28304compiler_needs_object=$lt_compiler_needs_object_CXX 28305 28306# Create an old-style archive from a shared archive. 28307old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 28308 28309# Create a temporary old-style archive to link instead of a shared archive. 28310old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 28311 28312# Commands used to build a shared archive. 28313archive_cmds=$lt_archive_cmds_CXX 28314archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 28315 28316# Commands used to build a loadable module if different from building 28317# a shared archive. 28318module_cmds=$lt_module_cmds_CXX 28319module_expsym_cmds=$lt_module_expsym_cmds_CXX 28320 28321# Whether we are building with GNU ld or not. 28322with_gnu_ld=$lt_with_gnu_ld_CXX 28323 28324# Flag that allows shared libraries with undefined symbols to be built. 28325allow_undefined_flag=$lt_allow_undefined_flag_CXX 28326 28327# Flag that enforces no undefined symbols. 28328no_undefined_flag=$lt_no_undefined_flag_CXX 28329 28330# Flag to hardcode \$libdir into a binary during linking. 28331# This must work even if \$libdir does not exist 28332hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 28333 28334# Whether we need a single "-rpath" flag with a separated argument. 28335hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 28336 28337# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28338# DIR into the resulting binary. 28339hardcode_direct=$hardcode_direct_CXX 28340 28341# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 28342# DIR into the resulting binary and the resulting library dependency is 28343# "absolute",i.e impossible to change by setting \$shlibpath_var if the 28344# library is relocated. 28345hardcode_direct_absolute=$hardcode_direct_absolute_CXX 28346 28347# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 28348# into the resulting binary. 28349hardcode_minus_L=$hardcode_minus_L_CXX 28350 28351# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 28352# into the resulting binary. 28353hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 28354 28355# Set to "yes" if building a shared library automatically hardcodes DIR 28356# into the library and all subsequent libraries and executables linked 28357# against it. 28358hardcode_automatic=$hardcode_automatic_CXX 28359 28360# Set to yes if linker adds runtime paths of dependent libraries 28361# to runtime path list. 28362inherit_rpath=$inherit_rpath_CXX 28363 28364# Whether libtool must link a program against all its dependency libraries. 28365link_all_deplibs=$link_all_deplibs_CXX 28366 28367# Set to "yes" if exported symbols are required. 28368always_export_symbols=$always_export_symbols_CXX 28369 28370# The commands to list exported symbols. 28371export_symbols_cmds=$lt_export_symbols_cmds_CXX 28372 28373# Symbols that should not be listed in the preloaded symbols. 28374exclude_expsyms=$lt_exclude_expsyms_CXX 28375 28376# Symbols that must always be exported. 28377include_expsyms=$lt_include_expsyms_CXX 28378 28379# Commands necessary for linking programs (against libraries) with templates. 28380prelink_cmds=$lt_prelink_cmds_CXX 28381 28382# Commands necessary for finishing linking programs. 28383postlink_cmds=$lt_postlink_cmds_CXX 28384 28385# Specify filename containing input files. 28386file_list_spec=$lt_file_list_spec_CXX 28387 28388# How to hardcode a shared library path into an executable. 28389hardcode_action=$hardcode_action_CXX 28390 28391# The directories searched by this compiler when creating a shared library. 28392compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 28393 28394# Dependencies to place before and after the objects being linked to 28395# create a shared library. 28396predep_objects=$lt_predep_objects_CXX 28397postdep_objects=$lt_postdep_objects_CXX 28398predeps=$lt_predeps_CXX 28399postdeps=$lt_postdeps_CXX 28400 28401# The library search path used internally by the compiler when linking 28402# a shared library. 28403compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 28404 28405# ### END LIBTOOL TAG CONFIG: CXX 28406_LT_EOF 28407 28408 ;; 28409 28410 esac 28411done # for ac_tag 28412 28413 28414as_fn_exit 0 28415_ACEOF 28416ac_clean_files=$ac_clean_files_save 28417 28418test $ac_write_fail = 0 || 28419 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 28420 28421 28422# configure is writing to config.log, and then calls config.status. 28423# config.status does its own redirection, appending to config.log. 28424# Unfortunately, on DOS this fails, as config.log is still kept open 28425# by configure, so config.status won't be able to write to it; its 28426# output is simply discarded. So we exec the FD to /dev/null, 28427# effectively closing config.log, so it can be properly (re)opened and 28428# appended to by config.status. When coming back to configure, we 28429# need to make the FD available again. 28430if test "$no_create" != yes; then 28431 ac_cs_success=: 28432 ac_config_status_args= 28433 test "$silent" = yes && 28434 ac_config_status_args="$ac_config_status_args --quiet" 28435 exec 5>/dev/null 28436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28437 exec 5>>config.log 28438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28439 # would make configure fail if this is the last instruction. 28440 $ac_cs_success || as_fn_exit 1 28441fi 28442if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 28443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 28444printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 28445fi 28446 28447 28448