1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for iperf 3.7+. 4# 5# Report bugs to <https://github.com/esnet/iperf>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell [email protected] and 278$0: https://github.com/esnet/iperf about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='iperf' 592PACKAGE_TARNAME='iperf' 593PACKAGE_VERSION='3.7+' 594PACKAGE_STRING='iperf 3.7+' 595PACKAGE_BUGREPORT='https://github.com/esnet/iperf' 596PACKAGE_URL='https://software.es.net/iperf/' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638OPENSSL_LDFLAGS 639OPENSSL_LIBS 640OPENSSL_INCLUDES 641PKG_CONFIG 642ENABLE_PROFILING_FALSE 643ENABLE_PROFILING_TRUE 644MAINT 645MAINTAINER_MODE_FALSE 646MAINTAINER_MODE_TRUE 647CPP 648LT_SYS_LIBRARY_PATH 649OTOOL64 650OTOOL 651LIPO 652NMEDIT 653DSYMUTIL 654MANIFEST_TOOL 655RANLIB 656ac_ct_AR 657AR 658DLLTOOL 659OBJDUMP 660LN_S 661NM 662ac_ct_DUMPBIN 663DUMPBIN 664LD 665FGREP 666EGREP 667GREP 668SED 669am__fastdepCC_FALSE 670am__fastdepCC_TRUE 671CCDEPMODE 672am__nodep 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__include 677DEPDIR 678OBJEXT 679EXEEXT 680ac_ct_CC 681CPPFLAGS 682LDFLAGS 683CFLAGS 684CC 685host_os 686host_vendor 687host_cpu 688host 689build_os 690build_vendor 691build_cpu 692build 693LIBTOOL 694AM_BACKSLASH 695AM_DEFAULT_VERBOSITY 696AM_DEFAULT_V 697AM_V 698am__untar 699am__tar 700AMTAR 701am__leading_dot 702SET_MAKE 703AWK 704mkdir_p 705MKDIR_P 706INSTALL_STRIP_PROGRAM 707STRIP 708install_sh 709MAKEINFO 710AUTOHEADER 711AUTOMAKE 712AUTOCONF 713ACLOCAL 714VERSION 715PACKAGE 716CYGPATH_W 717am__isrc 718INSTALL_DATA 719INSTALL_SCRIPT 720INSTALL_PROGRAM 721ENABLE_STATIC_BIN_FALSE 722ENABLE_STATIC_BIN_TRUE 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL 761am__quote' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_static_bin 766enable_shared 767enable_silent_rules 768enable_static 769with_pic 770enable_fast_install 771with_aix_soname 772enable_dependency_tracking 773with_gnu_ld 774with_sysroot 775enable_libtool_lock 776enable_maintainer_mode 777enable_profiling 778with_sctp 779with_openssl 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789LT_SYS_LIBRARY_PATH 790CPP' 791 792 793# Initialize some variables set by options. 794ac_init_help= 795ac_init_version=false 796ac_unrecognized_opts= 797ac_unrecognized_sep= 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid package name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"with_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1177Try \`$0 --help' for more information" 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 as_fn_error $? "missing argument to $ac_option" 1204fi 1205 1206if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 elif test "x$build_alias" != "x$host_alias"; then 1247 cross_compiling=yes 1248 fi 1249fi 1250 1251ac_tool_prefix= 1252test -n "$host_alias" && ac_tool_prefix=$host_alias- 1253 1254test "$silent" = yes && exec 6>/dev/null 1255 1256 1257ac_pwd=`pwd` && test -n "$ac_pwd" && 1258ac_ls_di=`ls -di .` && 1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1260 as_fn_error $? "working directory cannot be determined" 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262 as_fn_error $? "pwd does not report name of working directory" 1263 1264 1265# Find the source files, if location was not specified. 1266if test -z "$srcdir"; then 1267 ac_srcdir_defaulted=yes 1268 # Try the directory containing this script, then the parent directory. 1269 ac_confdir=`$as_dirname -- "$as_myself" || 1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1271 X"$as_myself" : 'X\(//\)[^/]' \| \ 1272 X"$as_myself" : 'X\(//\)$' \| \ 1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274$as_echo X"$as_myself" | 1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)[^/].*/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\).*/{ 1288 s//\1/ 1289 q 1290 } 1291 s/.*/./; q'` 1292 srcdir=$ac_confdir 1293 if test ! -r "$srcdir/$ac_unique_file"; then 1294 srcdir=.. 1295 fi 1296else 1297 ac_srcdir_defaulted=no 1298fi 1299if test ! -r "$srcdir/$ac_unique_file"; then 1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1302fi 1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1304ac_abs_confdir=`( 1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1306 pwd)` 1307# When building in place, set srcdir=. 1308if test "$ac_abs_confdir" = "$ac_pwd"; then 1309 srcdir=. 1310fi 1311# Remove unnecessary trailing slashes from srcdir. 1312# Double slashes in file names in object file debugging info 1313# mess up M-x gdb in Emacs. 1314case $srcdir in 1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316esac 1317for ac_var in $ac_precious_vars; do 1318 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_env_${ac_var}_value=\$${ac_var} 1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322done 1323 1324# 1325# Report the --help message. 1326# 1327if test "$ac_init_help" = "long"; then 1328 # Omit some internal or obsolete options to make the list less imposing. 1329 # This message is too long to be a string in the A/UX 3.1 sh. 1330 cat <<_ACEOF 1331\`configure' configures iperf 3.7+ to adapt to many kinds of systems. 1332 1333Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1335To assign environment variables (e.g., CC, CFLAGS...), specify them as 1336VAR=VALUE. See below for descriptions of some of the useful variables. 1337 1338Defaults for the options are specified in brackets. 1339 1340Configuration: 1341 -h, --help display this help and exit 1342 --help=short display options specific to this package 1343 --help=recursive display the short help of all the included packages 1344 -V, --version display version information and exit 1345 -q, --quiet, --silent do not print \`checking ...' messages 1346 --cache-file=FILE cache test results in FILE [disabled] 1347 -C, --config-cache alias for \`--cache-file=config.cache' 1348 -n, --no-create do not create output files 1349 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350 1351Installation directories: 1352 --prefix=PREFIX install architecture-independent files in PREFIX 1353 [$ac_default_prefix] 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355 [PREFIX] 1356 1357By default, \`make install' will install all the files in 1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360for instance \`--prefix=\$HOME'. 1361 1362For better control, use the options below. 1363 1364Fine tuning of the installation directories: 1365 --bindir=DIR user executables [EPREFIX/bin] 1366 --sbindir=DIR system admin executables [EPREFIX/sbin] 1367 --libexecdir=DIR program executables [EPREFIX/libexec] 1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384_ACEOF 1385 1386 cat <<\_ACEOF 1387 1388Program names: 1389 --program-prefix=PREFIX prepend PREFIX to installed program names 1390 --program-suffix=SUFFIX append SUFFIX to installed program names 1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392 1393System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396_ACEOF 1397fi 1398 1399if test -n "$ac_init_help"; then 1400 case $ac_init_help in 1401 short | recursive ) echo "Configuration of iperf 3.7+:";; 1402 esac 1403 cat <<\_ACEOF 1404 1405Optional Features: 1406 --disable-option-checking ignore unrecognized --enable/--with options 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --enable-static-bin link iperf3 binary statically 1410 --enable-shared[=PKGS] build shared libraries [default=no] 1411 --enable-silent-rules less verbose build output (undo: "make V=1") 1412 --disable-silent-rules verbose build output (undo: "make V=0") 1413 --enable-static[=PKGS] build static libraries [default=yes] 1414 --enable-fast-install[=PKGS] 1415 optimize for fast installation [default=yes] 1416 --enable-dependency-tracking 1417 do not reject slow dependency extractors 1418 --disable-dependency-tracking 1419 speeds up one-time build 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 --enable-maintainer-mode 1422 enable make rules and dependencies not useful (and 1423 sometimes confusing) to the casual installer 1424 --enable-profiling Enable iperf3 profiling binary 1425 1426Optional Packages: 1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1429 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1430 both] 1431 --with-aix-soname=aix|svr4|both 1432 shared library versioning (aka "SONAME") variant to 1433 provide on AIX, [default=aix]. 1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1435 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1436 compiler's sysroot if not specified). 1437 --without-sctp disable SCTP 1438 --with-openssl=DIR root of the OpenSSL directory 1439 1440Some influential environment variables: 1441 CC C compiler command 1442 CFLAGS C compiler flags 1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1444 nonstandard directory <lib dir> 1445 LIBS libraries to pass to the linker, e.g. -l<library> 1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 LT_SYS_LIBRARY_PATH 1449 User-defined run-time library search path. 1450 CPP C preprocessor 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <https://github.com/esnet/iperf>. 1456iperf home page: <https://software.es.net/iperf/>. 1457_ACEOF 1458ac_status=$? 1459fi 1460 1461if test "$ac_init_help" = "recursive"; then 1462 # If there are subdirs, report their specific --help. 1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1464 test -d "$ac_dir" || 1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1466 continue 1467 ac_builddir=. 1468 1469case "$ac_dir" in 1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471*) 1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1473 # A ".." for each directory in $ac_dir_suffix. 1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1475 case $ac_top_builddir_sub in 1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1478 esac ;; 1479esac 1480ac_abs_top_builddir=$ac_pwd 1481ac_abs_builddir=$ac_pwd$ac_dir_suffix 1482# for backward compatibility: 1483ac_top_builddir=$ac_top_build_prefix 1484 1485case $srcdir in 1486 .) # We are building in place. 1487 ac_srcdir=. 1488 ac_top_srcdir=$ac_top_builddir_sub 1489 ac_abs_top_srcdir=$ac_pwd ;; 1490 [\\/]* | ?:[\\/]* ) # Absolute name. 1491 ac_srcdir=$srcdir$ac_dir_suffix; 1492 ac_top_srcdir=$srcdir 1493 ac_abs_top_srcdir=$srcdir ;; 1494 *) # Relative name. 1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1496 ac_top_srcdir=$ac_top_build_prefix$srcdir 1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1498esac 1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1500 1501 cd "$ac_dir" || { ac_status=$?; continue; } 1502 # Check for guested configure. 1503 if test -f "$ac_srcdir/configure.gnu"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1506 elif test -f "$ac_srcdir/configure"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure" --help=recursive 1509 else 1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1511 fi || ac_status=$? 1512 cd "$ac_pwd" || { ac_status=$?; break; } 1513 done 1514fi 1515 1516test -n "$ac_init_help" && exit $ac_status 1517if $ac_init_version; then 1518 cat <<\_ACEOF 1519iperf configure 3.7+ 1520generated by GNU Autoconf 2.69 1521 1522Copyright (C) 2012 Free Software Foundation, Inc. 1523This configure script is free software; the Free Software Foundation 1524gives unlimited permission to copy, distribute and modify it. 1525_ACEOF 1526 exit 1527fi 1528 1529## ------------------------ ## 1530## Autoconf initialization. ## 1531## ------------------------ ## 1532 1533# ac_fn_c_try_compile LINENO 1534# -------------------------- 1535# Try to compile conftest.$ac_ext, and return whether this succeeded. 1536ac_fn_c_try_compile () 1537{ 1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1539 rm -f conftest.$ac_objext 1540 if { { ac_try="$ac_compile" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_compile") 2>conftest.err 1548 ac_status=$? 1549 if test -s conftest.err; then 1550 grep -v '^ *+' conftest.err >conftest.er1 1551 cat conftest.er1 >&5 1552 mv -f conftest.er1 conftest.err 1553 fi 1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1555 test $ac_status = 0; } && { 1556 test -z "$ac_c_werror_flag" || 1557 test ! -s conftest.err 1558 } && test -s conftest.$ac_objext; then : 1559 ac_retval=0 1560else 1561 $as_echo "$as_me: failed program was:" >&5 1562sed 's/^/| /' conftest.$ac_ext >&5 1563 1564 ac_retval=1 1565fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_compile 1570 1571# ac_fn_c_try_link LINENO 1572# ----------------------- 1573# Try to link conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_link () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 rm -f conftest.$ac_objext conftest$ac_exeext 1578 if { { ac_try="$ac_link" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_link") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } && { 1594 test -z "$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 } && test -s conftest$ac_exeext && { 1597 test "$cross_compiling" = yes || 1598 test -x conftest$ac_exeext 1599 }; then : 1600 ac_retval=0 1601else 1602 $as_echo "$as_me: failed program was:" >&5 1603sed 's/^/| /' conftest.$ac_ext >&5 1604 1605 ac_retval=1 1606fi 1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1609 # interfere with the next link command; also delete a directory that is 1610 # left behind by Apple's compiler. We do this before executing the actions. 1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615} # ac_fn_c_try_link 1616 1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1618# ------------------------------------------------------- 1619# Tests whether HEADER exists and can be compiled using the include files in 1620# INCLUDES, setting the cache variable VAR accordingly. 1621ac_fn_c_check_header_compile () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1625$as_echo_n "checking for $2... " >&6; } 1626if eval \${$3+:} false; then : 1627 $as_echo_n "(cached) " >&6 1628else 1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1630/* end confdefs.h. */ 1631$4 1632#include <$2> 1633_ACEOF 1634if ac_fn_c_try_compile "$LINENO"; then : 1635 eval "$3=yes" 1636else 1637 eval "$3=no" 1638fi 1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1640fi 1641eval ac_res=\$$3 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1643$as_echo "$ac_res" >&6; } 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 1646} # ac_fn_c_check_header_compile 1647 1648# ac_fn_c_try_cpp LINENO 1649# ---------------------- 1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1651ac_fn_c_try_cpp () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 if { { ac_try="$ac_cpp conftest.$ac_ext" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } > conftest.i && { 1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 }; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_cpp 1684 1685# ac_fn_c_try_run LINENO 1686# ---------------------- 1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1688# that executables *can* be run. 1689ac_fn_c_try_run () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_link" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_link") 2>&5 1700 ac_status=$? 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1703 { { case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_try") 2>&5 1710 ac_status=$? 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; }; }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: program exited with status $ac_status" >&5 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=$ac_status 1720fi 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_run 1726 1727# ac_fn_c_check_func LINENO FUNC VAR 1728# ---------------------------------- 1729# Tests whether FUNC exists, setting the cache variable VAR accordingly 1730ac_fn_c_check_func () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if eval \${$3+:} false; then : 1736 $as_echo_n "(cached) " >&6 1737else 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1742#define $2 innocuous_$2 1743 1744/* System header to define __stub macros and hopefully few prototypes, 1745 which can conflict with char $2 (); below. 1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1747 <limits.h> exists even on freestanding compilers. */ 1748 1749#ifdef __STDC__ 1750# include <limits.h> 1751#else 1752# include <assert.h> 1753#endif 1754 1755#undef $2 1756 1757/* Override any GCC internal prototype to avoid an error. 1758 Use char because int might match the return type of a GCC 1759 builtin and then its argument prototype would still apply. */ 1760#ifdef __cplusplus 1761extern "C" 1762#endif 1763char $2 (); 1764/* The GNU C library defines this for functions which it implements 1765 to always fail with ENOSYS. Some functions are actually named 1766 something starting with __ and the normal name is an alias. */ 1767#if defined __stub_$2 || defined __stub___$2 1768choke me 1769#endif 1770 1771int 1772main () 1773{ 1774return $2 (); 1775 ; 1776 return 0; 1777} 1778_ACEOF 1779if ac_fn_c_try_link "$LINENO"; then : 1780 eval "$3=yes" 1781else 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext \ 1785 conftest$ac_exeext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_func 1793 1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1795# ------------------------------------------------------- 1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1797# the include files in INCLUDES and setting the cache variable VAR 1798# accordingly. 1799ac_fn_c_check_header_mongrel () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if eval \${$3+:} false; then : 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807fi 1808eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810$as_echo "$ac_res" >&6; } 1811else 1812 # Is the header compilable? 1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1814$as_echo_n "checking $2 usability... " >&6; } 1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817$4 1818#include <$2> 1819_ACEOF 1820if ac_fn_c_try_compile "$LINENO"; then : 1821 ac_header_compiler=yes 1822else 1823 ac_header_compiler=no 1824fi 1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1827$as_echo "$ac_header_compiler" >&6; } 1828 1829# Is the header present? 1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1831$as_echo_n "checking $2 presence... " >&6; } 1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834#include <$2> 1835_ACEOF 1836if ac_fn_c_try_cpp "$LINENO"; then : 1837 ac_header_preproc=yes 1838else 1839 ac_header_preproc=no 1840fi 1841rm -f conftest.err conftest.i conftest.$ac_ext 1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1843$as_echo "$ac_header_preproc" >&6; } 1844 1845# So? What about this header? 1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1847 yes:no: ) 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1852 ;; 1853 no:yes:* ) 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1864( $as_echo "## --------------------------------------------- ## 1865## Report this to https://github.com/esnet/iperf ## 1866## --------------------------------------------- ##" 1867 ) | sed "s/^/$as_me: WARNING: /" >&2 1868 ;; 1869esac 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 eval "$3=\$ac_header_compiler" 1876fi 1877eval ac_res=\$$3 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879$as_echo "$ac_res" >&6; } 1880fi 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_header_mongrel 1884cat >config.log <<_ACEOF 1885This file contains any messages produced by compilers while 1886running configure, to aid debugging if configure makes a mistake. 1887 1888It was created by iperf $as_me 3.7+, which was 1889generated by GNU Autoconf 2.69. Invocation command line was 1890 1891 $ $0 $@ 1892 1893_ACEOF 1894exec 5>>config.log 1895{ 1896cat <<_ASUNAME 1897## --------- ## 1898## Platform. ## 1899## --------- ## 1900 1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1902uname -m = `(uname -m) 2>/dev/null || echo unknown` 1903uname -r = `(uname -r) 2>/dev/null || echo unknown` 1904uname -s = `(uname -s) 2>/dev/null || echo unknown` 1905uname -v = `(uname -v) 2>/dev/null || echo unknown` 1906 1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1909 1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1917 1918_ASUNAME 1919 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 $as_echo "PATH: $as_dir" 1926 done 1927IFS=$as_save_IFS 1928 1929} >&5 1930 1931cat >&5 <<_ACEOF 1932 1933 1934## ----------- ## 1935## Core tests. ## 1936## ----------- ## 1937 1938_ACEOF 1939 1940 1941# Keep a trace of the command line. 1942# Strip out --no-create and --no-recursion so they do not pile up. 1943# Strip out --silent because we don't want to record it for future runs. 1944# Also quote any args containing shell meta-characters. 1945# Make two passes to allow for proper duplicate-argument suppression. 1946ac_configure_args= 1947ac_configure_args0= 1948ac_configure_args1= 1949ac_must_keep_next=false 1950for ac_pass in 1 2 1951do 1952 for ac_arg 1953 do 1954 case $ac_arg in 1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1957 | -silent | --silent | --silen | --sile | --sil) 1958 continue ;; 1959 *\'*) 1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 esac 1962 case $ac_pass in 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1964 2) 1965 as_fn_append ac_configure_args1 " '$ac_arg'" 1966 if test $ac_must_keep_next = true; then 1967 ac_must_keep_next=false # Got value, back to normal. 1968 else 1969 case $ac_arg in 1970 *=* | --config-cache | -C | -disable-* | --disable-* \ 1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1973 | -with-* | --with-* | -without-* | --without-* | --x) 1974 case "$ac_configure_args0 " in 1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1976 esac 1977 ;; 1978 -* ) ac_must_keep_next=true ;; 1979 esac 1980 fi 1981 as_fn_append ac_configure_args " '$ac_arg'" 1982 ;; 1983 esac 1984 done 1985done 1986{ ac_configure_args0=; unset ac_configure_args0;} 1987{ ac_configure_args1=; unset ac_configure_args1;} 1988 1989# When interrupted or exit'd, cleanup temporary files, and complete 1990# config.log. We remove comments because anyway the quotes in there 1991# would cause problems or look ugly. 1992# WARNING: Use '\'' to represent an apostrophe within the trap. 1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1994trap 'exit_status=$? 1995 # Save into config.log some information that might help in debugging. 1996 { 1997 echo 1998 1999 $as_echo "## ---------------- ## 2000## Cache variables. ## 2001## ---------------- ##" 2002 echo 2003 # The following way of writing the cache mishandles newlines in values, 2004( 2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in #( 2008 *${as_nl}*) 2009 case $ac_var in #( 2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2012 esac 2013 case $ac_var in #( 2014 _ | IFS | as_nl) ;; #( 2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2016 *) { eval $ac_var=; unset $ac_var;} ;; 2017 esac ;; 2018 esac 2019 done 2020 (set) 2>&1 | 2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2022 *${as_nl}ac_space=\ *) 2023 sed -n \ 2024 "s/'\''/'\''\\\\'\'''\''/g; 2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2026 ;; #( 2027 *) 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2029 ;; 2030 esac | 2031 sort 2032) 2033 echo 2034 2035 $as_echo "## ----------------- ## 2036## Output variables. ## 2037## ----------------- ##" 2038 echo 2039 for ac_var in $ac_subst_vars 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 2049 if test -n "$ac_subst_files"; then 2050 $as_echo "## ------------------- ## 2051## File substitutions. ## 2052## ------------------- ##" 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 $as_echo "## ----------- ## 2067## confdefs.h. ## 2068## ----------- ##" 2069 echo 2070 cat confdefs.h 2071 echo 2072 fi 2073 test "$ac_signal" != 0 && 2074 $as_echo "$as_me: caught signal $ac_signal" 2075 $as_echo "$as_me: exit $exit_status" 2076 } >&5 2077 rm -f core *.core core.conftest.* && 2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2079 exit $exit_status 2080' 0 2081for ac_signal in 1 2 13 15; do 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2083done 2084ac_signal=0 2085 2086# confdefs.h avoids OS command line length limits that DEFS can exceed. 2087rm -f -r conftest* confdefs.h 2088 2089$as_echo "/* confdefs.h */" > confdefs.h 2090 2091# Predefined preprocessor variables. 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_NAME "$PACKAGE_NAME" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_VERSION "$PACKAGE_VERSION" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_STRING "$PACKAGE_STRING" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2111_ACEOF 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_URL "$PACKAGE_URL" 2115_ACEOF 2116 2117 2118# Let the site file select an alternate cache file if it wants to. 2119# Prefer an explicitly selected file to automatically selected ones. 2120ac_site_file1=NONE 2121ac_site_file2=NONE 2122if test -n "$CONFIG_SITE"; then 2123 # We do not want a PATH search for config.site. 2124 case $CONFIG_SITE in #(( 2125 -*) ac_site_file1=./$CONFIG_SITE;; 2126 */*) ac_site_file1=$CONFIG_SITE;; 2127 *) ac_site_file1=./$CONFIG_SITE;; 2128 esac 2129elif test "x$prefix" != xNONE; then 2130 ac_site_file1=$prefix/share/config.site 2131 ac_site_file2=$prefix/etc/config.site 2132else 2133 ac_site_file1=$ac_default_prefix/share/config.site 2134 ac_site_file2=$ac_default_prefix/etc/config.site 2135fi 2136for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2137do 2138 test "x$ac_site_file" = xNONE && continue 2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2141$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2142 sed 's/^/| /' "$ac_site_file" >&5 2143 . "$ac_site_file" \ 2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2146as_fn_error $? "failed to load site script $ac_site_file 2147See \`config.log' for more details" "$LINENO" 5; } 2148 fi 2149done 2150 2151if test -r "$cache_file"; then 2152 # Some versions of bash will fail to source /dev/null (special files 2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2156$as_echo "$as_me: loading cache $cache_file" >&6;} 2157 case $cache_file in 2158 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2159 *) . "./$cache_file";; 2160 esac 2161 fi 2162else 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2164$as_echo "$as_me: creating cache $cache_file" >&6;} 2165 >$cache_file 2166fi 2167 2168# Check that the precious variables saved in the cache have kept the same 2169# value. 2170ac_cache_corrupted=false 2171for ac_var in $ac_precious_vars; do 2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2173 eval ac_new_set=\$ac_env_${ac_var}_set 2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2175 eval ac_new_val=\$ac_env_${ac_var}_value 2176 case $ac_old_set,$ac_new_set in 2177 set,) 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2180 ac_cache_corrupted=: ;; 2181 ,set) 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2184 ac_cache_corrupted=: ;; 2185 ,);; 2186 *) 2187 if test "x$ac_old_val" != "x$ac_new_val"; then 2188 # differences in whitespace do not lead to failure. 2189 ac_old_val_w=`echo x $ac_old_val` 2190 ac_new_val_w=`echo x $ac_new_val` 2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2194 ac_cache_corrupted=: 2195 else 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2198 eval $ac_var=\$ac_old_val 2199 fi 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2204 fi;; 2205 esac 2206 # Pass precious variables to config.status. 2207 if test "$ac_new_set" = set; then 2208 case $ac_new_val in 2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2210 *) ac_arg=$ac_var=$ac_new_val ;; 2211 esac 2212 case " $ac_configure_args " in 2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2215 esac 2216 fi 2217done 2218if $ac_cache_corrupted; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2224fi 2225## -------------------- ## 2226## Main body of script. ## 2227## -------------------- ## 2228 2229ac_ext=c 2230ac_cpp='$CPP $CPPFLAGS' 2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2233ac_compiler_gnu=$ac_cv_c_compiler_gnu 2234 2235 2236# =========================================================================== 2237# https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html 2238# =========================================================================== 2239# 2240# SYNOPSIS 2241# 2242# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) 2243# 2244# DESCRIPTION 2245# 2246# Look for OpenSSL in a number of default spots, or in a user-selected 2247# spot (via --with-openssl). Sets 2248# 2249# OPENSSL_INCLUDES to the include directives required 2250# OPENSSL_LIBS to the -l directives required 2251# OPENSSL_LDFLAGS to the -L or -R flags required 2252# 2253# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately 2254# 2255# This macro sets OPENSSL_INCLUDES such that source files should use the 2256# openssl/ directory in include directives: 2257# 2258# #include <openssl/hmac.h> 2259# 2260# LICENSE 2261# 2262# Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/> 2263# Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]> 2264# 2265# Copying and distribution of this file, with or without modification, are 2266# permitted in any medium without royalty provided the copyright notice 2267# and this notice are preserved. This file is offered as-is, without any 2268# warranty. 2269 2270#serial 10 2271 2272# This is what autoupdate's m4 run will expand. It fires 2273# the warning (with _au_warn_XXX), outputs it into the 2274# updated configure.ac (with AC_DIAGNOSE), and then outputs 2275# the replacement expansion. 2276 2277 2278# This is an auxiliary macro that is also run when 2279# autoupdate runs m4. It simply calls m4_warning, but 2280# we need a wrapper so that each warning is emitted only 2281# once. We break the quoting in m4_warning's argument in 2282# order to expand this macro's arguments, not AU_DEFUN's. 2283 2284 2285# Finally, this is the expansion that is picked up by 2286# autoconf. It tells the user to run autoupdate, and 2287# then outputs the replacement expansion. We do not care 2288# about autoupdate's warning because that contains 2289# information on what to do *after* running autoupdate. 2290 2291 2292 2293# Also link binaries as static 2294# Check whether --enable-static-bin was given. 2295if test "${enable_static_bin+set}" = set; then : 2296 enableval=$enable_static_bin; enable_static_bin=yes 2297 # Check whether --enable-shared was given. 2298if test "${enable_shared+set}" = set; then : 2299 enableval=$enable_shared; p=${PACKAGE-default} 2300 case $enableval in 2301 yes) enable_shared=yes ;; 2302 no) enable_shared=no ;; 2303 *) 2304 enable_shared=no 2305 # Look at the argument we got. We use all the common list separators. 2306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2307 for pkg in $enableval; do 2308 IFS=$lt_save_ifs 2309 if test "X$pkg" = "X$p"; then 2310 enable_shared=yes 2311 fi 2312 done 2313 IFS=$lt_save_ifs 2314 ;; 2315 esac 2316else 2317 enable_shared=no 2318fi 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328else 2329 : 2330fi 2331 2332 if test x$enable_static_bin = xno; then 2333 ENABLE_STATIC_BIN_TRUE= 2334 ENABLE_STATIC_BIN_FALSE='#' 2335else 2336 ENABLE_STATIC_BIN_TRUE='#' 2337 ENABLE_STATIC_BIN_FALSE= 2338fi 2339 2340 2341if test "x$enable_static_bin" == xyes; then : 2342 LDFLAGS="$LDFLAGS --static" 2343 2344fi 2345 2346ac_ext=c 2347ac_cpp='$CPP $CPPFLAGS' 2348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2350ac_compiler_gnu=$ac_cv_c_compiler_gnu 2351 2352 2353# Specify where the auxiliary files created by configure should go. The config 2354# directory is picked so that they don't clutter up more useful directories. 2355ac_aux_dir= 2356for ac_dir in config "$srcdir"/config; do 2357 if test -f "$ac_dir/install-sh"; then 2358 ac_aux_dir=$ac_dir 2359 ac_install_sh="$ac_aux_dir/install-sh -c" 2360 break 2361 elif test -f "$ac_dir/install.sh"; then 2362 ac_aux_dir=$ac_dir 2363 ac_install_sh="$ac_aux_dir/install.sh -c" 2364 break 2365 elif test -f "$ac_dir/shtool"; then 2366 ac_aux_dir=$ac_dir 2367 ac_install_sh="$ac_aux_dir/shtool install -c" 2368 break 2369 fi 2370done 2371if test -z "$ac_aux_dir"; then 2372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2373fi 2374 2375# These three variables are undocumented and unsupported, 2376# and are intended to be withdrawn in a future Autoconf release. 2377# They can cause serious problems if a builder's source tree is in a directory 2378# whose full name contains unusual characters. 2379ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2380ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2381ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2382 2383 2384 2385 2386# Initialize the automake system 2387am__api_version='1.16' 2388 2389# Find a good install program. We prefer a C program (faster), 2390# so one script is as good as another. But avoid the broken or 2391# incompatible versions: 2392# SysV /etc/install, /usr/sbin/install 2393# SunOS /usr/etc/install 2394# IRIX /sbin/install 2395# AIX /bin/install 2396# AmigaOS /C/install, which installs bootblocks on floppy discs 2397# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2398# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2399# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2400# OS/2's system install, which has a completely different semantic 2401# ./install, which can be erroneously created by make from ./install.sh. 2402# Reject install programs that cannot install multiple files. 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2404$as_echo_n "checking for a BSD-compatible install... " >&6; } 2405if test -z "$INSTALL"; then 2406if ${ac_cv_path_install+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2410for as_dir in $PATH 2411do 2412 IFS=$as_save_IFS 2413 test -z "$as_dir" && as_dir=. 2414 # Account for people who put trailing slashes in PATH elements. 2415case $as_dir/ in #(( 2416 ./ | .// | /[cC]/* | \ 2417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2419 /usr/ucb/* ) ;; 2420 *) 2421 # OSF1 and SCO ODT 3.0 have their own names for install. 2422 # Don't use installbsd from OSF since it installs stuff as root 2423 # by default. 2424 for ac_prog in ginstall scoinst install; do 2425 for ac_exec_ext in '' $ac_executable_extensions; do 2426 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2427 if test $ac_prog = install && 2428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2429 # AIX install. It has an incompatible calling convention. 2430 : 2431 elif test $ac_prog = install && 2432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2433 # program-specific install script used by HP pwplus--don't use. 2434 : 2435 else 2436 rm -rf conftest.one conftest.two conftest.dir 2437 echo one > conftest.one 2438 echo two > conftest.two 2439 mkdir conftest.dir 2440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2441 test -s conftest.one && test -s conftest.two && 2442 test -s conftest.dir/conftest.one && 2443 test -s conftest.dir/conftest.two 2444 then 2445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2446 break 3 2447 fi 2448 fi 2449 fi 2450 done 2451 done 2452 ;; 2453esac 2454 2455 done 2456IFS=$as_save_IFS 2457 2458rm -rf conftest.one conftest.two conftest.dir 2459 2460fi 2461 if test "${ac_cv_path_install+set}" = set; then 2462 INSTALL=$ac_cv_path_install 2463 else 2464 # As a last resort, use the slow shell script. Don't cache a 2465 # value for INSTALL within a source directory, because that will 2466 # break other packages using the cache if that directory is 2467 # removed, or if the value is a relative name. 2468 INSTALL=$ac_install_sh 2469 fi 2470fi 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2472$as_echo "$INSTALL" >&6; } 2473 2474# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2475# It thinks the first close brace ends the variable substitution. 2476test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2477 2478test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2479 2480test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2481 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2483$as_echo_n "checking whether build environment is sane... " >&6; } 2484# Reject unsafe characters in $srcdir or the absolute working directory 2485# name. Accept space and tab only in the latter. 2486am_lf=' 2487' 2488case `pwd` in 2489 *[\\\"\#\$\&\'\`$am_lf]*) 2490 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2491esac 2492case $srcdir in 2493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2494 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2495esac 2496 2497# Do 'set' in a subshell so we don't clobber the current shell's 2498# arguments. Must try -L first in case configure is actually a 2499# symlink; some systems play weird games with the mod time of symlinks 2500# (eg FreeBSD returns the mod time of the symlink's containing 2501# directory). 2502if ( 2503 am_has_slept=no 2504 for am_try in 1 2; do 2505 echo "timestamp, slept: $am_has_slept" > conftest.file 2506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2507 if test "$*" = "X"; then 2508 # -L didn't work. 2509 set X `ls -t "$srcdir/configure" conftest.file` 2510 fi 2511 if test "$*" != "X $srcdir/configure conftest.file" \ 2512 && test "$*" != "X conftest.file $srcdir/configure"; then 2513 2514 # If neither matched, then we have a broken ls. This can happen 2515 # if, for instance, CONFIG_SHELL is bash and it inherits a 2516 # broken ls alias from the environment. This has actually 2517 # happened. Such a system could not be considered "sane". 2518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2519 alias in your environment" "$LINENO" 5 2520 fi 2521 if test "$2" = conftest.file || test $am_try -eq 2; then 2522 break 2523 fi 2524 # Just in case. 2525 sleep 1 2526 am_has_slept=yes 2527 done 2528 test "$2" = conftest.file 2529 ) 2530then 2531 # Ok. 2532 : 2533else 2534 as_fn_error $? "newly created file is older than distributed files! 2535Check your system clock" "$LINENO" 5 2536fi 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2538$as_echo "yes" >&6; } 2539# If we didn't sleep, we still need to ensure time stamps of config.status and 2540# generated files are strictly newer. 2541am_sleep_pid= 2542if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2543 ( sleep 1 ) & 2544 am_sleep_pid=$! 2545fi 2546 2547rm -f conftest.file 2548 2549test "$program_prefix" != NONE && 2550 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2551# Use a double $ so make ignores it. 2552test "$program_suffix" != NONE && 2553 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2554# Double any \ or $. 2555# By default was `s,x,x', remove it if useless. 2556ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2557program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2558 2559# Expand $ac_aux_dir to an absolute path. 2560am_aux_dir=`cd "$ac_aux_dir" && pwd` 2561 2562if test x"${MISSING+set}" != xset; then 2563 case $am_aux_dir in 2564 *\ * | *\ *) 2565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2566 *) 2567 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2568 esac 2569fi 2570# Use eval to expand $SHELL 2571if eval "$MISSING --is-lightweight"; then 2572 am_missing_run="$MISSING " 2573else 2574 am_missing_run= 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2576$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2577fi 2578 2579if test x"${install_sh+set}" != xset; then 2580 case $am_aux_dir in 2581 *\ * | *\ *) 2582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2583 *) 2584 install_sh="\${SHELL} $am_aux_dir/install-sh" 2585 esac 2586fi 2587 2588# Installed binaries are usually stripped using 'strip' when the user 2589# run "make install-strip". However 'strip' might not be the right 2590# tool to use in cross-compilation environments, therefore Automake 2591# will honor the 'STRIP' environment variable to overrule this program. 2592if test "$cross_compiling" != no; then 2593 if test -n "$ac_tool_prefix"; then 2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2595set dummy ${ac_tool_prefix}strip; ac_word=$2 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2597$as_echo_n "checking for $ac_word... " >&6; } 2598if ${ac_cv_prog_STRIP+:} false; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 if test -n "$STRIP"; then 2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2611 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616 done 2617IFS=$as_save_IFS 2618 2619fi 2620fi 2621STRIP=$ac_cv_prog_STRIP 2622if test -n "$STRIP"; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2624$as_echo "$STRIP" >&6; } 2625else 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627$as_echo "no" >&6; } 2628fi 2629 2630 2631fi 2632if test -z "$ac_cv_prog_STRIP"; then 2633 ac_ct_STRIP=$STRIP 2634 # Extract the first word of "strip", so it can be a program name with args. 2635set dummy strip; ac_word=$2 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2637$as_echo_n "checking for $ac_word... " >&6; } 2638if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 if test -n "$ac_ct_STRIP"; then 2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2643else 2644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2645for as_dir in $PATH 2646do 2647 IFS=$as_save_IFS 2648 test -z "$as_dir" && as_dir=. 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2651 ac_cv_prog_ac_ct_STRIP="strip" 2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2653 break 2 2654 fi 2655done 2656 done 2657IFS=$as_save_IFS 2658 2659fi 2660fi 2661ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2662if test -n "$ac_ct_STRIP"; then 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2664$as_echo "$ac_ct_STRIP" >&6; } 2665else 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2667$as_echo "no" >&6; } 2668fi 2669 2670 if test "x$ac_ct_STRIP" = x; then 2671 STRIP=":" 2672 else 2673 case $cross_compiling:$ac_tool_warned in 2674yes:) 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2677ac_tool_warned=yes ;; 2678esac 2679 STRIP=$ac_ct_STRIP 2680 fi 2681else 2682 STRIP="$ac_cv_prog_STRIP" 2683fi 2684 2685fi 2686INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2687 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2689$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2690if test -z "$MKDIR_P"; then 2691 if ${ac_cv_path_mkdir+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693else 2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2696do 2697 IFS=$as_save_IFS 2698 test -z "$as_dir" && as_dir=. 2699 for ac_prog in mkdir gmkdir; do 2700 for ac_exec_ext in '' $ac_executable_extensions; do 2701 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2703 'mkdir (GNU coreutils) '* | \ 2704 'mkdir (coreutils) '* | \ 2705 'mkdir (fileutils) '4.1*) 2706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2707 break 3;; 2708 esac 2709 done 2710 done 2711 done 2712IFS=$as_save_IFS 2713 2714fi 2715 2716 test -d ./--version && rmdir ./--version 2717 if test "${ac_cv_path_mkdir+set}" = set; then 2718 MKDIR_P="$ac_cv_path_mkdir -p" 2719 else 2720 # As a last resort, use the slow shell script. Don't cache a 2721 # value for MKDIR_P within a source directory, because that will 2722 # break other packages using the cache if that directory is 2723 # removed, or if the value is a relative name. 2724 MKDIR_P="$ac_install_sh -d" 2725 fi 2726fi 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2728$as_echo "$MKDIR_P" >&6; } 2729 2730for ac_prog in gawk mawk nawk awk 2731do 2732 # Extract the first word of "$ac_prog", so it can be a program name with args. 2733set dummy $ac_prog; ac_word=$2 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2735$as_echo_n "checking for $ac_word... " >&6; } 2736if ${ac_cv_prog_AWK+:} false; then : 2737 $as_echo_n "(cached) " >&6 2738else 2739 if test -n "$AWK"; then 2740 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2741else 2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743for as_dir in $PATH 2744do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2749 ac_cv_prog_AWK="$ac_prog" 2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2751 break 2 2752 fi 2753done 2754 done 2755IFS=$as_save_IFS 2756 2757fi 2758fi 2759AWK=$ac_cv_prog_AWK 2760if test -n "$AWK"; then 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2762$as_echo "$AWK" >&6; } 2763else 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765$as_echo "no" >&6; } 2766fi 2767 2768 2769 test -n "$AWK" && break 2770done 2771 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2774set x ${MAKE-make} 2775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2776if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2777 $as_echo_n "(cached) " >&6 2778else 2779 cat >conftest.make <<\_ACEOF 2780SHELL = /bin/sh 2781all: 2782 @echo '@@@%%%=$(MAKE)=@@@%%%' 2783_ACEOF 2784# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2785case `${MAKE-make} -f conftest.make 2>/dev/null` in 2786 *@@@%%%=?*=@@@%%%*) 2787 eval ac_cv_prog_make_${ac_make}_set=yes;; 2788 *) 2789 eval ac_cv_prog_make_${ac_make}_set=no;; 2790esac 2791rm -f conftest.make 2792fi 2793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2795$as_echo "yes" >&6; } 2796 SET_MAKE= 2797else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799$as_echo "no" >&6; } 2800 SET_MAKE="MAKE=${MAKE-make}" 2801fi 2802 2803rm -rf .tst 2>/dev/null 2804mkdir .tst 2>/dev/null 2805if test -d .tst; then 2806 am__leading_dot=. 2807else 2808 am__leading_dot=_ 2809fi 2810rmdir .tst 2>/dev/null 2811 2812# Check whether --enable-silent-rules was given. 2813if test "${enable_silent_rules+set}" = set; then : 2814 enableval=$enable_silent_rules; 2815fi 2816 2817case $enable_silent_rules in # ((( 2818 yes) AM_DEFAULT_VERBOSITY=0;; 2819 no) AM_DEFAULT_VERBOSITY=1;; 2820 *) AM_DEFAULT_VERBOSITY=1;; 2821esac 2822am_make=${MAKE-make} 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2824$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2825if ${am_cv_make_support_nested_variables+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 if $as_echo 'TRUE=$(BAR$(V)) 2829BAR0=false 2830BAR1=true 2831V=1 2832am__doit: 2833 @$(TRUE) 2834.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2835 am_cv_make_support_nested_variables=yes 2836else 2837 am_cv_make_support_nested_variables=no 2838fi 2839fi 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2841$as_echo "$am_cv_make_support_nested_variables" >&6; } 2842if test $am_cv_make_support_nested_variables = yes; then 2843 AM_V='$(V)' 2844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2845else 2846 AM_V=$AM_DEFAULT_VERBOSITY 2847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2848fi 2849AM_BACKSLASH='\' 2850 2851if test "`cd $srcdir && pwd`" != "`pwd`"; then 2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2853 # is not polluted with repeated "-I." 2854 am__isrc=' -I$(srcdir)' 2855 # test to see if srcdir already configured 2856 if test -f $srcdir/config.status; then 2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2858 fi 2859fi 2860 2861# test whether we have cygpath 2862if test -z "$CYGPATH_W"; then 2863 if (cygpath --version) >/dev/null 2>/dev/null; then 2864 CYGPATH_W='cygpath -w' 2865 else 2866 CYGPATH_W=echo 2867 fi 2868fi 2869 2870 2871# Define the identity of the package. 2872 PACKAGE='iperf' 2873 VERSION='3.7+' 2874 2875 2876cat >>confdefs.h <<_ACEOF 2877#define PACKAGE "$PACKAGE" 2878_ACEOF 2879 2880 2881cat >>confdefs.h <<_ACEOF 2882#define VERSION "$VERSION" 2883_ACEOF 2884 2885# Some tools Automake needs. 2886 2887ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2888 2889 2890AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2891 2892 2893AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2894 2895 2896AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2897 2898 2899MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2900 2901# For better backward compatibility. To be removed once Automake 1.9.x 2902# dies out for good. For more background, see: 2903# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2904# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2905mkdir_p='$(MKDIR_P)' 2906 2907# We need awk for the "check" target (and possibly the TAP driver). The 2908# system "awk" is bad on some platforms. 2909# Always define AMTAR for backward compatibility. Yes, it's still used 2910# in the wild :-( We should find a proper way to deprecate it ... 2911AMTAR='$${TAR-tar}' 2912 2913 2914# We'll loop over all known methods to create a tar archive until one works. 2915_am_tools='gnutar pax cpio none' 2916 2917am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2918 2919 2920 2921 2922 2923 2924# POSIX will say in a future version that running "rm -f" with no argument 2925# is OK; and we want to be able to make that assumption in our Makefile 2926# recipes. So use an aggressive probe to check that the usage we want is 2927# actually supported "in the wild" to an acceptable degree. 2928# See automake bug#10828. 2929# To make any issue more visible, cause the running configure to be aborted 2930# by default if the 'rm' program in use doesn't match our expectations; the 2931# user can still override this though. 2932if rm -f && rm -fr && rm -rf; then : OK; else 2933 cat >&2 <<'END' 2934Oops! 2935 2936Your 'rm' program seems unable to run without file operands specified 2937on the command line, even when the '-f' option is present. This is contrary 2938to the behaviour of most rm programs out there, and not conforming with 2939the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2940 2941Please tell bug-automake@gnu.org about your system, including the value 2942of your $PATH and any error possibly output before this message. This 2943can help us improve future automake versions. 2944 2945END 2946 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2947 echo 'Configuration will proceed anyway, since you have set the' >&2 2948 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2949 echo >&2 2950 else 2951 cat >&2 <<'END' 2952Aborting the configuration process, to ensure you take notice of the issue. 2953 2954You can download and install GNU coreutils to get an 'rm' implementation 2955that behaves properly: <https://www.gnu.org/software/coreutils/>. 2956 2957If you want to complete the configuration process using your problematic 2958'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2959to "yes", and re-run configure. 2960 2961END 2962 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2963 fi 2964fi 2965 2966# Check whether --enable-silent-rules was given. 2967if test "${enable_silent_rules+set}" = set; then : 2968 enableval=$enable_silent_rules; 2969fi 2970 2971case $enable_silent_rules in # ((( 2972 yes) AM_DEFAULT_VERBOSITY=0;; 2973 no) AM_DEFAULT_VERBOSITY=1;; 2974 *) AM_DEFAULT_VERBOSITY=0;; 2975esac 2976am_make=${MAKE-make} 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2978$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2979if ${am_cv_make_support_nested_variables+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if $as_echo 'TRUE=$(BAR$(V)) 2983BAR0=false 2984BAR1=true 2985V=1 2986am__doit: 2987 @$(TRUE) 2988.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2989 am_cv_make_support_nested_variables=yes 2990else 2991 am_cv_make_support_nested_variables=no 2992fi 2993fi 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2995$as_echo "$am_cv_make_support_nested_variables" >&6; } 2996if test $am_cv_make_support_nested_variables = yes; then 2997 AM_V='$(V)' 2998 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2999else 3000 AM_V=$AM_DEFAULT_VERBOSITY 3001 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3002fi 3003AM_BACKSLASH='\' 3004 3005case `pwd` in 3006 *\ * | *\ *) 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3008$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3009esac 3010 3011 3012 3013macro_version='2.4.6' 3014macro_revision='2.4.6' 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028ltmain=$ac_aux_dir/ltmain.sh 3029 3030# Make sure we can run config.sub. 3031$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3032 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3033 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3035$as_echo_n "checking build system type... " >&6; } 3036if ${ac_cv_build+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 ac_build_alias=$build_alias 3040test "x$ac_build_alias" = x && 3041 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3042test "x$ac_build_alias" = x && 3043 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3044ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3045 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3046 3047fi 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3049$as_echo "$ac_cv_build" >&6; } 3050case $ac_cv_build in 3051*-*-*) ;; 3052*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3053esac 3054build=$ac_cv_build 3055ac_save_IFS=$IFS; IFS='-' 3056set x $ac_cv_build 3057shift 3058build_cpu=$1 3059build_vendor=$2 3060shift; shift 3061# Remember, the first character of IFS is used to create $*, 3062# except with old shells: 3063build_os=$* 3064IFS=$ac_save_IFS 3065case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3066 3067 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3069$as_echo_n "checking host system type... " >&6; } 3070if ${ac_cv_host+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 if test "x$host_alias" = x; then 3074 ac_cv_host=$ac_cv_build 3075else 3076 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3077 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3078fi 3079 3080fi 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3082$as_echo "$ac_cv_host" >&6; } 3083case $ac_cv_host in 3084*-*-*) ;; 3085*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3086esac 3087host=$ac_cv_host 3088ac_save_IFS=$IFS; IFS='-' 3089set x $ac_cv_host 3090shift 3091host_cpu=$1 3092host_vendor=$2 3093shift; shift 3094# Remember, the first character of IFS is used to create $*, 3095# except with old shells: 3096host_os=$* 3097IFS=$ac_save_IFS 3098case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3099 3100 3101# Backslashify metacharacters that are still active within 3102# double-quoted strings. 3103sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3104 3105# Same as above, but do not quote variable references. 3106double_quote_subst='s/\(["`\\]\)/\\\1/g' 3107 3108# Sed substitution to delay expansion of an escaped shell variable in a 3109# double_quote_subst'ed string. 3110delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3111 3112# Sed substitution to delay expansion of an escaped single quote. 3113delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3114 3115# Sed substitution to avoid accidental globbing in evaled expressions 3116no_glob_subst='s/\*/\\\*/g' 3117 3118ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3121 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3123$as_echo_n "checking how to print strings... " >&6; } 3124# Test print first, because it will be a builtin if present. 3125if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3126 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3127 ECHO='print -r --' 3128elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3129 ECHO='printf %s\n' 3130else 3131 # Use this function as a fallback that always works. 3132 func_fallback_echo () 3133 { 3134 eval 'cat <<_LTECHO_EOF 3135$1 3136_LTECHO_EOF' 3137 } 3138 ECHO='func_fallback_echo' 3139fi 3140 3141# func_echo_all arg... 3142# Invoke $ECHO with all args, space-separated. 3143func_echo_all () 3144{ 3145 $ECHO "" 3146} 3147 3148case $ECHO in 3149 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3150$as_echo "printf" >&6; } ;; 3151 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3152$as_echo "print -r" >&6; } ;; 3153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3154$as_echo "cat" >&6; } ;; 3155esac 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170DEPDIR="${am__leading_dot}deps" 3171 3172ac_config_commands="$ac_config_commands depfiles" 3173 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3175$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3176cat > confinc.mk << 'END' 3177am__doit: 3178 @echo this is the am__doit target >confinc.out 3179.PHONY: am__doit 3180END 3181am__include="#" 3182am__quote= 3183# BSD make does it like this. 3184echo '.include "confinc.mk" # ignored' > confmf.BSD 3185# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3186echo 'include confinc.mk # ignored' > confmf.GNU 3187_am_result=no 3188for s in GNU BSD; do 3189 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3190 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3191 ac_status=$? 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } 3194 case $?:`cat confinc.out 2>/dev/null` in #( 3195 '0:this is the am__doit target') : 3196 case $s in #( 3197 BSD) : 3198 am__include='.include' am__quote='"' ;; #( 3199 *) : 3200 am__include='include' am__quote='' ;; 3201esac ;; #( 3202 *) : 3203 ;; 3204esac 3205 if test "$am__include" != "#"; then 3206 _am_result="yes ($s style)" 3207 break 3208 fi 3209done 3210rm -f confinc.* confmf.* 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3212$as_echo "${_am_result}" >&6; } 3213 3214# Check whether --enable-dependency-tracking was given. 3215if test "${enable_dependency_tracking+set}" = set; then : 3216 enableval=$enable_dependency_tracking; 3217fi 3218 3219if test "x$enable_dependency_tracking" != xno; then 3220 am_depcomp="$ac_aux_dir/depcomp" 3221 AMDEPBACKSLASH='\' 3222 am__nodep='_no' 3223fi 3224 if test "x$enable_dependency_tracking" != xno; then 3225 AMDEP_TRUE= 3226 AMDEP_FALSE='#' 3227else 3228 AMDEP_TRUE='#' 3229 AMDEP_FALSE= 3230fi 3231 3232 3233ac_ext=c 3234ac_cpp='$CPP $CPPFLAGS' 3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3237ac_compiler_gnu=$ac_cv_c_compiler_gnu 3238if test -n "$ac_tool_prefix"; then 3239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3240set dummy ${ac_tool_prefix}gcc; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$CC"; then 3247 ac_cv_prog_CC="$CC" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3256 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264fi 3265fi 3266CC=$ac_cv_prog_CC 3267if test -n "$CC"; then 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3269$as_echo "$CC" >&6; } 3270else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272$as_echo "no" >&6; } 3273fi 3274 3275 3276fi 3277if test -z "$ac_cv_prog_CC"; then 3278 ac_ct_CC=$CC 3279 # Extract the first word of "gcc", so it can be a program name with args. 3280set dummy gcc; ac_word=$2 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3282$as_echo_n "checking for $ac_word... " >&6; } 3283if ${ac_cv_prog_ac_ct_CC+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if test -n "$ac_ct_CC"; then 3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3296 ac_cv_prog_ac_ct_CC="gcc" 3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300done 3301 done 3302IFS=$as_save_IFS 3303 3304fi 3305fi 3306ac_ct_CC=$ac_cv_prog_ac_ct_CC 3307if test -n "$ac_ct_CC"; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3309$as_echo "$ac_ct_CC" >&6; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312$as_echo "no" >&6; } 3313fi 3314 3315 if test "x$ac_ct_CC" = x; then 3316 CC="" 3317 else 3318 case $cross_compiling:$ac_tool_warned in 3319yes:) 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3322ac_tool_warned=yes ;; 3323esac 3324 CC=$ac_ct_CC 3325 fi 3326else 3327 CC="$ac_cv_prog_CC" 3328fi 3329 3330if test -z "$CC"; then 3331 if test -n "$ac_tool_prefix"; then 3332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3333set dummy ${ac_tool_prefix}cc; ac_word=$2 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3335$as_echo_n "checking for $ac_word... " >&6; } 3336if ${ac_cv_prog_CC+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 if test -n "$CC"; then 3340 ac_cv_prog_CC="$CC" # Let the user override the test. 3341else 3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3343for as_dir in $PATH 3344do 3345 IFS=$as_save_IFS 3346 test -z "$as_dir" && as_dir=. 3347 for ac_exec_ext in '' $ac_executable_extensions; do 3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3349 ac_cv_prog_CC="${ac_tool_prefix}cc" 3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3351 break 2 3352 fi 3353done 3354 done 3355IFS=$as_save_IFS 3356 3357fi 3358fi 3359CC=$ac_cv_prog_CC 3360if test -n "$CC"; then 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3362$as_echo "$CC" >&6; } 3363else 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3365$as_echo "no" >&6; } 3366fi 3367 3368 3369 fi 3370fi 3371if test -z "$CC"; then 3372 # Extract the first word of "cc", so it can be a program name with args. 3373set dummy cc; ac_word=$2 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375$as_echo_n "checking for $ac_word... " >&6; } 3376if ${ac_cv_prog_CC+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381else 3382 ac_prog_rejected=no 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 test -z "$as_dir" && as_dir=. 3388 for ac_exec_ext in '' $ac_executable_extensions; do 3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3391 ac_prog_rejected=yes 3392 continue 3393 fi 3394 ac_cv_prog_CC="cc" 3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398done 3399 done 3400IFS=$as_save_IFS 3401 3402if test $ac_prog_rejected = yes; then 3403 # We found a bogon in the path, so make sure we never use it. 3404 set dummy $ac_cv_prog_CC 3405 shift 3406 if test $# != 0; then 3407 # We chose a different compiler from the bogus one. 3408 # However, it has the same basename, so the bogon will be chosen 3409 # first if we set CC to just the basename; use the full file name. 3410 shift 3411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3412 fi 3413fi 3414fi 3415fi 3416CC=$ac_cv_prog_CC 3417if test -n "$CC"; then 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3419$as_echo "$CC" >&6; } 3420else 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3422$as_echo "no" >&6; } 3423fi 3424 3425 3426fi 3427if test -z "$CC"; then 3428 if test -n "$ac_tool_prefix"; then 3429 for ac_prog in cl.exe 3430 do 3431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3432set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434$as_echo_n "checking for $ac_word... " >&6; } 3435if ${ac_cv_prog_CC+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 if test -n "$CC"; then 3439 ac_cv_prog_CC="$CC" # Let the user override the test. 3440else 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi 3457fi 3458CC=$ac_cv_prog_CC 3459if test -n "$CC"; then 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3461$as_echo "$CC" >&6; } 3462else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465fi 3466 3467 3468 test -n "$CC" && break 3469 done 3470fi 3471if test -z "$CC"; then 3472 ac_ct_CC=$CC 3473 for ac_prog in cl.exe 3474do 3475 # Extract the first word of "$ac_prog", so it can be a program name with args. 3476set dummy $ac_prog; ac_word=$2 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478$as_echo_n "checking for $ac_word... " >&6; } 3479if ${ac_cv_prog_ac_ct_CC+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 if test -n "$ac_ct_CC"; then 3483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3484else 3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3486for as_dir in $PATH 3487do 3488 IFS=$as_save_IFS 3489 test -z "$as_dir" && as_dir=. 3490 for ac_exec_ext in '' $ac_executable_extensions; do 3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3492 ac_cv_prog_ac_ct_CC="$ac_prog" 3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3494 break 2 3495 fi 3496done 3497 done 3498IFS=$as_save_IFS 3499 3500fi 3501fi 3502ac_ct_CC=$ac_cv_prog_ac_ct_CC 3503if test -n "$ac_ct_CC"; then 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3505$as_echo "$ac_ct_CC" >&6; } 3506else 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3508$as_echo "no" >&6; } 3509fi 3510 3511 3512 test -n "$ac_ct_CC" && break 3513done 3514 3515 if test "x$ac_ct_CC" = x; then 3516 CC="" 3517 else 3518 case $cross_compiling:$ac_tool_warned in 3519yes:) 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3522ac_tool_warned=yes ;; 3523esac 3524 CC=$ac_ct_CC 3525 fi 3526fi 3527 3528fi 3529 3530 3531test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3533as_fn_error $? "no acceptable C compiler found in \$PATH 3534See \`config.log' for more details" "$LINENO" 5; } 3535 3536# Provide some information about the compiler. 3537$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3538set X $ac_compile 3539ac_compiler=$2 3540for ac_option in --version -v -V -qversion; do 3541 { { ac_try="$ac_compiler $ac_option >&5" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3549 ac_status=$? 3550 if test -s conftest.err; then 3551 sed '10a\ 3552... rest of stderr output deleted ... 3553 10q' conftest.err >conftest.er1 3554 cat conftest.er1 >&5 3555 fi 3556 rm -f conftest.er1 conftest.err 3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3558 test $ac_status = 0; } 3559done 3560 3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563 3564int 3565main () 3566{ 3567 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572ac_clean_files_save=$ac_clean_files 3573ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3574# Try to create an executable without -o first, disregard a.out. 3575# It will help us diagnose broken compilers, and finding out an intuition 3576# of exeext. 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3578$as_echo_n "checking whether the C compiler works... " >&6; } 3579ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3580 3581# The possible output files: 3582ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3583 3584ac_rmfiles= 3585for ac_file in $ac_files 3586do 3587 case $ac_file in 3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3589 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3590 esac 3591done 3592rm -f $ac_rmfiles 3593 3594if { { ac_try="$ac_link_default" 3595case "(($ac_try" in 3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3597 *) ac_try_echo=$ac_try;; 3598esac 3599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3600$as_echo "$ac_try_echo"; } >&5 3601 (eval "$ac_link_default") 2>&5 3602 ac_status=$? 3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3604 test $ac_status = 0; }; then : 3605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3607# in a Makefile. We should not override ac_cv_exeext if it was cached, 3608# so that the user can short-circuit this test for compilers unknown to 3609# Autoconf. 3610for ac_file in $ac_files '' 3611do 3612 test -f "$ac_file" || continue 3613 case $ac_file in 3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3615 ;; 3616 [ab].out ) 3617 # We found the default executable, but exeext='' is most 3618 # certainly right. 3619 break;; 3620 *.* ) 3621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3622 then :; else 3623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3624 fi 3625 # We set ac_cv_exeext here because the later test for it is not 3626 # safe: cross compilers may not add the suffix if given an `-o' 3627 # argument, so we may need to know it at that point already. 3628 # Even if this section looks crufty: it has the advantage of 3629 # actually working. 3630 break;; 3631 * ) 3632 break;; 3633 esac 3634done 3635test "$ac_cv_exeext" = no && ac_cv_exeext= 3636 3637else 3638 ac_file='' 3639fi 3640if test -z "$ac_file"; then : 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3642$as_echo "no" >&6; } 3643$as_echo "$as_me: failed program was:" >&5 3644sed 's/^/| /' conftest.$ac_ext >&5 3645 3646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3648as_fn_error 77 "C compiler cannot create executables 3649See \`config.log' for more details" "$LINENO" 5; } 3650else 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3652$as_echo "yes" >&6; } 3653fi 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3655$as_echo_n "checking for C compiler default output file name... " >&6; } 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3657$as_echo "$ac_file" >&6; } 3658ac_exeext=$ac_cv_exeext 3659 3660rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3661ac_clean_files=$ac_clean_files_save 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3663$as_echo_n "checking for suffix of executables... " >&6; } 3664if { { ac_try="$ac_link" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670$as_echo "$ac_try_echo"; } >&5 3671 (eval "$ac_link") 2>&5 3672 ac_status=$? 3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3674 test $ac_status = 0; }; then : 3675 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3677# work properly (i.e., refer to `conftest.exe'), while it won't with 3678# `rm'. 3679for ac_file in conftest.exe conftest conftest.*; do 3680 test -f "$ac_file" || continue 3681 case $ac_file in 3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3684 break;; 3685 * ) break;; 3686 esac 3687done 3688else 3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3691as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3692See \`config.log' for more details" "$LINENO" 5; } 3693fi 3694rm -f conftest conftest$ac_cv_exeext 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3696$as_echo "$ac_cv_exeext" >&6; } 3697 3698rm -f conftest.$ac_ext 3699EXEEXT=$ac_cv_exeext 3700ac_exeext=$EXEEXT 3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702/* end confdefs.h. */ 3703#include <stdio.h> 3704int 3705main () 3706{ 3707FILE *f = fopen ("conftest.out", "w"); 3708 return ferror (f) || fclose (f) != 0; 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714ac_clean_files="$ac_clean_files conftest.out" 3715# Check that the compiler produces executables we can run. If not, either 3716# the compiler is broken, or we cross compile. 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3718$as_echo_n "checking whether we are cross compiling... " >&6; } 3719if test "$cross_compiling" != yes; then 3720 { { ac_try="$ac_link" 3721case "(($ac_try" in 3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3723 *) ac_try_echo=$ac_try;; 3724esac 3725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3726$as_echo "$ac_try_echo"; } >&5 3727 (eval "$ac_link") 2>&5 3728 ac_status=$? 3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3730 test $ac_status = 0; } 3731 if { ac_try='./conftest$ac_cv_exeext' 3732 { { case "(($ac_try" in 3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3734 *) ac_try_echo=$ac_try;; 3735esac 3736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3737$as_echo "$ac_try_echo"; } >&5 3738 (eval "$ac_try") 2>&5 3739 ac_status=$? 3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3741 test $ac_status = 0; }; }; then 3742 cross_compiling=no 3743 else 3744 if test "$cross_compiling" = maybe; then 3745 cross_compiling=yes 3746 else 3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3749as_fn_error $? "cannot run C compiled programs. 3750If you meant to cross compile, use \`--host'. 3751See \`config.log' for more details" "$LINENO" 5; } 3752 fi 3753 fi 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3756$as_echo "$cross_compiling" >&6; } 3757 3758rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3759ac_clean_files=$ac_clean_files_save 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3761$as_echo_n "checking for suffix of object files... " >&6; } 3762if ${ac_cv_objext+:} false; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768int 3769main () 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776rm -f conftest.o conftest.obj 3777if { { ac_try="$ac_compile" 3778case "(($ac_try" in 3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3780 *) ac_try_echo=$ac_try;; 3781esac 3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3783$as_echo "$ac_try_echo"; } >&5 3784 (eval "$ac_compile") 2>&5 3785 ac_status=$? 3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3787 test $ac_status = 0; }; then : 3788 for ac_file in conftest.o conftest.obj conftest.*; do 3789 test -f "$ac_file" || continue; 3790 case $ac_file in 3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3793 break;; 3794 esac 3795done 3796else 3797 $as_echo "$as_me: failed program was:" >&5 3798sed 's/^/| /' conftest.$ac_ext >&5 3799 3800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3802as_fn_error $? "cannot compute suffix of object files: cannot compile 3803See \`config.log' for more details" "$LINENO" 5; } 3804fi 3805rm -f conftest.$ac_cv_objext conftest.$ac_ext 3806fi 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3808$as_echo "$ac_cv_objext" >&6; } 3809OBJEXT=$ac_cv_objext 3810ac_objext=$OBJEXT 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3812$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3813if ${ac_cv_c_compiler_gnu+:} false; then : 3814 $as_echo_n "(cached) " >&6 3815else 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818 3819int 3820main () 3821{ 3822#ifndef __GNUC__ 3823 choke me 3824#endif 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_compiler_gnu=yes 3832else 3833 ac_compiler_gnu=no 3834fi 3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3836ac_cv_c_compiler_gnu=$ac_compiler_gnu 3837 3838fi 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3840$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3841if test $ac_compiler_gnu = yes; then 3842 GCC=yes 3843else 3844 GCC= 3845fi 3846ac_test_CFLAGS=${CFLAGS+set} 3847ac_save_CFLAGS=$CFLAGS 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3849$as_echo_n "checking whether $CC accepts -g... " >&6; } 3850if ${ac_cv_prog_cc_g+:} false; then : 3851 $as_echo_n "(cached) " >&6 3852else 3853 ac_save_c_werror_flag=$ac_c_werror_flag 3854 ac_c_werror_flag=yes 3855 ac_cv_prog_cc_g=no 3856 CFLAGS="-g" 3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859 3860int 3861main () 3862{ 3863 3864 ; 3865 return 0; 3866} 3867_ACEOF 3868if ac_fn_c_try_compile "$LINENO"; then : 3869 ac_cv_prog_cc_g=yes 3870else 3871 CFLAGS="" 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874 3875int 3876main () 3877{ 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883if ac_fn_c_try_compile "$LINENO"; then : 3884 3885else 3886 ac_c_werror_flag=$ac_save_c_werror_flag 3887 CFLAGS="-g" 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889/* end confdefs.h. */ 3890 3891int 3892main () 3893{ 3894 3895 ; 3896 return 0; 3897} 3898_ACEOF 3899if ac_fn_c_try_compile "$LINENO"; then : 3900 ac_cv_prog_cc_g=yes 3901fi 3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903fi 3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3905fi 3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3907 ac_c_werror_flag=$ac_save_c_werror_flag 3908fi 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3910$as_echo "$ac_cv_prog_cc_g" >&6; } 3911if test "$ac_test_CFLAGS" = set; then 3912 CFLAGS=$ac_save_CFLAGS 3913elif test $ac_cv_prog_cc_g = yes; then 3914 if test "$GCC" = yes; then 3915 CFLAGS="-g -O2" 3916 else 3917 CFLAGS="-g" 3918 fi 3919else 3920 if test "$GCC" = yes; then 3921 CFLAGS="-O2" 3922 else 3923 CFLAGS= 3924 fi 3925fi 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3927$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3928if ${ac_cv_prog_cc_c89+:} false; then : 3929 $as_echo_n "(cached) " >&6 3930else 3931 ac_cv_prog_cc_c89=no 3932ac_save_CC=$CC 3933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934/* end confdefs.h. */ 3935#include <stdarg.h> 3936#include <stdio.h> 3937struct stat; 3938/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3939struct buf { int x; }; 3940FILE * (*rcsopen) (struct buf *, struct stat *, int); 3941static char *e (p, i) 3942 char **p; 3943 int i; 3944{ 3945 return p[i]; 3946} 3947static char *f (char * (*g) (char **, int), char **p, ...) 3948{ 3949 char *s; 3950 va_list v; 3951 va_start (v,p); 3952 s = g (p, va_arg (v,int)); 3953 va_end (v); 3954 return s; 3955} 3956 3957/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3958 function prototypes and stuff, but not '\xHH' hex character constants. 3959 These don't provoke an error unfortunately, instead are silently treated 3960 as 'x'. The following induces an error, until -std is added to get 3961 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3962 array size at least. It's necessary to write '\x00'==0 to get something 3963 that's true only with -std. */ 3964int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3965 3966/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3967 inside strings and character constants. */ 3968#define FOO(x) 'x' 3969int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3970 3971int test (int i, double x); 3972struct s1 {int (*f) (int a);}; 3973struct s2 {int (*f) (double a);}; 3974int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3975int argc; 3976char **argv; 3977int 3978main () 3979{ 3980return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3986 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3987do 3988 CC="$ac_save_CC $ac_arg" 3989 if ac_fn_c_try_compile "$LINENO"; then : 3990 ac_cv_prog_cc_c89=$ac_arg 3991fi 3992rm -f core conftest.err conftest.$ac_objext 3993 test "x$ac_cv_prog_cc_c89" != "xno" && break 3994done 3995rm -f conftest.$ac_ext 3996CC=$ac_save_CC 3997 3998fi 3999# AC_CACHE_VAL 4000case "x$ac_cv_prog_cc_c89" in 4001 x) 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4003$as_echo "none needed" >&6; } ;; 4004 xno) 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4006$as_echo "unsupported" >&6; } ;; 4007 *) 4008 CC="$CC $ac_cv_prog_cc_c89" 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4010$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4011esac 4012if test "x$ac_cv_prog_cc_c89" != xno; then : 4013 4014fi 4015 4016ac_ext=c 4017ac_cpp='$CPP $CPPFLAGS' 4018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4020ac_compiler_gnu=$ac_cv_c_compiler_gnu 4021 4022ac_ext=c 4023ac_cpp='$CPP $CPPFLAGS' 4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4026ac_compiler_gnu=$ac_cv_c_compiler_gnu 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4028$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4029if ${am_cv_prog_cc_c_o+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4033/* end confdefs.h. */ 4034 4035int 4036main () 4037{ 4038 4039 ; 4040 return 0; 4041} 4042_ACEOF 4043 # Make sure it works both with $CC and with simple cc. 4044 # Following AC_PROG_CC_C_O, we do the test twice because some 4045 # compilers refuse to overwrite an existing .o file with -o, 4046 # though they will create one. 4047 am_cv_prog_cc_c_o=yes 4048 for am_i in 1 2; do 4049 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4050 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4051 ac_status=$? 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); } \ 4054 && test -f conftest2.$ac_objext; then 4055 : OK 4056 else 4057 am_cv_prog_cc_c_o=no 4058 break 4059 fi 4060 done 4061 rm -f core conftest* 4062 unset am_i 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4065$as_echo "$am_cv_prog_cc_c_o" >&6; } 4066if test "$am_cv_prog_cc_c_o" != yes; then 4067 # Losing compiler, so override with the script. 4068 # FIXME: It is wrong to rewrite CC. 4069 # But if we don't then we get into trouble of one sort or another. 4070 # A longer-term fix would be to have automake use am__CC in this case, 4071 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4072 CC="$am_aux_dir/compile $CC" 4073fi 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 4080 4081depcc="$CC" am_compiler_list= 4082 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4084$as_echo_n "checking dependency style of $depcc... " >&6; } 4085if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4089 # We make a subdir and do the tests there. Otherwise we can end up 4090 # making bogus files that we don't know about and never remove. For 4091 # instance it was reported that on HP-UX the gcc test will end up 4092 # making a dummy file named 'D' -- because '-MD' means "put the output 4093 # in D". 4094 rm -rf conftest.dir 4095 mkdir conftest.dir 4096 # Copy depcomp to subdir because otherwise we won't find it if we're 4097 # using a relative directory. 4098 cp "$am_depcomp" conftest.dir 4099 cd conftest.dir 4100 # We will build objects and dependencies in a subdirectory because 4101 # it helps to detect inapplicable dependency modes. For instance 4102 # both Tru64's cc and ICC support -MD to output dependencies as a 4103 # side effect of compilation, but ICC will put the dependencies in 4104 # the current directory while Tru64 will put them in the object 4105 # directory. 4106 mkdir sub 4107 4108 am_cv_CC_dependencies_compiler_type=none 4109 if test "$am_compiler_list" = ""; then 4110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4111 fi 4112 am__universal=false 4113 case " $depcc " in #( 4114 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4115 esac 4116 4117 for depmode in $am_compiler_list; do 4118 # Setup a source with many dependencies, because some compilers 4119 # like to wrap large dependency lists on column 80 (with \), and 4120 # we should not choose a depcomp mode which is confused by this. 4121 # 4122 # We need to recreate these files for each test, as the compiler may 4123 # overwrite some of them when testing with obscure command lines. 4124 # This happens at least with the AIX C compiler. 4125 : > sub/conftest.c 4126 for i in 1 2 3 4 5 6; do 4127 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4128 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4129 # Solaris 10 /bin/sh. 4130 echo '/* dummy */' > sub/conftst$i.h 4131 done 4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4133 4134 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4135 # mode. It turns out that the SunPro C++ compiler does not properly 4136 # handle '-M -o', and we need to detect this. Also, some Intel 4137 # versions had trouble with output in subdirs. 4138 am__obj=sub/conftest.${OBJEXT-o} 4139 am__minus_obj="-o $am__obj" 4140 case $depmode in 4141 gcc) 4142 # This depmode causes a compiler race in universal mode. 4143 test "$am__universal" = false || continue 4144 ;; 4145 nosideeffect) 4146 # After this tag, mechanisms are not by side-effect, so they'll 4147 # only be used when explicitly requested. 4148 if test "x$enable_dependency_tracking" = xyes; then 4149 continue 4150 else 4151 break 4152 fi 4153 ;; 4154 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4155 # This compiler won't grok '-c -o', but also, the minuso test has 4156 # not run yet. These depmodes are late enough in the game, and 4157 # so weak that their functioning should not be impacted. 4158 am__obj=conftest.${OBJEXT-o} 4159 am__minus_obj= 4160 ;; 4161 none) break ;; 4162 esac 4163 if depmode=$depmode \ 4164 source=sub/conftest.c object=$am__obj \ 4165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4167 >/dev/null 2>conftest.err && 4168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4172 # icc doesn't choke on unknown options, it will just issue warnings 4173 # or remarks (even with -Werror). So we grep stderr for any message 4174 # that says an option was ignored or not supported. 4175 # When given -MP, icc 7.0 and 7.1 complain thusly: 4176 # icc: Command line warning: ignoring option '-M'; no argument required 4177 # The diagnosis changed in icc 8.0: 4178 # icc: Command line remark: option '-MP' not supported 4179 if (grep 'ignoring option' conftest.err || 4180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4181 am_cv_CC_dependencies_compiler_type=$depmode 4182 break 4183 fi 4184 fi 4185 done 4186 4187 cd .. 4188 rm -rf conftest.dir 4189else 4190 am_cv_CC_dependencies_compiler_type=none 4191fi 4192 4193fi 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4195$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4196CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4197 4198 if 4199 test "x$enable_dependency_tracking" != xno \ 4200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4201 am__fastdepCC_TRUE= 4202 am__fastdepCC_FALSE='#' 4203else 4204 am__fastdepCC_TRUE='#' 4205 am__fastdepCC_FALSE= 4206fi 4207 4208 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4210$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4211if ${ac_cv_path_SED+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4215 for ac_i in 1 2 3 4 5 6 7; do 4216 ac_script="$ac_script$as_nl$ac_script" 4217 done 4218 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4219 { ac_script=; unset ac_script;} 4220 if test -z "$SED"; then 4221 ac_path_SED_found=false 4222 # Loop through the user's path and test for each of PROGNAME-LIST 4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_prog in sed gsed; do 4229 for ac_exec_ext in '' $ac_executable_extensions; do 4230 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4231 as_fn_executable_p "$ac_path_SED" || continue 4232# Check for GNU ac_path_SED and select it if it is found. 4233 # Check for GNU $ac_path_SED 4234case `"$ac_path_SED" --version 2>&1` in 4235*GNU*) 4236 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4237*) 4238 ac_count=0 4239 $as_echo_n 0123456789 >"conftest.in" 4240 while : 4241 do 4242 cat "conftest.in" "conftest.in" >"conftest.tmp" 4243 mv "conftest.tmp" "conftest.in" 4244 cp "conftest.in" "conftest.nl" 4245 $as_echo '' >> "conftest.nl" 4246 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4248 as_fn_arith $ac_count + 1 && ac_count=$as_val 4249 if test $ac_count -gt ${ac_path_SED_max-0}; then 4250 # Best one so far, save it but keep looking for a better one 4251 ac_cv_path_SED="$ac_path_SED" 4252 ac_path_SED_max=$ac_count 4253 fi 4254 # 10*(2^10) chars as input seems more than enough 4255 test $ac_count -gt 10 && break 4256 done 4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4258esac 4259 4260 $ac_path_SED_found && break 3 4261 done 4262 done 4263 done 4264IFS=$as_save_IFS 4265 if test -z "$ac_cv_path_SED"; then 4266 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4267 fi 4268else 4269 ac_cv_path_SED=$SED 4270fi 4271 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4274$as_echo "$ac_cv_path_SED" >&6; } 4275 SED="$ac_cv_path_SED" 4276 rm -f conftest.sed 4277 4278test -z "$SED" && SED=sed 4279Xsed="$SED -e 1s/^X//" 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4292$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4293if ${ac_cv_path_GREP+:} false; then : 4294 $as_echo_n "(cached) " >&6 4295else 4296 if test -z "$GREP"; then 4297 ac_path_GREP_found=false 4298 # Loop through the user's path and test for each of PROGNAME-LIST 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4301do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_prog in grep ggrep; do 4305 for ac_exec_ext in '' $ac_executable_extensions; do 4306 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4307 as_fn_executable_p "$ac_path_GREP" || continue 4308# Check for GNU ac_path_GREP and select it if it is found. 4309 # Check for GNU $ac_path_GREP 4310case `"$ac_path_GREP" --version 2>&1` in 4311*GNU*) 4312 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4313*) 4314 ac_count=0 4315 $as_echo_n 0123456789 >"conftest.in" 4316 while : 4317 do 4318 cat "conftest.in" "conftest.in" >"conftest.tmp" 4319 mv "conftest.tmp" "conftest.in" 4320 cp "conftest.in" "conftest.nl" 4321 $as_echo 'GREP' >> "conftest.nl" 4322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4324 as_fn_arith $ac_count + 1 && ac_count=$as_val 4325 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4326 # Best one so far, save it but keep looking for a better one 4327 ac_cv_path_GREP="$ac_path_GREP" 4328 ac_path_GREP_max=$ac_count 4329 fi 4330 # 10*(2^10) chars as input seems more than enough 4331 test $ac_count -gt 10 && break 4332 done 4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4334esac 4335 4336 $ac_path_GREP_found && break 3 4337 done 4338 done 4339 done 4340IFS=$as_save_IFS 4341 if test -z "$ac_cv_path_GREP"; then 4342 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4343 fi 4344else 4345 ac_cv_path_GREP=$GREP 4346fi 4347 4348fi 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4350$as_echo "$ac_cv_path_GREP" >&6; } 4351 GREP="$ac_cv_path_GREP" 4352 4353 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4355$as_echo_n "checking for egrep... " >&6; } 4356if ${ac_cv_path_EGREP+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4360 then ac_cv_path_EGREP="$GREP -E" 4361 else 4362 if test -z "$EGREP"; then 4363 ac_path_EGREP_found=false 4364 # Loop through the user's path and test for each of PROGNAME-LIST 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_prog in egrep; do 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4373 as_fn_executable_p "$ac_path_EGREP" || continue 4374# Check for GNU ac_path_EGREP and select it if it is found. 4375 # Check for GNU $ac_path_EGREP 4376case `"$ac_path_EGREP" --version 2>&1` in 4377*GNU*) 4378 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4379*) 4380 ac_count=0 4381 $as_echo_n 0123456789 >"conftest.in" 4382 while : 4383 do 4384 cat "conftest.in" "conftest.in" >"conftest.tmp" 4385 mv "conftest.tmp" "conftest.in" 4386 cp "conftest.in" "conftest.nl" 4387 $as_echo 'EGREP' >> "conftest.nl" 4388 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4390 as_fn_arith $ac_count + 1 && ac_count=$as_val 4391 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4392 # Best one so far, save it but keep looking for a better one 4393 ac_cv_path_EGREP="$ac_path_EGREP" 4394 ac_path_EGREP_max=$ac_count 4395 fi 4396 # 10*(2^10) chars as input seems more than enough 4397 test $ac_count -gt 10 && break 4398 done 4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4400esac 4401 4402 $ac_path_EGREP_found && break 3 4403 done 4404 done 4405 done 4406IFS=$as_save_IFS 4407 if test -z "$ac_cv_path_EGREP"; then 4408 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4409 fi 4410else 4411 ac_cv_path_EGREP=$EGREP 4412fi 4413 4414 fi 4415fi 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4417$as_echo "$ac_cv_path_EGREP" >&6; } 4418 EGREP="$ac_cv_path_EGREP" 4419 4420 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4422$as_echo_n "checking for fgrep... " >&6; } 4423if ${ac_cv_path_FGREP+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425else 4426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4427 then ac_cv_path_FGREP="$GREP -F" 4428 else 4429 if test -z "$FGREP"; then 4430 ac_path_FGREP_found=false 4431 # Loop through the user's path and test for each of PROGNAME-LIST 4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_prog in fgrep; do 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4440 as_fn_executable_p "$ac_path_FGREP" || continue 4441# Check for GNU ac_path_FGREP and select it if it is found. 4442 # Check for GNU $ac_path_FGREP 4443case `"$ac_path_FGREP" --version 2>&1` in 4444*GNU*) 4445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4446*) 4447 ac_count=0 4448 $as_echo_n 0123456789 >"conftest.in" 4449 while : 4450 do 4451 cat "conftest.in" "conftest.in" >"conftest.tmp" 4452 mv "conftest.tmp" "conftest.in" 4453 cp "conftest.in" "conftest.nl" 4454 $as_echo 'FGREP' >> "conftest.nl" 4455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4457 as_fn_arith $ac_count + 1 && ac_count=$as_val 4458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4459 # Best one so far, save it but keep looking for a better one 4460 ac_cv_path_FGREP="$ac_path_FGREP" 4461 ac_path_FGREP_max=$ac_count 4462 fi 4463 # 10*(2^10) chars as input seems more than enough 4464 test $ac_count -gt 10 && break 4465 done 4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4467esac 4468 4469 $ac_path_FGREP_found && break 3 4470 done 4471 done 4472 done 4473IFS=$as_save_IFS 4474 if test -z "$ac_cv_path_FGREP"; then 4475 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4476 fi 4477else 4478 ac_cv_path_FGREP=$FGREP 4479fi 4480 4481 fi 4482fi 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4484$as_echo "$ac_cv_path_FGREP" >&6; } 4485 FGREP="$ac_cv_path_FGREP" 4486 4487 4488test -z "$GREP" && GREP=grep 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508# Check whether --with-gnu-ld was given. 4509if test "${with_gnu_ld+set}" = set; then : 4510 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4511else 4512 with_gnu_ld=no 4513fi 4514 4515ac_prog=ld 4516if test yes = "$GCC"; then 4517 # Check if gcc -print-prog-name=ld gives a path. 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4519$as_echo_n "checking for ld used by $CC... " >&6; } 4520 case $host in 4521 *-*-mingw*) 4522 # gcc leaves a trailing carriage return, which upsets mingw 4523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4524 *) 4525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4526 esac 4527 case $ac_prog in 4528 # Accept absolute paths. 4529 [\\/]* | ?:[\\/]*) 4530 re_direlt='/[^/][^/]*/\.\./' 4531 # Canonicalize the pathname of ld 4532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4535 done 4536 test -z "$LD" && LD=$ac_prog 4537 ;; 4538 "") 4539 # If it fails, then pretend we aren't using GCC. 4540 ac_prog=ld 4541 ;; 4542 *) 4543 # If it is relative, then search for the first ld in PATH. 4544 with_gnu_ld=unknown 4545 ;; 4546 esac 4547elif test yes = "$with_gnu_ld"; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4549$as_echo_n "checking for GNU ld... " >&6; } 4550else 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4552$as_echo_n "checking for non-GNU ld... " >&6; } 4553fi 4554if ${lt_cv_path_LD+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 if test -z "$LD"; then 4558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4559 for ac_dir in $PATH; do 4560 IFS=$lt_save_ifs 4561 test -z "$ac_dir" && ac_dir=. 4562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4563 lt_cv_path_LD=$ac_dir/$ac_prog 4564 # Check to see if the program is GNU ld. I'd rather use --version, 4565 # but apparently some variants of GNU ld only accept -v. 4566 # Break only if it was the GNU/non-GNU ld that we prefer. 4567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4568 *GNU* | *'with BFD'*) 4569 test no != "$with_gnu_ld" && break 4570 ;; 4571 *) 4572 test yes != "$with_gnu_ld" && break 4573 ;; 4574 esac 4575 fi 4576 done 4577 IFS=$lt_save_ifs 4578else 4579 lt_cv_path_LD=$LD # Let the user override the test with a path. 4580fi 4581fi 4582 4583LD=$lt_cv_path_LD 4584if test -n "$LD"; then 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4586$as_echo "$LD" >&6; } 4587else 4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4589$as_echo "no" >&6; } 4590fi 4591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4594if ${lt_cv_prog_gnu_ld+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4598case `$LD -v 2>&1 </dev/null` in 4599*GNU* | *'with BFD'*) 4600 lt_cv_prog_gnu_ld=yes 4601 ;; 4602*) 4603 lt_cv_prog_gnu_ld=no 4604 ;; 4605esac 4606fi 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4608$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4609with_gnu_ld=$lt_cv_prog_gnu_ld 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4620$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4621if ${lt_cv_path_NM+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 if test -n "$NM"; then 4625 # Let the user override the test. 4626 lt_cv_path_NM=$NM 4627else 4628 lt_nm_to_check=${ac_tool_prefix}nm 4629 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4630 lt_nm_to_check="$lt_nm_to_check nm" 4631 fi 4632 for lt_tmp_nm in $lt_nm_to_check; do 4633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4634 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4635 IFS=$lt_save_ifs 4636 test -z "$ac_dir" && ac_dir=. 4637 tmp_nm=$ac_dir/$lt_tmp_nm 4638 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4639 # Check to see if the nm accepts a BSD-compat flag. 4640 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4641 # nm: unknown option "B" ignored 4642 # Tru64's nm complains that /dev/null is an invalid object file 4643 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4644 case $build_os in 4645 mingw*) lt_bad_file=conftest.nm/nofile ;; 4646 *) lt_bad_file=/dev/null ;; 4647 esac 4648 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4649 *$lt_bad_file* | *'Invalid file or object type'*) 4650 lt_cv_path_NM="$tmp_nm -B" 4651 break 2 4652 ;; 4653 *) 4654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4655 */dev/null*) 4656 lt_cv_path_NM="$tmp_nm -p" 4657 break 2 4658 ;; 4659 *) 4660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4661 continue # so that we can try to find one that supports BSD flags 4662 ;; 4663 esac 4664 ;; 4665 esac 4666 fi 4667 done 4668 IFS=$lt_save_ifs 4669 done 4670 : ${lt_cv_path_NM=no} 4671fi 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4674$as_echo "$lt_cv_path_NM" >&6; } 4675if test no != "$lt_cv_path_NM"; then 4676 NM=$lt_cv_path_NM 4677else 4678 # Didn't find any BSD compatible name lister, look for dumpbin. 4679 if test -n "$DUMPBIN"; then : 4680 # Let the user override the test. 4681 else 4682 if test -n "$ac_tool_prefix"; then 4683 for ac_prog in dumpbin "link -dump" 4684 do 4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4686set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4688$as_echo_n "checking for $ac_word... " >&6; } 4689if ${ac_cv_prog_DUMPBIN+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 if test -n "$DUMPBIN"; then 4693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4694else 4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4696for as_dir in $PATH 4697do 4698 IFS=$as_save_IFS 4699 test -z "$as_dir" && as_dir=. 4700 for ac_exec_ext in '' $ac_executable_extensions; do 4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4704 break 2 4705 fi 4706done 4707 done 4708IFS=$as_save_IFS 4709 4710fi 4711fi 4712DUMPBIN=$ac_cv_prog_DUMPBIN 4713if test -n "$DUMPBIN"; then 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4715$as_echo "$DUMPBIN" >&6; } 4716else 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4718$as_echo "no" >&6; } 4719fi 4720 4721 4722 test -n "$DUMPBIN" && break 4723 done 4724fi 4725if test -z "$DUMPBIN"; then 4726 ac_ct_DUMPBIN=$DUMPBIN 4727 for ac_prog in dumpbin "link -dump" 4728do 4729 # Extract the first word of "$ac_prog", so it can be a program name with args. 4730set dummy $ac_prog; ac_word=$2 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4732$as_echo_n "checking for $ac_word... " >&6; } 4733if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4734 $as_echo_n "(cached) " >&6 4735else 4736 if test -n "$ac_ct_DUMPBIN"; then 4737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4738else 4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4740for as_dir in $PATH 4741do 4742 IFS=$as_save_IFS 4743 test -z "$as_dir" && as_dir=. 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4748 break 2 4749 fi 4750done 4751 done 4752IFS=$as_save_IFS 4753 4754fi 4755fi 4756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4757if test -n "$ac_ct_DUMPBIN"; then 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4759$as_echo "$ac_ct_DUMPBIN" >&6; } 4760else 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4762$as_echo "no" >&6; } 4763fi 4764 4765 4766 test -n "$ac_ct_DUMPBIN" && break 4767done 4768 4769 if test "x$ac_ct_DUMPBIN" = x; then 4770 DUMPBIN=":" 4771 else 4772 case $cross_compiling:$ac_tool_warned in 4773yes:) 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4776ac_tool_warned=yes ;; 4777esac 4778 DUMPBIN=$ac_ct_DUMPBIN 4779 fi 4780fi 4781 4782 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4783 *COFF*) 4784 DUMPBIN="$DUMPBIN -symbols -headers" 4785 ;; 4786 *) 4787 DUMPBIN=: 4788 ;; 4789 esac 4790 fi 4791 4792 if test : != "$DUMPBIN"; then 4793 NM=$DUMPBIN 4794 fi 4795fi 4796test -z "$NM" && NM=nm 4797 4798 4799 4800 4801 4802 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4804$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4805if ${lt_cv_nm_interface+:} false; then : 4806 $as_echo_n "(cached) " >&6 4807else 4808 lt_cv_nm_interface="BSD nm" 4809 echo "int some_variable = 0;" > conftest.$ac_ext 4810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4811 (eval "$ac_compile" 2>conftest.err) 4812 cat conftest.err >&5 4813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4815 cat conftest.err >&5 4816 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4817 cat conftest.out >&5 4818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4819 lt_cv_nm_interface="MS dumpbin" 4820 fi 4821 rm -f conftest* 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4824$as_echo "$lt_cv_nm_interface" >&6; } 4825 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4827$as_echo_n "checking whether ln -s works... " >&6; } 4828LN_S=$as_ln_s 4829if test "$LN_S" = "ln -s"; then 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4831$as_echo "yes" >&6; } 4832else 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4834$as_echo "no, using $LN_S" >&6; } 4835fi 4836 4837# find the maximum length of command line arguments 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4839$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4840if ${lt_cv_sys_max_cmd_len+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 i=0 4844 teststring=ABCD 4845 4846 case $build_os in 4847 msdosdjgpp*) 4848 # On DJGPP, this test can blow up pretty badly due to problems in libc 4849 # (any single argument exceeding 2000 bytes causes a buffer overrun 4850 # during glob expansion). Even if it were fixed, the result of this 4851 # check would be larger than it should be. 4852 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4853 ;; 4854 4855 gnu*) 4856 # Under GNU Hurd, this test is not required because there is 4857 # no limit to the length of command line arguments. 4858 # Libtool will interpret -1 as no limit whatsoever 4859 lt_cv_sys_max_cmd_len=-1; 4860 ;; 4861 4862 cygwin* | mingw* | cegcc*) 4863 # On Win9x/ME, this test blows up -- it succeeds, but takes 4864 # about 5 minutes as the teststring grows exponentially. 4865 # Worse, since 9x/ME are not pre-emptively multitasking, 4866 # you end up with a "frozen" computer, even though with patience 4867 # the test eventually succeeds (with a max line length of 256k). 4868 # Instead, let's just punt: use the minimum linelength reported by 4869 # all of the supported platforms: 8192 (on NT/2K/XP). 4870 lt_cv_sys_max_cmd_len=8192; 4871 ;; 4872 4873 mint*) 4874 # On MiNT this can take a long time and run out of memory. 4875 lt_cv_sys_max_cmd_len=8192; 4876 ;; 4877 4878 amigaos*) 4879 # On AmigaOS with pdksh, this test takes hours, literally. 4880 # So we just punt and use a minimum line length of 8192. 4881 lt_cv_sys_max_cmd_len=8192; 4882 ;; 4883 4884 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4885 # This has been around since 386BSD, at least. Likely further. 4886 if test -x /sbin/sysctl; then 4887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4888 elif test -x /usr/sbin/sysctl; then 4889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4890 else 4891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4892 fi 4893 # And add a safety zone 4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4896 ;; 4897 4898 interix*) 4899 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4900 lt_cv_sys_max_cmd_len=196608 4901 ;; 4902 4903 os2*) 4904 # The test takes a long time on OS/2. 4905 lt_cv_sys_max_cmd_len=8192 4906 ;; 4907 4908 osf*) 4909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4911 # nice to cause kernel panics so lets avoid the loop below. 4912 # First set a reasonable default. 4913 lt_cv_sys_max_cmd_len=16384 4914 # 4915 if test -x /sbin/sysconfig; then 4916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4917 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4918 esac 4919 fi 4920 ;; 4921 sco3.2v5*) 4922 lt_cv_sys_max_cmd_len=102400 4923 ;; 4924 sysv5* | sco5v6* | sysv4.2uw2*) 4925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4926 if test -n "$kargmax"; then 4927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4928 else 4929 lt_cv_sys_max_cmd_len=32768 4930 fi 4931 ;; 4932 *) 4933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4934 if test -n "$lt_cv_sys_max_cmd_len" && \ 4935 test undefined != "$lt_cv_sys_max_cmd_len"; then 4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4938 else 4939 # Make teststring a little bigger before we do anything with it. 4940 # a 1K string should be a reasonable start. 4941 for i in 1 2 3 4 5 6 7 8; do 4942 teststring=$teststring$teststring 4943 done 4944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4945 # If test is not a shell built-in, we'll probably end up computing a 4946 # maximum length that is only half of the actual maximum length, but 4947 # we can't tell. 4948 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4949 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4950 test 17 != "$i" # 1/2 MB should be enough 4951 do 4952 i=`expr $i + 1` 4953 teststring=$teststring$teststring 4954 done 4955 # Only check the string length outside the loop. 4956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4957 teststring= 4958 # Add a significant safety factor because C++ compilers can tack on 4959 # massive amounts of additional arguments before passing them to the 4960 # linker. It appears as though 1/2 is a usable value. 4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4962 fi 4963 ;; 4964 esac 4965 4966fi 4967 4968if test -n "$lt_cv_sys_max_cmd_len"; then 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4970$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4971else 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4973$as_echo "none" >&6; } 4974fi 4975max_cmd_len=$lt_cv_sys_max_cmd_len 4976 4977 4978 4979 4980 4981 4982: ${CP="cp -f"} 4983: ${MV="mv -f"} 4984: ${RM="rm -f"} 4985 4986if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4987 lt_unset=unset 4988else 4989 lt_unset=false 4990fi 4991 4992 4993 4994 4995 4996# test EBCDIC or ASCII 4997case `echo X|tr X '\101'` in 4998 A) # ASCII based system 4999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5000 lt_SP2NL='tr \040 \012' 5001 lt_NL2SP='tr \015\012 \040\040' 5002 ;; 5003 *) # EBCDIC based system 5004 lt_SP2NL='tr \100 \n' 5005 lt_NL2SP='tr \r\n \100\100' 5006 ;; 5007esac 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5018$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5019if ${lt_cv_to_host_file_cmd+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 case $host in 5023 *-*-mingw* ) 5024 case $build in 5025 *-*-mingw* ) # actually msys 5026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5027 ;; 5028 *-*-cygwin* ) 5029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5030 ;; 5031 * ) # otherwise, assume *nix 5032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5033 ;; 5034 esac 5035 ;; 5036 *-*-cygwin* ) 5037 case $build in 5038 *-*-mingw* ) # actually msys 5039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5040 ;; 5041 *-*-cygwin* ) 5042 lt_cv_to_host_file_cmd=func_convert_file_noop 5043 ;; 5044 * ) # otherwise, assume *nix 5045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5046 ;; 5047 esac 5048 ;; 5049 * ) # unhandled hosts (and "normal" native builds) 5050 lt_cv_to_host_file_cmd=func_convert_file_noop 5051 ;; 5052esac 5053 5054fi 5055 5056to_host_file_cmd=$lt_cv_to_host_file_cmd 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5058$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5059 5060 5061 5062 5063 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5065$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5066if ${lt_cv_to_tool_file_cmd+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 #assume ordinary cross tools, or native build. 5070lt_cv_to_tool_file_cmd=func_convert_file_noop 5071case $host in 5072 *-*-mingw* ) 5073 case $build in 5074 *-*-mingw* ) # actually msys 5075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5076 ;; 5077 esac 5078 ;; 5079esac 5080 5081fi 5082 5083to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5085$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5086 5087 5088 5089 5090 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5092$as_echo_n "checking for $LD option to reload object files... " >&6; } 5093if ${lt_cv_ld_reload_flag+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 lt_cv_ld_reload_flag='-r' 5097fi 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5099$as_echo "$lt_cv_ld_reload_flag" >&6; } 5100reload_flag=$lt_cv_ld_reload_flag 5101case $reload_flag in 5102"" | " "*) ;; 5103*) reload_flag=" $reload_flag" ;; 5104esac 5105reload_cmds='$LD$reload_flag -o $output$reload_objs' 5106case $host_os in 5107 cygwin* | mingw* | pw32* | cegcc*) 5108 if test yes != "$GCC"; then 5109 reload_cmds=false 5110 fi 5111 ;; 5112 darwin*) 5113 if test yes = "$GCC"; then 5114 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5115 else 5116 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5117 fi 5118 ;; 5119esac 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129if test -n "$ac_tool_prefix"; then 5130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5131set dummy ${ac_tool_prefix}objdump; ac_word=$2 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5133$as_echo_n "checking for $ac_word... " >&6; } 5134if ${ac_cv_prog_OBJDUMP+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 if test -n "$OBJDUMP"; then 5138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5139else 5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5141for as_dir in $PATH 5142do 5143 IFS=$as_save_IFS 5144 test -z "$as_dir" && as_dir=. 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5149 break 2 5150 fi 5151done 5152 done 5153IFS=$as_save_IFS 5154 5155fi 5156fi 5157OBJDUMP=$ac_cv_prog_OBJDUMP 5158if test -n "$OBJDUMP"; then 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5160$as_echo "$OBJDUMP" >&6; } 5161else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164fi 5165 5166 5167fi 5168if test -z "$ac_cv_prog_OBJDUMP"; then 5169 ac_ct_OBJDUMP=$OBJDUMP 5170 # Extract the first word of "objdump", so it can be a program name with args. 5171set dummy objdump; ac_word=$2 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173$as_echo_n "checking for $ac_word... " >&6; } 5174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 if test -n "$ac_ct_OBJDUMP"; then 5178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5179else 5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5187 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5189 break 2 5190 fi 5191done 5192 done 5193IFS=$as_save_IFS 5194 5195fi 5196fi 5197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5198if test -n "$ac_ct_OBJDUMP"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5200$as_echo "$ac_ct_OBJDUMP" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 if test "x$ac_ct_OBJDUMP" = x; then 5207 OBJDUMP="false" 5208 else 5209 case $cross_compiling:$ac_tool_warned in 5210yes:) 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5213ac_tool_warned=yes ;; 5214esac 5215 OBJDUMP=$ac_ct_OBJDUMP 5216 fi 5217else 5218 OBJDUMP="$ac_cv_prog_OBJDUMP" 5219fi 5220 5221test -z "$OBJDUMP" && OBJDUMP=objdump 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5232$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5233if ${lt_cv_deplibs_check_method+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 lt_cv_file_magic_cmd='$MAGIC_CMD' 5237lt_cv_file_magic_test_file= 5238lt_cv_deplibs_check_method='unknown' 5239# Need to set the preceding variable on all platforms that support 5240# interlibrary dependencies. 5241# 'none' -- dependencies not supported. 5242# 'unknown' -- same as none, but documents that we really don't know. 5243# 'pass_all' -- all dependencies passed with no checks. 5244# 'test_compile' -- check by making test program. 5245# 'file_magic [[regex]]' -- check by looking for files in library path 5246# that responds to the $file_magic_cmd with a given extended regex. 5247# If you have 'file' or equivalent on your system and you're not sure 5248# whether 'pass_all' will *always* work, you probably want this one. 5249 5250case $host_os in 5251aix[4-9]*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255beos*) 5256 lt_cv_deplibs_check_method=pass_all 5257 ;; 5258 5259bsdi[45]*) 5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5261 lt_cv_file_magic_cmd='/usr/bin/file -L' 5262 lt_cv_file_magic_test_file=/shlib/libc.so 5263 ;; 5264 5265cygwin*) 5266 # func_win32_libid is a shell function defined in ltmain.sh 5267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5268 lt_cv_file_magic_cmd='func_win32_libid' 5269 ;; 5270 5271mingw* | pw32*) 5272 # Base MSYS/MinGW do not provide the 'file' command needed by 5273 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5274 # unless we find 'file', for example because we are cross-compiling. 5275 if ( file / ) >/dev/null 2>&1; then 5276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5277 lt_cv_file_magic_cmd='func_win32_libid' 5278 else 5279 # Keep this pattern in sync with the one in func_win32_libid. 5280 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5281 lt_cv_file_magic_cmd='$OBJDUMP -f' 5282 fi 5283 ;; 5284 5285cegcc*) 5286 # use the weaker test based on 'objdump'. See mingw*. 5287 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5288 lt_cv_file_magic_cmd='$OBJDUMP -f' 5289 ;; 5290 5291darwin* | rhapsody*) 5292 lt_cv_deplibs_check_method=pass_all 5293 ;; 5294 5295freebsd* | dragonfly*) 5296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5297 case $host_cpu in 5298 i*86 ) 5299 # Not sure whether the presence of OpenBSD here was a mistake. 5300 # Let's accept both of them until this is cleared up. 5301 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5302 lt_cv_file_magic_cmd=/usr/bin/file 5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5304 ;; 5305 esac 5306 else 5307 lt_cv_deplibs_check_method=pass_all 5308 fi 5309 ;; 5310 5311haiku*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 5315hpux10.20* | hpux11*) 5316 lt_cv_file_magic_cmd=/usr/bin/file 5317 case $host_cpu in 5318 ia64*) 5319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5320 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5321 ;; 5322 hppa*64*) 5323 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]' 5324 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5325 ;; 5326 *) 5327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5328 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5329 ;; 5330 esac 5331 ;; 5332 5333interix[3-9]*) 5334 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5336 ;; 5337 5338irix5* | irix6* | nonstopux*) 5339 case $LD in 5340 *-32|*"-32 ") libmagic=32-bit;; 5341 *-n32|*"-n32 ") libmagic=N32;; 5342 *-64|*"-64 ") libmagic=64-bit;; 5343 *) libmagic=never-match;; 5344 esac 5345 lt_cv_deplibs_check_method=pass_all 5346 ;; 5347 5348# This must be glibc/ELF. 5349linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5350 lt_cv_deplibs_check_method=pass_all 5351 ;; 5352 5353netbsd*) 5354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5356 else 5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5358 fi 5359 ;; 5360 5361newos6*) 5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5363 lt_cv_file_magic_cmd=/usr/bin/file 5364 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5365 ;; 5366 5367*nto* | *qnx*) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371openbsd* | bitrig*) 5372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5374 else 5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5376 fi 5377 ;; 5378 5379osf3* | osf4* | osf5*) 5380 lt_cv_deplibs_check_method=pass_all 5381 ;; 5382 5383rdos*) 5384 lt_cv_deplibs_check_method=pass_all 5385 ;; 5386 5387solaris*) 5388 lt_cv_deplibs_check_method=pass_all 5389 ;; 5390 5391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5392 lt_cv_deplibs_check_method=pass_all 5393 ;; 5394 5395sysv4 | sysv4.3*) 5396 case $host_vendor in 5397 motorola) 5398 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]' 5399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5400 ;; 5401 ncr) 5402 lt_cv_deplibs_check_method=pass_all 5403 ;; 5404 sequent) 5405 lt_cv_file_magic_cmd='/bin/file' 5406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5407 ;; 5408 sni) 5409 lt_cv_file_magic_cmd='/bin/file' 5410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5411 lt_cv_file_magic_test_file=/lib/libc.so 5412 ;; 5413 siemens) 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416 pc) 5417 lt_cv_deplibs_check_method=pass_all 5418 ;; 5419 esac 5420 ;; 5421 5422tpf*) 5423 lt_cv_deplibs_check_method=pass_all 5424 ;; 5425os2*) 5426 lt_cv_deplibs_check_method=pass_all 5427 ;; 5428esac 5429 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5432$as_echo "$lt_cv_deplibs_check_method" >&6; } 5433 5434file_magic_glob= 5435want_nocaseglob=no 5436if test "$build" = "$host"; then 5437 case $host_os in 5438 mingw* | pw32*) 5439 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5440 want_nocaseglob=yes 5441 else 5442 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5443 fi 5444 ;; 5445 esac 5446fi 5447 5448file_magic_cmd=$lt_cv_file_magic_cmd 5449deplibs_check_method=$lt_cv_deplibs_check_method 5450test -z "$deplibs_check_method" && deplibs_check_method=unknown 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473if test -n "$ac_tool_prefix"; then 5474 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5475set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5477$as_echo_n "checking for $ac_word... " >&6; } 5478if ${ac_cv_prog_DLLTOOL+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 if test -n "$DLLTOOL"; then 5482 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5483else 5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5485for as_dir in $PATH 5486do 5487 IFS=$as_save_IFS 5488 test -z "$as_dir" && as_dir=. 5489 for ac_exec_ext in '' $ac_executable_extensions; do 5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5491 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5493 break 2 5494 fi 5495done 5496 done 5497IFS=$as_save_IFS 5498 5499fi 5500fi 5501DLLTOOL=$ac_cv_prog_DLLTOOL 5502if test -n "$DLLTOOL"; then 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5504$as_echo "$DLLTOOL" >&6; } 5505else 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5507$as_echo "no" >&6; } 5508fi 5509 5510 5511fi 5512if test -z "$ac_cv_prog_DLLTOOL"; then 5513 ac_ct_DLLTOOL=$DLLTOOL 5514 # Extract the first word of "dlltool", so it can be a program name with args. 5515set dummy dlltool; ac_word=$2 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517$as_echo_n "checking for $ac_word... " >&6; } 5518if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if test -n "$ac_ct_DLLTOOL"; then 5522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5523else 5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525for as_dir in $PATH 5526do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5531 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535done 5536 done 5537IFS=$as_save_IFS 5538 5539fi 5540fi 5541ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5542if test -n "$ac_ct_DLLTOOL"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5544$as_echo "$ac_ct_DLLTOOL" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549 5550 if test "x$ac_ct_DLLTOOL" = x; then 5551 DLLTOOL="false" 5552 else 5553 case $cross_compiling:$ac_tool_warned in 5554yes:) 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5557ac_tool_warned=yes ;; 5558esac 5559 DLLTOOL=$ac_ct_DLLTOOL 5560 fi 5561else 5562 DLLTOOL="$ac_cv_prog_DLLTOOL" 5563fi 5564 5565test -z "$DLLTOOL" && DLLTOOL=dlltool 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5577$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5578if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 lt_cv_sharedlib_from_linklib_cmd='unknown' 5582 5583case $host_os in 5584cygwin* | mingw* | pw32* | cegcc*) 5585 # two different shell functions defined in ltmain.sh; 5586 # decide which one to use based on capabilities of $DLLTOOL 5587 case `$DLLTOOL --help 2>&1` in 5588 *--identify-strict*) 5589 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5590 ;; 5591 *) 5592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5593 ;; 5594 esac 5595 ;; 5596*) 5597 # fallback: assume linklib IS sharedlib 5598 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5599 ;; 5600esac 5601 5602fi 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5604$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5605sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5606test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5607 5608 5609 5610 5611 5612 5613 5614 5615if test -n "$ac_tool_prefix"; then 5616 for ac_prog in ar 5617 do 5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5619set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5621$as_echo_n "checking for $ac_word... " >&6; } 5622if ${ac_cv_prog_AR+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 if test -n "$AR"; then 5626 ac_cv_prog_AR="$AR" # Let the user override the test. 5627else 5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5629for as_dir in $PATH 5630do 5631 IFS=$as_save_IFS 5632 test -z "$as_dir" && as_dir=. 5633 for ac_exec_ext in '' $ac_executable_extensions; do 5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5635 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5637 break 2 5638 fi 5639done 5640 done 5641IFS=$as_save_IFS 5642 5643fi 5644fi 5645AR=$ac_cv_prog_AR 5646if test -n "$AR"; then 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5648$as_echo "$AR" >&6; } 5649else 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651$as_echo "no" >&6; } 5652fi 5653 5654 5655 test -n "$AR" && break 5656 done 5657fi 5658if test -z "$AR"; then 5659 ac_ct_AR=$AR 5660 for ac_prog in ar 5661do 5662 # Extract the first word of "$ac_prog", so it can be a program name with args. 5663set dummy $ac_prog; ac_word=$2 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665$as_echo_n "checking for $ac_word... " >&6; } 5666if ${ac_cv_prog_ac_ct_AR+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 if test -n "$ac_ct_AR"; then 5670 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5679 ac_cv_prog_ac_ct_AR="$ac_prog" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687fi 5688fi 5689ac_ct_AR=$ac_cv_prog_ac_ct_AR 5690if test -n "$ac_ct_AR"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5692$as_echo "$ac_ct_AR" >&6; } 5693else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695$as_echo "no" >&6; } 5696fi 5697 5698 5699 test -n "$ac_ct_AR" && break 5700done 5701 5702 if test "x$ac_ct_AR" = x; then 5703 AR="false" 5704 else 5705 case $cross_compiling:$ac_tool_warned in 5706yes:) 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5709ac_tool_warned=yes ;; 5710esac 5711 AR=$ac_ct_AR 5712 fi 5713fi 5714 5715: ${AR=ar} 5716: ${AR_FLAGS=cru} 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5729$as_echo_n "checking for archiver @FILE support... " >&6; } 5730if ${lt_cv_ar_at_file+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 lt_cv_ar_at_file=no 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736 5737int 5738main () 5739{ 5740 5741 ; 5742 return 0; 5743} 5744_ACEOF 5745if ac_fn_c_try_compile "$LINENO"; then : 5746 echo conftest.$ac_objext > conftest.lst 5747 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5749 (eval $lt_ar_try) 2>&5 5750 ac_status=$? 5751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5752 test $ac_status = 0; } 5753 if test 0 -eq "$ac_status"; then 5754 # Ensure the archiver fails upon bogus file names. 5755 rm -f conftest.$ac_objext libconftest.a 5756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5757 (eval $lt_ar_try) 2>&5 5758 ac_status=$? 5759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5760 test $ac_status = 0; } 5761 if test 0 -ne "$ac_status"; then 5762 lt_cv_ar_at_file=@ 5763 fi 5764 fi 5765 rm -f conftest.* libconftest.a 5766 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5769 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5772$as_echo "$lt_cv_ar_at_file" >&6; } 5773 5774if test no = "$lt_cv_ar_at_file"; then 5775 archiver_list_spec= 5776else 5777 archiver_list_spec=$lt_cv_ar_at_file 5778fi 5779 5780 5781 5782 5783 5784 5785 5786if test -n "$ac_tool_prefix"; then 5787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5788set dummy ${ac_tool_prefix}strip; ac_word=$2 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790$as_echo_n "checking for $ac_word... " >&6; } 5791if ${ac_cv_prog_STRIP+:} false; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 if test -n "$STRIP"; then 5795 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5796else 5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5798for as_dir in $PATH 5799do 5800 IFS=$as_save_IFS 5801 test -z "$as_dir" && as_dir=. 5802 for ac_exec_ext in '' $ac_executable_extensions; do 5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5804 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5806 break 2 5807 fi 5808done 5809 done 5810IFS=$as_save_IFS 5811 5812fi 5813fi 5814STRIP=$ac_cv_prog_STRIP 5815if test -n "$STRIP"; then 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5817$as_echo "$STRIP" >&6; } 5818else 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5820$as_echo "no" >&6; } 5821fi 5822 5823 5824fi 5825if test -z "$ac_cv_prog_STRIP"; then 5826 ac_ct_STRIP=$STRIP 5827 # Extract the first word of "strip", so it can be a program name with args. 5828set dummy strip; ac_word=$2 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5830$as_echo_n "checking for $ac_word... " >&6; } 5831if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 if test -n "$ac_ct_STRIP"; then 5835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5836else 5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838for as_dir in $PATH 5839do 5840 IFS=$as_save_IFS 5841 test -z "$as_dir" && as_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5844 ac_cv_prog_ac_ct_STRIP="strip" 5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848done 5849 done 5850IFS=$as_save_IFS 5851 5852fi 5853fi 5854ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5855if test -n "$ac_ct_STRIP"; then 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5857$as_echo "$ac_ct_STRIP" >&6; } 5858else 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5860$as_echo "no" >&6; } 5861fi 5862 5863 if test "x$ac_ct_STRIP" = x; then 5864 STRIP=":" 5865 else 5866 case $cross_compiling:$ac_tool_warned in 5867yes:) 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5870ac_tool_warned=yes ;; 5871esac 5872 STRIP=$ac_ct_STRIP 5873 fi 5874else 5875 STRIP="$ac_cv_prog_STRIP" 5876fi 5877 5878test -z "$STRIP" && STRIP=: 5879 5880 5881 5882 5883 5884 5885if test -n "$ac_tool_prefix"; then 5886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5887set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5889$as_echo_n "checking for $ac_word... " >&6; } 5890if ${ac_cv_prog_RANLIB+:} false; then : 5891 $as_echo_n "(cached) " >&6 5892else 5893 if test -n "$RANLIB"; then 5894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5895else 5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897for as_dir in $PATH 5898do 5899 IFS=$as_save_IFS 5900 test -z "$as_dir" && as_dir=. 5901 for ac_exec_ext in '' $ac_executable_extensions; do 5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5905 break 2 5906 fi 5907done 5908 done 5909IFS=$as_save_IFS 5910 5911fi 5912fi 5913RANLIB=$ac_cv_prog_RANLIB 5914if test -n "$RANLIB"; then 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5916$as_echo "$RANLIB" >&6; } 5917else 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919$as_echo "no" >&6; } 5920fi 5921 5922 5923fi 5924if test -z "$ac_cv_prog_RANLIB"; then 5925 ac_ct_RANLIB=$RANLIB 5926 # Extract the first word of "ranlib", so it can be a program name with args. 5927set dummy ranlib; ac_word=$2 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5929$as_echo_n "checking for $ac_word... " >&6; } 5930if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 if test -n "$ac_ct_RANLIB"; then 5934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5935else 5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5937for as_dir in $PATH 5938do 5939 IFS=$as_save_IFS 5940 test -z "$as_dir" && as_dir=. 5941 for ac_exec_ext in '' $ac_executable_extensions; do 5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5943 ac_cv_prog_ac_ct_RANLIB="ranlib" 5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5945 break 2 5946 fi 5947done 5948 done 5949IFS=$as_save_IFS 5950 5951fi 5952fi 5953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5954if test -n "$ac_ct_RANLIB"; then 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5956$as_echo "$ac_ct_RANLIB" >&6; } 5957else 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5959$as_echo "no" >&6; } 5960fi 5961 5962 if test "x$ac_ct_RANLIB" = x; then 5963 RANLIB=":" 5964 else 5965 case $cross_compiling:$ac_tool_warned in 5966yes:) 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5969ac_tool_warned=yes ;; 5970esac 5971 RANLIB=$ac_ct_RANLIB 5972 fi 5973else 5974 RANLIB="$ac_cv_prog_RANLIB" 5975fi 5976 5977test -z "$RANLIB" && RANLIB=: 5978 5979 5980 5981 5982 5983 5984# Determine commands to create old-style static archives. 5985old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5986old_postinstall_cmds='chmod 644 $oldlib' 5987old_postuninstall_cmds= 5988 5989if test -n "$RANLIB"; then 5990 case $host_os in 5991 bitrig* | openbsd*) 5992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5993 ;; 5994 *) 5995 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5996 ;; 5997 esac 5998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5999fi 6000 6001case $host_os in 6002 darwin*) 6003 lock_old_archive_extraction=yes ;; 6004 *) 6005 lock_old_archive_extraction=no ;; 6006esac 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046# If no C compiler was specified, use CC. 6047LTCC=${LTCC-"$CC"} 6048 6049# If no C compiler flags were specified, use CFLAGS. 6050LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6051 6052# Allow CC to be a program name with arguments. 6053compiler=$CC 6054 6055 6056# Check for command to grab the raw symbol name followed by C symbol from nm. 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6058$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6059if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 6063# These are sane defaults that work on at least a few old systems. 6064# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6065 6066# Character class describing NM global symbol codes. 6067symcode='[BCDEGRST]' 6068 6069# Regexp to match symbols that can be accessed directly from C. 6070sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6071 6072# Define system-specific variables. 6073case $host_os in 6074aix*) 6075 symcode='[BCDT]' 6076 ;; 6077cygwin* | mingw* | pw32* | cegcc*) 6078 symcode='[ABCDGISTW]' 6079 ;; 6080hpux*) 6081 if test ia64 = "$host_cpu"; then 6082 symcode='[ABCDEGRST]' 6083 fi 6084 ;; 6085irix* | nonstopux*) 6086 symcode='[BCDEGRST]' 6087 ;; 6088osf*) 6089 symcode='[BCDEGQRST]' 6090 ;; 6091solaris*) 6092 symcode='[BDRT]' 6093 ;; 6094sco3.2v5*) 6095 symcode='[DT]' 6096 ;; 6097sysv4.2uw2*) 6098 symcode='[DT]' 6099 ;; 6100sysv5* | sco5v6* | unixware* | OpenUNIX*) 6101 symcode='[ABDT]' 6102 ;; 6103sysv4) 6104 symcode='[DFNSTU]' 6105 ;; 6106esac 6107 6108# If we're using GNU nm, then use its standard symbol codes. 6109case `$NM -V 2>&1` in 6110*GNU* | *'with BFD'*) 6111 symcode='[ABCDGIRSTW]' ;; 6112esac 6113 6114if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6115 # Gets list of data symbols to import. 6116 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6117 # Adjust the below global symbol transforms to fixup imported variables. 6118 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6119 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6120 lt_c_name_lib_hook="\ 6121 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6122 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6123else 6124 # Disable hooks by default. 6125 lt_cv_sys_global_symbol_to_import= 6126 lt_cdecl_hook= 6127 lt_c_name_hook= 6128 lt_c_name_lib_hook= 6129fi 6130 6131# Transform an extracted symbol line into a proper C declaration. 6132# Some systems (esp. on ia64) link data and code symbols differently, 6133# so use this general approach. 6134lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6135$lt_cdecl_hook\ 6136" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6137" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6138 6139# Transform an extracted symbol line into symbol name and symbol address 6140lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6141$lt_c_name_hook\ 6142" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6143" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6144 6145# Transform an extracted symbol line into symbol name with lib prefix and 6146# symbol address. 6147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6148$lt_c_name_lib_hook\ 6149" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6150" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6151" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6152 6153# Handle CRLF in mingw tool chain 6154opt_cr= 6155case $build_os in 6156mingw*) 6157 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6158 ;; 6159esac 6160 6161# Try without a prefix underscore, then with it. 6162for ac_symprfx in "" "_"; do 6163 6164 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6165 symxfrm="\\1 $ac_symprfx\\2 \\2" 6166 6167 # Write the raw and C identifiers. 6168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6169 # Fake it for dumpbin and say T for any non-static function, 6170 # D for any global variable and I for any imported variable. 6171 # Also find C++ and __fastcall symbols from MSVC++, 6172 # which start with @ or ?. 6173 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6174" {last_section=section; section=\$ 3};"\ 6175" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6176" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6177" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6178" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6179" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6180" \$ 0!~/External *\|/{next};"\ 6181" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6182" {if(hide[section]) next};"\ 6183" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6184" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6185" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6186" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6187" ' prfx=^$ac_symprfx" 6188 else 6189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6190 fi 6191 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6192 6193 # Check to see that the pipe works correctly. 6194 pipe_works=no 6195 6196 rm -f conftest* 6197 cat > conftest.$ac_ext <<_LT_EOF 6198#ifdef __cplusplus 6199extern "C" { 6200#endif 6201char nm_test_var; 6202void nm_test_func(void); 6203void nm_test_func(void){} 6204#ifdef __cplusplus 6205} 6206#endif 6207int main(){nm_test_var='a';nm_test_func();return(0);} 6208_LT_EOF 6209 6210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6211 (eval $ac_compile) 2>&5 6212 ac_status=$? 6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214 test $ac_status = 0; }; then 6215 # Now try to grab the symbols. 6216 nlist=conftest.nm 6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6218 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6219 ac_status=$? 6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6221 test $ac_status = 0; } && test -s "$nlist"; then 6222 # Try sorting and uniquifying the output. 6223 if sort "$nlist" | uniq > "$nlist"T; then 6224 mv -f "$nlist"T "$nlist" 6225 else 6226 rm -f "$nlist"T 6227 fi 6228 6229 # Make sure that we snagged all the symbols we need. 6230 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6231 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6232 cat <<_LT_EOF > conftest.$ac_ext 6233/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6234#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6235/* DATA imports from DLLs on WIN32 can't be const, because runtime 6236 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6237# define LT_DLSYM_CONST 6238#elif defined __osf__ 6239/* This system does not cope well with relocations in const data. */ 6240# define LT_DLSYM_CONST 6241#else 6242# define LT_DLSYM_CONST const 6243#endif 6244 6245#ifdef __cplusplus 6246extern "C" { 6247#endif 6248 6249_LT_EOF 6250 # Now generate the symbol file. 6251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6252 6253 cat <<_LT_EOF >> conftest.$ac_ext 6254 6255/* The mapping between symbol names and symbols. */ 6256LT_DLSYM_CONST struct { 6257 const char *name; 6258 void *address; 6259} 6260lt__PROGRAM__LTX_preloaded_symbols[] = 6261{ 6262 { "@PROGRAM@", (void *) 0 }, 6263_LT_EOF 6264 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6265 cat <<\_LT_EOF >> conftest.$ac_ext 6266 {0, (void *) 0} 6267}; 6268 6269/* This works around a problem in FreeBSD linker */ 6270#ifdef FREEBSD_WORKAROUND 6271static const void *lt_preloaded_setup() { 6272 return lt__PROGRAM__LTX_preloaded_symbols; 6273} 6274#endif 6275 6276#ifdef __cplusplus 6277} 6278#endif 6279_LT_EOF 6280 # Now try linking the two files. 6281 mv conftest.$ac_objext conftstm.$ac_objext 6282 lt_globsym_save_LIBS=$LIBS 6283 lt_globsym_save_CFLAGS=$CFLAGS 6284 LIBS=conftstm.$ac_objext 6285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6287 (eval $ac_link) 2>&5 6288 ac_status=$? 6289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6290 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6291 pipe_works=yes 6292 fi 6293 LIBS=$lt_globsym_save_LIBS 6294 CFLAGS=$lt_globsym_save_CFLAGS 6295 else 6296 echo "cannot find nm_test_func in $nlist" >&5 6297 fi 6298 else 6299 echo "cannot find nm_test_var in $nlist" >&5 6300 fi 6301 else 6302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6303 fi 6304 else 6305 echo "$progname: failed program was:" >&5 6306 cat conftest.$ac_ext >&5 6307 fi 6308 rm -rf conftest* conftst* 6309 6310 # Do not use the global_symbol_pipe unless it works. 6311 if test yes = "$pipe_works"; then 6312 break 6313 else 6314 lt_cv_sys_global_symbol_pipe= 6315 fi 6316done 6317 6318fi 6319 6320if test -z "$lt_cv_sys_global_symbol_pipe"; then 6321 lt_cv_sys_global_symbol_to_cdecl= 6322fi 6323if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6325$as_echo "failed" >&6; } 6326else 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6328$as_echo "ok" >&6; } 6329fi 6330 6331# Response file support. 6332if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6333 nm_file_list_spec='@' 6334elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6335 nm_file_list_spec='@' 6336fi 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6375$as_echo_n "checking for sysroot... " >&6; } 6376 6377# Check whether --with-sysroot was given. 6378if test "${with_sysroot+set}" = set; then : 6379 withval=$with_sysroot; 6380else 6381 with_sysroot=no 6382fi 6383 6384 6385lt_sysroot= 6386case $with_sysroot in #( 6387 yes) 6388 if test yes = "$GCC"; then 6389 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6390 fi 6391 ;; #( 6392 /*) 6393 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6394 ;; #( 6395 no|'') 6396 ;; #( 6397 *) 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6399$as_echo "$with_sysroot" >&6; } 6400 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6401 ;; 6402esac 6403 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6405$as_echo "${lt_sysroot:-no}" >&6; } 6406 6407 6408 6409 6410 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6412$as_echo_n "checking for a working dd... " >&6; } 6413if ${ac_cv_path_lt_DD+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 printf 0123456789abcdef0123456789abcdef >conftest.i 6417cat conftest.i conftest.i >conftest2.i 6418: ${lt_DD:=$DD} 6419if test -z "$lt_DD"; then 6420 ac_path_lt_DD_found=false 6421 # Loop through the user's path and test for each of PROGNAME-LIST 6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6423for as_dir in $PATH 6424do 6425 IFS=$as_save_IFS 6426 test -z "$as_dir" && as_dir=. 6427 for ac_prog in dd; do 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6430 as_fn_executable_p "$ac_path_lt_DD" || continue 6431if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6432 cmp -s conftest.i conftest.out \ 6433 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6434fi 6435 $ac_path_lt_DD_found && break 3 6436 done 6437 done 6438 done 6439IFS=$as_save_IFS 6440 if test -z "$ac_cv_path_lt_DD"; then 6441 : 6442 fi 6443else 6444 ac_cv_path_lt_DD=$lt_DD 6445fi 6446 6447rm -f conftest.i conftest2.i conftest.out 6448fi 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6450$as_echo "$ac_cv_path_lt_DD" >&6; } 6451 6452 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6454$as_echo_n "checking how to truncate binary pipes... " >&6; } 6455if ${lt_cv_truncate_bin+:} false; then : 6456 $as_echo_n "(cached) " >&6 6457else 6458 printf 0123456789abcdef0123456789abcdef >conftest.i 6459cat conftest.i conftest.i >conftest2.i 6460lt_cv_truncate_bin= 6461if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6462 cmp -s conftest.i conftest.out \ 6463 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6464fi 6465rm -f conftest.i conftest2.i conftest.out 6466test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6467fi 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6469$as_echo "$lt_cv_truncate_bin" >&6; } 6470 6471 6472 6473 6474 6475 6476 6477# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6478func_cc_basename () 6479{ 6480 for cc_temp in $*""; do 6481 case $cc_temp in 6482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6484 \-*) ;; 6485 *) break;; 6486 esac 6487 done 6488 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6489} 6490 6491# Check whether --enable-libtool-lock was given. 6492if test "${enable_libtool_lock+set}" = set; then : 6493 enableval=$enable_libtool_lock; 6494fi 6495 6496test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6497 6498# Some flags need to be propagated to the compiler or linker for good 6499# libtool support. 6500case $host in 6501ia64-*-hpux*) 6502 # Find out what ABI is being produced by ac_compile, and set mode 6503 # options accordingly. 6504 echo 'int i;' > conftest.$ac_ext 6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6506 (eval $ac_compile) 2>&5 6507 ac_status=$? 6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6509 test $ac_status = 0; }; then 6510 case `/usr/bin/file conftest.$ac_objext` in 6511 *ELF-32*) 6512 HPUX_IA64_MODE=32 6513 ;; 6514 *ELF-64*) 6515 HPUX_IA64_MODE=64 6516 ;; 6517 esac 6518 fi 6519 rm -rf conftest* 6520 ;; 6521*-*-irix6*) 6522 # Find out what ABI is being produced by ac_compile, and set linker 6523 # options accordingly. 6524 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6526 (eval $ac_compile) 2>&5 6527 ac_status=$? 6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6529 test $ac_status = 0; }; then 6530 if test yes = "$lt_cv_prog_gnu_ld"; then 6531 case `/usr/bin/file conftest.$ac_objext` in 6532 *32-bit*) 6533 LD="${LD-ld} -melf32bsmip" 6534 ;; 6535 *N32*) 6536 LD="${LD-ld} -melf32bmipn32" 6537 ;; 6538 *64-bit*) 6539 LD="${LD-ld} -melf64bmip" 6540 ;; 6541 esac 6542 else 6543 case `/usr/bin/file conftest.$ac_objext` in 6544 *32-bit*) 6545 LD="${LD-ld} -32" 6546 ;; 6547 *N32*) 6548 LD="${LD-ld} -n32" 6549 ;; 6550 *64-bit*) 6551 LD="${LD-ld} -64" 6552 ;; 6553 esac 6554 fi 6555 fi 6556 rm -rf conftest* 6557 ;; 6558 6559mips64*-*linux*) 6560 # Find out what ABI is being produced by ac_compile, and set linker 6561 # options accordingly. 6562 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6564 (eval $ac_compile) 2>&5 6565 ac_status=$? 6566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6567 test $ac_status = 0; }; then 6568 emul=elf 6569 case `/usr/bin/file conftest.$ac_objext` in 6570 *32-bit*) 6571 emul="${emul}32" 6572 ;; 6573 *64-bit*) 6574 emul="${emul}64" 6575 ;; 6576 esac 6577 case `/usr/bin/file conftest.$ac_objext` in 6578 *MSB*) 6579 emul="${emul}btsmip" 6580 ;; 6581 *LSB*) 6582 emul="${emul}ltsmip" 6583 ;; 6584 esac 6585 case `/usr/bin/file conftest.$ac_objext` in 6586 *N32*) 6587 emul="${emul}n32" 6588 ;; 6589 esac 6590 LD="${LD-ld} -m $emul" 6591 fi 6592 rm -rf conftest* 6593 ;; 6594 6595x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6596s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6597 # Find out what ABI is being produced by ac_compile, and set linker 6598 # options accordingly. Note that the listed cases only cover the 6599 # situations where additional linker options are needed (such as when 6600 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6601 # vice versa); the common cases where no linker options are needed do 6602 # not appear in the list. 6603 echo 'int i;' > conftest.$ac_ext 6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6605 (eval $ac_compile) 2>&5 6606 ac_status=$? 6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6608 test $ac_status = 0; }; then 6609 case `/usr/bin/file conftest.o` in 6610 *32-bit*) 6611 case $host in 6612 x86_64-*kfreebsd*-gnu) 6613 LD="${LD-ld} -m elf_i386_fbsd" 6614 ;; 6615 x86_64-*linux*) 6616 case `/usr/bin/file conftest.o` in 6617 *x86-64*) 6618 LD="${LD-ld} -m elf32_x86_64" 6619 ;; 6620 *) 6621 LD="${LD-ld} -m elf_i386" 6622 ;; 6623 esac 6624 ;; 6625 powerpc64le-*linux*) 6626 LD="${LD-ld} -m elf32lppclinux" 6627 ;; 6628 powerpc64-*linux*) 6629 LD="${LD-ld} -m elf32ppclinux" 6630 ;; 6631 s390x-*linux*) 6632 LD="${LD-ld} -m elf_s390" 6633 ;; 6634 sparc64-*linux*) 6635 LD="${LD-ld} -m elf32_sparc" 6636 ;; 6637 esac 6638 ;; 6639 *64-bit*) 6640 case $host in 6641 x86_64-*kfreebsd*-gnu) 6642 LD="${LD-ld} -m elf_x86_64_fbsd" 6643 ;; 6644 x86_64-*linux*) 6645 LD="${LD-ld} -m elf_x86_64" 6646 ;; 6647 powerpcle-*linux*) 6648 LD="${LD-ld} -m elf64lppc" 6649 ;; 6650 powerpc-*linux*) 6651 LD="${LD-ld} -m elf64ppc" 6652 ;; 6653 s390*-*linux*|s390*-*tpf*) 6654 LD="${LD-ld} -m elf64_s390" 6655 ;; 6656 sparc*-*linux*) 6657 LD="${LD-ld} -m elf64_sparc" 6658 ;; 6659 esac 6660 ;; 6661 esac 6662 fi 6663 rm -rf conftest* 6664 ;; 6665 6666*-*-sco3.2v5*) 6667 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6668 SAVE_CFLAGS=$CFLAGS 6669 CFLAGS="$CFLAGS -belf" 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6671$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6672if ${lt_cv_cc_needs_belf+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 ac_ext=c 6676ac_cpp='$CPP $CPPFLAGS' 6677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6679ac_compiler_gnu=$ac_cv_c_compiler_gnu 6680 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683 6684int 6685main () 6686{ 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_link "$LINENO"; then : 6693 lt_cv_cc_needs_belf=yes 6694else 6695 lt_cv_cc_needs_belf=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext \ 6698 conftest$ac_exeext conftest.$ac_ext 6699 ac_ext=c 6700ac_cpp='$CPP $CPPFLAGS' 6701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6703ac_compiler_gnu=$ac_cv_c_compiler_gnu 6704 6705fi 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6707$as_echo "$lt_cv_cc_needs_belf" >&6; } 6708 if test yes != "$lt_cv_cc_needs_belf"; then 6709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6710 CFLAGS=$SAVE_CFLAGS 6711 fi 6712 ;; 6713*-*solaris*) 6714 # Find out what ABI is being produced by ac_compile, and set linker 6715 # options accordingly. 6716 echo 'int i;' > conftest.$ac_ext 6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6718 (eval $ac_compile) 2>&5 6719 ac_status=$? 6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6721 test $ac_status = 0; }; then 6722 case `/usr/bin/file conftest.o` in 6723 *64-bit*) 6724 case $lt_cv_prog_gnu_ld in 6725 yes*) 6726 case $host in 6727 i?86-*-solaris*|x86_64-*-solaris*) 6728 LD="${LD-ld} -m elf_x86_64" 6729 ;; 6730 sparc*-*-solaris*) 6731 LD="${LD-ld} -m elf64_sparc" 6732 ;; 6733 esac 6734 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6735 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6736 LD=${LD-ld}_sol2 6737 fi 6738 ;; 6739 *) 6740 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6741 LD="${LD-ld} -64" 6742 fi 6743 ;; 6744 esac 6745 ;; 6746 esac 6747 fi 6748 rm -rf conftest* 6749 ;; 6750esac 6751 6752need_locks=$enable_libtool_lock 6753 6754if test -n "$ac_tool_prefix"; then 6755 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6756set dummy ${ac_tool_prefix}mt; ac_word=$2 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6758$as_echo_n "checking for $ac_word... " >&6; } 6759if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 if test -n "$MANIFEST_TOOL"; then 6763 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6764else 6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6766for as_dir in $PATH 6767do 6768 IFS=$as_save_IFS 6769 test -z "$as_dir" && as_dir=. 6770 for ac_exec_ext in '' $ac_executable_extensions; do 6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6772 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6774 break 2 6775 fi 6776done 6777 done 6778IFS=$as_save_IFS 6779 6780fi 6781fi 6782MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6783if test -n "$MANIFEST_TOOL"; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6785$as_echo "$MANIFEST_TOOL" >&6; } 6786else 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6788$as_echo "no" >&6; } 6789fi 6790 6791 6792fi 6793if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6794 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6795 # Extract the first word of "mt", so it can be a program name with args. 6796set dummy mt; ac_word=$2 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798$as_echo_n "checking for $ac_word... " >&6; } 6799if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 if test -n "$ac_ct_MANIFEST_TOOL"; then 6803 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6804else 6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in $PATH 6807do 6808 IFS=$as_save_IFS 6809 test -z "$as_dir" && as_dir=. 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6812 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816done 6817 done 6818IFS=$as_save_IFS 6819 6820fi 6821fi 6822ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6823if test -n "$ac_ct_MANIFEST_TOOL"; then 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6825$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6826else 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6828$as_echo "no" >&6; } 6829fi 6830 6831 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6832 MANIFEST_TOOL=":" 6833 else 6834 case $cross_compiling:$ac_tool_warned in 6835yes:) 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6838ac_tool_warned=yes ;; 6839esac 6840 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6841 fi 6842else 6843 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6844fi 6845 6846test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6848$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6849if ${lt_cv_path_mainfest_tool+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 lt_cv_path_mainfest_tool=no 6853 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6854 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6855 cat conftest.err >&5 6856 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6857 lt_cv_path_mainfest_tool=yes 6858 fi 6859 rm -f conftest* 6860fi 6861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6862$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6863if test yes != "$lt_cv_path_mainfest_tool"; then 6864 MANIFEST_TOOL=: 6865fi 6866 6867 6868 6869 6870 6871 6872 case $host_os in 6873 rhapsody* | darwin*) 6874 if test -n "$ac_tool_prefix"; then 6875 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6876set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6878$as_echo_n "checking for $ac_word... " >&6; } 6879if ${ac_cv_prog_DSYMUTIL+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 if test -n "$DSYMUTIL"; then 6883 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6884else 6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6886for as_dir in $PATH 6887do 6888 IFS=$as_save_IFS 6889 test -z "$as_dir" && as_dir=. 6890 for ac_exec_ext in '' $ac_executable_extensions; do 6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6892 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6894 break 2 6895 fi 6896done 6897 done 6898IFS=$as_save_IFS 6899 6900fi 6901fi 6902DSYMUTIL=$ac_cv_prog_DSYMUTIL 6903if test -n "$DSYMUTIL"; then 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6905$as_echo "$DSYMUTIL" >&6; } 6906else 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6908$as_echo "no" >&6; } 6909fi 6910 6911 6912fi 6913if test -z "$ac_cv_prog_DSYMUTIL"; then 6914 ac_ct_DSYMUTIL=$DSYMUTIL 6915 # Extract the first word of "dsymutil", so it can be a program name with args. 6916set dummy dsymutil; ac_word=$2 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6918$as_echo_n "checking for $ac_word... " >&6; } 6919if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 if test -n "$ac_ct_DSYMUTIL"; then 6923 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6924else 6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6926for as_dir in $PATH 6927do 6928 IFS=$as_save_IFS 6929 test -z "$as_dir" && as_dir=. 6930 for ac_exec_ext in '' $ac_executable_extensions; do 6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6932 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6934 break 2 6935 fi 6936done 6937 done 6938IFS=$as_save_IFS 6939 6940fi 6941fi 6942ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6943if test -n "$ac_ct_DSYMUTIL"; then 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6945$as_echo "$ac_ct_DSYMUTIL" >&6; } 6946else 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6948$as_echo "no" >&6; } 6949fi 6950 6951 if test "x$ac_ct_DSYMUTIL" = x; then 6952 DSYMUTIL=":" 6953 else 6954 case $cross_compiling:$ac_tool_warned in 6955yes:) 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6958ac_tool_warned=yes ;; 6959esac 6960 DSYMUTIL=$ac_ct_DSYMUTIL 6961 fi 6962else 6963 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6964fi 6965 6966 if test -n "$ac_tool_prefix"; then 6967 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6968set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6970$as_echo_n "checking for $ac_word... " >&6; } 6971if ${ac_cv_prog_NMEDIT+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 if test -n "$NMEDIT"; then 6975 ac_cv_prog_NMEDIT="$NMEDIT" # 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 test -z "$as_dir" && as_dir=. 6982 for ac_exec_ext in '' $ac_executable_extensions; do 6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6984 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6986 break 2 6987 fi 6988done 6989 done 6990IFS=$as_save_IFS 6991 6992fi 6993fi 6994NMEDIT=$ac_cv_prog_NMEDIT 6995if test -n "$NMEDIT"; then 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6997$as_echo "$NMEDIT" >&6; } 6998else 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7000$as_echo "no" >&6; } 7001fi 7002 7003 7004fi 7005if test -z "$ac_cv_prog_NMEDIT"; then 7006 ac_ct_NMEDIT=$NMEDIT 7007 # Extract the first word of "nmedit", so it can be a program name with args. 7008set dummy nmedit; ac_word=$2 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7010$as_echo_n "checking for $ac_word... " >&6; } 7011if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 if test -n "$ac_ct_NMEDIT"; then 7015 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7016else 7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018for as_dir in $PATH 7019do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7024 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028done 7029 done 7030IFS=$as_save_IFS 7031 7032fi 7033fi 7034ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7035if test -n "$ac_ct_NMEDIT"; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7037$as_echo "$ac_ct_NMEDIT" >&6; } 7038else 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7040$as_echo "no" >&6; } 7041fi 7042 7043 if test "x$ac_ct_NMEDIT" = x; then 7044 NMEDIT=":" 7045 else 7046 case $cross_compiling:$ac_tool_warned in 7047yes:) 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7050ac_tool_warned=yes ;; 7051esac 7052 NMEDIT=$ac_ct_NMEDIT 7053 fi 7054else 7055 NMEDIT="$ac_cv_prog_NMEDIT" 7056fi 7057 7058 if test -n "$ac_tool_prefix"; then 7059 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7060set dummy ${ac_tool_prefix}lipo; ac_word=$2 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7062$as_echo_n "checking for $ac_word... " >&6; } 7063if ${ac_cv_prog_LIPO+:} false; then : 7064 $as_echo_n "(cached) " >&6 7065else 7066 if test -n "$LIPO"; then 7067 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7068else 7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7070for as_dir in $PATH 7071do 7072 IFS=$as_save_IFS 7073 test -z "$as_dir" && as_dir=. 7074 for ac_exec_ext in '' $ac_executable_extensions; do 7075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7076 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7078 break 2 7079 fi 7080done 7081 done 7082IFS=$as_save_IFS 7083 7084fi 7085fi 7086LIPO=$ac_cv_prog_LIPO 7087if test -n "$LIPO"; then 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7089$as_echo "$LIPO" >&6; } 7090else 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7092$as_echo "no" >&6; } 7093fi 7094 7095 7096fi 7097if test -z "$ac_cv_prog_LIPO"; then 7098 ac_ct_LIPO=$LIPO 7099 # Extract the first word of "lipo", so it can be a program name with args. 7100set dummy lipo; ac_word=$2 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7102$as_echo_n "checking for $ac_word... " >&6; } 7103if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105else 7106 if test -n "$ac_ct_LIPO"; then 7107 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7108else 7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110for as_dir in $PATH 7111do 7112 IFS=$as_save_IFS 7113 test -z "$as_dir" && as_dir=. 7114 for ac_exec_ext in '' $ac_executable_extensions; do 7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7116 ac_cv_prog_ac_ct_LIPO="lipo" 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7118 break 2 7119 fi 7120done 7121 done 7122IFS=$as_save_IFS 7123 7124fi 7125fi 7126ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7127if test -n "$ac_ct_LIPO"; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7129$as_echo "$ac_ct_LIPO" >&6; } 7130else 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7132$as_echo "no" >&6; } 7133fi 7134 7135 if test "x$ac_ct_LIPO" = x; then 7136 LIPO=":" 7137 else 7138 case $cross_compiling:$ac_tool_warned in 7139yes:) 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7142ac_tool_warned=yes ;; 7143esac 7144 LIPO=$ac_ct_LIPO 7145 fi 7146else 7147 LIPO="$ac_cv_prog_LIPO" 7148fi 7149 7150 if test -n "$ac_tool_prefix"; then 7151 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7152set dummy ${ac_tool_prefix}otool; ac_word=$2 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7154$as_echo_n "checking for $ac_word... " >&6; } 7155if ${ac_cv_prog_OTOOL+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 if test -n "$OTOOL"; then 7159 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7160else 7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162for as_dir in $PATH 7163do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7168 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173 done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178OTOOL=$ac_cv_prog_OTOOL 7179if test -n "$OTOOL"; then 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7181$as_echo "$OTOOL" >&6; } 7182else 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 7188fi 7189if test -z "$ac_cv_prog_OTOOL"; then 7190 ac_ct_OTOOL=$OTOOL 7191 # Extract the first word of "otool", so it can be a program name with args. 7192set dummy otool; ac_word=$2 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7194$as_echo_n "checking for $ac_word... " >&6; } 7195if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197else 7198 if test -n "$ac_ct_OTOOL"; then 7199 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7200else 7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202for as_dir in $PATH 7203do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7208 ac_cv_prog_ac_ct_OTOOL="otool" 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212done 7213 done 7214IFS=$as_save_IFS 7215 7216fi 7217fi 7218ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7219if test -n "$ac_ct_OTOOL"; then 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7221$as_echo "$ac_ct_OTOOL" >&6; } 7222else 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7224$as_echo "no" >&6; } 7225fi 7226 7227 if test "x$ac_ct_OTOOL" = x; then 7228 OTOOL=":" 7229 else 7230 case $cross_compiling:$ac_tool_warned in 7231yes:) 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7234ac_tool_warned=yes ;; 7235esac 7236 OTOOL=$ac_ct_OTOOL 7237 fi 7238else 7239 OTOOL="$ac_cv_prog_OTOOL" 7240fi 7241 7242 if test -n "$ac_tool_prefix"; then 7243 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7244set dummy ${ac_tool_prefix}otool64; ac_word=$2 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7246$as_echo_n "checking for $ac_word... " >&6; } 7247if ${ac_cv_prog_OTOOL64+:} false; then : 7248 $as_echo_n "(cached) " >&6 7249else 7250 if test -n "$OTOOL64"; then 7251 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7252else 7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7254for as_dir in $PATH 7255do 7256 IFS=$as_save_IFS 7257 test -z "$as_dir" && as_dir=. 7258 for ac_exec_ext in '' $ac_executable_extensions; do 7259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7260 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7262 break 2 7263 fi 7264done 7265 done 7266IFS=$as_save_IFS 7267 7268fi 7269fi 7270OTOOL64=$ac_cv_prog_OTOOL64 7271if test -n "$OTOOL64"; then 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7273$as_echo "$OTOOL64" >&6; } 7274else 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7276$as_echo "no" >&6; } 7277fi 7278 7279 7280fi 7281if test -z "$ac_cv_prog_OTOOL64"; then 7282 ac_ct_OTOOL64=$OTOOL64 7283 # Extract the first word of "otool64", so it can be a program name with args. 7284set dummy otool64; ac_word=$2 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7286$as_echo_n "checking for $ac_word... " >&6; } 7287if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 if test -n "$ac_ct_OTOOL64"; then 7291 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7292else 7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7294for as_dir in $PATH 7295do 7296 IFS=$as_save_IFS 7297 test -z "$as_dir" && as_dir=. 7298 for ac_exec_ext in '' $ac_executable_extensions; do 7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7300 ac_cv_prog_ac_ct_OTOOL64="otool64" 7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7302 break 2 7303 fi 7304done 7305 done 7306IFS=$as_save_IFS 7307 7308fi 7309fi 7310ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7311if test -n "$ac_ct_OTOOL64"; then 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7313$as_echo "$ac_ct_OTOOL64" >&6; } 7314else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7316$as_echo "no" >&6; } 7317fi 7318 7319 if test "x$ac_ct_OTOOL64" = x; then 7320 OTOOL64=":" 7321 else 7322 case $cross_compiling:$ac_tool_warned in 7323yes:) 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7326ac_tool_warned=yes ;; 7327esac 7328 OTOOL64=$ac_ct_OTOOL64 7329 fi 7330else 7331 OTOOL64="$ac_cv_prog_OTOOL64" 7332fi 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7361$as_echo_n "checking for -single_module linker flag... " >&6; } 7362if ${lt_cv_apple_cc_single_mod+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 lt_cv_apple_cc_single_mod=no 7366 if test -z "$LT_MULTI_MODULE"; then 7367 # By default we will add the -single_module flag. You can override 7368 # by either setting the environment variable LT_MULTI_MODULE 7369 # non-empty at configure time, or by adding -multi_module to the 7370 # link flags. 7371 rm -rf libconftest.dylib* 7372 echo "int foo(void){return 1;}" > conftest.c 7373 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7374-dynamiclib -Wl,-single_module conftest.c" >&5 7375 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7376 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7377 _lt_result=$? 7378 # If there is a non-empty error log, and "single_module" 7379 # appears in it, assume the flag caused a linker warning 7380 if test -s conftest.err && $GREP single_module conftest.err; then 7381 cat conftest.err >&5 7382 # Otherwise, if the output was created with a 0 exit code from 7383 # the compiler, it worked. 7384 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7385 lt_cv_apple_cc_single_mod=yes 7386 else 7387 cat conftest.err >&5 7388 fi 7389 rm -rf libconftest.dylib* 7390 rm -f conftest.* 7391 fi 7392fi 7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7394$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7395 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7397$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7398if ${lt_cv_ld_exported_symbols_list+:} false; then : 7399 $as_echo_n "(cached) " >&6 7400else 7401 lt_cv_ld_exported_symbols_list=no 7402 save_LDFLAGS=$LDFLAGS 7403 echo "_main" > conftest.sym 7404 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407 7408int 7409main () 7410{ 7411 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416if ac_fn_c_try_link "$LINENO"; then : 7417 lt_cv_ld_exported_symbols_list=yes 7418else 7419 lt_cv_ld_exported_symbols_list=no 7420fi 7421rm -f core conftest.err conftest.$ac_objext \ 7422 conftest$ac_exeext conftest.$ac_ext 7423 LDFLAGS=$save_LDFLAGS 7424 7425fi 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7427$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7428 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7430$as_echo_n "checking for -force_load linker flag... " >&6; } 7431if ${lt_cv_ld_force_load+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 lt_cv_ld_force_load=no 7435 cat > conftest.c << _LT_EOF 7436int forced_loaded() { return 2;} 7437_LT_EOF 7438 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7439 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7440 echo "$AR cru libconftest.a conftest.o" >&5 7441 $AR cru libconftest.a conftest.o 2>&5 7442 echo "$RANLIB libconftest.a" >&5 7443 $RANLIB libconftest.a 2>&5 7444 cat > conftest.c << _LT_EOF 7445int main() { return 0;} 7446_LT_EOF 7447 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7448 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7449 _lt_result=$? 7450 if test -s conftest.err && $GREP force_load conftest.err; then 7451 cat conftest.err >&5 7452 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7453 lt_cv_ld_force_load=yes 7454 else 7455 cat conftest.err >&5 7456 fi 7457 rm -f conftest.err libconftest.a conftest conftest.c 7458 rm -rf conftest.dSYM 7459 7460fi 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7462$as_echo "$lt_cv_ld_force_load" >&6; } 7463 case $host_os in 7464 rhapsody* | darwin1.[012]) 7465 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7466 darwin1.*) 7467 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7468 darwin*) # darwin 5.x on 7469 # if running on 10.5 or later, the deployment target defaults 7470 # to the OS version, if on x86, and 10.4, the deployment 7471 # target defaults to 10.4. Don't you love it? 7472 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7473 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7474 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7475 10.[012][,.]*) 7476 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7477 10.*) 7478 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7479 esac 7480 ;; 7481 esac 7482 if test yes = "$lt_cv_apple_cc_single_mod"; then 7483 _lt_dar_single_mod='$single_module' 7484 fi 7485 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7486 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7487 else 7488 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7489 fi 7490 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7491 _lt_dsymutil='~$DSYMUTIL $lib || :' 7492 else 7493 _lt_dsymutil= 7494 fi 7495 ;; 7496 esac 7497 7498# func_munge_path_list VARIABLE PATH 7499# ----------------------------------- 7500# VARIABLE is name of variable containing _space_ separated list of 7501# directories to be munged by the contents of PATH, which is string 7502# having a format: 7503# "DIR[:DIR]:" 7504# string "DIR[ DIR]" will be prepended to VARIABLE 7505# ":DIR[:DIR]" 7506# string "DIR[ DIR]" will be appended to VARIABLE 7507# "DIRP[:DIRP]::[DIRA:]DIRA" 7508# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7509# "DIRA[ DIRA]" will be appended to VARIABLE 7510# "DIR[:DIR]" 7511# VARIABLE will be replaced by "DIR[ DIR]" 7512func_munge_path_list () 7513{ 7514 case x$2 in 7515 x) 7516 ;; 7517 *:) 7518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7519 ;; 7520 x:*) 7521 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7522 ;; 7523 *::*) 7524 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7525 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7526 ;; 7527 *) 7528 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7529 ;; 7530 esac 7531} 7532 7533ac_ext=c 7534ac_cpp='$CPP $CPPFLAGS' 7535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7537ac_compiler_gnu=$ac_cv_c_compiler_gnu 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7539$as_echo_n "checking how to run the C preprocessor... " >&6; } 7540# On Suns, sometimes $CPP names a directory. 7541if test -n "$CPP" && test -d "$CPP"; then 7542 CPP= 7543fi 7544if test -z "$CPP"; then 7545 if ${ac_cv_prog_CPP+:} false; then : 7546 $as_echo_n "(cached) " >&6 7547else 7548 # Double quotes because CPP needs to be expanded 7549 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7550 do 7551 ac_preproc_ok=false 7552for ac_c_preproc_warn_flag in '' yes 7553do 7554 # Use a header file that comes with gcc, so configuring glibc 7555 # with a fresh cross-compiler works. 7556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7557 # <limits.h> exists even on freestanding compilers. 7558 # On the NeXT, cc -E runs the code through the compiler's parser, 7559 # not just through cpp. "Syntax error" is here to catch this case. 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561/* end confdefs.h. */ 7562#ifdef __STDC__ 7563# include <limits.h> 7564#else 7565# include <assert.h> 7566#endif 7567 Syntax error 7568_ACEOF 7569if ac_fn_c_try_cpp "$LINENO"; then : 7570 7571else 7572 # Broken: fails on valid input. 7573continue 7574fi 7575rm -f conftest.err conftest.i conftest.$ac_ext 7576 7577 # OK, works on sane cases. Now check whether nonexistent headers 7578 # can be detected and how. 7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7580/* end confdefs.h. */ 7581#include <ac_nonexistent.h> 7582_ACEOF 7583if ac_fn_c_try_cpp "$LINENO"; then : 7584 # Broken: success on invalid input. 7585continue 7586else 7587 # Passes both tests. 7588ac_preproc_ok=: 7589break 7590fi 7591rm -f conftest.err conftest.i conftest.$ac_ext 7592 7593done 7594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7595rm -f conftest.i conftest.err conftest.$ac_ext 7596if $ac_preproc_ok; then : 7597 break 7598fi 7599 7600 done 7601 ac_cv_prog_CPP=$CPP 7602 7603fi 7604 CPP=$ac_cv_prog_CPP 7605else 7606 ac_cv_prog_CPP=$CPP 7607fi 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7609$as_echo "$CPP" >&6; } 7610ac_preproc_ok=false 7611for ac_c_preproc_warn_flag in '' yes 7612do 7613 # Use a header file that comes with gcc, so configuring glibc 7614 # with a fresh cross-compiler works. 7615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7616 # <limits.h> exists even on freestanding compilers. 7617 # On the NeXT, cc -E runs the code through the compiler's parser, 7618 # not just through cpp. "Syntax error" is here to catch this case. 7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7620/* end confdefs.h. */ 7621#ifdef __STDC__ 7622# include <limits.h> 7623#else 7624# include <assert.h> 7625#endif 7626 Syntax error 7627_ACEOF 7628if ac_fn_c_try_cpp "$LINENO"; then : 7629 7630else 7631 # Broken: fails on valid input. 7632continue 7633fi 7634rm -f conftest.err conftest.i conftest.$ac_ext 7635 7636 # OK, works on sane cases. Now check whether nonexistent headers 7637 # can be detected and how. 7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640#include <ac_nonexistent.h> 7641_ACEOF 7642if ac_fn_c_try_cpp "$LINENO"; then : 7643 # Broken: success on invalid input. 7644continue 7645else 7646 # Passes both tests. 7647ac_preproc_ok=: 7648break 7649fi 7650rm -f conftest.err conftest.i conftest.$ac_ext 7651 7652done 7653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7654rm -f conftest.i conftest.err conftest.$ac_ext 7655if $ac_preproc_ok; then : 7656 7657else 7658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7660as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7661See \`config.log' for more details" "$LINENO" 5; } 7662fi 7663 7664ac_ext=c 7665ac_cpp='$CPP $CPPFLAGS' 7666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7668ac_compiler_gnu=$ac_cv_c_compiler_gnu 7669 7670 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7672$as_echo_n "checking for ANSI C header files... " >&6; } 7673if ${ac_cv_header_stdc+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678#include <stdlib.h> 7679#include <stdarg.h> 7680#include <string.h> 7681#include <float.h> 7682 7683int 7684main () 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_compile "$LINENO"; then : 7692 ac_cv_header_stdc=yes 7693else 7694 ac_cv_header_stdc=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7697 7698if test $ac_cv_header_stdc = yes; then 7699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702#include <string.h> 7703 7704_ACEOF 7705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7706 $EGREP "memchr" >/dev/null 2>&1; then : 7707 7708else 7709 ac_cv_header_stdc=no 7710fi 7711rm -f conftest* 7712 7713fi 7714 7715if test $ac_cv_header_stdc = yes; then 7716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7718/* end confdefs.h. */ 7719#include <stdlib.h> 7720 7721_ACEOF 7722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7723 $EGREP "free" >/dev/null 2>&1; then : 7724 7725else 7726 ac_cv_header_stdc=no 7727fi 7728rm -f conftest* 7729 7730fi 7731 7732if test $ac_cv_header_stdc = yes; then 7733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7734 if test "$cross_compiling" = yes; then : 7735 : 7736else 7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738/* end confdefs.h. */ 7739#include <ctype.h> 7740#include <stdlib.h> 7741#if ((' ' & 0x0FF) == 0x020) 7742# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7743# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7744#else 7745# define ISLOWER(c) \ 7746 (('a' <= (c) && (c) <= 'i') \ 7747 || ('j' <= (c) && (c) <= 'r') \ 7748 || ('s' <= (c) && (c) <= 'z')) 7749# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7750#endif 7751 7752#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7753int 7754main () 7755{ 7756 int i; 7757 for (i = 0; i < 256; i++) 7758 if (XOR (islower (i), ISLOWER (i)) 7759 || toupper (i) != TOUPPER (i)) 7760 return 2; 7761 return 0; 7762} 7763_ACEOF 7764if ac_fn_c_try_run "$LINENO"; then : 7765 7766else 7767 ac_cv_header_stdc=no 7768fi 7769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7770 conftest.$ac_objext conftest.beam conftest.$ac_ext 7771fi 7772 7773fi 7774fi 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7776$as_echo "$ac_cv_header_stdc" >&6; } 7777if test $ac_cv_header_stdc = yes; then 7778 7779$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7780 7781fi 7782 7783# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7784for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7785 inttypes.h stdint.h unistd.h 7786do : 7787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7788ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7789" 7790if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7791 cat >>confdefs.h <<_ACEOF 7792#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7793_ACEOF 7794 7795fi 7796 7797done 7798 7799 7800for ac_header in dlfcn.h 7801do : 7802 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7803" 7804if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7805 cat >>confdefs.h <<_ACEOF 7806#define HAVE_DLFCN_H 1 7807_ACEOF 7808 7809fi 7810 7811done 7812 7813 7814 7815 7816 7817# Set options 7818 7819 7820 7821 enable_dlopen=no 7822 7823 7824 enable_win32_dll=no 7825 7826 7827 7828 # Check whether --enable-static was given. 7829if test "${enable_static+set}" = set; then : 7830 enableval=$enable_static; p=${PACKAGE-default} 7831 case $enableval in 7832 yes) enable_static=yes ;; 7833 no) enable_static=no ;; 7834 *) 7835 enable_static=no 7836 # Look at the argument we got. We use all the common list separators. 7837 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7838 for pkg in $enableval; do 7839 IFS=$lt_save_ifs 7840 if test "X$pkg" = "X$p"; then 7841 enable_static=yes 7842 fi 7843 done 7844 IFS=$lt_save_ifs 7845 ;; 7846 esac 7847else 7848 enable_static=yes 7849fi 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860# Check whether --with-pic was given. 7861if test "${with_pic+set}" = set; then : 7862 withval=$with_pic; lt_p=${PACKAGE-default} 7863 case $withval in 7864 yes|no) pic_mode=$withval ;; 7865 *) 7866 pic_mode=default 7867 # Look at the argument we got. We use all the common list separators. 7868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7869 for lt_pkg in $withval; do 7870 IFS=$lt_save_ifs 7871 if test "X$lt_pkg" = "X$lt_p"; then 7872 pic_mode=yes 7873 fi 7874 done 7875 IFS=$lt_save_ifs 7876 ;; 7877 esac 7878else 7879 pic_mode=default 7880fi 7881 7882 7883 7884 7885 7886 7887 7888 7889 # Check whether --enable-fast-install was given. 7890if test "${enable_fast_install+set}" = set; then : 7891 enableval=$enable_fast_install; p=${PACKAGE-default} 7892 case $enableval in 7893 yes) enable_fast_install=yes ;; 7894 no) enable_fast_install=no ;; 7895 *) 7896 enable_fast_install=no 7897 # Look at the argument we got. We use all the common list separators. 7898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7899 for pkg in $enableval; do 7900 IFS=$lt_save_ifs 7901 if test "X$pkg" = "X$p"; then 7902 enable_fast_install=yes 7903 fi 7904 done 7905 IFS=$lt_save_ifs 7906 ;; 7907 esac 7908else 7909 enable_fast_install=yes 7910fi 7911 7912 7913 7914 7915 7916 7917 7918 7919 shared_archive_member_spec= 7920case $host,$enable_shared in 7921power*-*-aix[5-9]*,yes) 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7923$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7924 7925# Check whether --with-aix-soname was given. 7926if test "${with_aix_soname+set}" = set; then : 7927 withval=$with_aix_soname; case $withval in 7928 aix|svr4|both) 7929 ;; 7930 *) 7931 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7932 ;; 7933 esac 7934 lt_cv_with_aix_soname=$with_aix_soname 7935else 7936 if ${lt_cv_with_aix_soname+:} false; then : 7937 $as_echo_n "(cached) " >&6 7938else 7939 lt_cv_with_aix_soname=aix 7940fi 7941 7942 with_aix_soname=$lt_cv_with_aix_soname 7943fi 7944 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7946$as_echo "$with_aix_soname" >&6; } 7947 if test aix != "$with_aix_soname"; then 7948 # For the AIX way of multilib, we name the shared archive member 7949 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7950 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7951 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7952 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7953 if test 64 = "${OBJECT_MODE-32}"; then 7954 shared_archive_member_spec=shr_64 7955 else 7956 shared_archive_member_spec=shr 7957 fi 7958 fi 7959 ;; 7960*) 7961 with_aix_soname=aix 7962 ;; 7963esac 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974# This can be used to rebuild libtool when needed 7975LIBTOOL_DEPS=$ltmain 7976 7977# Always use our own libtool. 7978LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009test -z "$LN_S" && LN_S="ln -s" 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024if test -n "${ZSH_VERSION+set}"; then 8025 setopt NO_GLOB_SUBST 8026fi 8027 8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8029$as_echo_n "checking for objdir... " >&6; } 8030if ${lt_cv_objdir+:} false; then : 8031 $as_echo_n "(cached) " >&6 8032else 8033 rm -f .libs 2>/dev/null 8034mkdir .libs 2>/dev/null 8035if test -d .libs; then 8036 lt_cv_objdir=.libs 8037else 8038 # MS-DOS does not allow filenames that begin with a dot. 8039 lt_cv_objdir=_libs 8040fi 8041rmdir .libs 2>/dev/null 8042fi 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8044$as_echo "$lt_cv_objdir" >&6; } 8045objdir=$lt_cv_objdir 8046 8047 8048 8049 8050 8051cat >>confdefs.h <<_ACEOF 8052#define LT_OBJDIR "$lt_cv_objdir/" 8053_ACEOF 8054 8055 8056 8057 8058case $host_os in 8059aix3*) 8060 # AIX sometimes has problems with the GCC collect2 program. For some 8061 # reason, if we set the COLLECT_NAMES environment variable, the problems 8062 # vanish in a puff of smoke. 8063 if test set != "${COLLECT_NAMES+set}"; then 8064 COLLECT_NAMES= 8065 export COLLECT_NAMES 8066 fi 8067 ;; 8068esac 8069 8070# Global variables: 8071ofile=libtool 8072can_build_shared=yes 8073 8074# All known linkers require a '.a' archive for static linking (except MSVC, 8075# which needs '.lib'). 8076libext=a 8077 8078with_gnu_ld=$lt_cv_prog_gnu_ld 8079 8080old_CC=$CC 8081old_CFLAGS=$CFLAGS 8082 8083# Set sane defaults for various variables 8084test -z "$CC" && CC=cc 8085test -z "$LTCC" && LTCC=$CC 8086test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8087test -z "$LD" && LD=ld 8088test -z "$ac_objext" && ac_objext=o 8089 8090func_cc_basename $compiler 8091cc_basename=$func_cc_basename_result 8092 8093 8094# Only perform the check for file, if the check method requires it 8095test -z "$MAGIC_CMD" && MAGIC_CMD=file 8096case $deplibs_check_method in 8097file_magic*) 8098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8100$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8101if ${lt_cv_path_MAGIC_CMD+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 case $MAGIC_CMD in 8105[\\/*] | ?:[\\/]*) 8106 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8107 ;; 8108*) 8109 lt_save_MAGIC_CMD=$MAGIC_CMD 8110 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8112 for ac_dir in $ac_dummy; do 8113 IFS=$lt_save_ifs 8114 test -z "$ac_dir" && ac_dir=. 8115 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8116 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8117 if test -n "$file_magic_test_file"; then 8118 case $deplibs_check_method in 8119 "file_magic "*) 8120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8121 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8123 $EGREP "$file_magic_regex" > /dev/null; then 8124 : 8125 else 8126 cat <<_LT_EOF 1>&2 8127 8128*** Warning: the command libtool uses to detect shared libraries, 8129*** $file_magic_cmd, produces output that libtool cannot recognize. 8130*** The result is that libtool may fail to recognize shared libraries 8131*** as such. This will affect the creation of libtool libraries that 8132*** depend on shared libraries, but programs linked with such libtool 8133*** libraries will work regardless of this problem. Nevertheless, you 8134*** may want to report the problem to your system manager and/or to 8135*** [email protected] 8136 8137_LT_EOF 8138 fi ;; 8139 esac 8140 fi 8141 break 8142 fi 8143 done 8144 IFS=$lt_save_ifs 8145 MAGIC_CMD=$lt_save_MAGIC_CMD 8146 ;; 8147esac 8148fi 8149 8150MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8151if test -n "$MAGIC_CMD"; then 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8153$as_echo "$MAGIC_CMD" >&6; } 8154else 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8156$as_echo "no" >&6; } 8157fi 8158 8159 8160 8161 8162 8163if test -z "$lt_cv_path_MAGIC_CMD"; then 8164 if test -n "$ac_tool_prefix"; then 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8166$as_echo_n "checking for file... " >&6; } 8167if ${lt_cv_path_MAGIC_CMD+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169else 8170 case $MAGIC_CMD in 8171[\\/*] | ?:[\\/]*) 8172 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8173 ;; 8174*) 8175 lt_save_MAGIC_CMD=$MAGIC_CMD 8176 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8178 for ac_dir in $ac_dummy; do 8179 IFS=$lt_save_ifs 8180 test -z "$ac_dir" && ac_dir=. 8181 if test -f "$ac_dir/file"; then 8182 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8183 if test -n "$file_magic_test_file"; then 8184 case $deplibs_check_method in 8185 "file_magic "*) 8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8187 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8189 $EGREP "$file_magic_regex" > /dev/null; then 8190 : 8191 else 8192 cat <<_LT_EOF 1>&2 8193 8194*** Warning: the command libtool uses to detect shared libraries, 8195*** $file_magic_cmd, produces output that libtool cannot recognize. 8196*** The result is that libtool may fail to recognize shared libraries 8197*** as such. This will affect the creation of libtool libraries that 8198*** depend on shared libraries, but programs linked with such libtool 8199*** libraries will work regardless of this problem. Nevertheless, you 8200*** may want to report the problem to your system manager and/or to 8201*** [email protected] 8202 8203_LT_EOF 8204 fi ;; 8205 esac 8206 fi 8207 break 8208 fi 8209 done 8210 IFS=$lt_save_ifs 8211 MAGIC_CMD=$lt_save_MAGIC_CMD 8212 ;; 8213esac 8214fi 8215 8216MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8217if test -n "$MAGIC_CMD"; then 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8219$as_echo "$MAGIC_CMD" >&6; } 8220else 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222$as_echo "no" >&6; } 8223fi 8224 8225 8226 else 8227 MAGIC_CMD=: 8228 fi 8229fi 8230 8231 fi 8232 ;; 8233esac 8234 8235# Use C for the default configuration in the libtool script 8236 8237lt_save_CC=$CC 8238ac_ext=c 8239ac_cpp='$CPP $CPPFLAGS' 8240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8242ac_compiler_gnu=$ac_cv_c_compiler_gnu 8243 8244 8245# Source file extension for C test sources. 8246ac_ext=c 8247 8248# Object file extension for compiled C test sources. 8249objext=o 8250objext=$objext 8251 8252# Code to be used in simple compile tests 8253lt_simple_compile_test_code="int some_variable = 0;" 8254 8255# Code to be used in simple link tests 8256lt_simple_link_test_code='int main(){return(0);}' 8257 8258 8259 8260 8261 8262 8263 8264# If no C compiler was specified, use CC. 8265LTCC=${LTCC-"$CC"} 8266 8267# If no C compiler flags were specified, use CFLAGS. 8268LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8269 8270# Allow CC to be a program name with arguments. 8271compiler=$CC 8272 8273# Save the default compiler, since it gets overwritten when the other 8274# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8275compiler_DEFAULT=$CC 8276 8277# save warnings/boilerplate of simple test code 8278ac_outfile=conftest.$ac_objext 8279echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8281_lt_compiler_boilerplate=`cat conftest.err` 8282$RM conftest* 8283 8284ac_outfile=conftest.$ac_objext 8285echo "$lt_simple_link_test_code" >conftest.$ac_ext 8286eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8287_lt_linker_boilerplate=`cat conftest.err` 8288$RM -r conftest* 8289 8290 8291if test -n "$compiler"; then 8292 8293lt_prog_compiler_no_builtin_flag= 8294 8295if test yes = "$GCC"; then 8296 case $cc_basename in 8297 nvcc*) 8298 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8299 *) 8300 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8301 esac 8302 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8304$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8305if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 lt_cv_prog_compiler_rtti_exceptions=no 8309 ac_outfile=conftest.$ac_objext 8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8311 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8312 # Insert the option either (1) after the last *FLAGS variable, or 8313 # (2) before a word containing "conftest.", or (3) at the end. 8314 # Note that $ac_compile itself does not contain backslashes and begins 8315 # with a dollar sign (not a hyphen), so the echo should work correctly. 8316 # The option is referenced via a variable to avoid confusing sed. 8317 lt_compile=`echo "$ac_compile" | $SED \ 8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8320 -e 's:$: $lt_compiler_flag:'` 8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8322 (eval "$lt_compile" 2>conftest.err) 8323 ac_status=$? 8324 cat conftest.err >&5 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 if (exit $ac_status) && test -s "$ac_outfile"; then 8327 # The compiler can only warn and ignore the option if not recognized 8328 # So say no if there are warnings other than the usual output. 8329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8332 lt_cv_prog_compiler_rtti_exceptions=yes 8333 fi 8334 fi 8335 $RM conftest* 8336 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8339$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8340 8341if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8342 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8343else 8344 : 8345fi 8346 8347fi 8348 8349 8350 8351 8352 8353 8354 lt_prog_compiler_wl= 8355lt_prog_compiler_pic= 8356lt_prog_compiler_static= 8357 8358 8359 if test yes = "$GCC"; then 8360 lt_prog_compiler_wl='-Wl,' 8361 lt_prog_compiler_static='-static' 8362 8363 case $host_os in 8364 aix*) 8365 # All AIX code is PIC. 8366 if test ia64 = "$host_cpu"; then 8367 # AIX 5 now supports IA64 processor 8368 lt_prog_compiler_static='-Bstatic' 8369 fi 8370 lt_prog_compiler_pic='-fPIC' 8371 ;; 8372 8373 amigaos*) 8374 case $host_cpu in 8375 powerpc) 8376 # see comment about AmigaOS4 .so support 8377 lt_prog_compiler_pic='-fPIC' 8378 ;; 8379 m68k) 8380 # FIXME: we need at least 68020 code to build shared libraries, but 8381 # adding the '-m68020' flag to GCC prevents building anything better, 8382 # like '-m68040'. 8383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8384 ;; 8385 esac 8386 ;; 8387 8388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8389 # PIC is the default for these OSes. 8390 ;; 8391 8392 mingw* | cygwin* | pw32* | os2* | cegcc*) 8393 # This hack is so that the source file can tell whether it is being 8394 # built for inclusion in a dll (and should export symbols for example). 8395 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8396 # (--disable-auto-import) libraries 8397 lt_prog_compiler_pic='-DDLL_EXPORT' 8398 case $host_os in 8399 os2*) 8400 lt_prog_compiler_static='$wl-static' 8401 ;; 8402 esac 8403 ;; 8404 8405 darwin* | rhapsody*) 8406 # PIC is the default on this platform 8407 # Common symbols not allowed in MH_DYLIB files 8408 lt_prog_compiler_pic='-fno-common' 8409 ;; 8410 8411 haiku*) 8412 # PIC is the default for Haiku. 8413 # The "-static" flag exists, but is broken. 8414 lt_prog_compiler_static= 8415 ;; 8416 8417 hpux*) 8418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8420 # sets the default TLS model and affects inlining. 8421 case $host_cpu in 8422 hppa*64*) 8423 # +Z the default 8424 ;; 8425 *) 8426 lt_prog_compiler_pic='-fPIC' 8427 ;; 8428 esac 8429 ;; 8430 8431 interix[3-9]*) 8432 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8433 # Instead, we relocate shared libraries at runtime. 8434 ;; 8435 8436 msdosdjgpp*) 8437 # Just because we use GCC doesn't mean we suddenly get shared libraries 8438 # on systems that don't support them. 8439 lt_prog_compiler_can_build_shared=no 8440 enable_shared=no 8441 ;; 8442 8443 *nto* | *qnx*) 8444 # QNX uses GNU C++, but need to define -shared option too, otherwise 8445 # it will coredump. 8446 lt_prog_compiler_pic='-fPIC -shared' 8447 ;; 8448 8449 sysv4*MP*) 8450 if test -d /usr/nec; then 8451 lt_prog_compiler_pic=-Kconform_pic 8452 fi 8453 ;; 8454 8455 *) 8456 lt_prog_compiler_pic='-fPIC' 8457 ;; 8458 esac 8459 8460 case $cc_basename in 8461 nvcc*) # Cuda Compiler Driver 2.2 8462 lt_prog_compiler_wl='-Xlinker ' 8463 if test -n "$lt_prog_compiler_pic"; then 8464 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8465 fi 8466 ;; 8467 esac 8468 else 8469 # PORTME Check for flag to pass linker flags through the system compiler. 8470 case $host_os in 8471 aix*) 8472 lt_prog_compiler_wl='-Wl,' 8473 if test ia64 = "$host_cpu"; then 8474 # AIX 5 now supports IA64 processor 8475 lt_prog_compiler_static='-Bstatic' 8476 else 8477 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8478 fi 8479 ;; 8480 8481 darwin* | rhapsody*) 8482 # PIC is the default on this platform 8483 # Common symbols not allowed in MH_DYLIB files 8484 lt_prog_compiler_pic='-fno-common' 8485 case $cc_basename in 8486 nagfor*) 8487 # NAG Fortran compiler 8488 lt_prog_compiler_wl='-Wl,-Wl,,' 8489 lt_prog_compiler_pic='-PIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 ;; 8492 esac 8493 ;; 8494 8495 mingw* | cygwin* | pw32* | os2* | cegcc*) 8496 # This hack is so that the source file can tell whether it is being 8497 # built for inclusion in a dll (and should export symbols for example). 8498 lt_prog_compiler_pic='-DDLL_EXPORT' 8499 case $host_os in 8500 os2*) 8501 lt_prog_compiler_static='$wl-static' 8502 ;; 8503 esac 8504 ;; 8505 8506 hpux9* | hpux10* | hpux11*) 8507 lt_prog_compiler_wl='-Wl,' 8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8509 # not for PA HP-UX. 8510 case $host_cpu in 8511 hppa*64*|ia64*) 8512 # +Z the default 8513 ;; 8514 *) 8515 lt_prog_compiler_pic='+Z' 8516 ;; 8517 esac 8518 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8519 lt_prog_compiler_static='$wl-a ${wl}archive' 8520 ;; 8521 8522 irix5* | irix6* | nonstopux*) 8523 lt_prog_compiler_wl='-Wl,' 8524 # PIC (with -KPIC) is the default. 8525 lt_prog_compiler_static='-non_shared' 8526 ;; 8527 8528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8529 case $cc_basename in 8530 # old Intel for x86_64, which still supported -KPIC. 8531 ecc*) 8532 lt_prog_compiler_wl='-Wl,' 8533 lt_prog_compiler_pic='-KPIC' 8534 lt_prog_compiler_static='-static' 8535 ;; 8536 # icc used to be incompatible with GCC. 8537 # ICC 10 doesn't accept -KPIC any more. 8538 icc* | ifort*) 8539 lt_prog_compiler_wl='-Wl,' 8540 lt_prog_compiler_pic='-fPIC' 8541 lt_prog_compiler_static='-static' 8542 ;; 8543 # Lahey Fortran 8.1. 8544 lf95*) 8545 lt_prog_compiler_wl='-Wl,' 8546 lt_prog_compiler_pic='--shared' 8547 lt_prog_compiler_static='--static' 8548 ;; 8549 nagfor*) 8550 # NAG Fortran compiler 8551 lt_prog_compiler_wl='-Wl,-Wl,,' 8552 lt_prog_compiler_pic='-PIC' 8553 lt_prog_compiler_static='-Bstatic' 8554 ;; 8555 tcc*) 8556 # Fabrice Bellard et al's Tiny C Compiler 8557 lt_prog_compiler_wl='-Wl,' 8558 lt_prog_compiler_pic='-fPIC' 8559 lt_prog_compiler_static='-static' 8560 ;; 8561 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8562 # Portland Group compilers (*not* the Pentium gcc compiler, 8563 # which looks to be a dead project) 8564 lt_prog_compiler_wl='-Wl,' 8565 lt_prog_compiler_pic='-fpic' 8566 lt_prog_compiler_static='-Bstatic' 8567 ;; 8568 ccc*) 8569 lt_prog_compiler_wl='-Wl,' 8570 # All Alpha code is PIC. 8571 lt_prog_compiler_static='-non_shared' 8572 ;; 8573 xl* | bgxl* | bgf* | mpixl*) 8574 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8575 lt_prog_compiler_wl='-Wl,' 8576 lt_prog_compiler_pic='-qpic' 8577 lt_prog_compiler_static='-qstaticlink' 8578 ;; 8579 *) 8580 case `$CC -V 2>&1 | sed 5q` in 8581 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8582 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8583 lt_prog_compiler_pic='-KPIC' 8584 lt_prog_compiler_static='-Bstatic' 8585 lt_prog_compiler_wl='' 8586 ;; 8587 *Sun\ F* | *Sun*Fortran*) 8588 lt_prog_compiler_pic='-KPIC' 8589 lt_prog_compiler_static='-Bstatic' 8590 lt_prog_compiler_wl='-Qoption ld ' 8591 ;; 8592 *Sun\ C*) 8593 # Sun C 5.9 8594 lt_prog_compiler_pic='-KPIC' 8595 lt_prog_compiler_static='-Bstatic' 8596 lt_prog_compiler_wl='-Wl,' 8597 ;; 8598 *Intel*\ [CF]*Compiler*) 8599 lt_prog_compiler_wl='-Wl,' 8600 lt_prog_compiler_pic='-fPIC' 8601 lt_prog_compiler_static='-static' 8602 ;; 8603 *Portland\ Group*) 8604 lt_prog_compiler_wl='-Wl,' 8605 lt_prog_compiler_pic='-fpic' 8606 lt_prog_compiler_static='-Bstatic' 8607 ;; 8608 esac 8609 ;; 8610 esac 8611 ;; 8612 8613 newsos6) 8614 lt_prog_compiler_pic='-KPIC' 8615 lt_prog_compiler_static='-Bstatic' 8616 ;; 8617 8618 *nto* | *qnx*) 8619 # QNX uses GNU C++, but need to define -shared option too, otherwise 8620 # it will coredump. 8621 lt_prog_compiler_pic='-fPIC -shared' 8622 ;; 8623 8624 osf3* | osf4* | osf5*) 8625 lt_prog_compiler_wl='-Wl,' 8626 # All OSF/1 code is PIC. 8627 lt_prog_compiler_static='-non_shared' 8628 ;; 8629 8630 rdos*) 8631 lt_prog_compiler_static='-non_shared' 8632 ;; 8633 8634 solaris*) 8635 lt_prog_compiler_pic='-KPIC' 8636 lt_prog_compiler_static='-Bstatic' 8637 case $cc_basename in 8638 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8639 lt_prog_compiler_wl='-Qoption ld ';; 8640 *) 8641 lt_prog_compiler_wl='-Wl,';; 8642 esac 8643 ;; 8644 8645 sunos4*) 8646 lt_prog_compiler_wl='-Qoption ld ' 8647 lt_prog_compiler_pic='-PIC' 8648 lt_prog_compiler_static='-Bstatic' 8649 ;; 8650 8651 sysv4 | sysv4.2uw2* | sysv4.3*) 8652 lt_prog_compiler_wl='-Wl,' 8653 lt_prog_compiler_pic='-KPIC' 8654 lt_prog_compiler_static='-Bstatic' 8655 ;; 8656 8657 sysv4*MP*) 8658 if test -d /usr/nec; then 8659 lt_prog_compiler_pic='-Kconform_pic' 8660 lt_prog_compiler_static='-Bstatic' 8661 fi 8662 ;; 8663 8664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8665 lt_prog_compiler_wl='-Wl,' 8666 lt_prog_compiler_pic='-KPIC' 8667 lt_prog_compiler_static='-Bstatic' 8668 ;; 8669 8670 unicos*) 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_can_build_shared=no 8673 ;; 8674 8675 uts4*) 8676 lt_prog_compiler_pic='-pic' 8677 lt_prog_compiler_static='-Bstatic' 8678 ;; 8679 8680 *) 8681 lt_prog_compiler_can_build_shared=no 8682 ;; 8683 esac 8684 fi 8685 8686case $host_os in 8687 # For platforms that do not support PIC, -DPIC is meaningless: 8688 *djgpp*) 8689 lt_prog_compiler_pic= 8690 ;; 8691 *) 8692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8693 ;; 8694esac 8695 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8697$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8698if ${lt_cv_prog_compiler_pic+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8704$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8705lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8706 8707# 8708# Check to make sure the PIC flag actually works. 8709# 8710if test -n "$lt_prog_compiler_pic"; then 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8712$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8713if ${lt_cv_prog_compiler_pic_works+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 lt_cv_prog_compiler_pic_works=no 8717 ac_outfile=conftest.$ac_objext 8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8719 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8720 # Insert the option either (1) after the last *FLAGS variable, or 8721 # (2) before a word containing "conftest.", or (3) at the end. 8722 # Note that $ac_compile itself does not contain backslashes and begins 8723 # with a dollar sign (not a hyphen), so the echo should work correctly. 8724 # The option is referenced via a variable to avoid confusing sed. 8725 lt_compile=`echo "$ac_compile" | $SED \ 8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8728 -e 's:$: $lt_compiler_flag:'` 8729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8730 (eval "$lt_compile" 2>conftest.err) 8731 ac_status=$? 8732 cat conftest.err >&5 8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 if (exit $ac_status) && test -s "$ac_outfile"; then 8735 # The compiler can only warn and ignore the option if not recognized 8736 # So say no if there are warnings other than the usual output. 8737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8740 lt_cv_prog_compiler_pic_works=yes 8741 fi 8742 fi 8743 $RM conftest* 8744 8745fi 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8747$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8748 8749if test yes = "$lt_cv_prog_compiler_pic_works"; then 8750 case $lt_prog_compiler_pic in 8751 "" | " "*) ;; 8752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8753 esac 8754else 8755 lt_prog_compiler_pic= 8756 lt_prog_compiler_can_build_shared=no 8757fi 8758 8759fi 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771# 8772# Check to make sure the static flag actually works. 8773# 8774wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8776$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8777if ${lt_cv_prog_compiler_static_works+:} false; then : 8778 $as_echo_n "(cached) " >&6 8779else 8780 lt_cv_prog_compiler_static_works=no 8781 save_LDFLAGS=$LDFLAGS 8782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8783 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8785 # The linker can only warn and ignore the option if not recognized 8786 # So say no if there are warnings 8787 if test -s conftest.err; then 8788 # Append any errors to the config.log. 8789 cat conftest.err 1>&5 8790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8792 if diff conftest.exp conftest.er2 >/dev/null; then 8793 lt_cv_prog_compiler_static_works=yes 8794 fi 8795 else 8796 lt_cv_prog_compiler_static_works=yes 8797 fi 8798 fi 8799 $RM -r conftest* 8800 LDFLAGS=$save_LDFLAGS 8801 8802fi 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8804$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8805 8806if test yes = "$lt_cv_prog_compiler_static_works"; then 8807 : 8808else 8809 lt_prog_compiler_static= 8810fi 8811 8812 8813 8814 8815 8816 8817 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8820if ${lt_cv_prog_compiler_c_o+:} false; then : 8821 $as_echo_n "(cached) " >&6 8822else 8823 lt_cv_prog_compiler_c_o=no 8824 $RM -r conftest 2>/dev/null 8825 mkdir conftest 8826 cd conftest 8827 mkdir out 8828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8829 8830 lt_compiler_flag="-o out/conftest2.$ac_objext" 8831 # Insert the option either (1) after the last *FLAGS variable, or 8832 # (2) before a word containing "conftest.", or (3) at the end. 8833 # Note that $ac_compile itself does not contain backslashes and begins 8834 # with a dollar sign (not a hyphen), so the echo should work correctly. 8835 lt_compile=`echo "$ac_compile" | $SED \ 8836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8838 -e 's:$: $lt_compiler_flag:'` 8839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8840 (eval "$lt_compile" 2>out/conftest.err) 8841 ac_status=$? 8842 cat out/conftest.err >&5 8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8844 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8845 then 8846 # The compiler can only warn and ignore the option if not recognized 8847 # So say no if there are warnings 8848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8851 lt_cv_prog_compiler_c_o=yes 8852 fi 8853 fi 8854 chmod u+w . 2>&5 8855 $RM conftest* 8856 # SGI C++ compiler will create directory out/ii_files/ for 8857 # template instantiation 8858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8859 $RM out/* && rmdir out 8860 cd .. 8861 $RM -r conftest 8862 $RM conftest* 8863 8864fi 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8866$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8867 8868 8869 8870 8871 8872 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8875if ${lt_cv_prog_compiler_c_o+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 lt_cv_prog_compiler_c_o=no 8879 $RM -r conftest 2>/dev/null 8880 mkdir conftest 8881 cd conftest 8882 mkdir out 8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8884 8885 lt_compiler_flag="-o out/conftest2.$ac_objext" 8886 # Insert the option either (1) after the last *FLAGS variable, or 8887 # (2) before a word containing "conftest.", or (3) at the end. 8888 # Note that $ac_compile itself does not contain backslashes and begins 8889 # with a dollar sign (not a hyphen), so the echo should work correctly. 8890 lt_compile=`echo "$ac_compile" | $SED \ 8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8893 -e 's:$: $lt_compiler_flag:'` 8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8895 (eval "$lt_compile" 2>out/conftest.err) 8896 ac_status=$? 8897 cat out/conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8900 then 8901 # The compiler can only warn and ignore the option if not recognized 8902 # So say no if there are warnings 8903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8906 lt_cv_prog_compiler_c_o=yes 8907 fi 8908 fi 8909 chmod u+w . 2>&5 8910 $RM conftest* 8911 # SGI C++ compiler will create directory out/ii_files/ for 8912 # template instantiation 8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8914 $RM out/* && rmdir out 8915 cd .. 8916 $RM -r conftest 8917 $RM conftest* 8918 8919fi 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8921$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8922 8923 8924 8925 8926hard_links=nottested 8927if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8928 # do not overwrite the value of need_locks provided by the user 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8930$as_echo_n "checking if we can lock with hard links... " >&6; } 8931 hard_links=yes 8932 $RM conftest* 8933 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8934 touch conftest.a 8935 ln conftest.a conftest.b 2>&5 || hard_links=no 8936 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8938$as_echo "$hard_links" >&6; } 8939 if test no = "$hard_links"; then 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8941$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8942 need_locks=warn 8943 fi 8944else 8945 need_locks=no 8946fi 8947 8948 8949 8950 8951 8952 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8954$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8955 8956 runpath_var= 8957 allow_undefined_flag= 8958 always_export_symbols=no 8959 archive_cmds= 8960 archive_expsym_cmds= 8961 compiler_needs_object=no 8962 enable_shared_with_static_runtimes=no 8963 export_dynamic_flag_spec= 8964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8965 hardcode_automatic=no 8966 hardcode_direct=no 8967 hardcode_direct_absolute=no 8968 hardcode_libdir_flag_spec= 8969 hardcode_libdir_separator= 8970 hardcode_minus_L=no 8971 hardcode_shlibpath_var=unsupported 8972 inherit_rpath=no 8973 link_all_deplibs=unknown 8974 module_cmds= 8975 module_expsym_cmds= 8976 old_archive_from_new_cmds= 8977 old_archive_from_expsyms_cmds= 8978 thread_safe_flag_spec= 8979 whole_archive_flag_spec= 8980 # include_expsyms should be a list of space-separated symbols to be *always* 8981 # included in the symbol list 8982 include_expsyms= 8983 # exclude_expsyms can be an extended regexp of symbols to exclude 8984 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8985 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8986 # as well as any symbol that contains 'd'. 8987 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8989 # platforms (ab)use it in PIC code, but their linkers get confused if 8990 # the symbol is explicitly referenced. Since portable code cannot 8991 # rely on this symbol name, it's probably fine to never include it in 8992 # preloaded symbol tables. 8993 # Exclude shared library initialization/finalization symbols. 8994 extract_expsyms_cmds= 8995 8996 case $host_os in 8997 cygwin* | mingw* | pw32* | cegcc*) 8998 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8999 # When not using gcc, we currently assume that we are using 9000 # Microsoft Visual C++. 9001 if test yes != "$GCC"; then 9002 with_gnu_ld=no 9003 fi 9004 ;; 9005 interix*) 9006 # we just hope/assume this is gcc and not c89 (= MSVC++) 9007 with_gnu_ld=yes 9008 ;; 9009 openbsd* | bitrig*) 9010 with_gnu_ld=no 9011 ;; 9012 esac 9013 9014 ld_shlibs=yes 9015 9016 # On some targets, GNU ld is compatible enough with the native linker 9017 # that we're better off using the native interface for both. 9018 lt_use_gnu_ld_interface=no 9019 if test yes = "$with_gnu_ld"; then 9020 case $host_os in 9021 aix*) 9022 # The AIX port of GNU ld has always aspired to compatibility 9023 # with the native linker. However, as the warning in the GNU ld 9024 # block says, versions before 2.19.5* couldn't really create working 9025 # shared libraries, regardless of the interface used. 9026 case `$LD -v 2>&1` in 9027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9029 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9030 *) 9031 lt_use_gnu_ld_interface=yes 9032 ;; 9033 esac 9034 ;; 9035 *) 9036 lt_use_gnu_ld_interface=yes 9037 ;; 9038 esac 9039 fi 9040 9041 if test yes = "$lt_use_gnu_ld_interface"; then 9042 # If archive_cmds runs LD, not CC, wlarc should be empty 9043 wlarc='$wl' 9044 9045 # Set some defaults for GNU ld with shared library support. These 9046 # are reset later if shared libraries are not supported. Putting them 9047 # here allows them to be overridden if necessary. 9048 runpath_var=LD_RUN_PATH 9049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9050 export_dynamic_flag_spec='$wl--export-dynamic' 9051 # ancient GNU ld didn't support --whole-archive et. al. 9052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9053 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9054 else 9055 whole_archive_flag_spec= 9056 fi 9057 supports_anon_versioning=no 9058 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9059 *GNU\ gold*) supports_anon_versioning=yes ;; 9060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9063 *\ 2.11.*) ;; # other 2.11 versions 9064 *) supports_anon_versioning=yes ;; 9065 esac 9066 9067 # See if GNU ld supports shared libraries. 9068 case $host_os in 9069 aix[3-9]*) 9070 # On AIX/PPC, the GNU linker is very broken 9071 if test ia64 != "$host_cpu"; then 9072 ld_shlibs=no 9073 cat <<_LT_EOF 1>&2 9074 9075*** Warning: the GNU linker, at least up to release 2.19, is reported 9076*** to be unable to reliably create shared libraries on AIX. 9077*** Therefore, libtool is disabling shared libraries support. If you 9078*** really care for shared libraries, you may want to install binutils 9079*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9080*** You will then need to restart the configuration process. 9081 9082_LT_EOF 9083 fi 9084 ;; 9085 9086 amigaos*) 9087 case $host_cpu in 9088 powerpc) 9089 # see comment about AmigaOS4 .so support 9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9091 archive_expsym_cmds='' 9092 ;; 9093 m68k) 9094 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)' 9095 hardcode_libdir_flag_spec='-L$libdir' 9096 hardcode_minus_L=yes 9097 ;; 9098 esac 9099 ;; 9100 9101 beos*) 9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9103 allow_undefined_flag=unsupported 9104 # Joseph Beckenbach <[email protected]> says some releases of gcc 9105 # support --undefined. This deserves some investigation. FIXME 9106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9107 else 9108 ld_shlibs=no 9109 fi 9110 ;; 9111 9112 cygwin* | mingw* | pw32* | cegcc*) 9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9114 # as there is no search path for DLLs. 9115 hardcode_libdir_flag_spec='-L$libdir' 9116 export_dynamic_flag_spec='$wl--export-all-symbols' 9117 allow_undefined_flag=unsupported 9118 always_export_symbols=no 9119 enable_shared_with_static_runtimes=yes 9120 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' 9121 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9122 9123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9125 # If the export-symbols file already is a .def file, use it as 9126 # is; otherwise, prepend EXPORTS... 9127 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9128 cp $export_symbols $output_objdir/$soname.def; 9129 else 9130 echo EXPORTS > $output_objdir/$soname.def; 9131 cat $export_symbols >> $output_objdir/$soname.def; 9132 fi~ 9133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9134 else 9135 ld_shlibs=no 9136 fi 9137 ;; 9138 9139 haiku*) 9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9141 link_all_deplibs=yes 9142 ;; 9143 9144 os2*) 9145 hardcode_libdir_flag_spec='-L$libdir' 9146 hardcode_minus_L=yes 9147 allow_undefined_flag=unsupported 9148 shrext_cmds=.dll 9149 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9150 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9151 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9152 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9153 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9154 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9155 emximp -o $lib $output_objdir/$libname.def' 9156 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9159 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9160 prefix_cmds="$SED"~ 9161 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9162 prefix_cmds="$prefix_cmds -e 1d"; 9163 fi~ 9164 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9165 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9166 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9167 emximp -o $lib $output_objdir/$libname.def' 9168 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9169 enable_shared_with_static_runtimes=yes 9170 ;; 9171 9172 interix[3-9]*) 9173 hardcode_direct=no 9174 hardcode_shlibpath_var=no 9175 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9176 export_dynamic_flag_spec='$wl-E' 9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9178 # Instead, shared libraries are loaded at an image base (0x10000000 by 9179 # default) and relocated if they conflict, which is a slow very memory 9180 # consuming and fragmenting process. To avoid this, we pick a random, 9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9184 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' 9185 ;; 9186 9187 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9188 tmp_diet=no 9189 if test linux-dietlibc = "$host_os"; then 9190 case $cc_basename in 9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9192 esac 9193 fi 9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9195 && test no = "$tmp_diet" 9196 then 9197 tmp_addflag=' $pic_flag' 9198 tmp_sharedflag='-shared' 9199 case $cc_basename,$host_cpu in 9200 pgcc*) # Portland Group C compiler 9201 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' 9202 tmp_addflag=' $pic_flag' 9203 ;; 9204 pgf77* | pgf90* | pgf95* | pgfortran*) 9205 # Portland Group f77 and f90 compilers 9206 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' 9207 tmp_addflag=' $pic_flag -Mnomain' ;; 9208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9209 tmp_addflag=' -i_dynamic' ;; 9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9211 tmp_addflag=' -i_dynamic -nofor_main' ;; 9212 ifc* | ifort*) # Intel Fortran compiler 9213 tmp_addflag=' -nofor_main' ;; 9214 lf95*) # Lahey Fortran 8.1 9215 whole_archive_flag_spec= 9216 tmp_sharedflag='--shared' ;; 9217 nagfor*) # NAGFOR 5.3 9218 tmp_sharedflag='-Wl,-shared' ;; 9219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9220 tmp_sharedflag='-qmkshrobj' 9221 tmp_addflag= ;; 9222 nvcc*) # Cuda Compiler Driver 2.2 9223 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' 9224 compiler_needs_object=yes 9225 ;; 9226 esac 9227 case `$CC -V 2>&1 | sed 5q` in 9228 *Sun\ C*) # Sun C 5.9 9229 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' 9230 compiler_needs_object=yes 9231 tmp_sharedflag='-G' ;; 9232 *Sun\ F*) # Sun Fortran 8.3 9233 tmp_sharedflag='-G' ;; 9234 esac 9235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9236 9237 if test yes = "$supports_anon_versioning"; then 9238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9240 echo "local: *; };" >> $output_objdir/$libname.ver~ 9241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9242 fi 9243 9244 case $cc_basename in 9245 tcc*) 9246 export_dynamic_flag_spec='-rdynamic' 9247 ;; 9248 xlf* | bgf* | bgxlf* | mpixlf*) 9249 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9250 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9252 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9253 if test yes = "$supports_anon_versioning"; then 9254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9256 echo "local: *; };" >> $output_objdir/$libname.ver~ 9257 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9258 fi 9259 ;; 9260 esac 9261 else 9262 ld_shlibs=no 9263 fi 9264 ;; 9265 9266 netbsd*) 9267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9269 wlarc= 9270 else 9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9273 fi 9274 ;; 9275 9276 solaris*) 9277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9278 ld_shlibs=no 9279 cat <<_LT_EOF 1>&2 9280 9281*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9282*** create shared libraries on Solaris systems. Therefore, libtool 9283*** is disabling shared libraries support. We urge you to upgrade GNU 9284*** binutils to release 2.9.1 or newer. Another option is to modify 9285*** your PATH or compiler configuration so that the native linker is 9286*** used, and then restart. 9287 9288_LT_EOF 9289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9291 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9292 else 9293 ld_shlibs=no 9294 fi 9295 ;; 9296 9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9298 case `$LD -v 2>&1` in 9299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9300 ld_shlibs=no 9301 cat <<_LT_EOF 1>&2 9302 9303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9304*** reliably create shared libraries on SCO systems. Therefore, libtool 9305*** is disabling shared libraries support. We urge you to upgrade GNU 9306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9307*** your PATH or compiler configuration so that the native linker is 9308*** used, and then restart. 9309 9310_LT_EOF 9311 ;; 9312 *) 9313 # For security reasons, it is highly recommended that you always 9314 # use absolute paths for naming shared libraries, and exclude the 9315 # DT_RUNPATH tag from executables and libraries. But doing so 9316 # requires that you compile everything twice, which is a pain. 9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9321 else 9322 ld_shlibs=no 9323 fi 9324 ;; 9325 esac 9326 ;; 9327 9328 sunos4*) 9329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9330 wlarc= 9331 hardcode_direct=yes 9332 hardcode_shlibpath_var=no 9333 ;; 9334 9335 *) 9336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9339 else 9340 ld_shlibs=no 9341 fi 9342 ;; 9343 esac 9344 9345 if test no = "$ld_shlibs"; then 9346 runpath_var= 9347 hardcode_libdir_flag_spec= 9348 export_dynamic_flag_spec= 9349 whole_archive_flag_spec= 9350 fi 9351 else 9352 # PORTME fill in a description of your system's linker (not GNU ld) 9353 case $host_os in 9354 aix3*) 9355 allow_undefined_flag=unsupported 9356 always_export_symbols=yes 9357 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' 9358 # Note: this linker hardcodes the directories in LIBPATH if there 9359 # are no directories specified by -L. 9360 hardcode_minus_L=yes 9361 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9362 # Neither direct hardcoding nor static linking is supported with a 9363 # broken collect2. 9364 hardcode_direct=unsupported 9365 fi 9366 ;; 9367 9368 aix[4-9]*) 9369 if test ia64 = "$host_cpu"; then 9370 # On IA64, the linker does run time linking by default, so we don't 9371 # have to do anything special. 9372 aix_use_runtimelinking=no 9373 exp_sym_flag='-Bexport' 9374 no_entry_flag= 9375 else 9376 # If we're using GNU nm, then we don't want the "-C" option. 9377 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9378 # Without the "-l" option, or with the "-B" option, AIX nm treats 9379 # weak defined symbols like other global defined symbols, whereas 9380 # GNU nm marks them as "W". 9381 # While the 'weak' keyword is ignored in the Export File, we need 9382 # it in the Import File for the 'aix-soname' feature, so we have 9383 # to replace the "-B" option with "-P" for AIX nm. 9384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9385 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' 9386 else 9387 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 == "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' 9388 fi 9389 aix_use_runtimelinking=no 9390 9391 # Test if we are trying to use run time linking or normal 9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9393 # have runtime linking enabled, and use it for executables. 9394 # For shared libraries, we enable/disable runtime linking 9395 # depending on the kind of the shared library created - 9396 # when "with_aix_soname,aix_use_runtimelinking" is: 9397 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9398 # "aix,yes" lib.so shared, rtl:yes, for executables 9399 # lib.a static archive 9400 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9401 # lib.a(lib.so.V) shared, rtl:no, for executables 9402 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9403 # lib.a(lib.so.V) shared, rtl:no 9404 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9405 # lib.a static archive 9406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9407 for ld_flag in $LDFLAGS; do 9408 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9409 aix_use_runtimelinking=yes 9410 break 9411 fi 9412 done 9413 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9414 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9415 # so we don't have lib.a shared libs to link our executables. 9416 # We have to force runtime linking in this case. 9417 aix_use_runtimelinking=yes 9418 LDFLAGS="$LDFLAGS -Wl,-brtl" 9419 fi 9420 ;; 9421 esac 9422 9423 exp_sym_flag='-bexport' 9424 no_entry_flag='-bnoentry' 9425 fi 9426 9427 # When large executables or shared objects are built, AIX ld can 9428 # have problems creating the table of contents. If linking a library 9429 # or program results in "error TOC overflow" add -mminimal-toc to 9430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9432 9433 archive_cmds='' 9434 hardcode_direct=yes 9435 hardcode_direct_absolute=yes 9436 hardcode_libdir_separator=':' 9437 link_all_deplibs=yes 9438 file_list_spec='$wl-f,' 9439 case $with_aix_soname,$aix_use_runtimelinking in 9440 aix,*) ;; # traditional, no import file 9441 svr4,* | *,yes) # use import file 9442 # The Import File defines what to hardcode. 9443 hardcode_direct=no 9444 hardcode_direct_absolute=no 9445 ;; 9446 esac 9447 9448 if test yes = "$GCC"; then 9449 case $host_os in aix4.[012]|aix4.[012].*) 9450 # We only want to do this on AIX 4.2 and lower, the check 9451 # below for broken collect2 doesn't work under 4.3+ 9452 collect2name=`$CC -print-prog-name=collect2` 9453 if test -f "$collect2name" && 9454 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9455 then 9456 # We have reworked collect2 9457 : 9458 else 9459 # We have old collect2 9460 hardcode_direct=unsupported 9461 # It fails to find uninstalled libraries when the uninstalled 9462 # path is not listed in the libpath. Setting hardcode_minus_L 9463 # to unsupported forces relinking 9464 hardcode_minus_L=yes 9465 hardcode_libdir_flag_spec='-L$libdir' 9466 hardcode_libdir_separator= 9467 fi 9468 ;; 9469 esac 9470 shared_flag='-shared' 9471 if test yes = "$aix_use_runtimelinking"; then 9472 shared_flag="$shared_flag "'$wl-G' 9473 fi 9474 # Need to ensure runtime linking is disabled for the traditional 9475 # shared library, or the linker may eventually find shared libraries 9476 # /with/ Import File - we do not want to mix them. 9477 shared_flag_aix='-shared' 9478 shared_flag_svr4='-shared $wl-G' 9479 else 9480 # not using gcc 9481 if test ia64 = "$host_cpu"; then 9482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9483 # chokes on -Wl,-G. The following line is correct: 9484 shared_flag='-G' 9485 else 9486 if test yes = "$aix_use_runtimelinking"; then 9487 shared_flag='$wl-G' 9488 else 9489 shared_flag='$wl-bM:SRE' 9490 fi 9491 shared_flag_aix='$wl-bM:SRE' 9492 shared_flag_svr4='$wl-G' 9493 fi 9494 fi 9495 9496 export_dynamic_flag_spec='$wl-bexpall' 9497 # It seems that -bexpall does not export symbols beginning with 9498 # underscore (_), so it is better to generate a list of symbols to export. 9499 always_export_symbols=yes 9500 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9501 # Warning - without using the other runtime loading flags (-brtl), 9502 # -berok will link without error, but may produce a broken library. 9503 allow_undefined_flag='-berok' 9504 # Determine the default libpath from the value encoded in an 9505 # empty executable. 9506 if test set = "${lt_cv_aix_libpath+set}"; then 9507 aix_libpath=$lt_cv_aix_libpath 9508else 9509 if ${lt_cv_aix_libpath_+:} false; then : 9510 $as_echo_n "(cached) " >&6 9511else 9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513/* end confdefs.h. */ 9514 9515int 9516main () 9517{ 9518 9519 ; 9520 return 0; 9521} 9522_ACEOF 9523if ac_fn_c_try_link "$LINENO"; then : 9524 9525 lt_aix_libpath_sed=' 9526 /Import File Strings/,/^$/ { 9527 /^0/ { 9528 s/^0 *\([^ ]*\) *$/\1/ 9529 p 9530 } 9531 }' 9532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9533 # Check for a 64-bit object if we didn't find anything. 9534 if test -z "$lt_cv_aix_libpath_"; then 9535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9536 fi 9537fi 9538rm -f core conftest.err conftest.$ac_objext \ 9539 conftest$ac_exeext conftest.$ac_ext 9540 if test -z "$lt_cv_aix_libpath_"; then 9541 lt_cv_aix_libpath_=/usr/lib:/lib 9542 fi 9543 9544fi 9545 9546 aix_libpath=$lt_cv_aix_libpath_ 9547fi 9548 9549 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9550 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 9551 else 9552 if test ia64 = "$host_cpu"; then 9553 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9554 allow_undefined_flag="-z nodefs" 9555 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" 9556 else 9557 # Determine the default libpath from the value encoded in an 9558 # empty executable. 9559 if test set = "${lt_cv_aix_libpath+set}"; then 9560 aix_libpath=$lt_cv_aix_libpath 9561else 9562 if ${lt_cv_aix_libpath_+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567 9568int 9569main () 9570{ 9571 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576if ac_fn_c_try_link "$LINENO"; then : 9577 9578 lt_aix_libpath_sed=' 9579 /Import File Strings/,/^$/ { 9580 /^0/ { 9581 s/^0 *\([^ ]*\) *$/\1/ 9582 p 9583 } 9584 }' 9585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9586 # Check for a 64-bit object if we didn't find anything. 9587 if test -z "$lt_cv_aix_libpath_"; then 9588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9589 fi 9590fi 9591rm -f core conftest.err conftest.$ac_objext \ 9592 conftest$ac_exeext conftest.$ac_ext 9593 if test -z "$lt_cv_aix_libpath_"; then 9594 lt_cv_aix_libpath_=/usr/lib:/lib 9595 fi 9596 9597fi 9598 9599 aix_libpath=$lt_cv_aix_libpath_ 9600fi 9601 9602 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9603 # Warning - without using the other run time loading flags, 9604 # -berok will link without error, but may produce a broken library. 9605 no_undefined_flag=' $wl-bernotok' 9606 allow_undefined_flag=' $wl-berok' 9607 if test yes = "$with_gnu_ld"; then 9608 # We only use this code for GNU lds that support --whole-archive. 9609 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9610 else 9611 # Exported symbols can be pulled into shared objects from archives 9612 whole_archive_flag_spec='$convenience' 9613 fi 9614 archive_cmds_need_lc=yes 9615 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9616 # -brtl affects multiple linker settings, -berok does not and is overridden later 9617 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9618 if test svr4 != "$with_aix_soname"; then 9619 # This is similar to how AIX traditionally builds its shared libraries. 9620 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' 9621 fi 9622 if test aix != "$with_aix_soname"; then 9623 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' 9624 else 9625 # used by -dlpreopen to get the symbols 9626 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9627 fi 9628 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9629 fi 9630 fi 9631 ;; 9632 9633 amigaos*) 9634 case $host_cpu in 9635 powerpc) 9636 # see comment about AmigaOS4 .so support 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='' 9639 ;; 9640 m68k) 9641 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)' 9642 hardcode_libdir_flag_spec='-L$libdir' 9643 hardcode_minus_L=yes 9644 ;; 9645 esac 9646 ;; 9647 9648 bsdi[45]*) 9649 export_dynamic_flag_spec=-rdynamic 9650 ;; 9651 9652 cygwin* | mingw* | pw32* | cegcc*) 9653 # When not using gcc, we currently assume that we are using 9654 # Microsoft Visual C++. 9655 # hardcode_libdir_flag_spec is actually meaningless, as there is 9656 # no search path for DLLs. 9657 case $cc_basename in 9658 cl*) 9659 # Native MSVC 9660 hardcode_libdir_flag_spec=' ' 9661 allow_undefined_flag=unsupported 9662 always_export_symbols=yes 9663 file_list_spec='@' 9664 # Tell ltmain to make .lib files, not .a files. 9665 libext=lib 9666 # Tell ltmain to make .dll files, not .so files. 9667 shrext_cmds=.dll 9668 # FIXME: Setting linknames here is a bad hack. 9669 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9670 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9671 cp "$export_symbols" "$output_objdir/$soname.def"; 9672 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9673 else 9674 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9675 fi~ 9676 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9677 linknames=' 9678 # The linker will not automatically build a static lib if we build a DLL. 9679 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9680 enable_shared_with_static_runtimes=yes 9681 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9683 # Don't use ranlib 9684 old_postinstall_cmds='chmod 644 $oldlib' 9685 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9686 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9687 case $lt_outputfile in 9688 *.exe|*.EXE) ;; 9689 *) 9690 lt_outputfile=$lt_outputfile.exe 9691 lt_tool_outputfile=$lt_tool_outputfile.exe 9692 ;; 9693 esac~ 9694 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9695 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9696 $RM "$lt_outputfile.manifest"; 9697 fi' 9698 ;; 9699 *) 9700 # Assume MSVC wrapper 9701 hardcode_libdir_flag_spec=' ' 9702 allow_undefined_flag=unsupported 9703 # Tell ltmain to make .lib files, not .a files. 9704 libext=lib 9705 # Tell ltmain to make .dll files, not .so files. 9706 shrext_cmds=.dll 9707 # FIXME: Setting linknames here is a bad hack. 9708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9709 # The linker will automatically build a .lib file if we build a DLL. 9710 old_archive_from_new_cmds='true' 9711 # FIXME: Should let the user specify the lib program. 9712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9713 enable_shared_with_static_runtimes=yes 9714 ;; 9715 esac 9716 ;; 9717 9718 darwin* | rhapsody*) 9719 9720 9721 archive_cmds_need_lc=no 9722 hardcode_direct=no 9723 hardcode_automatic=yes 9724 hardcode_shlibpath_var=unsupported 9725 if test yes = "$lt_cv_ld_force_load"; then 9726 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\"`' 9727 9728 else 9729 whole_archive_flag_spec='' 9730 fi 9731 link_all_deplibs=yes 9732 allow_undefined_flag=$_lt_dar_allow_undefined 9733 case $cc_basename in 9734 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9735 *) _lt_dar_can_shared=$GCC ;; 9736 esac 9737 if test yes = "$_lt_dar_can_shared"; then 9738 output_verbose_link_cmd=func_echo_all 9739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9741 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" 9742 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" 9743 9744 else 9745 ld_shlibs=no 9746 fi 9747 9748 ;; 9749 9750 dgux*) 9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9752 hardcode_libdir_flag_spec='-L$libdir' 9753 hardcode_shlibpath_var=no 9754 ;; 9755 9756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9757 # support. Future versions do this automatically, but an explicit c++rt0.o 9758 # does not break anything, and helps significantly (at the cost of a little 9759 # extra space). 9760 freebsd2.2*) 9761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9762 hardcode_libdir_flag_spec='-R$libdir' 9763 hardcode_direct=yes 9764 hardcode_shlibpath_var=no 9765 ;; 9766 9767 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9768 freebsd2.*) 9769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9770 hardcode_direct=yes 9771 hardcode_minus_L=yes 9772 hardcode_shlibpath_var=no 9773 ;; 9774 9775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9776 freebsd* | dragonfly*) 9777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9778 hardcode_libdir_flag_spec='-R$libdir' 9779 hardcode_direct=yes 9780 hardcode_shlibpath_var=no 9781 ;; 9782 9783 hpux9*) 9784 if test yes = "$GCC"; then 9785 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' 9786 else 9787 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' 9788 fi 9789 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9790 hardcode_libdir_separator=: 9791 hardcode_direct=yes 9792 9793 # hardcode_minus_L: Not really in the search PATH, 9794 # but as the default location of the library. 9795 hardcode_minus_L=yes 9796 export_dynamic_flag_spec='$wl-E' 9797 ;; 9798 9799 hpux10*) 9800 if test yes,no = "$GCC,$with_gnu_ld"; then 9801 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9802 else 9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9804 fi 9805 if test no = "$with_gnu_ld"; then 9806 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9807 hardcode_libdir_separator=: 9808 hardcode_direct=yes 9809 hardcode_direct_absolute=yes 9810 export_dynamic_flag_spec='$wl-E' 9811 # hardcode_minus_L: Not really in the search PATH, 9812 # but as the default location of the library. 9813 hardcode_minus_L=yes 9814 fi 9815 ;; 9816 9817 hpux11*) 9818 if test yes,no = "$GCC,$with_gnu_ld"; then 9819 case $host_cpu in 9820 hppa*64*) 9821 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9822 ;; 9823 ia64*) 9824 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9825 ;; 9826 *) 9827 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9828 ;; 9829 esac 9830 else 9831 case $host_cpu in 9832 hppa*64*) 9833 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9834 ;; 9835 ia64*) 9836 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9837 ;; 9838 *) 9839 9840 # Older versions of the 11.00 compiler do not understand -b yet 9841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9843$as_echo_n "checking if $CC understands -b... " >&6; } 9844if ${lt_cv_prog_compiler__b+:} false; then : 9845 $as_echo_n "(cached) " >&6 9846else 9847 lt_cv_prog_compiler__b=no 9848 save_LDFLAGS=$LDFLAGS 9849 LDFLAGS="$LDFLAGS -b" 9850 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9852 # The linker can only warn and ignore the option if not recognized 9853 # So say no if there are warnings 9854 if test -s conftest.err; then 9855 # Append any errors to the config.log. 9856 cat conftest.err 1>&5 9857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9859 if diff conftest.exp conftest.er2 >/dev/null; then 9860 lt_cv_prog_compiler__b=yes 9861 fi 9862 else 9863 lt_cv_prog_compiler__b=yes 9864 fi 9865 fi 9866 $RM -r conftest* 9867 LDFLAGS=$save_LDFLAGS 9868 9869fi 9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9871$as_echo "$lt_cv_prog_compiler__b" >&6; } 9872 9873if test yes = "$lt_cv_prog_compiler__b"; then 9874 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9875else 9876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9877fi 9878 9879 ;; 9880 esac 9881 fi 9882 if test no = "$with_gnu_ld"; then 9883 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9884 hardcode_libdir_separator=: 9885 9886 case $host_cpu in 9887 hppa*64*|ia64*) 9888 hardcode_direct=no 9889 hardcode_shlibpath_var=no 9890 ;; 9891 *) 9892 hardcode_direct=yes 9893 hardcode_direct_absolute=yes 9894 export_dynamic_flag_spec='$wl-E' 9895 9896 # hardcode_minus_L: Not really in the search PATH, 9897 # but as the default location of the library. 9898 hardcode_minus_L=yes 9899 ;; 9900 esac 9901 fi 9902 ;; 9903 9904 irix5* | irix6* | nonstopux*) 9905 if test yes = "$GCC"; then 9906 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' 9907 # Try to use the -exported_symbol ld option, if it does not 9908 # work, assume that -exports_file does not work either and 9909 # implicitly export all symbols. 9910 # This should be the same for all languages, so no per-tag cache variable. 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9912$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9913if ${lt_cv_irix_exported_symbol+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915else 9916 save_LDFLAGS=$LDFLAGS 9917 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920int foo (void) { return 0; } 9921_ACEOF 9922if ac_fn_c_try_link "$LINENO"; then : 9923 lt_cv_irix_exported_symbol=yes 9924else 9925 lt_cv_irix_exported_symbol=no 9926fi 9927rm -f core conftest.err conftest.$ac_objext \ 9928 conftest$ac_exeext conftest.$ac_ext 9929 LDFLAGS=$save_LDFLAGS 9930fi 9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9932$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9933 if test yes = "$lt_cv_irix_exported_symbol"; then 9934 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' 9935 fi 9936 else 9937 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' 9938 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' 9939 fi 9940 archive_cmds_need_lc='no' 9941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9942 hardcode_libdir_separator=: 9943 inherit_rpath=yes 9944 link_all_deplibs=yes 9945 ;; 9946 9947 linux*) 9948 case $cc_basename in 9949 tcc*) 9950 # Fabrice Bellard et al's Tiny C Compiler 9951 ld_shlibs=yes 9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9953 ;; 9954 esac 9955 ;; 9956 9957 netbsd*) 9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9960 else 9961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9962 fi 9963 hardcode_libdir_flag_spec='-R$libdir' 9964 hardcode_direct=yes 9965 hardcode_shlibpath_var=no 9966 ;; 9967 9968 newsos6) 9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9970 hardcode_direct=yes 9971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9972 hardcode_libdir_separator=: 9973 hardcode_shlibpath_var=no 9974 ;; 9975 9976 *nto* | *qnx*) 9977 ;; 9978 9979 openbsd* | bitrig*) 9980 if test -f /usr/libexec/ld.so; then 9981 hardcode_direct=yes 9982 hardcode_shlibpath_var=no 9983 hardcode_direct_absolute=yes 9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9987 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9988 export_dynamic_flag_spec='$wl-E' 9989 else 9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9991 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9992 fi 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 os2*) 9999 hardcode_libdir_flag_spec='-L$libdir' 10000 hardcode_minus_L=yes 10001 allow_undefined_flag=unsupported 10002 shrext_cmds=.dll 10003 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10006 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10009 emximp -o $lib $output_objdir/$libname.def' 10010 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10013 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10014 prefix_cmds="$SED"~ 10015 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10016 prefix_cmds="$prefix_cmds -e 1d"; 10017 fi~ 10018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10021 emximp -o $lib $output_objdir/$libname.def' 10022 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10023 enable_shared_with_static_runtimes=yes 10024 ;; 10025 10026 osf3*) 10027 if test yes = "$GCC"; then 10028 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10029 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' 10030 else 10031 allow_undefined_flag=' -expect_unresolved \*' 10032 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' 10033 fi 10034 archive_cmds_need_lc='no' 10035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10036 hardcode_libdir_separator=: 10037 ;; 10038 10039 osf4* | osf5*) # as osf3* with the addition of -msym flag 10040 if test yes = "$GCC"; then 10041 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10042 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' 10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10044 else 10045 allow_undefined_flag=' -expect_unresolved \*' 10046 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' 10047 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~ 10048 $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' 10049 10050 # Both c and cxx compiler support -rpath directly 10051 hardcode_libdir_flag_spec='-rpath $libdir' 10052 fi 10053 archive_cmds_need_lc='no' 10054 hardcode_libdir_separator=: 10055 ;; 10056 10057 solaris*) 10058 no_undefined_flag=' -z defs' 10059 if test yes = "$GCC"; then 10060 wlarc='$wl' 10061 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10063 $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' 10064 else 10065 case `$CC -V 2>&1` in 10066 *"Compilers 5.0"*) 10067 wlarc='' 10068 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10070 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10071 ;; 10072 *) 10073 wlarc='$wl' 10074 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10076 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10077 ;; 10078 esac 10079 fi 10080 hardcode_libdir_flag_spec='-R$libdir' 10081 hardcode_shlibpath_var=no 10082 case $host_os in 10083 solaris2.[0-5] | solaris2.[0-5].*) ;; 10084 *) 10085 # The compiler driver will combine and reorder linker options, 10086 # but understands '-z linker_flag'. GCC discards it without '$wl', 10087 # but is careful enough not to reorder. 10088 # Supported since Solaris 2.6 (maybe 2.5.1?) 10089 if test yes = "$GCC"; then 10090 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10091 else 10092 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10093 fi 10094 ;; 10095 esac 10096 link_all_deplibs=yes 10097 ;; 10098 10099 sunos4*) 10100 if test sequent = "$host_vendor"; then 10101 # Use $CC to link under sequent, because it throws in some extra .o 10102 # files that make .init and .fini sections work. 10103 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10104 else 10105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10106 fi 10107 hardcode_libdir_flag_spec='-L$libdir' 10108 hardcode_direct=yes 10109 hardcode_minus_L=yes 10110 hardcode_shlibpath_var=no 10111 ;; 10112 10113 sysv4) 10114 case $host_vendor in 10115 sni) 10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10117 hardcode_direct=yes # is this really true??? 10118 ;; 10119 siemens) 10120 ## LD is ld it makes a PLAMLIB 10121 ## CC just makes a GrossModule. 10122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10123 reload_cmds='$CC -r -o $output$reload_objs' 10124 hardcode_direct=no 10125 ;; 10126 motorola) 10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10129 ;; 10130 esac 10131 runpath_var='LD_RUN_PATH' 10132 hardcode_shlibpath_var=no 10133 ;; 10134 10135 sysv4.3*) 10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10137 hardcode_shlibpath_var=no 10138 export_dynamic_flag_spec='-Bexport' 10139 ;; 10140 10141 sysv4*MP*) 10142 if test -d /usr/nec; then 10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10144 hardcode_shlibpath_var=no 10145 runpath_var=LD_RUN_PATH 10146 hardcode_runpath_var=yes 10147 ld_shlibs=yes 10148 fi 10149 ;; 10150 10151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10152 no_undefined_flag='$wl-z,text' 10153 archive_cmds_need_lc=no 10154 hardcode_shlibpath_var=no 10155 runpath_var='LD_RUN_PATH' 10156 10157 if test yes = "$GCC"; then 10158 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10159 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10160 else 10161 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10162 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10163 fi 10164 ;; 10165 10166 sysv5* | sco3.2v5* | sco5v6*) 10167 # Note: We CANNOT use -z defs as we might desire, because we do not 10168 # link with -lc, and that would cause any symbols used from libc to 10169 # always be unresolved, which means just about no library would 10170 # ever link correctly. If we're not using GNU ld we use -z text 10171 # though, which does catch some bad symbols but isn't as heavy-handed 10172 # as -z defs. 10173 no_undefined_flag='$wl-z,text' 10174 allow_undefined_flag='$wl-z,nodefs' 10175 archive_cmds_need_lc=no 10176 hardcode_shlibpath_var=no 10177 hardcode_libdir_flag_spec='$wl-R,$libdir' 10178 hardcode_libdir_separator=':' 10179 link_all_deplibs=yes 10180 export_dynamic_flag_spec='$wl-Bexport' 10181 runpath_var='LD_RUN_PATH' 10182 10183 if test yes = "$GCC"; then 10184 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10185 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10186 else 10187 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10189 fi 10190 ;; 10191 10192 uts4*) 10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10194 hardcode_libdir_flag_spec='-L$libdir' 10195 hardcode_shlibpath_var=no 10196 ;; 10197 10198 *) 10199 ld_shlibs=no 10200 ;; 10201 esac 10202 10203 if test sni = "$host_vendor"; then 10204 case $host in 10205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10206 export_dynamic_flag_spec='$wl-Blargedynsym' 10207 ;; 10208 esac 10209 fi 10210 fi 10211 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10213$as_echo "$ld_shlibs" >&6; } 10214test no = "$ld_shlibs" && can_build_shared=no 10215 10216with_gnu_ld=$with_gnu_ld 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232# 10233# Do we need to explicitly link libc? 10234# 10235case "x$archive_cmds_need_lc" in 10236x|xyes) 10237 # Assume -lc should be added 10238 archive_cmds_need_lc=yes 10239 10240 if test yes,yes = "$GCC,$enable_shared"; then 10241 case $archive_cmds in 10242 *'~'*) 10243 # FIXME: we may have to deal with multi-command sequences. 10244 ;; 10245 '$CC '*) 10246 # Test whether the compiler implicitly links with -lc since on some 10247 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10248 # to ld, don't add -lc before -lgcc. 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10250$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10251if ${lt_cv_archive_cmds_need_lc+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253else 10254 $RM conftest* 10255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10256 10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10258 (eval $ac_compile) 2>&5 10259 ac_status=$? 10260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10261 test $ac_status = 0; } 2>conftest.err; then 10262 soname=conftest 10263 lib=conftest 10264 libobjs=conftest.$ac_objext 10265 deplibs= 10266 wl=$lt_prog_compiler_wl 10267 pic_flag=$lt_prog_compiler_pic 10268 compiler_flags=-v 10269 linker_flags=-v 10270 verstring= 10271 output_objdir=. 10272 libname=conftest 10273 lt_save_allow_undefined_flag=$allow_undefined_flag 10274 allow_undefined_flag= 10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10277 ac_status=$? 10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10279 test $ac_status = 0; } 10280 then 10281 lt_cv_archive_cmds_need_lc=no 10282 else 10283 lt_cv_archive_cmds_need_lc=yes 10284 fi 10285 allow_undefined_flag=$lt_save_allow_undefined_flag 10286 else 10287 cat conftest.err 1>&5 10288 fi 10289 $RM conftest* 10290 10291fi 10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10293$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10294 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10295 ;; 10296 esac 10297 fi 10298 ;; 10299esac 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10453$as_echo_n "checking dynamic linker characteristics... " >&6; } 10454 10455if test yes = "$GCC"; then 10456 case $host_os in 10457 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10458 *) lt_awk_arg='/^libraries:/' ;; 10459 esac 10460 case $host_os in 10461 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10462 *) lt_sed_strip_eq='s|=/|/|g' ;; 10463 esac 10464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10465 case $lt_search_path_spec in 10466 *\;*) 10467 # if the path contains ";" then we assume it to be the separator 10468 # otherwise default to the standard path separator (i.e. ":") - it is 10469 # assumed that no part of a normal pathname contains ";" but that should 10470 # okay in the real world where ";" in dirpaths is itself problematic. 10471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10472 ;; 10473 *) 10474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10475 ;; 10476 esac 10477 # Ok, now we have the path, separated by spaces, we can step through it 10478 # and add multilib dir if necessary... 10479 lt_tmp_lt_search_path_spec= 10480 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10481 # ...but if some path component already ends with the multilib dir we assume 10482 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10483 case "$lt_multi_os_dir; $lt_search_path_spec " in 10484 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10485 lt_multi_os_dir= 10486 ;; 10487 esac 10488 for lt_sys_path in $lt_search_path_spec; do 10489 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10491 elif test -n "$lt_multi_os_dir"; then 10492 test -d "$lt_sys_path" && \ 10493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10494 fi 10495 done 10496 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10497BEGIN {RS = " "; FS = "/|\n";} { 10498 lt_foo = ""; 10499 lt_count = 0; 10500 for (lt_i = NF; lt_i > 0; lt_i--) { 10501 if ($lt_i != "" && $lt_i != ".") { 10502 if ($lt_i == "..") { 10503 lt_count++; 10504 } else { 10505 if (lt_count == 0) { 10506 lt_foo = "/" $lt_i lt_foo; 10507 } else { 10508 lt_count--; 10509 } 10510 } 10511 } 10512 } 10513 if (lt_foo != "") { lt_freq[lt_foo]++; } 10514 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10515}'` 10516 # AWK program above erroneously prepends '/' to C:/dos/paths 10517 # for these hosts. 10518 case $host_os in 10519 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10520 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10521 esac 10522 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10523else 10524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10525fi 10526library_names_spec= 10527libname_spec='lib$name' 10528soname_spec= 10529shrext_cmds=.so 10530postinstall_cmds= 10531postuninstall_cmds= 10532finish_cmds= 10533finish_eval= 10534shlibpath_var= 10535shlibpath_overrides_runpath=unknown 10536version_type=none 10537dynamic_linker="$host_os ld.so" 10538sys_lib_dlsearch_path_spec="/lib /usr/lib" 10539need_lib_prefix=unknown 10540hardcode_into_libs=no 10541 10542# when you set need_version to no, make sure it does not cause -set_version 10543# flags to be left without arguments 10544need_version=unknown 10545 10546 10547 10548case $host_os in 10549aix3*) 10550 version_type=linux # correct to gnu/linux during the next big refactor 10551 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10552 shlibpath_var=LIBPATH 10553 10554 # AIX 3 has no versioning support, so we append a major version to the name. 10555 soname_spec='$libname$release$shared_ext$major' 10556 ;; 10557 10558aix[4-9]*) 10559 version_type=linux # correct to gnu/linux during the next big refactor 10560 need_lib_prefix=no 10561 need_version=no 10562 hardcode_into_libs=yes 10563 if test ia64 = "$host_cpu"; then 10564 # AIX 5 supports IA64 10565 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10566 shlibpath_var=LD_LIBRARY_PATH 10567 else 10568 # With GCC up to 2.95.x, collect2 would create an import file 10569 # for dependence libraries. The import file would start with 10570 # the line '#! .'. This would cause the generated library to 10571 # depend on '.', always an invalid library. This was fixed in 10572 # development snapshots of GCC prior to 3.0. 10573 case $host_os in 10574 aix4 | aix4.[01] | aix4.[01].*) 10575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10576 echo ' yes ' 10577 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10578 : 10579 else 10580 can_build_shared=no 10581 fi 10582 ;; 10583 esac 10584 # Using Import Files as archive members, it is possible to support 10585 # filename-based versioning of shared library archives on AIX. While 10586 # this would work for both with and without runtime linking, it will 10587 # prevent static linking of such archives. So we do filename-based 10588 # shared library versioning with .so extension only, which is used 10589 # when both runtime linking and shared linking is enabled. 10590 # Unfortunately, runtime linking may impact performance, so we do 10591 # not want this to be the default eventually. Also, we use the 10592 # versioned .so libs for executables only if there is the -brtl 10593 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10594 # To allow for filename-based versioning support, we need to create 10595 # libNAME.so.V as an archive file, containing: 10596 # *) an Import File, referring to the versioned filename of the 10597 # archive as well as the shared archive member, telling the 10598 # bitwidth (32 or 64) of that shared object, and providing the 10599 # list of exported symbols of that shared object, eventually 10600 # decorated with the 'weak' keyword 10601 # *) the shared object with the F_LOADONLY flag set, to really avoid 10602 # it being seen by the linker. 10603 # At run time we better use the real file rather than another symlink, 10604 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10605 10606 case $with_aix_soname,$aix_use_runtimelinking in 10607 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10608 # soname into executable. Probably we can add versioning support to 10609 # collect2, so additional links can be useful in future. 10610 aix,yes) # traditional libtool 10611 dynamic_linker='AIX unversionable lib.so' 10612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10613 # instead of lib<name>.a to let people know that these are not 10614 # typical AIX shared libraries. 10615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10616 ;; 10617 aix,no) # traditional AIX only 10618 dynamic_linker='AIX lib.a(lib.so.V)' 10619 # We preserve .a as extension for shared libraries through AIX4.2 10620 # and later when we are not doing run time linking. 10621 library_names_spec='$libname$release.a $libname.a' 10622 soname_spec='$libname$release$shared_ext$major' 10623 ;; 10624 svr4,*) # full svr4 only 10625 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10626 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10627 # We do not specify a path in Import Files, so LIBPATH fires. 10628 shlibpath_overrides_runpath=yes 10629 ;; 10630 *,yes) # both, prefer svr4 10631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10633 # unpreferred sharedlib libNAME.a needs extra handling 10634 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"' 10635 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"' 10636 # We do not specify a path in Import Files, so LIBPATH fires. 10637 shlibpath_overrides_runpath=yes 10638 ;; 10639 *,no) # both, prefer aix 10640 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10641 library_names_spec='$libname$release.a $libname.a' 10642 soname_spec='$libname$release$shared_ext$major' 10643 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10644 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)' 10645 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"' 10646 ;; 10647 esac 10648 shlibpath_var=LIBPATH 10649 fi 10650 ;; 10651 10652amigaos*) 10653 case $host_cpu in 10654 powerpc) 10655 # Since July 2007 AmigaOS4 officially supports .so libraries. 10656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10658 ;; 10659 m68k) 10660 library_names_spec='$libname.ixlibrary $libname.a' 10661 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10662 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' 10663 ;; 10664 esac 10665 ;; 10666 10667beos*) 10668 library_names_spec='$libname$shared_ext' 10669 dynamic_linker="$host_os ld.so" 10670 shlibpath_var=LIBRARY_PATH 10671 ;; 10672 10673bsdi[45]*) 10674 version_type=linux # correct to gnu/linux during the next big refactor 10675 need_version=no 10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10677 soname_spec='$libname$release$shared_ext$major' 10678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10679 shlibpath_var=LD_LIBRARY_PATH 10680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10682 # the default ld.so.conf also contains /usr/contrib/lib and 10683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10684 # libtool to hard-code these into programs 10685 ;; 10686 10687cygwin* | mingw* | pw32* | cegcc*) 10688 version_type=windows 10689 shrext_cmds=.dll 10690 need_version=no 10691 need_lib_prefix=no 10692 10693 case $GCC,$cc_basename in 10694 yes,*) 10695 # gcc 10696 library_names_spec='$libname.dll.a' 10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10698 postinstall_cmds='base_file=`basename \$file`~ 10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10700 dldir=$destdir/`dirname \$dlpath`~ 10701 test -d \$dldir || mkdir -p \$dldir~ 10702 $install_prog $dir/$dlname \$dldir/$dlname~ 10703 chmod a+x \$dldir/$dlname~ 10704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10706 fi' 10707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10708 dlpath=$dir/\$dldll~ 10709 $RM \$dlpath' 10710 shlibpath_overrides_runpath=yes 10711 10712 case $host_os in 10713 cygwin*) 10714 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10715 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10716 10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10718 ;; 10719 mingw* | cegcc*) 10720 # MinGW DLLs use traditional 'lib' prefix 10721 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10722 ;; 10723 pw32*) 10724 # pw32 DLLs use 'pw' prefix rather than 'lib' 10725 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10726 ;; 10727 esac 10728 dynamic_linker='Win32 ld.exe' 10729 ;; 10730 10731 *,cl*) 10732 # Native MSVC 10733 libname_spec='$name' 10734 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10735 library_names_spec='$libname.dll.lib' 10736 10737 case $build_os in 10738 mingw*) 10739 sys_lib_search_path_spec= 10740 lt_save_ifs=$IFS 10741 IFS=';' 10742 for lt_path in $LIB 10743 do 10744 IFS=$lt_save_ifs 10745 # Let DOS variable expansion print the short 8.3 style file name. 10746 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10747 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10748 done 10749 IFS=$lt_save_ifs 10750 # Convert to MSYS style. 10751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10752 ;; 10753 cygwin*) 10754 # Convert to unix form, then to dos form, then back to unix form 10755 # but this time dos style (no spaces!) so that the unix form looks 10756 # like /cygdrive/c/PROGRA~1:/cygdr... 10757 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10758 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10759 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10760 ;; 10761 *) 10762 sys_lib_search_path_spec=$LIB 10763 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10764 # It is most probably a Windows format PATH. 10765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10766 else 10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10768 fi 10769 # FIXME: find the short name or the path components, as spaces are 10770 # common. (e.g. "Program Files" -> "PROGRA~1") 10771 ;; 10772 esac 10773 10774 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10775 postinstall_cmds='base_file=`basename \$file`~ 10776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10777 dldir=$destdir/`dirname \$dlpath`~ 10778 test -d \$dldir || mkdir -p \$dldir~ 10779 $install_prog $dir/$dlname \$dldir/$dlname' 10780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10781 dlpath=$dir/\$dldll~ 10782 $RM \$dlpath' 10783 shlibpath_overrides_runpath=yes 10784 dynamic_linker='Win32 link.exe' 10785 ;; 10786 10787 *) 10788 # Assume MSVC wrapper 10789 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10790 dynamic_linker='Win32 ld.exe' 10791 ;; 10792 esac 10793 # FIXME: first we should search . and the directory the executable is in 10794 shlibpath_var=PATH 10795 ;; 10796 10797darwin* | rhapsody*) 10798 dynamic_linker="$host_os dyld" 10799 version_type=darwin 10800 need_lib_prefix=no 10801 need_version=no 10802 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10803 soname_spec='$libname$release$major$shared_ext' 10804 shlibpath_overrides_runpath=yes 10805 shlibpath_var=DYLD_LIBRARY_PATH 10806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10807 10808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10810 ;; 10811 10812dgux*) 10813 version_type=linux # correct to gnu/linux during the next big refactor 10814 need_lib_prefix=no 10815 need_version=no 10816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10817 soname_spec='$libname$release$shared_ext$major' 10818 shlibpath_var=LD_LIBRARY_PATH 10819 ;; 10820 10821freebsd* | dragonfly*) 10822 # DragonFly does not have aout. When/if they implement a new 10823 # versioning mechanism, adjust this. 10824 if test -x /usr/bin/objformat; then 10825 objformat=`/usr/bin/objformat` 10826 else 10827 case $host_os in 10828 freebsd[23].*) objformat=aout ;; 10829 *) objformat=elf ;; 10830 esac 10831 fi 10832 version_type=freebsd-$objformat 10833 case $version_type in 10834 freebsd-elf*) 10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10836 soname_spec='$libname$release$shared_ext$major' 10837 need_version=no 10838 need_lib_prefix=no 10839 ;; 10840 freebsd-*) 10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10842 need_version=yes 10843 ;; 10844 esac 10845 shlibpath_var=LD_LIBRARY_PATH 10846 case $host_os in 10847 freebsd2.*) 10848 shlibpath_overrides_runpath=yes 10849 ;; 10850 freebsd3.[01]* | freebsdelf3.[01]*) 10851 shlibpath_overrides_runpath=yes 10852 hardcode_into_libs=yes 10853 ;; 10854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10856 shlibpath_overrides_runpath=no 10857 hardcode_into_libs=yes 10858 ;; 10859 *) # from 4.6 on, and DragonFly 10860 shlibpath_overrides_runpath=yes 10861 hardcode_into_libs=yes 10862 ;; 10863 esac 10864 ;; 10865 10866haiku*) 10867 version_type=linux # correct to gnu/linux during the next big refactor 10868 need_lib_prefix=no 10869 need_version=no 10870 dynamic_linker="$host_os runtime_loader" 10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10872 soname_spec='$libname$release$shared_ext$major' 10873 shlibpath_var=LIBRARY_PATH 10874 shlibpath_overrides_runpath=no 10875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10876 hardcode_into_libs=yes 10877 ;; 10878 10879hpux9* | hpux10* | hpux11*) 10880 # Give a soname corresponding to the major version so that dld.sl refuses to 10881 # link against other versions. 10882 version_type=sunos 10883 need_lib_prefix=no 10884 need_version=no 10885 case $host_cpu in 10886 ia64*) 10887 shrext_cmds='.so' 10888 hardcode_into_libs=yes 10889 dynamic_linker="$host_os dld.so" 10890 shlibpath_var=LD_LIBRARY_PATH 10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10893 soname_spec='$libname$release$shared_ext$major' 10894 if test 32 = "$HPUX_IA64_MODE"; then 10895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10896 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10897 else 10898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10899 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10900 fi 10901 ;; 10902 hppa*64*) 10903 shrext_cmds='.sl' 10904 hardcode_into_libs=yes 10905 dynamic_linker="$host_os dld.sl" 10906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10909 soname_spec='$libname$release$shared_ext$major' 10910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10912 ;; 10913 *) 10914 shrext_cmds='.sl' 10915 dynamic_linker="$host_os dld.sl" 10916 shlibpath_var=SHLIB_PATH 10917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10919 soname_spec='$libname$release$shared_ext$major' 10920 ;; 10921 esac 10922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10923 postinstall_cmds='chmod 555 $lib' 10924 # or fails outright, so override atomically: 10925 install_override_mode=555 10926 ;; 10927 10928interix[3-9]*) 10929 version_type=linux # correct to gnu/linux during the next big refactor 10930 need_lib_prefix=no 10931 need_version=no 10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10933 soname_spec='$libname$release$shared_ext$major' 10934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10935 shlibpath_var=LD_LIBRARY_PATH 10936 shlibpath_overrides_runpath=no 10937 hardcode_into_libs=yes 10938 ;; 10939 10940irix5* | irix6* | nonstopux*) 10941 case $host_os in 10942 nonstopux*) version_type=nonstopux ;; 10943 *) 10944 if test yes = "$lt_cv_prog_gnu_ld"; then 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 else 10947 version_type=irix 10948 fi ;; 10949 esac 10950 need_lib_prefix=no 10951 need_version=no 10952 soname_spec='$libname$release$shared_ext$major' 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10954 case $host_os in 10955 irix5* | nonstopux*) 10956 libsuff= shlibsuff= 10957 ;; 10958 *) 10959 case $LD in # libtool.m4 will add one of these switches to LD 10960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10961 libsuff= shlibsuff= libmagic=32-bit;; 10962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10963 libsuff=32 shlibsuff=N32 libmagic=N32;; 10964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10965 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10966 *) libsuff= shlibsuff= libmagic=never-match;; 10967 esac 10968 ;; 10969 esac 10970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10971 shlibpath_overrides_runpath=no 10972 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10973 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10974 hardcode_into_libs=yes 10975 ;; 10976 10977# No shared lib support for Linux oldld, aout, or coff. 10978linux*oldld* | linux*aout* | linux*coff*) 10979 dynamic_linker=no 10980 ;; 10981 10982linux*android*) 10983 version_type=none # Android doesn't support versioned libraries. 10984 need_lib_prefix=no 10985 need_version=no 10986 library_names_spec='$libname$release$shared_ext' 10987 soname_spec='$libname$release$shared_ext' 10988 finish_cmds= 10989 shlibpath_var=LD_LIBRARY_PATH 10990 shlibpath_overrides_runpath=yes 10991 10992 # This implies no fast_install, which is unacceptable. 10993 # Some rework will be needed to allow for fast_install 10994 # before this can be enabled. 10995 hardcode_into_libs=yes 10996 10997 dynamic_linker='Android linker' 10998 # Don't embed -rpath directories since the linker doesn't support them. 10999 hardcode_libdir_flag_spec='-L$libdir' 11000 ;; 11001 11002# This must be glibc/ELF. 11003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11004 version_type=linux # correct to gnu/linux during the next big refactor 11005 need_lib_prefix=no 11006 need_version=no 11007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11008 soname_spec='$libname$release$shared_ext$major' 11009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11010 shlibpath_var=LD_LIBRARY_PATH 11011 shlibpath_overrides_runpath=no 11012 11013 # Some binutils ld are patched to set DT_RUNPATH 11014 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11015 $as_echo_n "(cached) " >&6 11016else 11017 lt_cv_shlibpath_overrides_runpath=no 11018 save_LDFLAGS=$LDFLAGS 11019 save_libdir=$libdir 11020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024 11025int 11026main () 11027{ 11028 11029 ; 11030 return 0; 11031} 11032_ACEOF 11033if ac_fn_c_try_link "$LINENO"; then : 11034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11035 lt_cv_shlibpath_overrides_runpath=yes 11036fi 11037fi 11038rm -f core conftest.err conftest.$ac_objext \ 11039 conftest$ac_exeext conftest.$ac_ext 11040 LDFLAGS=$save_LDFLAGS 11041 libdir=$save_libdir 11042 11043fi 11044 11045 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11046 11047 # This implies no fast_install, which is unacceptable. 11048 # Some rework will be needed to allow for fast_install 11049 # before this can be enabled. 11050 hardcode_into_libs=yes 11051 11052 # Ideally, we could use ldconfig to report *all* directores which are 11053 # searched for libraries, however this is still not possible. Aside from not 11054 # being certain /sbin/ldconfig is available, command 11055 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11056 # even though it is searched at run-time. Try to do the best guess by 11057 # appending ld.so.conf contents (and includes) to the search path. 11058 if test -f /etc/ld.so.conf; then 11059 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' ' '` 11060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11061 fi 11062 11063 # We used to test for /lib/ld.so.1 and disable shared libraries on 11064 # powerpc, because MkLinux only supported shared libraries with the 11065 # GNU dynamic linker. Since this was broken with cross compilers, 11066 # most powerpc-linux boxes support dynamic linking these days and 11067 # people can always --disable-shared, the test was removed, and we 11068 # assume the GNU/Linux dynamic linker is in use. 11069 dynamic_linker='GNU/Linux ld.so' 11070 ;; 11071 11072netbsd*) 11073 version_type=sunos 11074 need_lib_prefix=no 11075 need_version=no 11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11079 dynamic_linker='NetBSD (a.out) ld.so' 11080 else 11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11082 soname_spec='$libname$release$shared_ext$major' 11083 dynamic_linker='NetBSD ld.elf_so' 11084 fi 11085 shlibpath_var=LD_LIBRARY_PATH 11086 shlibpath_overrides_runpath=yes 11087 hardcode_into_libs=yes 11088 ;; 11089 11090newsos6) 11091 version_type=linux # correct to gnu/linux during the next big refactor 11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11093 shlibpath_var=LD_LIBRARY_PATH 11094 shlibpath_overrides_runpath=yes 11095 ;; 11096 11097*nto* | *qnx*) 11098 version_type=qnx 11099 need_lib_prefix=no 11100 need_version=no 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11102 soname_spec='$libname$release$shared_ext$major' 11103 shlibpath_var=LD_LIBRARY_PATH 11104 shlibpath_overrides_runpath=no 11105 hardcode_into_libs=yes 11106 dynamic_linker='ldqnx.so' 11107 ;; 11108 11109openbsd* | bitrig*) 11110 version_type=sunos 11111 sys_lib_dlsearch_path_spec=/usr/lib 11112 need_lib_prefix=no 11113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11114 need_version=no 11115 else 11116 need_version=yes 11117 fi 11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11120 shlibpath_var=LD_LIBRARY_PATH 11121 shlibpath_overrides_runpath=yes 11122 ;; 11123 11124os2*) 11125 libname_spec='$name' 11126 version_type=windows 11127 shrext_cmds=.dll 11128 need_version=no 11129 need_lib_prefix=no 11130 # OS/2 can only load a DLL with a base name of 8 characters or less. 11131 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11132 v=$($ECHO $release$versuffix | tr -d .-); 11133 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11134 $ECHO $n$v`$shared_ext' 11135 library_names_spec='${libname}_dll.$libext' 11136 dynamic_linker='OS/2 ld.exe' 11137 shlibpath_var=BEGINLIBPATH 11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11140 postinstall_cmds='base_file=`basename \$file`~ 11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11142 dldir=$destdir/`dirname \$dlpath`~ 11143 test -d \$dldir || mkdir -p \$dldir~ 11144 $install_prog $dir/$dlname \$dldir/$dlname~ 11145 chmod a+x \$dldir/$dlname~ 11146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11148 fi' 11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11150 dlpath=$dir/\$dldll~ 11151 $RM \$dlpath' 11152 ;; 11153 11154osf3* | osf4* | osf5*) 11155 version_type=osf 11156 need_lib_prefix=no 11157 need_version=no 11158 soname_spec='$libname$release$shared_ext$major' 11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11160 shlibpath_var=LD_LIBRARY_PATH 11161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11163 ;; 11164 11165rdos*) 11166 dynamic_linker=no 11167 ;; 11168 11169solaris*) 11170 version_type=linux # correct to gnu/linux during the next big refactor 11171 need_lib_prefix=no 11172 need_version=no 11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11174 soname_spec='$libname$release$shared_ext$major' 11175 shlibpath_var=LD_LIBRARY_PATH 11176 shlibpath_overrides_runpath=yes 11177 hardcode_into_libs=yes 11178 # ldd complains unless libraries are executable 11179 postinstall_cmds='chmod +x $lib' 11180 ;; 11181 11182sunos4*) 11183 version_type=sunos 11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11186 shlibpath_var=LD_LIBRARY_PATH 11187 shlibpath_overrides_runpath=yes 11188 if test yes = "$with_gnu_ld"; then 11189 need_lib_prefix=no 11190 fi 11191 need_version=yes 11192 ;; 11193 11194sysv4 | sysv4.3*) 11195 version_type=linux # correct to gnu/linux during the next big refactor 11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11197 soname_spec='$libname$release$shared_ext$major' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 case $host_vendor in 11200 sni) 11201 shlibpath_overrides_runpath=no 11202 need_lib_prefix=no 11203 runpath_var=LD_RUN_PATH 11204 ;; 11205 siemens) 11206 need_lib_prefix=no 11207 ;; 11208 motorola) 11209 need_lib_prefix=no 11210 need_version=no 11211 shlibpath_overrides_runpath=no 11212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11213 ;; 11214 esac 11215 ;; 11216 11217sysv4*MP*) 11218 if test -d /usr/nec; then 11219 version_type=linux # correct to gnu/linux during the next big refactor 11220 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11221 soname_spec='$libname$shared_ext.$major' 11222 shlibpath_var=LD_LIBRARY_PATH 11223 fi 11224 ;; 11225 11226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11227 version_type=sco 11228 need_lib_prefix=no 11229 need_version=no 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11231 soname_spec='$libname$release$shared_ext$major' 11232 shlibpath_var=LD_LIBRARY_PATH 11233 shlibpath_overrides_runpath=yes 11234 hardcode_into_libs=yes 11235 if test yes = "$with_gnu_ld"; then 11236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11237 else 11238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11239 case $host_os in 11240 sco3.2v5*) 11241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11242 ;; 11243 esac 11244 fi 11245 sys_lib_dlsearch_path_spec='/usr/lib' 11246 ;; 11247 11248tpf*) 11249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 need_lib_prefix=no 11252 need_version=no 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11254 shlibpath_var=LD_LIBRARY_PATH 11255 shlibpath_overrides_runpath=no 11256 hardcode_into_libs=yes 11257 ;; 11258 11259uts4*) 11260 version_type=linux # correct to gnu/linux during the next big refactor 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11262 soname_spec='$libname$release$shared_ext$major' 11263 shlibpath_var=LD_LIBRARY_PATH 11264 ;; 11265 11266*) 11267 dynamic_linker=no 11268 ;; 11269esac 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11271$as_echo "$dynamic_linker" >&6; } 11272test no = "$dynamic_linker" && can_build_shared=no 11273 11274variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11275if test yes = "$GCC"; then 11276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11277fi 11278 11279if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11280 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11281fi 11282 11283if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11284 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11285fi 11286 11287# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11288configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11289 11290# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11291func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11292 11293# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11294configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11393$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11394hardcode_action= 11395if test -n "$hardcode_libdir_flag_spec" || 11396 test -n "$runpath_var" || 11397 test yes = "$hardcode_automatic"; then 11398 11399 # We can hardcode non-existent directories. 11400 if test no != "$hardcode_direct" && 11401 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11402 # have to relink, otherwise we might link with an installed library 11403 # when we should be linking with a yet-to-be-installed one 11404 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11405 test no != "$hardcode_minus_L"; then 11406 # Linking always hardcodes the temporary library directory. 11407 hardcode_action=relink 11408 else 11409 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11410 hardcode_action=immediate 11411 fi 11412else 11413 # We cannot hardcode anything, or else we can only hardcode existing 11414 # directories. 11415 hardcode_action=unsupported 11416fi 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11418$as_echo "$hardcode_action" >&6; } 11419 11420if test relink = "$hardcode_action" || 11421 test yes = "$inherit_rpath"; then 11422 # Fast installation is not supported 11423 enable_fast_install=no 11424elif test yes = "$shlibpath_overrides_runpath" || 11425 test no = "$enable_shared"; then 11426 # Fast installation is not necessary 11427 enable_fast_install=needless 11428fi 11429 11430 11431 11432 11433 11434 11435 if test yes != "$enable_dlopen"; then 11436 enable_dlopen=unknown 11437 enable_dlopen_self=unknown 11438 enable_dlopen_self_static=unknown 11439else 11440 lt_cv_dlopen=no 11441 lt_cv_dlopen_libs= 11442 11443 case $host_os in 11444 beos*) 11445 lt_cv_dlopen=load_add_on 11446 lt_cv_dlopen_libs= 11447 lt_cv_dlopen_self=yes 11448 ;; 11449 11450 mingw* | pw32* | cegcc*) 11451 lt_cv_dlopen=LoadLibrary 11452 lt_cv_dlopen_libs= 11453 ;; 11454 11455 cygwin*) 11456 lt_cv_dlopen=dlopen 11457 lt_cv_dlopen_libs= 11458 ;; 11459 11460 darwin*) 11461 # if libdl is installed we need to link against it 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11463$as_echo_n "checking for dlopen in -ldl... " >&6; } 11464if ${ac_cv_lib_dl_dlopen+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 ac_check_lib_save_LIBS=$LIBS 11468LIBS="-ldl $LIBS" 11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471 11472/* Override any GCC internal prototype to avoid an error. 11473 Use char because int might match the return type of a GCC 11474 builtin and then its argument prototype would still apply. */ 11475#ifdef __cplusplus 11476extern "C" 11477#endif 11478char dlopen (); 11479int 11480main () 11481{ 11482return dlopen (); 11483 ; 11484 return 0; 11485} 11486_ACEOF 11487if ac_fn_c_try_link "$LINENO"; then : 11488 ac_cv_lib_dl_dlopen=yes 11489else 11490 ac_cv_lib_dl_dlopen=no 11491fi 11492rm -f core conftest.err conftest.$ac_objext \ 11493 conftest$ac_exeext conftest.$ac_ext 11494LIBS=$ac_check_lib_save_LIBS 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11497$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11498if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11499 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11500else 11501 11502 lt_cv_dlopen=dyld 11503 lt_cv_dlopen_libs= 11504 lt_cv_dlopen_self=yes 11505 11506fi 11507 11508 ;; 11509 11510 tpf*) 11511 # Don't try to run any link tests for TPF. We know it's impossible 11512 # because TPF is a cross-compiler, and we know how we open DSOs. 11513 lt_cv_dlopen=dlopen 11514 lt_cv_dlopen_libs= 11515 lt_cv_dlopen_self=no 11516 ;; 11517 11518 *) 11519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11520if test "x$ac_cv_func_shl_load" = xyes; then : 11521 lt_cv_dlopen=shl_load 11522else 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11524$as_echo_n "checking for shl_load in -ldld... " >&6; } 11525if ${ac_cv_lib_dld_shl_load+:} false; then : 11526 $as_echo_n "(cached) " >&6 11527else 11528 ac_check_lib_save_LIBS=$LIBS 11529LIBS="-ldld $LIBS" 11530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531/* end confdefs.h. */ 11532 11533/* Override any GCC internal prototype to avoid an error. 11534 Use char because int might match the return type of a GCC 11535 builtin and then its argument prototype would still apply. */ 11536#ifdef __cplusplus 11537extern "C" 11538#endif 11539char shl_load (); 11540int 11541main () 11542{ 11543return shl_load (); 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548if ac_fn_c_try_link "$LINENO"; then : 11549 ac_cv_lib_dld_shl_load=yes 11550else 11551 ac_cv_lib_dld_shl_load=no 11552fi 11553rm -f core conftest.err conftest.$ac_objext \ 11554 conftest$ac_exeext conftest.$ac_ext 11555LIBS=$ac_check_lib_save_LIBS 11556fi 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11558$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11559if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11560 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11561else 11562 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11563if test "x$ac_cv_func_dlopen" = xyes; then : 11564 lt_cv_dlopen=dlopen 11565else 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11567$as_echo_n "checking for dlopen in -ldl... " >&6; } 11568if ${ac_cv_lib_dl_dlopen+:} false; then : 11569 $as_echo_n "(cached) " >&6 11570else 11571 ac_check_lib_save_LIBS=$LIBS 11572LIBS="-ldl $LIBS" 11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574/* end confdefs.h. */ 11575 11576/* Override any GCC internal prototype to avoid an error. 11577 Use char because int might match the return type of a GCC 11578 builtin and then its argument prototype would still apply. */ 11579#ifdef __cplusplus 11580extern "C" 11581#endif 11582char dlopen (); 11583int 11584main () 11585{ 11586return dlopen (); 11587 ; 11588 return 0; 11589} 11590_ACEOF 11591if ac_fn_c_try_link "$LINENO"; then : 11592 ac_cv_lib_dl_dlopen=yes 11593else 11594 ac_cv_lib_dl_dlopen=no 11595fi 11596rm -f core conftest.err conftest.$ac_objext \ 11597 conftest$ac_exeext conftest.$ac_ext 11598LIBS=$ac_check_lib_save_LIBS 11599fi 11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11601$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11602if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11603 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11604else 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11606$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11607if ${ac_cv_lib_svld_dlopen+:} false; then : 11608 $as_echo_n "(cached) " >&6 11609else 11610 ac_check_lib_save_LIBS=$LIBS 11611LIBS="-lsvld $LIBS" 11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11613/* end confdefs.h. */ 11614 11615/* Override any GCC internal prototype to avoid an error. 11616 Use char because int might match the return type of a GCC 11617 builtin and then its argument prototype would still apply. */ 11618#ifdef __cplusplus 11619extern "C" 11620#endif 11621char dlopen (); 11622int 11623main () 11624{ 11625return dlopen (); 11626 ; 11627 return 0; 11628} 11629_ACEOF 11630if ac_fn_c_try_link "$LINENO"; then : 11631 ac_cv_lib_svld_dlopen=yes 11632else 11633 ac_cv_lib_svld_dlopen=no 11634fi 11635rm -f core conftest.err conftest.$ac_objext \ 11636 conftest$ac_exeext conftest.$ac_ext 11637LIBS=$ac_check_lib_save_LIBS 11638fi 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11640$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11641if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11642 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11643else 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11645$as_echo_n "checking for dld_link in -ldld... " >&6; } 11646if ${ac_cv_lib_dld_dld_link+:} false; then : 11647 $as_echo_n "(cached) " >&6 11648else 11649 ac_check_lib_save_LIBS=$LIBS 11650LIBS="-ldld $LIBS" 11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11652/* end confdefs.h. */ 11653 11654/* Override any GCC internal prototype to avoid an error. 11655 Use char because int might match the return type of a GCC 11656 builtin and then its argument prototype would still apply. */ 11657#ifdef __cplusplus 11658extern "C" 11659#endif 11660char dld_link (); 11661int 11662main () 11663{ 11664return dld_link (); 11665 ; 11666 return 0; 11667} 11668_ACEOF 11669if ac_fn_c_try_link "$LINENO"; then : 11670 ac_cv_lib_dld_dld_link=yes 11671else 11672 ac_cv_lib_dld_dld_link=no 11673fi 11674rm -f core conftest.err conftest.$ac_objext \ 11675 conftest$ac_exeext conftest.$ac_ext 11676LIBS=$ac_check_lib_save_LIBS 11677fi 11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11679$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11680if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11681 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11682fi 11683 11684 11685fi 11686 11687 11688fi 11689 11690 11691fi 11692 11693 11694fi 11695 11696 11697fi 11698 11699 ;; 11700 esac 11701 11702 if test no = "$lt_cv_dlopen"; then 11703 enable_dlopen=no 11704 else 11705 enable_dlopen=yes 11706 fi 11707 11708 case $lt_cv_dlopen in 11709 dlopen) 11710 save_CPPFLAGS=$CPPFLAGS 11711 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11712 11713 save_LDFLAGS=$LDFLAGS 11714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11715 11716 save_LIBS=$LIBS 11717 LIBS="$lt_cv_dlopen_libs $LIBS" 11718 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11720$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11721if ${lt_cv_dlopen_self+:} false; then : 11722 $as_echo_n "(cached) " >&6 11723else 11724 if test yes = "$cross_compiling"; then : 11725 lt_cv_dlopen_self=cross 11726else 11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11728 lt_status=$lt_dlunknown 11729 cat > conftest.$ac_ext <<_LT_EOF 11730#line $LINENO "configure" 11731#include "confdefs.h" 11732 11733#if HAVE_DLFCN_H 11734#include <dlfcn.h> 11735#endif 11736 11737#include <stdio.h> 11738 11739#ifdef RTLD_GLOBAL 11740# define LT_DLGLOBAL RTLD_GLOBAL 11741#else 11742# ifdef DL_GLOBAL 11743# define LT_DLGLOBAL DL_GLOBAL 11744# else 11745# define LT_DLGLOBAL 0 11746# endif 11747#endif 11748 11749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11750 find out it does not work in some platform. */ 11751#ifndef LT_DLLAZY_OR_NOW 11752# ifdef RTLD_LAZY 11753# define LT_DLLAZY_OR_NOW RTLD_LAZY 11754# else 11755# ifdef DL_LAZY 11756# define LT_DLLAZY_OR_NOW DL_LAZY 11757# else 11758# ifdef RTLD_NOW 11759# define LT_DLLAZY_OR_NOW RTLD_NOW 11760# else 11761# ifdef DL_NOW 11762# define LT_DLLAZY_OR_NOW DL_NOW 11763# else 11764# define LT_DLLAZY_OR_NOW 0 11765# endif 11766# endif 11767# endif 11768# endif 11769#endif 11770 11771/* When -fvisibility=hidden is used, assume the code has been annotated 11772 correspondingly for the symbols needed. */ 11773#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11774int fnord () __attribute__((visibility("default"))); 11775#endif 11776 11777int fnord () { return 42; } 11778int main () 11779{ 11780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11781 int status = $lt_dlunknown; 11782 11783 if (self) 11784 { 11785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11786 else 11787 { 11788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11789 else puts (dlerror ()); 11790 } 11791 /* dlclose (self); */ 11792 } 11793 else 11794 puts (dlerror ()); 11795 11796 return status; 11797} 11798_LT_EOF 11799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11800 (eval $ac_link) 2>&5 11801 ac_status=$? 11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11803 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11804 (./conftest; exit; ) >&5 2>/dev/null 11805 lt_status=$? 11806 case x$lt_status in 11807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11810 esac 11811 else : 11812 # compilation failed 11813 lt_cv_dlopen_self=no 11814 fi 11815fi 11816rm -fr conftest* 11817 11818 11819fi 11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11821$as_echo "$lt_cv_dlopen_self" >&6; } 11822 11823 if test yes = "$lt_cv_dlopen_self"; then 11824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11826$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11827if ${lt_cv_dlopen_self_static+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 if test yes = "$cross_compiling"; then : 11831 lt_cv_dlopen_self_static=cross 11832else 11833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11834 lt_status=$lt_dlunknown 11835 cat > conftest.$ac_ext <<_LT_EOF 11836#line $LINENO "configure" 11837#include "confdefs.h" 11838 11839#if HAVE_DLFCN_H 11840#include <dlfcn.h> 11841#endif 11842 11843#include <stdio.h> 11844 11845#ifdef RTLD_GLOBAL 11846# define LT_DLGLOBAL RTLD_GLOBAL 11847#else 11848# ifdef DL_GLOBAL 11849# define LT_DLGLOBAL DL_GLOBAL 11850# else 11851# define LT_DLGLOBAL 0 11852# endif 11853#endif 11854 11855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11856 find out it does not work in some platform. */ 11857#ifndef LT_DLLAZY_OR_NOW 11858# ifdef RTLD_LAZY 11859# define LT_DLLAZY_OR_NOW RTLD_LAZY 11860# else 11861# ifdef DL_LAZY 11862# define LT_DLLAZY_OR_NOW DL_LAZY 11863# else 11864# ifdef RTLD_NOW 11865# define LT_DLLAZY_OR_NOW RTLD_NOW 11866# else 11867# ifdef DL_NOW 11868# define LT_DLLAZY_OR_NOW DL_NOW 11869# else 11870# define LT_DLLAZY_OR_NOW 0 11871# endif 11872# endif 11873# endif 11874# endif 11875#endif 11876 11877/* When -fvisibility=hidden is used, assume the code has been annotated 11878 correspondingly for the symbols needed. */ 11879#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11880int fnord () __attribute__((visibility("default"))); 11881#endif 11882 11883int fnord () { return 42; } 11884int main () 11885{ 11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11887 int status = $lt_dlunknown; 11888 11889 if (self) 11890 { 11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11892 else 11893 { 11894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11895 else puts (dlerror ()); 11896 } 11897 /* dlclose (self); */ 11898 } 11899 else 11900 puts (dlerror ()); 11901 11902 return status; 11903} 11904_LT_EOF 11905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11906 (eval $ac_link) 2>&5 11907 ac_status=$? 11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11909 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11910 (./conftest; exit; ) >&5 2>/dev/null 11911 lt_status=$? 11912 case x$lt_status in 11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11916 esac 11917 else : 11918 # compilation failed 11919 lt_cv_dlopen_self_static=no 11920 fi 11921fi 11922rm -fr conftest* 11923 11924 11925fi 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11927$as_echo "$lt_cv_dlopen_self_static" >&6; } 11928 fi 11929 11930 CPPFLAGS=$save_CPPFLAGS 11931 LDFLAGS=$save_LDFLAGS 11932 LIBS=$save_LIBS 11933 ;; 11934 esac 11935 11936 case $lt_cv_dlopen_self in 11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11938 *) enable_dlopen_self=unknown ;; 11939 esac 11940 11941 case $lt_cv_dlopen_self_static in 11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11943 *) enable_dlopen_self_static=unknown ;; 11944 esac 11945fi 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963striplib= 11964old_striplib= 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11966$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11967if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11969 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11971$as_echo "yes" >&6; } 11972else 11973# FIXME - insert some real tests, host_os isn't really good enough 11974 case $host_os in 11975 darwin*) 11976 if test -n "$STRIP"; then 11977 striplib="$STRIP -x" 11978 old_striplib="$STRIP -S" 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11980$as_echo "yes" >&6; } 11981 else 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11983$as_echo "no" >&6; } 11984 fi 11985 ;; 11986 *) 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11988$as_echo "no" >&6; } 11989 ;; 11990 esac 11991fi 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 # Report what library types will actually be built 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12006$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12008$as_echo "$can_build_shared" >&6; } 12009 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12011$as_echo_n "checking whether to build shared libraries... " >&6; } 12012 test no = "$can_build_shared" && enable_shared=no 12013 12014 # On AIX, shared libraries and static libraries use the same namespace, and 12015 # are all built from PIC. 12016 case $host_os in 12017 aix3*) 12018 test yes = "$enable_shared" && enable_static=no 12019 if test -n "$RANLIB"; then 12020 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12021 postinstall_cmds='$RANLIB $lib' 12022 fi 12023 ;; 12024 12025 aix[4-9]*) 12026 if test ia64 != "$host_cpu"; then 12027 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12028 yes,aix,yes) ;; # shared object as lib.so file only 12029 yes,svr4,*) ;; # shared object as lib.so archive member only 12030 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12031 esac 12032 fi 12033 ;; 12034 esac 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12036$as_echo "$enable_shared" >&6; } 12037 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12039$as_echo_n "checking whether to build static libraries... " >&6; } 12040 # Make sure either enable_shared or enable_static is yes. 12041 test yes = "$enable_shared" || enable_static=yes 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12043$as_echo "$enable_static" >&6; } 12044 12045 12046 12047 12048fi 12049ac_ext=c 12050ac_cpp='$CPP $CPPFLAGS' 12051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12053ac_compiler_gnu=$ac_cv_c_compiler_gnu 12054 12055CC=$lt_save_CC 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 ac_config_commands="$ac_config_commands libtool" 12072 12073 12074 12075 12076# Only expand once: 12077 12078 12079 12080 12081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12082$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12083 # Check whether --enable-maintainer-mode was given. 12084if test "${enable_maintainer_mode+set}" = set; then : 12085 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12086else 12087 USE_MAINTAINER_MODE=no 12088fi 12089 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12091$as_echo "$USE_MAINTAINER_MODE" >&6; } 12092 if test $USE_MAINTAINER_MODE = yes; then 12093 MAINTAINER_MODE_TRUE= 12094 MAINTAINER_MODE_FALSE='#' 12095else 12096 MAINTAINER_MODE_TRUE='#' 12097 MAINTAINER_MODE_FALSE= 12098fi 12099 12100 MAINT=$MAINTAINER_MODE_TRUE 12101 12102 12103ac_config_headers="$ac_config_headers src/iperf_config.h" 12104 12105 12106 12107 12108# Checks for tools: c compiler, ranlib (used for creating static libraries), 12109# symlinks and libtool 12110ac_ext=c 12111ac_cpp='$CPP $CPPFLAGS' 12112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12114ac_compiler_gnu=$ac_cv_c_compiler_gnu 12115if test -n "$ac_tool_prefix"; then 12116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12117set dummy ${ac_tool_prefix}gcc; ac_word=$2 12118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12119$as_echo_n "checking for $ac_word... " >&6; } 12120if ${ac_cv_prog_CC+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 if test -n "$CC"; then 12124 ac_cv_prog_CC="$CC" # Let the user override the test. 12125else 12126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12127for as_dir in $PATH 12128do 12129 IFS=$as_save_IFS 12130 test -z "$as_dir" && as_dir=. 12131 for ac_exec_ext in '' $ac_executable_extensions; do 12132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12133 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12135 break 2 12136 fi 12137done 12138 done 12139IFS=$as_save_IFS 12140 12141fi 12142fi 12143CC=$ac_cv_prog_CC 12144if test -n "$CC"; then 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12146$as_echo "$CC" >&6; } 12147else 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12149$as_echo "no" >&6; } 12150fi 12151 12152 12153fi 12154if test -z "$ac_cv_prog_CC"; then 12155 ac_ct_CC=$CC 12156 # Extract the first word of "gcc", so it can be a program name with args. 12157set dummy gcc; ac_word=$2 12158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12159$as_echo_n "checking for $ac_word... " >&6; } 12160if ${ac_cv_prog_ac_ct_CC+:} false; then : 12161 $as_echo_n "(cached) " >&6 12162else 12163 if test -n "$ac_ct_CC"; then 12164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12165else 12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12167for as_dir in $PATH 12168do 12169 IFS=$as_save_IFS 12170 test -z "$as_dir" && as_dir=. 12171 for ac_exec_ext in '' $ac_executable_extensions; do 12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12173 ac_cv_prog_ac_ct_CC="gcc" 12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12175 break 2 12176 fi 12177done 12178 done 12179IFS=$as_save_IFS 12180 12181fi 12182fi 12183ac_ct_CC=$ac_cv_prog_ac_ct_CC 12184if test -n "$ac_ct_CC"; then 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12186$as_echo "$ac_ct_CC" >&6; } 12187else 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12189$as_echo "no" >&6; } 12190fi 12191 12192 if test "x$ac_ct_CC" = x; then 12193 CC="" 12194 else 12195 case $cross_compiling:$ac_tool_warned in 12196yes:) 12197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12199ac_tool_warned=yes ;; 12200esac 12201 CC=$ac_ct_CC 12202 fi 12203else 12204 CC="$ac_cv_prog_CC" 12205fi 12206 12207if test -z "$CC"; then 12208 if test -n "$ac_tool_prefix"; then 12209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12210set dummy ${ac_tool_prefix}cc; ac_word=$2 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12212$as_echo_n "checking for $ac_word... " >&6; } 12213if ${ac_cv_prog_CC+:} false; then : 12214 $as_echo_n "(cached) " >&6 12215else 12216 if test -n "$CC"; then 12217 ac_cv_prog_CC="$CC" # Let the user override the test. 12218else 12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12220for as_dir in $PATH 12221do 12222 IFS=$as_save_IFS 12223 test -z "$as_dir" && as_dir=. 12224 for ac_exec_ext in '' $ac_executable_extensions; do 12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12226 ac_cv_prog_CC="${ac_tool_prefix}cc" 12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12228 break 2 12229 fi 12230done 12231 done 12232IFS=$as_save_IFS 12233 12234fi 12235fi 12236CC=$ac_cv_prog_CC 12237if test -n "$CC"; then 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12239$as_echo "$CC" >&6; } 12240else 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12242$as_echo "no" >&6; } 12243fi 12244 12245 12246 fi 12247fi 12248if test -z "$CC"; then 12249 # Extract the first word of "cc", so it can be a program name with args. 12250set dummy cc; ac_word=$2 12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12252$as_echo_n "checking for $ac_word... " >&6; } 12253if ${ac_cv_prog_CC+:} false; then : 12254 $as_echo_n "(cached) " >&6 12255else 12256 if test -n "$CC"; then 12257 ac_cv_prog_CC="$CC" # Let the user override the test. 12258else 12259 ac_prog_rejected=no 12260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12261for as_dir in $PATH 12262do 12263 IFS=$as_save_IFS 12264 test -z "$as_dir" && as_dir=. 12265 for ac_exec_ext in '' $ac_executable_extensions; do 12266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12268 ac_prog_rejected=yes 12269 continue 12270 fi 12271 ac_cv_prog_CC="cc" 12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12273 break 2 12274 fi 12275done 12276 done 12277IFS=$as_save_IFS 12278 12279if test $ac_prog_rejected = yes; then 12280 # We found a bogon in the path, so make sure we never use it. 12281 set dummy $ac_cv_prog_CC 12282 shift 12283 if test $# != 0; then 12284 # We chose a different compiler from the bogus one. 12285 # However, it has the same basename, so the bogon will be chosen 12286 # first if we set CC to just the basename; use the full file name. 12287 shift 12288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12289 fi 12290fi 12291fi 12292fi 12293CC=$ac_cv_prog_CC 12294if test -n "$CC"; then 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12296$as_echo "$CC" >&6; } 12297else 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12299$as_echo "no" >&6; } 12300fi 12301 12302 12303fi 12304if test -z "$CC"; then 12305 if test -n "$ac_tool_prefix"; then 12306 for ac_prog in cl.exe 12307 do 12308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12311$as_echo_n "checking for $ac_word... " >&6; } 12312if ${ac_cv_prog_CC+:} false; then : 12313 $as_echo_n "(cached) " >&6 12314else 12315 if test -n "$CC"; then 12316 ac_cv_prog_CC="$CC" # Let the user override the test. 12317else 12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12319for as_dir in $PATH 12320do 12321 IFS=$as_save_IFS 12322 test -z "$as_dir" && as_dir=. 12323 for ac_exec_ext in '' $ac_executable_extensions; do 12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12327 break 2 12328 fi 12329done 12330 done 12331IFS=$as_save_IFS 12332 12333fi 12334fi 12335CC=$ac_cv_prog_CC 12336if test -n "$CC"; then 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12338$as_echo "$CC" >&6; } 12339else 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12341$as_echo "no" >&6; } 12342fi 12343 12344 12345 test -n "$CC" && break 12346 done 12347fi 12348if test -z "$CC"; then 12349 ac_ct_CC=$CC 12350 for ac_prog in cl.exe 12351do 12352 # Extract the first word of "$ac_prog", so it can be a program name with args. 12353set dummy $ac_prog; ac_word=$2 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12355$as_echo_n "checking for $ac_word... " >&6; } 12356if ${ac_cv_prog_ac_ct_CC+:} false; then : 12357 $as_echo_n "(cached) " >&6 12358else 12359 if test -n "$ac_ct_CC"; then 12360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12361else 12362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12363for as_dir in $PATH 12364do 12365 IFS=$as_save_IFS 12366 test -z "$as_dir" && as_dir=. 12367 for ac_exec_ext in '' $ac_executable_extensions; do 12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12369 ac_cv_prog_ac_ct_CC="$ac_prog" 12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12371 break 2 12372 fi 12373done 12374 done 12375IFS=$as_save_IFS 12376 12377fi 12378fi 12379ac_ct_CC=$ac_cv_prog_ac_ct_CC 12380if test -n "$ac_ct_CC"; then 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12382$as_echo "$ac_ct_CC" >&6; } 12383else 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12385$as_echo "no" >&6; } 12386fi 12387 12388 12389 test -n "$ac_ct_CC" && break 12390done 12391 12392 if test "x$ac_ct_CC" = x; then 12393 CC="" 12394 else 12395 case $cross_compiling:$ac_tool_warned in 12396yes:) 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12399ac_tool_warned=yes ;; 12400esac 12401 CC=$ac_ct_CC 12402 fi 12403fi 12404 12405fi 12406 12407 12408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12410as_fn_error $? "no acceptable C compiler found in \$PATH 12411See \`config.log' for more details" "$LINENO" 5; } 12412 12413# Provide some information about the compiler. 12414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12415set X $ac_compile 12416ac_compiler=$2 12417for ac_option in --version -v -V -qversion; do 12418 { { ac_try="$ac_compiler $ac_option >&5" 12419case "(($ac_try" in 12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12421 *) ac_try_echo=$ac_try;; 12422esac 12423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12424$as_echo "$ac_try_echo"; } >&5 12425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12426 ac_status=$? 12427 if test -s conftest.err; then 12428 sed '10a\ 12429... rest of stderr output deleted ... 12430 10q' conftest.err >conftest.er1 12431 cat conftest.er1 >&5 12432 fi 12433 rm -f conftest.er1 conftest.err 12434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12435 test $ac_status = 0; } 12436done 12437 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12439$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12440if ${ac_cv_c_compiler_gnu+:} false; then : 12441 $as_echo_n "(cached) " >&6 12442else 12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12444/* end confdefs.h. */ 12445 12446int 12447main () 12448{ 12449#ifndef __GNUC__ 12450 choke me 12451#endif 12452 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457if ac_fn_c_try_compile "$LINENO"; then : 12458 ac_compiler_gnu=yes 12459else 12460 ac_compiler_gnu=no 12461fi 12462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12463ac_cv_c_compiler_gnu=$ac_compiler_gnu 12464 12465fi 12466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12467$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12468if test $ac_compiler_gnu = yes; then 12469 GCC=yes 12470else 12471 GCC= 12472fi 12473ac_test_CFLAGS=${CFLAGS+set} 12474ac_save_CFLAGS=$CFLAGS 12475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12476$as_echo_n "checking whether $CC accepts -g... " >&6; } 12477if ${ac_cv_prog_cc_g+:} false; then : 12478 $as_echo_n "(cached) " >&6 12479else 12480 ac_save_c_werror_flag=$ac_c_werror_flag 12481 ac_c_werror_flag=yes 12482 ac_cv_prog_cc_g=no 12483 CFLAGS="-g" 12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12485/* end confdefs.h. */ 12486 12487int 12488main () 12489{ 12490 12491 ; 12492 return 0; 12493} 12494_ACEOF 12495if ac_fn_c_try_compile "$LINENO"; then : 12496 ac_cv_prog_cc_g=yes 12497else 12498 CFLAGS="" 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501 12502int 12503main () 12504{ 12505 12506 ; 12507 return 0; 12508} 12509_ACEOF 12510if ac_fn_c_try_compile "$LINENO"; then : 12511 12512else 12513 ac_c_werror_flag=$ac_save_c_werror_flag 12514 CFLAGS="-g" 12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12516/* end confdefs.h. */ 12517 12518int 12519main () 12520{ 12521 12522 ; 12523 return 0; 12524} 12525_ACEOF 12526if ac_fn_c_try_compile "$LINENO"; then : 12527 ac_cv_prog_cc_g=yes 12528fi 12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12530fi 12531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12532fi 12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12534 ac_c_werror_flag=$ac_save_c_werror_flag 12535fi 12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12537$as_echo "$ac_cv_prog_cc_g" >&6; } 12538if test "$ac_test_CFLAGS" = set; then 12539 CFLAGS=$ac_save_CFLAGS 12540elif test $ac_cv_prog_cc_g = yes; then 12541 if test "$GCC" = yes; then 12542 CFLAGS="-g -O2" 12543 else 12544 CFLAGS="-g" 12545 fi 12546else 12547 if test "$GCC" = yes; then 12548 CFLAGS="-O2" 12549 else 12550 CFLAGS= 12551 fi 12552fi 12553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12554$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12555if ${ac_cv_prog_cc_c89+:} false; then : 12556 $as_echo_n "(cached) " >&6 12557else 12558 ac_cv_prog_cc_c89=no 12559ac_save_CC=$CC 12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562#include <stdarg.h> 12563#include <stdio.h> 12564struct stat; 12565/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12566struct buf { int x; }; 12567FILE * (*rcsopen) (struct buf *, struct stat *, int); 12568static char *e (p, i) 12569 char **p; 12570 int i; 12571{ 12572 return p[i]; 12573} 12574static char *f (char * (*g) (char **, int), char **p, ...) 12575{ 12576 char *s; 12577 va_list v; 12578 va_start (v,p); 12579 s = g (p, va_arg (v,int)); 12580 va_end (v); 12581 return s; 12582} 12583 12584/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12585 function prototypes and stuff, but not '\xHH' hex character constants. 12586 These don't provoke an error unfortunately, instead are silently treated 12587 as 'x'. The following induces an error, until -std is added to get 12588 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12589 array size at least. It's necessary to write '\x00'==0 to get something 12590 that's true only with -std. */ 12591int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12592 12593/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12594 inside strings and character constants. */ 12595#define FOO(x) 'x' 12596int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12597 12598int test (int i, double x); 12599struct s1 {int (*f) (int a);}; 12600struct s2 {int (*f) (double a);}; 12601int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12602int argc; 12603char **argv; 12604int 12605main () 12606{ 12607return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12608 ; 12609 return 0; 12610} 12611_ACEOF 12612for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12613 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12614do 12615 CC="$ac_save_CC $ac_arg" 12616 if ac_fn_c_try_compile "$LINENO"; then : 12617 ac_cv_prog_cc_c89=$ac_arg 12618fi 12619rm -f core conftest.err conftest.$ac_objext 12620 test "x$ac_cv_prog_cc_c89" != "xno" && break 12621done 12622rm -f conftest.$ac_ext 12623CC=$ac_save_CC 12624 12625fi 12626# AC_CACHE_VAL 12627case "x$ac_cv_prog_cc_c89" in 12628 x) 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12630$as_echo "none needed" >&6; } ;; 12631 xno) 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12633$as_echo "unsupported" >&6; } ;; 12634 *) 12635 CC="$CC $ac_cv_prog_cc_c89" 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12637$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12638esac 12639if test "x$ac_cv_prog_cc_c89" != xno; then : 12640 12641fi 12642 12643ac_ext=c 12644ac_cpp='$CPP $CPPFLAGS' 12645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12647ac_compiler_gnu=$ac_cv_c_compiler_gnu 12648 12649ac_ext=c 12650ac_cpp='$CPP $CPPFLAGS' 12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12653ac_compiler_gnu=$ac_cv_c_compiler_gnu 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12655$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12656if ${am_cv_prog_cc_c_o+:} false; then : 12657 $as_echo_n "(cached) " >&6 12658else 12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12660/* end confdefs.h. */ 12661 12662int 12663main () 12664{ 12665 12666 ; 12667 return 0; 12668} 12669_ACEOF 12670 # Make sure it works both with $CC and with simple cc. 12671 # Following AC_PROG_CC_C_O, we do the test twice because some 12672 # compilers refuse to overwrite an existing .o file with -o, 12673 # though they will create one. 12674 am_cv_prog_cc_c_o=yes 12675 for am_i in 1 2; do 12676 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12677 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12678 ac_status=$? 12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 (exit $ac_status); } \ 12681 && test -f conftest2.$ac_objext; then 12682 : OK 12683 else 12684 am_cv_prog_cc_c_o=no 12685 break 12686 fi 12687 done 12688 rm -f core conftest* 12689 unset am_i 12690fi 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12692$as_echo "$am_cv_prog_cc_c_o" >&6; } 12693if test "$am_cv_prog_cc_c_o" != yes; then 12694 # Losing compiler, so override with the script. 12695 # FIXME: It is wrong to rewrite CC. 12696 # But if we don't then we get into trouble of one sort or another. 12697 # A longer-term fix would be to have automake use am__CC in this case, 12698 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12699 CC="$am_aux_dir/compile $CC" 12700fi 12701ac_ext=c 12702ac_cpp='$CPP $CPPFLAGS' 12703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12705ac_compiler_gnu=$ac_cv_c_compiler_gnu 12706 12707 12708depcc="$CC" am_compiler_list= 12709 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12711$as_echo_n "checking dependency style of $depcc... " >&6; } 12712if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12716 # We make a subdir and do the tests there. Otherwise we can end up 12717 # making bogus files that we don't know about and never remove. For 12718 # instance it was reported that on HP-UX the gcc test will end up 12719 # making a dummy file named 'D' -- because '-MD' means "put the output 12720 # in D". 12721 rm -rf conftest.dir 12722 mkdir conftest.dir 12723 # Copy depcomp to subdir because otherwise we won't find it if we're 12724 # using a relative directory. 12725 cp "$am_depcomp" conftest.dir 12726 cd conftest.dir 12727 # We will build objects and dependencies in a subdirectory because 12728 # it helps to detect inapplicable dependency modes. For instance 12729 # both Tru64's cc and ICC support -MD to output dependencies as a 12730 # side effect of compilation, but ICC will put the dependencies in 12731 # the current directory while Tru64 will put them in the object 12732 # directory. 12733 mkdir sub 12734 12735 am_cv_CC_dependencies_compiler_type=none 12736 if test "$am_compiler_list" = ""; then 12737 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12738 fi 12739 am__universal=false 12740 case " $depcc " in #( 12741 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12742 esac 12743 12744 for depmode in $am_compiler_list; do 12745 # Setup a source with many dependencies, because some compilers 12746 # like to wrap large dependency lists on column 80 (with \), and 12747 # we should not choose a depcomp mode which is confused by this. 12748 # 12749 # We need to recreate these files for each test, as the compiler may 12750 # overwrite some of them when testing with obscure command lines. 12751 # This happens at least with the AIX C compiler. 12752 : > sub/conftest.c 12753 for i in 1 2 3 4 5 6; do 12754 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12755 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12756 # Solaris 10 /bin/sh. 12757 echo '/* dummy */' > sub/conftst$i.h 12758 done 12759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12760 12761 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12762 # mode. It turns out that the SunPro C++ compiler does not properly 12763 # handle '-M -o', and we need to detect this. Also, some Intel 12764 # versions had trouble with output in subdirs. 12765 am__obj=sub/conftest.${OBJEXT-o} 12766 am__minus_obj="-o $am__obj" 12767 case $depmode in 12768 gcc) 12769 # This depmode causes a compiler race in universal mode. 12770 test "$am__universal" = false || continue 12771 ;; 12772 nosideeffect) 12773 # After this tag, mechanisms are not by side-effect, so they'll 12774 # only be used when explicitly requested. 12775 if test "x$enable_dependency_tracking" = xyes; then 12776 continue 12777 else 12778 break 12779 fi 12780 ;; 12781 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12782 # This compiler won't grok '-c -o', but also, the minuso test has 12783 # not run yet. These depmodes are late enough in the game, and 12784 # so weak that their functioning should not be impacted. 12785 am__obj=conftest.${OBJEXT-o} 12786 am__minus_obj= 12787 ;; 12788 none) break ;; 12789 esac 12790 if depmode=$depmode \ 12791 source=sub/conftest.c object=$am__obj \ 12792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12793 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12794 >/dev/null 2>conftest.err && 12795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12797 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12799 # icc doesn't choke on unknown options, it will just issue warnings 12800 # or remarks (even with -Werror). So we grep stderr for any message 12801 # that says an option was ignored or not supported. 12802 # When given -MP, icc 7.0 and 7.1 complain thusly: 12803 # icc: Command line warning: ignoring option '-M'; no argument required 12804 # The diagnosis changed in icc 8.0: 12805 # icc: Command line remark: option '-MP' not supported 12806 if (grep 'ignoring option' conftest.err || 12807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12808 am_cv_CC_dependencies_compiler_type=$depmode 12809 break 12810 fi 12811 fi 12812 done 12813 12814 cd .. 12815 rm -rf conftest.dir 12816else 12817 am_cv_CC_dependencies_compiler_type=none 12818fi 12819 12820fi 12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12822$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12823CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12824 12825 if 12826 test "x$enable_dependency_tracking" != xno \ 12827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12828 am__fastdepCC_TRUE= 12829 am__fastdepCC_FALSE='#' 12830else 12831 am__fastdepCC_TRUE='#' 12832 am__fastdepCC_FALSE= 12833fi 12834 12835 12836if test -n "$ac_tool_prefix"; then 12837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12838set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12840$as_echo_n "checking for $ac_word... " >&6; } 12841if ${ac_cv_prog_RANLIB+:} false; then : 12842 $as_echo_n "(cached) " >&6 12843else 12844 if test -n "$RANLIB"; then 12845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12846else 12847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12848for as_dir in $PATH 12849do 12850 IFS=$as_save_IFS 12851 test -z "$as_dir" && as_dir=. 12852 for ac_exec_ext in '' $ac_executable_extensions; do 12853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12856 break 2 12857 fi 12858done 12859 done 12860IFS=$as_save_IFS 12861 12862fi 12863fi 12864RANLIB=$ac_cv_prog_RANLIB 12865if test -n "$RANLIB"; then 12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12867$as_echo "$RANLIB" >&6; } 12868else 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12870$as_echo "no" >&6; } 12871fi 12872 12873 12874fi 12875if test -z "$ac_cv_prog_RANLIB"; then 12876 ac_ct_RANLIB=$RANLIB 12877 # Extract the first word of "ranlib", so it can be a program name with args. 12878set dummy ranlib; ac_word=$2 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12880$as_echo_n "checking for $ac_word... " >&6; } 12881if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883else 12884 if test -n "$ac_ct_RANLIB"; then 12885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12886else 12887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12888for as_dir in $PATH 12889do 12890 IFS=$as_save_IFS 12891 test -z "$as_dir" && as_dir=. 12892 for ac_exec_ext in '' $ac_executable_extensions; do 12893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12894 ac_cv_prog_ac_ct_RANLIB="ranlib" 12895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12896 break 2 12897 fi 12898done 12899 done 12900IFS=$as_save_IFS 12901 12902fi 12903fi 12904ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12905if test -n "$ac_ct_RANLIB"; then 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12907$as_echo "$ac_ct_RANLIB" >&6; } 12908else 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12910$as_echo "no" >&6; } 12911fi 12912 12913 if test "x$ac_ct_RANLIB" = x; then 12914 RANLIB=":" 12915 else 12916 case $cross_compiling:$ac_tool_warned in 12917yes:) 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12920ac_tool_warned=yes ;; 12921esac 12922 RANLIB=$ac_ct_RANLIB 12923 fi 12924else 12925 RANLIB="$ac_cv_prog_RANLIB" 12926fi 12927 12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12929$as_echo_n "checking whether ln -s works... " >&6; } 12930LN_S=$as_ln_s 12931if test "$LN_S" = "ln -s"; then 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12933$as_echo "yes" >&6; } 12934else 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12936$as_echo "no, using $LN_S" >&6; } 12937fi 12938 12939 12940 12941# Add -Wall if we are using GCC. 12942if test "x$GCC" = "xyes"; then 12943 CFLAGS="$CFLAGS -Wall" 12944fi 12945 12946# Check if enable profiling 12947# Check whether --enable-profiling was given. 12948if test "${enable_profiling+set}" = set; then : 12949 enableval=$enable_profiling; enable_profiling=yes 12950else 12951 : 12952fi 12953 12954 if test x$enable_profiling = xyes; then 12955 ENABLE_PROFILING_TRUE= 12956 ENABLE_PROFILING_FALSE='#' 12957else 12958 ENABLE_PROFILING_TRUE='#' 12959 ENABLE_PROFILING_FALSE= 12960fi 12961 12962 12963# Checks for header files. 12964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12965$as_echo_n "checking for ANSI C header files... " >&6; } 12966if ${ac_cv_header_stdc+:} false; then : 12967 $as_echo_n "(cached) " >&6 12968else 12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12970/* end confdefs.h. */ 12971#include <stdlib.h> 12972#include <stdarg.h> 12973#include <string.h> 12974#include <float.h> 12975 12976int 12977main () 12978{ 12979 12980 ; 12981 return 0; 12982} 12983_ACEOF 12984if ac_fn_c_try_compile "$LINENO"; then : 12985 ac_cv_header_stdc=yes 12986else 12987 ac_cv_header_stdc=no 12988fi 12989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12990 12991if test $ac_cv_header_stdc = yes; then 12992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12994/* end confdefs.h. */ 12995#include <string.h> 12996 12997_ACEOF 12998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12999 $EGREP "memchr" >/dev/null 2>&1; then : 13000 13001else 13002 ac_cv_header_stdc=no 13003fi 13004rm -f conftest* 13005 13006fi 13007 13008if test $ac_cv_header_stdc = yes; then 13009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012#include <stdlib.h> 13013 13014_ACEOF 13015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13016 $EGREP "free" >/dev/null 2>&1; then : 13017 13018else 13019 ac_cv_header_stdc=no 13020fi 13021rm -f conftest* 13022 13023fi 13024 13025if test $ac_cv_header_stdc = yes; then 13026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13027 if test "$cross_compiling" = yes; then : 13028 : 13029else 13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031/* end confdefs.h. */ 13032#include <ctype.h> 13033#include <stdlib.h> 13034#if ((' ' & 0x0FF) == 0x020) 13035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13037#else 13038# define ISLOWER(c) \ 13039 (('a' <= (c) && (c) <= 'i') \ 13040 || ('j' <= (c) && (c) <= 'r') \ 13041 || ('s' <= (c) && (c) <= 'z')) 13042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13043#endif 13044 13045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13046int 13047main () 13048{ 13049 int i; 13050 for (i = 0; i < 256; i++) 13051 if (XOR (islower (i), ISLOWER (i)) 13052 || toupper (i) != TOUPPER (i)) 13053 return 2; 13054 return 0; 13055} 13056_ACEOF 13057if ac_fn_c_try_run "$LINENO"; then : 13058 13059else 13060 ac_cv_header_stdc=no 13061fi 13062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13063 conftest.$ac_objext conftest.beam conftest.$ac_ext 13064fi 13065 13066fi 13067fi 13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13069$as_echo "$ac_cv_header_stdc" >&6; } 13070if test $ac_cv_header_stdc = yes; then 13071 13072$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13073 13074fi 13075 13076 13077# Check for systems which need -lsocket and -lnsl 13078#AX_LIB_SOCKET_NSL 13079 13080# Check for the math library (needed by cjson on some platforms) 13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 13082$as_echo_n "checking for library containing floor... " >&6; } 13083if ${ac_cv_search_floor+:} false; then : 13084 $as_echo_n "(cached) " >&6 13085else 13086 ac_func_search_save_LIBS=$LIBS 13087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13088/* end confdefs.h. */ 13089 13090/* Override any GCC internal prototype to avoid an error. 13091 Use char because int might match the return type of a GCC 13092 builtin and then its argument prototype would still apply. */ 13093#ifdef __cplusplus 13094extern "C" 13095#endif 13096char floor (); 13097int 13098main () 13099{ 13100return floor (); 13101 ; 13102 return 0; 13103} 13104_ACEOF 13105for ac_lib in '' m; do 13106 if test -z "$ac_lib"; then 13107 ac_res="none required" 13108 else 13109 ac_res=-l$ac_lib 13110 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13111 fi 13112 if ac_fn_c_try_link "$LINENO"; then : 13113 ac_cv_search_floor=$ac_res 13114fi 13115rm -f core conftest.err conftest.$ac_objext \ 13116 conftest$ac_exeext 13117 if ${ac_cv_search_floor+:} false; then : 13118 break 13119fi 13120done 13121if ${ac_cv_search_floor+:} false; then : 13122 13123else 13124 ac_cv_search_floor=no 13125fi 13126rm conftest.$ac_ext 13127LIBS=$ac_func_search_save_LIBS 13128fi 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 13130$as_echo "$ac_cv_search_floor" >&6; } 13131ac_res=$ac_cv_search_floor 13132if test "$ac_res" != no; then : 13133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13134 13135else 13136 13137echo "floor()" 13138exit 1 13139 13140fi 13141 13142 13143# On illumos we need -lsocket 13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13145$as_echo_n "checking for library containing socket... " >&6; } 13146if ${ac_cv_search_socket+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148else 13149 ac_func_search_save_LIBS=$LIBS 13150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151/* end confdefs.h. */ 13152 13153/* Override any GCC internal prototype to avoid an error. 13154 Use char because int might match the return type of a GCC 13155 builtin and then its argument prototype would still apply. */ 13156#ifdef __cplusplus 13157extern "C" 13158#endif 13159char socket (); 13160int 13161main () 13162{ 13163return socket (); 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168for ac_lib in '' socket; do 13169 if test -z "$ac_lib"; then 13170 ac_res="none required" 13171 else 13172 ac_res=-l$ac_lib 13173 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13174 fi 13175 if ac_fn_c_try_link "$LINENO"; then : 13176 ac_cv_search_socket=$ac_res 13177fi 13178rm -f core conftest.err conftest.$ac_objext \ 13179 conftest$ac_exeext 13180 if ${ac_cv_search_socket+:} false; then : 13181 break 13182fi 13183done 13184if ${ac_cv_search_socket+:} false; then : 13185 13186else 13187 ac_cv_search_socket=no 13188fi 13189rm conftest.$ac_ext 13190LIBS=$ac_func_search_save_LIBS 13191fi 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13193$as_echo "$ac_cv_search_socket" >&6; } 13194ac_res=$ac_cv_search_socket 13195if test "$ac_res" != no; then : 13196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13197 13198else 13199 13200echo "socket()" 13201exit 1 13202 13203fi 13204 13205 13206# On illumos inet_ntop in in -lnsl 13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 13208$as_echo_n "checking for library containing inet_ntop... " >&6; } 13209if ${ac_cv_search_inet_ntop+:} false; then : 13210 $as_echo_n "(cached) " >&6 13211else 13212 ac_func_search_save_LIBS=$LIBS 13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215 13216/* Override any GCC internal prototype to avoid an error. 13217 Use char because int might match the return type of a GCC 13218 builtin and then its argument prototype would still apply. */ 13219#ifdef __cplusplus 13220extern "C" 13221#endif 13222char inet_ntop (); 13223int 13224main () 13225{ 13226return inet_ntop (); 13227 ; 13228 return 0; 13229} 13230_ACEOF 13231for ac_lib in '' nsl; do 13232 if test -z "$ac_lib"; then 13233 ac_res="none required" 13234 else 13235 ac_res=-l$ac_lib 13236 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13237 fi 13238 if ac_fn_c_try_link "$LINENO"; then : 13239 ac_cv_search_inet_ntop=$ac_res 13240fi 13241rm -f core conftest.err conftest.$ac_objext \ 13242 conftest$ac_exeext 13243 if ${ac_cv_search_inet_ntop+:} false; then : 13244 break 13245fi 13246done 13247if ${ac_cv_search_inet_ntop+:} false; then : 13248 13249else 13250 ac_cv_search_inet_ntop=no 13251fi 13252rm conftest.$ac_ext 13253LIBS=$ac_func_search_save_LIBS 13254fi 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 13256$as_echo "$ac_cv_search_inet_ntop" >&6; } 13257ac_res=$ac_cv_search_inet_ntop 13258if test "$ac_res" != no; then : 13259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13260 13261else 13262 13263echo "inet_ntop()" 13264exit 1 13265 13266fi 13267 13268 13269# Checks for typedefs, structures, and compiler characteristics. 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13271$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13272if ${ac_cv_c_const+:} false; then : 13273 $as_echo_n "(cached) " >&6 13274else 13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13276/* end confdefs.h. */ 13277 13278int 13279main () 13280{ 13281 13282#ifndef __cplusplus 13283 /* Ultrix mips cc rejects this sort of thing. */ 13284 typedef int charset[2]; 13285 const charset cs = { 0, 0 }; 13286 /* SunOS 4.1.1 cc rejects this. */ 13287 char const *const *pcpcc; 13288 char **ppc; 13289 /* NEC SVR4.0.2 mips cc rejects this. */ 13290 struct point {int x, y;}; 13291 static struct point const zero = {0,0}; 13292 /* AIX XL C 1.02.0.0 rejects this. 13293 It does not let you subtract one const X* pointer from another in 13294 an arm of an if-expression whose if-part is not a constant 13295 expression */ 13296 const char *g = "string"; 13297 pcpcc = &g + (g ? g-g : 0); 13298 /* HPUX 7.0 cc rejects these. */ 13299 ++pcpcc; 13300 ppc = (char**) pcpcc; 13301 pcpcc = (char const *const *) ppc; 13302 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13303 char tx; 13304 char *t = &tx; 13305 char const *s = 0 ? (char *) 0 : (char const *) 0; 13306 13307 *t++ = 0; 13308 if (s) return 0; 13309 } 13310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13311 int x[] = {25, 17}; 13312 const int *foo = &x[0]; 13313 ++foo; 13314 } 13315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13316 typedef const int *iptr; 13317 iptr p = 0; 13318 ++p; 13319 } 13320 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13322 struct s { int j; const int *ap[3]; } bx; 13323 struct s *b = &bx; b->j = 5; 13324 } 13325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13326 const int foo = 10; 13327 if (!foo) return 0; 13328 } 13329 return !cs[0] && !zero.x; 13330#endif 13331 13332 ; 13333 return 0; 13334} 13335_ACEOF 13336if ac_fn_c_try_compile "$LINENO"; then : 13337 ac_cv_c_const=yes 13338else 13339 ac_cv_c_const=no 13340fi 13341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13342fi 13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13344$as_echo "$ac_cv_c_const" >&6; } 13345if test $ac_cv_c_const = no; then 13346 13347$as_echo "#define const /**/" >>confdefs.h 13348 13349fi 13350 13351 13352# Check for poll.h (it's in POSIX so everyone should have it?) 13353for ac_header in poll.h 13354do : 13355 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13356if test "x$ac_cv_header_poll_h" = xyes; then : 13357 cat >>confdefs.h <<_ACEOF 13358#define HAVE_POLL_H 1 13359_ACEOF 13360 13361fi 13362 13363done 13364 13365 13366# SCTP. Allow user to disable SCTP support with --without-sctp. 13367# Otherwise we try to find whatever support is required. 13368try_sctp=true 13369 13370# Check whether --with-sctp was given. 13371if test "${with_sctp+set}" = set; then : 13372 withval=$with_sctp; 13373 case "$withval" in 13374 y | ye | yes) 13375 ;; 13376 n | no) 13377 try_sctp=false 13378 ;; 13379 *) 13380 as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5 13381 ;; 13382 esac 13383 13384else 13385 13386 try_sctp=true 13387 13388 13389fi 13390 13391 13392# Check for SCTP support 13393if $try_sctp; then 13394for ac_header in sys/socket.h 13395do : 13396 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 13397if test "x$ac_cv_header_sys_socket_h" = xyes; then : 13398 cat >>confdefs.h <<_ACEOF 13399#define HAVE_SYS_SOCKET_H 1 13400_ACEOF 13401 13402fi 13403 13404done 13405 13406for ac_header in netinet/sctp.h 13407do : 13408 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H 13409#include <sys/socket.h> 13410#endif 13411 13412" 13413if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 13414 cat >>confdefs.h <<_ACEOF 13415#define HAVE_NETINET_SCTP_H 1 13416_ACEOF 13417 13418$as_echo "#define HAVE_SCTP 1" >>confdefs.h 13419 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 13421$as_echo_n "checking for library containing sctp_bindx... " >&6; } 13422if ${ac_cv_search_sctp_bindx+:} false; then : 13423 $as_echo_n "(cached) " >&6 13424else 13425 ac_func_search_save_LIBS=$LIBS 13426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13427/* end confdefs.h. */ 13428 13429/* Override any GCC internal prototype to avoid an error. 13430 Use char because int might match the return type of a GCC 13431 builtin and then its argument prototype would still apply. */ 13432#ifdef __cplusplus 13433extern "C" 13434#endif 13435char sctp_bindx (); 13436int 13437main () 13438{ 13439return sctp_bindx (); 13440 ; 13441 return 0; 13442} 13443_ACEOF 13444for ac_lib in '' sctp; do 13445 if test -z "$ac_lib"; then 13446 ac_res="none required" 13447 else 13448 ac_res=-l$ac_lib 13449 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13450 fi 13451 if ac_fn_c_try_link "$LINENO"; then : 13452 ac_cv_search_sctp_bindx=$ac_res 13453fi 13454rm -f core conftest.err conftest.$ac_objext \ 13455 conftest$ac_exeext 13456 if ${ac_cv_search_sctp_bindx+:} false; then : 13457 break 13458fi 13459done 13460if ${ac_cv_search_sctp_bindx+:} false; then : 13461 13462else 13463 ac_cv_search_sctp_bindx=no 13464fi 13465rm conftest.$ac_ext 13466LIBS=$ac_func_search_save_LIBS 13467fi 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 13469$as_echo "$ac_cv_search_sctp_bindx" >&6; } 13470ac_res=$ac_cv_search_sctp_bindx 13471if test "$ac_res" != no; then : 13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13473 13474fi 13475 13476 13477# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 13478# ------------------------------------------- 13479# Tests whether TYPE exists after having included INCLUDES, setting cache 13480# variable VAR accordingly. 13481ac_fn_c_check_type () 13482{ 13483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 13485$as_echo_n "checking for $2... " >&6; } 13486if eval \${$3+:} false; then : 13487 $as_echo_n "(cached) " >&6 13488else 13489 eval "$3=no" 13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13491/* end confdefs.h. */ 13492$4 13493int 13494main () 13495{ 13496if (sizeof ($2)) 13497 return 0; 13498 ; 13499 return 0; 13500} 13501_ACEOF 13502if ac_fn_c_try_compile "$LINENO"; then : 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505$4 13506int 13507main () 13508{ 13509if (sizeof (($2))) 13510 return 0; 13511 ; 13512 return 0; 13513} 13514_ACEOF 13515if ac_fn_c_try_compile "$LINENO"; then : 13516 13517else 13518 eval "$3=yes" 13519fi 13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13523fi 13524eval ac_res=\$$3 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13526$as_echo "$ac_res" >&6; } 13527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 13528 13529} # ac_fn_c_check_type 13530ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h> 13531" 13532if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then : 13533 13534cat >>confdefs.h <<_ACEOF 13535#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1 13536_ACEOF 13537 13538 13539fi 13540 13541fi 13542 13543done 13544 13545fi 13546 13547ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 13548if test "x$ac_cv_header_endian_h" = xyes; then : 13549 13550$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h 13551 13552else 13553 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 13554if test "x$ac_cv_header_sys_endian_h" = xyes; then : 13555 13556$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 13557 13558else 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5 13560$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;} 13561 13562fi 13563 13564 13565 13566fi 13567 13568 13569 13570if test "x$with_openssl" = "xno"; then 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5 13572$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;} 13573else 13574 # Check for OPENSSL support 13575 havs_ssl=false 13576 13577 found=false 13578 13579# Check whether --with-openssl was given. 13580if test "${with_openssl+set}" = set; then : 13581 withval=$with_openssl; 13582 case "$withval" in 13583 "" | y | ye | yes | n | no) 13584 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 13585 ;; 13586 *) ssldirs="$withval" 13587 ;; 13588 esac 13589 13590else 13591 13592 # if pkg-config is installed and openssl has installed a .pc file, 13593 # then use that information and don't search ssldirs 13594 if test -n "$ac_tool_prefix"; then 13595 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13596set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13598$as_echo_n "checking for $ac_word... " >&6; } 13599if ${ac_cv_prog_PKG_CONFIG+:} false; then : 13600 $as_echo_n "(cached) " >&6 13601else 13602 if test -n "$PKG_CONFIG"; then 13603 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 13604else 13605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13606for as_dir in $PATH 13607do 13608 IFS=$as_save_IFS 13609 test -z "$as_dir" && as_dir=. 13610 for ac_exec_ext in '' $ac_executable_extensions; do 13611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13612 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 13613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13614 break 2 13615 fi 13616done 13617 done 13618IFS=$as_save_IFS 13619 13620fi 13621fi 13622PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 13623if test -n "$PKG_CONFIG"; then 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13625$as_echo "$PKG_CONFIG" >&6; } 13626else 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13628$as_echo "no" >&6; } 13629fi 13630 13631 13632fi 13633if test -z "$ac_cv_prog_PKG_CONFIG"; then 13634 ac_ct_PKG_CONFIG=$PKG_CONFIG 13635 # Extract the first word of "pkg-config", so it can be a program name with args. 13636set dummy pkg-config; ac_word=$2 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13638$as_echo_n "checking for $ac_word... " >&6; } 13639if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 13640 $as_echo_n "(cached) " >&6 13641else 13642 if test -n "$ac_ct_PKG_CONFIG"; then 13643 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 13644else 13645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13646for as_dir in $PATH 13647do 13648 IFS=$as_save_IFS 13649 test -z "$as_dir" && as_dir=. 13650 for ac_exec_ext in '' $ac_executable_extensions; do 13651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13652 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13654 break 2 13655 fi 13656done 13657 done 13658IFS=$as_save_IFS 13659 13660fi 13661fi 13662ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 13663if test -n "$ac_ct_PKG_CONFIG"; then 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 13665$as_echo "$ac_ct_PKG_CONFIG" >&6; } 13666else 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13668$as_echo "no" >&6; } 13669fi 13670 13671 if test "x$ac_ct_PKG_CONFIG" = x; then 13672 PKG_CONFIG="" 13673 else 13674 case $cross_compiling:$ac_tool_warned in 13675yes:) 13676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13678ac_tool_warned=yes ;; 13679esac 13680 PKG_CONFIG=$ac_ct_PKG_CONFIG 13681 fi 13682else 13683 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 13684fi 13685 13686 if test x"$PKG_CONFIG" != x""; then 13687 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 13688 if test $? = 0; then 13689 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 13690 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 13691 found=true 13692 fi 13693 fi 13694 13695 # no such luck; use some default ssldirs 13696 if ! $found; then 13697 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 13698 fi 13699 13700 13701fi 13702 13703 13704 13705 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 13706 # an 'openssl' subdirectory 13707 13708 if ! $found; then 13709 OPENSSL_INCLUDES= 13710 for ssldir in $ssldirs; do 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 13712$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 13713 if test -f "$ssldir/include/openssl/ssl.h"; then 13714 OPENSSL_INCLUDES="-I$ssldir/include" 13715 OPENSSL_LDFLAGS="-L$ssldir/lib" 13716 OPENSSL_LIBS="-lssl -lcrypto" 13717 found=true 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13719$as_echo "yes" >&6; } 13720 break 13721 else 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13723$as_echo "no" >&6; } 13724 fi 13725 done 13726 13727 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 13728 # it will just work! 13729 fi 13730 13731 # try the preprocessor and linker with our new flags, 13732 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 13733 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 13735$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 13736 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 13737 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 13738 13739 save_LIBS="$LIBS" 13740 save_LDFLAGS="$LDFLAGS" 13741 save_CPPFLAGS="$CPPFLAGS" 13742 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 13743 LIBS="$OPENSSL_LIBS $LIBS" 13744 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13746/* end confdefs.h. */ 13747#include <openssl/ssl.h> 13748int 13749main () 13750{ 13751SSL_new(NULL) 13752 ; 13753 return 0; 13754} 13755_ACEOF 13756if ac_fn_c_try_link "$LINENO"; then : 13757 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13759$as_echo "yes" >&6; } 13760 13761$as_echo "#define HAVE_SSL 1" >>confdefs.h 13762 13763 have_ssl=true 13764 13765else 13766 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13768$as_echo "no" >&6; } 13769 if test "x$with_openssl" != "x"; then 13770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13772as_fn_error $? "--with-openssl was given, but test for OpenSSL failed 13773See \`config.log' for more details" "$LINENO" 5; } 13774 fi 13775 13776 13777fi 13778rm -f core conftest.err conftest.$ac_objext \ 13779 conftest$ac_exeext conftest.$ac_ext 13780 CPPFLAGS="$save_CPPFLAGS" 13781 LDFLAGS="$save_LDFLAGS" 13782 LIBS="$save_LIBS" 13783 13784 13785 13786 13787 13788 if $have_ssl; then 13789 case $host in 13790 *-*-cygwin) 13791 CFLAGS="$CFLAGS -DNOCRYPT" 13792 ;; 13793 esac 13794 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 13795 LIBS="$OPENSSL_LIBS $LIBS" 13796 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 13797 fi 13798fi 13799 13800# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only) 13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 13802$as_echo_n "checking TCP_CONGESTION socket option... " >&6; } 13803if ${iperf3_cv_header_tcp_congestion+:} false; then : 13804 $as_echo_n "(cached) " >&6 13805else 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808#include <netinet/tcp.h> 13809#ifdef TCP_CONGESTION 13810 yes 13811#endif 13812 13813_ACEOF 13814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13815 $EGREP "yes" >/dev/null 2>&1; then : 13816 iperf3_cv_header_tcp_congestion=yes 13817else 13818 iperf3_cv_header_tcp_congestion=no 13819fi 13820rm -f conftest* 13821 13822fi 13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 13824$as_echo "$iperf3_cv_header_tcp_congestion" >&6; } 13825if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 13826 13827$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h 13828 13829fi 13830 13831# Check for IPv6 flowlabel support (believed to be Linux only) 13832# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 13833# don't use that file directly (we have our own stripped-down 13834# copy, see src/flowlabel.h for more details). 13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 13836$as_echo_n "checking IPv6 flowlabel support... " >&6; } 13837if ${iperf3_cv_header_flowlabel+:} false; then : 13838 $as_echo_n "(cached) " >&6 13839else 13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13841/* end confdefs.h. */ 13842#include <sys/types.h> 13843#include <linux/in6.h> 13844#ifdef IPV6_FLOWLABEL_MGR 13845 yes 13846#endif 13847 13848_ACEOF 13849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13850 $EGREP "yes" >/dev/null 2>&1; then : 13851 iperf3_cv_header_flowlabel=yes 13852else 13853 iperf3_cv_header_flowlabel=no 13854fi 13855rm -f conftest* 13856 13857fi 13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 13859$as_echo "$iperf3_cv_header_flowlabel" >&6; } 13860if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 13861 13862$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h 13863 13864fi 13865 13866# Check for CPU affinity support. FreeBSD and Linux do this differently 13867# unfortunately so we have to check separately for each of them. 13868# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 13869# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 13870# generic concept is available. 13871for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask 13872do : 13873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13874ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13875if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13876 cat >>confdefs.h <<_ACEOF 13877#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13878_ACEOF 13879 13880$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h 13881 13882fi 13883done 13884 13885 13886# Check for daemon(). Most systems have this but a few (IRIX) don't. 13887for ac_func in daemon 13888do : 13889 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" 13890if test "x$ac_cv_func_daemon" = xyes; then : 13891 cat >>confdefs.h <<_ACEOF 13892#define HAVE_DAEMON 1 13893_ACEOF 13894 13895fi 13896done 13897 13898 13899# Check for sendfile support. FreeBSD, Linux, and MacOS all support 13900# this system call, but they're all different in terms of what headers 13901# it needs and what arguments it expects. 13902for ac_func in sendfile 13903do : 13904 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 13905if test "x$ac_cv_func_sendfile" = xyes; then : 13906 cat >>confdefs.h <<_ACEOF 13907#define HAVE_SENDFILE 1 13908_ACEOF 13909 13910fi 13911done 13912 13913 13914# Check for getline support, used as a part of authenticated 13915# connections. 13916for ac_func in getline 13917do : 13918 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 13919if test "x$ac_cv_func_getline" = xyes; then : 13920 cat >>confdefs.h <<_ACEOF 13921#define HAVE_GETLINE 1 13922_ACEOF 13923 13924fi 13925done 13926 13927 13928# Check for packet pacing socket option (Linux only for now). 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5 13930$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; } 13931if ${iperf3_cv_header_so_max_pacing_rate+:} false; then : 13932 $as_echo_n "(cached) " >&6 13933else 13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13935/* end confdefs.h. */ 13936#include <sys/socket.h> 13937#ifdef SO_MAX_PACING_RATE 13938 yes 13939#endif 13940 13941_ACEOF 13942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13943 $EGREP "yes" >/dev/null 2>&1; then : 13944 iperf3_cv_header_so_max_pacing_rate=yes 13945else 13946 iperf3_cv_header_so_max_pacing_rate=no 13947fi 13948rm -f conftest* 13949 13950fi 13951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5 13952$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; } 13953if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then 13954 13955$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h 13956 13957fi 13958 13959# Check if we need -lrt for clock_gettime 13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13961$as_echo_n "checking for library containing clock_gettime... " >&6; } 13962if ${ac_cv_search_clock_gettime+:} false; then : 13963 $as_echo_n "(cached) " >&6 13964else 13965 ac_func_search_save_LIBS=$LIBS 13966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967/* end confdefs.h. */ 13968 13969/* Override any GCC internal prototype to avoid an error. 13970 Use char because int might match the return type of a GCC 13971 builtin and then its argument prototype would still apply. */ 13972#ifdef __cplusplus 13973extern "C" 13974#endif 13975char clock_gettime (); 13976int 13977main () 13978{ 13979return clock_gettime (); 13980 ; 13981 return 0; 13982} 13983_ACEOF 13984for ac_lib in '' rt posix4; do 13985 if test -z "$ac_lib"; then 13986 ac_res="none required" 13987 else 13988 ac_res=-l$ac_lib 13989 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13990 fi 13991 if ac_fn_c_try_link "$LINENO"; then : 13992 ac_cv_search_clock_gettime=$ac_res 13993fi 13994rm -f core conftest.err conftest.$ac_objext \ 13995 conftest$ac_exeext 13996 if ${ac_cv_search_clock_gettime+:} false; then : 13997 break 13998fi 13999done 14000if ${ac_cv_search_clock_gettime+:} false; then : 14001 14002else 14003 ac_cv_search_clock_gettime=no 14004fi 14005rm conftest.$ac_ext 14006LIBS=$ac_func_search_save_LIBS 14007fi 14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14009$as_echo "$ac_cv_search_clock_gettime" >&6; } 14010ac_res=$ac_cv_search_clock_gettime 14011if test "$ac_res" != no; then : 14012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14013 14014fi 14015 14016# Check for clock_gettime support 14017for ac_func in clock_gettime 14018do : 14019 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 14020if test "x$ac_cv_func_clock_gettime" = xyes; then : 14021 cat >>confdefs.h <<_ACEOF 14022#define HAVE_CLOCK_GETTIME 1 14023_ACEOF 14024 14025fi 14026done 14027 14028 14029ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec" 14030 14031cat >confcache <<\_ACEOF 14032# This file is a shell script that caches the results of configure 14033# tests run on this system so they can be shared between configure 14034# scripts and configure runs, see configure's option --config-cache. 14035# It is not useful on other systems. If it contains results you don't 14036# want to keep, you may remove or edit it. 14037# 14038# config.status only pays attention to the cache file if you give it 14039# the --recheck option to rerun configure. 14040# 14041# `ac_cv_env_foo' variables (set or unset) will be overridden when 14042# loading this file, other *unset* `ac_cv_foo' will be assigned the 14043# following values. 14044 14045_ACEOF 14046 14047# The following way of writing the cache mishandles newlines in values, 14048# but we know of no workaround that is simple, portable, and efficient. 14049# So, we kill variables containing newlines. 14050# Ultrix sh set writes to stderr and can't be redirected directly, 14051# and sets the high bit in the cache file unless we assign to the vars. 14052( 14053 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14054 eval ac_val=\$$ac_var 14055 case $ac_val in #( 14056 *${as_nl}*) 14057 case $ac_var in #( 14058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14059$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14060 esac 14061 case $ac_var in #( 14062 _ | IFS | as_nl) ;; #( 14063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14064 *) { eval $ac_var=; unset $ac_var;} ;; 14065 esac ;; 14066 esac 14067 done 14068 14069 (set) 2>&1 | 14070 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14071 *${as_nl}ac_space=\ *) 14072 # `set' does not quote correctly, so add quotes: double-quote 14073 # substitution turns \\\\ into \\, and sed turns \\ into \. 14074 sed -n \ 14075 "s/'/'\\\\''/g; 14076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14077 ;; #( 14078 *) 14079 # `set' quotes correctly as required by POSIX, so do not add quotes. 14080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14081 ;; 14082 esac | 14083 sort 14084) | 14085 sed ' 14086 /^ac_cv_env_/b end 14087 t clear 14088 :clear 14089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14090 t end 14091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14092 :end' >>confcache 14093if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14094 if test -w "$cache_file"; then 14095 if test "x$cache_file" != "x/dev/null"; then 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14097$as_echo "$as_me: updating cache $cache_file" >&6;} 14098 if test ! -f "$cache_file" || test -h "$cache_file"; then 14099 cat confcache >"$cache_file" 14100 else 14101 case $cache_file in #( 14102 */* | ?:*) 14103 mv -f confcache "$cache_file"$$ && 14104 mv -f "$cache_file"$$ "$cache_file" ;; #( 14105 *) 14106 mv -f confcache "$cache_file" ;; 14107 esac 14108 fi 14109 fi 14110 else 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14112$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14113 fi 14114fi 14115rm -f confcache 14116 14117test "x$prefix" = xNONE && prefix=$ac_default_prefix 14118# Let make expand exec_prefix. 14119test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14120 14121DEFS=-DHAVE_CONFIG_H 14122 14123ac_libobjs= 14124ac_ltlibobjs= 14125for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14126 # 1. Remove the extension, and $U if already installed. 14127 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14128 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14129 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14130 # will be set to the directory where LIBOBJS objects are built. 14131 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14132 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14133done 14134LIBOBJS=$ac_libobjs 14135 14136LTLIBOBJS=$ac_ltlibobjs 14137 14138 14139if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then 14140 as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined. 14141Usually this means the macro was only invoked conditionally." "$LINENO" 5 14142fi 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14144$as_echo_n "checking that generated files are newer than configure... " >&6; } 14145 if test -n "$am_sleep_pid"; then 14146 # Hide warnings about reused PIDs. 14147 wait $am_sleep_pid 2>/dev/null 14148 fi 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14150$as_echo "done" >&6; } 14151 if test -n "$EXEEXT"; then 14152 am__EXEEXT_TRUE= 14153 am__EXEEXT_FALSE='#' 14154else 14155 am__EXEEXT_TRUE='#' 14156 am__EXEEXT_FALSE= 14157fi 14158 14159if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14160 as_fn_error $? "conditional \"AMDEP\" was never defined. 14161Usually this means the macro was only invoked conditionally." "$LINENO" 5 14162fi 14163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14164 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14165Usually this means the macro was only invoked conditionally." "$LINENO" 5 14166fi 14167if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14168 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14169Usually this means the macro was only invoked conditionally." "$LINENO" 5 14170fi 14171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14172 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14173Usually this means the macro was only invoked conditionally." "$LINENO" 5 14174fi 14175if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then 14176 as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined. 14177Usually this means the macro was only invoked conditionally." "$LINENO" 5 14178fi 14179 14180: "${CONFIG_STATUS=./config.status}" 14181ac_write_fail=0 14182ac_clean_files_save=$ac_clean_files 14183ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14184{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14185$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14186as_write_fail=0 14187cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14188#! $SHELL 14189# Generated by $as_me. 14190# Run this file to recreate the current configuration. 14191# Compiler output produced by configure, useful for debugging 14192# configure, is in config.log if it exists. 14193 14194debug=false 14195ac_cs_recheck=false 14196ac_cs_silent=false 14197 14198SHELL=\${CONFIG_SHELL-$SHELL} 14199export SHELL 14200_ASEOF 14201cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14202## -------------------- ## 14203## M4sh Initialization. ## 14204## -------------------- ## 14205 14206# Be more Bourne compatible 14207DUALCASE=1; export DUALCASE # for MKS sh 14208if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14209 emulate sh 14210 NULLCMD=: 14211 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14212 # is contrary to our usage. Disable this feature. 14213 alias -g '${1+"$@"}'='"$@"' 14214 setopt NO_GLOB_SUBST 14215else 14216 case `(set -o) 2>/dev/null` in #( 14217 *posix*) : 14218 set -o posix ;; #( 14219 *) : 14220 ;; 14221esac 14222fi 14223 14224 14225as_nl=' 14226' 14227export as_nl 14228# Printing a long string crashes Solaris 7 /usr/bin/printf. 14229as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14231as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14232# Prefer a ksh shell builtin over an external printf program on Solaris, 14233# but without wasting forks for bash or zsh. 14234if test -z "$BASH_VERSION$ZSH_VERSION" \ 14235 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14236 as_echo='print -r --' 14237 as_echo_n='print -rn --' 14238elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14239 as_echo='printf %s\n' 14240 as_echo_n='printf %s' 14241else 14242 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14243 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14244 as_echo_n='/usr/ucb/echo -n' 14245 else 14246 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14247 as_echo_n_body='eval 14248 arg=$1; 14249 case $arg in #( 14250 *"$as_nl"*) 14251 expr "X$arg" : "X\\(.*\\)$as_nl"; 14252 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14253 esac; 14254 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14255 ' 14256 export as_echo_n_body 14257 as_echo_n='sh -c $as_echo_n_body as_echo' 14258 fi 14259 export as_echo_body 14260 as_echo='sh -c $as_echo_body as_echo' 14261fi 14262 14263# The user is always right. 14264if test "${PATH_SEPARATOR+set}" != set; then 14265 PATH_SEPARATOR=: 14266 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14267 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14268 PATH_SEPARATOR=';' 14269 } 14270fi 14271 14272 14273# IFS 14274# We need space, tab and new line, in precisely that order. Quoting is 14275# there to prevent editors from complaining about space-tab. 14276# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14277# splitting by setting IFS to empty value.) 14278IFS=" "" $as_nl" 14279 14280# Find who we are. Look in the path if we contain no directory separator. 14281as_myself= 14282case $0 in #(( 14283 *[\\/]* ) as_myself=$0 ;; 14284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14285for as_dir in $PATH 14286do 14287 IFS=$as_save_IFS 14288 test -z "$as_dir" && as_dir=. 14289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14290 done 14291IFS=$as_save_IFS 14292 14293 ;; 14294esac 14295# We did not find ourselves, most probably we were run as `sh COMMAND' 14296# in which case we are not to be found in the path. 14297if test "x$as_myself" = x; then 14298 as_myself=$0 14299fi 14300if test ! -f "$as_myself"; then 14301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14302 exit 1 14303fi 14304 14305# Unset variables that we do not need and which cause bugs (e.g. in 14306# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14307# suppresses any "Segmentation fault" message there. '((' could 14308# trigger a bug in pdksh 5.2.14. 14309for as_var in BASH_ENV ENV MAIL MAILPATH 14310do eval test x\${$as_var+set} = xset \ 14311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14312done 14313PS1='$ ' 14314PS2='> ' 14315PS4='+ ' 14316 14317# NLS nuisances. 14318LC_ALL=C 14319export LC_ALL 14320LANGUAGE=C 14321export LANGUAGE 14322 14323# CDPATH. 14324(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14325 14326 14327# as_fn_error STATUS ERROR [LINENO LOG_FD] 14328# ---------------------------------------- 14329# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14330# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14331# script with STATUS, using 1 if that was 0. 14332as_fn_error () 14333{ 14334 as_status=$1; test $as_status -eq 0 && as_status=1 14335 if test "$4"; then 14336 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14338 fi 14339 $as_echo "$as_me: error: $2" >&2 14340 as_fn_exit $as_status 14341} # as_fn_error 14342 14343 14344# as_fn_set_status STATUS 14345# ----------------------- 14346# Set $? to STATUS, without forking. 14347as_fn_set_status () 14348{ 14349 return $1 14350} # as_fn_set_status 14351 14352# as_fn_exit STATUS 14353# ----------------- 14354# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14355as_fn_exit () 14356{ 14357 set +e 14358 as_fn_set_status $1 14359 exit $1 14360} # as_fn_exit 14361 14362# as_fn_unset VAR 14363# --------------- 14364# Portably unset VAR. 14365as_fn_unset () 14366{ 14367 { eval $1=; unset $1;} 14368} 14369as_unset=as_fn_unset 14370# as_fn_append VAR VALUE 14371# ---------------------- 14372# Append the text in VALUE to the end of the definition contained in VAR. Take 14373# advantage of any shell optimizations that allow amortized linear growth over 14374# repeated appends, instead of the typical quadratic growth present in naive 14375# implementations. 14376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14377 eval 'as_fn_append () 14378 { 14379 eval $1+=\$2 14380 }' 14381else 14382 as_fn_append () 14383 { 14384 eval $1=\$$1\$2 14385 } 14386fi # as_fn_append 14387 14388# as_fn_arith ARG... 14389# ------------------ 14390# Perform arithmetic evaluation on the ARGs, and store the result in the 14391# global $as_val. Take advantage of shells that can avoid forks. The arguments 14392# must be portable across $(()) and expr. 14393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14394 eval 'as_fn_arith () 14395 { 14396 as_val=$(( $* )) 14397 }' 14398else 14399 as_fn_arith () 14400 { 14401 as_val=`expr "$@" || test $? -eq 1` 14402 } 14403fi # as_fn_arith 14404 14405 14406if expr a : '\(a\)' >/dev/null 2>&1 && 14407 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14408 as_expr=expr 14409else 14410 as_expr=false 14411fi 14412 14413if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14414 as_basename=basename 14415else 14416 as_basename=false 14417fi 14418 14419if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14420 as_dirname=dirname 14421else 14422 as_dirname=false 14423fi 14424 14425as_me=`$as_basename -- "$0" || 14426$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14427 X"$0" : 'X\(//\)$' \| \ 14428 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14429$as_echo X/"$0" | 14430 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14431 s//\1/ 14432 q 14433 } 14434 /^X\/\(\/\/\)$/{ 14435 s//\1/ 14436 q 14437 } 14438 /^X\/\(\/\).*/{ 14439 s//\1/ 14440 q 14441 } 14442 s/.*/./; q'` 14443 14444# Avoid depending upon Character Ranges. 14445as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14446as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14447as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14448as_cr_digits='0123456789' 14449as_cr_alnum=$as_cr_Letters$as_cr_digits 14450 14451ECHO_C= ECHO_N= ECHO_T= 14452case `echo -n x` in #((((( 14453-n*) 14454 case `echo 'xy\c'` in 14455 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14456 xy) ECHO_C='\c';; 14457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14458 ECHO_T=' ';; 14459 esac;; 14460*) 14461 ECHO_N='-n';; 14462esac 14463 14464rm -f conf$$ conf$$.exe conf$$.file 14465if test -d conf$$.dir; then 14466 rm -f conf$$.dir/conf$$.file 14467else 14468 rm -f conf$$.dir 14469 mkdir conf$$.dir 2>/dev/null 14470fi 14471if (echo >conf$$.file) 2>/dev/null; then 14472 if ln -s conf$$.file conf$$ 2>/dev/null; then 14473 as_ln_s='ln -s' 14474 # ... but there are two gotchas: 14475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14477 # In both cases, we have to default to `cp -pR'. 14478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14479 as_ln_s='cp -pR' 14480 elif ln conf$$.file conf$$ 2>/dev/null; then 14481 as_ln_s=ln 14482 else 14483 as_ln_s='cp -pR' 14484 fi 14485else 14486 as_ln_s='cp -pR' 14487fi 14488rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14489rmdir conf$$.dir 2>/dev/null 14490 14491 14492# as_fn_mkdir_p 14493# ------------- 14494# Create "$as_dir" as a directory, including parents if necessary. 14495as_fn_mkdir_p () 14496{ 14497 14498 case $as_dir in #( 14499 -*) as_dir=./$as_dir;; 14500 esac 14501 test -d "$as_dir" || eval $as_mkdir_p || { 14502 as_dirs= 14503 while :; do 14504 case $as_dir in #( 14505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14506 *) as_qdir=$as_dir;; 14507 esac 14508 as_dirs="'$as_qdir' $as_dirs" 14509 as_dir=`$as_dirname -- "$as_dir" || 14510$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14511 X"$as_dir" : 'X\(//\)[^/]' \| \ 14512 X"$as_dir" : 'X\(//\)$' \| \ 14513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14514$as_echo X"$as_dir" | 14515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14516 s//\1/ 14517 q 14518 } 14519 /^X\(\/\/\)[^/].*/{ 14520 s//\1/ 14521 q 14522 } 14523 /^X\(\/\/\)$/{ 14524 s//\1/ 14525 q 14526 } 14527 /^X\(\/\).*/{ 14528 s//\1/ 14529 q 14530 } 14531 s/.*/./; q'` 14532 test -d "$as_dir" && break 14533 done 14534 test -z "$as_dirs" || eval "mkdir $as_dirs" 14535 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14536 14537 14538} # as_fn_mkdir_p 14539if mkdir -p . 2>/dev/null; then 14540 as_mkdir_p='mkdir -p "$as_dir"' 14541else 14542 test -d ./-p && rmdir ./-p 14543 as_mkdir_p=false 14544fi 14545 14546 14547# as_fn_executable_p FILE 14548# ----------------------- 14549# Test if FILE is an executable regular file. 14550as_fn_executable_p () 14551{ 14552 test -f "$1" && test -x "$1" 14553} # as_fn_executable_p 14554as_test_x='test -x' 14555as_executable_p=as_fn_executable_p 14556 14557# Sed expression to map a string onto a valid CPP name. 14558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14559 14560# Sed expression to map a string onto a valid variable name. 14561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14562 14563 14564exec 6>&1 14565## ----------------------------------- ## 14566## Main body of $CONFIG_STATUS script. ## 14567## ----------------------------------- ## 14568_ASEOF 14569test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14570 14571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14572# Save the log message, to keep $0 and so on meaningful, and to 14573# report actual input values of CONFIG_FILES etc. instead of their 14574# values after options handling. 14575ac_log=" 14576This file was extended by iperf $as_me 3.7+, which was 14577generated by GNU Autoconf 2.69. Invocation command line was 14578 14579 CONFIG_FILES = $CONFIG_FILES 14580 CONFIG_HEADERS = $CONFIG_HEADERS 14581 CONFIG_LINKS = $CONFIG_LINKS 14582 CONFIG_COMMANDS = $CONFIG_COMMANDS 14583 $ $0 $@ 14584 14585on `(hostname || uname -n) 2>/dev/null | sed 1q` 14586" 14587 14588_ACEOF 14589 14590case $ac_config_files in *" 14591"*) set x $ac_config_files; shift; ac_config_files=$*;; 14592esac 14593 14594case $ac_config_headers in *" 14595"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14596esac 14597 14598 14599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14600# Files that config.status was made for. 14601config_files="$ac_config_files" 14602config_headers="$ac_config_headers" 14603config_commands="$ac_config_commands" 14604 14605_ACEOF 14606 14607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14608ac_cs_usage="\ 14609\`$as_me' instantiates files and other configuration actions 14610from templates according to the current configuration. Unless the files 14611and actions are specified as TAGs, all are instantiated by default. 14612 14613Usage: $0 [OPTION]... [TAG]... 14614 14615 -h, --help print this help, then exit 14616 -V, --version print version number and configuration settings, then exit 14617 --config print configuration, then exit 14618 -q, --quiet, --silent 14619 do not print progress messages 14620 -d, --debug don't remove temporary files 14621 --recheck update $as_me by reconfiguring in the same conditions 14622 --file=FILE[:TEMPLATE] 14623 instantiate the configuration file FILE 14624 --header=FILE[:TEMPLATE] 14625 instantiate the configuration header FILE 14626 14627Configuration files: 14628$config_files 14629 14630Configuration headers: 14631$config_headers 14632 14633Configuration commands: 14634$config_commands 14635 14636Report bugs to <https://github.com/esnet/iperf>. 14637iperf home page: <https://software.es.net/iperf/>." 14638 14639_ACEOF 14640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14641ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14642ac_cs_version="\\ 14643iperf config.status 3.7+ 14644configured by $0, generated by GNU Autoconf 2.69, 14645 with options \\"\$ac_cs_config\\" 14646 14647Copyright (C) 2012 Free Software Foundation, Inc. 14648This config.status script is free software; the Free Software Foundation 14649gives unlimited permission to copy, distribute and modify it." 14650 14651ac_pwd='$ac_pwd' 14652srcdir='$srcdir' 14653INSTALL='$INSTALL' 14654MKDIR_P='$MKDIR_P' 14655AWK='$AWK' 14656test -n "\$AWK" || AWK=awk 14657_ACEOF 14658 14659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14660# The default lists apply if the user does not specify any file. 14661ac_need_defaults=: 14662while test $# != 0 14663do 14664 case $1 in 14665 --*=?*) 14666 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14667 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14668 ac_shift=: 14669 ;; 14670 --*=) 14671 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14672 ac_optarg= 14673 ac_shift=: 14674 ;; 14675 *) 14676 ac_option=$1 14677 ac_optarg=$2 14678 ac_shift=shift 14679 ;; 14680 esac 14681 14682 case $ac_option in 14683 # Handling of the options. 14684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14685 ac_cs_recheck=: ;; 14686 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14687 $as_echo "$ac_cs_version"; exit ;; 14688 --config | --confi | --conf | --con | --co | --c ) 14689 $as_echo "$ac_cs_config"; exit ;; 14690 --debug | --debu | --deb | --de | --d | -d ) 14691 debug=: ;; 14692 --file | --fil | --fi | --f ) 14693 $ac_shift 14694 case $ac_optarg in 14695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14696 '') as_fn_error $? "missing file argument" ;; 14697 esac 14698 as_fn_append CONFIG_FILES " '$ac_optarg'" 14699 ac_need_defaults=false;; 14700 --header | --heade | --head | --hea ) 14701 $ac_shift 14702 case $ac_optarg in 14703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14704 esac 14705 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14706 ac_need_defaults=false;; 14707 --he | --h) 14708 # Conflict between --help and --header 14709 as_fn_error $? "ambiguous option: \`$1' 14710Try \`$0 --help' for more information.";; 14711 --help | --hel | -h ) 14712 $as_echo "$ac_cs_usage"; exit ;; 14713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14714 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14715 ac_cs_silent=: ;; 14716 14717 # This is an error. 14718 -*) as_fn_error $? "unrecognized option: \`$1' 14719Try \`$0 --help' for more information." ;; 14720 14721 *) as_fn_append ac_config_targets " $1" 14722 ac_need_defaults=false ;; 14723 14724 esac 14725 shift 14726done 14727 14728ac_configure_extra_args= 14729 14730if $ac_cs_silent; then 14731 exec 6>/dev/null 14732 ac_configure_extra_args="$ac_configure_extra_args --silent" 14733fi 14734 14735_ACEOF 14736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14737if \$ac_cs_recheck; then 14738 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14739 shift 14740 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14741 CONFIG_SHELL='$SHELL' 14742 export CONFIG_SHELL 14743 exec "\$@" 14744fi 14745 14746_ACEOF 14747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14748exec 5>>config.log 14749{ 14750 echo 14751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14752## Running $as_me. ## 14753_ASBOX 14754 $as_echo "$ac_log" 14755} >&5 14756 14757_ACEOF 14758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14759# 14760# INIT-COMMANDS 14761# 14762AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14763 14764 14765# The HP-UX ksh and POSIX shell print the target directory to stdout 14766# if CDPATH is set. 14767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14768 14769sed_quote_subst='$sed_quote_subst' 14770double_quote_subst='$double_quote_subst' 14771delay_variable_subst='$delay_variable_subst' 14772enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14773macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14774macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14775enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14776pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14777enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14778shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14779SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14780ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14781PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14782host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14783host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14784host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14785build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14786build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14787build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14788SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14789Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14790GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14791EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14792FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14793LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14794NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14795LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14796max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14797ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14798exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14799lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14800lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14801lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14802lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14803lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14804reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14805reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14806OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14807deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14808file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14809file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14810want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14811DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14812sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14813AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14814AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14815archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14816STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14817RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14818old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14819old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14820old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14821lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14822CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14823CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14824compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14825GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14826lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14827lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14828lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14829lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14830lt_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"`' 14831lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14832nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14833lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14834lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14835objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14836MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14837lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14838lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14839lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14840lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14841lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14842need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14843MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14844DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14845NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14846LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14847OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14848OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14849libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14850shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14851extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14852archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14853enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14854export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14855whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14856compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14857old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14858old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14859archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14860archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14861module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14862module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14863with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14864allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14865no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14866hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14867hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14868hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14869hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14870hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14871hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14872hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14873inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14874link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14875always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14876export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14877exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14878include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14879prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14880postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14881file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14882variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14883need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14884need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14885version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14886runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14887shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14888shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14889libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14890library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14891soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14892install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14893postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14894postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14895finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14896finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14897hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14898sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14899configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14900configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14901hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14902enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14903enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14904enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14905old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14906striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14907 14908LTCC='$LTCC' 14909LTCFLAGS='$LTCFLAGS' 14910compiler='$compiler_DEFAULT' 14911 14912# A function that is used when there is no print builtin or printf. 14913func_fallback_echo () 14914{ 14915 eval 'cat <<_LTECHO_EOF 14916\$1 14917_LTECHO_EOF' 14918} 14919 14920# Quote evaled strings. 14921for var in SHELL \ 14922ECHO \ 14923PATH_SEPARATOR \ 14924SED \ 14925GREP \ 14926EGREP \ 14927FGREP \ 14928LD \ 14929NM \ 14930LN_S \ 14931lt_SP2NL \ 14932lt_NL2SP \ 14933reload_flag \ 14934OBJDUMP \ 14935deplibs_check_method \ 14936file_magic_cmd \ 14937file_magic_glob \ 14938want_nocaseglob \ 14939DLLTOOL \ 14940sharedlib_from_linklib_cmd \ 14941AR \ 14942AR_FLAGS \ 14943archiver_list_spec \ 14944STRIP \ 14945RANLIB \ 14946CC \ 14947CFLAGS \ 14948compiler \ 14949lt_cv_sys_global_symbol_pipe \ 14950lt_cv_sys_global_symbol_to_cdecl \ 14951lt_cv_sys_global_symbol_to_import \ 14952lt_cv_sys_global_symbol_to_c_name_address \ 14953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14954lt_cv_nm_interface \ 14955nm_file_list_spec \ 14956lt_cv_truncate_bin \ 14957lt_prog_compiler_no_builtin_flag \ 14958lt_prog_compiler_pic \ 14959lt_prog_compiler_wl \ 14960lt_prog_compiler_static \ 14961lt_cv_prog_compiler_c_o \ 14962need_locks \ 14963MANIFEST_TOOL \ 14964DSYMUTIL \ 14965NMEDIT \ 14966LIPO \ 14967OTOOL \ 14968OTOOL64 \ 14969shrext_cmds \ 14970export_dynamic_flag_spec \ 14971whole_archive_flag_spec \ 14972compiler_needs_object \ 14973with_gnu_ld \ 14974allow_undefined_flag \ 14975no_undefined_flag \ 14976hardcode_libdir_flag_spec \ 14977hardcode_libdir_separator \ 14978exclude_expsyms \ 14979include_expsyms \ 14980file_list_spec \ 14981variables_saved_for_relink \ 14982libname_spec \ 14983library_names_spec \ 14984soname_spec \ 14985install_override_mode \ 14986finish_eval \ 14987old_striplib \ 14988striplib; do 14989 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14990 *[\\\\\\\`\\"\\\$]*) 14991 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14992 ;; 14993 *) 14994 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14995 ;; 14996 esac 14997done 14998 14999# Double-quote double-evaled strings. 15000for var in reload_cmds \ 15001old_postinstall_cmds \ 15002old_postuninstall_cmds \ 15003old_archive_cmds \ 15004extract_expsyms_cmds \ 15005old_archive_from_new_cmds \ 15006old_archive_from_expsyms_cmds \ 15007archive_cmds \ 15008archive_expsym_cmds \ 15009module_cmds \ 15010module_expsym_cmds \ 15011export_symbols_cmds \ 15012prelink_cmds \ 15013postlink_cmds \ 15014postinstall_cmds \ 15015postuninstall_cmds \ 15016finish_cmds \ 15017sys_lib_search_path_spec \ 15018configure_time_dlsearch_path \ 15019configure_time_lt_sys_library_path; do 15020 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15021 *[\\\\\\\`\\"\\\$]*) 15022 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15023 ;; 15024 *) 15025 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15026 ;; 15027 esac 15028done 15029 15030ac_aux_dir='$ac_aux_dir' 15031 15032# See if we are running on zsh, and set the options that allow our 15033# commands through without removal of \ escapes INIT. 15034if test -n "\${ZSH_VERSION+set}"; then 15035 setopt NO_GLOB_SUBST 15036fi 15037 15038 15039 PACKAGE='$PACKAGE' 15040 VERSION='$VERSION' 15041 RM='$RM' 15042 ofile='$ofile' 15043 15044 15045 15046 15047_ACEOF 15048 15049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15050 15051# Handling of arguments. 15052for ac_config_target in $ac_config_targets 15053do 15054 case $ac_config_target in 15055 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15056 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15057 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 15058 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15059 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 15060 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 15061 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 15062 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;; 15063 15064 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15065 esac 15066done 15067 15068 15069# If the user did not use the arguments to specify the items to instantiate, 15070# then the envvar interface is used. Set only those that are not. 15071# We use the long form for the default assignment because of an extremely 15072# bizarre bug on SunOS 4.1.3. 15073if $ac_need_defaults; then 15074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15076 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15077fi 15078 15079# Have a temporary directory for convenience. Make it in the build tree 15080# simply because there is no reason against having it here, and in addition, 15081# creating and moving files from /tmp can sometimes cause problems. 15082# Hook for its removal unless debugging. 15083# Note that there is a small window in which the directory will not be cleaned: 15084# after its creation but before its name has been assigned to `$tmp'. 15085$debug || 15086{ 15087 tmp= ac_tmp= 15088 trap 'exit_status=$? 15089 : "${ac_tmp:=$tmp}" 15090 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15091' 0 15092 trap 'as_fn_exit 1' 1 2 13 15 15093} 15094# Create a (secure) tmp directory for tmp files. 15095 15096{ 15097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15098 test -d "$tmp" 15099} || 15100{ 15101 tmp=./conf$$-$RANDOM 15102 (umask 077 && mkdir "$tmp") 15103} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15104ac_tmp=$tmp 15105 15106# Set up the scripts for CONFIG_FILES section. 15107# No need to generate them if there are no CONFIG_FILES. 15108# This happens for instance with `./config.status config.h'. 15109if test -n "$CONFIG_FILES"; then 15110 15111 15112ac_cr=`echo X | tr X '\015'` 15113# On cygwin, bash can eat \r inside `` if the user requested igncr. 15114# But we know of no other shell where ac_cr would be empty at this 15115# point, so we can use a bashism as a fallback. 15116if test "x$ac_cr" = x; then 15117 eval ac_cr=\$\'\\r\' 15118fi 15119ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15120if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15121 ac_cs_awk_cr='\\r' 15122else 15123 ac_cs_awk_cr=$ac_cr 15124fi 15125 15126echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15127_ACEOF 15128 15129 15130{ 15131 echo "cat >conf$$subs.awk <<_ACEOF" && 15132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15133 echo "_ACEOF" 15134} >conf$$subs.sh || 15135 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15136ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15137ac_delim='%!_!# ' 15138for ac_last_try in false false false false false :; do 15139 . ./conf$$subs.sh || 15140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15141 15142 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15143 if test $ac_delim_n = $ac_delim_num; then 15144 break 15145 elif $ac_last_try; then 15146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15147 else 15148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15149 fi 15150done 15151rm -f conf$$subs.sh 15152 15153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15154cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15155_ACEOF 15156sed -n ' 15157h 15158s/^/S["/; s/!.*/"]=/ 15159p 15160g 15161s/^[^!]*!// 15162:repl 15163t repl 15164s/'"$ac_delim"'$// 15165t delim 15166:nl 15167h 15168s/\(.\{148\}\)..*/\1/ 15169t more1 15170s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15171p 15172n 15173b repl 15174:more1 15175s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15176p 15177g 15178s/.\{148\}// 15179t nl 15180:delim 15181h 15182s/\(.\{148\}\)..*/\1/ 15183t more2 15184s/["\\]/\\&/g; s/^/"/; s/$/"/ 15185p 15186b 15187:more2 15188s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15189p 15190g 15191s/.\{148\}// 15192t delim 15193' <conf$$subs.awk | sed ' 15194/^[^""]/{ 15195 N 15196 s/\n// 15197} 15198' >>$CONFIG_STATUS || ac_write_fail=1 15199rm -f conf$$subs.awk 15200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15201_ACAWK 15202cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15203 for (key in S) S_is_set[key] = 1 15204 FS = "" 15205 15206} 15207{ 15208 line = $ 0 15209 nfields = split(line, field, "@") 15210 substed = 0 15211 len = length(field[1]) 15212 for (i = 2; i < nfields; i++) { 15213 key = field[i] 15214 keylen = length(key) 15215 if (S_is_set[key]) { 15216 value = S[key] 15217 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15218 len += length(value) + length(field[++i]) 15219 substed = 1 15220 } else 15221 len += 1 + keylen 15222 } 15223 15224 print line 15225} 15226 15227_ACAWK 15228_ACEOF 15229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15230if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15231 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15232else 15233 cat 15234fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15235 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15236_ACEOF 15237 15238# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15239# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15240# trailing colons and then remove the whole line if VPATH becomes empty 15241# (actually we leave an empty line to preserve line numbers). 15242if test "x$srcdir" = x.; then 15243 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15244h 15245s/// 15246s/^/:/ 15247s/[ ]*$/:/ 15248s/:\$(srcdir):/:/g 15249s/:\${srcdir}:/:/g 15250s/:@srcdir@:/:/g 15251s/^:*// 15252s/:*$// 15253x 15254s/\(=[ ]*\).*/\1/ 15255G 15256s/\n// 15257s/^[^=]*=[ ]*$// 15258}' 15259fi 15260 15261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15262fi # test -n "$CONFIG_FILES" 15263 15264# Set up the scripts for CONFIG_HEADERS section. 15265# No need to generate them if there are no CONFIG_HEADERS. 15266# This happens for instance with `./config.status Makefile'. 15267if test -n "$CONFIG_HEADERS"; then 15268cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15269BEGIN { 15270_ACEOF 15271 15272# Transform confdefs.h into an awk script `defines.awk', embedded as 15273# here-document in config.status, that substitutes the proper values into 15274# config.h.in to produce config.h. 15275 15276# Create a delimiter string that does not exist in confdefs.h, to ease 15277# handling of long lines. 15278ac_delim='%!_!# ' 15279for ac_last_try in false false :; do 15280 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15281 if test -z "$ac_tt"; then 15282 break 15283 elif $ac_last_try; then 15284 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15285 else 15286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15287 fi 15288done 15289 15290# For the awk script, D is an array of macro values keyed by name, 15291# likewise P contains macro parameters if any. Preserve backslash 15292# newline sequences. 15293 15294ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15295sed -n ' 15296s/.\{148\}/&'"$ac_delim"'/g 15297t rset 15298:rset 15299s/^[ ]*#[ ]*define[ ][ ]*/ / 15300t def 15301d 15302:def 15303s/\\$// 15304t bsnl 15305s/["\\]/\\&/g 15306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15307D["\1"]=" \3"/p 15308s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15309d 15310:bsnl 15311s/["\\]/\\&/g 15312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15313D["\1"]=" \3\\\\\\n"\\/p 15314t cont 15315s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15316t cont 15317d 15318:cont 15319n 15320s/.\{148\}/&'"$ac_delim"'/g 15321t clear 15322:clear 15323s/\\$// 15324t bsnlc 15325s/["\\]/\\&/g; s/^/"/; s/$/"/p 15326d 15327:bsnlc 15328s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15329b cont 15330' <confdefs.h | sed ' 15331s/'"$ac_delim"'/"\\\ 15332"/g' >>$CONFIG_STATUS || ac_write_fail=1 15333 15334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15335 for (key in D) D_is_set[key] = 1 15336 FS = "" 15337} 15338/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15339 line = \$ 0 15340 split(line, arg, " ") 15341 if (arg[1] == "#") { 15342 defundef = arg[2] 15343 mac1 = arg[3] 15344 } else { 15345 defundef = substr(arg[1], 2) 15346 mac1 = arg[2] 15347 } 15348 split(mac1, mac2, "(") #) 15349 macro = mac2[1] 15350 prefix = substr(line, 1, index(line, defundef) - 1) 15351 if (D_is_set[macro]) { 15352 # Preserve the white space surrounding the "#". 15353 print prefix "define", macro P[macro] D[macro] 15354 next 15355 } else { 15356 # Replace #undef with comments. This is necessary, for example, 15357 # in the case of _POSIX_SOURCE, which is predefined and required 15358 # on some systems where configure will not decide to define it. 15359 if (defundef == "undef") { 15360 print "/*", prefix defundef, macro, "*/" 15361 next 15362 } 15363 } 15364} 15365{ print } 15366_ACAWK 15367_ACEOF 15368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15369 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15370fi # test -n "$CONFIG_HEADERS" 15371 15372 15373eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15374shift 15375for ac_tag 15376do 15377 case $ac_tag in 15378 :[FHLC]) ac_mode=$ac_tag; continue;; 15379 esac 15380 case $ac_mode$ac_tag in 15381 :[FHL]*:*);; 15382 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15383 :[FH]-) ac_tag=-:-;; 15384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15385 esac 15386 ac_save_IFS=$IFS 15387 IFS=: 15388 set x $ac_tag 15389 IFS=$ac_save_IFS 15390 shift 15391 ac_file=$1 15392 shift 15393 15394 case $ac_mode in 15395 :L) ac_source=$1;; 15396 :[FH]) 15397 ac_file_inputs= 15398 for ac_f 15399 do 15400 case $ac_f in 15401 -) ac_f="$ac_tmp/stdin";; 15402 *) # Look for the file first in the build tree, then in the source tree 15403 # (if the path is not absolute). The absolute path cannot be DOS-style, 15404 # because $ac_f cannot contain `:'. 15405 test -f "$ac_f" || 15406 case $ac_f in 15407 [\\/$]*) false;; 15408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15409 esac || 15410 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15411 esac 15412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15413 as_fn_append ac_file_inputs " '$ac_f'" 15414 done 15415 15416 # Let's still pretend it is `configure' which instantiates (i.e., don't 15417 # use $as_me), people would be surprised to read: 15418 # /* config.h. Generated by config.status. */ 15419 configure_input='Generated from '` 15420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15421 `' by configure.' 15422 if test x"$ac_file" != x-; then 15423 configure_input="$ac_file. $configure_input" 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15425$as_echo "$as_me: creating $ac_file" >&6;} 15426 fi 15427 # Neutralize special characters interpreted by sed in replacement strings. 15428 case $configure_input in #( 15429 *\&* | *\|* | *\\* ) 15430 ac_sed_conf_input=`$as_echo "$configure_input" | 15431 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15432 *) ac_sed_conf_input=$configure_input;; 15433 esac 15434 15435 case $ac_tag in 15436 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15438 esac 15439 ;; 15440 esac 15441 15442 ac_dir=`$as_dirname -- "$ac_file" || 15443$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15444 X"$ac_file" : 'X\(//\)[^/]' \| \ 15445 X"$ac_file" : 'X\(//\)$' \| \ 15446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15447$as_echo X"$ac_file" | 15448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15449 s//\1/ 15450 q 15451 } 15452 /^X\(\/\/\)[^/].*/{ 15453 s//\1/ 15454 q 15455 } 15456 /^X\(\/\/\)$/{ 15457 s//\1/ 15458 q 15459 } 15460 /^X\(\/\).*/{ 15461 s//\1/ 15462 q 15463 } 15464 s/.*/./; q'` 15465 as_dir="$ac_dir"; as_fn_mkdir_p 15466 ac_builddir=. 15467 15468case "$ac_dir" in 15469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15470*) 15471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15472 # A ".." for each directory in $ac_dir_suffix. 15473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15474 case $ac_top_builddir_sub in 15475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15477 esac ;; 15478esac 15479ac_abs_top_builddir=$ac_pwd 15480ac_abs_builddir=$ac_pwd$ac_dir_suffix 15481# for backward compatibility: 15482ac_top_builddir=$ac_top_build_prefix 15483 15484case $srcdir in 15485 .) # We are building in place. 15486 ac_srcdir=. 15487 ac_top_srcdir=$ac_top_builddir_sub 15488 ac_abs_top_srcdir=$ac_pwd ;; 15489 [\\/]* | ?:[\\/]* ) # Absolute name. 15490 ac_srcdir=$srcdir$ac_dir_suffix; 15491 ac_top_srcdir=$srcdir 15492 ac_abs_top_srcdir=$srcdir ;; 15493 *) # Relative name. 15494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15495 ac_top_srcdir=$ac_top_build_prefix$srcdir 15496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15497esac 15498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15499 15500 15501 case $ac_mode in 15502 :F) 15503 # 15504 # CONFIG_FILE 15505 # 15506 15507 case $INSTALL in 15508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15510 esac 15511 ac_MKDIR_P=$MKDIR_P 15512 case $MKDIR_P in 15513 [\\/$]* | ?:[\\/]* ) ;; 15514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15515 esac 15516_ACEOF 15517 15518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15519# If the template does not know about datarootdir, expand it. 15520# FIXME: This hack should be removed a few years after 2.60. 15521ac_datarootdir_hack=; ac_datarootdir_seen= 15522ac_sed_dataroot=' 15523/datarootdir/ { 15524 p 15525 q 15526} 15527/@datadir@/p 15528/@docdir@/p 15529/@infodir@/p 15530/@localedir@/p 15531/@mandir@/p' 15532case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15533*datarootdir*) ac_datarootdir_seen=yes;; 15534*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15536$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15537_ACEOF 15538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15539 ac_datarootdir_hack=' 15540 s&@datadir@&$datadir&g 15541 s&@docdir@&$docdir&g 15542 s&@infodir@&$infodir&g 15543 s&@localedir@&$localedir&g 15544 s&@mandir@&$mandir&g 15545 s&\\\${datarootdir}&$datarootdir&g' ;; 15546esac 15547_ACEOF 15548 15549# Neutralize VPATH when `$srcdir' = `.'. 15550# Shell code in configure.ac might set extrasub. 15551# FIXME: do we really want to maintain this feature? 15552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15553ac_sed_extra="$ac_vpsub 15554$extrasub 15555_ACEOF 15556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15557:t 15558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15559s|@configure_input@|$ac_sed_conf_input|;t t 15560s&@top_builddir@&$ac_top_builddir_sub&;t t 15561s&@top_build_prefix@&$ac_top_build_prefix&;t t 15562s&@srcdir@&$ac_srcdir&;t t 15563s&@abs_srcdir@&$ac_abs_srcdir&;t t 15564s&@top_srcdir@&$ac_top_srcdir&;t t 15565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15566s&@builddir@&$ac_builddir&;t t 15567s&@abs_builddir@&$ac_abs_builddir&;t t 15568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15569s&@INSTALL@&$ac_INSTALL&;t t 15570s&@MKDIR_P@&$ac_MKDIR_P&;t t 15571$ac_datarootdir_hack 15572" 15573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15574 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15575 15576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15577 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15579 "$ac_tmp/out"`; test -z "$ac_out"; } && 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15581which seems to be undefined. Please make sure it is defined" >&5 15582$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15583which seems to be undefined. Please make sure it is defined" >&2;} 15584 15585 rm -f "$ac_tmp/stdin" 15586 case $ac_file in 15587 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15588 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15589 esac \ 15590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15591 ;; 15592 :H) 15593 # 15594 # CONFIG_HEADER 15595 # 15596 if test x"$ac_file" != x-; then 15597 { 15598 $as_echo "/* $configure_input */" \ 15599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15600 } >"$ac_tmp/config.h" \ 15601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15602 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15604$as_echo "$as_me: $ac_file is unchanged" >&6;} 15605 else 15606 rm -f "$ac_file" 15607 mv "$ac_tmp/config.h" "$ac_file" \ 15608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15609 fi 15610 else 15611 $as_echo "/* $configure_input */" \ 15612 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15613 || as_fn_error $? "could not create -" "$LINENO" 5 15614 fi 15615# Compute "$ac_file"'s index in $config_headers. 15616_am_arg="$ac_file" 15617_am_stamp_count=1 15618for _am_header in $config_headers :; do 15619 case $_am_header in 15620 $_am_arg | $_am_arg:* ) 15621 break ;; 15622 * ) 15623 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15624 esac 15625done 15626echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15627$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15628 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15629 X"$_am_arg" : 'X\(//\)$' \| \ 15630 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15631$as_echo X"$_am_arg" | 15632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15633 s//\1/ 15634 q 15635 } 15636 /^X\(\/\/\)[^/].*/{ 15637 s//\1/ 15638 q 15639 } 15640 /^X\(\/\/\)$/{ 15641 s//\1/ 15642 q 15643 } 15644 /^X\(\/\).*/{ 15645 s//\1/ 15646 q 15647 } 15648 s/.*/./; q'`/stamp-h$_am_stamp_count 15649 ;; 15650 15651 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15652$as_echo "$as_me: executing $ac_file commands" >&6;} 15653 ;; 15654 esac 15655 15656 15657 case $ac_file$ac_mode in 15658 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15659 # Older Autoconf quotes --file arguments for eval, but not when files 15660 # are listed without --file. Let's play safe and only enable the eval 15661 # if we detect the quoting. 15662 # TODO: see whether this extra hack can be removed once we start 15663 # requiring Autoconf 2.70 or later. 15664 case $CONFIG_FILES in #( 15665 *\'*) : 15666 eval set x "$CONFIG_FILES" ;; #( 15667 *) : 15668 set x $CONFIG_FILES ;; #( 15669 *) : 15670 ;; 15671esac 15672 shift 15673 # Used to flag and report bootstrapping failures. 15674 am_rc=0 15675 for am_mf 15676 do 15677 # Strip MF so we end up with the name of the file. 15678 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15679 # Check whether this is an Automake generated Makefile which includes 15680 # dependency-tracking related rules and includes. 15681 # Grep'ing the whole file directly is not great: AIX grep has a line 15682 # limit of 2048, but all sed's we know have understand at least 4000. 15683 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15684 || continue 15685 am_dirpart=`$as_dirname -- "$am_mf" || 15686$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15687 X"$am_mf" : 'X\(//\)[^/]' \| \ 15688 X"$am_mf" : 'X\(//\)$' \| \ 15689 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15690$as_echo X"$am_mf" | 15691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15692 s//\1/ 15693 q 15694 } 15695 /^X\(\/\/\)[^/].*/{ 15696 s//\1/ 15697 q 15698 } 15699 /^X\(\/\/\)$/{ 15700 s//\1/ 15701 q 15702 } 15703 /^X\(\/\).*/{ 15704 s//\1/ 15705 q 15706 } 15707 s/.*/./; q'` 15708 am_filepart=`$as_basename -- "$am_mf" || 15709$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15710 X"$am_mf" : 'X\(//\)$' \| \ 15711 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15712$as_echo X/"$am_mf" | 15713 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15714 s//\1/ 15715 q 15716 } 15717 /^X\/\(\/\/\)$/{ 15718 s//\1/ 15719 q 15720 } 15721 /^X\/\(\/\).*/{ 15722 s//\1/ 15723 q 15724 } 15725 s/.*/./; q'` 15726 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15727 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15728 | $MAKE -f - am--depfiles" >&5 15729 (cd "$am_dirpart" \ 15730 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15731 | $MAKE -f - am--depfiles) >&5 2>&5 15732 ac_status=$? 15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15734 (exit $ac_status); } || am_rc=$? 15735 done 15736 if test $am_rc -ne 0; then 15737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15739as_fn_error $? "Something went wrong bootstrapping makefile fragments 15740 for automatic dependency tracking. If GNU make was not used, consider 15741 re-running the configure script with MAKE=\"gmake\" (or whatever is 15742 necessary). You can also try re-running configure with the 15743 '--disable-dependency-tracking' option to at least be able to build 15744 the package (albeit without support for automatic dependency tracking). 15745See \`config.log' for more details" "$LINENO" 5; } 15746 fi 15747 { am_dirpart=; unset am_dirpart;} 15748 { am_filepart=; unset am_filepart;} 15749 { am_mf=; unset am_mf;} 15750 { am_rc=; unset am_rc;} 15751 rm -f conftest-deps.mk 15752} 15753 ;; 15754 "libtool":C) 15755 15756 # See if we are running on zsh, and set the options that allow our 15757 # commands through without removal of \ escapes. 15758 if test -n "${ZSH_VERSION+set}"; then 15759 setopt NO_GLOB_SUBST 15760 fi 15761 15762 cfgfile=${ofile}T 15763 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15764 $RM "$cfgfile" 15765 15766 cat <<_LT_EOF >> "$cfgfile" 15767#! $SHELL 15768# Generated automatically by $as_me ($PACKAGE) $VERSION 15769# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15770# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15771 15772# Provide generalized library-building support services. 15773# Written by Gordon Matzigkeit, 1996 15774 15775# Copyright (C) 2014 Free Software Foundation, Inc. 15776# This is free software; see the source for copying conditions. There is NO 15777# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15778 15779# GNU Libtool is free software; you can redistribute it and/or modify 15780# it under the terms of the GNU General Public License as published by 15781# the Free Software Foundation; either version 2 of of the License, or 15782# (at your option) any later version. 15783# 15784# As a special exception to the GNU General Public License, if you 15785# distribute this file as part of a program or library that is built 15786# using GNU Libtool, you may include this file under the same 15787# distribution terms that you use for the rest of that program. 15788# 15789# GNU Libtool is distributed in the hope that it will be useful, but 15790# WITHOUT ANY WARRANTY; without even the implied warranty of 15791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15792# GNU General Public License for more details. 15793# 15794# You should have received a copy of the GNU General Public License 15795# along with this program. If not, see <http://www.gnu.org/licenses/>. 15796 15797 15798# The names of the tagged configurations supported by this script. 15799available_tags='' 15800 15801# Configured defaults for sys_lib_dlsearch_path munging. 15802: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15803 15804# ### BEGIN LIBTOOL CONFIG 15805 15806# Whether or not to build shared libraries. 15807build_libtool_libs=$enable_shared 15808 15809# Which release of libtool.m4 was used? 15810macro_version=$macro_version 15811macro_revision=$macro_revision 15812 15813# Whether or not to build static libraries. 15814build_old_libs=$enable_static 15815 15816# What type of objects to build. 15817pic_mode=$pic_mode 15818 15819# Whether or not to optimize for fast installation. 15820fast_install=$enable_fast_install 15821 15822# Shared archive member basename,for filename based shared library versioning on AIX. 15823shared_archive_member_spec=$shared_archive_member_spec 15824 15825# Shell to use when invoking shell scripts. 15826SHELL=$lt_SHELL 15827 15828# An echo program that protects backslashes. 15829ECHO=$lt_ECHO 15830 15831# The PATH separator for the build system. 15832PATH_SEPARATOR=$lt_PATH_SEPARATOR 15833 15834# The host system. 15835host_alias=$host_alias 15836host=$host 15837host_os=$host_os 15838 15839# The build system. 15840build_alias=$build_alias 15841build=$build 15842build_os=$build_os 15843 15844# A sed program that does not truncate output. 15845SED=$lt_SED 15846 15847# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15848Xsed="\$SED -e 1s/^X//" 15849 15850# A grep program that handles long lines. 15851GREP=$lt_GREP 15852 15853# An ERE matcher. 15854EGREP=$lt_EGREP 15855 15856# A literal string matcher. 15857FGREP=$lt_FGREP 15858 15859# A BSD- or MS-compatible name lister. 15860NM=$lt_NM 15861 15862# Whether we need soft or hard links. 15863LN_S=$lt_LN_S 15864 15865# What is the maximum length of a command? 15866max_cmd_len=$max_cmd_len 15867 15868# Object file suffix (normally "o"). 15869objext=$ac_objext 15870 15871# Executable file suffix (normally ""). 15872exeext=$exeext 15873 15874# whether the shell understands "unset". 15875lt_unset=$lt_unset 15876 15877# turn spaces into newlines. 15878SP2NL=$lt_lt_SP2NL 15879 15880# turn newlines into spaces. 15881NL2SP=$lt_lt_NL2SP 15882 15883# convert \$build file names to \$host format. 15884to_host_file_cmd=$lt_cv_to_host_file_cmd 15885 15886# convert \$build files to toolchain format. 15887to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15888 15889# An object symbol dumper. 15890OBJDUMP=$lt_OBJDUMP 15891 15892# Method to check whether dependent libraries are shared objects. 15893deplibs_check_method=$lt_deplibs_check_method 15894 15895# Command to use when deplibs_check_method = "file_magic". 15896file_magic_cmd=$lt_file_magic_cmd 15897 15898# How to find potential files when deplibs_check_method = "file_magic". 15899file_magic_glob=$lt_file_magic_glob 15900 15901# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15902want_nocaseglob=$lt_want_nocaseglob 15903 15904# DLL creation program. 15905DLLTOOL=$lt_DLLTOOL 15906 15907# Command to associate shared and link libraries. 15908sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15909 15910# The archiver. 15911AR=$lt_AR 15912 15913# Flags to create an archive. 15914AR_FLAGS=$lt_AR_FLAGS 15915 15916# How to feed a file listing to the archiver. 15917archiver_list_spec=$lt_archiver_list_spec 15918 15919# A symbol stripping program. 15920STRIP=$lt_STRIP 15921 15922# Commands used to install an old-style archive. 15923RANLIB=$lt_RANLIB 15924old_postinstall_cmds=$lt_old_postinstall_cmds 15925old_postuninstall_cmds=$lt_old_postuninstall_cmds 15926 15927# Whether to use a lock for old archive extraction. 15928lock_old_archive_extraction=$lock_old_archive_extraction 15929 15930# A C compiler. 15931LTCC=$lt_CC 15932 15933# LTCC compiler flags. 15934LTCFLAGS=$lt_CFLAGS 15935 15936# Take the output of nm and produce a listing of raw symbols and C names. 15937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15938 15939# Transform the output of nm in a proper C declaration. 15940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15941 15942# Transform the output of nm into a list of symbols to manually relocate. 15943global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15944 15945# Transform the output of nm in a C name address pair. 15946global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15947 15948# Transform the output of nm in a C name address pair when lib prefix is needed. 15949global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15950 15951# The name lister interface. 15952nm_interface=$lt_lt_cv_nm_interface 15953 15954# Specify filename containing input files for \$NM. 15955nm_file_list_spec=$lt_nm_file_list_spec 15956 15957# The root where to search for dependent libraries,and where our libraries should be installed. 15958lt_sysroot=$lt_sysroot 15959 15960# Command to truncate a binary pipe. 15961lt_truncate_bin=$lt_lt_cv_truncate_bin 15962 15963# The name of the directory that contains temporary libtool files. 15964objdir=$objdir 15965 15966# Used to examine libraries when file_magic_cmd begins with "file". 15967MAGIC_CMD=$MAGIC_CMD 15968 15969# Must we lock files when doing compilation? 15970need_locks=$lt_need_locks 15971 15972# Manifest tool. 15973MANIFEST_TOOL=$lt_MANIFEST_TOOL 15974 15975# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15976DSYMUTIL=$lt_DSYMUTIL 15977 15978# Tool to change global to local symbols on Mac OS X. 15979NMEDIT=$lt_NMEDIT 15980 15981# Tool to manipulate fat objects and archives on Mac OS X. 15982LIPO=$lt_LIPO 15983 15984# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15985OTOOL=$lt_OTOOL 15986 15987# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15988OTOOL64=$lt_OTOOL64 15989 15990# Old archive suffix (normally "a"). 15991libext=$libext 15992 15993# Shared library suffix (normally ".so"). 15994shrext_cmds=$lt_shrext_cmds 15995 15996# The commands to extract the exported symbol list from a shared archive. 15997extract_expsyms_cmds=$lt_extract_expsyms_cmds 15998 15999# Variables whose values should be saved in libtool wrapper scripts and 16000# restored at link time. 16001variables_saved_for_relink=$lt_variables_saved_for_relink 16002 16003# Do we need the "lib" prefix for modules? 16004need_lib_prefix=$need_lib_prefix 16005 16006# Do we need a version for libraries? 16007need_version=$need_version 16008 16009# Library versioning type. 16010version_type=$version_type 16011 16012# Shared library runtime path variable. 16013runpath_var=$runpath_var 16014 16015# Shared library path variable. 16016shlibpath_var=$shlibpath_var 16017 16018# Is shlibpath searched before the hard-coded library search path? 16019shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16020 16021# Format of library name prefix. 16022libname_spec=$lt_libname_spec 16023 16024# List of archive names. First name is the real one, the rest are links. 16025# The last name is the one that the linker finds with -lNAME 16026library_names_spec=$lt_library_names_spec 16027 16028# The coded name of the library, if different from the real name. 16029soname_spec=$lt_soname_spec 16030 16031# Permission mode override for installation of shared libraries. 16032install_override_mode=$lt_install_override_mode 16033 16034# Command to use after installation of a shared archive. 16035postinstall_cmds=$lt_postinstall_cmds 16036 16037# Command to use after uninstallation of a shared archive. 16038postuninstall_cmds=$lt_postuninstall_cmds 16039 16040# Commands used to finish a libtool library installation in a directory. 16041finish_cmds=$lt_finish_cmds 16042 16043# As "finish_cmds", except a single script fragment to be evaled but 16044# not shown. 16045finish_eval=$lt_finish_eval 16046 16047# Whether we should hardcode library paths into libraries. 16048hardcode_into_libs=$hardcode_into_libs 16049 16050# Compile-time system search path for libraries. 16051sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16052 16053# Detected run-time system search path for libraries. 16054sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16055 16056# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16057configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16058 16059# Whether dlopen is supported. 16060dlopen_support=$enable_dlopen 16061 16062# Whether dlopen of programs is supported. 16063dlopen_self=$enable_dlopen_self 16064 16065# Whether dlopen of statically linked programs is supported. 16066dlopen_self_static=$enable_dlopen_self_static 16067 16068# Commands to strip libraries. 16069old_striplib=$lt_old_striplib 16070striplib=$lt_striplib 16071 16072 16073# The linker used to build libraries. 16074LD=$lt_LD 16075 16076# How to create reloadable object files. 16077reload_flag=$lt_reload_flag 16078reload_cmds=$lt_reload_cmds 16079 16080# Commands used to build an old-style archive. 16081old_archive_cmds=$lt_old_archive_cmds 16082 16083# A language specific compiler. 16084CC=$lt_compiler 16085 16086# Is the compiler the GNU compiler? 16087with_gcc=$GCC 16088 16089# Compiler flag to turn off builtin functions. 16090no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16091 16092# Additional compiler flags for building library objects. 16093pic_flag=$lt_lt_prog_compiler_pic 16094 16095# How to pass a linker flag through the compiler. 16096wl=$lt_lt_prog_compiler_wl 16097 16098# Compiler flag to prevent dynamic linking. 16099link_static_flag=$lt_lt_prog_compiler_static 16100 16101# Does compiler simultaneously support -c and -o options? 16102compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16103 16104# Whether or not to add -lc for building shared libraries. 16105build_libtool_need_lc=$archive_cmds_need_lc 16106 16107# Whether or not to disallow shared libs when runtime libs are static. 16108allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16109 16110# Compiler flag to allow reflexive dlopens. 16111export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16112 16113# Compiler flag to generate shared objects directly from archives. 16114whole_archive_flag_spec=$lt_whole_archive_flag_spec 16115 16116# Whether the compiler copes with passing no objects directly. 16117compiler_needs_object=$lt_compiler_needs_object 16118 16119# Create an old-style archive from a shared archive. 16120old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16121 16122# Create a temporary old-style archive to link instead of a shared archive. 16123old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16124 16125# Commands used to build a shared archive. 16126archive_cmds=$lt_archive_cmds 16127archive_expsym_cmds=$lt_archive_expsym_cmds 16128 16129# Commands used to build a loadable module if different from building 16130# a shared archive. 16131module_cmds=$lt_module_cmds 16132module_expsym_cmds=$lt_module_expsym_cmds 16133 16134# Whether we are building with GNU ld or not. 16135with_gnu_ld=$lt_with_gnu_ld 16136 16137# Flag that allows shared libraries with undefined symbols to be built. 16138allow_undefined_flag=$lt_allow_undefined_flag 16139 16140# Flag that enforces no undefined symbols. 16141no_undefined_flag=$lt_no_undefined_flag 16142 16143# Flag to hardcode \$libdir into a binary during linking. 16144# This must work even if \$libdir does not exist 16145hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16146 16147# Whether we need a single "-rpath" flag with a separated argument. 16148hardcode_libdir_separator=$lt_hardcode_libdir_separator 16149 16150# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16151# DIR into the resulting binary. 16152hardcode_direct=$hardcode_direct 16153 16154# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 16155# DIR into the resulting binary and the resulting library dependency is 16156# "absolute",i.e impossible to change by setting \$shlibpath_var if the 16157# library is relocated. 16158hardcode_direct_absolute=$hardcode_direct_absolute 16159 16160# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16161# into the resulting binary. 16162hardcode_minus_L=$hardcode_minus_L 16163 16164# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16165# into the resulting binary. 16166hardcode_shlibpath_var=$hardcode_shlibpath_var 16167 16168# Set to "yes" if building a shared library automatically hardcodes DIR 16169# into the library and all subsequent libraries and executables linked 16170# against it. 16171hardcode_automatic=$hardcode_automatic 16172 16173# Set to yes if linker adds runtime paths of dependent libraries 16174# to runtime path list. 16175inherit_rpath=$inherit_rpath 16176 16177# Whether libtool must link a program against all its dependency libraries. 16178link_all_deplibs=$link_all_deplibs 16179 16180# Set to "yes" if exported symbols are required. 16181always_export_symbols=$always_export_symbols 16182 16183# The commands to list exported symbols. 16184export_symbols_cmds=$lt_export_symbols_cmds 16185 16186# Symbols that should not be listed in the preloaded symbols. 16187exclude_expsyms=$lt_exclude_expsyms 16188 16189# Symbols that must always be exported. 16190include_expsyms=$lt_include_expsyms 16191 16192# Commands necessary for linking programs (against libraries) with templates. 16193prelink_cmds=$lt_prelink_cmds 16194 16195# Commands necessary for finishing linking programs. 16196postlink_cmds=$lt_postlink_cmds 16197 16198# Specify filename containing input files. 16199file_list_spec=$lt_file_list_spec 16200 16201# How to hardcode a shared library path into an executable. 16202hardcode_action=$hardcode_action 16203 16204# ### END LIBTOOL CONFIG 16205 16206_LT_EOF 16207 16208 cat <<'_LT_EOF' >> "$cfgfile" 16209 16210# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16211 16212# func_munge_path_list VARIABLE PATH 16213# ----------------------------------- 16214# VARIABLE is name of variable containing _space_ separated list of 16215# directories to be munged by the contents of PATH, which is string 16216# having a format: 16217# "DIR[:DIR]:" 16218# string "DIR[ DIR]" will be prepended to VARIABLE 16219# ":DIR[:DIR]" 16220# string "DIR[ DIR]" will be appended to VARIABLE 16221# "DIRP[:DIRP]::[DIRA:]DIRA" 16222# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16223# "DIRA[ DIRA]" will be appended to VARIABLE 16224# "DIR[:DIR]" 16225# VARIABLE will be replaced by "DIR[ DIR]" 16226func_munge_path_list () 16227{ 16228 case x$2 in 16229 x) 16230 ;; 16231 *:) 16232 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16233 ;; 16234 x:*) 16235 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16236 ;; 16237 *::*) 16238 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16239 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16240 ;; 16241 *) 16242 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16243 ;; 16244 esac 16245} 16246 16247 16248# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16249func_cc_basename () 16250{ 16251 for cc_temp in $*""; do 16252 case $cc_temp in 16253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16255 \-*) ;; 16256 *) break;; 16257 esac 16258 done 16259 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16260} 16261 16262 16263# ### END FUNCTIONS SHARED WITH CONFIGURE 16264 16265_LT_EOF 16266 16267 case $host_os in 16268 aix3*) 16269 cat <<\_LT_EOF >> "$cfgfile" 16270# AIX sometimes has problems with the GCC collect2 program. For some 16271# reason, if we set the COLLECT_NAMES environment variable, the problems 16272# vanish in a puff of smoke. 16273if test set != "${COLLECT_NAMES+set}"; then 16274 COLLECT_NAMES= 16275 export COLLECT_NAMES 16276fi 16277_LT_EOF 16278 ;; 16279 esac 16280 16281 16282ltmain=$ac_aux_dir/ltmain.sh 16283 16284 16285 # We use sed instead of cat because bash on DJGPP gets confused if 16286 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16287 # text mode, it properly converts lines to CR/LF. This bash problem 16288 # is reportedly fixed, but why not run on old versions too? 16289 sed '$q' "$ltmain" >> "$cfgfile" \ 16290 || (rm -f "$cfgfile"; exit 1) 16291 16292 mv -f "$cfgfile" "$ofile" || 16293 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16294 chmod +x "$ofile" 16295 16296 ;; 16297 16298 esac 16299done # for ac_tag 16300 16301 16302as_fn_exit 0 16303_ACEOF 16304ac_clean_files=$ac_clean_files_save 16305 16306test $ac_write_fail = 0 || 16307 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16308 16309 16310# configure is writing to config.log, and then calls config.status. 16311# config.status does its own redirection, appending to config.log. 16312# Unfortunately, on DOS this fails, as config.log is still kept open 16313# by configure, so config.status won't be able to write to it; its 16314# output is simply discarded. So we exec the FD to /dev/null, 16315# effectively closing config.log, so it can be properly (re)opened and 16316# appended to by config.status. When coming back to configure, we 16317# need to make the FD available again. 16318if test "$no_create" != yes; then 16319 ac_cs_success=: 16320 ac_config_status_args= 16321 test "$silent" = yes && 16322 ac_config_status_args="$ac_config_status_args --quiet" 16323 exec 5>/dev/null 16324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16325 exec 5>>config.log 16326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16327 # would make configure fail if this is the last instruction. 16328 $ac_cs_success || as_fn_exit 1 16329fi 16330if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16332$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16333fi 16334 16335