1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for iperf 3-CURRENT. 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-CURRENT' 594PACKAGE_STRING='iperf 3-CURRENT' 595PACKAGE_BUGREPORT='https://github.com/esnet/iperf' 596PACKAGE_URL='http://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 638CPP 639OTOOL64 640OTOOL 641LIPO 642NMEDIT 643DSYMUTIL 644MANIFEST_TOOL 645ac_ct_AR 646AR 647DLLTOOL 648OBJDUMP 649NM 650ac_ct_DUMPBIN 651DUMPBIN 652LD 653FGREP 654EGREP 655GREP 656SED 657LIBTOOL 658LN_S 659RANLIB 660am__fastdepCC_FALSE 661am__fastdepCC_TRUE 662CCDEPMODE 663am__nodep 664AMDEPBACKSLASH 665AMDEP_FALSE 666AMDEP_TRUE 667am__quote 668am__include 669DEPDIR 670OBJEXT 671EXEEXT 672ac_ct_CC 673CPPFLAGS 674LDFLAGS 675CFLAGS 676CC 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685MAINT 686MAINTAINER_MODE_FALSE 687MAINTAINER_MODE_TRUE 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692am__untar 693am__tar 694AMTAR 695am__leading_dot 696SET_MAKE 697AWK 698mkdir_p 699MKDIR_P 700INSTALL_STRIP_PROGRAM 701STRIP 702install_sh 703MAKEINFO 704AUTOHEADER 705AUTOMAKE 706AUTOCONF 707ACLOCAL 708VERSION 709PACKAGE 710CYGPATH_W 711am__isrc 712INSTALL_DATA 713INSTALL_SCRIPT 714INSTALL_PROGRAM 715target_alias 716host_alias 717build_alias 718LIBS 719ECHO_T 720ECHO_N 721ECHO_C 722DEFS 723mandir 724localedir 725libdir 726psdir 727pdfdir 728dvidir 729htmldir 730infodir 731docdir 732oldincludedir 733includedir 734localstatedir 735sharedstatedir 736sysconfdir 737datadir 738datarootdir 739libexecdir 740sbindir 741bindir 742program_transform_name 743prefix 744exec_prefix 745PACKAGE_URL 746PACKAGE_BUGREPORT 747PACKAGE_STRING 748PACKAGE_VERSION 749PACKAGE_TARNAME 750PACKAGE_NAME 751PATH_SEPARATOR 752SHELL' 753ac_subst_files='' 754ac_user_opts=' 755enable_option_checking 756enable_silent_rules 757enable_maintainer_mode 758enable_dependency_tracking 759enable_shared 760enable_static 761with_pic 762enable_fast_install 763with_aix_soname 764with_gnu_ld 765with_sysroot 766enable_libtool_lock 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776CPP' 777 778 779# Initialize some variables set by options. 780ac_init_help= 781ac_init_version=false 782ac_unrecognized_opts= 783ac_unrecognized_sep= 784# The variables have the same names as the options, with 785# dashes changed to underlines. 786cache_file=/dev/null 787exec_prefix=NONE 788no_create= 789no_recursion= 790prefix=NONE 791program_prefix=NONE 792program_suffix=NONE 793program_transform_name=s,x,x, 794silent= 795site= 796srcdir= 797verbose= 798x_includes=NONE 799x_libraries=NONE 800 801# Installation directory options. 802# These are left unexpanded so users can "make install exec_prefix=/foo" 803# and all the variables that are supposed to be based on exec_prefix 804# by default will actually change. 805# Use braces instead of parens because sh, perl, etc. also accept them. 806# (The list follows the same order as the GNU Coding Standards.) 807bindir='${exec_prefix}/bin' 808sbindir='${exec_prefix}/sbin' 809libexecdir='${exec_prefix}/libexec' 810datarootdir='${prefix}/share' 811datadir='${datarootdir}' 812sysconfdir='${prefix}/etc' 813sharedstatedir='${prefix}/com' 814localstatedir='${prefix}/var' 815includedir='${prefix}/include' 816oldincludedir='/usr/include' 817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 818infodir='${datarootdir}/info' 819htmldir='${docdir}' 820dvidir='${docdir}' 821pdfdir='${docdir}' 822psdir='${docdir}' 823libdir='${exec_prefix}/lib' 824localedir='${datarootdir}/locale' 825mandir='${datarootdir}/man' 826 827ac_prev= 828ac_dashdash= 829for ac_option 830do 831 # If the previous option needs an argument, assign it. 832 if test -n "$ac_prev"; then 833 eval $ac_prev=\$ac_option 834 ac_prev= 835 continue 836 fi 837 838 case $ac_option in 839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 840 *=) ac_optarg= ;; 841 *) ac_optarg=yes ;; 842 esac 843 844 # Accept the important Cygnus configure options, so we can diagnose typos. 845 846 case $ac_dashdash$ac_option in 847 --) 848 ac_dashdash=yes ;; 849 850 -bindir | --bindir | --bindi | --bind | --bin | --bi) 851 ac_prev=bindir ;; 852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 853 bindir=$ac_optarg ;; 854 855 -build | --build | --buil | --bui | --bu) 856 ac_prev=build_alias ;; 857 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 858 build_alias=$ac_optarg ;; 859 860 -cache-file | --cache-file | --cache-fil | --cache-fi \ 861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 862 ac_prev=cache_file ;; 863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 865 cache_file=$ac_optarg ;; 866 867 --config-cache | -C) 868 cache_file=config.cache ;; 869 870 -datadir | --datadir | --datadi | --datad) 871 ac_prev=datadir ;; 872 -datadir=* | --datadir=* | --datadi=* | --datad=*) 873 datadir=$ac_optarg ;; 874 875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 876 | --dataroo | --dataro | --datar) 877 ac_prev=datarootdir ;; 878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 880 datarootdir=$ac_optarg ;; 881 882 -disable-* | --disable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=no ;; 897 898 -docdir | --docdir | --docdi | --doc | --do) 899 ac_prev=docdir ;; 900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 901 docdir=$ac_optarg ;; 902 903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 904 ac_prev=dvidir ;; 905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 906 dvidir=$ac_optarg ;; 907 908 -enable-* | --enable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: $ac_useropt" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=\$ac_optarg ;; 923 924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 926 | --exec | --exe | --ex) 927 ac_prev=exec_prefix ;; 928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 930 | --exec=* | --exe=* | --ex=*) 931 exec_prefix=$ac_optarg ;; 932 933 -gas | --gas | --ga | --g) 934 # Obsolete; use --with-gas. 935 with_gas=yes ;; 936 937 -help | --help | --hel | --he | -h) 938 ac_init_help=long ;; 939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 940 ac_init_help=recursive ;; 941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 942 ac_init_help=short ;; 943 944 -host | --host | --hos | --ho) 945 ac_prev=host_alias ;; 946 -host=* | --host=* | --hos=* | --ho=*) 947 host_alias=$ac_optarg ;; 948 949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 950 ac_prev=htmldir ;; 951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 952 | --ht=*) 953 htmldir=$ac_optarg ;; 954 955 -includedir | --includedir | --includedi | --included | --include \ 956 | --includ | --inclu | --incl | --inc) 957 ac_prev=includedir ;; 958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 959 | --includ=* | --inclu=* | --incl=* | --inc=*) 960 includedir=$ac_optarg ;; 961 962 -infodir | --infodir | --infodi | --infod | --info | --inf) 963 ac_prev=infodir ;; 964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 965 infodir=$ac_optarg ;; 966 967 -libdir | --libdir | --libdi | --libd) 968 ac_prev=libdir ;; 969 -libdir=* | --libdir=* | --libdi=* | --libd=*) 970 libdir=$ac_optarg ;; 971 972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 973 | --libexe | --libex | --libe) 974 ac_prev=libexecdir ;; 975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 976 | --libexe=* | --libex=* | --libe=*) 977 libexecdir=$ac_optarg ;; 978 979 -localedir | --localedir | --localedi | --localed | --locale) 980 ac_prev=localedir ;; 981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 982 localedir=$ac_optarg ;; 983 984 -localstatedir | --localstatedir | --localstatedi | --localstated \ 985 | --localstate | --localstat | --localsta | --localst | --locals) 986 ac_prev=localstatedir ;; 987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 989 localstatedir=$ac_optarg ;; 990 991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 992 ac_prev=mandir ;; 993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 994 mandir=$ac_optarg ;; 995 996 -nfp | --nfp | --nf) 997 # Obsolete; use --without-fp. 998 with_fp=no ;; 999 1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1001 | --no-cr | --no-c | -n) 1002 no_create=yes ;; 1003 1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1006 no_recursion=yes ;; 1007 1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1010 | --oldin | --oldi | --old | --ol | --o) 1011 ac_prev=oldincludedir ;; 1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1015 oldincludedir=$ac_optarg ;; 1016 1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1018 ac_prev=prefix ;; 1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1020 prefix=$ac_optarg ;; 1021 1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1023 | --program-pre | --program-pr | --program-p) 1024 ac_prev=program_prefix ;; 1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1027 program_prefix=$ac_optarg ;; 1028 1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1030 | --program-suf | --program-su | --program-s) 1031 ac_prev=program_suffix ;; 1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1034 program_suffix=$ac_optarg ;; 1035 1036 -program-transform-name | --program-transform-name \ 1037 | --program-transform-nam | --program-transform-na \ 1038 | --program-transform-n | --program-transform- \ 1039 | --program-transform | --program-transfor \ 1040 | --program-transfo | --program-transf \ 1041 | --program-trans | --program-tran \ 1042 | --progr-tra | --program-tr | --program-t) 1043 ac_prev=program_transform_name ;; 1044 -program-transform-name=* | --program-transform-name=* \ 1045 | --program-transform-nam=* | --program-transform-na=* \ 1046 | --program-transform-n=* | --program-transform-=* \ 1047 | --program-transform=* | --program-transfor=* \ 1048 | --program-transfo=* | --program-transf=* \ 1049 | --program-trans=* | --program-tran=* \ 1050 | --progr-tra=* | --program-tr=* | --program-t=*) 1051 program_transform_name=$ac_optarg ;; 1052 1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1054 ac_prev=pdfdir ;; 1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1056 pdfdir=$ac_optarg ;; 1057 1058 -psdir | --psdir | --psdi | --psd | --ps) 1059 ac_prev=psdir ;; 1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1061 psdir=$ac_optarg ;; 1062 1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1064 | -silent | --silent | --silen | --sile | --sil) 1065 silent=yes ;; 1066 1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1068 ac_prev=sbindir ;; 1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1070 | --sbi=* | --sb=*) 1071 sbindir=$ac_optarg ;; 1072 1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1075 | --sharedst | --shareds | --shared | --share | --shar \ 1076 | --sha | --sh) 1077 ac_prev=sharedstatedir ;; 1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1081 | --sha=* | --sh=*) 1082 sharedstatedir=$ac_optarg ;; 1083 1084 -site | --site | --sit) 1085 ac_prev=site ;; 1086 -site=* | --site=* | --sit=*) 1087 site=$ac_optarg ;; 1088 1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1090 ac_prev=srcdir ;; 1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1092 srcdir=$ac_optarg ;; 1093 1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1095 | --syscon | --sysco | --sysc | --sys | --sy) 1096 ac_prev=sysconfdir ;; 1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1099 sysconfdir=$ac_optarg ;; 1100 1101 -target | --target | --targe | --targ | --tar | --ta | --t) 1102 ac_prev=target_alias ;; 1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1104 target_alias=$ac_optarg ;; 1105 1106 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1107 verbose=yes ;; 1108 1109 -version | --version | --versio | --versi | --vers | -V) 1110 ac_init_version=: ;; 1111 1112 -with-* | --with-*) 1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1114 # Reject names that are not valid shell variable names. 1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1116 as_fn_error $? "invalid package name: $ac_useropt" 1117 ac_useropt_orig=$ac_useropt 1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1119 case $ac_user_opts in 1120 *" 1121"with_$ac_useropt" 1122"*) ;; 1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1124 ac_unrecognized_sep=', ';; 1125 esac 1126 eval with_$ac_useropt=\$ac_optarg ;; 1127 1128 -without-* | --without-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid package name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"with_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval with_$ac_useropt=no ;; 1143 1144 --x) 1145 # Obsolete; use --with-x. 1146 with_x=yes ;; 1147 1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1149 | --x-incl | --x-inc | --x-in | --x-i) 1150 ac_prev=x_includes ;; 1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1153 x_includes=$ac_optarg ;; 1154 1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1157 ac_prev=x_libraries ;; 1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1160 x_libraries=$ac_optarg ;; 1161 1162 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1163Try \`$0 --help' for more information" 1164 ;; 1165 1166 *=*) 1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1168 # Reject names that are not valid shell variable names. 1169 case $ac_envvar in #( 1170 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1172 esac 1173 eval $ac_envvar=\$ac_optarg 1174 export $ac_envvar ;; 1175 1176 *) 1177 # FIXME: should be removed in autoconf 3.0. 1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1182 ;; 1183 1184 esac 1185done 1186 1187if test -n "$ac_prev"; then 1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1189 as_fn_error $? "missing argument to $ac_option" 1190fi 1191 1192if test -n "$ac_unrecognized_opts"; then 1193 case $enable_option_checking in 1194 no) ;; 1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1197 esac 1198fi 1199 1200# Check all directory arguments for consistency. 1201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1202 datadir sysconfdir sharedstatedir localstatedir includedir \ 1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1204 libdir localedir mandir 1205do 1206 eval ac_val=\$$ac_var 1207 # Remove trailing slashes. 1208 case $ac_val in 1209 */ ) 1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1211 eval $ac_var=\$ac_val;; 1212 esac 1213 # Be sure to have absolute directory names. 1214 case $ac_val in 1215 [\\/$]* | ?:[\\/]* ) continue;; 1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1217 esac 1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1219done 1220 1221# There might be people who depend on the old broken behavior: `$host' 1222# used to hold the argument of --host etc. 1223# FIXME: To remove some day. 1224build=$build_alias 1225host=$host_alias 1226target=$target_alias 1227 1228# FIXME: To remove some day. 1229if test "x$host_alias" != x; then 1230 if test "x$build_alias" = x; then 1231 cross_compiling=maybe 1232 elif test "x$build_alias" != "x$host_alias"; then 1233 cross_compiling=yes 1234 fi 1235fi 1236 1237ac_tool_prefix= 1238test -n "$host_alias" && ac_tool_prefix=$host_alias- 1239 1240test "$silent" = yes && exec 6>/dev/null 1241 1242 1243ac_pwd=`pwd` && test -n "$ac_pwd" && 1244ac_ls_di=`ls -di .` && 1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1246 as_fn_error $? "working directory cannot be determined" 1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1248 as_fn_error $? "pwd does not report name of working directory" 1249 1250 1251# Find the source files, if location was not specified. 1252if test -z "$srcdir"; then 1253 ac_srcdir_defaulted=yes 1254 # Try the directory containing this script, then the parent directory. 1255 ac_confdir=`$as_dirname -- "$as_myself" || 1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1257 X"$as_myself" : 'X\(//\)[^/]' \| \ 1258 X"$as_myself" : 'X\(//\)$' \| \ 1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1260$as_echo X"$as_myself" | 1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)[^/].*/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\/\)$/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\).*/{ 1274 s//\1/ 1275 q 1276 } 1277 s/.*/./; q'` 1278 srcdir=$ac_confdir 1279 if test ! -r "$srcdir/$ac_unique_file"; then 1280 srcdir=.. 1281 fi 1282else 1283 ac_srcdir_defaulted=no 1284fi 1285if test ! -r "$srcdir/$ac_unique_file"; then 1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1288fi 1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1290ac_abs_confdir=`( 1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1292 pwd)` 1293# When building in place, set srcdir=. 1294if test "$ac_abs_confdir" = "$ac_pwd"; then 1295 srcdir=. 1296fi 1297# Remove unnecessary trailing slashes from srcdir. 1298# Double slashes in file names in object file debugging info 1299# mess up M-x gdb in Emacs. 1300case $srcdir in 1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1302esac 1303for ac_var in $ac_precious_vars; do 1304 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1305 eval ac_env_${ac_var}_value=\$${ac_var} 1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1307 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1308done 1309 1310# 1311# Report the --help message. 1312# 1313if test "$ac_init_help" = "long"; then 1314 # Omit some internal or obsolete options to make the list less imposing. 1315 # This message is too long to be a string in the A/UX 3.1 sh. 1316 cat <<_ACEOF 1317\`configure' configures iperf 3-CURRENT to adapt to many kinds of systems. 1318 1319Usage: $0 [OPTION]... [VAR=VALUE]... 1320 1321To assign environment variables (e.g., CC, CFLAGS...), specify them as 1322VAR=VALUE. See below for descriptions of some of the useful variables. 1323 1324Defaults for the options are specified in brackets. 1325 1326Configuration: 1327 -h, --help display this help and exit 1328 --help=short display options specific to this package 1329 --help=recursive display the short help of all the included packages 1330 -V, --version display version information and exit 1331 -q, --quiet, --silent do not print \`checking ...' messages 1332 --cache-file=FILE cache test results in FILE [disabled] 1333 -C, --config-cache alias for \`--cache-file=config.cache' 1334 -n, --no-create do not create output files 1335 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1336 1337Installation directories: 1338 --prefix=PREFIX install architecture-independent files in PREFIX 1339 [$ac_default_prefix] 1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1341 [PREFIX] 1342 1343By default, \`make install' will install all the files in 1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1345an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1346for instance \`--prefix=\$HOME'. 1347 1348For better control, use the options below. 1349 1350Fine tuning of the installation directories: 1351 --bindir=DIR user executables [EPREFIX/bin] 1352 --sbindir=DIR system admin executables [EPREFIX/sbin] 1353 --libexecdir=DIR program executables [EPREFIX/libexec] 1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1357 --libdir=DIR object code libraries [EPREFIX/lib] 1358 --includedir=DIR C header files [PREFIX/include] 1359 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1362 --infodir=DIR info documentation [DATAROOTDIR/info] 1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1364 --mandir=DIR man documentation [DATAROOTDIR/man] 1365 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1366 --htmldir=DIR html documentation [DOCDIR] 1367 --dvidir=DIR dvi documentation [DOCDIR] 1368 --pdfdir=DIR pdf documentation [DOCDIR] 1369 --psdir=DIR ps documentation [DOCDIR] 1370_ACEOF 1371 1372 cat <<\_ACEOF 1373 1374Program names: 1375 --program-prefix=PREFIX prepend PREFIX to installed program names 1376 --program-suffix=SUFFIX append SUFFIX to installed program names 1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1378 1379System types: 1380 --build=BUILD configure for building on BUILD [guessed] 1381 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1382_ACEOF 1383fi 1384 1385if test -n "$ac_init_help"; then 1386 case $ac_init_help in 1387 short | recursive ) echo "Configuration of iperf 3-CURRENT:";; 1388 esac 1389 cat <<\_ACEOF 1390 1391Optional Features: 1392 --disable-option-checking ignore unrecognized --enable/--with options 1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1395 --enable-silent-rules less verbose build output (undo: "make V=1") 1396 --disable-silent-rules verbose build output (undo: "make V=0") 1397 --enable-maintainer-mode 1398 enable make rules and dependencies not useful (and 1399 sometimes confusing) to the casual installer 1400 --enable-dependency-tracking 1401 do not reject slow dependency extractors 1402 --disable-dependency-tracking 1403 speeds up one-time build 1404 --enable-shared[=PKGS] build shared libraries [default=yes] 1405 --enable-static[=PKGS] build static libraries [default=yes] 1406 --enable-fast-install[=PKGS] 1407 optimize for fast installation [default=yes] 1408 --disable-libtool-lock avoid locking (might break parallel builds) 1409 1410Optional Packages: 1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1413 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1414 both] 1415 --with-aix-soname=aix|svr4|both 1416 shared library versioning (aka "SONAME") variant to 1417 provide on AIX, [default=aix]. 1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1419 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1420 compiler's sysroot if not specified). 1421 1422Some influential environment variables: 1423 CC C compiler command 1424 CFLAGS C compiler flags 1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1426 nonstandard directory <lib dir> 1427 LIBS libraries to pass to the linker, e.g. -l<library> 1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1429 you have headers in a nonstandard directory <include dir> 1430 CPP C preprocessor 1431 1432Use these variables to override the choices made by `configure' or to help 1433it to find libraries and programs with nonstandard names/locations. 1434 1435Report bugs to <https://github.com/esnet/iperf>. 1436iperf home page: <http://software.es.net/iperf/>. 1437_ACEOF 1438ac_status=$? 1439fi 1440 1441if test "$ac_init_help" = "recursive"; then 1442 # If there are subdirs, report their specific --help. 1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1444 test -d "$ac_dir" || 1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1446 continue 1447 ac_builddir=. 1448 1449case "$ac_dir" in 1450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1451*) 1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1453 # A ".." for each directory in $ac_dir_suffix. 1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1455 case $ac_top_builddir_sub in 1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1458 esac ;; 1459esac 1460ac_abs_top_builddir=$ac_pwd 1461ac_abs_builddir=$ac_pwd$ac_dir_suffix 1462# for backward compatibility: 1463ac_top_builddir=$ac_top_build_prefix 1464 1465case $srcdir in 1466 .) # We are building in place. 1467 ac_srcdir=. 1468 ac_top_srcdir=$ac_top_builddir_sub 1469 ac_abs_top_srcdir=$ac_pwd ;; 1470 [\\/]* | ?:[\\/]* ) # Absolute name. 1471 ac_srcdir=$srcdir$ac_dir_suffix; 1472 ac_top_srcdir=$srcdir 1473 ac_abs_top_srcdir=$srcdir ;; 1474 *) # Relative name. 1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1476 ac_top_srcdir=$ac_top_build_prefix$srcdir 1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1478esac 1479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1480 1481 cd "$ac_dir" || { ac_status=$?; continue; } 1482 # Check for guested configure. 1483 if test -f "$ac_srcdir/configure.gnu"; then 1484 echo && 1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1486 elif test -f "$ac_srcdir/configure"; then 1487 echo && 1488 $SHELL "$ac_srcdir/configure" --help=recursive 1489 else 1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1491 fi || ac_status=$? 1492 cd "$ac_pwd" || { ac_status=$?; break; } 1493 done 1494fi 1495 1496test -n "$ac_init_help" && exit $ac_status 1497if $ac_init_version; then 1498 cat <<\_ACEOF 1499iperf configure 3-CURRENT 1500generated by GNU Autoconf 2.69 1501 1502Copyright (C) 2012 Free Software Foundation, Inc. 1503This configure script is free software; the Free Software Foundation 1504gives unlimited permission to copy, distribute and modify it. 1505_ACEOF 1506 exit 1507fi 1508 1509## ------------------------ ## 1510## Autoconf initialization. ## 1511## ------------------------ ## 1512 1513# ac_fn_c_try_compile LINENO 1514# -------------------------- 1515# Try to compile conftest.$ac_ext, and return whether this succeeded. 1516ac_fn_c_try_compile () 1517{ 1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1519 rm -f conftest.$ac_objext 1520 if { { ac_try="$ac_compile" 1521case "(($ac_try" in 1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1523 *) ac_try_echo=$ac_try;; 1524esac 1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1526$as_echo "$ac_try_echo"; } >&5 1527 (eval "$ac_compile") 2>conftest.err 1528 ac_status=$? 1529 if test -s conftest.err; then 1530 grep -v '^ *+' conftest.err >conftest.er1 1531 cat conftest.er1 >&5 1532 mv -f conftest.er1 conftest.err 1533 fi 1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1535 test $ac_status = 0; } && { 1536 test -z "$ac_c_werror_flag" || 1537 test ! -s conftest.err 1538 } && test -s conftest.$ac_objext; then : 1539 ac_retval=0 1540else 1541 $as_echo "$as_me: failed program was:" >&5 1542sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545fi 1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1547 as_fn_set_status $ac_retval 1548 1549} # ac_fn_c_try_compile 1550 1551# ac_fn_c_try_link LINENO 1552# ----------------------- 1553# Try to link conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_link () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest$ac_exeext 1558 if { { ac_try="$ac_link" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564$as_echo "$ac_try_echo"; } >&5 1565 (eval "$ac_link") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest$ac_exeext && { 1577 test "$cross_compiling" = yes || 1578 test -x conftest$ac_exeext 1579 }; then : 1580 ac_retval=0 1581else 1582 $as_echo "$as_me: failed program was:" >&5 1583sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 1586fi 1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1589 # interfere with the next link command; also delete a directory that is 1590 # left behind by Apple's compiler. We do this before executing the actions. 1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1593 as_fn_set_status $ac_retval 1594 1595} # ac_fn_c_try_link 1596 1597# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1598# ------------------------------------------------------- 1599# Tests whether HEADER exists and can be compiled using the include files in 1600# INCLUDES, setting the cache variable VAR accordingly. 1601ac_fn_c_check_header_compile () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1605$as_echo_n "checking for $2... " >&6; } 1606if eval \${$3+:} false; then : 1607 $as_echo_n "(cached) " >&6 1608else 1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1610/* end confdefs.h. */ 1611$4 1612#include <$2> 1613_ACEOF 1614if ac_fn_c_try_compile "$LINENO"; then : 1615 eval "$3=yes" 1616else 1617 eval "$3=no" 1618fi 1619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1620fi 1621eval ac_res=\$$3 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1623$as_echo "$ac_res" >&6; } 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 1626} # ac_fn_c_check_header_compile 1627 1628# ac_fn_c_try_cpp LINENO 1629# ---------------------- 1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1631ac_fn_c_try_cpp () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 if { { ac_try="$ac_cpp conftest.$ac_ext" 1635case "(($ac_try" in 1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637 *) ac_try_echo=$ac_try;; 1638esac 1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640$as_echo "$ac_try_echo"; } >&5 1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1642 ac_status=$? 1643 if test -s conftest.err; then 1644 grep -v '^ *+' conftest.err >conftest.er1 1645 cat conftest.er1 >&5 1646 mv -f conftest.er1 conftest.err 1647 fi 1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1649 test $ac_status = 0; } > conftest.i && { 1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1651 test ! -s conftest.err 1652 }; then : 1653 ac_retval=0 1654else 1655 $as_echo "$as_me: failed program was:" >&5 1656sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=1 1659fi 1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661 as_fn_set_status $ac_retval 1662 1663} # ac_fn_c_try_cpp 1664 1665# ac_fn_c_try_run LINENO 1666# ---------------------- 1667# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1668# that executables *can* be run. 1669ac_fn_c_try_run () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 if { { ac_try="$ac_link" 1673case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678$as_echo "$ac_try_echo"; } >&5 1679 (eval "$ac_link") 2>&5 1680 ac_status=$? 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1683 { { case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_try") 2>&5 1690 ac_status=$? 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; }; }; then : 1693 ac_retval=0 1694else 1695 $as_echo "$as_me: program exited with status $ac_status" >&5 1696 $as_echo "$as_me: failed program was:" >&5 1697sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=$ac_status 1700fi 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_run 1706 1707# ac_fn_c_check_func LINENO FUNC VAR 1708# ---------------------------------- 1709# Tests whether FUNC exists, setting the cache variable VAR accordingly 1710ac_fn_c_check_func () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714$as_echo_n "checking for $2... " >&6; } 1715if eval \${$3+:} false; then : 1716 $as_echo_n "(cached) " >&6 1717else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1722#define $2 innocuous_$2 1723 1724/* System header to define __stub macros and hopefully few prototypes, 1725 which can conflict with char $2 (); below. 1726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1727 <limits.h> exists even on freestanding compilers. */ 1728 1729#ifdef __STDC__ 1730# include <limits.h> 1731#else 1732# include <assert.h> 1733#endif 1734 1735#undef $2 1736 1737/* Override any GCC internal prototype to avoid an error. 1738 Use char because int might match the return type of a GCC 1739 builtin and then its argument prototype would still apply. */ 1740#ifdef __cplusplus 1741extern "C" 1742#endif 1743char $2 (); 1744/* The GNU C library defines this for functions which it implements 1745 to always fail with ENOSYS. Some functions are actually named 1746 something starting with __ and the normal name is an alias. */ 1747#if defined __stub_$2 || defined __stub___$2 1748choke me 1749#endif 1750 1751int 1752main () 1753{ 1754return $2 (); 1755 ; 1756 return 0; 1757} 1758_ACEOF 1759if ac_fn_c_try_link "$LINENO"; then : 1760 eval "$3=yes" 1761else 1762 eval "$3=no" 1763fi 1764rm -f core conftest.err conftest.$ac_objext \ 1765 conftest$ac_exeext conftest.$ac_ext 1766fi 1767eval ac_res=\$$3 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769$as_echo "$ac_res" >&6; } 1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 1772} # ac_fn_c_check_func 1773 1774# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1775# ------------------------------------------------------- 1776# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1777# the include files in INCLUDES and setting the cache variable VAR 1778# accordingly. 1779ac_fn_c_check_header_mongrel () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 if eval \${$3+:} false; then : 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1784$as_echo_n "checking for $2... " >&6; } 1785if eval \${$3+:} false; then : 1786 $as_echo_n "(cached) " >&6 1787fi 1788eval ac_res=\$$3 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790$as_echo "$ac_res" >&6; } 1791else 1792 # Is the header compilable? 1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1794$as_echo_n "checking $2 usability... " >&6; } 1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796/* end confdefs.h. */ 1797$4 1798#include <$2> 1799_ACEOF 1800if ac_fn_c_try_compile "$LINENO"; then : 1801 ac_header_compiler=yes 1802else 1803 ac_header_compiler=no 1804fi 1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1807$as_echo "$ac_header_compiler" >&6; } 1808 1809# Is the header present? 1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1811$as_echo_n "checking $2 presence... " >&6; } 1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813/* end confdefs.h. */ 1814#include <$2> 1815_ACEOF 1816if ac_fn_c_try_cpp "$LINENO"; then : 1817 ac_header_preproc=yes 1818else 1819 ac_header_preproc=no 1820fi 1821rm -f conftest.err conftest.i conftest.$ac_ext 1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1823$as_echo "$ac_header_preproc" >&6; } 1824 1825# So? What about this header? 1826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1827 yes:no: ) 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1829$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1832 ;; 1833 no:yes:* ) 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1835$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1837$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1839$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1841$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1843$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1844( $as_echo "## --------------------------------------------- ## 1845## Report this to https://github.com/esnet/iperf ## 1846## --------------------------------------------- ##" 1847 ) | sed "s/^/$as_me: WARNING: /" >&2 1848 ;; 1849esac 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1851$as_echo_n "checking for $2... " >&6; } 1852if eval \${$3+:} false; then : 1853 $as_echo_n "(cached) " >&6 1854else 1855 eval "$3=\$ac_header_compiler" 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860fi 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863} # ac_fn_c_check_header_mongrel 1864cat >config.log <<_ACEOF 1865This file contains any messages produced by compilers while 1866running configure, to aid debugging if configure makes a mistake. 1867 1868It was created by iperf $as_me 3-CURRENT, which was 1869generated by GNU Autoconf 2.69. Invocation command line was 1870 1871 $ $0 $@ 1872 1873_ACEOF 1874exec 5>>config.log 1875{ 1876cat <<_ASUNAME 1877## --------- ## 1878## Platform. ## 1879## --------- ## 1880 1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1882uname -m = `(uname -m) 2>/dev/null || echo unknown` 1883uname -r = `(uname -r) 2>/dev/null || echo unknown` 1884uname -s = `(uname -s) 2>/dev/null || echo unknown` 1885uname -v = `(uname -v) 2>/dev/null || echo unknown` 1886 1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1888/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1889 1890/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1891/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1893/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1894/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1895/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1896/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1897 1898_ASUNAME 1899 1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1901for as_dir in $PATH 1902do 1903 IFS=$as_save_IFS 1904 test -z "$as_dir" && as_dir=. 1905 $as_echo "PATH: $as_dir" 1906 done 1907IFS=$as_save_IFS 1908 1909} >&5 1910 1911cat >&5 <<_ACEOF 1912 1913 1914## ----------- ## 1915## Core tests. ## 1916## ----------- ## 1917 1918_ACEOF 1919 1920 1921# Keep a trace of the command line. 1922# Strip out --no-create and --no-recursion so they do not pile up. 1923# Strip out --silent because we don't want to record it for future runs. 1924# Also quote any args containing shell meta-characters. 1925# Make two passes to allow for proper duplicate-argument suppression. 1926ac_configure_args= 1927ac_configure_args0= 1928ac_configure_args1= 1929ac_must_keep_next=false 1930for ac_pass in 1 2 1931do 1932 for ac_arg 1933 do 1934 case $ac_arg in 1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1937 | -silent | --silent | --silen | --sile | --sil) 1938 continue ;; 1939 *\'*) 1940 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1941 esac 1942 case $ac_pass in 1943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1944 2) 1945 as_fn_append ac_configure_args1 " '$ac_arg'" 1946 if test $ac_must_keep_next = true; then 1947 ac_must_keep_next=false # Got value, back to normal. 1948 else 1949 case $ac_arg in 1950 *=* | --config-cache | -C | -disable-* | --disable-* \ 1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1953 | -with-* | --with-* | -without-* | --without-* | --x) 1954 case "$ac_configure_args0 " in 1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1956 esac 1957 ;; 1958 -* ) ac_must_keep_next=true ;; 1959 esac 1960 fi 1961 as_fn_append ac_configure_args " '$ac_arg'" 1962 ;; 1963 esac 1964 done 1965done 1966{ ac_configure_args0=; unset ac_configure_args0;} 1967{ ac_configure_args1=; unset ac_configure_args1;} 1968 1969# When interrupted or exit'd, cleanup temporary files, and complete 1970# config.log. We remove comments because anyway the quotes in there 1971# would cause problems or look ugly. 1972# WARNING: Use '\'' to represent an apostrophe within the trap. 1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1974trap 'exit_status=$? 1975 # Save into config.log some information that might help in debugging. 1976 { 1977 echo 1978 1979 $as_echo "## ---------------- ## 1980## Cache variables. ## 1981## ---------------- ##" 1982 echo 1983 # The following way of writing the cache mishandles newlines in values, 1984( 1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1986 eval ac_val=\$$ac_var 1987 case $ac_val in #( 1988 *${as_nl}*) 1989 case $ac_var in #( 1990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1991$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1992 esac 1993 case $ac_var in #( 1994 _ | IFS | as_nl) ;; #( 1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1996 *) { eval $ac_var=; unset $ac_var;} ;; 1997 esac ;; 1998 esac 1999 done 2000 (set) 2>&1 | 2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2002 *${as_nl}ac_space=\ *) 2003 sed -n \ 2004 "s/'\''/'\''\\\\'\'''\''/g; 2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2006 ;; #( 2007 *) 2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2009 ;; 2010 esac | 2011 sort 2012) 2013 echo 2014 2015 $as_echo "## ----------------- ## 2016## Output variables. ## 2017## ----------------- ##" 2018 echo 2019 for ac_var in $ac_subst_vars 2020 do 2021 eval ac_val=\$$ac_var 2022 case $ac_val in 2023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2024 esac 2025 $as_echo "$ac_var='\''$ac_val'\''" 2026 done | sort 2027 echo 2028 2029 if test -n "$ac_subst_files"; then 2030 $as_echo "## ------------------- ## 2031## File substitutions. ## 2032## ------------------- ##" 2033 echo 2034 for ac_var in $ac_subst_files 2035 do 2036 eval ac_val=\$$ac_var 2037 case $ac_val in 2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039 esac 2040 $as_echo "$ac_var='\''$ac_val'\''" 2041 done | sort 2042 echo 2043 fi 2044 2045 if test -s confdefs.h; then 2046 $as_echo "## ----------- ## 2047## confdefs.h. ## 2048## ----------- ##" 2049 echo 2050 cat confdefs.h 2051 echo 2052 fi 2053 test "$ac_signal" != 0 && 2054 $as_echo "$as_me: caught signal $ac_signal" 2055 $as_echo "$as_me: exit $exit_status" 2056 } >&5 2057 rm -f core *.core core.conftest.* && 2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2059 exit $exit_status 2060' 0 2061for ac_signal in 1 2 13 15; do 2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2063done 2064ac_signal=0 2065 2066# confdefs.h avoids OS command line length limits that DEFS can exceed. 2067rm -f -r conftest* confdefs.h 2068 2069$as_echo "/* confdefs.h */" > confdefs.h 2070 2071# Predefined preprocessor variables. 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_NAME "$PACKAGE_NAME" 2075_ACEOF 2076 2077cat >>confdefs.h <<_ACEOF 2078#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2079_ACEOF 2080 2081cat >>confdefs.h <<_ACEOF 2082#define PACKAGE_VERSION "$PACKAGE_VERSION" 2083_ACEOF 2084 2085cat >>confdefs.h <<_ACEOF 2086#define PACKAGE_STRING "$PACKAGE_STRING" 2087_ACEOF 2088 2089cat >>confdefs.h <<_ACEOF 2090#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2091_ACEOF 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_URL "$PACKAGE_URL" 2095_ACEOF 2096 2097 2098# Let the site file select an alternate cache file if it wants to. 2099# Prefer an explicitly selected file to automatically selected ones. 2100ac_site_file1=NONE 2101ac_site_file2=NONE 2102if test -n "$CONFIG_SITE"; then 2103 # We do not want a PATH search for config.site. 2104 case $CONFIG_SITE in #(( 2105 -*) ac_site_file1=./$CONFIG_SITE;; 2106 */*) ac_site_file1=$CONFIG_SITE;; 2107 *) ac_site_file1=./$CONFIG_SITE;; 2108 esac 2109elif test "x$prefix" != xNONE; then 2110 ac_site_file1=$prefix/share/config.site 2111 ac_site_file2=$prefix/etc/config.site 2112else 2113 ac_site_file1=$ac_default_prefix/share/config.site 2114 ac_site_file2=$ac_default_prefix/etc/config.site 2115fi 2116for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2117do 2118 test "x$ac_site_file" = xNONE && continue 2119 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2121$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2122 sed 's/^/| /' "$ac_site_file" >&5 2123 . "$ac_site_file" \ 2124 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2126as_fn_error $? "failed to load site script $ac_site_file 2127See \`config.log' for more details" "$LINENO" 5; } 2128 fi 2129done 2130 2131if test -r "$cache_file"; then 2132 # Some versions of bash will fail to source /dev/null (special files 2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2136$as_echo "$as_me: loading cache $cache_file" >&6;} 2137 case $cache_file in 2138 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2139 *) . "./$cache_file";; 2140 esac 2141 fi 2142else 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2144$as_echo "$as_me: creating cache $cache_file" >&6;} 2145 >$cache_file 2146fi 2147 2148# Check that the precious variables saved in the cache have kept the same 2149# value. 2150ac_cache_corrupted=false 2151for ac_var in $ac_precious_vars; do 2152 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2153 eval ac_new_set=\$ac_env_${ac_var}_set 2154 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2155 eval ac_new_val=\$ac_env_${ac_var}_value 2156 case $ac_old_set,$ac_new_set in 2157 set,) 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2159$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2160 ac_cache_corrupted=: ;; 2161 ,set) 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2163$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2164 ac_cache_corrupted=: ;; 2165 ,);; 2166 *) 2167 if test "x$ac_old_val" != "x$ac_new_val"; then 2168 # differences in whitespace do not lead to failure. 2169 ac_old_val_w=`echo x $ac_old_val` 2170 ac_new_val_w=`echo x $ac_new_val` 2171 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2173$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2174 ac_cache_corrupted=: 2175 else 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2177$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2178 eval $ac_var=\$ac_old_val 2179 fi 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2181$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2183$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2184 fi;; 2185 esac 2186 # Pass precious variables to config.status. 2187 if test "$ac_new_set" = set; then 2188 case $ac_new_val in 2189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2190 *) ac_arg=$ac_var=$ac_new_val ;; 2191 esac 2192 case " $ac_configure_args " in 2193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2194 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2195 esac 2196 fi 2197done 2198if $ac_cache_corrupted; then 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2202$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2203 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2204fi 2205## -------------------- ## 2206## Main body of script. ## 2207## -------------------- ## 2208 2209ac_ext=c 2210ac_cpp='$CPP $CPPFLAGS' 2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2213ac_compiler_gnu=$ac_cv_c_compiler_gnu 2214 2215 2216 2217# Specify where the auxiliary files created by configure should go. The config 2218# directory is picked so that they don't clutter up more useful directories. 2219ac_aux_dir= 2220for ac_dir in config "$srcdir"/config; do 2221 if test -f "$ac_dir/install-sh"; then 2222 ac_aux_dir=$ac_dir 2223 ac_install_sh="$ac_aux_dir/install-sh -c" 2224 break 2225 elif test -f "$ac_dir/install.sh"; then 2226 ac_aux_dir=$ac_dir 2227 ac_install_sh="$ac_aux_dir/install.sh -c" 2228 break 2229 elif test -f "$ac_dir/shtool"; then 2230 ac_aux_dir=$ac_dir 2231 ac_install_sh="$ac_aux_dir/shtool install -c" 2232 break 2233 fi 2234done 2235if test -z "$ac_aux_dir"; then 2236 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2237fi 2238 2239# These three variables are undocumented and unsupported, 2240# and are intended to be withdrawn in a future Autoconf release. 2241# They can cause serious problems if a builder's source tree is in a directory 2242# whose full name contains unusual characters. 2243ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2244ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2245ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2246 2247 2248 2249 2250# Initialize the automake system 2251am__api_version='1.14' 2252 2253# Find a good install program. We prefer a C program (faster), 2254# so one script is as good as another. But avoid the broken or 2255# incompatible versions: 2256# SysV /etc/install, /usr/sbin/install 2257# SunOS /usr/etc/install 2258# IRIX /sbin/install 2259# AIX /bin/install 2260# AmigaOS /C/install, which installs bootblocks on floppy discs 2261# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2262# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2263# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2264# OS/2's system install, which has a completely different semantic 2265# ./install, which can be erroneously created by make from ./install.sh. 2266# Reject install programs that cannot install multiple files. 2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2268$as_echo_n "checking for a BSD-compatible install... " >&6; } 2269if test -z "$INSTALL"; then 2270if ${ac_cv_path_install+:} false; then : 2271 $as_echo_n "(cached) " >&6 2272else 2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2274for as_dir in $PATH 2275do 2276 IFS=$as_save_IFS 2277 test -z "$as_dir" && as_dir=. 2278 # Account for people who put trailing slashes in PATH elements. 2279case $as_dir/ in #(( 2280 ./ | .// | /[cC]/* | \ 2281 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2282 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2283 /usr/ucb/* ) ;; 2284 *) 2285 # OSF1 and SCO ODT 3.0 have their own names for install. 2286 # Don't use installbsd from OSF since it installs stuff as root 2287 # by default. 2288 for ac_prog in ginstall scoinst install; do 2289 for ac_exec_ext in '' $ac_executable_extensions; do 2290 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2291 if test $ac_prog = install && 2292 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2293 # AIX install. It has an incompatible calling convention. 2294 : 2295 elif test $ac_prog = install && 2296 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2297 # program-specific install script used by HP pwplus--don't use. 2298 : 2299 else 2300 rm -rf conftest.one conftest.two conftest.dir 2301 echo one > conftest.one 2302 echo two > conftest.two 2303 mkdir conftest.dir 2304 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2305 test -s conftest.one && test -s conftest.two && 2306 test -s conftest.dir/conftest.one && 2307 test -s conftest.dir/conftest.two 2308 then 2309 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2310 break 3 2311 fi 2312 fi 2313 fi 2314 done 2315 done 2316 ;; 2317esac 2318 2319 done 2320IFS=$as_save_IFS 2321 2322rm -rf conftest.one conftest.two conftest.dir 2323 2324fi 2325 if test "${ac_cv_path_install+set}" = set; then 2326 INSTALL=$ac_cv_path_install 2327 else 2328 # As a last resort, use the slow shell script. Don't cache a 2329 # value for INSTALL within a source directory, because that will 2330 # break other packages using the cache if that directory is 2331 # removed, or if the value is a relative name. 2332 INSTALL=$ac_install_sh 2333 fi 2334fi 2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2336$as_echo "$INSTALL" >&6; } 2337 2338# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2339# It thinks the first close brace ends the variable substitution. 2340test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2341 2342test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2343 2344test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2345 2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2347$as_echo_n "checking whether build environment is sane... " >&6; } 2348# Reject unsafe characters in $srcdir or the absolute working directory 2349# name. Accept space and tab only in the latter. 2350am_lf=' 2351' 2352case `pwd` in 2353 *[\\\"\#\$\&\'\`$am_lf]*) 2354 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2355esac 2356case $srcdir in 2357 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2358 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2359esac 2360 2361# Do 'set' in a subshell so we don't clobber the current shell's 2362# arguments. Must try -L first in case configure is actually a 2363# symlink; some systems play weird games with the mod time of symlinks 2364# (eg FreeBSD returns the mod time of the symlink's containing 2365# directory). 2366if ( 2367 am_has_slept=no 2368 for am_try in 1 2; do 2369 echo "timestamp, slept: $am_has_slept" > conftest.file 2370 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2371 if test "$*" = "X"; then 2372 # -L didn't work. 2373 set X `ls -t "$srcdir/configure" conftest.file` 2374 fi 2375 if test "$*" != "X $srcdir/configure conftest.file" \ 2376 && test "$*" != "X conftest.file $srcdir/configure"; then 2377 2378 # If neither matched, then we have a broken ls. This can happen 2379 # if, for instance, CONFIG_SHELL is bash and it inherits a 2380 # broken ls alias from the environment. This has actually 2381 # happened. Such a system could not be considered "sane". 2382 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2383 alias in your environment" "$LINENO" 5 2384 fi 2385 if test "$2" = conftest.file || test $am_try -eq 2; then 2386 break 2387 fi 2388 # Just in case. 2389 sleep 1 2390 am_has_slept=yes 2391 done 2392 test "$2" = conftest.file 2393 ) 2394then 2395 # Ok. 2396 : 2397else 2398 as_fn_error $? "newly created file is older than distributed files! 2399Check your system clock" "$LINENO" 5 2400fi 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2402$as_echo "yes" >&6; } 2403# If we didn't sleep, we still need to ensure time stamps of config.status and 2404# generated files are strictly newer. 2405am_sleep_pid= 2406if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2407 ( sleep 1 ) & 2408 am_sleep_pid=$! 2409fi 2410 2411rm -f conftest.file 2412 2413test "$program_prefix" != NONE && 2414 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2415# Use a double $ so make ignores it. 2416test "$program_suffix" != NONE && 2417 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2418# Double any \ or $. 2419# By default was `s,x,x', remove it if useless. 2420ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2421program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2422 2423# expand $ac_aux_dir to an absolute path 2424am_aux_dir=`cd $ac_aux_dir && pwd` 2425 2426if test x"${MISSING+set}" != xset; then 2427 case $am_aux_dir in 2428 *\ * | *\ *) 2429 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2430 *) 2431 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2432 esac 2433fi 2434# Use eval to expand $SHELL 2435if eval "$MISSING --is-lightweight"; then 2436 am_missing_run="$MISSING " 2437else 2438 am_missing_run= 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2440$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2441fi 2442 2443if test x"${install_sh}" != xset; then 2444 case $am_aux_dir in 2445 *\ * | *\ *) 2446 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2447 *) 2448 install_sh="\${SHELL} $am_aux_dir/install-sh" 2449 esac 2450fi 2451 2452# Installed binaries are usually stripped using 'strip' when the user 2453# run "make install-strip". However 'strip' might not be the right 2454# tool to use in cross-compilation environments, therefore Automake 2455# will honor the 'STRIP' environment variable to overrule this program. 2456if test "$cross_compiling" != no; then 2457 if test -n "$ac_tool_prefix"; then 2458 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2459set dummy ${ac_tool_prefix}strip; ac_word=$2 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2461$as_echo_n "checking for $ac_word... " >&6; } 2462if ${ac_cv_prog_STRIP+:} false; then : 2463 $as_echo_n "(cached) " >&6 2464else 2465 if test -n "$STRIP"; then 2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2475 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480 done 2481IFS=$as_save_IFS 2482 2483fi 2484fi 2485STRIP=$ac_cv_prog_STRIP 2486if test -n "$STRIP"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2488$as_echo "$STRIP" >&6; } 2489else 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 2495fi 2496if test -z "$ac_cv_prog_STRIP"; then 2497 ac_ct_STRIP=$STRIP 2498 # Extract the first word of "strip", so it can be a program name with args. 2499set dummy strip; ac_word=$2 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2501$as_echo_n "checking for $ac_word... " >&6; } 2502if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 if test -n "$ac_ct_STRIP"; then 2506 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2507else 2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2515 ac_cv_prog_ac_ct_STRIP="strip" 2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2517 break 2 2518 fi 2519done 2520 done 2521IFS=$as_save_IFS 2522 2523fi 2524fi 2525ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2526if test -n "$ac_ct_STRIP"; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2528$as_echo "$ac_ct_STRIP" >&6; } 2529else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2531$as_echo "no" >&6; } 2532fi 2533 2534 if test "x$ac_ct_STRIP" = x; then 2535 STRIP=":" 2536 else 2537 case $cross_compiling:$ac_tool_warned in 2538yes:) 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2541ac_tool_warned=yes ;; 2542esac 2543 STRIP=$ac_ct_STRIP 2544 fi 2545else 2546 STRIP="$ac_cv_prog_STRIP" 2547fi 2548 2549fi 2550INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2551 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2553$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2554if test -z "$MKDIR_P"; then 2555 if ${ac_cv_path_mkdir+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2559for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2560do 2561 IFS=$as_save_IFS 2562 test -z "$as_dir" && as_dir=. 2563 for ac_prog in mkdir gmkdir; do 2564 for ac_exec_ext in '' $ac_executable_extensions; do 2565 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2566 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2567 'mkdir (GNU coreutils) '* | \ 2568 'mkdir (coreutils) '* | \ 2569 'mkdir (fileutils) '4.1*) 2570 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2571 break 3;; 2572 esac 2573 done 2574 done 2575 done 2576IFS=$as_save_IFS 2577 2578fi 2579 2580 test -d ./--version && rmdir ./--version 2581 if test "${ac_cv_path_mkdir+set}" = set; then 2582 MKDIR_P="$ac_cv_path_mkdir -p" 2583 else 2584 # As a last resort, use the slow shell script. Don't cache a 2585 # value for MKDIR_P within a source directory, because that will 2586 # break other packages using the cache if that directory is 2587 # removed, or if the value is a relative name. 2588 MKDIR_P="$ac_install_sh -d" 2589 fi 2590fi 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2592$as_echo "$MKDIR_P" >&6; } 2593 2594for ac_prog in gawk mawk nawk awk 2595do 2596 # Extract the first word of "$ac_prog", so it can be a program name with args. 2597set dummy $ac_prog; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if ${ac_cv_prog_AWK+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$AWK"; then 2604 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2613 ac_cv_prog_AWK="$ac_prog" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623AWK=$ac_cv_prog_AWK 2624if test -n "$AWK"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2626$as_echo "$AWK" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 2633 test -n "$AWK" && break 2634done 2635 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2637$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2638set x ${MAKE-make} 2639ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2640if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 cat >conftest.make <<\_ACEOF 2644SHELL = /bin/sh 2645all: 2646 @echo '@@@%%%=$(MAKE)=@@@%%%' 2647_ACEOF 2648# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2649case `${MAKE-make} -f conftest.make 2>/dev/null` in 2650 *@@@%%%=?*=@@@%%%*) 2651 eval ac_cv_prog_make_${ac_make}_set=yes;; 2652 *) 2653 eval ac_cv_prog_make_${ac_make}_set=no;; 2654esac 2655rm -f conftest.make 2656fi 2657if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2659$as_echo "yes" >&6; } 2660 SET_MAKE= 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664 SET_MAKE="MAKE=${MAKE-make}" 2665fi 2666 2667rm -rf .tst 2>/dev/null 2668mkdir .tst 2>/dev/null 2669if test -d .tst; then 2670 am__leading_dot=. 2671else 2672 am__leading_dot=_ 2673fi 2674rmdir .tst 2>/dev/null 2675 2676# Check whether --enable-silent-rules was given. 2677if test "${enable_silent_rules+set}" = set; then : 2678 enableval=$enable_silent_rules; 2679fi 2680 2681case $enable_silent_rules in # ((( 2682 yes) AM_DEFAULT_VERBOSITY=0;; 2683 no) AM_DEFAULT_VERBOSITY=1;; 2684 *) AM_DEFAULT_VERBOSITY=1;; 2685esac 2686am_make=${MAKE-make} 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2688$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2689if ${am_cv_make_support_nested_variables+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 if $as_echo 'TRUE=$(BAR$(V)) 2693BAR0=false 2694BAR1=true 2695V=1 2696am__doit: 2697 @$(TRUE) 2698.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2699 am_cv_make_support_nested_variables=yes 2700else 2701 am_cv_make_support_nested_variables=no 2702fi 2703fi 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2705$as_echo "$am_cv_make_support_nested_variables" >&6; } 2706if test $am_cv_make_support_nested_variables = yes; then 2707 AM_V='$(V)' 2708 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2709else 2710 AM_V=$AM_DEFAULT_VERBOSITY 2711 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2712fi 2713AM_BACKSLASH='\' 2714 2715if test "`cd $srcdir && pwd`" != "`pwd`"; then 2716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2717 # is not polluted with repeated "-I." 2718 am__isrc=' -I$(srcdir)' 2719 # test to see if srcdir already configured 2720 if test -f $srcdir/config.status; then 2721 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2722 fi 2723fi 2724 2725# test whether we have cygpath 2726if test -z "$CYGPATH_W"; then 2727 if (cygpath --version) >/dev/null 2>/dev/null; then 2728 CYGPATH_W='cygpath -w' 2729 else 2730 CYGPATH_W=echo 2731 fi 2732fi 2733 2734 2735# Define the identity of the package. 2736 PACKAGE='iperf' 2737 VERSION='3-CURRENT' 2738 2739 2740cat >>confdefs.h <<_ACEOF 2741#define PACKAGE "$PACKAGE" 2742_ACEOF 2743 2744 2745cat >>confdefs.h <<_ACEOF 2746#define VERSION "$VERSION" 2747_ACEOF 2748 2749# Some tools Automake needs. 2750 2751ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2752 2753 2754AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2755 2756 2757AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2758 2759 2760AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2761 2762 2763MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2764 2765# For better backward compatibility. To be removed once Automake 1.9.x 2766# dies out for good. For more background, see: 2767# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2768# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2769mkdir_p='$(MKDIR_P)' 2770 2771# We need awk for the "check" target. The system "awk" is bad on 2772# some platforms. 2773# Always define AMTAR for backward compatibility. Yes, it's still used 2774# in the wild :-( We should find a proper way to deprecate it ... 2775AMTAR='$${TAR-tar}' 2776 2777 2778# We'll loop over all known methods to create a tar archive until one works. 2779_am_tools='gnutar pax cpio none' 2780 2781am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2782 2783 2784 2785 2786 2787 2788# POSIX will say in a future version that running "rm -f" with no argument 2789# is OK; and we want to be able to make that assumption in our Makefile 2790# recipes. So use an aggressive probe to check that the usage we want is 2791# actually supported "in the wild" to an acceptable degree. 2792# See automake bug#10828. 2793# To make any issue more visible, cause the running configure to be aborted 2794# by default if the 'rm' program in use doesn't match our expectations; the 2795# user can still override this though. 2796if rm -f && rm -fr && rm -rf; then : OK; else 2797 cat >&2 <<'END' 2798Oops! 2799 2800Your 'rm' program seems unable to run without file operands specified 2801on the command line, even when the '-f' option is present. This is contrary 2802to the behaviour of most rm programs out there, and not conforming with 2803the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2804 2805Please tell bug-automake@gnu.org about your system, including the value 2806of your $PATH and any error possibly output before this message. This 2807can help us improve future automake versions. 2808 2809END 2810 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2811 echo 'Configuration will proceed anyway, since you have set the' >&2 2812 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2813 echo >&2 2814 else 2815 cat >&2 <<'END' 2816Aborting the configuration process, to ensure you take notice of the issue. 2817 2818You can download and install GNU coreutils to get an 'rm' implementation 2819that behaves properly: <http://www.gnu.org/software/coreutils/>. 2820 2821If you want to complete the configuration process using your problematic 2822'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2823to "yes", and re-run configure. 2824 2825END 2826 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2827 fi 2828fi 2829 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2831$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2832 # Check whether --enable-maintainer-mode was given. 2833if test "${enable_maintainer_mode+set}" = set; then : 2834 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2835else 2836 USE_MAINTAINER_MODE=no 2837fi 2838 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2840$as_echo "$USE_MAINTAINER_MODE" >&6; } 2841 if test $USE_MAINTAINER_MODE = yes; then 2842 MAINTAINER_MODE_TRUE= 2843 MAINTAINER_MODE_FALSE='#' 2844else 2845 MAINTAINER_MODE_TRUE='#' 2846 MAINTAINER_MODE_FALSE= 2847fi 2848 2849 MAINT=$MAINTAINER_MODE_TRUE 2850 2851 2852ac_config_headers="$ac_config_headers src/iperf_config.h" 2853 2854 2855# Make sure we can run config.sub. 2856$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2857 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2858 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2860$as_echo_n "checking build system type... " >&6; } 2861if ${ac_cv_build+:} false; then : 2862 $as_echo_n "(cached) " >&6 2863else 2864 ac_build_alias=$build_alias 2865test "x$ac_build_alias" = x && 2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2867test "x$ac_build_alias" = x && 2868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2869ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2871 2872fi 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2874$as_echo "$ac_cv_build" >&6; } 2875case $ac_cv_build in 2876*-*-*) ;; 2877*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2878esac 2879build=$ac_cv_build 2880ac_save_IFS=$IFS; IFS='-' 2881set x $ac_cv_build 2882shift 2883build_cpu=$1 2884build_vendor=$2 2885shift; shift 2886# Remember, the first character of IFS is used to create $*, 2887# except with old shells: 2888build_os=$* 2889IFS=$ac_save_IFS 2890case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2891 2892 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2894$as_echo_n "checking host system type... " >&6; } 2895if ${ac_cv_host+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test "x$host_alias" = x; then 2899 ac_cv_host=$ac_cv_build 2900else 2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2903fi 2904 2905fi 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2907$as_echo "$ac_cv_host" >&6; } 2908case $ac_cv_host in 2909*-*-*) ;; 2910*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2911esac 2912host=$ac_cv_host 2913ac_save_IFS=$IFS; IFS='-' 2914set x $ac_cv_host 2915shift 2916host_cpu=$1 2917host_vendor=$2 2918shift; shift 2919# Remember, the first character of IFS is used to create $*, 2920# except with old shells: 2921host_os=$* 2922IFS=$ac_save_IFS 2923case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2924 2925 2926 2927# Checks for tools: c compiler, ranlib (used for creating static libraries), 2928# symlinks and libtool 2929ac_ext=c 2930ac_cpp='$CPP $CPPFLAGS' 2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2933ac_compiler_gnu=$ac_cv_c_compiler_gnu 2934if test -n "$ac_tool_prefix"; then 2935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2936set dummy ${ac_tool_prefix}gcc; ac_word=$2 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if ${ac_cv_prog_CC+:} false; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2952 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957 done 2958IFS=$as_save_IFS 2959 2960fi 2961fi 2962CC=$ac_cv_prog_CC 2963if test -n "$CC"; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2965$as_echo "$CC" >&6; } 2966else 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2968$as_echo "no" >&6; } 2969fi 2970 2971 2972fi 2973if test -z "$ac_cv_prog_CC"; then 2974 ac_ct_CC=$CC 2975 # Extract the first word of "gcc", so it can be a program name with args. 2976set dummy gcc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_ac_ct_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$ac_ct_CC"; then 2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_ac_ct_CC="gcc" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002ac_ct_CC=$ac_cv_prog_ac_ct_CC 3003if test -n "$ac_ct_CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3005$as_echo "$ac_ct_CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 if test "x$ac_ct_CC" = x; then 3012 CC="" 3013 else 3014 case $cross_compiling:$ac_tool_warned in 3015yes:) 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3018ac_tool_warned=yes ;; 3019esac 3020 CC=$ac_ct_CC 3021 fi 3022else 3023 CC="$ac_cv_prog_CC" 3024fi 3025 3026if test -z "$CC"; then 3027 if test -n "$ac_tool_prefix"; then 3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3029set dummy ${ac_tool_prefix}cc; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if ${ac_cv_prog_CC+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$CC"; then 3036 ac_cv_prog_CC="$CC" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_CC="${ac_tool_prefix}cc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055CC=$ac_cv_prog_CC 3056if test -n "$CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3058$as_echo "$CC" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 3065 fi 3066fi 3067if test -z "$CC"; then 3068 # Extract the first word of "cc", so it can be a program name with args. 3069set dummy cc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078 ac_prog_rejected=no 3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080for as_dir in $PATH 3081do 3082 IFS=$as_save_IFS 3083 test -z "$as_dir" && as_dir=. 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3087 ac_prog_rejected=yes 3088 continue 3089 fi 3090 ac_cv_prog_CC="cc" 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094done 3095 done 3096IFS=$as_save_IFS 3097 3098if test $ac_prog_rejected = yes; then 3099 # We found a bogon in the path, so make sure we never use it. 3100 set dummy $ac_cv_prog_CC 3101 shift 3102 if test $# != 0; then 3103 # We chose a different compiler from the bogus one. 3104 # However, it has the same basename, so the bogon will be chosen 3105 # first if we set CC to just the basename; use the full file name. 3106 shift 3107 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3108 fi 3109fi 3110fi 3111fi 3112CC=$ac_cv_prog_CC 3113if test -n "$CC"; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3115$as_echo "$CC" >&6; } 3116else 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3118$as_echo "no" >&6; } 3119fi 3120 3121 3122fi 3123if test -z "$CC"; then 3124 if test -n "$ac_tool_prefix"; then 3125 for ac_prog in cl.exe 3126 do 3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if ${ac_cv_prog_CC+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164 test -n "$CC" && break 3165 done 3166fi 3167if test -z "$CC"; then 3168 ac_ct_CC=$CC 3169 for ac_prog in cl.exe 3170do 3171 # Extract the first word of "$ac_prog", so it can be a program name with args. 3172set dummy $ac_prog; ac_word=$2 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174$as_echo_n "checking for $ac_word... " >&6; } 3175if ${ac_cv_prog_ac_ct_CC+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 if test -n "$ac_ct_CC"; then 3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3180else 3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182for as_dir in $PATH 3183do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_ac_ct_CC="$ac_prog" 3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192done 3193 done 3194IFS=$as_save_IFS 3195 3196fi 3197fi 3198ac_ct_CC=$ac_cv_prog_ac_ct_CC 3199if test -n "$ac_ct_CC"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3201$as_echo "$ac_ct_CC" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208 test -n "$ac_ct_CC" && break 3209done 3210 3211 if test "x$ac_ct_CC" = x; then 3212 CC="" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 CC=$ac_ct_CC 3221 fi 3222fi 3223 3224fi 3225 3226 3227test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3229as_fn_error $? "no acceptable C compiler found in \$PATH 3230See \`config.log' for more details" "$LINENO" 5; } 3231 3232# Provide some information about the compiler. 3233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3234set X $ac_compile 3235ac_compiler=$2 3236for ac_option in --version -v -V -qversion; do 3237 { { ac_try="$ac_compiler $ac_option >&5" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243$as_echo "$ac_try_echo"; } >&5 3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3245 ac_status=$? 3246 if test -s conftest.err; then 3247 sed '10a\ 3248... rest of stderr output deleted ... 3249 10q' conftest.err >conftest.er1 3250 cat conftest.er1 >&5 3251 fi 3252 rm -f conftest.er1 conftest.err 3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255done 3256 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258/* end confdefs.h. */ 3259 3260int 3261main () 3262{ 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268ac_clean_files_save=$ac_clean_files 3269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3270# Try to create an executable without -o first, disregard a.out. 3271# It will help us diagnose broken compilers, and finding out an intuition 3272# of exeext. 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3274$as_echo_n "checking whether the C compiler works... " >&6; } 3275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3276 3277# The possible output files: 3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3279 3280ac_rmfiles= 3281for ac_file in $ac_files 3282do 3283 case $ac_file in 3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3285 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3286 esac 3287done 3288rm -f $ac_rmfiles 3289 3290if { { ac_try="$ac_link_default" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296$as_echo "$ac_try_echo"; } >&5 3297 (eval "$ac_link_default") 2>&5 3298 ac_status=$? 3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3300 test $ac_status = 0; }; then : 3301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3303# in a Makefile. We should not override ac_cv_exeext if it was cached, 3304# so that the user can short-circuit this test for compilers unknown to 3305# Autoconf. 3306for ac_file in $ac_files '' 3307do 3308 test -f "$ac_file" || continue 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3311 ;; 3312 [ab].out ) 3313 # We found the default executable, but exeext='' is most 3314 # certainly right. 3315 break;; 3316 *.* ) 3317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3318 then :; else 3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3320 fi 3321 # We set ac_cv_exeext here because the later test for it is not 3322 # safe: cross compilers may not add the suffix if given an `-o' 3323 # argument, so we may need to know it at that point already. 3324 # Even if this section looks crufty: it has the advantage of 3325 # actually working. 3326 break;; 3327 * ) 3328 break;; 3329 esac 3330done 3331test "$ac_cv_exeext" = no && ac_cv_exeext= 3332 3333else 3334 ac_file='' 3335fi 3336if test -z "$ac_file"; then : 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339$as_echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3344as_fn_error 77 "C compiler cannot create executables 3345See \`config.log' for more details" "$LINENO" 5; } 3346else 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3348$as_echo "yes" >&6; } 3349fi 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3351$as_echo_n "checking for C compiler default output file name... " >&6; } 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3353$as_echo "$ac_file" >&6; } 3354ac_exeext=$ac_cv_exeext 3355 3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3357ac_clean_files=$ac_clean_files_save 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3359$as_echo_n "checking for suffix of executables... " >&6; } 3360if { { ac_try="$ac_link" 3361case "(($ac_try" in 3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363 *) ac_try_echo=$ac_try;; 3364esac 3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3366$as_echo "$ac_try_echo"; } >&5 3367 (eval "$ac_link") 2>&5 3368 ac_status=$? 3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3370 test $ac_status = 0; }; then : 3371 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3372# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3373# work properly (i.e., refer to `conftest.exe'), while it won't with 3374# `rm'. 3375for ac_file in conftest.exe conftest conftest.*; do 3376 test -f "$ac_file" || continue 3377 case $ac_file in 3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3380 break;; 3381 * ) break;; 3382 esac 3383done 3384else 3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3388See \`config.log' for more details" "$LINENO" 5; } 3389fi 3390rm -f conftest conftest$ac_cv_exeext 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3392$as_echo "$ac_cv_exeext" >&6; } 3393 3394rm -f conftest.$ac_ext 3395EXEEXT=$ac_cv_exeext 3396ac_exeext=$EXEEXT 3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399#include <stdio.h> 3400int 3401main () 3402{ 3403FILE *f = fopen ("conftest.out", "w"); 3404 return ferror (f) || fclose (f) != 0; 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410ac_clean_files="$ac_clean_files conftest.out" 3411# Check that the compiler produces executables we can run. If not, either 3412# the compiler is broken, or we cross compile. 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3414$as_echo_n "checking whether we are cross compiling... " >&6; } 3415if test "$cross_compiling" != yes; then 3416 { { ac_try="$ac_link" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_link") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; } 3427 if { ac_try='./conftest$ac_cv_exeext' 3428 { { case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431esac 3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3433$as_echo "$ac_try_echo"; } >&5 3434 (eval "$ac_try") 2>&5 3435 ac_status=$? 3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3437 test $ac_status = 0; }; }; then 3438 cross_compiling=no 3439 else 3440 if test "$cross_compiling" = maybe; then 3441 cross_compiling=yes 3442 else 3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3445as_fn_error $? "cannot run C compiled programs. 3446If you meant to cross compile, use \`--host'. 3447See \`config.log' for more details" "$LINENO" 5; } 3448 fi 3449 fi 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3452$as_echo "$cross_compiling" >&6; } 3453 3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3455ac_clean_files=$ac_clean_files_save 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3457$as_echo_n "checking for suffix of object files... " >&6; } 3458if ${ac_cv_objext+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463 3464int 3465main () 3466{ 3467 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472rm -f conftest.o conftest.obj 3473if { { ac_try="$ac_compile" 3474case "(($ac_try" in 3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3476 *) ac_try_echo=$ac_try;; 3477esac 3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3479$as_echo "$ac_try_echo"; } >&5 3480 (eval "$ac_compile") 2>&5 3481 ac_status=$? 3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3483 test $ac_status = 0; }; then : 3484 for ac_file in conftest.o conftest.obj conftest.*; do 3485 test -f "$ac_file" || continue; 3486 case $ac_file in 3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3489 break;; 3490 esac 3491done 3492else 3493 $as_echo "$as_me: failed program was:" >&5 3494sed 's/^/| /' conftest.$ac_ext >&5 3495 3496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error $? "cannot compute suffix of object files: cannot compile 3499See \`config.log' for more details" "$LINENO" 5; } 3500fi 3501rm -f conftest.$ac_cv_objext conftest.$ac_ext 3502fi 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3504$as_echo "$ac_cv_objext" >&6; } 3505OBJEXT=$ac_cv_objext 3506ac_objext=$OBJEXT 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3509if ${ac_cv_c_compiler_gnu+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514 3515int 3516main () 3517{ 3518#ifndef __GNUC__ 3519 choke me 3520#endif 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526if ac_fn_c_try_compile "$LINENO"; then : 3527 ac_compiler_gnu=yes 3528else 3529 ac_compiler_gnu=no 3530fi 3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3532ac_cv_c_compiler_gnu=$ac_compiler_gnu 3533 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3536$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3537if test $ac_compiler_gnu = yes; then 3538 GCC=yes 3539else 3540 GCC= 3541fi 3542ac_test_CFLAGS=${CFLAGS+set} 3543ac_save_CFLAGS=$CFLAGS 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3545$as_echo_n "checking whether $CC accepts -g... " >&6; } 3546if ${ac_cv_prog_cc_g+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 ac_save_c_werror_flag=$ac_c_werror_flag 3550 ac_c_werror_flag=yes 3551 ac_cv_prog_cc_g=no 3552 CFLAGS="-g" 3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554/* end confdefs.h. */ 3555 3556int 3557main () 3558{ 3559 3560 ; 3561 return 0; 3562} 3563_ACEOF 3564if ac_fn_c_try_compile "$LINENO"; then : 3565 ac_cv_prog_cc_g=yes 3566else 3567 CFLAGS="" 3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570 3571int 3572main () 3573{ 3574 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579if ac_fn_c_try_compile "$LINENO"; then : 3580 3581else 3582 ac_c_werror_flag=$ac_save_c_werror_flag 3583 CFLAGS="-g" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_cv_prog_cc_g=yes 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3599fi 3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3601fi 3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3603 ac_c_werror_flag=$ac_save_c_werror_flag 3604fi 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3606$as_echo "$ac_cv_prog_cc_g" >&6; } 3607if test "$ac_test_CFLAGS" = set; then 3608 CFLAGS=$ac_save_CFLAGS 3609elif test $ac_cv_prog_cc_g = yes; then 3610 if test "$GCC" = yes; then 3611 CFLAGS="-g -O2" 3612 else 3613 CFLAGS="-g" 3614 fi 3615else 3616 if test "$GCC" = yes; then 3617 CFLAGS="-O2" 3618 else 3619 CFLAGS= 3620 fi 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3624if ${ac_cv_prog_cc_c89+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 ac_cv_prog_cc_c89=no 3628ac_save_CC=$CC 3629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631#include <stdarg.h> 3632#include <stdio.h> 3633struct stat; 3634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3635struct buf { int x; }; 3636FILE * (*rcsopen) (struct buf *, struct stat *, int); 3637static char *e (p, i) 3638 char **p; 3639 int i; 3640{ 3641 return p[i]; 3642} 3643static char *f (char * (*g) (char **, int), char **p, ...) 3644{ 3645 char *s; 3646 va_list v; 3647 va_start (v,p); 3648 s = g (p, va_arg (v,int)); 3649 va_end (v); 3650 return s; 3651} 3652 3653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3654 function prototypes and stuff, but not '\xHH' hex character constants. 3655 These don't provoke an error unfortunately, instead are silently treated 3656 as 'x'. The following induces an error, until -std is added to get 3657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3658 array size at least. It's necessary to write '\x00'==0 to get something 3659 that's true only with -std. */ 3660int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3661 3662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3663 inside strings and character constants. */ 3664#define FOO(x) 'x' 3665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3666 3667int test (int i, double x); 3668struct s1 {int (*f) (int a);}; 3669struct s2 {int (*f) (double a);}; 3670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3671int argc; 3672char **argv; 3673int 3674main () 3675{ 3676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3683do 3684 CC="$ac_save_CC $ac_arg" 3685 if ac_fn_c_try_compile "$LINENO"; then : 3686 ac_cv_prog_cc_c89=$ac_arg 3687fi 3688rm -f core conftest.err conftest.$ac_objext 3689 test "x$ac_cv_prog_cc_c89" != "xno" && break 3690done 3691rm -f conftest.$ac_ext 3692CC=$ac_save_CC 3693 3694fi 3695# AC_CACHE_VAL 3696case "x$ac_cv_prog_cc_c89" in 3697 x) 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3699$as_echo "none needed" >&6; } ;; 3700 xno) 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3702$as_echo "unsupported" >&6; } ;; 3703 *) 3704 CC="$CC $ac_cv_prog_cc_c89" 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3707esac 3708if test "x$ac_cv_prog_cc_c89" != xno; then : 3709 3710fi 3711 3712ac_ext=c 3713ac_cpp='$CPP $CPPFLAGS' 3714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3716ac_compiler_gnu=$ac_cv_c_compiler_gnu 3717 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3724$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3725if ${am_cv_prog_cc_c_o+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730 3731int 3732main () 3733{ 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739 # Make sure it works both with $CC and with simple cc. 3740 # Following AC_PROG_CC_C_O, we do the test twice because some 3741 # compilers refuse to overwrite an existing .o file with -o, 3742 # though they will create one. 3743 am_cv_prog_cc_c_o=yes 3744 for am_i in 1 2; do 3745 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3746 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3747 ac_status=$? 3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3749 (exit $ac_status); } \ 3750 && test -f conftest2.$ac_objext; then 3751 : OK 3752 else 3753 am_cv_prog_cc_c_o=no 3754 break 3755 fi 3756 done 3757 rm -f core conftest* 3758 unset am_i 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3761$as_echo "$am_cv_prog_cc_c_o" >&6; } 3762if test "$am_cv_prog_cc_c_o" != yes; then 3763 # Losing compiler, so override with the script. 3764 # FIXME: It is wrong to rewrite CC. 3765 # But if we don't then we get into trouble of one sort or another. 3766 # A longer-term fix would be to have automake use am__CC in this case, 3767 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3768 CC="$am_aux_dir/compile $CC" 3769fi 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776DEPDIR="${am__leading_dot}deps" 3777 3778ac_config_commands="$ac_config_commands depfiles" 3779 3780 3781am_make=${MAKE-make} 3782cat > confinc << 'END' 3783am__doit: 3784 @echo this is the am__doit target 3785.PHONY: am__doit 3786END 3787# If we don't find an include directive, just comment out the code. 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3789$as_echo_n "checking for style of include used by $am_make... " >&6; } 3790am__include="#" 3791am__quote= 3792_am_result=none 3793# First try GNU make style include. 3794echo "include confinc" > confmf 3795# Ignore all kinds of additional output from 'make'. 3796case `$am_make -s -f confmf 2> /dev/null` in #( 3797*the\ am__doit\ target*) 3798 am__include=include 3799 am__quote= 3800 _am_result=GNU 3801 ;; 3802esac 3803# Now try BSD make style include. 3804if test "$am__include" = "#"; then 3805 echo '.include "confinc"' > confmf 3806 case `$am_make -s -f confmf 2> /dev/null` in #( 3807 *the\ am__doit\ target*) 3808 am__include=.include 3809 am__quote="\"" 3810 _am_result=BSD 3811 ;; 3812 esac 3813fi 3814 3815 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3817$as_echo "$_am_result" >&6; } 3818rm -f confinc confmf 3819 3820# Check whether --enable-dependency-tracking was given. 3821if test "${enable_dependency_tracking+set}" = set; then : 3822 enableval=$enable_dependency_tracking; 3823fi 3824 3825if test "x$enable_dependency_tracking" != xno; then 3826 am_depcomp="$ac_aux_dir/depcomp" 3827 AMDEPBACKSLASH='\' 3828 am__nodep='_no' 3829fi 3830 if test "x$enable_dependency_tracking" != xno; then 3831 AMDEP_TRUE= 3832 AMDEP_FALSE='#' 3833else 3834 AMDEP_TRUE='#' 3835 AMDEP_FALSE= 3836fi 3837 3838 3839 3840depcc="$CC" am_compiler_list= 3841 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3843$as_echo_n "checking dependency style of $depcc... " >&6; } 3844if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3848 # We make a subdir and do the tests there. Otherwise we can end up 3849 # making bogus files that we don't know about and never remove. For 3850 # instance it was reported that on HP-UX the gcc test will end up 3851 # making a dummy file named 'D' -- because '-MD' means "put the output 3852 # in D". 3853 rm -rf conftest.dir 3854 mkdir conftest.dir 3855 # Copy depcomp to subdir because otherwise we won't find it if we're 3856 # using a relative directory. 3857 cp "$am_depcomp" conftest.dir 3858 cd conftest.dir 3859 # We will build objects and dependencies in a subdirectory because 3860 # it helps to detect inapplicable dependency modes. For instance 3861 # both Tru64's cc and ICC support -MD to output dependencies as a 3862 # side effect of compilation, but ICC will put the dependencies in 3863 # the current directory while Tru64 will put them in the object 3864 # directory. 3865 mkdir sub 3866 3867 am_cv_CC_dependencies_compiler_type=none 3868 if test "$am_compiler_list" = ""; then 3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3870 fi 3871 am__universal=false 3872 case " $depcc " in #( 3873 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3874 esac 3875 3876 for depmode in $am_compiler_list; do 3877 # Setup a source with many dependencies, because some compilers 3878 # like to wrap large dependency lists on column 80 (with \), and 3879 # we should not choose a depcomp mode which is confused by this. 3880 # 3881 # We need to recreate these files for each test, as the compiler may 3882 # overwrite some of them when testing with obscure command lines. 3883 # This happens at least with the AIX C compiler. 3884 : > sub/conftest.c 3885 for i in 1 2 3 4 5 6; do 3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3887 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3888 # Solaris 10 /bin/sh. 3889 echo '/* dummy */' > sub/conftst$i.h 3890 done 3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3892 3893 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3894 # mode. It turns out that the SunPro C++ compiler does not properly 3895 # handle '-M -o', and we need to detect this. Also, some Intel 3896 # versions had trouble with output in subdirs. 3897 am__obj=sub/conftest.${OBJEXT-o} 3898 am__minus_obj="-o $am__obj" 3899 case $depmode in 3900 gcc) 3901 # This depmode causes a compiler race in universal mode. 3902 test "$am__universal" = false || continue 3903 ;; 3904 nosideeffect) 3905 # After this tag, mechanisms are not by side-effect, so they'll 3906 # only be used when explicitly requested. 3907 if test "x$enable_dependency_tracking" = xyes; then 3908 continue 3909 else 3910 break 3911 fi 3912 ;; 3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3914 # This compiler won't grok '-c -o', but also, the minuso test has 3915 # not run yet. These depmodes are late enough in the game, and 3916 # so weak that their functioning should not be impacted. 3917 am__obj=conftest.${OBJEXT-o} 3918 am__minus_obj= 3919 ;; 3920 none) break ;; 3921 esac 3922 if depmode=$depmode \ 3923 source=sub/conftest.c object=$am__obj \ 3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3926 >/dev/null 2>conftest.err && 3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3931 # icc doesn't choke on unknown options, it will just issue warnings 3932 # or remarks (even with -Werror). So we grep stderr for any message 3933 # that says an option was ignored or not supported. 3934 # When given -MP, icc 7.0 and 7.1 complain thusly: 3935 # icc: Command line warning: ignoring option '-M'; no argument required 3936 # The diagnosis changed in icc 8.0: 3937 # icc: Command line remark: option '-MP' not supported 3938 if (grep 'ignoring option' conftest.err || 3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3940 am_cv_CC_dependencies_compiler_type=$depmode 3941 break 3942 fi 3943 fi 3944 done 3945 3946 cd .. 3947 rm -rf conftest.dir 3948else 3949 am_cv_CC_dependencies_compiler_type=none 3950fi 3951 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3954$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3955CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3956 3957 if 3958 test "x$enable_dependency_tracking" != xno \ 3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3960 am__fastdepCC_TRUE= 3961 am__fastdepCC_FALSE='#' 3962else 3963 am__fastdepCC_TRUE='#' 3964 am__fastdepCC_FALSE= 3965fi 3966 3967 3968if test -n "$ac_tool_prefix"; then 3969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3970set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3972$as_echo_n "checking for $ac_word... " >&6; } 3973if ${ac_cv_prog_RANLIB+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 if test -n "$RANLIB"; then 3977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3978else 3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3980for as_dir in $PATH 3981do 3982 IFS=$as_save_IFS 3983 test -z "$as_dir" && as_dir=. 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3988 break 2 3989 fi 3990done 3991 done 3992IFS=$as_save_IFS 3993 3994fi 3995fi 3996RANLIB=$ac_cv_prog_RANLIB 3997if test -n "$RANLIB"; then 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3999$as_echo "$RANLIB" >&6; } 4000else 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002$as_echo "no" >&6; } 4003fi 4004 4005 4006fi 4007if test -z "$ac_cv_prog_RANLIB"; then 4008 ac_ct_RANLIB=$RANLIB 4009 # Extract the first word of "ranlib", so it can be a program name with args. 4010set dummy ranlib; ac_word=$2 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4012$as_echo_n "checking for $ac_word... " >&6; } 4013if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4014 $as_echo_n "(cached) " >&6 4015else 4016 if test -n "$ac_ct_RANLIB"; then 4017 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4018else 4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020for as_dir in $PATH 4021do 4022 IFS=$as_save_IFS 4023 test -z "$as_dir" && as_dir=. 4024 for ac_exec_ext in '' $ac_executable_extensions; do 4025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4026 ac_cv_prog_ac_ct_RANLIB="ranlib" 4027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4028 break 2 4029 fi 4030done 4031 done 4032IFS=$as_save_IFS 4033 4034fi 4035fi 4036ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4037if test -n "$ac_ct_RANLIB"; then 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4039$as_echo "$ac_ct_RANLIB" >&6; } 4040else 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4042$as_echo "no" >&6; } 4043fi 4044 4045 if test "x$ac_ct_RANLIB" = x; then 4046 RANLIB=":" 4047 else 4048 case $cross_compiling:$ac_tool_warned in 4049yes:) 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4052ac_tool_warned=yes ;; 4053esac 4054 RANLIB=$ac_ct_RANLIB 4055 fi 4056else 4057 RANLIB="$ac_cv_prog_RANLIB" 4058fi 4059 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4061$as_echo_n "checking whether ln -s works... " >&6; } 4062LN_S=$as_ln_s 4063if test "$LN_S" = "ln -s"; then 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4065$as_echo "yes" >&6; } 4066else 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4068$as_echo "no, using $LN_S" >&6; } 4069fi 4070 4071case `pwd` in 4072 *\ * | *\ *) 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4074$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4075esac 4076 4077 4078 4079macro_version='2.4.4' 4080macro_revision='2.4.4' 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094ltmain=$ac_aux_dir/ltmain.sh 4095 4096# Backslashify metacharacters that are still active within 4097# double-quoted strings. 4098sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4099 4100# Same as above, but do not quote variable references. 4101double_quote_subst='s/\(["`\\]\)/\\\1/g' 4102 4103# Sed substitution to delay expansion of an escaped shell variable in a 4104# double_quote_subst'ed string. 4105delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4106 4107# Sed substitution to delay expansion of an escaped single quote. 4108delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4109 4110# Sed substitution to avoid accidental globbing in evaled expressions 4111no_glob_subst='s/\*/\\\*/g' 4112 4113ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4114ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4115ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4118$as_echo_n "checking how to print strings... " >&6; } 4119# Test print first, because it will be a builtin if present. 4120if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4121 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4122 ECHO='print -r --' 4123elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4124 ECHO='printf %s\n' 4125else 4126 # Use this function as a fallback that always works. 4127 func_fallback_echo () 4128 { 4129 eval 'cat <<_LTECHO_EOF 4130$1 4131_LTECHO_EOF' 4132 } 4133 ECHO='func_fallback_echo' 4134fi 4135 4136# func_echo_all arg... 4137# Invoke $ECHO with all args, space-separated. 4138func_echo_all () 4139{ 4140 $ECHO "" 4141} 4142 4143case $ECHO in 4144 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4145$as_echo "printf" >&6; } ;; 4146 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4147$as_echo "print -r" >&6; } ;; 4148 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4149$as_echo "cat" >&6; } ;; 4150esac 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4166$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4167if ${ac_cv_path_SED+:} false; then : 4168 $as_echo_n "(cached) " >&6 4169else 4170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4171 for ac_i in 1 2 3 4 5 6 7; do 4172 ac_script="$ac_script$as_nl$ac_script" 4173 done 4174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4175 { ac_script=; unset ac_script;} 4176 if test -z "$SED"; then 4177 ac_path_SED_found=false 4178 # Loop through the user's path and test for each of PROGNAME-LIST 4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4180for as_dir in $PATH 4181do 4182 IFS=$as_save_IFS 4183 test -z "$as_dir" && as_dir=. 4184 for ac_prog in sed gsed; do 4185 for ac_exec_ext in '' $ac_executable_extensions; do 4186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4187 as_fn_executable_p "$ac_path_SED" || continue 4188# Check for GNU ac_path_SED and select it if it is found. 4189 # Check for GNU $ac_path_SED 4190case `"$ac_path_SED" --version 2>&1` in 4191*GNU*) 4192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4193*) 4194 ac_count=0 4195 $as_echo_n 0123456789 >"conftest.in" 4196 while : 4197 do 4198 cat "conftest.in" "conftest.in" >"conftest.tmp" 4199 mv "conftest.tmp" "conftest.in" 4200 cp "conftest.in" "conftest.nl" 4201 $as_echo '' >> "conftest.nl" 4202 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4204 as_fn_arith $ac_count + 1 && ac_count=$as_val 4205 if test $ac_count -gt ${ac_path_SED_max-0}; then 4206 # Best one so far, save it but keep looking for a better one 4207 ac_cv_path_SED="$ac_path_SED" 4208 ac_path_SED_max=$ac_count 4209 fi 4210 # 10*(2^10) chars as input seems more than enough 4211 test $ac_count -gt 10 && break 4212 done 4213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4214esac 4215 4216 $ac_path_SED_found && break 3 4217 done 4218 done 4219 done 4220IFS=$as_save_IFS 4221 if test -z "$ac_cv_path_SED"; then 4222 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4223 fi 4224else 4225 ac_cv_path_SED=$SED 4226fi 4227 4228fi 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4230$as_echo "$ac_cv_path_SED" >&6; } 4231 SED="$ac_cv_path_SED" 4232 rm -f conftest.sed 4233 4234test -z "$SED" && SED=sed 4235Xsed="$SED -e 1s/^X//" 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4248$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4249if ${ac_cv_path_GREP+:} false; then : 4250 $as_echo_n "(cached) " >&6 4251else 4252 if test -z "$GREP"; then 4253 ac_path_GREP_found=false 4254 # Loop through the user's path and test for each of PROGNAME-LIST 4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4257do 4258 IFS=$as_save_IFS 4259 test -z "$as_dir" && as_dir=. 4260 for ac_prog in grep ggrep; do 4261 for ac_exec_ext in '' $ac_executable_extensions; do 4262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4263 as_fn_executable_p "$ac_path_GREP" || continue 4264# Check for GNU ac_path_GREP and select it if it is found. 4265 # Check for GNU $ac_path_GREP 4266case `"$ac_path_GREP" --version 2>&1` in 4267*GNU*) 4268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4269*) 4270 ac_count=0 4271 $as_echo_n 0123456789 >"conftest.in" 4272 while : 4273 do 4274 cat "conftest.in" "conftest.in" >"conftest.tmp" 4275 mv "conftest.tmp" "conftest.in" 4276 cp "conftest.in" "conftest.nl" 4277 $as_echo 'GREP' >> "conftest.nl" 4278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4280 as_fn_arith $ac_count + 1 && ac_count=$as_val 4281 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4282 # Best one so far, save it but keep looking for a better one 4283 ac_cv_path_GREP="$ac_path_GREP" 4284 ac_path_GREP_max=$ac_count 4285 fi 4286 # 10*(2^10) chars as input seems more than enough 4287 test $ac_count -gt 10 && break 4288 done 4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4290esac 4291 4292 $ac_path_GREP_found && break 3 4293 done 4294 done 4295 done 4296IFS=$as_save_IFS 4297 if test -z "$ac_cv_path_GREP"; then 4298 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4299 fi 4300else 4301 ac_cv_path_GREP=$GREP 4302fi 4303 4304fi 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4306$as_echo "$ac_cv_path_GREP" >&6; } 4307 GREP="$ac_cv_path_GREP" 4308 4309 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4311$as_echo_n "checking for egrep... " >&6; } 4312if ${ac_cv_path_EGREP+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4316 then ac_cv_path_EGREP="$GREP -E" 4317 else 4318 if test -z "$EGREP"; then 4319 ac_path_EGREP_found=false 4320 # Loop through the user's path and test for each of PROGNAME-LIST 4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4323do 4324 IFS=$as_save_IFS 4325 test -z "$as_dir" && as_dir=. 4326 for ac_prog in egrep; do 4327 for ac_exec_ext in '' $ac_executable_extensions; do 4328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4329 as_fn_executable_p "$ac_path_EGREP" || continue 4330# Check for GNU ac_path_EGREP and select it if it is found. 4331 # Check for GNU $ac_path_EGREP 4332case `"$ac_path_EGREP" --version 2>&1` in 4333*GNU*) 4334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4335*) 4336 ac_count=0 4337 $as_echo_n 0123456789 >"conftest.in" 4338 while : 4339 do 4340 cat "conftest.in" "conftest.in" >"conftest.tmp" 4341 mv "conftest.tmp" "conftest.in" 4342 cp "conftest.in" "conftest.nl" 4343 $as_echo 'EGREP' >> "conftest.nl" 4344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4346 as_fn_arith $ac_count + 1 && ac_count=$as_val 4347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4348 # Best one so far, save it but keep looking for a better one 4349 ac_cv_path_EGREP="$ac_path_EGREP" 4350 ac_path_EGREP_max=$ac_count 4351 fi 4352 # 10*(2^10) chars as input seems more than enough 4353 test $ac_count -gt 10 && break 4354 done 4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4356esac 4357 4358 $ac_path_EGREP_found && break 3 4359 done 4360 done 4361 done 4362IFS=$as_save_IFS 4363 if test -z "$ac_cv_path_EGREP"; then 4364 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4365 fi 4366else 4367 ac_cv_path_EGREP=$EGREP 4368fi 4369 4370 fi 4371fi 4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4373$as_echo "$ac_cv_path_EGREP" >&6; } 4374 EGREP="$ac_cv_path_EGREP" 4375 4376 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4378$as_echo_n "checking for fgrep... " >&6; } 4379if ${ac_cv_path_FGREP+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4383 then ac_cv_path_FGREP="$GREP -F" 4384 else 4385 if test -z "$FGREP"; then 4386 ac_path_FGREP_found=false 4387 # Loop through the user's path and test for each of PROGNAME-LIST 4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_prog in fgrep; do 4394 for ac_exec_ext in '' $ac_executable_extensions; do 4395 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4396 as_fn_executable_p "$ac_path_FGREP" || continue 4397# Check for GNU ac_path_FGREP and select it if it is found. 4398 # Check for GNU $ac_path_FGREP 4399case `"$ac_path_FGREP" --version 2>&1` in 4400*GNU*) 4401 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4402*) 4403 ac_count=0 4404 $as_echo_n 0123456789 >"conftest.in" 4405 while : 4406 do 4407 cat "conftest.in" "conftest.in" >"conftest.tmp" 4408 mv "conftest.tmp" "conftest.in" 4409 cp "conftest.in" "conftest.nl" 4410 $as_echo 'FGREP' >> "conftest.nl" 4411 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4413 as_fn_arith $ac_count + 1 && ac_count=$as_val 4414 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4415 # Best one so far, save it but keep looking for a better one 4416 ac_cv_path_FGREP="$ac_path_FGREP" 4417 ac_path_FGREP_max=$ac_count 4418 fi 4419 # 10*(2^10) chars as input seems more than enough 4420 test $ac_count -gt 10 && break 4421 done 4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4423esac 4424 4425 $ac_path_FGREP_found && break 3 4426 done 4427 done 4428 done 4429IFS=$as_save_IFS 4430 if test -z "$ac_cv_path_FGREP"; then 4431 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4432 fi 4433else 4434 ac_cv_path_FGREP=$FGREP 4435fi 4436 4437 fi 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4440$as_echo "$ac_cv_path_FGREP" >&6; } 4441 FGREP="$ac_cv_path_FGREP" 4442 4443 4444test -z "$GREP" && GREP=grep 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464# Check whether --with-gnu-ld was given. 4465if test "${with_gnu_ld+set}" = set; then : 4466 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4467else 4468 with_gnu_ld=no 4469fi 4470 4471ac_prog=ld 4472if test yes = "$GCC"; then 4473 # Check if gcc -print-prog-name=ld gives a path. 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4475$as_echo_n "checking for ld used by $CC... " >&6; } 4476 case $host in 4477 *-*-mingw*) 4478 # gcc leaves a trailing carriage return, which upsets mingw 4479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4480 *) 4481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4482 esac 4483 case $ac_prog in 4484 # Accept absolute paths. 4485 [\\/]* | ?:[\\/]*) 4486 re_direlt='/[^/][^/]*/\.\./' 4487 # Canonicalize the pathname of ld 4488 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4489 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4490 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4491 done 4492 test -z "$LD" && LD=$ac_prog 4493 ;; 4494 "") 4495 # If it fails, then pretend we aren't using GCC. 4496 ac_prog=ld 4497 ;; 4498 *) 4499 # If it is relative, then search for the first ld in PATH. 4500 with_gnu_ld=unknown 4501 ;; 4502 esac 4503elif test yes = "$with_gnu_ld"; then 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4505$as_echo_n "checking for GNU ld... " >&6; } 4506else 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4508$as_echo_n "checking for non-GNU ld... " >&6; } 4509fi 4510if ${lt_cv_path_LD+:} false; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 if test -z "$LD"; then 4514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4515 for ac_dir in $PATH; do 4516 IFS=$lt_save_ifs 4517 test -z "$ac_dir" && ac_dir=. 4518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4519 lt_cv_path_LD=$ac_dir/$ac_prog 4520 # Check to see if the program is GNU ld. I'd rather use --version, 4521 # but apparently some variants of GNU ld only accept -v. 4522 # Break only if it was the GNU/non-GNU ld that we prefer. 4523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4524 *GNU* | *'with BFD'*) 4525 test no != "$with_gnu_ld" && break 4526 ;; 4527 *) 4528 test yes != "$with_gnu_ld" && break 4529 ;; 4530 esac 4531 fi 4532 done 4533 IFS=$lt_save_ifs 4534else 4535 lt_cv_path_LD=$LD # Let the user override the test with a path. 4536fi 4537fi 4538 4539LD=$lt_cv_path_LD 4540if test -n "$LD"; then 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4542$as_echo "$LD" >&6; } 4543else 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4545$as_echo "no" >&6; } 4546fi 4547test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4549$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4550if ${lt_cv_prog_gnu_ld+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4554case `$LD -v 2>&1 </dev/null` in 4555*GNU* | *'with BFD'*) 4556 lt_cv_prog_gnu_ld=yes 4557 ;; 4558*) 4559 lt_cv_prog_gnu_ld=no 4560 ;; 4561esac 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4564$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4565with_gnu_ld=$lt_cv_prog_gnu_ld 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4576$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4577if ${lt_cv_path_NM+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 if test -n "$NM"; then 4581 # Let the user override the test. 4582 lt_cv_path_NM=$NM 4583else 4584 lt_nm_to_check=${ac_tool_prefix}nm 4585 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4586 lt_nm_to_check="$lt_nm_to_check nm" 4587 fi 4588 for lt_tmp_nm in $lt_nm_to_check; do 4589 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4590 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4591 IFS=$lt_save_ifs 4592 test -z "$ac_dir" && ac_dir=. 4593 tmp_nm=$ac_dir/$lt_tmp_nm 4594 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4595 # Check to see if the nm accepts a BSD-compat flag. 4596 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4597 # nm: unknown option "B" ignored 4598 # Tru64's nm complains that /dev/null is an invalid object file 4599 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4600 case $build_os in 4601 mingw*) lt_bad_file=conftest.nm/nofile ;; 4602 *) lt_bad_file=/dev/null ;; 4603 esac 4604 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4605 *$lt_bad_file* | *'Invalid file or object type'*) 4606 lt_cv_path_NM="$tmp_nm -B" 4607 break 2 4608 ;; 4609 *) 4610 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4611 */dev/null*) 4612 lt_cv_path_NM="$tmp_nm -p" 4613 break 2 4614 ;; 4615 *) 4616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4617 continue # so that we can try to find one that supports BSD flags 4618 ;; 4619 esac 4620 ;; 4621 esac 4622 fi 4623 done 4624 IFS=$lt_save_ifs 4625 done 4626 : ${lt_cv_path_NM=no} 4627fi 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4630$as_echo "$lt_cv_path_NM" >&6; } 4631if test no != "$lt_cv_path_NM"; then 4632 NM=$lt_cv_path_NM 4633else 4634 # Didn't find any BSD compatible name lister, look for dumpbin. 4635 if test -n "$DUMPBIN"; then : 4636 # Let the user override the test. 4637 else 4638 if test -n "$ac_tool_prefix"; then 4639 for ac_prog in dumpbin "link -dump" 4640 do 4641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4642set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4644$as_echo_n "checking for $ac_word... " >&6; } 4645if ${ac_cv_prog_DUMPBIN+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 if test -n "$DUMPBIN"; then 4649 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4650else 4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652for as_dir in $PATH 4653do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4658 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4660 break 2 4661 fi 4662done 4663 done 4664IFS=$as_save_IFS 4665 4666fi 4667fi 4668DUMPBIN=$ac_cv_prog_DUMPBIN 4669if test -n "$DUMPBIN"; then 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4671$as_echo "$DUMPBIN" >&6; } 4672else 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4674$as_echo "no" >&6; } 4675fi 4676 4677 4678 test -n "$DUMPBIN" && break 4679 done 4680fi 4681if test -z "$DUMPBIN"; then 4682 ac_ct_DUMPBIN=$DUMPBIN 4683 for ac_prog in dumpbin "link -dump" 4684do 4685 # Extract the first word of "$ac_prog", so it can be a program name with args. 4686set dummy $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_ac_ct_DUMPBIN+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 if test -n "$ac_ct_DUMPBIN"; then 4693 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_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_ac_ct_DUMPBIN="$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 4712ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4713if test -n "$ac_ct_DUMPBIN"; then 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4715$as_echo "$ac_ct_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 "$ac_ct_DUMPBIN" && break 4723done 4724 4725 if test "x$ac_ct_DUMPBIN" = x; then 4726 DUMPBIN=":" 4727 else 4728 case $cross_compiling:$ac_tool_warned in 4729yes:) 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4732ac_tool_warned=yes ;; 4733esac 4734 DUMPBIN=$ac_ct_DUMPBIN 4735 fi 4736fi 4737 4738 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4739 *COFF*) 4740 DUMPBIN="$DUMPBIN -symbols -headers" 4741 ;; 4742 *) 4743 DUMPBIN=: 4744 ;; 4745 esac 4746 fi 4747 4748 if test : != "$DUMPBIN"; then 4749 NM=$DUMPBIN 4750 fi 4751fi 4752test -z "$NM" && NM=nm 4753 4754 4755 4756 4757 4758 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4760$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4761if ${lt_cv_nm_interface+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 lt_cv_nm_interface="BSD nm" 4765 echo "int some_variable = 0;" > conftest.$ac_ext 4766 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4767 (eval "$ac_compile" 2>conftest.err) 4768 cat conftest.err >&5 4769 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4770 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4771 cat conftest.err >&5 4772 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4773 cat conftest.out >&5 4774 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4775 lt_cv_nm_interface="MS dumpbin" 4776 fi 4777 rm -f conftest* 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4780$as_echo "$lt_cv_nm_interface" >&6; } 4781 4782# find the maximum length of command line arguments 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4784$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4785if ${lt_cv_sys_max_cmd_len+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 i=0 4789 teststring=ABCD 4790 4791 case $build_os in 4792 msdosdjgpp*) 4793 # On DJGPP, this test can blow up pretty badly due to problems in libc 4794 # (any single argument exceeding 2000 bytes causes a buffer overrun 4795 # during glob expansion). Even if it were fixed, the result of this 4796 # check would be larger than it should be. 4797 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4798 ;; 4799 4800 gnu*) 4801 # Under GNU Hurd, this test is not required because there is 4802 # no limit to the length of command line arguments. 4803 # Libtool will interpret -1 as no limit whatsoever 4804 lt_cv_sys_max_cmd_len=-1; 4805 ;; 4806 4807 cygwin* | mingw* | cegcc*) 4808 # On Win9x/ME, this test blows up -- it succeeds, but takes 4809 # about 5 minutes as the teststring grows exponentially. 4810 # Worse, since 9x/ME are not pre-emptively multitasking, 4811 # you end up with a "frozen" computer, even though with patience 4812 # the test eventually succeeds (with a max line length of 256k). 4813 # Instead, let's just punt: use the minimum linelength reported by 4814 # all of the supported platforms: 8192 (on NT/2K/XP). 4815 lt_cv_sys_max_cmd_len=8192; 4816 ;; 4817 4818 mint*) 4819 # On MiNT this can take a long time and run out of memory. 4820 lt_cv_sys_max_cmd_len=8192; 4821 ;; 4822 4823 amigaos*) 4824 # On AmigaOS with pdksh, this test takes hours, literally. 4825 # So we just punt and use a minimum line length of 8192. 4826 lt_cv_sys_max_cmd_len=8192; 4827 ;; 4828 4829 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4830 # This has been around since 386BSD, at least. Likely further. 4831 if test -x /sbin/sysctl; then 4832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4833 elif test -x /usr/sbin/sysctl; then 4834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4835 else 4836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4837 fi 4838 # And add a safety zone 4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4841 ;; 4842 4843 interix*) 4844 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4845 lt_cv_sys_max_cmd_len=196608 4846 ;; 4847 4848 os2*) 4849 # The test takes a long time on OS/2. 4850 lt_cv_sys_max_cmd_len=8192 4851 ;; 4852 4853 osf*) 4854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4856 # nice to cause kernel panics so lets avoid the loop below. 4857 # First set a reasonable default. 4858 lt_cv_sys_max_cmd_len=16384 4859 # 4860 if test -x /sbin/sysconfig; then 4861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4862 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4863 esac 4864 fi 4865 ;; 4866 sco3.2v5*) 4867 lt_cv_sys_max_cmd_len=102400 4868 ;; 4869 sysv5* | sco5v6* | sysv4.2uw2*) 4870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4871 if test -n "$kargmax"; then 4872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4873 else 4874 lt_cv_sys_max_cmd_len=32768 4875 fi 4876 ;; 4877 *) 4878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4879 if test -n "$lt_cv_sys_max_cmd_len" && \ 4880 test undefined != "$lt_cv_sys_max_cmd_len"; then 4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4883 else 4884 # Make teststring a little bigger before we do anything with it. 4885 # a 1K string should be a reasonable start. 4886 for i in 1 2 3 4 5 6 7 8; do 4887 teststring=$teststring$teststring 4888 done 4889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4890 # If test is not a shell built-in, we'll probably end up computing a 4891 # maximum length that is only half of the actual maximum length, but 4892 # we can't tell. 4893 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4894 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4895 test 17 != "$i" # 1/2 MB should be enough 4896 do 4897 i=`expr $i + 1` 4898 teststring=$teststring$teststring 4899 done 4900 # Only check the string length outside the loop. 4901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4902 teststring= 4903 # Add a significant safety factor because C++ compilers can tack on 4904 # massive amounts of additional arguments before passing them to the 4905 # linker. It appears as though 1/2 is a usable value. 4906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4907 fi 4908 ;; 4909 esac 4910 4911fi 4912 4913if test -n "$lt_cv_sys_max_cmd_len"; then 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4915$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4916else 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4918$as_echo "none" >&6; } 4919fi 4920max_cmd_len=$lt_cv_sys_max_cmd_len 4921 4922 4923 4924 4925 4926 4927: ${CP="cp -f"} 4928: ${MV="mv -f"} 4929: ${RM="rm -f"} 4930 4931if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4932 lt_unset=unset 4933else 4934 lt_unset=false 4935fi 4936 4937 4938 4939 4940 4941# test EBCDIC or ASCII 4942case `echo X|tr X '\101'` in 4943 A) # ASCII based system 4944 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4945 lt_SP2NL='tr \040 \012' 4946 lt_NL2SP='tr \015\012 \040\040' 4947 ;; 4948 *) # EBCDIC based system 4949 lt_SP2NL='tr \100 \n' 4950 lt_NL2SP='tr \r\n \100\100' 4951 ;; 4952esac 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4963$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4964if ${lt_cv_to_host_file_cmd+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 case $host in 4968 *-*-mingw* ) 4969 case $build in 4970 *-*-mingw* ) # actually msys 4971 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4972 ;; 4973 *-*-cygwin* ) 4974 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4975 ;; 4976 * ) # otherwise, assume *nix 4977 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4978 ;; 4979 esac 4980 ;; 4981 *-*-cygwin* ) 4982 case $build in 4983 *-*-mingw* ) # actually msys 4984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4985 ;; 4986 *-*-cygwin* ) 4987 lt_cv_to_host_file_cmd=func_convert_file_noop 4988 ;; 4989 * ) # otherwise, assume *nix 4990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4991 ;; 4992 esac 4993 ;; 4994 * ) # unhandled hosts (and "normal" native builds) 4995 lt_cv_to_host_file_cmd=func_convert_file_noop 4996 ;; 4997esac 4998 4999fi 5000 5001to_host_file_cmd=$lt_cv_to_host_file_cmd 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5003$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5004 5005 5006 5007 5008 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5010$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5011if ${lt_cv_to_tool_file_cmd+:} false; then : 5012 $as_echo_n "(cached) " >&6 5013else 5014 #assume ordinary cross tools, or native build. 5015lt_cv_to_tool_file_cmd=func_convert_file_noop 5016case $host in 5017 *-*-mingw* ) 5018 case $build in 5019 *-*-mingw* ) # actually msys 5020 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5021 ;; 5022 esac 5023 ;; 5024esac 5025 5026fi 5027 5028to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5030$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5031 5032 5033 5034 5035 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5037$as_echo_n "checking for $LD option to reload object files... " >&6; } 5038if ${lt_cv_ld_reload_flag+:} false; then : 5039 $as_echo_n "(cached) " >&6 5040else 5041 lt_cv_ld_reload_flag='-r' 5042fi 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5044$as_echo "$lt_cv_ld_reload_flag" >&6; } 5045reload_flag=$lt_cv_ld_reload_flag 5046case $reload_flag in 5047"" | " "*) ;; 5048*) reload_flag=" $reload_flag" ;; 5049esac 5050reload_cmds='$LD$reload_flag -o $output$reload_objs' 5051case $host_os in 5052 cygwin* | mingw* | pw32* | cegcc*) 5053 if test yes != "$GCC"; then 5054 reload_cmds=false 5055 fi 5056 ;; 5057 darwin*) 5058 if test yes = "$GCC"; then 5059 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5060 else 5061 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5062 fi 5063 ;; 5064esac 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074if test -n "$ac_tool_prefix"; then 5075 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5076set dummy ${ac_tool_prefix}objdump; ac_word=$2 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078$as_echo_n "checking for $ac_word... " >&6; } 5079if ${ac_cv_prog_OBJDUMP+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 if test -n "$OBJDUMP"; then 5083 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5084else 5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5092 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100fi 5101fi 5102OBJDUMP=$ac_cv_prog_OBJDUMP 5103if test -n "$OBJDUMP"; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5105$as_echo "$OBJDUMP" >&6; } 5106else 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5108$as_echo "no" >&6; } 5109fi 5110 5111 5112fi 5113if test -z "$ac_cv_prog_OBJDUMP"; then 5114 ac_ct_OBJDUMP=$OBJDUMP 5115 # Extract the first word of "objdump", so it can be a program name with args. 5116set dummy objdump; ac_word=$2 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5118$as_echo_n "checking for $ac_word... " >&6; } 5119if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 if test -n "$ac_ct_OBJDUMP"; then 5123 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5124else 5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5126for as_dir in $PATH 5127do 5128 IFS=$as_save_IFS 5129 test -z "$as_dir" && as_dir=. 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5132 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5134 break 2 5135 fi 5136done 5137 done 5138IFS=$as_save_IFS 5139 5140fi 5141fi 5142ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5143if test -n "$ac_ct_OBJDUMP"; then 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5145$as_echo "$ac_ct_OBJDUMP" >&6; } 5146else 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148$as_echo "no" >&6; } 5149fi 5150 5151 if test "x$ac_ct_OBJDUMP" = x; then 5152 OBJDUMP="false" 5153 else 5154 case $cross_compiling:$ac_tool_warned in 5155yes:) 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5158ac_tool_warned=yes ;; 5159esac 5160 OBJDUMP=$ac_ct_OBJDUMP 5161 fi 5162else 5163 OBJDUMP="$ac_cv_prog_OBJDUMP" 5164fi 5165 5166test -z "$OBJDUMP" && OBJDUMP=objdump 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5177$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5178if ${lt_cv_deplibs_check_method+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 lt_cv_file_magic_cmd='$MAGIC_CMD' 5182lt_cv_file_magic_test_file= 5183lt_cv_deplibs_check_method='unknown' 5184# Need to set the preceding variable on all platforms that support 5185# interlibrary dependencies. 5186# 'none' -- dependencies not supported. 5187# 'unknown' -- same as none, but documents that we really don't know. 5188# 'pass_all' -- all dependencies passed with no checks. 5189# 'test_compile' -- check by making test program. 5190# 'file_magic [[regex]]' -- check by looking for files in library path 5191# that responds to the $file_magic_cmd with a given extended regex. 5192# If you have 'file' or equivalent on your system and you're not sure 5193# whether 'pass_all' will *always* work, you probably want this one. 5194 5195case $host_os in 5196aix[4-9]*) 5197 lt_cv_deplibs_check_method=pass_all 5198 ;; 5199 5200beos*) 5201 lt_cv_deplibs_check_method=pass_all 5202 ;; 5203 5204bsdi[45]*) 5205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5206 lt_cv_file_magic_cmd='/usr/bin/file -L' 5207 lt_cv_file_magic_test_file=/shlib/libc.so 5208 ;; 5209 5210cygwin*) 5211 # func_win32_libid is a shell function defined in ltmain.sh 5212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5213 lt_cv_file_magic_cmd='func_win32_libid' 5214 ;; 5215 5216mingw* | pw32*) 5217 # Base MSYS/MinGW do not provide the 'file' command needed by 5218 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5219 # unless we find 'file', for example because we are cross-compiling. 5220 if ( file / ) >/dev/null 2>&1; then 5221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5222 lt_cv_file_magic_cmd='func_win32_libid' 5223 else 5224 # Keep this pattern in sync with the one in func_win32_libid. 5225 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5226 lt_cv_file_magic_cmd='$OBJDUMP -f' 5227 fi 5228 ;; 5229 5230cegcc*) 5231 # use the weaker test based on 'objdump'. See mingw*. 5232 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5233 lt_cv_file_magic_cmd='$OBJDUMP -f' 5234 ;; 5235 5236darwin* | rhapsody*) 5237 lt_cv_deplibs_check_method=pass_all 5238 ;; 5239 5240freebsd* | dragonfly*) 5241 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5242 case $host_cpu in 5243 i*86 ) 5244 # Not sure whether the presence of OpenBSD here was a mistake. 5245 # Let's accept both of them until this is cleared up. 5246 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5247 lt_cv_file_magic_cmd=/usr/bin/file 5248 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5249 ;; 5250 esac 5251 else 5252 lt_cv_deplibs_check_method=pass_all 5253 fi 5254 ;; 5255 5256haiku*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260hpux10.20* | hpux11*) 5261 lt_cv_file_magic_cmd=/usr/bin/file 5262 case $host_cpu in 5263 ia64*) 5264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5265 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5266 ;; 5267 hppa*64*) 5268 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]' 5269 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5270 ;; 5271 *) 5272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5273 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5274 ;; 5275 esac 5276 ;; 5277 5278interix[3-9]*) 5279 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5281 ;; 5282 5283irix5* | irix6* | nonstopux*) 5284 case $LD in 5285 *-32|*"-32 ") libmagic=32-bit;; 5286 *-n32|*"-n32 ") libmagic=N32;; 5287 *-64|*"-64 ") libmagic=64-bit;; 5288 *) libmagic=never-match;; 5289 esac 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292 5293# This must be glibc/ELF. 5294linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5295 lt_cv_deplibs_check_method=pass_all 5296 ;; 5297 5298netbsd*) 5299 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5301 else 5302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5303 fi 5304 ;; 5305 5306newos6*) 5307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5308 lt_cv_file_magic_cmd=/usr/bin/file 5309 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5310 ;; 5311 5312*nto* | *qnx*) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315 5316openbsd* | bitrig*) 5317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5319 else 5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5321 fi 5322 ;; 5323 5324osf3* | osf4* | osf5*) 5325 lt_cv_deplibs_check_method=pass_all 5326 ;; 5327 5328rdos*) 5329 lt_cv_deplibs_check_method=pass_all 5330 ;; 5331 5332solaris*) 5333 lt_cv_deplibs_check_method=pass_all 5334 ;; 5335 5336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5337 lt_cv_deplibs_check_method=pass_all 5338 ;; 5339 5340sysv4 | sysv4.3*) 5341 case $host_vendor in 5342 motorola) 5343 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]' 5344 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5345 ;; 5346 ncr) 5347 lt_cv_deplibs_check_method=pass_all 5348 ;; 5349 sequent) 5350 lt_cv_file_magic_cmd='/bin/file' 5351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5352 ;; 5353 sni) 5354 lt_cv_file_magic_cmd='/bin/file' 5355 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5356 lt_cv_file_magic_test_file=/lib/libc.so 5357 ;; 5358 siemens) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 pc) 5362 lt_cv_deplibs_check_method=pass_all 5363 ;; 5364 esac 5365 ;; 5366 5367tpf*) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370os2*) 5371 lt_cv_deplibs_check_method=pass_all 5372 ;; 5373esac 5374 5375fi 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5377$as_echo "$lt_cv_deplibs_check_method" >&6; } 5378 5379file_magic_glob= 5380want_nocaseglob=no 5381if test "$build" = "$host"; then 5382 case $host_os in 5383 mingw* | pw32*) 5384 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5385 want_nocaseglob=yes 5386 else 5387 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5388 fi 5389 ;; 5390 esac 5391fi 5392 5393file_magic_cmd=$lt_cv_file_magic_cmd 5394deplibs_check_method=$lt_cv_deplibs_check_method 5395test -z "$deplibs_check_method" && deplibs_check_method=unknown 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418if test -n "$ac_tool_prefix"; then 5419 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5420set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5422$as_echo_n "checking for $ac_word... " >&6; } 5423if ${ac_cv_prog_DLLTOOL+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425else 5426 if test -n "$DLLTOOL"; then 5427 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5428else 5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5430for as_dir in $PATH 5431do 5432 IFS=$as_save_IFS 5433 test -z "$as_dir" && as_dir=. 5434 for ac_exec_ext in '' $ac_executable_extensions; do 5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5436 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5438 break 2 5439 fi 5440done 5441 done 5442IFS=$as_save_IFS 5443 5444fi 5445fi 5446DLLTOOL=$ac_cv_prog_DLLTOOL 5447if test -n "$DLLTOOL"; then 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5449$as_echo "$DLLTOOL" >&6; } 5450else 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5452$as_echo "no" >&6; } 5453fi 5454 5455 5456fi 5457if test -z "$ac_cv_prog_DLLTOOL"; then 5458 ac_ct_DLLTOOL=$DLLTOOL 5459 # Extract the first word of "dlltool", so it can be a program name with args. 5460set dummy dlltool; ac_word=$2 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5462$as_echo_n "checking for $ac_word... " >&6; } 5463if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465else 5466 if test -n "$ac_ct_DLLTOOL"; then 5467 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5468else 5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5470for as_dir in $PATH 5471do 5472 IFS=$as_save_IFS 5473 test -z "$as_dir" && as_dir=. 5474 for ac_exec_ext in '' $ac_executable_extensions; do 5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5476 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5478 break 2 5479 fi 5480done 5481 done 5482IFS=$as_save_IFS 5483 5484fi 5485fi 5486ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5487if test -n "$ac_ct_DLLTOOL"; then 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5489$as_echo "$ac_ct_DLLTOOL" >&6; } 5490else 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492$as_echo "no" >&6; } 5493fi 5494 5495 if test "x$ac_ct_DLLTOOL" = x; then 5496 DLLTOOL="false" 5497 else 5498 case $cross_compiling:$ac_tool_warned in 5499yes:) 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5502ac_tool_warned=yes ;; 5503esac 5504 DLLTOOL=$ac_ct_DLLTOOL 5505 fi 5506else 5507 DLLTOOL="$ac_cv_prog_DLLTOOL" 5508fi 5509 5510test -z "$DLLTOOL" && DLLTOOL=dlltool 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5522$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5523if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 lt_cv_sharedlib_from_linklib_cmd='unknown' 5527 5528case $host_os in 5529cygwin* | mingw* | pw32* | cegcc*) 5530 # two different shell functions defined in ltmain.sh; 5531 # decide which one to use based on capabilities of $DLLTOOL 5532 case `$DLLTOOL --help 2>&1` in 5533 *--identify-strict*) 5534 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5535 ;; 5536 *) 5537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5538 ;; 5539 esac 5540 ;; 5541*) 5542 # fallback: assume linklib IS sharedlib 5543 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5544 ;; 5545esac 5546 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5549$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5550sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5551test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5552 5553 5554 5555 5556 5557 5558 5559 5560if test -n "$ac_tool_prefix"; then 5561 for ac_prog in ar 5562 do 5563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5564set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5566$as_echo_n "checking for $ac_word... " >&6; } 5567if ${ac_cv_prog_AR+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 if test -n "$AR"; then 5571 ac_cv_prog_AR="$AR" # Let the user override the test. 5572else 5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574for as_dir in $PATH 5575do 5576 IFS=$as_save_IFS 5577 test -z "$as_dir" && as_dir=. 5578 for ac_exec_ext in '' $ac_executable_extensions; do 5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5580 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5582 break 2 5583 fi 5584done 5585 done 5586IFS=$as_save_IFS 5587 5588fi 5589fi 5590AR=$ac_cv_prog_AR 5591if test -n "$AR"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5593$as_echo "$AR" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5596$as_echo "no" >&6; } 5597fi 5598 5599 5600 test -n "$AR" && break 5601 done 5602fi 5603if test -z "$AR"; then 5604 ac_ct_AR=$AR 5605 for ac_prog in ar 5606do 5607 # Extract the first word of "$ac_prog", so it can be a program name with args. 5608set dummy $ac_prog; ac_word=$2 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5610$as_echo_n "checking for $ac_word... " >&6; } 5611if ${ac_cv_prog_ac_ct_AR+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 if test -n "$ac_ct_AR"; then 5615 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5616else 5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5618for as_dir in $PATH 5619do 5620 IFS=$as_save_IFS 5621 test -z "$as_dir" && as_dir=. 5622 for ac_exec_ext in '' $ac_executable_extensions; do 5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5624 ac_cv_prog_ac_ct_AR="$ac_prog" 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5626 break 2 5627 fi 5628done 5629 done 5630IFS=$as_save_IFS 5631 5632fi 5633fi 5634ac_ct_AR=$ac_cv_prog_ac_ct_AR 5635if test -n "$ac_ct_AR"; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5637$as_echo "$ac_ct_AR" >&6; } 5638else 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5640$as_echo "no" >&6; } 5641fi 5642 5643 5644 test -n "$ac_ct_AR" && break 5645done 5646 5647 if test "x$ac_ct_AR" = x; then 5648 AR="false" 5649 else 5650 case $cross_compiling:$ac_tool_warned in 5651yes:) 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5654ac_tool_warned=yes ;; 5655esac 5656 AR=$ac_ct_AR 5657 fi 5658fi 5659 5660: ${AR=ar} 5661: ${AR_FLAGS=cru} 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5674$as_echo_n "checking for archiver @FILE support... " >&6; } 5675if ${lt_cv_ar_at_file+:} false; then : 5676 $as_echo_n "(cached) " >&6 5677else 5678 lt_cv_ar_at_file=no 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681 5682int 5683main () 5684{ 5685 5686 ; 5687 return 0; 5688} 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO"; then : 5691 echo conftest.$ac_objext > conftest.lst 5692 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5694 (eval $lt_ar_try) 2>&5 5695 ac_status=$? 5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5697 test $ac_status = 0; } 5698 if test 0 -eq "$ac_status"; then 5699 # Ensure the archiver fails upon bogus file names. 5700 rm -f conftest.$ac_objext libconftest.a 5701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5702 (eval $lt_ar_try) 2>&5 5703 ac_status=$? 5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5705 test $ac_status = 0; } 5706 if test 0 -ne "$ac_status"; then 5707 lt_cv_ar_at_file=@ 5708 fi 5709 fi 5710 rm -f conftest.* libconftest.a 5711 5712fi 5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5714 5715fi 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5717$as_echo "$lt_cv_ar_at_file" >&6; } 5718 5719if test no = "$lt_cv_ar_at_file"; then 5720 archiver_list_spec= 5721else 5722 archiver_list_spec=$lt_cv_ar_at_file 5723fi 5724 5725 5726 5727 5728 5729 5730 5731if test -n "$ac_tool_prefix"; then 5732 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5733set dummy ${ac_tool_prefix}strip; ac_word=$2 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5735$as_echo_n "checking for $ac_word... " >&6; } 5736if ${ac_cv_prog_STRIP+:} false; then : 5737 $as_echo_n "(cached) " >&6 5738else 5739 if test -n "$STRIP"; then 5740 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5741else 5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5743for as_dir in $PATH 5744do 5745 IFS=$as_save_IFS 5746 test -z "$as_dir" && as_dir=. 5747 for ac_exec_ext in '' $ac_executable_extensions; do 5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5749 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5751 break 2 5752 fi 5753done 5754 done 5755IFS=$as_save_IFS 5756 5757fi 5758fi 5759STRIP=$ac_cv_prog_STRIP 5760if test -n "$STRIP"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5762$as_echo "$STRIP" >&6; } 5763else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5765$as_echo "no" >&6; } 5766fi 5767 5768 5769fi 5770if test -z "$ac_cv_prog_STRIP"; then 5771 ac_ct_STRIP=$STRIP 5772 # Extract the first word of "strip", so it can be a program name with args. 5773set dummy strip; ac_word=$2 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5775$as_echo_n "checking for $ac_word... " >&6; } 5776if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 if test -n "$ac_ct_STRIP"; then 5780 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5781else 5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783for as_dir in $PATH 5784do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5789 ac_cv_prog_ac_ct_STRIP="strip" 5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793done 5794 done 5795IFS=$as_save_IFS 5796 5797fi 5798fi 5799ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5800if test -n "$ac_ct_STRIP"; then 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5802$as_echo "$ac_ct_STRIP" >&6; } 5803else 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5805$as_echo "no" >&6; } 5806fi 5807 5808 if test "x$ac_ct_STRIP" = x; then 5809 STRIP=":" 5810 else 5811 case $cross_compiling:$ac_tool_warned in 5812yes:) 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5815ac_tool_warned=yes ;; 5816esac 5817 STRIP=$ac_ct_STRIP 5818 fi 5819else 5820 STRIP="$ac_cv_prog_STRIP" 5821fi 5822 5823test -z "$STRIP" && STRIP=: 5824 5825 5826 5827 5828 5829 5830if test -n "$ac_tool_prefix"; then 5831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5832set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5834$as_echo_n "checking for $ac_word... " >&6; } 5835if ${ac_cv_prog_RANLIB+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837else 5838 if test -n "$RANLIB"; then 5839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5840else 5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5842for as_dir in $PATH 5843do 5844 IFS=$as_save_IFS 5845 test -z "$as_dir" && as_dir=. 5846 for ac_exec_ext in '' $ac_executable_extensions; do 5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5850 break 2 5851 fi 5852done 5853 done 5854IFS=$as_save_IFS 5855 5856fi 5857fi 5858RANLIB=$ac_cv_prog_RANLIB 5859if test -n "$RANLIB"; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5861$as_echo "$RANLIB" >&6; } 5862else 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5864$as_echo "no" >&6; } 5865fi 5866 5867 5868fi 5869if test -z "$ac_cv_prog_RANLIB"; then 5870 ac_ct_RANLIB=$RANLIB 5871 # Extract the first word of "ranlib", so it can be a program name with args. 5872set dummy ranlib; ac_word=$2 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5874$as_echo_n "checking for $ac_word... " >&6; } 5875if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 if test -n "$ac_ct_RANLIB"; then 5879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5880else 5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5882for as_dir in $PATH 5883do 5884 IFS=$as_save_IFS 5885 test -z "$as_dir" && as_dir=. 5886 for ac_exec_ext in '' $ac_executable_extensions; do 5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5888 ac_cv_prog_ac_ct_RANLIB="ranlib" 5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5890 break 2 5891 fi 5892done 5893 done 5894IFS=$as_save_IFS 5895 5896fi 5897fi 5898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5899if test -n "$ac_ct_RANLIB"; then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5901$as_echo "$ac_ct_RANLIB" >&6; } 5902else 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5904$as_echo "no" >&6; } 5905fi 5906 5907 if test "x$ac_ct_RANLIB" = x; then 5908 RANLIB=":" 5909 else 5910 case $cross_compiling:$ac_tool_warned in 5911yes:) 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5914ac_tool_warned=yes ;; 5915esac 5916 RANLIB=$ac_ct_RANLIB 5917 fi 5918else 5919 RANLIB="$ac_cv_prog_RANLIB" 5920fi 5921 5922test -z "$RANLIB" && RANLIB=: 5923 5924 5925 5926 5927 5928 5929# Determine commands to create old-style static archives. 5930old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5931old_postinstall_cmds='chmod 644 $oldlib' 5932old_postuninstall_cmds= 5933 5934if test -n "$RANLIB"; then 5935 case $host_os in 5936 bitrig* | openbsd*) 5937 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5938 ;; 5939 *) 5940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5941 ;; 5942 esac 5943 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5944fi 5945 5946case $host_os in 5947 darwin*) 5948 lock_old_archive_extraction=yes ;; 5949 *) 5950 lock_old_archive_extraction=no ;; 5951esac 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991# If no C compiler was specified, use CC. 5992LTCC=${LTCC-"$CC"} 5993 5994# If no C compiler flags were specified, use CFLAGS. 5995LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5996 5997# Allow CC to be a program name with arguments. 5998compiler=$CC 5999 6000 6001# Check for command to grab the raw symbol name followed by C symbol from nm. 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6003$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6004if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 6008# These are sane defaults that work on at least a few old systems. 6009# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6010 6011# Character class describing NM global symbol codes. 6012symcode='[BCDEGRST]' 6013 6014# Regexp to match symbols that can be accessed directly from C. 6015sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6016 6017# Define system-specific variables. 6018case $host_os in 6019aix*) 6020 symcode='[BCDT]' 6021 ;; 6022cygwin* | mingw* | pw32* | cegcc*) 6023 symcode='[ABCDGISTW]' 6024 ;; 6025hpux*) 6026 if test ia64 = "$host_cpu"; then 6027 symcode='[ABCDEGRST]' 6028 fi 6029 ;; 6030irix* | nonstopux*) 6031 symcode='[BCDEGRST]' 6032 ;; 6033osf*) 6034 symcode='[BCDEGQRST]' 6035 ;; 6036solaris*) 6037 symcode='[BDRT]' 6038 ;; 6039sco3.2v5*) 6040 symcode='[DT]' 6041 ;; 6042sysv4.2uw2*) 6043 symcode='[DT]' 6044 ;; 6045sysv5* | sco5v6* | unixware* | OpenUNIX*) 6046 symcode='[ABDT]' 6047 ;; 6048sysv4) 6049 symcode='[DFNSTU]' 6050 ;; 6051esac 6052 6053# If we're using GNU nm, then use its standard symbol codes. 6054case `$NM -V 2>&1` in 6055*GNU* | *'with BFD'*) 6056 symcode='[ABCDGIRSTW]' ;; 6057esac 6058 6059if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6060 # Gets list of data symbols to import. 6061 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6062 # Adjust the below global symbol transforms to fixup imported variables. 6063 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6064 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6065 lt_c_name_lib_hook="\ 6066 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6067 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6068else 6069 # Disable hooks by default. 6070 lt_cv_sys_global_symbol_to_import= 6071 lt_cdecl_hook= 6072 lt_c_name_hook= 6073 lt_c_name_lib_hook= 6074fi 6075 6076# Transform an extracted symbol line into a proper C declaration. 6077# Some systems (esp. on ia64) link data and code symbols differently, 6078# so use this general approach. 6079lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6080$lt_cdecl_hook\ 6081" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6082" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6083 6084# Transform an extracted symbol line into symbol name and symbol address 6085lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6086$lt_c_name_hook\ 6087" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6088" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6089 6090# Transform an extracted symbol line into symbol name with lib prefix and 6091# symbol address. 6092lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6093$lt_c_name_lib_hook\ 6094" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6095" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6096" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6097 6098# Handle CRLF in mingw tool chain 6099opt_cr= 6100case $build_os in 6101mingw*) 6102 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6103 ;; 6104esac 6105 6106# Try without a prefix underscore, then with it. 6107for ac_symprfx in "" "_"; do 6108 6109 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6110 symxfrm="\\1 $ac_symprfx\\2 \\2" 6111 6112 # Write the raw and C identifiers. 6113 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6114 # Fake it for dumpbin and say T for any non-static function, 6115 # D for any global variable and I for any imported variable. 6116 # Also find C++ and __fastcall symbols from MSVC++, 6117 # which start with @ or ?. 6118 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6119" {last_section=section; section=\$ 3};"\ 6120" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6121" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6122" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6123" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6124" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6125" \$ 0!~/External *\|/{next};"\ 6126" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6127" {if(hide[section]) next};"\ 6128" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6129" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6130" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6131" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6132" ' prfx=^$ac_symprfx" 6133 else 6134 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6135 fi 6136 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6137 6138 # Check to see that the pipe works correctly. 6139 pipe_works=no 6140 6141 rm -f conftest* 6142 cat > conftest.$ac_ext <<_LT_EOF 6143#ifdef __cplusplus 6144extern "C" { 6145#endif 6146char nm_test_var; 6147void nm_test_func(void); 6148void nm_test_func(void){} 6149#ifdef __cplusplus 6150} 6151#endif 6152int main(){nm_test_var='a';nm_test_func();return(0);} 6153_LT_EOF 6154 6155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6156 (eval $ac_compile) 2>&5 6157 ac_status=$? 6158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6159 test $ac_status = 0; }; then 6160 # Now try to grab the symbols. 6161 nlist=conftest.nm 6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6163 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6164 ac_status=$? 6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6166 test $ac_status = 0; } && test -s "$nlist"; then 6167 # Try sorting and uniquifying the output. 6168 if sort "$nlist" | uniq > "$nlist"T; then 6169 mv -f "$nlist"T "$nlist" 6170 else 6171 rm -f "$nlist"T 6172 fi 6173 6174 # Make sure that we snagged all the symbols we need. 6175 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6176 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6177 cat <<_LT_EOF > conftest.$ac_ext 6178/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6179#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6180/* DATA imports from DLLs on WIN32 can't be const, because runtime 6181 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6182# define LT_DLSYM_CONST 6183#elif defined __osf__ 6184/* This system does not cope well with relocations in const data. */ 6185# define LT_DLSYM_CONST 6186#else 6187# define LT_DLSYM_CONST const 6188#endif 6189 6190#ifdef __cplusplus 6191extern "C" { 6192#endif 6193 6194_LT_EOF 6195 # Now generate the symbol file. 6196 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6197 6198 cat <<_LT_EOF >> conftest.$ac_ext 6199 6200/* The mapping between symbol names and symbols. */ 6201LT_DLSYM_CONST struct { 6202 const char *name; 6203 void *address; 6204} 6205lt__PROGRAM__LTX_preloaded_symbols[] = 6206{ 6207 { "@PROGRAM@", (void *) 0 }, 6208_LT_EOF 6209 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6210 cat <<\_LT_EOF >> conftest.$ac_ext 6211 {0, (void *) 0} 6212}; 6213 6214/* This works around a problem in FreeBSD linker */ 6215#ifdef FREEBSD_WORKAROUND 6216static const void *lt_preloaded_setup() { 6217 return lt__PROGRAM__LTX_preloaded_symbols; 6218} 6219#endif 6220 6221#ifdef __cplusplus 6222} 6223#endif 6224_LT_EOF 6225 # Now try linking the two files. 6226 mv conftest.$ac_objext conftstm.$ac_objext 6227 lt_globsym_save_LIBS=$LIBS 6228 lt_globsym_save_CFLAGS=$CFLAGS 6229 LIBS=conftstm.$ac_objext 6230 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6232 (eval $ac_link) 2>&5 6233 ac_status=$? 6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6235 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6236 pipe_works=yes 6237 fi 6238 LIBS=$lt_globsym_save_LIBS 6239 CFLAGS=$lt_globsym_save_CFLAGS 6240 else 6241 echo "cannot find nm_test_func in $nlist" >&5 6242 fi 6243 else 6244 echo "cannot find nm_test_var in $nlist" >&5 6245 fi 6246 else 6247 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6248 fi 6249 else 6250 echo "$progname: failed program was:" >&5 6251 cat conftest.$ac_ext >&5 6252 fi 6253 rm -rf conftest* conftst* 6254 6255 # Do not use the global_symbol_pipe unless it works. 6256 if test yes = "$pipe_works"; then 6257 break 6258 else 6259 lt_cv_sys_global_symbol_pipe= 6260 fi 6261done 6262 6263fi 6264 6265if test -z "$lt_cv_sys_global_symbol_pipe"; then 6266 lt_cv_sys_global_symbol_to_cdecl= 6267fi 6268if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6270$as_echo "failed" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6273$as_echo "ok" >&6; } 6274fi 6275 6276# Response file support. 6277if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6278 nm_file_list_spec='@' 6279elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6280 nm_file_list_spec='@' 6281fi 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6320$as_echo_n "checking for sysroot... " >&6; } 6321 6322# Check whether --with-sysroot was given. 6323if test "${with_sysroot+set}" = set; then : 6324 withval=$with_sysroot; 6325else 6326 with_sysroot=no 6327fi 6328 6329 6330lt_sysroot= 6331case $with_sysroot in #( 6332 yes) 6333 if test yes = "$GCC"; then 6334 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6335 fi 6336 ;; #( 6337 /*) 6338 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6339 ;; #( 6340 no|'') 6341 ;; #( 6342 *) 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6344$as_echo "$with_sysroot" >&6; } 6345 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6346 ;; 6347esac 6348 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6350$as_echo "${lt_sysroot:-no}" >&6; } 6351 6352 6353 6354 6355 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6357$as_echo_n "checking for a working dd... " >&6; } 6358if ${ac_cv_path_lt_DD+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 printf 0123456789abcdef0123456789abcdef >conftest.i 6362cat conftest.i conftest.i >conftest2.i 6363: ${lt_DD:=$DD} 6364if test -z "$lt_DD"; then 6365 ac_path_lt_DD_found=false 6366 # Loop through the user's path and test for each of PROGNAME-LIST 6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6368for as_dir in $PATH 6369do 6370 IFS=$as_save_IFS 6371 test -z "$as_dir" && as_dir=. 6372 for ac_prog in dd; do 6373 for ac_exec_ext in '' $ac_executable_extensions; do 6374 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6375 as_fn_executable_p "$ac_path_lt_DD" || continue 6376if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6377 cmp -s conftest.i conftest.out \ 6378 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6379fi 6380 $ac_path_lt_DD_found && break 3 6381 done 6382 done 6383 done 6384IFS=$as_save_IFS 6385 if test -z "$ac_cv_path_lt_DD"; then 6386 : 6387 fi 6388else 6389 ac_cv_path_lt_DD=$lt_DD 6390fi 6391 6392rm -f conftest.i conftest2.i conftest.out 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6395$as_echo "$ac_cv_path_lt_DD" >&6; } 6396 6397 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6399$as_echo_n "checking how to truncate binary pipes... " >&6; } 6400if ${lt_cv_truncate_bin+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 printf 0123456789abcdef0123456789abcdef >conftest.i 6404cat conftest.i conftest.i >conftest2.i 6405lt_cv_truncate_bin= 6406if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6407 cmp -s conftest.i conftest.out \ 6408 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6409fi 6410rm -f conftest.i conftest2.i conftest.out 6411test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6412fi 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6414$as_echo "$lt_cv_truncate_bin" >&6; } 6415 6416 6417 6418 6419 6420 6421# Check whether --enable-libtool-lock was given. 6422if test "${enable_libtool_lock+set}" = set; then : 6423 enableval=$enable_libtool_lock; 6424fi 6425 6426test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6427 6428# Some flags need to be propagated to the compiler or linker for good 6429# libtool support. 6430case $host in 6431ia64-*-hpux*) 6432 # Find out what ABI is being produced by ac_compile, and set mode 6433 # options accordingly. 6434 echo 'int i;' > conftest.$ac_ext 6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6436 (eval $ac_compile) 2>&5 6437 ac_status=$? 6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6439 test $ac_status = 0; }; then 6440 case `/usr/bin/file conftest.$ac_objext` in 6441 *ELF-32*) 6442 HPUX_IA64_MODE=32 6443 ;; 6444 *ELF-64*) 6445 HPUX_IA64_MODE=64 6446 ;; 6447 esac 6448 fi 6449 rm -rf conftest* 6450 ;; 6451*-*-irix6*) 6452 # Find out what ABI is being produced by ac_compile, and set linker 6453 # options accordingly. 6454 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6456 (eval $ac_compile) 2>&5 6457 ac_status=$? 6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6459 test $ac_status = 0; }; then 6460 if test yes = "$lt_cv_prog_gnu_ld"; then 6461 case `/usr/bin/file conftest.$ac_objext` in 6462 *32-bit*) 6463 LD="${LD-ld} -melf32bsmip" 6464 ;; 6465 *N32*) 6466 LD="${LD-ld} -melf32bmipn32" 6467 ;; 6468 *64-bit*) 6469 LD="${LD-ld} -melf64bmip" 6470 ;; 6471 esac 6472 else 6473 case `/usr/bin/file conftest.$ac_objext` in 6474 *32-bit*) 6475 LD="${LD-ld} -32" 6476 ;; 6477 *N32*) 6478 LD="${LD-ld} -n32" 6479 ;; 6480 *64-bit*) 6481 LD="${LD-ld} -64" 6482 ;; 6483 esac 6484 fi 6485 fi 6486 rm -rf conftest* 6487 ;; 6488 6489mips64*-*linux*) 6490 # Find out what ABI is being produced by ac_compile, and set linker 6491 # options accordingly. 6492 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6494 (eval $ac_compile) 2>&5 6495 ac_status=$? 6496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6497 test $ac_status = 0; }; then 6498 emul=elf 6499 case `/usr/bin/file conftest.$ac_objext` in 6500 *32-bit*) 6501 emul="${emul}32" 6502 ;; 6503 *64-bit*) 6504 emul="${emul}64" 6505 ;; 6506 esac 6507 case `/usr/bin/file conftest.$ac_objext` in 6508 *MSB*) 6509 emul="${emul}btsmip" 6510 ;; 6511 *LSB*) 6512 emul="${emul}ltsmip" 6513 ;; 6514 esac 6515 case `/usr/bin/file conftest.$ac_objext` in 6516 *N32*) 6517 emul="${emul}n32" 6518 ;; 6519 esac 6520 LD="${LD-ld} -m $emul" 6521 fi 6522 rm -rf conftest* 6523 ;; 6524 6525x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6526s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6527 # Find out what ABI is being produced by ac_compile, and set linker 6528 # options accordingly. Note that the listed cases only cover the 6529 # situations where additional linker options are needed (such as when 6530 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6531 # vice versa); the common cases where no linker options are needed do 6532 # not appear in the list. 6533 echo 'int i;' > conftest.$ac_ext 6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6535 (eval $ac_compile) 2>&5 6536 ac_status=$? 6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6538 test $ac_status = 0; }; then 6539 case `/usr/bin/file conftest.o` in 6540 *32-bit*) 6541 case $host in 6542 x86_64-*kfreebsd*-gnu) 6543 LD="${LD-ld} -m elf_i386_fbsd" 6544 ;; 6545 x86_64-*linux*) 6546 case `/usr/bin/file conftest.o` in 6547 *x86-64*) 6548 LD="${LD-ld} -m elf32_x86_64" 6549 ;; 6550 *) 6551 LD="${LD-ld} -m elf_i386" 6552 ;; 6553 esac 6554 ;; 6555 powerpc64le-*linux*) 6556 LD="${LD-ld} -m elf32lppclinux" 6557 ;; 6558 powerpc64-*linux*) 6559 LD="${LD-ld} -m elf32ppclinux" 6560 ;; 6561 s390x-*linux*) 6562 LD="${LD-ld} -m elf_s390" 6563 ;; 6564 sparc64-*linux*) 6565 LD="${LD-ld} -m elf32_sparc" 6566 ;; 6567 esac 6568 ;; 6569 *64-bit*) 6570 case $host in 6571 x86_64-*kfreebsd*-gnu) 6572 LD="${LD-ld} -m elf_x86_64_fbsd" 6573 ;; 6574 x86_64-*linux*) 6575 LD="${LD-ld} -m elf_x86_64" 6576 ;; 6577 powerpcle-*linux*) 6578 LD="${LD-ld} -m elf64lppc" 6579 ;; 6580 powerpc-*linux*) 6581 LD="${LD-ld} -m elf64ppc" 6582 ;; 6583 s390*-*linux*|s390*-*tpf*) 6584 LD="${LD-ld} -m elf64_s390" 6585 ;; 6586 sparc*-*linux*) 6587 LD="${LD-ld} -m elf64_sparc" 6588 ;; 6589 esac 6590 ;; 6591 esac 6592 fi 6593 rm -rf conftest* 6594 ;; 6595 6596*-*-sco3.2v5*) 6597 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6598 SAVE_CFLAGS=$CFLAGS 6599 CFLAGS="$CFLAGS -belf" 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6601$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6602if ${lt_cv_cc_needs_belf+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 ac_ext=c 6606ac_cpp='$CPP $CPPFLAGS' 6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6609ac_compiler_gnu=$ac_cv_c_compiler_gnu 6610 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613 6614int 6615main () 6616{ 6617 6618 ; 6619 return 0; 6620} 6621_ACEOF 6622if ac_fn_c_try_link "$LINENO"; then : 6623 lt_cv_cc_needs_belf=yes 6624else 6625 lt_cv_cc_needs_belf=no 6626fi 6627rm -f core conftest.err conftest.$ac_objext \ 6628 conftest$ac_exeext conftest.$ac_ext 6629 ac_ext=c 6630ac_cpp='$CPP $CPPFLAGS' 6631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6633ac_compiler_gnu=$ac_cv_c_compiler_gnu 6634 6635fi 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6637$as_echo "$lt_cv_cc_needs_belf" >&6; } 6638 if test yes != "$lt_cv_cc_needs_belf"; then 6639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6640 CFLAGS=$SAVE_CFLAGS 6641 fi 6642 ;; 6643*-*solaris*) 6644 # Find out what ABI is being produced by ac_compile, and set linker 6645 # options accordingly. 6646 echo 'int i;' > conftest.$ac_ext 6647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6648 (eval $ac_compile) 2>&5 6649 ac_status=$? 6650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6651 test $ac_status = 0; }; then 6652 case `/usr/bin/file conftest.o` in 6653 *64-bit*) 6654 case $lt_cv_prog_gnu_ld in 6655 yes*) 6656 case $host in 6657 i?86-*-solaris*|x86_64-*-solaris*) 6658 LD="${LD-ld} -m elf_x86_64" 6659 ;; 6660 sparc*-*-solaris*) 6661 LD="${LD-ld} -m elf64_sparc" 6662 ;; 6663 esac 6664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6666 LD=${LD-ld}_sol2 6667 fi 6668 ;; 6669 *) 6670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6671 LD="${LD-ld} -64" 6672 fi 6673 ;; 6674 esac 6675 ;; 6676 esac 6677 fi 6678 rm -rf conftest* 6679 ;; 6680esac 6681 6682need_locks=$enable_libtool_lock 6683 6684if test -n "$ac_tool_prefix"; then 6685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6686set dummy ${ac_tool_prefix}mt; ac_word=$2 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$MANIFEST_TOOL"; then 6693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6713if test -n "$MANIFEST_TOOL"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6715$as_echo "$MANIFEST_TOOL" >&6; } 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 6722fi 6723if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6725 # Extract the first word of "mt", so it can be a program name with args. 6726set dummy mt; ac_word=$2 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6728$as_echo_n "checking for $ac_word... " >&6; } 6729if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 if test -n "$ac_ct_MANIFEST_TOOL"; then 6733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747 done 6748IFS=$as_save_IFS 6749 6750fi 6751fi 6752ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6753if test -n "$ac_ct_MANIFEST_TOOL"; then 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6755$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6756else 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6758$as_echo "no" >&6; } 6759fi 6760 6761 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6762 MANIFEST_TOOL=":" 6763 else 6764 case $cross_compiling:$ac_tool_warned in 6765yes:) 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6768ac_tool_warned=yes ;; 6769esac 6770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6771 fi 6772else 6773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6774fi 6775 6776test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6778$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6779if ${lt_cv_path_mainfest_tool+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 lt_cv_path_mainfest_tool=no 6783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6785 cat conftest.err >&5 6786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6787 lt_cv_path_mainfest_tool=yes 6788 fi 6789 rm -f conftest* 6790fi 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6792$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6793if test yes != "$lt_cv_path_mainfest_tool"; then 6794 MANIFEST_TOOL=: 6795fi 6796 6797 6798 6799 6800 6801 6802 case $host_os in 6803 rhapsody* | darwin*) 6804 if test -n "$ac_tool_prefix"; then 6805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6806set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808$as_echo_n "checking for $ac_word... " >&6; } 6809if ${ac_cv_prog_DSYMUTIL+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 if test -n "$DSYMUTIL"; then 6813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6814else 6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816for as_dir in $PATH 6817do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826done 6827 done 6828IFS=$as_save_IFS 6829 6830fi 6831fi 6832DSYMUTIL=$ac_cv_prog_DSYMUTIL 6833if test -n "$DSYMUTIL"; then 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6835$as_echo "$DSYMUTIL" >&6; } 6836else 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838$as_echo "no" >&6; } 6839fi 6840 6841 6842fi 6843if test -z "$ac_cv_prog_DSYMUTIL"; then 6844 ac_ct_DSYMUTIL=$DSYMUTIL 6845 # Extract the first word of "dsymutil", so it can be a program name with args. 6846set dummy dsymutil; ac_word=$2 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6848$as_echo_n "checking for $ac_word... " >&6; } 6849if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 if test -n "$ac_ct_DSYMUTIL"; then 6853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6854else 6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856for as_dir in $PATH 6857do 6858 IFS=$as_save_IFS 6859 test -z "$as_dir" && as_dir=. 6860 for ac_exec_ext in '' $ac_executable_extensions; do 6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6864 break 2 6865 fi 6866done 6867 done 6868IFS=$as_save_IFS 6869 6870fi 6871fi 6872ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6873if test -n "$ac_ct_DSYMUTIL"; then 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6875$as_echo "$ac_ct_DSYMUTIL" >&6; } 6876else 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6878$as_echo "no" >&6; } 6879fi 6880 6881 if test "x$ac_ct_DSYMUTIL" = x; then 6882 DSYMUTIL=":" 6883 else 6884 case $cross_compiling:$ac_tool_warned in 6885yes:) 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6888ac_tool_warned=yes ;; 6889esac 6890 DSYMUTIL=$ac_ct_DSYMUTIL 6891 fi 6892else 6893 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6894fi 6895 6896 if test -n "$ac_tool_prefix"; then 6897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6898set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if ${ac_cv_prog_NMEDIT+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$NMEDIT"; then 6905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924NMEDIT=$ac_cv_prog_NMEDIT 6925if test -n "$NMEDIT"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6927$as_echo "$NMEDIT" >&6; } 6928else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 6934fi 6935if test -z "$ac_cv_prog_NMEDIT"; then 6936 ac_ct_NMEDIT=$NMEDIT 6937 # Extract the first word of "nmedit", so it can be a program name with args. 6938set dummy nmedit; ac_word=$2 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6940$as_echo_n "checking for $ac_word... " >&6; } 6941if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 if test -n "$ac_ct_NMEDIT"; then 6945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6946else 6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6948for as_dir in $PATH 6949do 6950 IFS=$as_save_IFS 6951 test -z "$as_dir" && as_dir=. 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6954 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6956 break 2 6957 fi 6958done 6959 done 6960IFS=$as_save_IFS 6961 6962fi 6963fi 6964ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6965if test -n "$ac_ct_NMEDIT"; then 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6967$as_echo "$ac_ct_NMEDIT" >&6; } 6968else 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6970$as_echo "no" >&6; } 6971fi 6972 6973 if test "x$ac_ct_NMEDIT" = x; then 6974 NMEDIT=":" 6975 else 6976 case $cross_compiling:$ac_tool_warned in 6977yes:) 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6980ac_tool_warned=yes ;; 6981esac 6982 NMEDIT=$ac_ct_NMEDIT 6983 fi 6984else 6985 NMEDIT="$ac_cv_prog_NMEDIT" 6986fi 6987 6988 if test -n "$ac_tool_prefix"; then 6989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6990set dummy ${ac_tool_prefix}lipo; ac_word=$2 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if ${ac_cv_prog_LIPO+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 if test -n "$LIPO"; then 6997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011 done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016LIPO=$ac_cv_prog_LIPO 7017if test -n "$LIPO"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7019$as_echo "$LIPO" >&6; } 7020else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022$as_echo "no" >&6; } 7023fi 7024 7025 7026fi 7027if test -z "$ac_cv_prog_LIPO"; then 7028 ac_ct_LIPO=$LIPO 7029 # Extract the first word of "lipo", so it can be a program name with args. 7030set dummy lipo; ac_word=$2 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7032$as_echo_n "checking for $ac_word... " >&6; } 7033if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 if test -n "$ac_ct_LIPO"; then 7037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7038else 7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7046 ac_cv_prog_ac_ct_LIPO="lipo" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051 done 7052IFS=$as_save_IFS 7053 7054fi 7055fi 7056ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7057if test -n "$ac_ct_LIPO"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7059$as_echo "$ac_ct_LIPO" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064 7065 if test "x$ac_ct_LIPO" = x; then 7066 LIPO=":" 7067 else 7068 case $cross_compiling:$ac_tool_warned in 7069yes:) 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7072ac_tool_warned=yes ;; 7073esac 7074 LIPO=$ac_ct_LIPO 7075 fi 7076else 7077 LIPO="$ac_cv_prog_LIPO" 7078fi 7079 7080 if test -n "$ac_tool_prefix"; then 7081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7082set dummy ${ac_tool_prefix}otool; ac_word=$2 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084$as_echo_n "checking for $ac_word... " >&6; } 7085if ${ac_cv_prog_OTOOL+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 if test -n "$OTOOL"; then 7089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7090else 7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103 done 7104IFS=$as_save_IFS 7105 7106fi 7107fi 7108OTOOL=$ac_cv_prog_OTOOL 7109if test -n "$OTOOL"; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7111$as_echo "$OTOOL" >&6; } 7112else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7114$as_echo "no" >&6; } 7115fi 7116 7117 7118fi 7119if test -z "$ac_cv_prog_OTOOL"; then 7120 ac_ct_OTOOL=$OTOOL 7121 # Extract the first word of "otool", so it can be a program name with args. 7122set dummy otool; ac_word=$2 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124$as_echo_n "checking for $ac_word... " >&6; } 7125if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 if test -n "$ac_ct_OTOOL"; then 7129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7130else 7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7132for as_dir in $PATH 7133do 7134 IFS=$as_save_IFS 7135 test -z "$as_dir" && as_dir=. 7136 for ac_exec_ext in '' $ac_executable_extensions; do 7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7138 ac_cv_prog_ac_ct_OTOOL="otool" 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7140 break 2 7141 fi 7142done 7143 done 7144IFS=$as_save_IFS 7145 7146fi 7147fi 7148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7149if test -n "$ac_ct_OTOOL"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7151$as_echo "$ac_ct_OTOOL" >&6; } 7152else 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7154$as_echo "no" >&6; } 7155fi 7156 7157 if test "x$ac_ct_OTOOL" = x; then 7158 OTOOL=":" 7159 else 7160 case $cross_compiling:$ac_tool_warned in 7161yes:) 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7164ac_tool_warned=yes ;; 7165esac 7166 OTOOL=$ac_ct_OTOOL 7167 fi 7168else 7169 OTOOL="$ac_cv_prog_OTOOL" 7170fi 7171 7172 if test -n "$ac_tool_prefix"; then 7173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7174set dummy ${ac_tool_prefix}otool64; ac_word=$2 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7176$as_echo_n "checking for $ac_word... " >&6; } 7177if ${ac_cv_prog_OTOOL64+:} false; then : 7178 $as_echo_n "(cached) " >&6 7179else 7180 if test -n "$OTOOL64"; then 7181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7182else 7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184for as_dir in $PATH 7185do 7186 IFS=$as_save_IFS 7187 test -z "$as_dir" && as_dir=. 7188 for ac_exec_ext in '' $ac_executable_extensions; do 7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7192 break 2 7193 fi 7194done 7195 done 7196IFS=$as_save_IFS 7197 7198fi 7199fi 7200OTOOL64=$ac_cv_prog_OTOOL64 7201if test -n "$OTOOL64"; then 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7203$as_echo "$OTOOL64" >&6; } 7204else 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7206$as_echo "no" >&6; } 7207fi 7208 7209 7210fi 7211if test -z "$ac_cv_prog_OTOOL64"; then 7212 ac_ct_OTOOL64=$OTOOL64 7213 # Extract the first word of "otool64", so it can be a program name with args. 7214set dummy otool64; ac_word=$2 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7216$as_echo_n "checking for $ac_word... " >&6; } 7217if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7218 $as_echo_n "(cached) " >&6 7219else 7220 if test -n "$ac_ct_OTOOL64"; then 7221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7222else 7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7230 ac_cv_prog_ac_ct_OTOOL64="otool64" 7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234done 7235 done 7236IFS=$as_save_IFS 7237 7238fi 7239fi 7240ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7241if test -n "$ac_ct_OTOOL64"; then 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7243$as_echo "$ac_ct_OTOOL64" >&6; } 7244else 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7246$as_echo "no" >&6; } 7247fi 7248 7249 if test "x$ac_ct_OTOOL64" = x; then 7250 OTOOL64=":" 7251 else 7252 case $cross_compiling:$ac_tool_warned in 7253yes:) 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7256ac_tool_warned=yes ;; 7257esac 7258 OTOOL64=$ac_ct_OTOOL64 7259 fi 7260else 7261 OTOOL64="$ac_cv_prog_OTOOL64" 7262fi 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7291$as_echo_n "checking for -single_module linker flag... " >&6; } 7292if ${lt_cv_apple_cc_single_mod+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 lt_cv_apple_cc_single_mod=no 7296 if test -z "$LT_MULTI_MODULE"; then 7297 # By default we will add the -single_module flag. You can override 7298 # by either setting the environment variable LT_MULTI_MODULE 7299 # non-empty at configure time, or by adding -multi_module to the 7300 # link flags. 7301 rm -rf libconftest.dylib* 7302 echo "int foo(void){return 1;}" > conftest.c 7303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7304-dynamiclib -Wl,-single_module conftest.c" >&5 7305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7307 _lt_result=$? 7308 # If there is a non-empty error log, and "single_module" 7309 # appears in it, assume the flag caused a linker warning 7310 if test -s conftest.err && $GREP single_module conftest.err; then 7311 cat conftest.err >&5 7312 # Otherwise, if the output was created with a 0 exit code from 7313 # the compiler, it worked. 7314 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7315 lt_cv_apple_cc_single_mod=yes 7316 else 7317 cat conftest.err >&5 7318 fi 7319 rm -rf libconftest.dylib* 7320 rm -f conftest.* 7321 fi 7322fi 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7324$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7327$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7328if ${lt_cv_ld_exported_symbols_list+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 lt_cv_ld_exported_symbols_list=no 7332 save_LDFLAGS=$LDFLAGS 7333 echo "_main" > conftest.sym 7334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337 7338int 7339main () 7340{ 7341 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_link "$LINENO"; then : 7347 lt_cv_ld_exported_symbols_list=yes 7348else 7349 lt_cv_ld_exported_symbols_list=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext \ 7352 conftest$ac_exeext conftest.$ac_ext 7353 LDFLAGS=$save_LDFLAGS 7354 7355fi 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7357$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7358 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7360$as_echo_n "checking for -force_load linker flag... " >&6; } 7361if ${lt_cv_ld_force_load+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 lt_cv_ld_force_load=no 7365 cat > conftest.c << _LT_EOF 7366int forced_loaded() { return 2;} 7367_LT_EOF 7368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7370 echo "$AR cru libconftest.a conftest.o" >&5 7371 $AR cru libconftest.a conftest.o 2>&5 7372 echo "$RANLIB libconftest.a" >&5 7373 $RANLIB libconftest.a 2>&5 7374 cat > conftest.c << _LT_EOF 7375int main() { return 0;} 7376_LT_EOF 7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7379 _lt_result=$? 7380 if test -s conftest.err && $GREP force_load conftest.err; then 7381 cat conftest.err >&5 7382 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7383 lt_cv_ld_force_load=yes 7384 else 7385 cat conftest.err >&5 7386 fi 7387 rm -f conftest.err libconftest.a conftest conftest.c 7388 rm -rf conftest.dSYM 7389 7390fi 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7392$as_echo "$lt_cv_ld_force_load" >&6; } 7393 case $host_os in 7394 rhapsody* | darwin1.[012]) 7395 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7396 darwin1.*) 7397 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7398 darwin*) # darwin 5.x on 7399 # if running on 10.5 or later, the deployment target defaults 7400 # to the OS version, if on x86, and 10.4, the deployment 7401 # target defaults to 10.4. Don't you love it? 7402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7403 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7405 10.[012][,.]*) 7406 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7407 10.*) 7408 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7409 esac 7410 ;; 7411 esac 7412 if test yes = "$lt_cv_apple_cc_single_mod"; then 7413 _lt_dar_single_mod='$single_module' 7414 fi 7415 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7416 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7417 else 7418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7419 fi 7420 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7421 _lt_dsymutil='~$DSYMUTIL $lib || :' 7422 else 7423 _lt_dsymutil= 7424 fi 7425 ;; 7426 esac 7427 7428ac_ext=c 7429ac_cpp='$CPP $CPPFLAGS' 7430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7432ac_compiler_gnu=$ac_cv_c_compiler_gnu 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7434$as_echo_n "checking how to run the C preprocessor... " >&6; } 7435# On Suns, sometimes $CPP names a directory. 7436if test -n "$CPP" && test -d "$CPP"; then 7437 CPP= 7438fi 7439if test -z "$CPP"; then 7440 if ${ac_cv_prog_CPP+:} false; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 # Double quotes because CPP needs to be expanded 7444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7445 do 7446 ac_preproc_ok=false 7447for ac_c_preproc_warn_flag in '' yes 7448do 7449 # Use a header file that comes with gcc, so configuring glibc 7450 # with a fresh cross-compiler works. 7451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7452 # <limits.h> exists even on freestanding compilers. 7453 # On the NeXT, cc -E runs the code through the compiler's parser, 7454 # not just through cpp. "Syntax error" is here to catch this case. 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457#ifdef __STDC__ 7458# include <limits.h> 7459#else 7460# include <assert.h> 7461#endif 7462 Syntax error 7463_ACEOF 7464if ac_fn_c_try_cpp "$LINENO"; then : 7465 7466else 7467 # Broken: fails on valid input. 7468continue 7469fi 7470rm -f conftest.err conftest.i conftest.$ac_ext 7471 7472 # OK, works on sane cases. Now check whether nonexistent headers 7473 # can be detected and how. 7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476#include <ac_nonexistent.h> 7477_ACEOF 7478if ac_fn_c_try_cpp "$LINENO"; then : 7479 # Broken: success on invalid input. 7480continue 7481else 7482 # Passes both tests. 7483ac_preproc_ok=: 7484break 7485fi 7486rm -f conftest.err conftest.i conftest.$ac_ext 7487 7488done 7489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7490rm -f conftest.i conftest.err conftest.$ac_ext 7491if $ac_preproc_ok; then : 7492 break 7493fi 7494 7495 done 7496 ac_cv_prog_CPP=$CPP 7497 7498fi 7499 CPP=$ac_cv_prog_CPP 7500else 7501 ac_cv_prog_CPP=$CPP 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7504$as_echo "$CPP" >&6; } 7505ac_preproc_ok=false 7506for ac_c_preproc_warn_flag in '' yes 7507do 7508 # Use a header file that comes with gcc, so configuring glibc 7509 # with a fresh cross-compiler works. 7510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7511 # <limits.h> exists even on freestanding compilers. 7512 # On the NeXT, cc -E runs the code through the compiler's parser, 7513 # not just through cpp. "Syntax error" is here to catch this case. 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516#ifdef __STDC__ 7517# include <limits.h> 7518#else 7519# include <assert.h> 7520#endif 7521 Syntax error 7522_ACEOF 7523if ac_fn_c_try_cpp "$LINENO"; then : 7524 7525else 7526 # Broken: fails on valid input. 7527continue 7528fi 7529rm -f conftest.err conftest.i conftest.$ac_ext 7530 7531 # OK, works on sane cases. Now check whether nonexistent headers 7532 # can be detected and how. 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535#include <ac_nonexistent.h> 7536_ACEOF 7537if ac_fn_c_try_cpp "$LINENO"; then : 7538 # Broken: success on invalid input. 7539continue 7540else 7541 # Passes both tests. 7542ac_preproc_ok=: 7543break 7544fi 7545rm -f conftest.err conftest.i conftest.$ac_ext 7546 7547done 7548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7549rm -f conftest.i conftest.err conftest.$ac_ext 7550if $ac_preproc_ok; then : 7551 7552else 7553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7555as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7556See \`config.log' for more details" "$LINENO" 5; } 7557fi 7558 7559ac_ext=c 7560ac_cpp='$CPP $CPPFLAGS' 7561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7563ac_compiler_gnu=$ac_cv_c_compiler_gnu 7564 7565 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7567$as_echo_n "checking for ANSI C header files... " >&6; } 7568if ${ac_cv_header_stdc+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573#include <stdlib.h> 7574#include <stdarg.h> 7575#include <string.h> 7576#include <float.h> 7577 7578int 7579main () 7580{ 7581 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586if ac_fn_c_try_compile "$LINENO"; then : 7587 ac_cv_header_stdc=yes 7588else 7589 ac_cv_header_stdc=no 7590fi 7591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7592 7593if test $ac_cv_header_stdc = yes; then 7594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597#include <string.h> 7598 7599_ACEOF 7600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7601 $EGREP "memchr" >/dev/null 2>&1; then : 7602 7603else 7604 ac_cv_header_stdc=no 7605fi 7606rm -f conftest* 7607 7608fi 7609 7610if test $ac_cv_header_stdc = yes; then 7611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7613/* end confdefs.h. */ 7614#include <stdlib.h> 7615 7616_ACEOF 7617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7618 $EGREP "free" >/dev/null 2>&1; then : 7619 7620else 7621 ac_cv_header_stdc=no 7622fi 7623rm -f conftest* 7624 7625fi 7626 7627if test $ac_cv_header_stdc = yes; then 7628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7629 if test "$cross_compiling" = yes; then : 7630 : 7631else 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634#include <ctype.h> 7635#include <stdlib.h> 7636#if ((' ' & 0x0FF) == 0x020) 7637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7639#else 7640# define ISLOWER(c) \ 7641 (('a' <= (c) && (c) <= 'i') \ 7642 || ('j' <= (c) && (c) <= 'r') \ 7643 || ('s' <= (c) && (c) <= 'z')) 7644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7645#endif 7646 7647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7648int 7649main () 7650{ 7651 int i; 7652 for (i = 0; i < 256; i++) 7653 if (XOR (islower (i), ISLOWER (i)) 7654 || toupper (i) != TOUPPER (i)) 7655 return 2; 7656 return 0; 7657} 7658_ACEOF 7659if ac_fn_c_try_run "$LINENO"; then : 7660 7661else 7662 ac_cv_header_stdc=no 7663fi 7664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7665 conftest.$ac_objext conftest.beam conftest.$ac_ext 7666fi 7667 7668fi 7669fi 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7671$as_echo "$ac_cv_header_stdc" >&6; } 7672if test $ac_cv_header_stdc = yes; then 7673 7674$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7675 7676fi 7677 7678# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7680 inttypes.h stdint.h unistd.h 7681do : 7682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7683ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7684" 7685if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7686 cat >>confdefs.h <<_ACEOF 7687#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7688_ACEOF 7689 7690fi 7691 7692done 7693 7694 7695for ac_header in dlfcn.h 7696do : 7697 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7698" 7699if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7700 cat >>confdefs.h <<_ACEOF 7701#define HAVE_DLFCN_H 1 7702_ACEOF 7703 7704fi 7705 7706done 7707 7708 7709 7710 7711 7712# Set options 7713 7714 7715 7716 enable_dlopen=no 7717 7718 7719 enable_win32_dll=no 7720 7721 7722 # Check whether --enable-shared was given. 7723if test "${enable_shared+set}" = set; then : 7724 enableval=$enable_shared; p=${PACKAGE-default} 7725 case $enableval in 7726 yes) enable_shared=yes ;; 7727 no) enable_shared=no ;; 7728 *) 7729 enable_shared=no 7730 # Look at the argument we got. We use all the common list separators. 7731 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7732 for pkg in $enableval; do 7733 IFS=$lt_save_ifs 7734 if test "X$pkg" = "X$p"; then 7735 enable_shared=yes 7736 fi 7737 done 7738 IFS=$lt_save_ifs 7739 ;; 7740 esac 7741else 7742 enable_shared=yes 7743fi 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 # Check whether --enable-static was given. 7754if test "${enable_static+set}" = set; then : 7755 enableval=$enable_static; p=${PACKAGE-default} 7756 case $enableval in 7757 yes) enable_static=yes ;; 7758 no) enable_static=no ;; 7759 *) 7760 enable_static=no 7761 # Look at the argument we got. We use all the common list separators. 7762 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7763 for pkg in $enableval; do 7764 IFS=$lt_save_ifs 7765 if test "X$pkg" = "X$p"; then 7766 enable_static=yes 7767 fi 7768 done 7769 IFS=$lt_save_ifs 7770 ;; 7771 esac 7772else 7773 enable_static=yes 7774fi 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785# Check whether --with-pic was given. 7786if test "${with_pic+set}" = set; then : 7787 withval=$with_pic; lt_p=${PACKAGE-default} 7788 case $withval in 7789 yes|no) pic_mode=$withval ;; 7790 *) 7791 pic_mode=default 7792 # Look at the argument we got. We use all the common list separators. 7793 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7794 for lt_pkg in $withval; do 7795 IFS=$lt_save_ifs 7796 if test "X$lt_pkg" = "X$lt_p"; then 7797 pic_mode=yes 7798 fi 7799 done 7800 IFS=$lt_save_ifs 7801 ;; 7802 esac 7803else 7804 pic_mode=default 7805fi 7806 7807 7808 7809 7810 7811 7812 7813 7814 # Check whether --enable-fast-install was given. 7815if test "${enable_fast_install+set}" = set; then : 7816 enableval=$enable_fast_install; p=${PACKAGE-default} 7817 case $enableval in 7818 yes) enable_fast_install=yes ;; 7819 no) enable_fast_install=no ;; 7820 *) 7821 enable_fast_install=no 7822 # Look at the argument we got. We use all the common list separators. 7823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7824 for pkg in $enableval; do 7825 IFS=$lt_save_ifs 7826 if test "X$pkg" = "X$p"; then 7827 enable_fast_install=yes 7828 fi 7829 done 7830 IFS=$lt_save_ifs 7831 ;; 7832 esac 7833else 7834 enable_fast_install=yes 7835fi 7836 7837 7838 7839 7840 7841 7842 7843 7844 shared_archive_member_spec= 7845case $host,$enable_shared in 7846power*-*-aix[5-9]*,yes) 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7848$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7849 7850# Check whether --with-aix-soname was given. 7851if test "${with_aix_soname+set}" = set; then : 7852 withval=$with_aix_soname; case $withval in 7853 aix|svr4|both) 7854 ;; 7855 *) 7856 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7857 ;; 7858 esac 7859 lt_cv_with_aix_soname=$with_aix_soname 7860else 7861 if ${lt_cv_with_aix_soname+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863else 7864 lt_cv_with_aix_soname=aix 7865fi 7866 7867 with_aix_soname=$lt_cv_with_aix_soname 7868fi 7869 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7871$as_echo "$with_aix_soname" >&6; } 7872 if test aix != "$with_aix_soname"; then 7873 # For the AIX way of multilib, we name the shared archive member 7874 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7875 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7876 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7877 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7878 if test 64 = "${OBJECT_MODE-32}"; then 7879 shared_archive_member_spec=shr_64 7880 else 7881 shared_archive_member_spec=shr 7882 fi 7883 fi 7884 ;; 7885*) 7886 with_aix_soname=aix 7887 ;; 7888esac 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899# This can be used to rebuild libtool when needed 7900LIBTOOL_DEPS=$ltmain 7901 7902# Always use our own libtool. 7903LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934test -z "$LN_S" && LN_S="ln -s" 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949if test -n "${ZSH_VERSION+set}"; then 7950 setopt NO_GLOB_SUBST 7951fi 7952 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7954$as_echo_n "checking for objdir... " >&6; } 7955if ${lt_cv_objdir+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 rm -f .libs 2>/dev/null 7959mkdir .libs 2>/dev/null 7960if test -d .libs; then 7961 lt_cv_objdir=.libs 7962else 7963 # MS-DOS does not allow filenames that begin with a dot. 7964 lt_cv_objdir=_libs 7965fi 7966rmdir .libs 2>/dev/null 7967fi 7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7969$as_echo "$lt_cv_objdir" >&6; } 7970objdir=$lt_cv_objdir 7971 7972 7973 7974 7975 7976cat >>confdefs.h <<_ACEOF 7977#define LT_OBJDIR "$lt_cv_objdir/" 7978_ACEOF 7979 7980 7981 7982 7983case $host_os in 7984aix3*) 7985 # AIX sometimes has problems with the GCC collect2 program. For some 7986 # reason, if we set the COLLECT_NAMES environment variable, the problems 7987 # vanish in a puff of smoke. 7988 if test set != "${COLLECT_NAMES+set}"; then 7989 COLLECT_NAMES= 7990 export COLLECT_NAMES 7991 fi 7992 ;; 7993esac 7994 7995# Global variables: 7996ofile=libtool 7997can_build_shared=yes 7998 7999# All known linkers require a '.a' archive for static linking (except MSVC, 8000# which needs '.lib'). 8001libext=a 8002 8003with_gnu_ld=$lt_cv_prog_gnu_ld 8004 8005old_CC=$CC 8006old_CFLAGS=$CFLAGS 8007 8008# Set sane defaults for various variables 8009test -z "$CC" && CC=cc 8010test -z "$LTCC" && LTCC=$CC 8011test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8012test -z "$LD" && LD=ld 8013test -z "$ac_objext" && ac_objext=o 8014 8015for cc_temp in $compiler""; do 8016 case $cc_temp in 8017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8019 \-*) ;; 8020 *) break;; 8021 esac 8022done 8023cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8024 8025 8026# Only perform the check for file, if the check method requires it 8027test -z "$MAGIC_CMD" && MAGIC_CMD=file 8028case $deplibs_check_method in 8029file_magic*) 8030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8032$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8033if ${lt_cv_path_MAGIC_CMD+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 case $MAGIC_CMD in 8037[\\/*] | ?:[\\/]*) 8038 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8039 ;; 8040*) 8041 lt_save_MAGIC_CMD=$MAGIC_CMD 8042 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8044 for ac_dir in $ac_dummy; do 8045 IFS=$lt_save_ifs 8046 test -z "$ac_dir" && ac_dir=. 8047 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8048 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8049 if test -n "$file_magic_test_file"; then 8050 case $deplibs_check_method in 8051 "file_magic "*) 8052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8053 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8055 $EGREP "$file_magic_regex" > /dev/null; then 8056 : 8057 else 8058 cat <<_LT_EOF 1>&2 8059 8060*** Warning: the command libtool uses to detect shared libraries, 8061*** $file_magic_cmd, produces output that libtool cannot recognize. 8062*** The result is that libtool may fail to recognize shared libraries 8063*** as such. This will affect the creation of libtool libraries that 8064*** depend on shared libraries, but programs linked with such libtool 8065*** libraries will work regardless of this problem. Nevertheless, you 8066*** may want to report the problem to your system manager and/or to 8067*** [email protected] 8068 8069_LT_EOF 8070 fi ;; 8071 esac 8072 fi 8073 break 8074 fi 8075 done 8076 IFS=$lt_save_ifs 8077 MAGIC_CMD=$lt_save_MAGIC_CMD 8078 ;; 8079esac 8080fi 8081 8082MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8083if test -n "$MAGIC_CMD"; then 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8085$as_echo "$MAGIC_CMD" >&6; } 8086else 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8088$as_echo "no" >&6; } 8089fi 8090 8091 8092 8093 8094 8095if test -z "$lt_cv_path_MAGIC_CMD"; then 8096 if test -n "$ac_tool_prefix"; then 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8098$as_echo_n "checking for file... " >&6; } 8099if ${lt_cv_path_MAGIC_CMD+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 case $MAGIC_CMD in 8103[\\/*] | ?:[\\/]*) 8104 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8105 ;; 8106*) 8107 lt_save_MAGIC_CMD=$MAGIC_CMD 8108 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8110 for ac_dir in $ac_dummy; do 8111 IFS=$lt_save_ifs 8112 test -z "$ac_dir" && ac_dir=. 8113 if test -f "$ac_dir/file"; then 8114 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8115 if test -n "$file_magic_test_file"; then 8116 case $deplibs_check_method in 8117 "file_magic "*) 8118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8119 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8121 $EGREP "$file_magic_regex" > /dev/null; then 8122 : 8123 else 8124 cat <<_LT_EOF 1>&2 8125 8126*** Warning: the command libtool uses to detect shared libraries, 8127*** $file_magic_cmd, produces output that libtool cannot recognize. 8128*** The result is that libtool may fail to recognize shared libraries 8129*** as such. This will affect the creation of libtool libraries that 8130*** depend on shared libraries, but programs linked with such libtool 8131*** libraries will work regardless of this problem. Nevertheless, you 8132*** may want to report the problem to your system manager and/or to 8133*** [email protected] 8134 8135_LT_EOF 8136 fi ;; 8137 esac 8138 fi 8139 break 8140 fi 8141 done 8142 IFS=$lt_save_ifs 8143 MAGIC_CMD=$lt_save_MAGIC_CMD 8144 ;; 8145esac 8146fi 8147 8148MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8149if test -n "$MAGIC_CMD"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8151$as_echo "$MAGIC_CMD" >&6; } 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156 8157 8158 else 8159 MAGIC_CMD=: 8160 fi 8161fi 8162 8163 fi 8164 ;; 8165esac 8166 8167# Use C for the default configuration in the libtool script 8168 8169lt_save_CC=$CC 8170ac_ext=c 8171ac_cpp='$CPP $CPPFLAGS' 8172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8174ac_compiler_gnu=$ac_cv_c_compiler_gnu 8175 8176 8177# Source file extension for C test sources. 8178ac_ext=c 8179 8180# Object file extension for compiled C test sources. 8181objext=o 8182objext=$objext 8183 8184# Code to be used in simple compile tests 8185lt_simple_compile_test_code="int some_variable = 0;" 8186 8187# Code to be used in simple link tests 8188lt_simple_link_test_code='int main(){return(0);}' 8189 8190 8191 8192 8193 8194 8195 8196# If no C compiler was specified, use CC. 8197LTCC=${LTCC-"$CC"} 8198 8199# If no C compiler flags were specified, use CFLAGS. 8200LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8201 8202# Allow CC to be a program name with arguments. 8203compiler=$CC 8204 8205# Save the default compiler, since it gets overwritten when the other 8206# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8207compiler_DEFAULT=$CC 8208 8209# save warnings/boilerplate of simple test code 8210ac_outfile=conftest.$ac_objext 8211echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8213_lt_compiler_boilerplate=`cat conftest.err` 8214$RM conftest* 8215 8216ac_outfile=conftest.$ac_objext 8217echo "$lt_simple_link_test_code" >conftest.$ac_ext 8218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8219_lt_linker_boilerplate=`cat conftest.err` 8220$RM -r conftest* 8221 8222 8223if test -n "$compiler"; then 8224 8225lt_prog_compiler_no_builtin_flag= 8226 8227if test yes = "$GCC"; then 8228 case $cc_basename in 8229 nvcc*) 8230 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8231 *) 8232 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8233 esac 8234 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8236$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8237if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 lt_cv_prog_compiler_rtti_exceptions=no 8241 ac_outfile=conftest.$ac_objext 8242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8243 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8244 # Insert the option either (1) after the last *FLAGS variable, or 8245 # (2) before a word containing "conftest.", or (3) at the end. 8246 # Note that $ac_compile itself does not contain backslashes and begins 8247 # with a dollar sign (not a hyphen), so the echo should work correctly. 8248 # The option is referenced via a variable to avoid confusing sed. 8249 lt_compile=`echo "$ac_compile" | $SED \ 8250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8252 -e 's:$: $lt_compiler_flag:'` 8253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8254 (eval "$lt_compile" 2>conftest.err) 8255 ac_status=$? 8256 cat conftest.err >&5 8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8258 if (exit $ac_status) && test -s "$ac_outfile"; then 8259 # The compiler can only warn and ignore the option if not recognized 8260 # So say no if there are warnings other than the usual output. 8261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8264 lt_cv_prog_compiler_rtti_exceptions=yes 8265 fi 8266 fi 8267 $RM conftest* 8268 8269fi 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8271$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8272 8273if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8274 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8275else 8276 : 8277fi 8278 8279fi 8280 8281 8282 8283 8284 8285 8286 lt_prog_compiler_wl= 8287lt_prog_compiler_pic= 8288lt_prog_compiler_static= 8289 8290 8291 if test yes = "$GCC"; then 8292 lt_prog_compiler_wl='-Wl,' 8293 lt_prog_compiler_static='-static' 8294 8295 case $host_os in 8296 aix*) 8297 # All AIX code is PIC. 8298 if test ia64 = "$host_cpu"; then 8299 # AIX 5 now supports IA64 processor 8300 lt_prog_compiler_static='-Bstatic' 8301 fi 8302 lt_prog_compiler_pic='-fPIC' 8303 ;; 8304 8305 amigaos*) 8306 case $host_cpu in 8307 powerpc) 8308 # see comment about AmigaOS4 .so support 8309 lt_prog_compiler_pic='-fPIC' 8310 ;; 8311 m68k) 8312 # FIXME: we need at least 68020 code to build shared libraries, but 8313 # adding the '-m68020' flag to GCC prevents building anything better, 8314 # like '-m68040'. 8315 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8316 ;; 8317 esac 8318 ;; 8319 8320 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8321 # PIC is the default for these OSes. 8322 ;; 8323 8324 mingw* | cygwin* | pw32* | os2* | cegcc*) 8325 # This hack is so that the source file can tell whether it is being 8326 # built for inclusion in a dll (and should export symbols for example). 8327 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8328 # (--disable-auto-import) libraries 8329 lt_prog_compiler_pic='-DDLL_EXPORT' 8330 case $host_os in 8331 os2*) 8332 lt_prog_compiler_static='$wl-static' 8333 ;; 8334 esac 8335 ;; 8336 8337 darwin* | rhapsody*) 8338 # PIC is the default on this platform 8339 # Common symbols not allowed in MH_DYLIB files 8340 lt_prog_compiler_pic='-fno-common' 8341 ;; 8342 8343 haiku*) 8344 # PIC is the default for Haiku. 8345 # The "-static" flag exists, but is broken. 8346 lt_prog_compiler_static= 8347 ;; 8348 8349 hpux*) 8350 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8351 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8352 # sets the default TLS model and affects inlining. 8353 case $host_cpu in 8354 hppa*64*) 8355 # +Z the default 8356 ;; 8357 *) 8358 lt_prog_compiler_pic='-fPIC' 8359 ;; 8360 esac 8361 ;; 8362 8363 interix[3-9]*) 8364 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8365 # Instead, we relocate shared libraries at runtime. 8366 ;; 8367 8368 msdosdjgpp*) 8369 # Just because we use GCC doesn't mean we suddenly get shared libraries 8370 # on systems that don't support them. 8371 lt_prog_compiler_can_build_shared=no 8372 enable_shared=no 8373 ;; 8374 8375 *nto* | *qnx*) 8376 # QNX uses GNU C++, but need to define -shared option too, otherwise 8377 # it will coredump. 8378 lt_prog_compiler_pic='-fPIC -shared' 8379 ;; 8380 8381 sysv4*MP*) 8382 if test -d /usr/nec; then 8383 lt_prog_compiler_pic=-Kconform_pic 8384 fi 8385 ;; 8386 8387 *) 8388 lt_prog_compiler_pic='-fPIC' 8389 ;; 8390 esac 8391 8392 case $cc_basename in 8393 nvcc*) # Cuda Compiler Driver 2.2 8394 lt_prog_compiler_wl='-Xlinker ' 8395 if test -n "$lt_prog_compiler_pic"; then 8396 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8397 fi 8398 ;; 8399 esac 8400 else 8401 # PORTME Check for flag to pass linker flags through the system compiler. 8402 case $host_os in 8403 aix*) 8404 lt_prog_compiler_wl='-Wl,' 8405 if test ia64 = "$host_cpu"; then 8406 # AIX 5 now supports IA64 processor 8407 lt_prog_compiler_static='-Bstatic' 8408 else 8409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8410 fi 8411 ;; 8412 8413 darwin* | rhapsody*) 8414 # PIC is the default on this platform 8415 # Common symbols not allowed in MH_DYLIB files 8416 lt_prog_compiler_pic='-fno-common' 8417 case $cc_basename in 8418 nagfor*) 8419 # NAG Fortran compiler 8420 lt_prog_compiler_wl='-Wl,-Wl,,' 8421 lt_prog_compiler_pic='-PIC' 8422 lt_prog_compiler_static='-Bstatic' 8423 ;; 8424 esac 8425 ;; 8426 8427 mingw* | cygwin* | pw32* | os2* | cegcc*) 8428 # This hack is so that the source file can tell whether it is being 8429 # built for inclusion in a dll (and should export symbols for example). 8430 lt_prog_compiler_pic='-DDLL_EXPORT' 8431 case $host_os in 8432 os2*) 8433 lt_prog_compiler_static='$wl-static' 8434 ;; 8435 esac 8436 ;; 8437 8438 hpux9* | hpux10* | hpux11*) 8439 lt_prog_compiler_wl='-Wl,' 8440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8441 # not for PA HP-UX. 8442 case $host_cpu in 8443 hppa*64*|ia64*) 8444 # +Z the default 8445 ;; 8446 *) 8447 lt_prog_compiler_pic='+Z' 8448 ;; 8449 esac 8450 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8451 lt_prog_compiler_static='$wl-a ${wl}archive' 8452 ;; 8453 8454 irix5* | irix6* | nonstopux*) 8455 lt_prog_compiler_wl='-Wl,' 8456 # PIC (with -KPIC) is the default. 8457 lt_prog_compiler_static='-non_shared' 8458 ;; 8459 8460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8461 case $cc_basename in 8462 # old Intel for x86_64, which still supported -KPIC. 8463 ecc*) 8464 lt_prog_compiler_wl='-Wl,' 8465 lt_prog_compiler_pic='-KPIC' 8466 lt_prog_compiler_static='-static' 8467 ;; 8468 # icc used to be incompatible with GCC. 8469 # ICC 10 doesn't accept -KPIC any more. 8470 icc* | ifort*) 8471 lt_prog_compiler_wl='-Wl,' 8472 lt_prog_compiler_pic='-fPIC' 8473 lt_prog_compiler_static='-static' 8474 ;; 8475 # Lahey Fortran 8.1. 8476 lf95*) 8477 lt_prog_compiler_wl='-Wl,' 8478 lt_prog_compiler_pic='--shared' 8479 lt_prog_compiler_static='--static' 8480 ;; 8481 nagfor*) 8482 # NAG Fortran compiler 8483 lt_prog_compiler_wl='-Wl,-Wl,,' 8484 lt_prog_compiler_pic='-PIC' 8485 lt_prog_compiler_static='-Bstatic' 8486 ;; 8487 tcc*) 8488 # Fabrice Bellard et al's Tiny C Compiler 8489 lt_prog_compiler_wl='-Wl,' 8490 lt_prog_compiler_pic='-fPIC' 8491 lt_prog_compiler_static='-static' 8492 ;; 8493 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8494 # Portland Group compilers (*not* the Pentium gcc compiler, 8495 # which looks to be a dead project) 8496 lt_prog_compiler_wl='-Wl,' 8497 lt_prog_compiler_pic='-fpic' 8498 lt_prog_compiler_static='-Bstatic' 8499 ;; 8500 ccc*) 8501 lt_prog_compiler_wl='-Wl,' 8502 # All Alpha code is PIC. 8503 lt_prog_compiler_static='-non_shared' 8504 ;; 8505 xl* | bgxl* | bgf* | mpixl*) 8506 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8507 lt_prog_compiler_wl='-Wl,' 8508 lt_prog_compiler_pic='-qpic' 8509 lt_prog_compiler_static='-qstaticlink' 8510 ;; 8511 *) 8512 case `$CC -V 2>&1 | sed 5q` in 8513 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8514 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8515 lt_prog_compiler_pic='-KPIC' 8516 lt_prog_compiler_static='-Bstatic' 8517 lt_prog_compiler_wl='' 8518 ;; 8519 *Sun\ F* | *Sun*Fortran*) 8520 lt_prog_compiler_pic='-KPIC' 8521 lt_prog_compiler_static='-Bstatic' 8522 lt_prog_compiler_wl='-Qoption ld ' 8523 ;; 8524 *Sun\ C*) 8525 # Sun C 5.9 8526 lt_prog_compiler_pic='-KPIC' 8527 lt_prog_compiler_static='-Bstatic' 8528 lt_prog_compiler_wl='-Wl,' 8529 ;; 8530 *Intel*\ [CF]*Compiler*) 8531 lt_prog_compiler_wl='-Wl,' 8532 lt_prog_compiler_pic='-fPIC' 8533 lt_prog_compiler_static='-static' 8534 ;; 8535 *Portland\ Group*) 8536 lt_prog_compiler_wl='-Wl,' 8537 lt_prog_compiler_pic='-fpic' 8538 lt_prog_compiler_static='-Bstatic' 8539 ;; 8540 esac 8541 ;; 8542 esac 8543 ;; 8544 8545 newsos6) 8546 lt_prog_compiler_pic='-KPIC' 8547 lt_prog_compiler_static='-Bstatic' 8548 ;; 8549 8550 *nto* | *qnx*) 8551 # QNX uses GNU C++, but need to define -shared option too, otherwise 8552 # it will coredump. 8553 lt_prog_compiler_pic='-fPIC -shared' 8554 ;; 8555 8556 osf3* | osf4* | osf5*) 8557 lt_prog_compiler_wl='-Wl,' 8558 # All OSF/1 code is PIC. 8559 lt_prog_compiler_static='-non_shared' 8560 ;; 8561 8562 rdos*) 8563 lt_prog_compiler_static='-non_shared' 8564 ;; 8565 8566 solaris*) 8567 lt_prog_compiler_pic='-KPIC' 8568 lt_prog_compiler_static='-Bstatic' 8569 case $cc_basename in 8570 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8571 lt_prog_compiler_wl='-Qoption ld ';; 8572 *) 8573 lt_prog_compiler_wl='-Wl,';; 8574 esac 8575 ;; 8576 8577 sunos4*) 8578 lt_prog_compiler_wl='-Qoption ld ' 8579 lt_prog_compiler_pic='-PIC' 8580 lt_prog_compiler_static='-Bstatic' 8581 ;; 8582 8583 sysv4 | sysv4.2uw2* | sysv4.3*) 8584 lt_prog_compiler_wl='-Wl,' 8585 lt_prog_compiler_pic='-KPIC' 8586 lt_prog_compiler_static='-Bstatic' 8587 ;; 8588 8589 sysv4*MP*) 8590 if test -d /usr/nec; then 8591 lt_prog_compiler_pic='-Kconform_pic' 8592 lt_prog_compiler_static='-Bstatic' 8593 fi 8594 ;; 8595 8596 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8597 lt_prog_compiler_wl='-Wl,' 8598 lt_prog_compiler_pic='-KPIC' 8599 lt_prog_compiler_static='-Bstatic' 8600 ;; 8601 8602 unicos*) 8603 lt_prog_compiler_wl='-Wl,' 8604 lt_prog_compiler_can_build_shared=no 8605 ;; 8606 8607 uts4*) 8608 lt_prog_compiler_pic='-pic' 8609 lt_prog_compiler_static='-Bstatic' 8610 ;; 8611 8612 *) 8613 lt_prog_compiler_can_build_shared=no 8614 ;; 8615 esac 8616 fi 8617 8618case $host_os in 8619 # For platforms that do not support PIC, -DPIC is meaningless: 8620 *djgpp*) 8621 lt_prog_compiler_pic= 8622 ;; 8623 *) 8624 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8625 ;; 8626esac 8627 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8629$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8630if ${lt_cv_prog_compiler_pic+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8634fi 8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8636$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8637lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8638 8639# 8640# Check to make sure the PIC flag actually works. 8641# 8642if test -n "$lt_prog_compiler_pic"; then 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8644$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8645if ${lt_cv_prog_compiler_pic_works+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 lt_cv_prog_compiler_pic_works=no 8649 ac_outfile=conftest.$ac_objext 8650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8651 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8652 # Insert the option either (1) after the last *FLAGS variable, or 8653 # (2) before a word containing "conftest.", or (3) at the end. 8654 # Note that $ac_compile itself does not contain backslashes and begins 8655 # with a dollar sign (not a hyphen), so the echo should work correctly. 8656 # The option is referenced via a variable to avoid confusing sed. 8657 lt_compile=`echo "$ac_compile" | $SED \ 8658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8660 -e 's:$: $lt_compiler_flag:'` 8661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8662 (eval "$lt_compile" 2>conftest.err) 8663 ac_status=$? 8664 cat conftest.err >&5 8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8666 if (exit $ac_status) && test -s "$ac_outfile"; then 8667 # The compiler can only warn and ignore the option if not recognized 8668 # So say no if there are warnings other than the usual output. 8669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8672 lt_cv_prog_compiler_pic_works=yes 8673 fi 8674 fi 8675 $RM conftest* 8676 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8679$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8680 8681if test yes = "$lt_cv_prog_compiler_pic_works"; then 8682 case $lt_prog_compiler_pic in 8683 "" | " "*) ;; 8684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8685 esac 8686else 8687 lt_prog_compiler_pic= 8688 lt_prog_compiler_can_build_shared=no 8689fi 8690 8691fi 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703# 8704# Check to make sure the static flag actually works. 8705# 8706wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8708$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8709if ${lt_cv_prog_compiler_static_works+:} false; then : 8710 $as_echo_n "(cached) " >&6 8711else 8712 lt_cv_prog_compiler_static_works=no 8713 save_LDFLAGS=$LDFLAGS 8714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8715 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8717 # The linker can only warn and ignore the option if not recognized 8718 # So say no if there are warnings 8719 if test -s conftest.err; then 8720 # Append any errors to the config.log. 8721 cat conftest.err 1>&5 8722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8724 if diff conftest.exp conftest.er2 >/dev/null; then 8725 lt_cv_prog_compiler_static_works=yes 8726 fi 8727 else 8728 lt_cv_prog_compiler_static_works=yes 8729 fi 8730 fi 8731 $RM -r conftest* 8732 LDFLAGS=$save_LDFLAGS 8733 8734fi 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8736$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8737 8738if test yes = "$lt_cv_prog_compiler_static_works"; then 8739 : 8740else 8741 lt_prog_compiler_static= 8742fi 8743 8744 8745 8746 8747 8748 8749 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8752if ${lt_cv_prog_compiler_c_o+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 lt_cv_prog_compiler_c_o=no 8756 $RM -r conftest 2>/dev/null 8757 mkdir conftest 8758 cd conftest 8759 mkdir out 8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8761 8762 lt_compiler_flag="-o out/conftest2.$ac_objext" 8763 # Insert the option either (1) after the last *FLAGS variable, or 8764 # (2) before a word containing "conftest.", or (3) at the end. 8765 # Note that $ac_compile itself does not contain backslashes and begins 8766 # with a dollar sign (not a hyphen), so the echo should work correctly. 8767 lt_compile=`echo "$ac_compile" | $SED \ 8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8770 -e 's:$: $lt_compiler_flag:'` 8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8772 (eval "$lt_compile" 2>out/conftest.err) 8773 ac_status=$? 8774 cat out/conftest.err >&5 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8776 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8777 then 8778 # The compiler can only warn and ignore the option if not recognized 8779 # So say no if there are warnings 8780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8783 lt_cv_prog_compiler_c_o=yes 8784 fi 8785 fi 8786 chmod u+w . 2>&5 8787 $RM conftest* 8788 # SGI C++ compiler will create directory out/ii_files/ for 8789 # template instantiation 8790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8791 $RM out/* && rmdir out 8792 cd .. 8793 $RM -r conftest 8794 $RM conftest* 8795 8796fi 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8798$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8799 8800 8801 8802 8803 8804 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8806$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8807if ${lt_cv_prog_compiler_c_o+:} false; then : 8808 $as_echo_n "(cached) " >&6 8809else 8810 lt_cv_prog_compiler_c_o=no 8811 $RM -r conftest 2>/dev/null 8812 mkdir conftest 8813 cd conftest 8814 mkdir out 8815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8816 8817 lt_compiler_flag="-o out/conftest2.$ac_objext" 8818 # Insert the option either (1) after the last *FLAGS variable, or 8819 # (2) before a word containing "conftest.", or (3) at the end. 8820 # Note that $ac_compile itself does not contain backslashes and begins 8821 # with a dollar sign (not a hyphen), so the echo should work correctly. 8822 lt_compile=`echo "$ac_compile" | $SED \ 8823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8825 -e 's:$: $lt_compiler_flag:'` 8826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8827 (eval "$lt_compile" 2>out/conftest.err) 8828 ac_status=$? 8829 cat out/conftest.err >&5 8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8831 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8832 then 8833 # The compiler can only warn and ignore the option if not recognized 8834 # So say no if there are warnings 8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8838 lt_cv_prog_compiler_c_o=yes 8839 fi 8840 fi 8841 chmod u+w . 2>&5 8842 $RM conftest* 8843 # SGI C++ compiler will create directory out/ii_files/ for 8844 # template instantiation 8845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8846 $RM out/* && rmdir out 8847 cd .. 8848 $RM -r conftest 8849 $RM conftest* 8850 8851fi 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8853$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8854 8855 8856 8857 8858hard_links=nottested 8859if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8860 # do not overwrite the value of need_locks provided by the user 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8862$as_echo_n "checking if we can lock with hard links... " >&6; } 8863 hard_links=yes 8864 $RM conftest* 8865 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8866 touch conftest.a 8867 ln conftest.a conftest.b 2>&5 || hard_links=no 8868 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8870$as_echo "$hard_links" >&6; } 8871 if test no = "$hard_links"; then 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8873$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8874 need_locks=warn 8875 fi 8876else 8877 need_locks=no 8878fi 8879 8880 8881 8882 8883 8884 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8886$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8887 8888 runpath_var= 8889 allow_undefined_flag= 8890 always_export_symbols=no 8891 archive_cmds= 8892 archive_expsym_cmds= 8893 compiler_needs_object=no 8894 enable_shared_with_static_runtimes=no 8895 export_dynamic_flag_spec= 8896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8897 hardcode_automatic=no 8898 hardcode_direct=no 8899 hardcode_direct_absolute=no 8900 hardcode_libdir_flag_spec= 8901 hardcode_libdir_separator= 8902 hardcode_minus_L=no 8903 hardcode_shlibpath_var=unsupported 8904 inherit_rpath=no 8905 link_all_deplibs=unknown 8906 module_cmds= 8907 module_expsym_cmds= 8908 old_archive_from_new_cmds= 8909 old_archive_from_expsyms_cmds= 8910 thread_safe_flag_spec= 8911 whole_archive_flag_spec= 8912 # include_expsyms should be a list of space-separated symbols to be *always* 8913 # included in the symbol list 8914 include_expsyms= 8915 # exclude_expsyms can be an extended regexp of symbols to exclude 8916 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8917 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8918 # as well as any symbol that contains 'd'. 8919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8921 # platforms (ab)use it in PIC code, but their linkers get confused if 8922 # the symbol is explicitly referenced. Since portable code cannot 8923 # rely on this symbol name, it's probably fine to never include it in 8924 # preloaded symbol tables. 8925 # Exclude shared library initialization/finalization symbols. 8926 extract_expsyms_cmds= 8927 8928 case $host_os in 8929 cygwin* | mingw* | pw32* | cegcc*) 8930 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8931 # When not using gcc, we currently assume that we are using 8932 # Microsoft Visual C++. 8933 if test yes != "$GCC"; then 8934 with_gnu_ld=no 8935 fi 8936 ;; 8937 interix*) 8938 # we just hope/assume this is gcc and not c89 (= MSVC++) 8939 with_gnu_ld=yes 8940 ;; 8941 openbsd* | bitrig*) 8942 with_gnu_ld=no 8943 ;; 8944 esac 8945 8946 ld_shlibs=yes 8947 8948 # On some targets, GNU ld is compatible enough with the native linker 8949 # that we're better off using the native interface for both. 8950 lt_use_gnu_ld_interface=no 8951 if test yes = "$with_gnu_ld"; then 8952 case $host_os in 8953 aix*) 8954 # The AIX port of GNU ld has always aspired to compatibility 8955 # with the native linker. However, as the warning in the GNU ld 8956 # block says, versions before 2.19.5* couldn't really create working 8957 # shared libraries, regardless of the interface used. 8958 case `$LD -v 2>&1` in 8959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8961 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8962 *) 8963 lt_use_gnu_ld_interface=yes 8964 ;; 8965 esac 8966 ;; 8967 *) 8968 lt_use_gnu_ld_interface=yes 8969 ;; 8970 esac 8971 fi 8972 8973 if test yes = "$lt_use_gnu_ld_interface"; then 8974 # If archive_cmds runs LD, not CC, wlarc should be empty 8975 wlarc='$wl' 8976 8977 # Set some defaults for GNU ld with shared library support. These 8978 # are reset later if shared libraries are not supported. Putting them 8979 # here allows them to be overridden if necessary. 8980 runpath_var=LD_RUN_PATH 8981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8982 export_dynamic_flag_spec='$wl--export-dynamic' 8983 # ancient GNU ld didn't support --whole-archive et. al. 8984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8985 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8986 else 8987 whole_archive_flag_spec= 8988 fi 8989 supports_anon_versioning=no 8990 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8991 *GNU\ gold*) supports_anon_versioning=yes ;; 8992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8995 *\ 2.11.*) ;; # other 2.11 versions 8996 *) supports_anon_versioning=yes ;; 8997 esac 8998 8999 # See if GNU ld supports shared libraries. 9000 case $host_os in 9001 aix[3-9]*) 9002 # On AIX/PPC, the GNU linker is very broken 9003 if test ia64 != "$host_cpu"; then 9004 ld_shlibs=no 9005 cat <<_LT_EOF 1>&2 9006 9007*** Warning: the GNU linker, at least up to release 2.19, is reported 9008*** to be unable to reliably create shared libraries on AIX. 9009*** Therefore, libtool is disabling shared libraries support. If you 9010*** really care for shared libraries, you may want to install binutils 9011*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9012*** You will then need to restart the configuration process. 9013 9014_LT_EOF 9015 fi 9016 ;; 9017 9018 amigaos*) 9019 case $host_cpu in 9020 powerpc) 9021 # see comment about AmigaOS4 .so support 9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9023 archive_expsym_cmds='' 9024 ;; 9025 m68k) 9026 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)' 9027 hardcode_libdir_flag_spec='-L$libdir' 9028 hardcode_minus_L=yes 9029 ;; 9030 esac 9031 ;; 9032 9033 beos*) 9034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9035 allow_undefined_flag=unsupported 9036 # Joseph Beckenbach <[email protected]> says some releases of gcc 9037 # support --undefined. This deserves some investigation. FIXME 9038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9039 else 9040 ld_shlibs=no 9041 fi 9042 ;; 9043 9044 cygwin* | mingw* | pw32* | cegcc*) 9045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9046 # as there is no search path for DLLs. 9047 hardcode_libdir_flag_spec='-L$libdir' 9048 export_dynamic_flag_spec='$wl--export-all-symbols' 9049 allow_undefined_flag=unsupported 9050 always_export_symbols=no 9051 enable_shared_with_static_runtimes=yes 9052 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' 9053 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9054 9055 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9057 # If the export-symbols file already is a .def file, use it as 9058 # is; otherwise, prepend EXPORTS... 9059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9060 cp $export_symbols $output_objdir/$soname.def; 9061 else 9062 echo EXPORTS > $output_objdir/$soname.def; 9063 cat $export_symbols >> $output_objdir/$soname.def; 9064 fi~ 9065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9066 else 9067 ld_shlibs=no 9068 fi 9069 ;; 9070 9071 haiku*) 9072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9073 link_all_deplibs=yes 9074 ;; 9075 9076 os2*) 9077 hardcode_libdir_flag_spec='-L$libdir' 9078 hardcode_minus_L=yes 9079 allow_undefined_flag=unsupported 9080 shrext_cmds=.dll 9081 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9082 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9083 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9084 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9085 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9087 emximp -o $lib $output_objdir/$libname.def' 9088 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9091 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9092 prefix_cmds="$SED"~ 9093 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9094 prefix_cmds="$prefix_cmds -e 1d"; 9095 fi~ 9096 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9097 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9099 emximp -o $lib $output_objdir/$libname.def' 9100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9101 enable_shared_with_static_runtimes=yes 9102 ;; 9103 9104 interix[3-9]*) 9105 hardcode_direct=no 9106 hardcode_shlibpath_var=no 9107 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9108 export_dynamic_flag_spec='$wl-E' 9109 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9110 # Instead, shared libraries are loaded at an image base (0x10000000 by 9111 # default) and relocated if they conflict, which is a slow very memory 9112 # consuming and fragmenting process. To avoid this, we pick a random, 9113 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9114 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9116 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' 9117 ;; 9118 9119 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9120 tmp_diet=no 9121 if test linux-dietlibc = "$host_os"; then 9122 case $cc_basename in 9123 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9124 esac 9125 fi 9126 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9127 && test no = "$tmp_diet" 9128 then 9129 tmp_addflag=' $pic_flag' 9130 tmp_sharedflag='-shared' 9131 case $cc_basename,$host_cpu in 9132 pgcc*) # Portland Group C compiler 9133 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' 9134 tmp_addflag=' $pic_flag' 9135 ;; 9136 pgf77* | pgf90* | pgf95* | pgfortran*) 9137 # Portland Group f77 and f90 compilers 9138 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' 9139 tmp_addflag=' $pic_flag -Mnomain' ;; 9140 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9141 tmp_addflag=' -i_dynamic' ;; 9142 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9143 tmp_addflag=' -i_dynamic -nofor_main' ;; 9144 ifc* | ifort*) # Intel Fortran compiler 9145 tmp_addflag=' -nofor_main' ;; 9146 lf95*) # Lahey Fortran 8.1 9147 whole_archive_flag_spec= 9148 tmp_sharedflag='--shared' ;; 9149 nagfor*) # NAGFOR 5.3 9150 tmp_sharedflag='-Wl,-shared' ;; 9151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9152 tmp_sharedflag='-qmkshrobj' 9153 tmp_addflag= ;; 9154 nvcc*) # Cuda Compiler Driver 2.2 9155 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' 9156 compiler_needs_object=yes 9157 ;; 9158 esac 9159 case `$CC -V 2>&1 | sed 5q` in 9160 *Sun\ C*) # Sun C 5.9 9161 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' 9162 compiler_needs_object=yes 9163 tmp_sharedflag='-G' ;; 9164 *Sun\ F*) # Sun Fortran 8.3 9165 tmp_sharedflag='-G' ;; 9166 esac 9167 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9168 9169 if test yes = "$supports_anon_versioning"; then 9170 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9172 echo "local: *; };" >> $output_objdir/$libname.ver~ 9173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9174 fi 9175 9176 case $cc_basename in 9177 tcc*) 9178 export_dynamic_flag_spec='-rdynamic' 9179 ;; 9180 xlf* | bgf* | bgxlf* | mpixlf*) 9181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9182 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9184 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9185 if test yes = "$supports_anon_versioning"; then 9186 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9188 echo "local: *; };" >> $output_objdir/$libname.ver~ 9189 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9190 fi 9191 ;; 9192 esac 9193 else 9194 ld_shlibs=no 9195 fi 9196 ;; 9197 9198 netbsd*) 9199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9201 wlarc= 9202 else 9203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9204 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9205 fi 9206 ;; 9207 9208 solaris*) 9209 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9210 ld_shlibs=no 9211 cat <<_LT_EOF 1>&2 9212 9213*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9214*** create shared libraries on Solaris systems. Therefore, libtool 9215*** is disabling shared libraries support. We urge you to upgrade GNU 9216*** binutils to release 2.9.1 or newer. Another option is to modify 9217*** your PATH or compiler configuration so that the native linker is 9218*** used, and then restart. 9219 9220_LT_EOF 9221 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 9229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9230 case `$LD -v 2>&1` in 9231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9232 ld_shlibs=no 9233 cat <<_LT_EOF 1>&2 9234 9235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9236*** reliably create shared libraries on SCO systems. Therefore, libtool 9237*** is disabling shared libraries support. We urge you to upgrade GNU 9238*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9239*** your PATH or compiler configuration so that the native linker is 9240*** used, and then restart. 9241 9242_LT_EOF 9243 ;; 9244 *) 9245 # For security reasons, it is highly recommended that you always 9246 # use absolute paths for naming shared libraries, and exclude the 9247 # DT_RUNPATH tag from executables and libraries. But doing so 9248 # requires that you compile everything twice, which is a pain. 9249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9250 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9253 else 9254 ld_shlibs=no 9255 fi 9256 ;; 9257 esac 9258 ;; 9259 9260 sunos4*) 9261 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9262 wlarc= 9263 hardcode_direct=yes 9264 hardcode_shlibpath_var=no 9265 ;; 9266 9267 *) 9268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9270 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9271 else 9272 ld_shlibs=no 9273 fi 9274 ;; 9275 esac 9276 9277 if test no = "$ld_shlibs"; then 9278 runpath_var= 9279 hardcode_libdir_flag_spec= 9280 export_dynamic_flag_spec= 9281 whole_archive_flag_spec= 9282 fi 9283 else 9284 # PORTME fill in a description of your system's linker (not GNU ld) 9285 case $host_os in 9286 aix3*) 9287 allow_undefined_flag=unsupported 9288 always_export_symbols=yes 9289 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' 9290 # Note: this linker hardcodes the directories in LIBPATH if there 9291 # are no directories specified by -L. 9292 hardcode_minus_L=yes 9293 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9294 # Neither direct hardcoding nor static linking is supported with a 9295 # broken collect2. 9296 hardcode_direct=unsupported 9297 fi 9298 ;; 9299 9300 aix[4-9]*) 9301 if test ia64 = "$host_cpu"; then 9302 # On IA64, the linker does run time linking by default, so we don't 9303 # have to do anything special. 9304 aix_use_runtimelinking=no 9305 exp_sym_flag='-Bexport' 9306 no_entry_flag= 9307 else 9308 # If we're using GNU nm, then we don't want the "-C" option. 9309 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9310 # Without the "-l" option, or with the "-B" option, AIX nm treats 9311 # weak defined symbols like other global defined symbols, whereas 9312 # GNU nm marks them as "W". 9313 # While the 'weak' keyword is ignored in the Export File, we need 9314 # it in the Import File for the 'aix-soname' feature, so we have 9315 # to replace the "-B" option with "-P" for AIX nm. 9316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9317 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' 9318 else 9319 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' 9320 fi 9321 aix_use_runtimelinking=no 9322 9323 # Test if we are trying to use run time linking or normal 9324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9325 # have runtime linking enabled, and use it for executables. 9326 # For shared libraries, we enable/disable runtime linking 9327 # depending on the kind of the shared library created - 9328 # when "with_aix_soname,aix_use_runtimelinking" is: 9329 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9330 # "aix,yes" lib.so shared, rtl:yes, for executables 9331 # lib.a static archive 9332 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9333 # lib.a(lib.so.V) shared, rtl:no, for executables 9334 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9335 # lib.a(lib.so.V) shared, rtl:no 9336 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9337 # lib.a static archive 9338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9339 for ld_flag in $LDFLAGS; do 9340 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9341 aix_use_runtimelinking=yes 9342 break 9343 fi 9344 done 9345 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9346 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9347 # so we don't have lib.a shared libs to link our executables. 9348 # We have to force runtime linking in this case. 9349 aix_use_runtimelinking=yes 9350 LDFLAGS="$LDFLAGS -Wl,-brtl" 9351 fi 9352 ;; 9353 esac 9354 9355 exp_sym_flag='-bexport' 9356 no_entry_flag='-bnoentry' 9357 fi 9358 9359 # When large executables or shared objects are built, AIX ld can 9360 # have problems creating the table of contents. If linking a library 9361 # or program results in "error TOC overflow" add -mminimal-toc to 9362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9364 9365 archive_cmds='' 9366 hardcode_direct=yes 9367 hardcode_direct_absolute=yes 9368 hardcode_libdir_separator=':' 9369 link_all_deplibs=yes 9370 file_list_spec='$wl-f,' 9371 case $with_aix_soname,$aix_use_runtimelinking in 9372 aix,*) ;; # traditional, no import file 9373 svr4,* | *,yes) # use import file 9374 # The Import File defines what to hardcode. 9375 hardcode_direct=no 9376 hardcode_direct_absolute=no 9377 ;; 9378 esac 9379 9380 if test yes = "$GCC"; then 9381 case $host_os in aix4.[012]|aix4.[012].*) 9382 # We only want to do this on AIX 4.2 and lower, the check 9383 # below for broken collect2 doesn't work under 4.3+ 9384 collect2name=`$CC -print-prog-name=collect2` 9385 if test -f "$collect2name" && 9386 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9387 then 9388 # We have reworked collect2 9389 : 9390 else 9391 # We have old collect2 9392 hardcode_direct=unsupported 9393 # It fails to find uninstalled libraries when the uninstalled 9394 # path is not listed in the libpath. Setting hardcode_minus_L 9395 # to unsupported forces relinking 9396 hardcode_minus_L=yes 9397 hardcode_libdir_flag_spec='-L$libdir' 9398 hardcode_libdir_separator= 9399 fi 9400 ;; 9401 esac 9402 shared_flag='-shared' 9403 if test yes = "$aix_use_runtimelinking"; then 9404 shared_flag="$shared_flag "'$wl-G' 9405 fi 9406 # Need to ensure runtime linking is disabled for the traditional 9407 # shared library, or the linker may eventually find shared libraries 9408 # /with/ Import File - we do not want to mix them. 9409 shared_flag_aix='-shared' 9410 shared_flag_svr4='-shared $wl-G' 9411 else 9412 # not using gcc 9413 if test ia64 = "$host_cpu"; then 9414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9415 # chokes on -Wl,-G. The following line is correct: 9416 shared_flag='-G' 9417 else 9418 if test yes = "$aix_use_runtimelinking"; then 9419 shared_flag='$wl-G' 9420 else 9421 shared_flag='$wl-bM:SRE' 9422 fi 9423 shared_flag_aix='$wl-bM:SRE' 9424 shared_flag_svr4='$wl-G' 9425 fi 9426 fi 9427 9428 export_dynamic_flag_spec='$wl-bexpall' 9429 # It seems that -bexpall does not export symbols beginning with 9430 # underscore (_), so it is better to generate a list of symbols to export. 9431 always_export_symbols=yes 9432 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9433 # Warning - without using the other runtime loading flags (-brtl), 9434 # -berok will link without error, but may produce a broken library. 9435 allow_undefined_flag='-berok' 9436 # Determine the default libpath from the value encoded in an 9437 # empty executable. 9438 if test set = "${lt_cv_aix_libpath+set}"; then 9439 aix_libpath=$lt_cv_aix_libpath 9440else 9441 if ${lt_cv_aix_libpath_+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443else 9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445/* end confdefs.h. */ 9446 9447int 9448main () 9449{ 9450 9451 ; 9452 return 0; 9453} 9454_ACEOF 9455if ac_fn_c_try_link "$LINENO"; then : 9456 9457 lt_aix_libpath_sed=' 9458 /Import File Strings/,/^$/ { 9459 /^0/ { 9460 s/^0 *\([^ ]*\) *$/\1/ 9461 p 9462 } 9463 }' 9464 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9465 # Check for a 64-bit object if we didn't find anything. 9466 if test -z "$lt_cv_aix_libpath_"; then 9467 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9468 fi 9469fi 9470rm -f core conftest.err conftest.$ac_objext \ 9471 conftest$ac_exeext conftest.$ac_ext 9472 if test -z "$lt_cv_aix_libpath_"; then 9473 lt_cv_aix_libpath_=/usr/lib:/lib 9474 fi 9475 9476fi 9477 9478 aix_libpath=$lt_cv_aix_libpath_ 9479fi 9480 9481 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9482 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 9483 else 9484 if test ia64 = "$host_cpu"; then 9485 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9486 allow_undefined_flag="-z nodefs" 9487 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" 9488 else 9489 # Determine the default libpath from the value encoded in an 9490 # empty executable. 9491 if test set = "${lt_cv_aix_libpath+set}"; then 9492 aix_libpath=$lt_cv_aix_libpath 9493else 9494 if ${lt_cv_aix_libpath_+:} false; then : 9495 $as_echo_n "(cached) " >&6 9496else 9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9498/* end confdefs.h. */ 9499 9500int 9501main () 9502{ 9503 9504 ; 9505 return 0; 9506} 9507_ACEOF 9508if ac_fn_c_try_link "$LINENO"; then : 9509 9510 lt_aix_libpath_sed=' 9511 /Import File Strings/,/^$/ { 9512 /^0/ { 9513 s/^0 *\([^ ]*\) *$/\1/ 9514 p 9515 } 9516 }' 9517 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9518 # Check for a 64-bit object if we didn't find anything. 9519 if test -z "$lt_cv_aix_libpath_"; then 9520 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9521 fi 9522fi 9523rm -f core conftest.err conftest.$ac_objext \ 9524 conftest$ac_exeext conftest.$ac_ext 9525 if test -z "$lt_cv_aix_libpath_"; then 9526 lt_cv_aix_libpath_=/usr/lib:/lib 9527 fi 9528 9529fi 9530 9531 aix_libpath=$lt_cv_aix_libpath_ 9532fi 9533 9534 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9535 # Warning - without using the other run time loading flags, 9536 # -berok will link without error, but may produce a broken library. 9537 no_undefined_flag=' $wl-bernotok' 9538 allow_undefined_flag=' $wl-berok' 9539 if test yes = "$with_gnu_ld"; then 9540 # We only use this code for GNU lds that support --whole-archive. 9541 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9542 else 9543 # Exported symbols can be pulled into shared objects from archives 9544 whole_archive_flag_spec='$convenience' 9545 fi 9546 archive_cmds_need_lc=yes 9547 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9548 # -brtl affects multiple linker settings, -berok does not and is overridden later 9549 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9550 if test svr4 != "$with_aix_soname"; then 9551 # This is similar to how AIX traditionally builds its shared libraries. 9552 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' 9553 fi 9554 if test aix != "$with_aix_soname"; then 9555 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' 9556 else 9557 # used by -dlpreopen to get the symbols 9558 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9559 fi 9560 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9561 fi 9562 fi 9563 ;; 9564 9565 amigaos*) 9566 case $host_cpu in 9567 powerpc) 9568 # see comment about AmigaOS4 .so support 9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9570 archive_expsym_cmds='' 9571 ;; 9572 m68k) 9573 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)' 9574 hardcode_libdir_flag_spec='-L$libdir' 9575 hardcode_minus_L=yes 9576 ;; 9577 esac 9578 ;; 9579 9580 bsdi[45]*) 9581 export_dynamic_flag_spec=-rdynamic 9582 ;; 9583 9584 cygwin* | mingw* | pw32* | cegcc*) 9585 # When not using gcc, we currently assume that we are using 9586 # Microsoft Visual C++. 9587 # hardcode_libdir_flag_spec is actually meaningless, as there is 9588 # no search path for DLLs. 9589 case $cc_basename in 9590 cl*) 9591 # Native MSVC 9592 hardcode_libdir_flag_spec=' ' 9593 allow_undefined_flag=unsupported 9594 always_export_symbols=yes 9595 file_list_spec='@' 9596 # Tell ltmain to make .lib files, not .a files. 9597 libext=lib 9598 # Tell ltmain to make .dll files, not .so files. 9599 shrext_cmds=.dll 9600 # FIXME: Setting linknames here is a bad hack. 9601 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9602 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9603 cp "$export_symbols" "$output_objdir/$soname.def"; 9604 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9605 else 9606 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9607 fi~ 9608 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9609 linknames=' 9610 # The linker will not automatically build a static lib if we build a DLL. 9611 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9612 enable_shared_with_static_runtimes=yes 9613 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9615 # Don't use ranlib 9616 old_postinstall_cmds='chmod 644 $oldlib' 9617 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9618 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9619 case $lt_outputfile in 9620 *.exe|*.EXE) ;; 9621 *) 9622 lt_outputfile=$lt_outputfile.exe 9623 lt_tool_outputfile=$lt_tool_outputfile.exe 9624 ;; 9625 esac~ 9626 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9627 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9628 $RM "$lt_outputfile.manifest"; 9629 fi' 9630 ;; 9631 *) 9632 # Assume MSVC wrapper 9633 hardcode_libdir_flag_spec=' ' 9634 allow_undefined_flag=unsupported 9635 # Tell ltmain to make .lib files, not .a files. 9636 libext=lib 9637 # Tell ltmain to make .dll files, not .so files. 9638 shrext_cmds=.dll 9639 # FIXME: Setting linknames here is a bad hack. 9640 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9641 # The linker will automatically build a .lib file if we build a DLL. 9642 old_archive_from_new_cmds='true' 9643 # FIXME: Should let the user specify the lib program. 9644 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9645 enable_shared_with_static_runtimes=yes 9646 ;; 9647 esac 9648 ;; 9649 9650 darwin* | rhapsody*) 9651 9652 9653 archive_cmds_need_lc=no 9654 hardcode_direct=no 9655 hardcode_automatic=yes 9656 hardcode_shlibpath_var=unsupported 9657 if test yes = "$lt_cv_ld_force_load"; then 9658 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\"`' 9659 9660 else 9661 whole_archive_flag_spec='' 9662 fi 9663 link_all_deplibs=yes 9664 allow_undefined_flag=$_lt_dar_allow_undefined 9665 case $cc_basename in 9666 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9667 *) _lt_dar_can_shared=$GCC ;; 9668 esac 9669 if test yes = "$_lt_dar_can_shared"; then 9670 output_verbose_link_cmd=func_echo_all 9671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9673 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" 9674 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" 9675 9676 else 9677 ld_shlibs=no 9678 fi 9679 9680 ;; 9681 9682 dgux*) 9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9684 hardcode_libdir_flag_spec='-L$libdir' 9685 hardcode_shlibpath_var=no 9686 ;; 9687 9688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9689 # support. Future versions do this automatically, but an explicit c++rt0.o 9690 # does not break anything, and helps significantly (at the cost of a little 9691 # extra space). 9692 freebsd2.2*) 9693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9694 hardcode_libdir_flag_spec='-R$libdir' 9695 hardcode_direct=yes 9696 hardcode_shlibpath_var=no 9697 ;; 9698 9699 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9700 freebsd2.*) 9701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9702 hardcode_direct=yes 9703 hardcode_minus_L=yes 9704 hardcode_shlibpath_var=no 9705 ;; 9706 9707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9708 freebsd* | dragonfly*) 9709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9710 hardcode_libdir_flag_spec='-R$libdir' 9711 hardcode_direct=yes 9712 hardcode_shlibpath_var=no 9713 ;; 9714 9715 hpux9*) 9716 if test yes = "$GCC"; then 9717 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' 9718 else 9719 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' 9720 fi 9721 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9722 hardcode_libdir_separator=: 9723 hardcode_direct=yes 9724 9725 # hardcode_minus_L: Not really in the search PATH, 9726 # but as the default location of the library. 9727 hardcode_minus_L=yes 9728 export_dynamic_flag_spec='$wl-E' 9729 ;; 9730 9731 hpux10*) 9732 if test yes,no = "$GCC,$with_gnu_ld"; then 9733 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9734 else 9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9736 fi 9737 if test no = "$with_gnu_ld"; then 9738 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9739 hardcode_libdir_separator=: 9740 hardcode_direct=yes 9741 hardcode_direct_absolute=yes 9742 export_dynamic_flag_spec='$wl-E' 9743 # hardcode_minus_L: Not really in the search PATH, 9744 # but as the default location of the library. 9745 hardcode_minus_L=yes 9746 fi 9747 ;; 9748 9749 hpux11*) 9750 if test yes,no = "$GCC,$with_gnu_ld"; then 9751 case $host_cpu in 9752 hppa*64*) 9753 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9754 ;; 9755 ia64*) 9756 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9757 ;; 9758 *) 9759 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9760 ;; 9761 esac 9762 else 9763 case $host_cpu in 9764 hppa*64*) 9765 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9766 ;; 9767 ia64*) 9768 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9769 ;; 9770 *) 9771 9772 # Older versions of the 11.00 compiler do not understand -b yet 9773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9775$as_echo_n "checking if $CC understands -b... " >&6; } 9776if ${lt_cv_prog_compiler__b+:} false; then : 9777 $as_echo_n "(cached) " >&6 9778else 9779 lt_cv_prog_compiler__b=no 9780 save_LDFLAGS=$LDFLAGS 9781 LDFLAGS="$LDFLAGS -b" 9782 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9784 # The linker can only warn and ignore the option if not recognized 9785 # So say no if there are warnings 9786 if test -s conftest.err; then 9787 # Append any errors to the config.log. 9788 cat conftest.err 1>&5 9789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9791 if diff conftest.exp conftest.er2 >/dev/null; then 9792 lt_cv_prog_compiler__b=yes 9793 fi 9794 else 9795 lt_cv_prog_compiler__b=yes 9796 fi 9797 fi 9798 $RM -r conftest* 9799 LDFLAGS=$save_LDFLAGS 9800 9801fi 9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9803$as_echo "$lt_cv_prog_compiler__b" >&6; } 9804 9805if test yes = "$lt_cv_prog_compiler__b"; then 9806 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9807else 9808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9809fi 9810 9811 ;; 9812 esac 9813 fi 9814 if test no = "$with_gnu_ld"; then 9815 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9816 hardcode_libdir_separator=: 9817 9818 case $host_cpu in 9819 hppa*64*|ia64*) 9820 hardcode_direct=no 9821 hardcode_shlibpath_var=no 9822 ;; 9823 *) 9824 hardcode_direct=yes 9825 hardcode_direct_absolute=yes 9826 export_dynamic_flag_spec='$wl-E' 9827 9828 # hardcode_minus_L: Not really in the search PATH, 9829 # but as the default location of the library. 9830 hardcode_minus_L=yes 9831 ;; 9832 esac 9833 fi 9834 ;; 9835 9836 irix5* | irix6* | nonstopux*) 9837 if test yes = "$GCC"; then 9838 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' 9839 # Try to use the -exported_symbol ld option, if it does not 9840 # work, assume that -exports_file does not work either and 9841 # implicitly export all symbols. 9842 # This should be the same for all languages, so no per-tag cache variable. 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9844$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9845if ${lt_cv_irix_exported_symbol+:} false; then : 9846 $as_echo_n "(cached) " >&6 9847else 9848 save_LDFLAGS=$LDFLAGS 9849 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int foo (void) { return 0; } 9853_ACEOF 9854if ac_fn_c_try_link "$LINENO"; then : 9855 lt_cv_irix_exported_symbol=yes 9856else 9857 lt_cv_irix_exported_symbol=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext \ 9860 conftest$ac_exeext conftest.$ac_ext 9861 LDFLAGS=$save_LDFLAGS 9862fi 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9864$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9865 if test yes = "$lt_cv_irix_exported_symbol"; then 9866 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' 9867 fi 9868 else 9869 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' 9870 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' 9871 fi 9872 archive_cmds_need_lc='no' 9873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9874 hardcode_libdir_separator=: 9875 inherit_rpath=yes 9876 link_all_deplibs=yes 9877 ;; 9878 9879 linux*) 9880 case $cc_basename in 9881 tcc*) 9882 # Fabrice Bellard et al's Tiny C Compiler 9883 ld_shlibs=yes 9884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9885 ;; 9886 esac 9887 ;; 9888 9889 netbsd*) 9890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9892 else 9893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9894 fi 9895 hardcode_libdir_flag_spec='-R$libdir' 9896 hardcode_direct=yes 9897 hardcode_shlibpath_var=no 9898 ;; 9899 9900 newsos6) 9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9902 hardcode_direct=yes 9903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9904 hardcode_libdir_separator=: 9905 hardcode_shlibpath_var=no 9906 ;; 9907 9908 *nto* | *qnx*) 9909 ;; 9910 9911 openbsd* | bitrig*) 9912 if test -f /usr/libexec/ld.so; then 9913 hardcode_direct=yes 9914 hardcode_shlibpath_var=no 9915 hardcode_direct_absolute=yes 9916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9918 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9919 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9920 export_dynamic_flag_spec='$wl-E' 9921 else 9922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9923 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9924 fi 9925 else 9926 ld_shlibs=no 9927 fi 9928 ;; 9929 9930 os2*) 9931 hardcode_libdir_flag_spec='-L$libdir' 9932 hardcode_minus_L=yes 9933 allow_undefined_flag=unsupported 9934 shrext_cmds=.dll 9935 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9936 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9937 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9938 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9939 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9940 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9941 emximp -o $lib $output_objdir/$libname.def' 9942 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9945 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9946 prefix_cmds="$SED"~ 9947 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9948 prefix_cmds="$prefix_cmds -e 1d"; 9949 fi~ 9950 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9951 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9952 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9953 emximp -o $lib $output_objdir/$libname.def' 9954 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9955 enable_shared_with_static_runtimes=yes 9956 ;; 9957 9958 osf3*) 9959 if test yes = "$GCC"; then 9960 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9961 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' 9962 else 9963 allow_undefined_flag=' -expect_unresolved \*' 9964 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' 9965 fi 9966 archive_cmds_need_lc='no' 9967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9968 hardcode_libdir_separator=: 9969 ;; 9970 9971 osf4* | osf5*) # as osf3* with the addition of -msym flag 9972 if test yes = "$GCC"; then 9973 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9974 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' 9975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9976 else 9977 allow_undefined_flag=' -expect_unresolved \*' 9978 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' 9979 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~ 9980 $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' 9981 9982 # Both c and cxx compiler support -rpath directly 9983 hardcode_libdir_flag_spec='-rpath $libdir' 9984 fi 9985 archive_cmds_need_lc='no' 9986 hardcode_libdir_separator=: 9987 ;; 9988 9989 solaris*) 9990 no_undefined_flag=' -z defs' 9991 if test yes = "$GCC"; then 9992 wlarc='$wl' 9993 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9995 $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' 9996 else 9997 case `$CC -V 2>&1` in 9998 *"Compilers 5.0"*) 9999 wlarc='' 10000 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10002 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10003 ;; 10004 *) 10005 wlarc='$wl' 10006 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10008 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10009 ;; 10010 esac 10011 fi 10012 hardcode_libdir_flag_spec='-R$libdir' 10013 hardcode_shlibpath_var=no 10014 case $host_os in 10015 solaris2.[0-5] | solaris2.[0-5].*) ;; 10016 *) 10017 # The compiler driver will combine and reorder linker options, 10018 # but understands '-z linker_flag'. GCC discards it without '$wl', 10019 # but is careful enough not to reorder. 10020 # Supported since Solaris 2.6 (maybe 2.5.1?) 10021 if test yes = "$GCC"; then 10022 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10023 else 10024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10025 fi 10026 ;; 10027 esac 10028 link_all_deplibs=yes 10029 ;; 10030 10031 sunos4*) 10032 if test sequent = "$host_vendor"; then 10033 # Use $CC to link under sequent, because it throws in some extra .o 10034 # files that make .init and .fini sections work. 10035 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10036 else 10037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10038 fi 10039 hardcode_libdir_flag_spec='-L$libdir' 10040 hardcode_direct=yes 10041 hardcode_minus_L=yes 10042 hardcode_shlibpath_var=no 10043 ;; 10044 10045 sysv4) 10046 case $host_vendor in 10047 sni) 10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10049 hardcode_direct=yes # is this really true??? 10050 ;; 10051 siemens) 10052 ## LD is ld it makes a PLAMLIB 10053 ## CC just makes a GrossModule. 10054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10055 reload_cmds='$CC -r -o $output$reload_objs' 10056 hardcode_direct=no 10057 ;; 10058 motorola) 10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10061 ;; 10062 esac 10063 runpath_var='LD_RUN_PATH' 10064 hardcode_shlibpath_var=no 10065 ;; 10066 10067 sysv4.3*) 10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10069 hardcode_shlibpath_var=no 10070 export_dynamic_flag_spec='-Bexport' 10071 ;; 10072 10073 sysv4*MP*) 10074 if test -d /usr/nec; then 10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10076 hardcode_shlibpath_var=no 10077 runpath_var=LD_RUN_PATH 10078 hardcode_runpath_var=yes 10079 ld_shlibs=yes 10080 fi 10081 ;; 10082 10083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10084 no_undefined_flag='$wl-z,text' 10085 archive_cmds_need_lc=no 10086 hardcode_shlibpath_var=no 10087 runpath_var='LD_RUN_PATH' 10088 10089 if test yes = "$GCC"; then 10090 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10091 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10092 else 10093 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10094 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10095 fi 10096 ;; 10097 10098 sysv5* | sco3.2v5* | sco5v6*) 10099 # Note: We CANNOT use -z defs as we might desire, because we do not 10100 # link with -lc, and that would cause any symbols used from libc to 10101 # always be unresolved, which means just about no library would 10102 # ever link correctly. If we're not using GNU ld we use -z text 10103 # though, which does catch some bad symbols but isn't as heavy-handed 10104 # as -z defs. 10105 no_undefined_flag='$wl-z,text' 10106 allow_undefined_flag='$wl-z,nodefs' 10107 archive_cmds_need_lc=no 10108 hardcode_shlibpath_var=no 10109 hardcode_libdir_flag_spec='$wl-R,$libdir' 10110 hardcode_libdir_separator=':' 10111 link_all_deplibs=yes 10112 export_dynamic_flag_spec='$wl-Bexport' 10113 runpath_var='LD_RUN_PATH' 10114 10115 if test yes = "$GCC"; then 10116 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10117 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10118 else 10119 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10120 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10121 fi 10122 ;; 10123 10124 uts4*) 10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10126 hardcode_libdir_flag_spec='-L$libdir' 10127 hardcode_shlibpath_var=no 10128 ;; 10129 10130 *) 10131 ld_shlibs=no 10132 ;; 10133 esac 10134 10135 if test sni = "$host_vendor"; then 10136 case $host in 10137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10138 export_dynamic_flag_spec='$wl-Blargedynsym' 10139 ;; 10140 esac 10141 fi 10142 fi 10143 10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10145$as_echo "$ld_shlibs" >&6; } 10146test no = "$ld_shlibs" && can_build_shared=no 10147 10148with_gnu_ld=$with_gnu_ld 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164# 10165# Do we need to explicitly link libc? 10166# 10167case "x$archive_cmds_need_lc" in 10168x|xyes) 10169 # Assume -lc should be added 10170 archive_cmds_need_lc=yes 10171 10172 if test yes,yes = "$GCC,$enable_shared"; then 10173 case $archive_cmds in 10174 *'~'*) 10175 # FIXME: we may have to deal with multi-command sequences. 10176 ;; 10177 '$CC '*) 10178 # Test whether the compiler implicitly links with -lc since on some 10179 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10180 # to ld, don't add -lc before -lgcc. 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10182$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10183if ${lt_cv_archive_cmds_need_lc+:} false; then : 10184 $as_echo_n "(cached) " >&6 10185else 10186 $RM conftest* 10187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10188 10189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10190 (eval $ac_compile) 2>&5 10191 ac_status=$? 10192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10193 test $ac_status = 0; } 2>conftest.err; then 10194 soname=conftest 10195 lib=conftest 10196 libobjs=conftest.$ac_objext 10197 deplibs= 10198 wl=$lt_prog_compiler_wl 10199 pic_flag=$lt_prog_compiler_pic 10200 compiler_flags=-v 10201 linker_flags=-v 10202 verstring= 10203 output_objdir=. 10204 libname=conftest 10205 lt_save_allow_undefined_flag=$allow_undefined_flag 10206 allow_undefined_flag= 10207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10209 ac_status=$? 10210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10211 test $ac_status = 0; } 10212 then 10213 lt_cv_archive_cmds_need_lc=no 10214 else 10215 lt_cv_archive_cmds_need_lc=yes 10216 fi 10217 allow_undefined_flag=$lt_save_allow_undefined_flag 10218 else 10219 cat conftest.err 1>&5 10220 fi 10221 $RM conftest* 10222 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10225$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10226 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10227 ;; 10228 esac 10229 fi 10230 ;; 10231esac 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10385$as_echo_n "checking dynamic linker characteristics... " >&6; } 10386 10387if test yes = "$GCC"; then 10388 case $host_os in 10389 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10390 *) lt_awk_arg='/^libraries:/' ;; 10391 esac 10392 case $host_os in 10393 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10394 *) lt_sed_strip_eq='s|=/|/|g' ;; 10395 esac 10396 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10397 case $lt_search_path_spec in 10398 *\;*) 10399 # if the path contains ";" then we assume it to be the separator 10400 # otherwise default to the standard path separator (i.e. ":") - it is 10401 # assumed that no part of a normal pathname contains ";" but that should 10402 # okay in the real world where ";" in dirpaths is itself problematic. 10403 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10404 ;; 10405 *) 10406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10407 ;; 10408 esac 10409 # Ok, now we have the path, separated by spaces, we can step through it 10410 # and add multilib dir if necessary... 10411 lt_tmp_lt_search_path_spec= 10412 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10413 # ...but if some path component already ends with the multilib dir we assume 10414 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10415 case "$lt_multi_os_dir; $lt_search_path_spec " in 10416 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10417 lt_multi_os_dir= 10418 ;; 10419 esac 10420 for lt_sys_path in $lt_search_path_spec; do 10421 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10423 elif test -n "$lt_multi_os_dir"; then 10424 test -d "$lt_sys_path" && \ 10425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10426 fi 10427 done 10428 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10429BEGIN {RS = " "; FS = "/|\n";} { 10430 lt_foo = ""; 10431 lt_count = 0; 10432 for (lt_i = NF; lt_i > 0; lt_i--) { 10433 if ($lt_i != "" && $lt_i != ".") { 10434 if ($lt_i == "..") { 10435 lt_count++; 10436 } else { 10437 if (lt_count == 0) { 10438 lt_foo = "/" $lt_i lt_foo; 10439 } else { 10440 lt_count--; 10441 } 10442 } 10443 } 10444 } 10445 if (lt_foo != "") { lt_freq[lt_foo]++; } 10446 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10447}'` 10448 # AWK program above erroneously prepends '/' to C:/dos/paths 10449 # for these hosts. 10450 case $host_os in 10451 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10452 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10453 esac 10454 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10455else 10456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10457fi 10458library_names_spec= 10459libname_spec='lib$name' 10460soname_spec= 10461shrext_cmds=.so 10462postinstall_cmds= 10463postuninstall_cmds= 10464finish_cmds= 10465finish_eval= 10466shlibpath_var= 10467shlibpath_overrides_runpath=unknown 10468version_type=none 10469dynamic_linker="$host_os ld.so" 10470sys_lib_dlsearch_path_spec="/lib /usr/lib" 10471need_lib_prefix=unknown 10472hardcode_into_libs=no 10473 10474# when you set need_version to no, make sure it does not cause -set_version 10475# flags to be left without arguments 10476need_version=unknown 10477 10478case $host_os in 10479aix3*) 10480 version_type=linux # correct to gnu/linux during the next big refactor 10481 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10482 shlibpath_var=LIBPATH 10483 10484 # AIX 3 has no versioning support, so we append a major version to the name. 10485 soname_spec='$libname$release$shared_ext$major' 10486 ;; 10487 10488aix[4-9]*) 10489 version_type=linux # correct to gnu/linux during the next big refactor 10490 need_lib_prefix=no 10491 need_version=no 10492 hardcode_into_libs=yes 10493 if test ia64 = "$host_cpu"; then 10494 # AIX 5 supports IA64 10495 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10496 shlibpath_var=LD_LIBRARY_PATH 10497 else 10498 # With GCC up to 2.95.x, collect2 would create an import file 10499 # for dependence libraries. The import file would start with 10500 # the line '#! .'. This would cause the generated library to 10501 # depend on '.', always an invalid library. This was fixed in 10502 # development snapshots of GCC prior to 3.0. 10503 case $host_os in 10504 aix4 | aix4.[01] | aix4.[01].*) 10505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10506 echo ' yes ' 10507 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10508 : 10509 else 10510 can_build_shared=no 10511 fi 10512 ;; 10513 esac 10514 # Using Import Files as archive members, it is possible to support 10515 # filename-based versioning of shared library archives on AIX. While 10516 # this would work for both with and without runtime linking, it will 10517 # prevent static linking of such archives. So we do filename-based 10518 # shared library versioning with .so extension only, which is used 10519 # when both runtime linking and shared linking is enabled. 10520 # Unfortunately, runtime linking may impact performance, so we do 10521 # not want this to be the default eventually. Also, we use the 10522 # versioned .so libs for executables only if there is the -brtl 10523 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10524 # To allow for filename-based versioning support, we need to create 10525 # libNAME.so.V as an archive file, containing: 10526 # *) an Import File, referring to the versioned filename of the 10527 # archive as well as the shared archive member, telling the 10528 # bitwidth (32 or 64) of that shared object, and providing the 10529 # list of exported symbols of that shared object, eventually 10530 # decorated with the 'weak' keyword 10531 # *) the shared object with the F_LOADONLY flag set, to really avoid 10532 # it being seen by the linker. 10533 # At run time we better use the real file rather than another symlink, 10534 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10535 10536 case $with_aix_soname,$aix_use_runtimelinking in 10537 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10538 # soname into executable. Probably we can add versioning support to 10539 # collect2, so additional links can be useful in future. 10540 aix,yes) # traditional libtool 10541 dynamic_linker='AIX unversionable lib.so' 10542 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10543 # instead of lib<name>.a to let people know that these are not 10544 # typical AIX shared libraries. 10545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10546 ;; 10547 aix,no) # traditional AIX only 10548 dynamic_linker='AIX lib.a(lib.so.V)' 10549 # We preserve .a as extension for shared libraries through AIX4.2 10550 # and later when we are not doing run time linking. 10551 library_names_spec='$libname$release.a $libname.a' 10552 soname_spec='$libname$release$shared_ext$major' 10553 ;; 10554 svr4,*) # full svr4 only 10555 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10556 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10557 # We do not specify a path in Import Files, so LIBPATH fires. 10558 shlibpath_overrides_runpath=yes 10559 ;; 10560 *,yes) # both, prefer svr4 10561 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10562 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10563 # unpreferred sharedlib libNAME.a needs extra handling 10564 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"' 10565 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"' 10566 # We do not specify a path in Import Files, so LIBPATH fires. 10567 shlibpath_overrides_runpath=yes 10568 ;; 10569 *,no) # both, prefer aix 10570 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10571 library_names_spec='$libname$release.a $libname.a' 10572 soname_spec='$libname$release$shared_ext$major' 10573 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10574 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)' 10575 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"' 10576 ;; 10577 esac 10578 shlibpath_var=LIBPATH 10579 fi 10580 ;; 10581 10582amigaos*) 10583 case $host_cpu in 10584 powerpc) 10585 # Since July 2007 AmigaOS4 officially supports .so libraries. 10586 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10588 ;; 10589 m68k) 10590 library_names_spec='$libname.ixlibrary $libname.a' 10591 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10592 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' 10593 ;; 10594 esac 10595 ;; 10596 10597beos*) 10598 library_names_spec='$libname$shared_ext' 10599 dynamic_linker="$host_os ld.so" 10600 shlibpath_var=LIBRARY_PATH 10601 ;; 10602 10603bsdi[45]*) 10604 version_type=linux # correct to gnu/linux during the next big refactor 10605 need_version=no 10606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10607 soname_spec='$libname$release$shared_ext$major' 10608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10612 # the default ld.so.conf also contains /usr/contrib/lib and 10613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10614 # libtool to hard-code these into programs 10615 ;; 10616 10617cygwin* | mingw* | pw32* | cegcc*) 10618 version_type=windows 10619 shrext_cmds=.dll 10620 need_version=no 10621 need_lib_prefix=no 10622 10623 case $GCC,$cc_basename in 10624 yes,*) 10625 # gcc 10626 library_names_spec='$libname.dll.a' 10627 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10628 postinstall_cmds='base_file=`basename \$file`~ 10629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10630 dldir=$destdir/`dirname \$dlpath`~ 10631 test -d \$dldir || mkdir -p \$dldir~ 10632 $install_prog $dir/$dlname \$dldir/$dlname~ 10633 chmod a+x \$dldir/$dlname~ 10634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10636 fi' 10637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10638 dlpath=$dir/\$dldll~ 10639 $RM \$dlpath' 10640 shlibpath_overrides_runpath=yes 10641 10642 case $host_os in 10643 cygwin*) 10644 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10645 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10646 10647 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10648 ;; 10649 mingw* | cegcc*) 10650 # MinGW DLLs use traditional 'lib' prefix 10651 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10652 ;; 10653 pw32*) 10654 # pw32 DLLs use 'pw' prefix rather than 'lib' 10655 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10656 ;; 10657 esac 10658 dynamic_linker='Win32 ld.exe' 10659 ;; 10660 10661 *,cl*) 10662 # Native MSVC 10663 libname_spec='$name' 10664 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10665 library_names_spec='$libname.dll.lib' 10666 10667 case $build_os in 10668 mingw*) 10669 sys_lib_search_path_spec= 10670 lt_save_ifs=$IFS 10671 IFS=';' 10672 for lt_path in $LIB 10673 do 10674 IFS=$lt_save_ifs 10675 # Let DOS variable expansion print the short 8.3 style file name. 10676 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10677 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10678 done 10679 IFS=$lt_save_ifs 10680 # Convert to MSYS style. 10681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10682 ;; 10683 cygwin*) 10684 # Convert to unix form, then to dos form, then back to unix form 10685 # but this time dos style (no spaces!) so that the unix form looks 10686 # like /cygdrive/c/PROGRA~1:/cygdr... 10687 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10688 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10689 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10690 ;; 10691 *) 10692 sys_lib_search_path_spec=$LIB 10693 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10694 # It is most probably a Windows format PATH. 10695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10696 else 10697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10698 fi 10699 # FIXME: find the short name or the path components, as spaces are 10700 # common. (e.g. "Program Files" -> "PROGRA~1") 10701 ;; 10702 esac 10703 10704 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10705 postinstall_cmds='base_file=`basename \$file`~ 10706 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10707 dldir=$destdir/`dirname \$dlpath`~ 10708 test -d \$dldir || mkdir -p \$dldir~ 10709 $install_prog $dir/$dlname \$dldir/$dlname' 10710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10711 dlpath=$dir/\$dldll~ 10712 $RM \$dlpath' 10713 shlibpath_overrides_runpath=yes 10714 dynamic_linker='Win32 link.exe' 10715 ;; 10716 10717 *) 10718 # Assume MSVC wrapper 10719 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10720 dynamic_linker='Win32 ld.exe' 10721 ;; 10722 esac 10723 # FIXME: first we should search . and the directory the executable is in 10724 shlibpath_var=PATH 10725 ;; 10726 10727darwin* | rhapsody*) 10728 dynamic_linker="$host_os dyld" 10729 version_type=darwin 10730 need_lib_prefix=no 10731 need_version=no 10732 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10733 soname_spec='$libname$release$major$shared_ext' 10734 shlibpath_overrides_runpath=yes 10735 shlibpath_var=DYLD_LIBRARY_PATH 10736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10737 10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10740 ;; 10741 10742dgux*) 10743 version_type=linux # correct to gnu/linux during the next big refactor 10744 need_lib_prefix=no 10745 need_version=no 10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10747 soname_spec='$libname$release$shared_ext$major' 10748 shlibpath_var=LD_LIBRARY_PATH 10749 ;; 10750 10751freebsd* | dragonfly*) 10752 # DragonFly does not have aout. When/if they implement a new 10753 # versioning mechanism, adjust this. 10754 if test -x /usr/bin/objformat; then 10755 objformat=`/usr/bin/objformat` 10756 else 10757 case $host_os in 10758 freebsd[23].*) objformat=aout ;; 10759 *) objformat=elf ;; 10760 esac 10761 fi 10762 version_type=freebsd-$objformat 10763 case $version_type in 10764 freebsd-elf*) 10765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10766 need_version=no 10767 need_lib_prefix=no 10768 ;; 10769 freebsd-*) 10770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10771 need_version=yes 10772 ;; 10773 esac 10774 shlibpath_var=LD_LIBRARY_PATH 10775 case $host_os in 10776 freebsd2.*) 10777 shlibpath_overrides_runpath=yes 10778 ;; 10779 freebsd3.[01]* | freebsdelf3.[01]*) 10780 shlibpath_overrides_runpath=yes 10781 hardcode_into_libs=yes 10782 ;; 10783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10785 shlibpath_overrides_runpath=no 10786 hardcode_into_libs=yes 10787 ;; 10788 *) # from 4.6 on, and DragonFly 10789 shlibpath_overrides_runpath=yes 10790 hardcode_into_libs=yes 10791 ;; 10792 esac 10793 ;; 10794 10795haiku*) 10796 version_type=linux # correct to gnu/linux during the next big refactor 10797 need_lib_prefix=no 10798 need_version=no 10799 dynamic_linker="$host_os runtime_loader" 10800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10801 soname_spec='$libname$release$shared_ext$major' 10802 shlibpath_var=LIBRARY_PATH 10803 shlibpath_overrides_runpath=no 10804 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10805 hardcode_into_libs=yes 10806 ;; 10807 10808hpux9* | hpux10* | hpux11*) 10809 # Give a soname corresponding to the major version so that dld.sl refuses to 10810 # link against other versions. 10811 version_type=sunos 10812 need_lib_prefix=no 10813 need_version=no 10814 case $host_cpu in 10815 ia64*) 10816 shrext_cmds='.so' 10817 hardcode_into_libs=yes 10818 dynamic_linker="$host_os dld.so" 10819 shlibpath_var=LD_LIBRARY_PATH 10820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10822 soname_spec='$libname$release$shared_ext$major' 10823 if test 32 = "$HPUX_IA64_MODE"; then 10824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10825 else 10826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10827 fi 10828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10829 ;; 10830 hppa*64*) 10831 shrext_cmds='.sl' 10832 hardcode_into_libs=yes 10833 dynamic_linker="$host_os dld.sl" 10834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10837 soname_spec='$libname$release$shared_ext$major' 10838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10840 ;; 10841 *) 10842 shrext_cmds='.sl' 10843 dynamic_linker="$host_os dld.sl" 10844 shlibpath_var=SHLIB_PATH 10845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10847 soname_spec='$libname$release$shared_ext$major' 10848 ;; 10849 esac 10850 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10851 postinstall_cmds='chmod 555 $lib' 10852 # or fails outright, so override atomically: 10853 install_override_mode=555 10854 ;; 10855 10856interix[3-9]*) 10857 version_type=linux # correct to gnu/linux during the next big refactor 10858 need_lib_prefix=no 10859 need_version=no 10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10861 soname_spec='$libname$release$shared_ext$major' 10862 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10863 shlibpath_var=LD_LIBRARY_PATH 10864 shlibpath_overrides_runpath=no 10865 hardcode_into_libs=yes 10866 ;; 10867 10868irix5* | irix6* | nonstopux*) 10869 case $host_os in 10870 nonstopux*) version_type=nonstopux ;; 10871 *) 10872 if test yes = "$lt_cv_prog_gnu_ld"; then 10873 version_type=linux # correct to gnu/linux during the next big refactor 10874 else 10875 version_type=irix 10876 fi ;; 10877 esac 10878 need_lib_prefix=no 10879 need_version=no 10880 soname_spec='$libname$release$shared_ext$major' 10881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10882 case $host_os in 10883 irix5* | nonstopux*) 10884 libsuff= shlibsuff= 10885 ;; 10886 *) 10887 case $LD in # libtool.m4 will add one of these switches to LD 10888 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10889 libsuff= shlibsuff= libmagic=32-bit;; 10890 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10891 libsuff=32 shlibsuff=N32 libmagic=N32;; 10892 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10893 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10894 *) libsuff= shlibsuff= libmagic=never-match;; 10895 esac 10896 ;; 10897 esac 10898 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10899 shlibpath_overrides_runpath=no 10900 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10901 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10902 hardcode_into_libs=yes 10903 ;; 10904 10905# No shared lib support for Linux oldld, aout, or coff. 10906linux*oldld* | linux*aout* | linux*coff*) 10907 dynamic_linker=no 10908 ;; 10909 10910linux*android*) 10911 version_type=none # Android doesn't support versioned libraries. 10912 need_lib_prefix=no 10913 need_version=no 10914 library_names_spec='$libname$release$shared_ext' 10915 soname_spec='$libname$release$shared_ext' 10916 finish_cmds= 10917 shlibpath_var=LD_LIBRARY_PATH 10918 shlibpath_overrides_runpath=yes 10919 10920 # This implies no fast_install, which is unacceptable. 10921 # Some rework will be needed to allow for fast_install 10922 # before this can be enabled. 10923 hardcode_into_libs=yes 10924 10925 dynamic_linker='Android linker' 10926 # Don't embed -rpath directories since the linker doesn't support them. 10927 hardcode_libdir_flag_spec='-L$libdir' 10928 ;; 10929 10930# This must be glibc/ELF. 10931linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10932 version_type=linux # correct to gnu/linux during the next big refactor 10933 need_lib_prefix=no 10934 need_version=no 10935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10936 soname_spec='$libname$release$shared_ext$major' 10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10938 shlibpath_var=LD_LIBRARY_PATH 10939 shlibpath_overrides_runpath=no 10940 10941 # Some binutils ld are patched to set DT_RUNPATH 10942 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 lt_cv_shlibpath_overrides_runpath=no 10946 save_LDFLAGS=$LDFLAGS 10947 save_libdir=$libdir 10948 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10949 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952 10953int 10954main () 10955{ 10956 10957 ; 10958 return 0; 10959} 10960_ACEOF 10961if ac_fn_c_try_link "$LINENO"; then : 10962 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10963 lt_cv_shlibpath_overrides_runpath=yes 10964fi 10965fi 10966rm -f core conftest.err conftest.$ac_objext \ 10967 conftest$ac_exeext conftest.$ac_ext 10968 LDFLAGS=$save_LDFLAGS 10969 libdir=$save_libdir 10970 10971fi 10972 10973 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10974 10975 # This implies no fast_install, which is unacceptable. 10976 # Some rework will be needed to allow for fast_install 10977 # before this can be enabled. 10978 hardcode_into_libs=yes 10979 10980 # Append ld.so.conf contents to the search path 10981 if test -f /etc/ld.so.conf; then 10982 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' ' '` 10983 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10984 fi 10985 10986 # We used to test for /lib/ld.so.1 and disable shared libraries on 10987 # powerpc, because MkLinux only supported shared libraries with the 10988 # GNU dynamic linker. Since this was broken with cross compilers, 10989 # most powerpc-linux boxes support dynamic linking these days and 10990 # people can always --disable-shared, the test was removed, and we 10991 # assume the GNU/Linux dynamic linker is in use. 10992 dynamic_linker='GNU/Linux ld.so' 10993 ;; 10994 10995netbsd*) 10996 version_type=sunos 10997 need_lib_prefix=no 10998 need_version=no 10999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11002 dynamic_linker='NetBSD (a.out) ld.so' 11003 else 11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11005 soname_spec='$libname$release$shared_ext$major' 11006 dynamic_linker='NetBSD ld.elf_so' 11007 fi 11008 shlibpath_var=LD_LIBRARY_PATH 11009 shlibpath_overrides_runpath=yes 11010 hardcode_into_libs=yes 11011 ;; 11012 11013newsos6) 11014 version_type=linux # correct to gnu/linux during the next big refactor 11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11016 shlibpath_var=LD_LIBRARY_PATH 11017 shlibpath_overrides_runpath=yes 11018 ;; 11019 11020*nto* | *qnx*) 11021 version_type=qnx 11022 need_lib_prefix=no 11023 need_version=no 11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11025 soname_spec='$libname$release$shared_ext$major' 11026 shlibpath_var=LD_LIBRARY_PATH 11027 shlibpath_overrides_runpath=no 11028 hardcode_into_libs=yes 11029 dynamic_linker='ldqnx.so' 11030 ;; 11031 11032openbsd* | bitrig*) 11033 version_type=sunos 11034 sys_lib_dlsearch_path_spec=/usr/lib 11035 need_lib_prefix=no 11036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11037 need_version=no 11038 else 11039 need_version=yes 11040 fi 11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11043 shlibpath_var=LD_LIBRARY_PATH 11044 shlibpath_overrides_runpath=yes 11045 ;; 11046 11047os2*) 11048 libname_spec='$name' 11049 version_type=windows 11050 shrext_cmds=.dll 11051 need_version=no 11052 need_lib_prefix=no 11053 # OS/2 can only load a DLL with a base name of 8 characters or less. 11054 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11055 v=$($ECHO $release$versuffix | tr -d .-); 11056 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11057 $ECHO $n$v`$shared_ext' 11058 library_names_spec='${libname}_dll.$libext' 11059 dynamic_linker='OS/2 ld.exe' 11060 shlibpath_var=BEGINLIBPATH 11061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11063 postinstall_cmds='base_file=`basename \$file`~ 11064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11065 dldir=$destdir/`dirname \$dlpath`~ 11066 test -d \$dldir || mkdir -p \$dldir~ 11067 $install_prog $dir/$dlname \$dldir/$dlname~ 11068 chmod a+x \$dldir/$dlname~ 11069 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11070 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11071 fi' 11072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11073 dlpath=$dir/\$dldll~ 11074 $RM \$dlpath' 11075 ;; 11076 11077osf3* | osf4* | osf5*) 11078 version_type=osf 11079 need_lib_prefix=no 11080 need_version=no 11081 soname_spec='$libname$release$shared_ext$major' 11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11083 shlibpath_var=LD_LIBRARY_PATH 11084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11086 ;; 11087 11088rdos*) 11089 dynamic_linker=no 11090 ;; 11091 11092solaris*) 11093 version_type=linux # correct to gnu/linux during the next big refactor 11094 need_lib_prefix=no 11095 need_version=no 11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11097 soname_spec='$libname$release$shared_ext$major' 11098 shlibpath_var=LD_LIBRARY_PATH 11099 shlibpath_overrides_runpath=yes 11100 hardcode_into_libs=yes 11101 # ldd complains unless libraries are executable 11102 postinstall_cmds='chmod +x $lib' 11103 ;; 11104 11105sunos4*) 11106 version_type=sunos 11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11109 shlibpath_var=LD_LIBRARY_PATH 11110 shlibpath_overrides_runpath=yes 11111 if test yes = "$with_gnu_ld"; then 11112 need_lib_prefix=no 11113 fi 11114 need_version=yes 11115 ;; 11116 11117sysv4 | sysv4.3*) 11118 version_type=linux # correct to gnu/linux during the next big refactor 11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11120 soname_spec='$libname$release$shared_ext$major' 11121 shlibpath_var=LD_LIBRARY_PATH 11122 case $host_vendor in 11123 sni) 11124 shlibpath_overrides_runpath=no 11125 need_lib_prefix=no 11126 runpath_var=LD_RUN_PATH 11127 ;; 11128 siemens) 11129 need_lib_prefix=no 11130 ;; 11131 motorola) 11132 need_lib_prefix=no 11133 need_version=no 11134 shlibpath_overrides_runpath=no 11135 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11136 ;; 11137 esac 11138 ;; 11139 11140sysv4*MP*) 11141 if test -d /usr/nec; then 11142 version_type=linux # correct to gnu/linux during the next big refactor 11143 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11144 soname_spec='$libname$shared_ext.$major' 11145 shlibpath_var=LD_LIBRARY_PATH 11146 fi 11147 ;; 11148 11149sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11150 version_type=sco 11151 need_lib_prefix=no 11152 need_version=no 11153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11154 soname_spec='$libname$release$shared_ext$major' 11155 shlibpath_var=LD_LIBRARY_PATH 11156 shlibpath_overrides_runpath=yes 11157 hardcode_into_libs=yes 11158 if test yes = "$with_gnu_ld"; then 11159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11160 else 11161 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11162 case $host_os in 11163 sco3.2v5*) 11164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11165 ;; 11166 esac 11167 fi 11168 sys_lib_dlsearch_path_spec='/usr/lib' 11169 ;; 11170 11171tpf*) 11172 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11173 version_type=linux # correct to gnu/linux during the next big refactor 11174 need_lib_prefix=no 11175 need_version=no 11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11177 shlibpath_var=LD_LIBRARY_PATH 11178 shlibpath_overrides_runpath=no 11179 hardcode_into_libs=yes 11180 ;; 11181 11182uts4*) 11183 version_type=linux # correct to gnu/linux during the next big refactor 11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11185 soname_spec='$libname$release$shared_ext$major' 11186 shlibpath_var=LD_LIBRARY_PATH 11187 ;; 11188 11189*) 11190 dynamic_linker=no 11191 ;; 11192esac 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11194$as_echo "$dynamic_linker" >&6; } 11195test no = "$dynamic_linker" && can_build_shared=no 11196 11197variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11198if test yes = "$GCC"; then 11199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11200fi 11201 11202if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11203 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11204fi 11205if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11206 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11207fi 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11301$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11302hardcode_action= 11303if test -n "$hardcode_libdir_flag_spec" || 11304 test -n "$runpath_var" || 11305 test yes = "$hardcode_automatic"; then 11306 11307 # We can hardcode non-existent directories. 11308 if test no != "$hardcode_direct" && 11309 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11310 # have to relink, otherwise we might link with an installed library 11311 # when we should be linking with a yet-to-be-installed one 11312 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11313 test no != "$hardcode_minus_L"; then 11314 # Linking always hardcodes the temporary library directory. 11315 hardcode_action=relink 11316 else 11317 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11318 hardcode_action=immediate 11319 fi 11320else 11321 # We cannot hardcode anything, or else we can only hardcode existing 11322 # directories. 11323 hardcode_action=unsupported 11324fi 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11326$as_echo "$hardcode_action" >&6; } 11327 11328if test relink = "$hardcode_action" || 11329 test yes = "$inherit_rpath"; then 11330 # Fast installation is not supported 11331 enable_fast_install=no 11332elif test yes = "$shlibpath_overrides_runpath" || 11333 test no = "$enable_shared"; then 11334 # Fast installation is not necessary 11335 enable_fast_install=needless 11336fi 11337 11338 11339 11340 11341 11342 11343 if test yes != "$enable_dlopen"; then 11344 enable_dlopen=unknown 11345 enable_dlopen_self=unknown 11346 enable_dlopen_self_static=unknown 11347else 11348 lt_cv_dlopen=no 11349 lt_cv_dlopen_libs= 11350 11351 case $host_os in 11352 beos*) 11353 lt_cv_dlopen=load_add_on 11354 lt_cv_dlopen_libs= 11355 lt_cv_dlopen_self=yes 11356 ;; 11357 11358 mingw* | pw32* | cegcc*) 11359 lt_cv_dlopen=LoadLibrary 11360 lt_cv_dlopen_libs= 11361 ;; 11362 11363 cygwin*) 11364 lt_cv_dlopen=dlopen 11365 lt_cv_dlopen_libs= 11366 ;; 11367 11368 darwin*) 11369 # if libdl is installed we need to link against it 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11371$as_echo_n "checking for dlopen in -ldl... " >&6; } 11372if ${ac_cv_lib_dl_dlopen+:} false; then : 11373 $as_echo_n "(cached) " >&6 11374else 11375 ac_check_lib_save_LIBS=$LIBS 11376LIBS="-ldl $LIBS" 11377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378/* end confdefs.h. */ 11379 11380/* Override any GCC internal prototype to avoid an error. 11381 Use char because int might match the return type of a GCC 11382 builtin and then its argument prototype would still apply. */ 11383#ifdef __cplusplus 11384extern "C" 11385#endif 11386char dlopen (); 11387int 11388main () 11389{ 11390return dlopen (); 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395if ac_fn_c_try_link "$LINENO"; then : 11396 ac_cv_lib_dl_dlopen=yes 11397else 11398 ac_cv_lib_dl_dlopen=no 11399fi 11400rm -f core conftest.err conftest.$ac_objext \ 11401 conftest$ac_exeext conftest.$ac_ext 11402LIBS=$ac_check_lib_save_LIBS 11403fi 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11405$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11406if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11408else 11409 11410 lt_cv_dlopen=dyld 11411 lt_cv_dlopen_libs= 11412 lt_cv_dlopen_self=yes 11413 11414fi 11415 11416 ;; 11417 11418 tpf*) 11419 # Don't try to run any link tests for TPF. We know it's impossible 11420 # because TPF is a cross-compiler, and we know how we open DSOs. 11421 lt_cv_dlopen=dlopen 11422 lt_cv_dlopen_libs= 11423 lt_cv_dlopen_self=no 11424 ;; 11425 11426 *) 11427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11428if test "x$ac_cv_func_shl_load" = xyes; then : 11429 lt_cv_dlopen=shl_load 11430else 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11432$as_echo_n "checking for shl_load in -ldld... " >&6; } 11433if ${ac_cv_lib_dld_shl_load+:} false; then : 11434 $as_echo_n "(cached) " >&6 11435else 11436 ac_check_lib_save_LIBS=$LIBS 11437LIBS="-ldld $LIBS" 11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11439/* end confdefs.h. */ 11440 11441/* Override any GCC internal prototype to avoid an error. 11442 Use char because int might match the return type of a GCC 11443 builtin and then its argument prototype would still apply. */ 11444#ifdef __cplusplus 11445extern "C" 11446#endif 11447char shl_load (); 11448int 11449main () 11450{ 11451return shl_load (); 11452 ; 11453 return 0; 11454} 11455_ACEOF 11456if ac_fn_c_try_link "$LINENO"; then : 11457 ac_cv_lib_dld_shl_load=yes 11458else 11459 ac_cv_lib_dld_shl_load=no 11460fi 11461rm -f core conftest.err conftest.$ac_objext \ 11462 conftest$ac_exeext conftest.$ac_ext 11463LIBS=$ac_check_lib_save_LIBS 11464fi 11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11466$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11467if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11468 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11469else 11470 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11471if test "x$ac_cv_func_dlopen" = xyes; then : 11472 lt_cv_dlopen=dlopen 11473else 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11475$as_echo_n "checking for dlopen in -ldl... " >&6; } 11476if ${ac_cv_lib_dl_dlopen+:} false; then : 11477 $as_echo_n "(cached) " >&6 11478else 11479 ac_check_lib_save_LIBS=$LIBS 11480LIBS="-ldl $LIBS" 11481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11482/* end confdefs.h. */ 11483 11484/* Override any GCC internal prototype to avoid an error. 11485 Use char because int might match the return type of a GCC 11486 builtin and then its argument prototype would still apply. */ 11487#ifdef __cplusplus 11488extern "C" 11489#endif 11490char dlopen (); 11491int 11492main () 11493{ 11494return dlopen (); 11495 ; 11496 return 0; 11497} 11498_ACEOF 11499if ac_fn_c_try_link "$LINENO"; then : 11500 ac_cv_lib_dl_dlopen=yes 11501else 11502 ac_cv_lib_dl_dlopen=no 11503fi 11504rm -f core conftest.err conftest.$ac_objext \ 11505 conftest$ac_exeext conftest.$ac_ext 11506LIBS=$ac_check_lib_save_LIBS 11507fi 11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11509$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11510if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11511 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11512else 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11514$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11515if ${ac_cv_lib_svld_dlopen+:} false; then : 11516 $as_echo_n "(cached) " >&6 11517else 11518 ac_check_lib_save_LIBS=$LIBS 11519LIBS="-lsvld $LIBS" 11520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11521/* end confdefs.h. */ 11522 11523/* Override any GCC internal prototype to avoid an error. 11524 Use char because int might match the return type of a GCC 11525 builtin and then its argument prototype would still apply. */ 11526#ifdef __cplusplus 11527extern "C" 11528#endif 11529char dlopen (); 11530int 11531main () 11532{ 11533return dlopen (); 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538if ac_fn_c_try_link "$LINENO"; then : 11539 ac_cv_lib_svld_dlopen=yes 11540else 11541 ac_cv_lib_svld_dlopen=no 11542fi 11543rm -f core conftest.err conftest.$ac_objext \ 11544 conftest$ac_exeext conftest.$ac_ext 11545LIBS=$ac_check_lib_save_LIBS 11546fi 11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11548$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11549if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11550 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11551else 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11553$as_echo_n "checking for dld_link in -ldld... " >&6; } 11554if ${ac_cv_lib_dld_dld_link+:} false; then : 11555 $as_echo_n "(cached) " >&6 11556else 11557 ac_check_lib_save_LIBS=$LIBS 11558LIBS="-ldld $LIBS" 11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11560/* end confdefs.h. */ 11561 11562/* Override any GCC internal prototype to avoid an error. 11563 Use char because int might match the return type of a GCC 11564 builtin and then its argument prototype would still apply. */ 11565#ifdef __cplusplus 11566extern "C" 11567#endif 11568char dld_link (); 11569int 11570main () 11571{ 11572return dld_link (); 11573 ; 11574 return 0; 11575} 11576_ACEOF 11577if ac_fn_c_try_link "$LINENO"; then : 11578 ac_cv_lib_dld_dld_link=yes 11579else 11580 ac_cv_lib_dld_dld_link=no 11581fi 11582rm -f core conftest.err conftest.$ac_objext \ 11583 conftest$ac_exeext conftest.$ac_ext 11584LIBS=$ac_check_lib_save_LIBS 11585fi 11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11587$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11588if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11589 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11590fi 11591 11592 11593fi 11594 11595 11596fi 11597 11598 11599fi 11600 11601 11602fi 11603 11604 11605fi 11606 11607 ;; 11608 esac 11609 11610 if test no = "$lt_cv_dlopen"; then 11611 enable_dlopen=no 11612 else 11613 enable_dlopen=yes 11614 fi 11615 11616 case $lt_cv_dlopen in 11617 dlopen) 11618 save_CPPFLAGS=$CPPFLAGS 11619 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11620 11621 save_LDFLAGS=$LDFLAGS 11622 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11623 11624 save_LIBS=$LIBS 11625 LIBS="$lt_cv_dlopen_libs $LIBS" 11626 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11628$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11629if ${lt_cv_dlopen_self+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631else 11632 if test yes = "$cross_compiling"; then : 11633 lt_cv_dlopen_self=cross 11634else 11635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11636 lt_status=$lt_dlunknown 11637 cat > conftest.$ac_ext <<_LT_EOF 11638#line $LINENO "configure" 11639#include "confdefs.h" 11640 11641#if HAVE_DLFCN_H 11642#include <dlfcn.h> 11643#endif 11644 11645#include <stdio.h> 11646 11647#ifdef RTLD_GLOBAL 11648# define LT_DLGLOBAL RTLD_GLOBAL 11649#else 11650# ifdef DL_GLOBAL 11651# define LT_DLGLOBAL DL_GLOBAL 11652# else 11653# define LT_DLGLOBAL 0 11654# endif 11655#endif 11656 11657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11658 find out it does not work in some platform. */ 11659#ifndef LT_DLLAZY_OR_NOW 11660# ifdef RTLD_LAZY 11661# define LT_DLLAZY_OR_NOW RTLD_LAZY 11662# else 11663# ifdef DL_LAZY 11664# define LT_DLLAZY_OR_NOW DL_LAZY 11665# else 11666# ifdef RTLD_NOW 11667# define LT_DLLAZY_OR_NOW RTLD_NOW 11668# else 11669# ifdef DL_NOW 11670# define LT_DLLAZY_OR_NOW DL_NOW 11671# else 11672# define LT_DLLAZY_OR_NOW 0 11673# endif 11674# endif 11675# endif 11676# endif 11677#endif 11678 11679/* When -fvisibility=hidden is used, assume the code has been annotated 11680 correspondingly for the symbols needed. */ 11681#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11682int fnord () __attribute__((visibility("default"))); 11683#endif 11684 11685int fnord () { return 42; } 11686int main () 11687{ 11688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11689 int status = $lt_dlunknown; 11690 11691 if (self) 11692 { 11693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11694 else 11695 { 11696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11697 else puts (dlerror ()); 11698 } 11699 /* dlclose (self); */ 11700 } 11701 else 11702 puts (dlerror ()); 11703 11704 return status; 11705} 11706_LT_EOF 11707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11708 (eval $ac_link) 2>&5 11709 ac_status=$? 11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11711 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11712 (./conftest; exit; ) >&5 2>/dev/null 11713 lt_status=$? 11714 case x$lt_status in 11715 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11716 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11717 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11718 esac 11719 else : 11720 # compilation failed 11721 lt_cv_dlopen_self=no 11722 fi 11723fi 11724rm -fr conftest* 11725 11726 11727fi 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11729$as_echo "$lt_cv_dlopen_self" >&6; } 11730 11731 if test yes = "$lt_cv_dlopen_self"; then 11732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11734$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11735if ${lt_cv_dlopen_self_static+:} false; then : 11736 $as_echo_n "(cached) " >&6 11737else 11738 if test yes = "$cross_compiling"; then : 11739 lt_cv_dlopen_self_static=cross 11740else 11741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11742 lt_status=$lt_dlunknown 11743 cat > conftest.$ac_ext <<_LT_EOF 11744#line $LINENO "configure" 11745#include "confdefs.h" 11746 11747#if HAVE_DLFCN_H 11748#include <dlfcn.h> 11749#endif 11750 11751#include <stdio.h> 11752 11753#ifdef RTLD_GLOBAL 11754# define LT_DLGLOBAL RTLD_GLOBAL 11755#else 11756# ifdef DL_GLOBAL 11757# define LT_DLGLOBAL DL_GLOBAL 11758# else 11759# define LT_DLGLOBAL 0 11760# endif 11761#endif 11762 11763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11764 find out it does not work in some platform. */ 11765#ifndef LT_DLLAZY_OR_NOW 11766# ifdef RTLD_LAZY 11767# define LT_DLLAZY_OR_NOW RTLD_LAZY 11768# else 11769# ifdef DL_LAZY 11770# define LT_DLLAZY_OR_NOW DL_LAZY 11771# else 11772# ifdef RTLD_NOW 11773# define LT_DLLAZY_OR_NOW RTLD_NOW 11774# else 11775# ifdef DL_NOW 11776# define LT_DLLAZY_OR_NOW DL_NOW 11777# else 11778# define LT_DLLAZY_OR_NOW 0 11779# endif 11780# endif 11781# endif 11782# endif 11783#endif 11784 11785/* When -fvisibility=hidden is used, assume the code has been annotated 11786 correspondingly for the symbols needed. */ 11787#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11788int fnord () __attribute__((visibility("default"))); 11789#endif 11790 11791int fnord () { return 42; } 11792int main () 11793{ 11794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11795 int status = $lt_dlunknown; 11796 11797 if (self) 11798 { 11799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11800 else 11801 { 11802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11803 else puts (dlerror ()); 11804 } 11805 /* dlclose (self); */ 11806 } 11807 else 11808 puts (dlerror ()); 11809 11810 return status; 11811} 11812_LT_EOF 11813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11814 (eval $ac_link) 2>&5 11815 ac_status=$? 11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11817 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11818 (./conftest; exit; ) >&5 2>/dev/null 11819 lt_status=$? 11820 case x$lt_status in 11821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11823 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11824 esac 11825 else : 11826 # compilation failed 11827 lt_cv_dlopen_self_static=no 11828 fi 11829fi 11830rm -fr conftest* 11831 11832 11833fi 11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11835$as_echo "$lt_cv_dlopen_self_static" >&6; } 11836 fi 11837 11838 CPPFLAGS=$save_CPPFLAGS 11839 LDFLAGS=$save_LDFLAGS 11840 LIBS=$save_LIBS 11841 ;; 11842 esac 11843 11844 case $lt_cv_dlopen_self in 11845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11846 *) enable_dlopen_self=unknown ;; 11847 esac 11848 11849 case $lt_cv_dlopen_self_static in 11850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11851 *) enable_dlopen_self_static=unknown ;; 11852 esac 11853fi 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871striplib= 11872old_striplib= 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11874$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11875if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11876 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11877 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11879$as_echo "yes" >&6; } 11880else 11881# FIXME - insert some real tests, host_os isn't really good enough 11882 case $host_os in 11883 darwin*) 11884 if test -n "$STRIP"; then 11885 striplib="$STRIP -x" 11886 old_striplib="$STRIP -S" 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11888$as_echo "yes" >&6; } 11889 else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891$as_echo "no" >&6; } 11892 fi 11893 ;; 11894 *) 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11896$as_echo "no" >&6; } 11897 ;; 11898 esac 11899fi 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 # Report what library types will actually be built 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11914$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11916$as_echo "$can_build_shared" >&6; } 11917 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11919$as_echo_n "checking whether to build shared libraries... " >&6; } 11920 test no = "$can_build_shared" && enable_shared=no 11921 11922 # On AIX, shared libraries and static libraries use the same namespace, and 11923 # are all built from PIC. 11924 case $host_os in 11925 aix3*) 11926 test yes = "$enable_shared" && enable_static=no 11927 if test -n "$RANLIB"; then 11928 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11929 postinstall_cmds='$RANLIB $lib' 11930 fi 11931 ;; 11932 11933 aix[4-9]*) 11934 if test ia64 != "$host_cpu"; then 11935 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11936 yes,aix,yes) ;; # shared object as lib.so file only 11937 yes,svr4,*) ;; # shared object as lib.so archive member only 11938 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11939 esac 11940 fi 11941 ;; 11942 esac 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11944$as_echo "$enable_shared" >&6; } 11945 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11947$as_echo_n "checking whether to build static libraries... " >&6; } 11948 # Make sure either enable_shared or enable_static is yes. 11949 test yes = "$enable_shared" || enable_static=yes 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11951$as_echo "$enable_static" >&6; } 11952 11953 11954 11955 11956fi 11957ac_ext=c 11958ac_cpp='$CPP $CPPFLAGS' 11959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11961ac_compiler_gnu=$ac_cv_c_compiler_gnu 11962 11963CC=$lt_save_CC 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 ac_config_commands="$ac_config_commands libtool" 11980 11981 11982 11983 11984# Only expand once: 11985 11986 11987 11988# Add -Wall if we are using GCC. 11989if test "x$GCC" = "xyes"; then 11990 CFLAGS="$CFLAGS -Wall" 11991fi 11992 11993# Checks for header files. 11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11995$as_echo_n "checking for ANSI C header files... " >&6; } 11996if ${ac_cv_header_stdc+:} false; then : 11997 $as_echo_n "(cached) " >&6 11998else 11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12000/* end confdefs.h. */ 12001#include <stdlib.h> 12002#include <stdarg.h> 12003#include <string.h> 12004#include <float.h> 12005 12006int 12007main () 12008{ 12009 12010 ; 12011 return 0; 12012} 12013_ACEOF 12014if ac_fn_c_try_compile "$LINENO"; then : 12015 ac_cv_header_stdc=yes 12016else 12017 ac_cv_header_stdc=no 12018fi 12019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12020 12021if test $ac_cv_header_stdc = yes; then 12022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024/* end confdefs.h. */ 12025#include <string.h> 12026 12027_ACEOF 12028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12029 $EGREP "memchr" >/dev/null 2>&1; then : 12030 12031else 12032 ac_cv_header_stdc=no 12033fi 12034rm -f conftest* 12035 12036fi 12037 12038if test $ac_cv_header_stdc = yes; then 12039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12041/* end confdefs.h. */ 12042#include <stdlib.h> 12043 12044_ACEOF 12045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12046 $EGREP "free" >/dev/null 2>&1; then : 12047 12048else 12049 ac_cv_header_stdc=no 12050fi 12051rm -f conftest* 12052 12053fi 12054 12055if test $ac_cv_header_stdc = yes; then 12056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12057 if test "$cross_compiling" = yes; then : 12058 : 12059else 12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12061/* end confdefs.h. */ 12062#include <ctype.h> 12063#include <stdlib.h> 12064#if ((' ' & 0x0FF) == 0x020) 12065# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12066# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12067#else 12068# define ISLOWER(c) \ 12069 (('a' <= (c) && (c) <= 'i') \ 12070 || ('j' <= (c) && (c) <= 'r') \ 12071 || ('s' <= (c) && (c) <= 'z')) 12072# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12073#endif 12074 12075#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12076int 12077main () 12078{ 12079 int i; 12080 for (i = 0; i < 256; i++) 12081 if (XOR (islower (i), ISLOWER (i)) 12082 || toupper (i) != TOUPPER (i)) 12083 return 2; 12084 return 0; 12085} 12086_ACEOF 12087if ac_fn_c_try_run "$LINENO"; then : 12088 12089else 12090 ac_cv_header_stdc=no 12091fi 12092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12093 conftest.$ac_objext conftest.beam conftest.$ac_ext 12094fi 12095 12096fi 12097fi 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12099$as_echo "$ac_cv_header_stdc" >&6; } 12100if test $ac_cv_header_stdc = yes; then 12101 12102$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12103 12104fi 12105 12106 12107# Check for systems which need -lsocket and -lnsl 12108#AX_LIB_SOCKET_NSL 12109 12110# Solaris puts nanosleep in -lrt 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 12112$as_echo_n "checking for library containing nanosleep... " >&6; } 12113if ${ac_cv_search_nanosleep+:} false; then : 12114 $as_echo_n "(cached) " >&6 12115else 12116 ac_func_search_save_LIBS=$LIBS 12117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12118/* end confdefs.h. */ 12119 12120/* Override any GCC internal prototype to avoid an error. 12121 Use char because int might match the return type of a GCC 12122 builtin and then its argument prototype would still apply. */ 12123#ifdef __cplusplus 12124extern "C" 12125#endif 12126char nanosleep (); 12127int 12128main () 12129{ 12130return nanosleep (); 12131 ; 12132 return 0; 12133} 12134_ACEOF 12135for ac_lib in '' rt; do 12136 if test -z "$ac_lib"; then 12137 ac_res="none required" 12138 else 12139 ac_res=-l$ac_lib 12140 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12141 fi 12142 if ac_fn_c_try_link "$LINENO"; then : 12143 ac_cv_search_nanosleep=$ac_res 12144fi 12145rm -f core conftest.err conftest.$ac_objext \ 12146 conftest$ac_exeext 12147 if ${ac_cv_search_nanosleep+:} false; then : 12148 break 12149fi 12150done 12151if ${ac_cv_search_nanosleep+:} false; then : 12152 12153else 12154 ac_cv_search_nanosleep=no 12155fi 12156rm conftest.$ac_ext 12157LIBS=$ac_func_search_save_LIBS 12158fi 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 12160$as_echo "$ac_cv_search_nanosleep" >&6; } 12161ac_res=$ac_cv_search_nanosleep 12162if test "$ac_res" != no; then : 12163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12164 12165else 12166 12167echo "nanosleep() required for timing operations." 12168exit 1 12169 12170fi 12171 12172 12173# Solaris puts hstrerror in -lresolv 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 12175$as_echo_n "checking for library containing hstrerror... " >&6; } 12176if ${ac_cv_search_hstrerror+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 ac_func_search_save_LIBS=$LIBS 12180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12181/* end confdefs.h. */ 12182 12183/* Override any GCC internal prototype to avoid an error. 12184 Use char because int might match the return type of a GCC 12185 builtin and then its argument prototype would still apply. */ 12186#ifdef __cplusplus 12187extern "C" 12188#endif 12189char hstrerror (); 12190int 12191main () 12192{ 12193return hstrerror (); 12194 ; 12195 return 0; 12196} 12197_ACEOF 12198for ac_lib in '' resolv; do 12199 if test -z "$ac_lib"; then 12200 ac_res="none required" 12201 else 12202 ac_res=-l$ac_lib 12203 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12204 fi 12205 if ac_fn_c_try_link "$LINENO"; then : 12206 ac_cv_search_hstrerror=$ac_res 12207fi 12208rm -f core conftest.err conftest.$ac_objext \ 12209 conftest$ac_exeext 12210 if ${ac_cv_search_hstrerror+:} false; then : 12211 break 12212fi 12213done 12214if ${ac_cv_search_hstrerror+:} false; then : 12215 12216else 12217 ac_cv_search_hstrerror=no 12218fi 12219rm conftest.$ac_ext 12220LIBS=$ac_func_search_save_LIBS 12221fi 12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 12223$as_echo "$ac_cv_search_hstrerror" >&6; } 12224ac_res=$ac_cv_search_hstrerror 12225if test "$ac_res" != no; then : 12226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12227 12228else 12229 12230echo "nanosleep() required for timing operations." 12231exit 1 12232 12233fi 12234 12235 12236# On illumos we need -lsocket 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12238$as_echo_n "checking for library containing socket... " >&6; } 12239if ${ac_cv_search_socket+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 ac_func_search_save_LIBS=$LIBS 12243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12244/* end confdefs.h. */ 12245 12246/* Override any GCC internal prototype to avoid an error. 12247 Use char because int might match the return type of a GCC 12248 builtin and then its argument prototype would still apply. */ 12249#ifdef __cplusplus 12250extern "C" 12251#endif 12252char socket (); 12253int 12254main () 12255{ 12256return socket (); 12257 ; 12258 return 0; 12259} 12260_ACEOF 12261for ac_lib in '' socket; do 12262 if test -z "$ac_lib"; then 12263 ac_res="none required" 12264 else 12265 ac_res=-l$ac_lib 12266 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12267 fi 12268 if ac_fn_c_try_link "$LINENO"; then : 12269 ac_cv_search_socket=$ac_res 12270fi 12271rm -f core conftest.err conftest.$ac_objext \ 12272 conftest$ac_exeext 12273 if ${ac_cv_search_socket+:} false; then : 12274 break 12275fi 12276done 12277if ${ac_cv_search_socket+:} false; then : 12278 12279else 12280 ac_cv_search_socket=no 12281fi 12282rm conftest.$ac_ext 12283LIBS=$ac_func_search_save_LIBS 12284fi 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12286$as_echo "$ac_cv_search_socket" >&6; } 12287ac_res=$ac_cv_search_socket 12288if test "$ac_res" != no; then : 12289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12290 12291else 12292 12293echo "socket()" 12294exit 1 12295 12296fi 12297 12298 12299# On illumos inet_ntop in in -lnsl 12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 12301$as_echo_n "checking for library containing inet_ntop... " >&6; } 12302if ${ac_cv_search_inet_ntop+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304else 12305 ac_func_search_save_LIBS=$LIBS 12306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12307/* end confdefs.h. */ 12308 12309/* Override any GCC internal prototype to avoid an error. 12310 Use char because int might match the return type of a GCC 12311 builtin and then its argument prototype would still apply. */ 12312#ifdef __cplusplus 12313extern "C" 12314#endif 12315char inet_ntop (); 12316int 12317main () 12318{ 12319return inet_ntop (); 12320 ; 12321 return 0; 12322} 12323_ACEOF 12324for ac_lib in '' nsl; do 12325 if test -z "$ac_lib"; then 12326 ac_res="none required" 12327 else 12328 ac_res=-l$ac_lib 12329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12330 fi 12331 if ac_fn_c_try_link "$LINENO"; then : 12332 ac_cv_search_inet_ntop=$ac_res 12333fi 12334rm -f core conftest.err conftest.$ac_objext \ 12335 conftest$ac_exeext 12336 if ${ac_cv_search_inet_ntop+:} false; then : 12337 break 12338fi 12339done 12340if ${ac_cv_search_inet_ntop+:} false; then : 12341 12342else 12343 ac_cv_search_inet_ntop=no 12344fi 12345rm conftest.$ac_ext 12346LIBS=$ac_func_search_save_LIBS 12347fi 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 12349$as_echo "$ac_cv_search_inet_ntop" >&6; } 12350ac_res=$ac_cv_search_inet_ntop 12351if test "$ac_res" != no; then : 12352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12353 12354else 12355 12356echo "inet_ntop()" 12357exit 1 12358 12359fi 12360 12361 12362# Checks for typedefs, structures, and compiler characteristics. 12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12364$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12365if ${ac_cv_c_const+:} false; then : 12366 $as_echo_n "(cached) " >&6 12367else 12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12369/* end confdefs.h. */ 12370 12371int 12372main () 12373{ 12374 12375#ifndef __cplusplus 12376 /* Ultrix mips cc rejects this sort of thing. */ 12377 typedef int charset[2]; 12378 const charset cs = { 0, 0 }; 12379 /* SunOS 4.1.1 cc rejects this. */ 12380 char const *const *pcpcc; 12381 char **ppc; 12382 /* NEC SVR4.0.2 mips cc rejects this. */ 12383 struct point {int x, y;}; 12384 static struct point const zero = {0,0}; 12385 /* AIX XL C 1.02.0.0 rejects this. 12386 It does not let you subtract one const X* pointer from another in 12387 an arm of an if-expression whose if-part is not a constant 12388 expression */ 12389 const char *g = "string"; 12390 pcpcc = &g + (g ? g-g : 0); 12391 /* HPUX 7.0 cc rejects these. */ 12392 ++pcpcc; 12393 ppc = (char**) pcpcc; 12394 pcpcc = (char const *const *) ppc; 12395 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12396 char tx; 12397 char *t = &tx; 12398 char const *s = 0 ? (char *) 0 : (char const *) 0; 12399 12400 *t++ = 0; 12401 if (s) return 0; 12402 } 12403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12404 int x[] = {25, 17}; 12405 const int *foo = &x[0]; 12406 ++foo; 12407 } 12408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12409 typedef const int *iptr; 12410 iptr p = 0; 12411 ++p; 12412 } 12413 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12415 struct s { int j; const int *ap[3]; } bx; 12416 struct s *b = &bx; b->j = 5; 12417 } 12418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12419 const int foo = 10; 12420 if (!foo) return 0; 12421 } 12422 return !cs[0] && !zero.x; 12423#endif 12424 12425 ; 12426 return 0; 12427} 12428_ACEOF 12429if ac_fn_c_try_compile "$LINENO"; then : 12430 ac_cv_c_const=yes 12431else 12432 ac_cv_c_const=no 12433fi 12434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12435fi 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12437$as_echo "$ac_cv_c_const" >&6; } 12438if test $ac_cv_c_const = no; then 12439 12440$as_echo "#define const /**/" >>confdefs.h 12441 12442fi 12443 12444 12445# Check for SCTP support 12446for ac_header in sys/socket.h 12447do : 12448 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 12449if test "x$ac_cv_header_sys_socket_h" = xyes; then : 12450 cat >>confdefs.h <<_ACEOF 12451#define HAVE_SYS_SOCKET_H 1 12452_ACEOF 12453 12454fi 12455 12456done 12457 12458for ac_header in netinet/sctp.h 12459do : 12460 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H 12461#include <sys/socket.h> 12462#endif 12463 12464" 12465if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 12466 cat >>confdefs.h <<_ACEOF 12467#define HAVE_NETINET_SCTP_H 1 12468_ACEOF 12469 12470$as_echo "#define HAVE_SCTP 1" >>confdefs.h 12471 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5 12473$as_echo_n "checking for library containing sctp_bindx... " >&6; } 12474if ${ac_cv_search_sctp_bindx+:} false; then : 12475 $as_echo_n "(cached) " >&6 12476else 12477 ac_func_search_save_LIBS=$LIBS 12478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12479/* end confdefs.h. */ 12480 12481/* Override any GCC internal prototype to avoid an error. 12482 Use char because int might match the return type of a GCC 12483 builtin and then its argument prototype would still apply. */ 12484#ifdef __cplusplus 12485extern "C" 12486#endif 12487char sctp_bindx (); 12488int 12489main () 12490{ 12491return sctp_bindx (); 12492 ; 12493 return 0; 12494} 12495_ACEOF 12496for ac_lib in '' sctp; do 12497 if test -z "$ac_lib"; then 12498 ac_res="none required" 12499 else 12500 ac_res=-l$ac_lib 12501 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12502 fi 12503 if ac_fn_c_try_link "$LINENO"; then : 12504 ac_cv_search_sctp_bindx=$ac_res 12505fi 12506rm -f core conftest.err conftest.$ac_objext \ 12507 conftest$ac_exeext 12508 if ${ac_cv_search_sctp_bindx+:} false; then : 12509 break 12510fi 12511done 12512if ${ac_cv_search_sctp_bindx+:} false; then : 12513 12514else 12515 ac_cv_search_sctp_bindx=no 12516fi 12517rm conftest.$ac_ext 12518LIBS=$ac_func_search_save_LIBS 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5 12521$as_echo "$ac_cv_search_sctp_bindx" >&6; } 12522ac_res=$ac_cv_search_sctp_bindx 12523if test "$ac_res" != no; then : 12524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12525 12526fi 12527 12528fi 12529 12530done 12531 12532 12533# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only) 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 12535$as_echo_n "checking TCP_CONGESTION socket option... " >&6; } 12536if ${iperf3_cv_header_tcp_congestion+:} false; then : 12537 $as_echo_n "(cached) " >&6 12538else 12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541#include <netinet/tcp.h> 12542#ifdef TCP_CONGESTION 12543 yes 12544#endif 12545 12546_ACEOF 12547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12548 $EGREP "yes" >/dev/null 2>&1; then : 12549 iperf3_cv_header_tcp_congestion=yes 12550else 12551 iperf3_cv_header_tcp_congestion=no 12552fi 12553rm -f conftest* 12554 12555fi 12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 12557$as_echo "$iperf3_cv_header_tcp_congestion" >&6; } 12558if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 12559 12560$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h 12561 12562fi 12563 12564# Check for IPv6 flowlabel support (believed to be Linux only) 12565# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 12566# don't use that file directly (we have our own stripped-down 12567# copy, see src/flowlabel.h for more details). 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 12569$as_echo_n "checking IPv6 flowlabel support... " >&6; } 12570if ${iperf3_cv_header_flowlabel+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572else 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574/* end confdefs.h. */ 12575#include <sys/types.h> 12576#include <linux/in6.h> 12577#ifdef IPV6_FLOWLABEL_MGR 12578 yes 12579#endif 12580 12581_ACEOF 12582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12583 $EGREP "yes" >/dev/null 2>&1; then : 12584 iperf3_cv_header_flowlabel=yes 12585else 12586 iperf3_cv_header_flowlabel=no 12587fi 12588rm -f conftest* 12589 12590fi 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 12592$as_echo "$iperf3_cv_header_flowlabel" >&6; } 12593if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 12594 12595$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h 12596 12597fi 12598 12599# Check for CPU affinity support. FreeBSD and Linux do this differently 12600# unfortunately so we have to check separately for each of them. 12601# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 12602# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 12603# generic concept is available. 12604for ac_func in cpuset_setaffinity sched_setaffinity 12605do : 12606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12608if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12609 cat >>confdefs.h <<_ACEOF 12610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12611_ACEOF 12612 12613$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h 12614 12615fi 12616done 12617 12618 12619# Check for sendfile support. FreeBSD, Linux, and MacOS all support 12620# this system call, but they're all different in terms of what headers 12621# it needs and what arguments it expects. 12622for ac_func in sendfile 12623do : 12624 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 12625if test "x$ac_cv_func_sendfile" = xyes; then : 12626 cat >>confdefs.h <<_ACEOF 12627#define HAVE_SENDFILE 1 12628_ACEOF 12629 12630fi 12631done 12632 12633 12634ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec" 12635 12636cat >confcache <<\_ACEOF 12637# This file is a shell script that caches the results of configure 12638# tests run on this system so they can be shared between configure 12639# scripts and configure runs, see configure's option --config-cache. 12640# It is not useful on other systems. If it contains results you don't 12641# want to keep, you may remove or edit it. 12642# 12643# config.status only pays attention to the cache file if you give it 12644# the --recheck option to rerun configure. 12645# 12646# `ac_cv_env_foo' variables (set or unset) will be overridden when 12647# loading this file, other *unset* `ac_cv_foo' will be assigned the 12648# following values. 12649 12650_ACEOF 12651 12652# The following way of writing the cache mishandles newlines in values, 12653# but we know of no workaround that is simple, portable, and efficient. 12654# So, we kill variables containing newlines. 12655# Ultrix sh set writes to stderr and can't be redirected directly, 12656# and sets the high bit in the cache file unless we assign to the vars. 12657( 12658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12659 eval ac_val=\$$ac_var 12660 case $ac_val in #( 12661 *${as_nl}*) 12662 case $ac_var in #( 12663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12665 esac 12666 case $ac_var in #( 12667 _ | IFS | as_nl) ;; #( 12668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12669 *) { eval $ac_var=; unset $ac_var;} ;; 12670 esac ;; 12671 esac 12672 done 12673 12674 (set) 2>&1 | 12675 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12676 *${as_nl}ac_space=\ *) 12677 # `set' does not quote correctly, so add quotes: double-quote 12678 # substitution turns \\\\ into \\, and sed turns \\ into \. 12679 sed -n \ 12680 "s/'/'\\\\''/g; 12681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12682 ;; #( 12683 *) 12684 # `set' quotes correctly as required by POSIX, so do not add quotes. 12685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12686 ;; 12687 esac | 12688 sort 12689) | 12690 sed ' 12691 /^ac_cv_env_/b end 12692 t clear 12693 :clear 12694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12695 t end 12696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12697 :end' >>confcache 12698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12699 if test -w "$cache_file"; then 12700 if test "x$cache_file" != "x/dev/null"; then 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12702$as_echo "$as_me: updating cache $cache_file" >&6;} 12703 if test ! -f "$cache_file" || test -h "$cache_file"; then 12704 cat confcache >"$cache_file" 12705 else 12706 case $cache_file in #( 12707 */* | ?:*) 12708 mv -f confcache "$cache_file"$$ && 12709 mv -f "$cache_file"$$ "$cache_file" ;; #( 12710 *) 12711 mv -f confcache "$cache_file" ;; 12712 esac 12713 fi 12714 fi 12715 else 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12717$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12718 fi 12719fi 12720rm -f confcache 12721 12722test "x$prefix" = xNONE && prefix=$ac_default_prefix 12723# Let make expand exec_prefix. 12724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12725 12726DEFS=-DHAVE_CONFIG_H 12727 12728ac_libobjs= 12729ac_ltlibobjs= 12730for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12731 # 1. Remove the extension, and $U if already installed. 12732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12735 # will be set to the directory where LIBOBJS objects are built. 12736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12738done 12739LIBOBJS=$ac_libobjs 12740 12741LTLIBOBJS=$ac_ltlibobjs 12742 12743 12744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12745$as_echo_n "checking that generated files are newer than configure... " >&6; } 12746 if test -n "$am_sleep_pid"; then 12747 # Hide warnings about reused PIDs. 12748 wait $am_sleep_pid 2>/dev/null 12749 fi 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12751$as_echo "done" >&6; } 12752 if test -n "$EXEEXT"; then 12753 am__EXEEXT_TRUE= 12754 am__EXEEXT_FALSE='#' 12755else 12756 am__EXEEXT_TRUE='#' 12757 am__EXEEXT_FALSE= 12758fi 12759 12760if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12761 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12762Usually this means the macro was only invoked conditionally." "$LINENO" 5 12763fi 12764if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12765 as_fn_error $? "conditional \"AMDEP\" was never defined. 12766Usually this means the macro was only invoked conditionally." "$LINENO" 5 12767fi 12768if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12770Usually this means the macro was only invoked conditionally." "$LINENO" 5 12771fi 12772 12773: "${CONFIG_STATUS=./config.status}" 12774ac_write_fail=0 12775ac_clean_files_save=$ac_clean_files 12776ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12779as_write_fail=0 12780cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12781#! $SHELL 12782# Generated by $as_me. 12783# Run this file to recreate the current configuration. 12784# Compiler output produced by configure, useful for debugging 12785# configure, is in config.log if it exists. 12786 12787debug=false 12788ac_cs_recheck=false 12789ac_cs_silent=false 12790 12791SHELL=\${CONFIG_SHELL-$SHELL} 12792export SHELL 12793_ASEOF 12794cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12795## -------------------- ## 12796## M4sh Initialization. ## 12797## -------------------- ## 12798 12799# Be more Bourne compatible 12800DUALCASE=1; export DUALCASE # for MKS sh 12801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12802 emulate sh 12803 NULLCMD=: 12804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12805 # is contrary to our usage. Disable this feature. 12806 alias -g '${1+"$@"}'='"$@"' 12807 setopt NO_GLOB_SUBST 12808else 12809 case `(set -o) 2>/dev/null` in #( 12810 *posix*) : 12811 set -o posix ;; #( 12812 *) : 12813 ;; 12814esac 12815fi 12816 12817 12818as_nl=' 12819' 12820export as_nl 12821# Printing a long string crashes Solaris 7 /usr/bin/printf. 12822as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12823as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12825# Prefer a ksh shell builtin over an external printf program on Solaris, 12826# but without wasting forks for bash or zsh. 12827if test -z "$BASH_VERSION$ZSH_VERSION" \ 12828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12829 as_echo='print -r --' 12830 as_echo_n='print -rn --' 12831elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12832 as_echo='printf %s\n' 12833 as_echo_n='printf %s' 12834else 12835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12837 as_echo_n='/usr/ucb/echo -n' 12838 else 12839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12840 as_echo_n_body='eval 12841 arg=$1; 12842 case $arg in #( 12843 *"$as_nl"*) 12844 expr "X$arg" : "X\\(.*\\)$as_nl"; 12845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12846 esac; 12847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12848 ' 12849 export as_echo_n_body 12850 as_echo_n='sh -c $as_echo_n_body as_echo' 12851 fi 12852 export as_echo_body 12853 as_echo='sh -c $as_echo_body as_echo' 12854fi 12855 12856# The user is always right. 12857if test "${PATH_SEPARATOR+set}" != set; then 12858 PATH_SEPARATOR=: 12859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12861 PATH_SEPARATOR=';' 12862 } 12863fi 12864 12865 12866# IFS 12867# We need space, tab and new line, in precisely that order. Quoting is 12868# there to prevent editors from complaining about space-tab. 12869# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12870# splitting by setting IFS to empty value.) 12871IFS=" "" $as_nl" 12872 12873# Find who we are. Look in the path if we contain no directory separator. 12874as_myself= 12875case $0 in #(( 12876 *[\\/]* ) as_myself=$0 ;; 12877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12878for as_dir in $PATH 12879do 12880 IFS=$as_save_IFS 12881 test -z "$as_dir" && as_dir=. 12882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12883 done 12884IFS=$as_save_IFS 12885 12886 ;; 12887esac 12888# We did not find ourselves, most probably we were run as `sh COMMAND' 12889# in which case we are not to be found in the path. 12890if test "x$as_myself" = x; then 12891 as_myself=$0 12892fi 12893if test ! -f "$as_myself"; then 12894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12895 exit 1 12896fi 12897 12898# Unset variables that we do not need and which cause bugs (e.g. in 12899# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12900# suppresses any "Segmentation fault" message there. '((' could 12901# trigger a bug in pdksh 5.2.14. 12902for as_var in BASH_ENV ENV MAIL MAILPATH 12903do eval test x\${$as_var+set} = xset \ 12904 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12905done 12906PS1='$ ' 12907PS2='> ' 12908PS4='+ ' 12909 12910# NLS nuisances. 12911LC_ALL=C 12912export LC_ALL 12913LANGUAGE=C 12914export LANGUAGE 12915 12916# CDPATH. 12917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12918 12919 12920# as_fn_error STATUS ERROR [LINENO LOG_FD] 12921# ---------------------------------------- 12922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12924# script with STATUS, using 1 if that was 0. 12925as_fn_error () 12926{ 12927 as_status=$1; test $as_status -eq 0 && as_status=1 12928 if test "$4"; then 12929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12931 fi 12932 $as_echo "$as_me: error: $2" >&2 12933 as_fn_exit $as_status 12934} # as_fn_error 12935 12936 12937# as_fn_set_status STATUS 12938# ----------------------- 12939# Set $? to STATUS, without forking. 12940as_fn_set_status () 12941{ 12942 return $1 12943} # as_fn_set_status 12944 12945# as_fn_exit STATUS 12946# ----------------- 12947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12948as_fn_exit () 12949{ 12950 set +e 12951 as_fn_set_status $1 12952 exit $1 12953} # as_fn_exit 12954 12955# as_fn_unset VAR 12956# --------------- 12957# Portably unset VAR. 12958as_fn_unset () 12959{ 12960 { eval $1=; unset $1;} 12961} 12962as_unset=as_fn_unset 12963# as_fn_append VAR VALUE 12964# ---------------------- 12965# Append the text in VALUE to the end of the definition contained in VAR. Take 12966# advantage of any shell optimizations that allow amortized linear growth over 12967# repeated appends, instead of the typical quadratic growth present in naive 12968# implementations. 12969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12970 eval 'as_fn_append () 12971 { 12972 eval $1+=\$2 12973 }' 12974else 12975 as_fn_append () 12976 { 12977 eval $1=\$$1\$2 12978 } 12979fi # as_fn_append 12980 12981# as_fn_arith ARG... 12982# ------------------ 12983# Perform arithmetic evaluation on the ARGs, and store the result in the 12984# global $as_val. Take advantage of shells that can avoid forks. The arguments 12985# must be portable across $(()) and expr. 12986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12987 eval 'as_fn_arith () 12988 { 12989 as_val=$(( $* )) 12990 }' 12991else 12992 as_fn_arith () 12993 { 12994 as_val=`expr "$@" || test $? -eq 1` 12995 } 12996fi # as_fn_arith 12997 12998 12999if expr a : '\(a\)' >/dev/null 2>&1 && 13000 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13001 as_expr=expr 13002else 13003 as_expr=false 13004fi 13005 13006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13007 as_basename=basename 13008else 13009 as_basename=false 13010fi 13011 13012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13013 as_dirname=dirname 13014else 13015 as_dirname=false 13016fi 13017 13018as_me=`$as_basename -- "$0" || 13019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13020 X"$0" : 'X\(//\)$' \| \ 13021 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13022$as_echo X/"$0" | 13023 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13024 s//\1/ 13025 q 13026 } 13027 /^X\/\(\/\/\)$/{ 13028 s//\1/ 13029 q 13030 } 13031 /^X\/\(\/\).*/{ 13032 s//\1/ 13033 q 13034 } 13035 s/.*/./; q'` 13036 13037# Avoid depending upon Character Ranges. 13038as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13040as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13041as_cr_digits='0123456789' 13042as_cr_alnum=$as_cr_Letters$as_cr_digits 13043 13044ECHO_C= ECHO_N= ECHO_T= 13045case `echo -n x` in #((((( 13046-n*) 13047 case `echo 'xy\c'` in 13048 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13049 xy) ECHO_C='\c';; 13050 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13051 ECHO_T=' ';; 13052 esac;; 13053*) 13054 ECHO_N='-n';; 13055esac 13056 13057rm -f conf$$ conf$$.exe conf$$.file 13058if test -d conf$$.dir; then 13059 rm -f conf$$.dir/conf$$.file 13060else 13061 rm -f conf$$.dir 13062 mkdir conf$$.dir 2>/dev/null 13063fi 13064if (echo >conf$$.file) 2>/dev/null; then 13065 if ln -s conf$$.file conf$$ 2>/dev/null; then 13066 as_ln_s='ln -s' 13067 # ... but there are two gotchas: 13068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13070 # In both cases, we have to default to `cp -pR'. 13071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13072 as_ln_s='cp -pR' 13073 elif ln conf$$.file conf$$ 2>/dev/null; then 13074 as_ln_s=ln 13075 else 13076 as_ln_s='cp -pR' 13077 fi 13078else 13079 as_ln_s='cp -pR' 13080fi 13081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13082rmdir conf$$.dir 2>/dev/null 13083 13084 13085# as_fn_mkdir_p 13086# ------------- 13087# Create "$as_dir" as a directory, including parents if necessary. 13088as_fn_mkdir_p () 13089{ 13090 13091 case $as_dir in #( 13092 -*) as_dir=./$as_dir;; 13093 esac 13094 test -d "$as_dir" || eval $as_mkdir_p || { 13095 as_dirs= 13096 while :; do 13097 case $as_dir in #( 13098 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13099 *) as_qdir=$as_dir;; 13100 esac 13101 as_dirs="'$as_qdir' $as_dirs" 13102 as_dir=`$as_dirname -- "$as_dir" || 13103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13104 X"$as_dir" : 'X\(//\)[^/]' \| \ 13105 X"$as_dir" : 'X\(//\)$' \| \ 13106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13107$as_echo X"$as_dir" | 13108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13109 s//\1/ 13110 q 13111 } 13112 /^X\(\/\/\)[^/].*/{ 13113 s//\1/ 13114 q 13115 } 13116 /^X\(\/\/\)$/{ 13117 s//\1/ 13118 q 13119 } 13120 /^X\(\/\).*/{ 13121 s//\1/ 13122 q 13123 } 13124 s/.*/./; q'` 13125 test -d "$as_dir" && break 13126 done 13127 test -z "$as_dirs" || eval "mkdir $as_dirs" 13128 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13129 13130 13131} # as_fn_mkdir_p 13132if mkdir -p . 2>/dev/null; then 13133 as_mkdir_p='mkdir -p "$as_dir"' 13134else 13135 test -d ./-p && rmdir ./-p 13136 as_mkdir_p=false 13137fi 13138 13139 13140# as_fn_executable_p FILE 13141# ----------------------- 13142# Test if FILE is an executable regular file. 13143as_fn_executable_p () 13144{ 13145 test -f "$1" && test -x "$1" 13146} # as_fn_executable_p 13147as_test_x='test -x' 13148as_executable_p=as_fn_executable_p 13149 13150# Sed expression to map a string onto a valid CPP name. 13151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13152 13153# Sed expression to map a string onto a valid variable name. 13154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13155 13156 13157exec 6>&1 13158## ----------------------------------- ## 13159## Main body of $CONFIG_STATUS script. ## 13160## ----------------------------------- ## 13161_ASEOF 13162test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13163 13164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13165# Save the log message, to keep $0 and so on meaningful, and to 13166# report actual input values of CONFIG_FILES etc. instead of their 13167# values after options handling. 13168ac_log=" 13169This file was extended by iperf $as_me 3-CURRENT, which was 13170generated by GNU Autoconf 2.69. Invocation command line was 13171 13172 CONFIG_FILES = $CONFIG_FILES 13173 CONFIG_HEADERS = $CONFIG_HEADERS 13174 CONFIG_LINKS = $CONFIG_LINKS 13175 CONFIG_COMMANDS = $CONFIG_COMMANDS 13176 $ $0 $@ 13177 13178on `(hostname || uname -n) 2>/dev/null | sed 1q` 13179" 13180 13181_ACEOF 13182 13183case $ac_config_files in *" 13184"*) set x $ac_config_files; shift; ac_config_files=$*;; 13185esac 13186 13187case $ac_config_headers in *" 13188"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13189esac 13190 13191 13192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13193# Files that config.status was made for. 13194config_files="$ac_config_files" 13195config_headers="$ac_config_headers" 13196config_commands="$ac_config_commands" 13197 13198_ACEOF 13199 13200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13201ac_cs_usage="\ 13202\`$as_me' instantiates files and other configuration actions 13203from templates according to the current configuration. Unless the files 13204and actions are specified as TAGs, all are instantiated by default. 13205 13206Usage: $0 [OPTION]... [TAG]... 13207 13208 -h, --help print this help, then exit 13209 -V, --version print version number and configuration settings, then exit 13210 --config print configuration, then exit 13211 -q, --quiet, --silent 13212 do not print progress messages 13213 -d, --debug don't remove temporary files 13214 --recheck update $as_me by reconfiguring in the same conditions 13215 --file=FILE[:TEMPLATE] 13216 instantiate the configuration file FILE 13217 --header=FILE[:TEMPLATE] 13218 instantiate the configuration header FILE 13219 13220Configuration files: 13221$config_files 13222 13223Configuration headers: 13224$config_headers 13225 13226Configuration commands: 13227$config_commands 13228 13229Report bugs to <https://github.com/esnet/iperf>. 13230iperf home page: <http://software.es.net/iperf/>." 13231 13232_ACEOF 13233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13234ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13235ac_cs_version="\\ 13236iperf config.status 3-CURRENT 13237configured by $0, generated by GNU Autoconf 2.69, 13238 with options \\"\$ac_cs_config\\" 13239 13240Copyright (C) 2012 Free Software Foundation, Inc. 13241This config.status script is free software; the Free Software Foundation 13242gives unlimited permission to copy, distribute and modify it." 13243 13244ac_pwd='$ac_pwd' 13245srcdir='$srcdir' 13246INSTALL='$INSTALL' 13247MKDIR_P='$MKDIR_P' 13248AWK='$AWK' 13249test -n "\$AWK" || AWK=awk 13250_ACEOF 13251 13252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13253# The default lists apply if the user does not specify any file. 13254ac_need_defaults=: 13255while test $# != 0 13256do 13257 case $1 in 13258 --*=?*) 13259 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13261 ac_shift=: 13262 ;; 13263 --*=) 13264 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13265 ac_optarg= 13266 ac_shift=: 13267 ;; 13268 *) 13269 ac_option=$1 13270 ac_optarg=$2 13271 ac_shift=shift 13272 ;; 13273 esac 13274 13275 case $ac_option in 13276 # Handling of the options. 13277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13278 ac_cs_recheck=: ;; 13279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13280 $as_echo "$ac_cs_version"; exit ;; 13281 --config | --confi | --conf | --con | --co | --c ) 13282 $as_echo "$ac_cs_config"; exit ;; 13283 --debug | --debu | --deb | --de | --d | -d ) 13284 debug=: ;; 13285 --file | --fil | --fi | --f ) 13286 $ac_shift 13287 case $ac_optarg in 13288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13289 '') as_fn_error $? "missing file argument" ;; 13290 esac 13291 as_fn_append CONFIG_FILES " '$ac_optarg'" 13292 ac_need_defaults=false;; 13293 --header | --heade | --head | --hea ) 13294 $ac_shift 13295 case $ac_optarg in 13296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13297 esac 13298 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13299 ac_need_defaults=false;; 13300 --he | --h) 13301 # Conflict between --help and --header 13302 as_fn_error $? "ambiguous option: \`$1' 13303Try \`$0 --help' for more information.";; 13304 --help | --hel | -h ) 13305 $as_echo "$ac_cs_usage"; exit ;; 13306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13307 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13308 ac_cs_silent=: ;; 13309 13310 # This is an error. 13311 -*) as_fn_error $? "unrecognized option: \`$1' 13312Try \`$0 --help' for more information." ;; 13313 13314 *) as_fn_append ac_config_targets " $1" 13315 ac_need_defaults=false ;; 13316 13317 esac 13318 shift 13319done 13320 13321ac_configure_extra_args= 13322 13323if $ac_cs_silent; then 13324 exec 6>/dev/null 13325 ac_configure_extra_args="$ac_configure_extra_args --silent" 13326fi 13327 13328_ACEOF 13329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13330if \$ac_cs_recheck; then 13331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13332 shift 13333 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13334 CONFIG_SHELL='$SHELL' 13335 export CONFIG_SHELL 13336 exec "\$@" 13337fi 13338 13339_ACEOF 13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13341exec 5>>config.log 13342{ 13343 echo 13344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13345## Running $as_me. ## 13346_ASBOX 13347 $as_echo "$ac_log" 13348} >&5 13349 13350_ACEOF 13351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13352# 13353# INIT-COMMANDS 13354# 13355AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13356 13357 13358# The HP-UX ksh and POSIX shell print the target directory to stdout 13359# if CDPATH is set. 13360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13361 13362sed_quote_subst='$sed_quote_subst' 13363double_quote_subst='$double_quote_subst' 13364delay_variable_subst='$delay_variable_subst' 13365macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13366macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13367enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13368enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13369pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13370enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13371shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13372SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13373ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13374PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13381SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13382Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13383GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13384EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13385FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13386LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13387NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13388LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13389max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13390ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13391exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13392lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13393lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13394lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13395lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13396lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13397reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13398reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13399OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13400deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13401file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13402file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13403want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13404DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13405sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13406AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13407AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13408archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13409STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13410RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13411old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13412old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13413old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13414lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13415CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13416CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13417compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13418GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13419lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13420lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13421lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13422lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13423lt_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"`' 13424lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13425nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13426lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13427lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13428objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13429MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13430lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13431lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13432lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13433lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13434lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13435need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13436MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13437DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13438NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13439LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13440OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13441OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13442libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13443shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13444extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13445archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13446enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13447export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13448whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13449compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13450old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13451old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13452archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13453archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13454module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13455module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13456with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13457allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13458no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13459hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13460hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13461hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13462hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13463hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13464hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13465hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13466inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13467link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13468always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13469export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13470exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13471include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13472prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13473postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13474file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13475variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13476need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13477need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13478version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13479runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13480shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13481shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13482libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13483library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13484soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13485install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13486postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13487postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13488finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13489finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13490hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13491sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13492sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13493hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13494enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13495enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13496enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13497old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13498striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13499 13500LTCC='$LTCC' 13501LTCFLAGS='$LTCFLAGS' 13502compiler='$compiler_DEFAULT' 13503 13504# A function that is used when there is no print builtin or printf. 13505func_fallback_echo () 13506{ 13507 eval 'cat <<_LTECHO_EOF 13508\$1 13509_LTECHO_EOF' 13510} 13511 13512# Quote evaled strings. 13513for var in SHELL \ 13514ECHO \ 13515PATH_SEPARATOR \ 13516SED \ 13517GREP \ 13518EGREP \ 13519FGREP \ 13520LD \ 13521NM \ 13522LN_S \ 13523lt_SP2NL \ 13524lt_NL2SP \ 13525reload_flag \ 13526OBJDUMP \ 13527deplibs_check_method \ 13528file_magic_cmd \ 13529file_magic_glob \ 13530want_nocaseglob \ 13531DLLTOOL \ 13532sharedlib_from_linklib_cmd \ 13533AR \ 13534AR_FLAGS \ 13535archiver_list_spec \ 13536STRIP \ 13537RANLIB \ 13538CC \ 13539CFLAGS \ 13540compiler \ 13541lt_cv_sys_global_symbol_pipe \ 13542lt_cv_sys_global_symbol_to_cdecl \ 13543lt_cv_sys_global_symbol_to_import \ 13544lt_cv_sys_global_symbol_to_c_name_address \ 13545lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13546lt_cv_nm_interface \ 13547nm_file_list_spec \ 13548lt_cv_truncate_bin \ 13549lt_prog_compiler_no_builtin_flag \ 13550lt_prog_compiler_pic \ 13551lt_prog_compiler_wl \ 13552lt_prog_compiler_static \ 13553lt_cv_prog_compiler_c_o \ 13554need_locks \ 13555MANIFEST_TOOL \ 13556DSYMUTIL \ 13557NMEDIT \ 13558LIPO \ 13559OTOOL \ 13560OTOOL64 \ 13561shrext_cmds \ 13562export_dynamic_flag_spec \ 13563whole_archive_flag_spec \ 13564compiler_needs_object \ 13565with_gnu_ld \ 13566allow_undefined_flag \ 13567no_undefined_flag \ 13568hardcode_libdir_flag_spec \ 13569hardcode_libdir_separator \ 13570exclude_expsyms \ 13571include_expsyms \ 13572file_list_spec \ 13573variables_saved_for_relink \ 13574libname_spec \ 13575library_names_spec \ 13576soname_spec \ 13577install_override_mode \ 13578finish_eval \ 13579old_striplib \ 13580striplib; do 13581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13582 *[\\\\\\\`\\"\\\$]*) 13583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13584 ;; 13585 *) 13586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13587 ;; 13588 esac 13589done 13590 13591# Double-quote double-evaled strings. 13592for var in reload_cmds \ 13593old_postinstall_cmds \ 13594old_postuninstall_cmds \ 13595old_archive_cmds \ 13596extract_expsyms_cmds \ 13597old_archive_from_new_cmds \ 13598old_archive_from_expsyms_cmds \ 13599archive_cmds \ 13600archive_expsym_cmds \ 13601module_cmds \ 13602module_expsym_cmds \ 13603export_symbols_cmds \ 13604prelink_cmds \ 13605postlink_cmds \ 13606postinstall_cmds \ 13607postuninstall_cmds \ 13608finish_cmds \ 13609sys_lib_search_path_spec \ 13610sys_lib_dlsearch_path_spec; do 13611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13612 *[\\\\\\\`\\"\\\$]*) 13613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13614 ;; 13615 *) 13616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13617 ;; 13618 esac 13619done 13620 13621ac_aux_dir='$ac_aux_dir' 13622 13623# See if we are running on zsh, and set the options that allow our 13624# commands through without removal of \ escapes INIT. 13625if test -n "\${ZSH_VERSION+set}"; then 13626 setopt NO_GLOB_SUBST 13627fi 13628 13629 13630 PACKAGE='$PACKAGE' 13631 VERSION='$VERSION' 13632 RM='$RM' 13633 ofile='$ofile' 13634 13635 13636 13637 13638_ACEOF 13639 13640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13641 13642# Handling of arguments. 13643for ac_config_target in $ac_config_targets 13644do 13645 case $ac_config_target in 13646 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 13647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13650 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13651 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 13652 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 13653 "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;; 13654 13655 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13656 esac 13657done 13658 13659 13660# If the user did not use the arguments to specify the items to instantiate, 13661# then the envvar interface is used. Set only those that are not. 13662# We use the long form for the default assignment because of an extremely 13663# bizarre bug on SunOS 4.1.3. 13664if $ac_need_defaults; then 13665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13668fi 13669 13670# Have a temporary directory for convenience. Make it in the build tree 13671# simply because there is no reason against having it here, and in addition, 13672# creating and moving files from /tmp can sometimes cause problems. 13673# Hook for its removal unless debugging. 13674# Note that there is a small window in which the directory will not be cleaned: 13675# after its creation but before its name has been assigned to `$tmp'. 13676$debug || 13677{ 13678 tmp= ac_tmp= 13679 trap 'exit_status=$? 13680 : "${ac_tmp:=$tmp}" 13681 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13682' 0 13683 trap 'as_fn_exit 1' 1 2 13 15 13684} 13685# Create a (secure) tmp directory for tmp files. 13686 13687{ 13688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13689 test -d "$tmp" 13690} || 13691{ 13692 tmp=./conf$$-$RANDOM 13693 (umask 077 && mkdir "$tmp") 13694} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13695ac_tmp=$tmp 13696 13697# Set up the scripts for CONFIG_FILES section. 13698# No need to generate them if there are no CONFIG_FILES. 13699# This happens for instance with `./config.status config.h'. 13700if test -n "$CONFIG_FILES"; then 13701 13702 13703ac_cr=`echo X | tr X '\015'` 13704# On cygwin, bash can eat \r inside `` if the user requested igncr. 13705# But we know of no other shell where ac_cr would be empty at this 13706# point, so we can use a bashism as a fallback. 13707if test "x$ac_cr" = x; then 13708 eval ac_cr=\$\'\\r\' 13709fi 13710ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13711if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13712 ac_cs_awk_cr='\\r' 13713else 13714 ac_cs_awk_cr=$ac_cr 13715fi 13716 13717echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13718_ACEOF 13719 13720 13721{ 13722 echo "cat >conf$$subs.awk <<_ACEOF" && 13723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13724 echo "_ACEOF" 13725} >conf$$subs.sh || 13726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13727ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13728ac_delim='%!_!# ' 13729for ac_last_try in false false false false false :; do 13730 . ./conf$$subs.sh || 13731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13732 13733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13734 if test $ac_delim_n = $ac_delim_num; then 13735 break 13736 elif $ac_last_try; then 13737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13738 else 13739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13740 fi 13741done 13742rm -f conf$$subs.sh 13743 13744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13745cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13746_ACEOF 13747sed -n ' 13748h 13749s/^/S["/; s/!.*/"]=/ 13750p 13751g 13752s/^[^!]*!// 13753:repl 13754t repl 13755s/'"$ac_delim"'$// 13756t delim 13757:nl 13758h 13759s/\(.\{148\}\)..*/\1/ 13760t more1 13761s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13762p 13763n 13764b repl 13765:more1 13766s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13767p 13768g 13769s/.\{148\}// 13770t nl 13771:delim 13772h 13773s/\(.\{148\}\)..*/\1/ 13774t more2 13775s/["\\]/\\&/g; s/^/"/; s/$/"/ 13776p 13777b 13778:more2 13779s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13780p 13781g 13782s/.\{148\}// 13783t delim 13784' <conf$$subs.awk | sed ' 13785/^[^""]/{ 13786 N 13787 s/\n// 13788} 13789' >>$CONFIG_STATUS || ac_write_fail=1 13790rm -f conf$$subs.awk 13791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13792_ACAWK 13793cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13794 for (key in S) S_is_set[key] = 1 13795 FS = "" 13796 13797} 13798{ 13799 line = $ 0 13800 nfields = split(line, field, "@") 13801 substed = 0 13802 len = length(field[1]) 13803 for (i = 2; i < nfields; i++) { 13804 key = field[i] 13805 keylen = length(key) 13806 if (S_is_set[key]) { 13807 value = S[key] 13808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13809 len += length(value) + length(field[++i]) 13810 substed = 1 13811 } else 13812 len += 1 + keylen 13813 } 13814 13815 print line 13816} 13817 13818_ACAWK 13819_ACEOF 13820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13821if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13822 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13823else 13824 cat 13825fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13826 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13827_ACEOF 13828 13829# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13830# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13831# trailing colons and then remove the whole line if VPATH becomes empty 13832# (actually we leave an empty line to preserve line numbers). 13833if test "x$srcdir" = x.; then 13834 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13835h 13836s/// 13837s/^/:/ 13838s/[ ]*$/:/ 13839s/:\$(srcdir):/:/g 13840s/:\${srcdir}:/:/g 13841s/:@srcdir@:/:/g 13842s/^:*// 13843s/:*$// 13844x 13845s/\(=[ ]*\).*/\1/ 13846G 13847s/\n// 13848s/^[^=]*=[ ]*$// 13849}' 13850fi 13851 13852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13853fi # test -n "$CONFIG_FILES" 13854 13855# Set up the scripts for CONFIG_HEADERS section. 13856# No need to generate them if there are no CONFIG_HEADERS. 13857# This happens for instance with `./config.status Makefile'. 13858if test -n "$CONFIG_HEADERS"; then 13859cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13860BEGIN { 13861_ACEOF 13862 13863# Transform confdefs.h into an awk script `defines.awk', embedded as 13864# here-document in config.status, that substitutes the proper values into 13865# config.h.in to produce config.h. 13866 13867# Create a delimiter string that does not exist in confdefs.h, to ease 13868# handling of long lines. 13869ac_delim='%!_!# ' 13870for ac_last_try in false false :; do 13871 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13872 if test -z "$ac_tt"; then 13873 break 13874 elif $ac_last_try; then 13875 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13876 else 13877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13878 fi 13879done 13880 13881# For the awk script, D is an array of macro values keyed by name, 13882# likewise P contains macro parameters if any. Preserve backslash 13883# newline sequences. 13884 13885ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13886sed -n ' 13887s/.\{148\}/&'"$ac_delim"'/g 13888t rset 13889:rset 13890s/^[ ]*#[ ]*define[ ][ ]*/ / 13891t def 13892d 13893:def 13894s/\\$// 13895t bsnl 13896s/["\\]/\\&/g 13897s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13898D["\1"]=" \3"/p 13899s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13900d 13901:bsnl 13902s/["\\]/\\&/g 13903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13904D["\1"]=" \3\\\\\\n"\\/p 13905t cont 13906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13907t cont 13908d 13909:cont 13910n 13911s/.\{148\}/&'"$ac_delim"'/g 13912t clear 13913:clear 13914s/\\$// 13915t bsnlc 13916s/["\\]/\\&/g; s/^/"/; s/$/"/p 13917d 13918:bsnlc 13919s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13920b cont 13921' <confdefs.h | sed ' 13922s/'"$ac_delim"'/"\\\ 13923"/g' >>$CONFIG_STATUS || ac_write_fail=1 13924 13925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13926 for (key in D) D_is_set[key] = 1 13927 FS = "" 13928} 13929/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13930 line = \$ 0 13931 split(line, arg, " ") 13932 if (arg[1] == "#") { 13933 defundef = arg[2] 13934 mac1 = arg[3] 13935 } else { 13936 defundef = substr(arg[1], 2) 13937 mac1 = arg[2] 13938 } 13939 split(mac1, mac2, "(") #) 13940 macro = mac2[1] 13941 prefix = substr(line, 1, index(line, defundef) - 1) 13942 if (D_is_set[macro]) { 13943 # Preserve the white space surrounding the "#". 13944 print prefix "define", macro P[macro] D[macro] 13945 next 13946 } else { 13947 # Replace #undef with comments. This is necessary, for example, 13948 # in the case of _POSIX_SOURCE, which is predefined and required 13949 # on some systems where configure will not decide to define it. 13950 if (defundef == "undef") { 13951 print "/*", prefix defundef, macro, "*/" 13952 next 13953 } 13954 } 13955} 13956{ print } 13957_ACAWK 13958_ACEOF 13959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13960 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13961fi # test -n "$CONFIG_HEADERS" 13962 13963 13964eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13965shift 13966for ac_tag 13967do 13968 case $ac_tag in 13969 :[FHLC]) ac_mode=$ac_tag; continue;; 13970 esac 13971 case $ac_mode$ac_tag in 13972 :[FHL]*:*);; 13973 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13974 :[FH]-) ac_tag=-:-;; 13975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13976 esac 13977 ac_save_IFS=$IFS 13978 IFS=: 13979 set x $ac_tag 13980 IFS=$ac_save_IFS 13981 shift 13982 ac_file=$1 13983 shift 13984 13985 case $ac_mode in 13986 :L) ac_source=$1;; 13987 :[FH]) 13988 ac_file_inputs= 13989 for ac_f 13990 do 13991 case $ac_f in 13992 -) ac_f="$ac_tmp/stdin";; 13993 *) # Look for the file first in the build tree, then in the source tree 13994 # (if the path is not absolute). The absolute path cannot be DOS-style, 13995 # because $ac_f cannot contain `:'. 13996 test -f "$ac_f" || 13997 case $ac_f in 13998 [\\/$]*) false;; 13999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14000 esac || 14001 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14002 esac 14003 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14004 as_fn_append ac_file_inputs " '$ac_f'" 14005 done 14006 14007 # Let's still pretend it is `configure' which instantiates (i.e., don't 14008 # use $as_me), people would be surprised to read: 14009 # /* config.h. Generated by config.status. */ 14010 configure_input='Generated from '` 14011 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14012 `' by configure.' 14013 if test x"$ac_file" != x-; then 14014 configure_input="$ac_file. $configure_input" 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14016$as_echo "$as_me: creating $ac_file" >&6;} 14017 fi 14018 # Neutralize special characters interpreted by sed in replacement strings. 14019 case $configure_input in #( 14020 *\&* | *\|* | *\\* ) 14021 ac_sed_conf_input=`$as_echo "$configure_input" | 14022 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14023 *) ac_sed_conf_input=$configure_input;; 14024 esac 14025 14026 case $ac_tag in 14027 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14029 esac 14030 ;; 14031 esac 14032 14033 ac_dir=`$as_dirname -- "$ac_file" || 14034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14035 X"$ac_file" : 'X\(//\)[^/]' \| \ 14036 X"$ac_file" : 'X\(//\)$' \| \ 14037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14038$as_echo X"$ac_file" | 14039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14040 s//\1/ 14041 q 14042 } 14043 /^X\(\/\/\)[^/].*/{ 14044 s//\1/ 14045 q 14046 } 14047 /^X\(\/\/\)$/{ 14048 s//\1/ 14049 q 14050 } 14051 /^X\(\/\).*/{ 14052 s//\1/ 14053 q 14054 } 14055 s/.*/./; q'` 14056 as_dir="$ac_dir"; as_fn_mkdir_p 14057 ac_builddir=. 14058 14059case "$ac_dir" in 14060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14061*) 14062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14063 # A ".." for each directory in $ac_dir_suffix. 14064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14065 case $ac_top_builddir_sub in 14066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14068 esac ;; 14069esac 14070ac_abs_top_builddir=$ac_pwd 14071ac_abs_builddir=$ac_pwd$ac_dir_suffix 14072# for backward compatibility: 14073ac_top_builddir=$ac_top_build_prefix 14074 14075case $srcdir in 14076 .) # We are building in place. 14077 ac_srcdir=. 14078 ac_top_srcdir=$ac_top_builddir_sub 14079 ac_abs_top_srcdir=$ac_pwd ;; 14080 [\\/]* | ?:[\\/]* ) # Absolute name. 14081 ac_srcdir=$srcdir$ac_dir_suffix; 14082 ac_top_srcdir=$srcdir 14083 ac_abs_top_srcdir=$srcdir ;; 14084 *) # Relative name. 14085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14086 ac_top_srcdir=$ac_top_build_prefix$srcdir 14087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14088esac 14089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14090 14091 14092 case $ac_mode in 14093 :F) 14094 # 14095 # CONFIG_FILE 14096 # 14097 14098 case $INSTALL in 14099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14100 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14101 esac 14102 ac_MKDIR_P=$MKDIR_P 14103 case $MKDIR_P in 14104 [\\/$]* | ?:[\\/]* ) ;; 14105 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14106 esac 14107_ACEOF 14108 14109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14110# If the template does not know about datarootdir, expand it. 14111# FIXME: This hack should be removed a few years after 2.60. 14112ac_datarootdir_hack=; ac_datarootdir_seen= 14113ac_sed_dataroot=' 14114/datarootdir/ { 14115 p 14116 q 14117} 14118/@datadir@/p 14119/@docdir@/p 14120/@infodir@/p 14121/@localedir@/p 14122/@mandir@/p' 14123case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14124*datarootdir*) ac_datarootdir_seen=yes;; 14125*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14127$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14128_ACEOF 14129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14130 ac_datarootdir_hack=' 14131 s&@datadir@&$datadir&g 14132 s&@docdir@&$docdir&g 14133 s&@infodir@&$infodir&g 14134 s&@localedir@&$localedir&g 14135 s&@mandir@&$mandir&g 14136 s&\\\${datarootdir}&$datarootdir&g' ;; 14137esac 14138_ACEOF 14139 14140# Neutralize VPATH when `$srcdir' = `.'. 14141# Shell code in configure.ac might set extrasub. 14142# FIXME: do we really want to maintain this feature? 14143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14144ac_sed_extra="$ac_vpsub 14145$extrasub 14146_ACEOF 14147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14148:t 14149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14150s|@configure_input@|$ac_sed_conf_input|;t t 14151s&@top_builddir@&$ac_top_builddir_sub&;t t 14152s&@top_build_prefix@&$ac_top_build_prefix&;t t 14153s&@srcdir@&$ac_srcdir&;t t 14154s&@abs_srcdir@&$ac_abs_srcdir&;t t 14155s&@top_srcdir@&$ac_top_srcdir&;t t 14156s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14157s&@builddir@&$ac_builddir&;t t 14158s&@abs_builddir@&$ac_abs_builddir&;t t 14159s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14160s&@INSTALL@&$ac_INSTALL&;t t 14161s&@MKDIR_P@&$ac_MKDIR_P&;t t 14162$ac_datarootdir_hack 14163" 14164eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14165 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14166 14167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14168 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14170 "$ac_tmp/out"`; test -z "$ac_out"; } && 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14172which seems to be undefined. Please make sure it is defined" >&5 14173$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14174which seems to be undefined. Please make sure it is defined" >&2;} 14175 14176 rm -f "$ac_tmp/stdin" 14177 case $ac_file in 14178 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14179 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14180 esac \ 14181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14182 ;; 14183 :H) 14184 # 14185 # CONFIG_HEADER 14186 # 14187 if test x"$ac_file" != x-; then 14188 { 14189 $as_echo "/* $configure_input */" \ 14190 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14191 } >"$ac_tmp/config.h" \ 14192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14193 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14195$as_echo "$as_me: $ac_file is unchanged" >&6;} 14196 else 14197 rm -f "$ac_file" 14198 mv "$ac_tmp/config.h" "$ac_file" \ 14199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14200 fi 14201 else 14202 $as_echo "/* $configure_input */" \ 14203 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14204 || as_fn_error $? "could not create -" "$LINENO" 5 14205 fi 14206# Compute "$ac_file"'s index in $config_headers. 14207_am_arg="$ac_file" 14208_am_stamp_count=1 14209for _am_header in $config_headers :; do 14210 case $_am_header in 14211 $_am_arg | $_am_arg:* ) 14212 break ;; 14213 * ) 14214 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14215 esac 14216done 14217echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14218$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14219 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14220 X"$_am_arg" : 'X\(//\)$' \| \ 14221 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14222$as_echo X"$_am_arg" | 14223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14224 s//\1/ 14225 q 14226 } 14227 /^X\(\/\/\)[^/].*/{ 14228 s//\1/ 14229 q 14230 } 14231 /^X\(\/\/\)$/{ 14232 s//\1/ 14233 q 14234 } 14235 /^X\(\/\).*/{ 14236 s//\1/ 14237 q 14238 } 14239 s/.*/./; q'`/stamp-h$_am_stamp_count 14240 ;; 14241 14242 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14243$as_echo "$as_me: executing $ac_file commands" >&6;} 14244 ;; 14245 esac 14246 14247 14248 case $ac_file$ac_mode in 14249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14250 # Older Autoconf quotes --file arguments for eval, but not when files 14251 # are listed without --file. Let's play safe and only enable the eval 14252 # if we detect the quoting. 14253 case $CONFIG_FILES in 14254 *\'*) eval set x "$CONFIG_FILES" ;; 14255 *) set x $CONFIG_FILES ;; 14256 esac 14257 shift 14258 for mf 14259 do 14260 # Strip MF so we end up with the name of the file. 14261 mf=`echo "$mf" | sed -e 's/:.*$//'` 14262 # Check whether this is an Automake generated Makefile or not. 14263 # We used to match only the files named 'Makefile.in', but 14264 # some people rename them; so instead we look at the file content. 14265 # Grep'ing the first line is not enough: some people post-process 14266 # each Makefile.in and add a new line on top of each file to say so. 14267 # Grep'ing the whole file is not good either: AIX grep has a line 14268 # limit of 2048, but all sed's we know have understand at least 4000. 14269 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14270 dirpart=`$as_dirname -- "$mf" || 14271$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14272 X"$mf" : 'X\(//\)[^/]' \| \ 14273 X"$mf" : 'X\(//\)$' \| \ 14274 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14275$as_echo X"$mf" | 14276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14277 s//\1/ 14278 q 14279 } 14280 /^X\(\/\/\)[^/].*/{ 14281 s//\1/ 14282 q 14283 } 14284 /^X\(\/\/\)$/{ 14285 s//\1/ 14286 q 14287 } 14288 /^X\(\/\).*/{ 14289 s//\1/ 14290 q 14291 } 14292 s/.*/./; q'` 14293 else 14294 continue 14295 fi 14296 # Extract the definition of DEPDIR, am__include, and am__quote 14297 # from the Makefile without running 'make'. 14298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14299 test -z "$DEPDIR" && continue 14300 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14301 test -z "$am__include" && continue 14302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14303 # Find all dependency output files, they are included files with 14304 # $(DEPDIR) in their names. We invoke sed twice because it is the 14305 # simplest approach to changing $(DEPDIR) to its actual value in the 14306 # expansion. 14307 for file in `sed -n " 14308 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14309 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14310 # Make sure the directory exists. 14311 test -f "$dirpart/$file" && continue 14312 fdir=`$as_dirname -- "$file" || 14313$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14314 X"$file" : 'X\(//\)[^/]' \| \ 14315 X"$file" : 'X\(//\)$' \| \ 14316 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14317$as_echo X"$file" | 14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14319 s//\1/ 14320 q 14321 } 14322 /^X\(\/\/\)[^/].*/{ 14323 s//\1/ 14324 q 14325 } 14326 /^X\(\/\/\)$/{ 14327 s//\1/ 14328 q 14329 } 14330 /^X\(\/\).*/{ 14331 s//\1/ 14332 q 14333 } 14334 s/.*/./; q'` 14335 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14336 # echo "creating $dirpart/$file" 14337 echo '# dummy' > "$dirpart/$file" 14338 done 14339 done 14340} 14341 ;; 14342 "libtool":C) 14343 14344 # See if we are running on zsh, and set the options that allow our 14345 # commands through without removal of \ escapes. 14346 if test -n "${ZSH_VERSION+set}"; then 14347 setopt NO_GLOB_SUBST 14348 fi 14349 14350 cfgfile=${ofile}T 14351 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14352 $RM "$cfgfile" 14353 14354 cat <<_LT_EOF >> "$cfgfile" 14355#! $SHELL 14356# Generated automatically by $as_me ($PACKAGE) $VERSION 14357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14358# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14359 14360# Provide generalized library-building support services. 14361# Written by Gordon Matzigkeit, 1996 14362 14363# Copyright (C) 2014 Free Software Foundation, Inc. 14364# This is free software; see the source for copying conditions. There is NO 14365# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14366 14367# GNU Libtool is free software; you can redistribute it and/or modify 14368# it under the terms of the GNU General Public License as published by 14369# the Free Software Foundation; either version 2 of of the License, or 14370# (at your option) any later version. 14371# 14372# As a special exception to the GNU General Public License, if you 14373# distribute this file as part of a program or library that is built 14374# using GNU Libtool, you may include this file under the same 14375# distribution terms that you use for the rest of that program. 14376# 14377# GNU Libtool is distributed in the hope that it will be useful, but 14378# WITHOUT ANY WARRANTY; without even the implied warranty of 14379# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14380# GNU General Public License for more details. 14381# 14382# You should have received a copy of the GNU General Public License 14383# along with this program. If not, see <http://www.gnu.org/licenses/>. 14384 14385 14386# The names of the tagged configurations supported by this script. 14387available_tags='' 14388 14389# ### BEGIN LIBTOOL CONFIG 14390 14391# Which release of libtool.m4 was used? 14392macro_version=$macro_version 14393macro_revision=$macro_revision 14394 14395# Whether or not to build shared libraries. 14396build_libtool_libs=$enable_shared 14397 14398# Whether or not to build static libraries. 14399build_old_libs=$enable_static 14400 14401# What type of objects to build. 14402pic_mode=$pic_mode 14403 14404# Whether or not to optimize for fast installation. 14405fast_install=$enable_fast_install 14406 14407# Shared archive member basename,for filename based shared library versioning on AIX. 14408shared_archive_member_spec=$shared_archive_member_spec 14409 14410# Shell to use when invoking shell scripts. 14411SHELL=$lt_SHELL 14412 14413# An echo program that protects backslashes. 14414ECHO=$lt_ECHO 14415 14416# The PATH separator for the build system. 14417PATH_SEPARATOR=$lt_PATH_SEPARATOR 14418 14419# The host system. 14420host_alias=$host_alias 14421host=$host 14422host_os=$host_os 14423 14424# The build system. 14425build_alias=$build_alias 14426build=$build 14427build_os=$build_os 14428 14429# A sed program that does not truncate output. 14430SED=$lt_SED 14431 14432# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14433Xsed="\$SED -e 1s/^X//" 14434 14435# A grep program that handles long lines. 14436GREP=$lt_GREP 14437 14438# An ERE matcher. 14439EGREP=$lt_EGREP 14440 14441# A literal string matcher. 14442FGREP=$lt_FGREP 14443 14444# A BSD- or MS-compatible name lister. 14445NM=$lt_NM 14446 14447# Whether we need soft or hard links. 14448LN_S=$lt_LN_S 14449 14450# What is the maximum length of a command? 14451max_cmd_len=$max_cmd_len 14452 14453# Object file suffix (normally "o"). 14454objext=$ac_objext 14455 14456# Executable file suffix (normally ""). 14457exeext=$exeext 14458 14459# whether the shell understands "unset". 14460lt_unset=$lt_unset 14461 14462# turn spaces into newlines. 14463SP2NL=$lt_lt_SP2NL 14464 14465# turn newlines into spaces. 14466NL2SP=$lt_lt_NL2SP 14467 14468# convert \$build file names to \$host format. 14469to_host_file_cmd=$lt_cv_to_host_file_cmd 14470 14471# convert \$build files to toolchain format. 14472to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14473 14474# An object symbol dumper. 14475OBJDUMP=$lt_OBJDUMP 14476 14477# Method to check whether dependent libraries are shared objects. 14478deplibs_check_method=$lt_deplibs_check_method 14479 14480# Command to use when deplibs_check_method = "file_magic". 14481file_magic_cmd=$lt_file_magic_cmd 14482 14483# How to find potential files when deplibs_check_method = "file_magic". 14484file_magic_glob=$lt_file_magic_glob 14485 14486# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14487want_nocaseglob=$lt_want_nocaseglob 14488 14489# DLL creation program. 14490DLLTOOL=$lt_DLLTOOL 14491 14492# Command to associate shared and link libraries. 14493sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14494 14495# The archiver. 14496AR=$lt_AR 14497 14498# Flags to create an archive. 14499AR_FLAGS=$lt_AR_FLAGS 14500 14501# How to feed a file listing to the archiver. 14502archiver_list_spec=$lt_archiver_list_spec 14503 14504# A symbol stripping program. 14505STRIP=$lt_STRIP 14506 14507# Commands used to install an old-style archive. 14508RANLIB=$lt_RANLIB 14509old_postinstall_cmds=$lt_old_postinstall_cmds 14510old_postuninstall_cmds=$lt_old_postuninstall_cmds 14511 14512# Whether to use a lock for old archive extraction. 14513lock_old_archive_extraction=$lock_old_archive_extraction 14514 14515# A C compiler. 14516LTCC=$lt_CC 14517 14518# LTCC compiler flags. 14519LTCFLAGS=$lt_CFLAGS 14520 14521# Take the output of nm and produce a listing of raw symbols and C names. 14522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14523 14524# Transform the output of nm in a proper C declaration. 14525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14526 14527# Transform the output of nm into a list of symbols to manually relocate. 14528global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14529 14530# Transform the output of nm in a C name address pair. 14531global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14532 14533# Transform the output of nm in a C name address pair when lib prefix is needed. 14534global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14535 14536# The name lister interface. 14537nm_interface=$lt_lt_cv_nm_interface 14538 14539# Specify filename containing input files for \$NM. 14540nm_file_list_spec=$lt_nm_file_list_spec 14541 14542# The root where to search for dependent libraries,and where our libraries should be installed. 14543lt_sysroot=$lt_sysroot 14544 14545# Command to truncate a binary pipe. 14546lt_truncate_bin=$lt_lt_cv_truncate_bin 14547 14548# The name of the directory that contains temporary libtool files. 14549objdir=$objdir 14550 14551# Used to examine libraries when file_magic_cmd begins with "file". 14552MAGIC_CMD=$MAGIC_CMD 14553 14554# Must we lock files when doing compilation? 14555need_locks=$lt_need_locks 14556 14557# Manifest tool. 14558MANIFEST_TOOL=$lt_MANIFEST_TOOL 14559 14560# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14561DSYMUTIL=$lt_DSYMUTIL 14562 14563# Tool to change global to local symbols on Mac OS X. 14564NMEDIT=$lt_NMEDIT 14565 14566# Tool to manipulate fat objects and archives on Mac OS X. 14567LIPO=$lt_LIPO 14568 14569# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14570OTOOL=$lt_OTOOL 14571 14572# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14573OTOOL64=$lt_OTOOL64 14574 14575# Old archive suffix (normally "a"). 14576libext=$libext 14577 14578# Shared library suffix (normally ".so"). 14579shrext_cmds=$lt_shrext_cmds 14580 14581# The commands to extract the exported symbol list from a shared archive. 14582extract_expsyms_cmds=$lt_extract_expsyms_cmds 14583 14584# Variables whose values should be saved in libtool wrapper scripts and 14585# restored at link time. 14586variables_saved_for_relink=$lt_variables_saved_for_relink 14587 14588# Do we need the "lib" prefix for modules? 14589need_lib_prefix=$need_lib_prefix 14590 14591# Do we need a version for libraries? 14592need_version=$need_version 14593 14594# Library versioning type. 14595version_type=$version_type 14596 14597# Shared library runtime path variable. 14598runpath_var=$runpath_var 14599 14600# Shared library path variable. 14601shlibpath_var=$shlibpath_var 14602 14603# Is shlibpath searched before the hard-coded library search path? 14604shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14605 14606# Format of library name prefix. 14607libname_spec=$lt_libname_spec 14608 14609# List of archive names. First name is the real one, the rest are links. 14610# The last name is the one that the linker finds with -lNAME 14611library_names_spec=$lt_library_names_spec 14612 14613# The coded name of the library, if different from the real name. 14614soname_spec=$lt_soname_spec 14615 14616# Permission mode override for installation of shared libraries. 14617install_override_mode=$lt_install_override_mode 14618 14619# Command to use after installation of a shared archive. 14620postinstall_cmds=$lt_postinstall_cmds 14621 14622# Command to use after uninstallation of a shared archive. 14623postuninstall_cmds=$lt_postuninstall_cmds 14624 14625# Commands used to finish a libtool library installation in a directory. 14626finish_cmds=$lt_finish_cmds 14627 14628# As "finish_cmds", except a single script fragment to be evaled but 14629# not shown. 14630finish_eval=$lt_finish_eval 14631 14632# Whether we should hardcode library paths into libraries. 14633hardcode_into_libs=$hardcode_into_libs 14634 14635# Compile-time system search path for libraries. 14636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14637 14638# Run-time system search path for libraries. 14639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14640 14641# Whether dlopen is supported. 14642dlopen_support=$enable_dlopen 14643 14644# Whether dlopen of programs is supported. 14645dlopen_self=$enable_dlopen_self 14646 14647# Whether dlopen of statically linked programs is supported. 14648dlopen_self_static=$enable_dlopen_self_static 14649 14650# Commands to strip libraries. 14651old_striplib=$lt_old_striplib 14652striplib=$lt_striplib 14653 14654 14655# The linker used to build libraries. 14656LD=$lt_LD 14657 14658# How to create reloadable object files. 14659reload_flag=$lt_reload_flag 14660reload_cmds=$lt_reload_cmds 14661 14662# Commands used to build an old-style archive. 14663old_archive_cmds=$lt_old_archive_cmds 14664 14665# A language specific compiler. 14666CC=$lt_compiler 14667 14668# Is the compiler the GNU compiler? 14669with_gcc=$GCC 14670 14671# Compiler flag to turn off builtin functions. 14672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14673 14674# Additional compiler flags for building library objects. 14675pic_flag=$lt_lt_prog_compiler_pic 14676 14677# How to pass a linker flag through the compiler. 14678wl=$lt_lt_prog_compiler_wl 14679 14680# Compiler flag to prevent dynamic linking. 14681link_static_flag=$lt_lt_prog_compiler_static 14682 14683# Does compiler simultaneously support -c and -o options? 14684compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14685 14686# Whether or not to add -lc for building shared libraries. 14687build_libtool_need_lc=$archive_cmds_need_lc 14688 14689# Whether or not to disallow shared libs when runtime libs are static. 14690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14691 14692# Compiler flag to allow reflexive dlopens. 14693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14694 14695# Compiler flag to generate shared objects directly from archives. 14696whole_archive_flag_spec=$lt_whole_archive_flag_spec 14697 14698# Whether the compiler copes with passing no objects directly. 14699compiler_needs_object=$lt_compiler_needs_object 14700 14701# Create an old-style archive from a shared archive. 14702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14703 14704# Create a temporary old-style archive to link instead of a shared archive. 14705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14706 14707# Commands used to build a shared archive. 14708archive_cmds=$lt_archive_cmds 14709archive_expsym_cmds=$lt_archive_expsym_cmds 14710 14711# Commands used to build a loadable module if different from building 14712# a shared archive. 14713module_cmds=$lt_module_cmds 14714module_expsym_cmds=$lt_module_expsym_cmds 14715 14716# Whether we are building with GNU ld or not. 14717with_gnu_ld=$lt_with_gnu_ld 14718 14719# Flag that allows shared libraries with undefined symbols to be built. 14720allow_undefined_flag=$lt_allow_undefined_flag 14721 14722# Flag that enforces no undefined symbols. 14723no_undefined_flag=$lt_no_undefined_flag 14724 14725# Flag to hardcode \$libdir into a binary during linking. 14726# This must work even if \$libdir does not exist 14727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14728 14729# Whether we need a single "-rpath" flag with a separated argument. 14730hardcode_libdir_separator=$lt_hardcode_libdir_separator 14731 14732# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14733# DIR into the resulting binary. 14734hardcode_direct=$hardcode_direct 14735 14736# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14737# DIR into the resulting binary and the resulting library dependency is 14738# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14739# library is relocated. 14740hardcode_direct_absolute=$hardcode_direct_absolute 14741 14742# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14743# into the resulting binary. 14744hardcode_minus_L=$hardcode_minus_L 14745 14746# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14747# into the resulting binary. 14748hardcode_shlibpath_var=$hardcode_shlibpath_var 14749 14750# Set to "yes" if building a shared library automatically hardcodes DIR 14751# into the library and all subsequent libraries and executables linked 14752# against it. 14753hardcode_automatic=$hardcode_automatic 14754 14755# Set to yes if linker adds runtime paths of dependent libraries 14756# to runtime path list. 14757inherit_rpath=$inherit_rpath 14758 14759# Whether libtool must link a program against all its dependency libraries. 14760link_all_deplibs=$link_all_deplibs 14761 14762# Set to "yes" if exported symbols are required. 14763always_export_symbols=$always_export_symbols 14764 14765# The commands to list exported symbols. 14766export_symbols_cmds=$lt_export_symbols_cmds 14767 14768# Symbols that should not be listed in the preloaded symbols. 14769exclude_expsyms=$lt_exclude_expsyms 14770 14771# Symbols that must always be exported. 14772include_expsyms=$lt_include_expsyms 14773 14774# Commands necessary for linking programs (against libraries) with templates. 14775prelink_cmds=$lt_prelink_cmds 14776 14777# Commands necessary for finishing linking programs. 14778postlink_cmds=$lt_postlink_cmds 14779 14780# Specify filename containing input files. 14781file_list_spec=$lt_file_list_spec 14782 14783# How to hardcode a shared library path into an executable. 14784hardcode_action=$hardcode_action 14785 14786# ### END LIBTOOL CONFIG 14787 14788_LT_EOF 14789 14790 case $host_os in 14791 aix3*) 14792 cat <<\_LT_EOF >> "$cfgfile" 14793# AIX sometimes has problems with the GCC collect2 program. For some 14794# reason, if we set the COLLECT_NAMES environment variable, the problems 14795# vanish in a puff of smoke. 14796if test set != "${COLLECT_NAMES+set}"; then 14797 COLLECT_NAMES= 14798 export COLLECT_NAMES 14799fi 14800_LT_EOF 14801 ;; 14802 esac 14803 14804 14805ltmain=$ac_aux_dir/ltmain.sh 14806 14807 14808 # We use sed instead of cat because bash on DJGPP gets confused if 14809 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14810 # text mode, it properly converts lines to CR/LF. This bash problem 14811 # is reportedly fixed, but why not run on old versions too? 14812 sed '$q' "$ltmain" >> "$cfgfile" \ 14813 || (rm -f "$cfgfile"; exit 1) 14814 14815 mv -f "$cfgfile" "$ofile" || 14816 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14817 chmod +x "$ofile" 14818 14819 ;; 14820 14821 esac 14822done # for ac_tag 14823 14824 14825as_fn_exit 0 14826_ACEOF 14827ac_clean_files=$ac_clean_files_save 14828 14829test $ac_write_fail = 0 || 14830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14831 14832 14833# configure is writing to config.log, and then calls config.status. 14834# config.status does its own redirection, appending to config.log. 14835# Unfortunately, on DOS this fails, as config.log is still kept open 14836# by configure, so config.status won't be able to write to it; its 14837# output is simply discarded. So we exec the FD to /dev/null, 14838# effectively closing config.log, so it can be properly (re)opened and 14839# appended to by config.status. When coming back to configure, we 14840# need to make the FD available again. 14841if test "$no_create" != yes; then 14842 ac_cs_success=: 14843 ac_config_status_args= 14844 test "$silent" = yes && 14845 ac_config_status_args="$ac_config_status_args --quiet" 14846 exec 5>/dev/null 14847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14848 exec 5>>config.log 14849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14850 # would make configure fail if this is the last instruction. 14851 $ac_cs_success || as_fn_exit 1 14852fi 14853if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14855$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14856fi 14857 14858