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_gnu_ld 764with_sysroot 765enable_libtool_lock 766' 767 ac_precious_vars='build_alias 768host_alias 769target_alias 770CC 771CFLAGS 772LDFLAGS 773LIBS 774CPPFLAGS 775CPP' 776 777 778# Initialize some variables set by options. 779ac_init_help= 780ac_init_version=false 781ac_unrecognized_opts= 782ac_unrecognized_sep= 783# The variables have the same names as the options, with 784# dashes changed to underlines. 785cache_file=/dev/null 786exec_prefix=NONE 787no_create= 788no_recursion= 789prefix=NONE 790program_prefix=NONE 791program_suffix=NONE 792program_transform_name=s,x,x, 793silent= 794site= 795srcdir= 796verbose= 797x_includes=NONE 798x_libraries=NONE 799 800# Installation directory options. 801# These are left unexpanded so users can "make install exec_prefix=/foo" 802# and all the variables that are supposed to be based on exec_prefix 803# by default will actually change. 804# Use braces instead of parens because sh, perl, etc. also accept them. 805# (The list follows the same order as the GNU Coding Standards.) 806bindir='${exec_prefix}/bin' 807sbindir='${exec_prefix}/sbin' 808libexecdir='${exec_prefix}/libexec' 809datarootdir='${prefix}/share' 810datadir='${datarootdir}' 811sysconfdir='${prefix}/etc' 812sharedstatedir='${prefix}/com' 813localstatedir='${prefix}/var' 814includedir='${prefix}/include' 815oldincludedir='/usr/include' 816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 817infodir='${datarootdir}/info' 818htmldir='${docdir}' 819dvidir='${docdir}' 820pdfdir='${docdir}' 821psdir='${docdir}' 822libdir='${exec_prefix}/lib' 823localedir='${datarootdir}/locale' 824mandir='${datarootdir}/man' 825 826ac_prev= 827ac_dashdash= 828for ac_option 829do 830 # If the previous option needs an argument, assign it. 831 if test -n "$ac_prev"; then 832 eval $ac_prev=\$ac_option 833 ac_prev= 834 continue 835 fi 836 837 case $ac_option in 838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 839 *=) ac_optarg= ;; 840 *) ac_optarg=yes ;; 841 esac 842 843 # Accept the important Cygnus configure options, so we can diagnose typos. 844 845 case $ac_dashdash$ac_option in 846 --) 847 ac_dashdash=yes ;; 848 849 -bindir | --bindir | --bindi | --bind | --bin | --bi) 850 ac_prev=bindir ;; 851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 852 bindir=$ac_optarg ;; 853 854 -build | --build | --buil | --bui | --bu) 855 ac_prev=build_alias ;; 856 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 857 build_alias=$ac_optarg ;; 858 859 -cache-file | --cache-file | --cache-fil | --cache-fi \ 860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 861 ac_prev=cache_file ;; 862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 864 cache_file=$ac_optarg ;; 865 866 --config-cache | -C) 867 cache_file=config.cache ;; 868 869 -datadir | --datadir | --datadi | --datad) 870 ac_prev=datadir ;; 871 -datadir=* | --datadir=* | --datadi=* | --datad=*) 872 datadir=$ac_optarg ;; 873 874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 875 | --dataroo | --dataro | --datar) 876 ac_prev=datarootdir ;; 877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 879 datarootdir=$ac_optarg ;; 880 881 -disable-* | --disable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=no ;; 896 897 -docdir | --docdir | --docdi | --doc | --do) 898 ac_prev=docdir ;; 899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 900 docdir=$ac_optarg ;; 901 902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 903 ac_prev=dvidir ;; 904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 905 dvidir=$ac_optarg ;; 906 907 -enable-* | --enable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: $ac_useropt" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=\$ac_optarg ;; 922 923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 925 | --exec | --exe | --ex) 926 ac_prev=exec_prefix ;; 927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 929 | --exec=* | --exe=* | --ex=*) 930 exec_prefix=$ac_optarg ;; 931 932 -gas | --gas | --ga | --g) 933 # Obsolete; use --with-gas. 934 with_gas=yes ;; 935 936 -help | --help | --hel | --he | -h) 937 ac_init_help=long ;; 938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 939 ac_init_help=recursive ;; 940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 941 ac_init_help=short ;; 942 943 -host | --host | --hos | --ho) 944 ac_prev=host_alias ;; 945 -host=* | --host=* | --hos=* | --ho=*) 946 host_alias=$ac_optarg ;; 947 948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 949 ac_prev=htmldir ;; 950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 951 | --ht=*) 952 htmldir=$ac_optarg ;; 953 954 -includedir | --includedir | --includedi | --included | --include \ 955 | --includ | --inclu | --incl | --inc) 956 ac_prev=includedir ;; 957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 958 | --includ=* | --inclu=* | --incl=* | --inc=*) 959 includedir=$ac_optarg ;; 960 961 -infodir | --infodir | --infodi | --infod | --info | --inf) 962 ac_prev=infodir ;; 963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 964 infodir=$ac_optarg ;; 965 966 -libdir | --libdir | --libdi | --libd) 967 ac_prev=libdir ;; 968 -libdir=* | --libdir=* | --libdi=* | --libd=*) 969 libdir=$ac_optarg ;; 970 971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 972 | --libexe | --libex | --libe) 973 ac_prev=libexecdir ;; 974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 975 | --libexe=* | --libex=* | --libe=*) 976 libexecdir=$ac_optarg ;; 977 978 -localedir | --localedir | --localedi | --localed | --locale) 979 ac_prev=localedir ;; 980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 981 localedir=$ac_optarg ;; 982 983 -localstatedir | --localstatedir | --localstatedi | --localstated \ 984 | --localstate | --localstat | --localsta | --localst | --locals) 985 ac_prev=localstatedir ;; 986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 988 localstatedir=$ac_optarg ;; 989 990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 991 ac_prev=mandir ;; 992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 993 mandir=$ac_optarg ;; 994 995 -nfp | --nfp | --nf) 996 # Obsolete; use --without-fp. 997 with_fp=no ;; 998 999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1000 | --no-cr | --no-c | -n) 1001 no_create=yes ;; 1002 1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1005 no_recursion=yes ;; 1006 1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1009 | --oldin | --oldi | --old | --ol | --o) 1010 ac_prev=oldincludedir ;; 1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1014 oldincludedir=$ac_optarg ;; 1015 1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1017 ac_prev=prefix ;; 1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1019 prefix=$ac_optarg ;; 1020 1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1022 | --program-pre | --program-pr | --program-p) 1023 ac_prev=program_prefix ;; 1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1026 program_prefix=$ac_optarg ;; 1027 1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1029 | --program-suf | --program-su | --program-s) 1030 ac_prev=program_suffix ;; 1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1033 program_suffix=$ac_optarg ;; 1034 1035 -program-transform-name | --program-transform-name \ 1036 | --program-transform-nam | --program-transform-na \ 1037 | --program-transform-n | --program-transform- \ 1038 | --program-transform | --program-transfor \ 1039 | --program-transfo | --program-transf \ 1040 | --program-trans | --program-tran \ 1041 | --progr-tra | --program-tr | --program-t) 1042 ac_prev=program_transform_name ;; 1043 -program-transform-name=* | --program-transform-name=* \ 1044 | --program-transform-nam=* | --program-transform-na=* \ 1045 | --program-transform-n=* | --program-transform-=* \ 1046 | --program-transform=* | --program-transfor=* \ 1047 | --program-transfo=* | --program-transf=* \ 1048 | --program-trans=* | --program-tran=* \ 1049 | --progr-tra=* | --program-tr=* | --program-t=*) 1050 program_transform_name=$ac_optarg ;; 1051 1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1053 ac_prev=pdfdir ;; 1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1055 pdfdir=$ac_optarg ;; 1056 1057 -psdir | --psdir | --psdi | --psd | --ps) 1058 ac_prev=psdir ;; 1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1060 psdir=$ac_optarg ;; 1061 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 | -silent | --silent | --silen | --sile | --sil) 1064 silent=yes ;; 1065 1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1067 ac_prev=sbindir ;; 1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1069 | --sbi=* | --sb=*) 1070 sbindir=$ac_optarg ;; 1071 1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1074 | --sharedst | --shareds | --shared | --share | --shar \ 1075 | --sha | --sh) 1076 ac_prev=sharedstatedir ;; 1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1080 | --sha=* | --sh=*) 1081 sharedstatedir=$ac_optarg ;; 1082 1083 -site | --site | --sit) 1084 ac_prev=site ;; 1085 -site=* | --site=* | --sit=*) 1086 site=$ac_optarg ;; 1087 1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1089 ac_prev=srcdir ;; 1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1091 srcdir=$ac_optarg ;; 1092 1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1094 | --syscon | --sysco | --sysc | --sys | --sy) 1095 ac_prev=sysconfdir ;; 1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1098 sysconfdir=$ac_optarg ;; 1099 1100 -target | --target | --targe | --targ | --tar | --ta | --t) 1101 ac_prev=target_alias ;; 1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1103 target_alias=$ac_optarg ;; 1104 1105 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1106 verbose=yes ;; 1107 1108 -version | --version | --versio | --versi | --vers | -V) 1109 ac_init_version=: ;; 1110 1111 -with-* | --with-*) 1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1113 # Reject names that are not valid shell variable names. 1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1115 as_fn_error $? "invalid package name: $ac_useropt" 1116 ac_useropt_orig=$ac_useropt 1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1118 case $ac_user_opts in 1119 *" 1120"with_$ac_useropt" 1121"*) ;; 1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1123 ac_unrecognized_sep=', ';; 1124 esac 1125 eval with_$ac_useropt=\$ac_optarg ;; 1126 1127 -without-* | --without-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=no ;; 1142 1143 --x) 1144 # Obsolete; use --with-x. 1145 with_x=yes ;; 1146 1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1148 | --x-incl | --x-inc | --x-in | --x-i) 1149 ac_prev=x_includes ;; 1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1152 x_includes=$ac_optarg ;; 1153 1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1156 ac_prev=x_libraries ;; 1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1159 x_libraries=$ac_optarg ;; 1160 1161 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1162Try \`$0 --help' for more information" 1163 ;; 1164 1165 *=*) 1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1167 # Reject names that are not valid shell variable names. 1168 case $ac_envvar in #( 1169 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1171 esac 1172 eval $ac_envvar=\$ac_optarg 1173 export $ac_envvar ;; 1174 1175 *) 1176 # FIXME: should be removed in autoconf 3.0. 1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1181 ;; 1182 1183 esac 1184done 1185 1186if test -n "$ac_prev"; then 1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1188 as_fn_error $? "missing argument to $ac_option" 1189fi 1190 1191if test -n "$ac_unrecognized_opts"; then 1192 case $enable_option_checking in 1193 no) ;; 1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1196 esac 1197fi 1198 1199# Check all directory arguments for consistency. 1200for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1201 datadir sysconfdir sharedstatedir localstatedir includedir \ 1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1203 libdir localedir mandir 1204do 1205 eval ac_val=\$$ac_var 1206 # Remove trailing slashes. 1207 case $ac_val in 1208 */ ) 1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1210 eval $ac_var=\$ac_val;; 1211 esac 1212 # Be sure to have absolute directory names. 1213 case $ac_val in 1214 [\\/$]* | ?:[\\/]* ) continue;; 1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1216 esac 1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1218done 1219 1220# There might be people who depend on the old broken behavior: `$host' 1221# used to hold the argument of --host etc. 1222# FIXME: To remove some day. 1223build=$build_alias 1224host=$host_alias 1225target=$target_alias 1226 1227# FIXME: To remove some day. 1228if test "x$host_alias" != x; then 1229 if test "x$build_alias" = x; then 1230 cross_compiling=maybe 1231 elif test "x$build_alias" != "x$host_alias"; then 1232 cross_compiling=yes 1233 fi 1234fi 1235 1236ac_tool_prefix= 1237test -n "$host_alias" && ac_tool_prefix=$host_alias- 1238 1239test "$silent" = yes && exec 6>/dev/null 1240 1241 1242ac_pwd=`pwd` && test -n "$ac_pwd" && 1243ac_ls_di=`ls -di .` && 1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1245 as_fn_error $? "working directory cannot be determined" 1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1247 as_fn_error $? "pwd does not report name of working directory" 1248 1249 1250# Find the source files, if location was not specified. 1251if test -z "$srcdir"; then 1252 ac_srcdir_defaulted=yes 1253 # Try the directory containing this script, then the parent directory. 1254 ac_confdir=`$as_dirname -- "$as_myself" || 1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256 X"$as_myself" : 'X\(//\)[^/]' \| \ 1257 X"$as_myself" : 'X\(//\)$' \| \ 1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1259$as_echo X"$as_myself" | 1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)[^/].*/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\).*/{ 1273 s//\1/ 1274 q 1275 } 1276 s/.*/./; q'` 1277 srcdir=$ac_confdir 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 srcdir=.. 1280 fi 1281else 1282 ac_srcdir_defaulted=no 1283fi 1284if test ! -r "$srcdir/$ac_unique_file"; then 1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1287fi 1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1289ac_abs_confdir=`( 1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1291 pwd)` 1292# When building in place, set srcdir=. 1293if test "$ac_abs_confdir" = "$ac_pwd"; then 1294 srcdir=. 1295fi 1296# Remove unnecessary trailing slashes from srcdir. 1297# Double slashes in file names in object file debugging info 1298# mess up M-x gdb in Emacs. 1299case $srcdir in 1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1301esac 1302for ac_var in $ac_precious_vars; do 1303 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_env_${ac_var}_value=\$${ac_var} 1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1307done 1308 1309# 1310# Report the --help message. 1311# 1312if test "$ac_init_help" = "long"; then 1313 # Omit some internal or obsolete options to make the list less imposing. 1314 # This message is too long to be a string in the A/UX 3.1 sh. 1315 cat <<_ACEOF 1316\`configure' configures iperf 3-CURRENT to adapt to many kinds of systems. 1317 1318Usage: $0 [OPTION]... [VAR=VALUE]... 1319 1320To assign environment variables (e.g., CC, CFLAGS...), specify them as 1321VAR=VALUE. See below for descriptions of some of the useful variables. 1322 1323Defaults for the options are specified in brackets. 1324 1325Configuration: 1326 -h, --help display this help and exit 1327 --help=short display options specific to this package 1328 --help=recursive display the short help of all the included packages 1329 -V, --version display version information and exit 1330 -q, --quiet, --silent do not print \`checking ...' messages 1331 --cache-file=FILE cache test results in FILE [disabled] 1332 -C, --config-cache alias for \`--cache-file=config.cache' 1333 -n, --no-create do not create output files 1334 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1335 1336Installation directories: 1337 --prefix=PREFIX install architecture-independent files in PREFIX 1338 [$ac_default_prefix] 1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1340 [PREFIX] 1341 1342By default, \`make install' will install all the files in 1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1344an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1345for instance \`--prefix=\$HOME'. 1346 1347For better control, use the options below. 1348 1349Fine tuning of the installation directories: 1350 --bindir=DIR user executables [EPREFIX/bin] 1351 --sbindir=DIR system admin executables [EPREFIX/sbin] 1352 --libexecdir=DIR program executables [EPREFIX/libexec] 1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1356 --libdir=DIR object code libraries [EPREFIX/lib] 1357 --includedir=DIR C header files [PREFIX/include] 1358 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1361 --infodir=DIR info documentation [DATAROOTDIR/info] 1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1363 --mandir=DIR man documentation [DATAROOTDIR/man] 1364 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1365 --htmldir=DIR html documentation [DOCDIR] 1366 --dvidir=DIR dvi documentation [DOCDIR] 1367 --pdfdir=DIR pdf documentation [DOCDIR] 1368 --psdir=DIR ps documentation [DOCDIR] 1369_ACEOF 1370 1371 cat <<\_ACEOF 1372 1373Program names: 1374 --program-prefix=PREFIX prepend PREFIX to installed program names 1375 --program-suffix=SUFFIX append SUFFIX to installed program names 1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1377 1378System types: 1379 --build=BUILD configure for building on BUILD [guessed] 1380 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1381_ACEOF 1382fi 1383 1384if test -n "$ac_init_help"; then 1385 case $ac_init_help in 1386 short | recursive ) echo "Configuration of iperf 3-CURRENT:";; 1387 esac 1388 cat <<\_ACEOF 1389 1390Optional Features: 1391 --disable-option-checking ignore unrecognized --enable/--with options 1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1394 --enable-silent-rules less verbose build output (undo: "make V=1") 1395 --disable-silent-rules verbose build output (undo: "make V=0") 1396 --enable-maintainer-mode 1397 enable make rules and dependencies not useful (and 1398 sometimes confusing) to the casual installer 1399 --enable-dependency-tracking 1400 do not reject slow dependency extractors 1401 --disable-dependency-tracking 1402 speeds up one-time build 1403 --enable-shared[=PKGS] build shared libraries [default=yes] 1404 --enable-static[=PKGS] build static libraries [default=yes] 1405 --enable-fast-install[=PKGS] 1406 optimize for fast installation [default=yes] 1407 --disable-libtool-lock avoid locking (might break parallel builds) 1408 1409Optional Packages: 1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1412 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1413 both] 1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1415 --with-sysroot=DIR Search for dependent libraries within DIR 1416 (or the compiler's sysroot if not specified). 1417 1418Some influential environment variables: 1419 CC C compiler command 1420 CFLAGS C compiler flags 1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1422 nonstandard directory <lib dir> 1423 LIBS libraries to pass to the linker, e.g. -l<library> 1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1425 you have headers in a nonstandard directory <include dir> 1426 CPP C preprocessor 1427 1428Use these variables to override the choices made by `configure' or to help 1429it to find libraries and programs with nonstandard names/locations. 1430 1431Report bugs to <https://github.com/esnet/iperf>. 1432iperf home page: <http://software.es.net/iperf/>. 1433_ACEOF 1434ac_status=$? 1435fi 1436 1437if test "$ac_init_help" = "recursive"; then 1438 # If there are subdirs, report their specific --help. 1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1440 test -d "$ac_dir" || 1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1442 continue 1443 ac_builddir=. 1444 1445case "$ac_dir" in 1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447*) 1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1449 # A ".." for each directory in $ac_dir_suffix. 1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1451 case $ac_top_builddir_sub in 1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1454 esac ;; 1455esac 1456ac_abs_top_builddir=$ac_pwd 1457ac_abs_builddir=$ac_pwd$ac_dir_suffix 1458# for backward compatibility: 1459ac_top_builddir=$ac_top_build_prefix 1460 1461case $srcdir in 1462 .) # We are building in place. 1463 ac_srcdir=. 1464 ac_top_srcdir=$ac_top_builddir_sub 1465 ac_abs_top_srcdir=$ac_pwd ;; 1466 [\\/]* | ?:[\\/]* ) # Absolute name. 1467 ac_srcdir=$srcdir$ac_dir_suffix; 1468 ac_top_srcdir=$srcdir 1469 ac_abs_top_srcdir=$srcdir ;; 1470 *) # Relative name. 1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1472 ac_top_srcdir=$ac_top_build_prefix$srcdir 1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1474esac 1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1476 1477 cd "$ac_dir" || { ac_status=$?; continue; } 1478 # Check for guested configure. 1479 if test -f "$ac_srcdir/configure.gnu"; then 1480 echo && 1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1482 elif test -f "$ac_srcdir/configure"; then 1483 echo && 1484 $SHELL "$ac_srcdir/configure" --help=recursive 1485 else 1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1487 fi || ac_status=$? 1488 cd "$ac_pwd" || { ac_status=$?; break; } 1489 done 1490fi 1491 1492test -n "$ac_init_help" && exit $ac_status 1493if $ac_init_version; then 1494 cat <<\_ACEOF 1495iperf configure 3-CURRENT 1496generated by GNU Autoconf 2.69 1497 1498Copyright (C) 2012 Free Software Foundation, Inc. 1499This configure script is free software; the Free Software Foundation 1500gives unlimited permission to copy, distribute and modify it. 1501_ACEOF 1502 exit 1503fi 1504 1505## ------------------------ ## 1506## Autoconf initialization. ## 1507## ------------------------ ## 1508 1509# ac_fn_c_try_compile LINENO 1510# -------------------------- 1511# Try to compile conftest.$ac_ext, and return whether this succeeded. 1512ac_fn_c_try_compile () 1513{ 1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1515 rm -f conftest.$ac_objext 1516 if { { ac_try="$ac_compile" 1517case "(($ac_try" in 1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1519 *) ac_try_echo=$ac_try;; 1520esac 1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1522$as_echo "$ac_try_echo"; } >&5 1523 (eval "$ac_compile") 2>conftest.err 1524 ac_status=$? 1525 if test -s conftest.err; then 1526 grep -v '^ *+' conftest.err >conftest.er1 1527 cat conftest.er1 >&5 1528 mv -f conftest.er1 conftest.err 1529 fi 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1531 test $ac_status = 0; } && { 1532 test -z "$ac_c_werror_flag" || 1533 test ! -s conftest.err 1534 } && test -s conftest.$ac_objext; then : 1535 ac_retval=0 1536else 1537 $as_echo "$as_me: failed program was:" >&5 1538sed 's/^/| /' conftest.$ac_ext >&5 1539 1540 ac_retval=1 1541fi 1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1543 as_fn_set_status $ac_retval 1544 1545} # ac_fn_c_try_compile 1546 1547# ac_fn_c_try_link LINENO 1548# ----------------------- 1549# Try to link conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_link () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 rm -f conftest.$ac_objext conftest$ac_exeext 1554 if { { ac_try="$ac_link" 1555case "(($ac_try" in 1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1557 *) ac_try_echo=$ac_try;; 1558esac 1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1560$as_echo "$ac_try_echo"; } >&5 1561 (eval "$ac_link") 2>conftest.err 1562 ac_status=$? 1563 if test -s conftest.err; then 1564 grep -v '^ *+' conftest.err >conftest.er1 1565 cat conftest.er1 >&5 1566 mv -f conftest.er1 conftest.err 1567 fi 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } && { 1570 test -z "$ac_c_werror_flag" || 1571 test ! -s conftest.err 1572 } && test -s conftest$ac_exeext && { 1573 test "$cross_compiling" = yes || 1574 test -x conftest$ac_exeext 1575 }; then : 1576 ac_retval=0 1577else 1578 $as_echo "$as_me: failed program was:" >&5 1579sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 1582fi 1583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1585 # interfere with the next link command; also delete a directory that is 1586 # left behind by Apple's compiler. We do this before executing the actions. 1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_link 1592 1593# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1594# ------------------------------------------------------- 1595# Tests whether HEADER exists and can be compiled using the include files in 1596# INCLUDES, setting the cache variable VAR accordingly. 1597ac_fn_c_check_header_compile () 1598{ 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1601$as_echo_n "checking for $2... " >&6; } 1602if eval \${$3+:} false; then : 1603 $as_echo_n "(cached) " >&6 1604else 1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1606/* end confdefs.h. */ 1607$4 1608#include <$2> 1609_ACEOF 1610if ac_fn_c_try_compile "$LINENO"; then : 1611 eval "$3=yes" 1612else 1613 eval "$3=no" 1614fi 1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1616fi 1617eval ac_res=\$$3 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1619$as_echo "$ac_res" >&6; } 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 1622} # ac_fn_c_check_header_compile 1623 1624# ac_fn_c_try_cpp LINENO 1625# ---------------------- 1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_cpp () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 if { { ac_try="$ac_cpp conftest.$ac_ext" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } > conftest.i && { 1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_cpp 1660 1661# ac_fn_c_try_run LINENO 1662# ---------------------- 1663# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1664# that executables *can* be run. 1665ac_fn_c_try_run () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 if { { ac_try="$ac_link" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_link") 2>&5 1676 ac_status=$? 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1679 { { case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_try") 2>&5 1686 ac_status=$? 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; }; }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: program exited with status $ac_status" >&5 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=$ac_status 1696fi 1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 as_fn_set_status $ac_retval 1700 1701} # ac_fn_c_try_run 1702 1703# ac_fn_c_check_func LINENO FUNC VAR 1704# ---------------------------------- 1705# Tests whether FUNC exists, setting the cache variable VAR accordingly 1706ac_fn_c_check_func () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710$as_echo_n "checking for $2... " >&6; } 1711if eval \${$3+:} false; then : 1712 $as_echo_n "(cached) " >&6 1713else 1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715/* end confdefs.h. */ 1716/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1717 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1718#define $2 innocuous_$2 1719 1720/* System header to define __stub macros and hopefully few prototypes, 1721 which can conflict with char $2 (); below. 1722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1723 <limits.h> exists even on freestanding compilers. */ 1724 1725#ifdef __STDC__ 1726# include <limits.h> 1727#else 1728# include <assert.h> 1729#endif 1730 1731#undef $2 1732 1733/* Override any GCC internal prototype to avoid an error. 1734 Use char because int might match the return type of a GCC 1735 builtin and then its argument prototype would still apply. */ 1736#ifdef __cplusplus 1737extern "C" 1738#endif 1739char $2 (); 1740/* The GNU C library defines this for functions which it implements 1741 to always fail with ENOSYS. Some functions are actually named 1742 something starting with __ and the normal name is an alias. */ 1743#if defined __stub_$2 || defined __stub___$2 1744choke me 1745#endif 1746 1747int 1748main () 1749{ 1750return $2 (); 1751 ; 1752 return 0; 1753} 1754_ACEOF 1755if ac_fn_c_try_link "$LINENO"; then : 1756 eval "$3=yes" 1757else 1758 eval "$3=no" 1759fi 1760rm -f core conftest.err conftest.$ac_objext \ 1761 conftest$ac_exeext conftest.$ac_ext 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_func 1769 1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1771# ------------------------------------------------------- 1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1773# the include files in INCLUDES and setting the cache variable VAR 1774# accordingly. 1775ac_fn_c_check_header_mongrel () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if eval \${$3+:} false; then : 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if eval \${$3+:} false; then : 1782 $as_echo_n "(cached) " >&6 1783fi 1784eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786$as_echo "$ac_res" >&6; } 1787else 1788 # Is the header compilable? 1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1790$as_echo_n "checking $2 usability... " >&6; } 1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793$4 1794#include <$2> 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO"; then : 1797 ac_header_compiler=yes 1798else 1799 ac_header_compiler=no 1800fi 1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1803$as_echo "$ac_header_compiler" >&6; } 1804 1805# Is the header present? 1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1807$as_echo_n "checking $2 presence... " >&6; } 1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810#include <$2> 1811_ACEOF 1812if ac_fn_c_try_cpp "$LINENO"; then : 1813 ac_header_preproc=yes 1814else 1815 ac_header_preproc=no 1816fi 1817rm -f conftest.err conftest.i conftest.$ac_ext 1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1819$as_echo "$ac_header_preproc" >&6; } 1820 1821# So? What about this header? 1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1823 yes:no: ) 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1828 ;; 1829 no:yes:* ) 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1840( $as_echo "## --------------------------------------------- ## 1841## Report this to https://github.com/esnet/iperf ## 1842## --------------------------------------------- ##" 1843 ) | sed "s/^/$as_me: WARNING: /" >&2 1844 ;; 1845esac 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1847$as_echo_n "checking for $2... " >&6; } 1848if eval \${$3+:} false; then : 1849 $as_echo_n "(cached) " >&6 1850else 1851 eval "$3=\$ac_header_compiler" 1852fi 1853eval ac_res=\$$3 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1855$as_echo "$ac_res" >&6; } 1856fi 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_header_mongrel 1860cat >config.log <<_ACEOF 1861This file contains any messages produced by compilers while 1862running configure, to aid debugging if configure makes a mistake. 1863 1864It was created by iperf $as_me 3-CURRENT, which was 1865generated by GNU Autoconf 2.69. Invocation command line was 1866 1867 $ $0 $@ 1868 1869_ACEOF 1870exec 5>>config.log 1871{ 1872cat <<_ASUNAME 1873## --------- ## 1874## Platform. ## 1875## --------- ## 1876 1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1878uname -m = `(uname -m) 2>/dev/null || echo unknown` 1879uname -r = `(uname -r) 2>/dev/null || echo unknown` 1880uname -s = `(uname -s) 2>/dev/null || echo unknown` 1881uname -v = `(uname -v) 2>/dev/null || echo unknown` 1882 1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1884/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1885 1886/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1887/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1889/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1890/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1891/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1892/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1893 1894_ASUNAME 1895 1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1897for as_dir in $PATH 1898do 1899 IFS=$as_save_IFS 1900 test -z "$as_dir" && as_dir=. 1901 $as_echo "PATH: $as_dir" 1902 done 1903IFS=$as_save_IFS 1904 1905} >&5 1906 1907cat >&5 <<_ACEOF 1908 1909 1910## ----------- ## 1911## Core tests. ## 1912## ----------- ## 1913 1914_ACEOF 1915 1916 1917# Keep a trace of the command line. 1918# Strip out --no-create and --no-recursion so they do not pile up. 1919# Strip out --silent because we don't want to record it for future runs. 1920# Also quote any args containing shell meta-characters. 1921# Make two passes to allow for proper duplicate-argument suppression. 1922ac_configure_args= 1923ac_configure_args0= 1924ac_configure_args1= 1925ac_must_keep_next=false 1926for ac_pass in 1 2 1927do 1928 for ac_arg 1929 do 1930 case $ac_arg in 1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1933 | -silent | --silent | --silen | --sile | --sil) 1934 continue ;; 1935 *\'*) 1936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1937 esac 1938 case $ac_pass in 1939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1940 2) 1941 as_fn_append ac_configure_args1 " '$ac_arg'" 1942 if test $ac_must_keep_next = true; then 1943 ac_must_keep_next=false # Got value, back to normal. 1944 else 1945 case $ac_arg in 1946 *=* | --config-cache | -C | -disable-* | --disable-* \ 1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1949 | -with-* | --with-* | -without-* | --without-* | --x) 1950 case "$ac_configure_args0 " in 1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1952 esac 1953 ;; 1954 -* ) ac_must_keep_next=true ;; 1955 esac 1956 fi 1957 as_fn_append ac_configure_args " '$ac_arg'" 1958 ;; 1959 esac 1960 done 1961done 1962{ ac_configure_args0=; unset ac_configure_args0;} 1963{ ac_configure_args1=; unset ac_configure_args1;} 1964 1965# When interrupted or exit'd, cleanup temporary files, and complete 1966# config.log. We remove comments because anyway the quotes in there 1967# would cause problems or look ugly. 1968# WARNING: Use '\'' to represent an apostrophe within the trap. 1969# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1970trap 'exit_status=$? 1971 # Save into config.log some information that might help in debugging. 1972 { 1973 echo 1974 1975 $as_echo "## ---------------- ## 1976## Cache variables. ## 1977## ---------------- ##" 1978 echo 1979 # The following way of writing the cache mishandles newlines in values, 1980( 1981 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in #( 1984 *${as_nl}*) 1985 case $ac_var in #( 1986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1988 esac 1989 case $ac_var in #( 1990 _ | IFS | as_nl) ;; #( 1991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1992 *) { eval $ac_var=; unset $ac_var;} ;; 1993 esac ;; 1994 esac 1995 done 1996 (set) 2>&1 | 1997 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1998 *${as_nl}ac_space=\ *) 1999 sed -n \ 2000 "s/'\''/'\''\\\\'\'''\''/g; 2001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2002 ;; #( 2003 *) 2004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2005 ;; 2006 esac | 2007 sort 2008) 2009 echo 2010 2011 $as_echo "## ----------------- ## 2012## Output variables. ## 2013## ----------------- ##" 2014 echo 2015 for ac_var in $ac_subst_vars 2016 do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in 2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2020 esac 2021 $as_echo "$ac_var='\''$ac_val'\''" 2022 done | sort 2023 echo 2024 2025 if test -n "$ac_subst_files"; then 2026 $as_echo "## ------------------- ## 2027## File substitutions. ## 2028## ------------------- ##" 2029 echo 2030 for ac_var in $ac_subst_files 2031 do 2032 eval ac_val=\$$ac_var 2033 case $ac_val in 2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2035 esac 2036 $as_echo "$ac_var='\''$ac_val'\''" 2037 done | sort 2038 echo 2039 fi 2040 2041 if test -s confdefs.h; then 2042 $as_echo "## ----------- ## 2043## confdefs.h. ## 2044## ----------- ##" 2045 echo 2046 cat confdefs.h 2047 echo 2048 fi 2049 test "$ac_signal" != 0 && 2050 $as_echo "$as_me: caught signal $ac_signal" 2051 $as_echo "$as_me: exit $exit_status" 2052 } >&5 2053 rm -f core *.core core.conftest.* && 2054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2055 exit $exit_status 2056' 0 2057for ac_signal in 1 2 13 15; do 2058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2059done 2060ac_signal=0 2061 2062# confdefs.h avoids OS command line length limits that DEFS can exceed. 2063rm -f -r conftest* confdefs.h 2064 2065$as_echo "/* confdefs.h */" > confdefs.h 2066 2067# Predefined preprocessor variables. 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_NAME "$PACKAGE_NAME" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2075_ACEOF 2076 2077cat >>confdefs.h <<_ACEOF 2078#define PACKAGE_VERSION "$PACKAGE_VERSION" 2079_ACEOF 2080 2081cat >>confdefs.h <<_ACEOF 2082#define PACKAGE_STRING "$PACKAGE_STRING" 2083_ACEOF 2084 2085cat >>confdefs.h <<_ACEOF 2086#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2087_ACEOF 2088 2089cat >>confdefs.h <<_ACEOF 2090#define PACKAGE_URL "$PACKAGE_URL" 2091_ACEOF 2092 2093 2094# Let the site file select an alternate cache file if it wants to. 2095# Prefer an explicitly selected file to automatically selected ones. 2096ac_site_file1=NONE 2097ac_site_file2=NONE 2098if test -n "$CONFIG_SITE"; then 2099 # We do not want a PATH search for config.site. 2100 case $CONFIG_SITE in #(( 2101 -*) ac_site_file1=./$CONFIG_SITE;; 2102 */*) ac_site_file1=$CONFIG_SITE;; 2103 *) ac_site_file1=./$CONFIG_SITE;; 2104 esac 2105elif test "x$prefix" != xNONE; then 2106 ac_site_file1=$prefix/share/config.site 2107 ac_site_file2=$prefix/etc/config.site 2108else 2109 ac_site_file1=$ac_default_prefix/share/config.site 2110 ac_site_file2=$ac_default_prefix/etc/config.site 2111fi 2112for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2113do 2114 test "x$ac_site_file" = xNONE && continue 2115 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2117$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2118 sed 's/^/| /' "$ac_site_file" >&5 2119 . "$ac_site_file" \ 2120 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2122as_fn_error $? "failed to load site script $ac_site_file 2123See \`config.log' for more details" "$LINENO" 5; } 2124 fi 2125done 2126 2127if test -r "$cache_file"; then 2128 # Some versions of bash will fail to source /dev/null (special files 2129 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2130 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2132$as_echo "$as_me: loading cache $cache_file" >&6;} 2133 case $cache_file in 2134 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2135 *) . "./$cache_file";; 2136 esac 2137 fi 2138else 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2140$as_echo "$as_me: creating cache $cache_file" >&6;} 2141 >$cache_file 2142fi 2143 2144# Check that the precious variables saved in the cache have kept the same 2145# value. 2146ac_cache_corrupted=false 2147for ac_var in $ac_precious_vars; do 2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2149 eval ac_new_set=\$ac_env_${ac_var}_set 2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2151 eval ac_new_val=\$ac_env_${ac_var}_value 2152 case $ac_old_set,$ac_new_set in 2153 set,) 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2155$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2156 ac_cache_corrupted=: ;; 2157 ,set) 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2159$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2160 ac_cache_corrupted=: ;; 2161 ,);; 2162 *) 2163 if test "x$ac_old_val" != "x$ac_new_val"; then 2164 # differences in whitespace do not lead to failure. 2165 ac_old_val_w=`echo x $ac_old_val` 2166 ac_new_val_w=`echo x $ac_new_val` 2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2169$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2170 ac_cache_corrupted=: 2171 else 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2173$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2174 eval $ac_var=\$ac_old_val 2175 fi 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2177$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2179$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2180 fi;; 2181 esac 2182 # Pass precious variables to config.status. 2183 if test "$ac_new_set" = set; then 2184 case $ac_new_val in 2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2186 *) ac_arg=$ac_var=$ac_new_val ;; 2187 esac 2188 case " $ac_configure_args " in 2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2190 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2191 esac 2192 fi 2193done 2194if $ac_cache_corrupted; then 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2198$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2199 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2200fi 2201## -------------------- ## 2202## Main body of script. ## 2203## -------------------- ## 2204 2205ac_ext=c 2206ac_cpp='$CPP $CPPFLAGS' 2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2209ac_compiler_gnu=$ac_cv_c_compiler_gnu 2210 2211 2212 2213# Specify where the auxiliary files created by configure should go. The config 2214# directory is picked so that they don't clutter up more useful directories. 2215ac_aux_dir= 2216for ac_dir in config "$srcdir"/config; do 2217 if test -f "$ac_dir/install-sh"; then 2218 ac_aux_dir=$ac_dir 2219 ac_install_sh="$ac_aux_dir/install-sh -c" 2220 break 2221 elif 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/shtool"; then 2226 ac_aux_dir=$ac_dir 2227 ac_install_sh="$ac_aux_dir/shtool install -c" 2228 break 2229 fi 2230done 2231if test -z "$ac_aux_dir"; then 2232 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2233fi 2234 2235# These three variables are undocumented and unsupported, 2236# and are intended to be withdrawn in a future Autoconf release. 2237# They can cause serious problems if a builder's source tree is in a directory 2238# whose full name contains unusual characters. 2239ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2240ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2241ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2242 2243 2244 2245 2246# Initialize the automake system 2247am__api_version='1.14' 2248 2249# Find a good install program. We prefer a C program (faster), 2250# so one script is as good as another. But avoid the broken or 2251# incompatible versions: 2252# SysV /etc/install, /usr/sbin/install 2253# SunOS /usr/etc/install 2254# IRIX /sbin/install 2255# AIX /bin/install 2256# AmigaOS /C/install, which installs bootblocks on floppy discs 2257# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2258# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2259# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2260# OS/2's system install, which has a completely different semantic 2261# ./install, which can be erroneously created by make from ./install.sh. 2262# Reject install programs that cannot install multiple files. 2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2264$as_echo_n "checking for a BSD-compatible install... " >&6; } 2265if test -z "$INSTALL"; then 2266if ${ac_cv_path_install+:} false; then : 2267 $as_echo_n "(cached) " >&6 2268else 2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2270for as_dir in $PATH 2271do 2272 IFS=$as_save_IFS 2273 test -z "$as_dir" && as_dir=. 2274 # Account for people who put trailing slashes in PATH elements. 2275case $as_dir/ in #(( 2276 ./ | .// | /[cC]/* | \ 2277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2278 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2279 /usr/ucb/* ) ;; 2280 *) 2281 # OSF1 and SCO ODT 3.0 have their own names for install. 2282 # Don't use installbsd from OSF since it installs stuff as root 2283 # by default. 2284 for ac_prog in ginstall scoinst install; do 2285 for ac_exec_ext in '' $ac_executable_extensions; do 2286 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2287 if test $ac_prog = install && 2288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2289 # AIX install. It has an incompatible calling convention. 2290 : 2291 elif test $ac_prog = install && 2292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2293 # program-specific install script used by HP pwplus--don't use. 2294 : 2295 else 2296 rm -rf conftest.one conftest.two conftest.dir 2297 echo one > conftest.one 2298 echo two > conftest.two 2299 mkdir conftest.dir 2300 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2301 test -s conftest.one && test -s conftest.two && 2302 test -s conftest.dir/conftest.one && 2303 test -s conftest.dir/conftest.two 2304 then 2305 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2306 break 3 2307 fi 2308 fi 2309 fi 2310 done 2311 done 2312 ;; 2313esac 2314 2315 done 2316IFS=$as_save_IFS 2317 2318rm -rf conftest.one conftest.two conftest.dir 2319 2320fi 2321 if test "${ac_cv_path_install+set}" = set; then 2322 INSTALL=$ac_cv_path_install 2323 else 2324 # As a last resort, use the slow shell script. Don't cache a 2325 # value for INSTALL within a source directory, because that will 2326 # break other packages using the cache if that directory is 2327 # removed, or if the value is a relative name. 2328 INSTALL=$ac_install_sh 2329 fi 2330fi 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2332$as_echo "$INSTALL" >&6; } 2333 2334# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2335# It thinks the first close brace ends the variable substitution. 2336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2337 2338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2339 2340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2341 2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2343$as_echo_n "checking whether build environment is sane... " >&6; } 2344# Reject unsafe characters in $srcdir or the absolute working directory 2345# name. Accept space and tab only in the latter. 2346am_lf=' 2347' 2348case `pwd` in 2349 *[\\\"\#\$\&\'\`$am_lf]*) 2350 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2351esac 2352case $srcdir in 2353 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2354 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2355esac 2356 2357# Do 'set' in a subshell so we don't clobber the current shell's 2358# arguments. Must try -L first in case configure is actually a 2359# symlink; some systems play weird games with the mod time of symlinks 2360# (eg FreeBSD returns the mod time of the symlink's containing 2361# directory). 2362if ( 2363 am_has_slept=no 2364 for am_try in 1 2; do 2365 echo "timestamp, slept: $am_has_slept" > conftest.file 2366 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2367 if test "$*" = "X"; then 2368 # -L didn't work. 2369 set X `ls -t "$srcdir/configure" conftest.file` 2370 fi 2371 if test "$*" != "X $srcdir/configure conftest.file" \ 2372 && test "$*" != "X conftest.file $srcdir/configure"; then 2373 2374 # If neither matched, then we have a broken ls. This can happen 2375 # if, for instance, CONFIG_SHELL is bash and it inherits a 2376 # broken ls alias from the environment. This has actually 2377 # happened. Such a system could not be considered "sane". 2378 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2379 alias in your environment" "$LINENO" 5 2380 fi 2381 if test "$2" = conftest.file || test $am_try -eq 2; then 2382 break 2383 fi 2384 # Just in case. 2385 sleep 1 2386 am_has_slept=yes 2387 done 2388 test "$2" = conftest.file 2389 ) 2390then 2391 # Ok. 2392 : 2393else 2394 as_fn_error $? "newly created file is older than distributed files! 2395Check your system clock" "$LINENO" 5 2396fi 2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2398$as_echo "yes" >&6; } 2399# If we didn't sleep, we still need to ensure time stamps of config.status and 2400# generated files are strictly newer. 2401am_sleep_pid= 2402if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2403 ( sleep 1 ) & 2404 am_sleep_pid=$! 2405fi 2406 2407rm -f conftest.file 2408 2409test "$program_prefix" != NONE && 2410 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2411# Use a double $ so make ignores it. 2412test "$program_suffix" != NONE && 2413 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2414# Double any \ or $. 2415# By default was `s,x,x', remove it if useless. 2416ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2417program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2418 2419# expand $ac_aux_dir to an absolute path 2420am_aux_dir=`cd $ac_aux_dir && pwd` 2421 2422if test x"${MISSING+set}" != xset; then 2423 case $am_aux_dir in 2424 *\ * | *\ *) 2425 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2426 *) 2427 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2428 esac 2429fi 2430# Use eval to expand $SHELL 2431if eval "$MISSING --is-lightweight"; then 2432 am_missing_run="$MISSING " 2433else 2434 am_missing_run= 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2436$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2437fi 2438 2439if test x"${install_sh}" != xset; then 2440 case $am_aux_dir in 2441 *\ * | *\ *) 2442 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2443 *) 2444 install_sh="\${SHELL} $am_aux_dir/install-sh" 2445 esac 2446fi 2447 2448# Installed binaries are usually stripped using 'strip' when the user 2449# run "make install-strip". However 'strip' might not be the right 2450# tool to use in cross-compilation environments, therefore Automake 2451# will honor the 'STRIP' environment variable to overrule this program. 2452if test "$cross_compiling" != no; then 2453 if test -n "$ac_tool_prefix"; then 2454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2455set dummy ${ac_tool_prefix}strip; ac_word=$2 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2457$as_echo_n "checking for $ac_word... " >&6; } 2458if ${ac_cv_prog_STRIP+:} false; then : 2459 $as_echo_n "(cached) " >&6 2460else 2461 if test -n "$STRIP"; then 2462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2463else 2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465for as_dir in $PATH 2466do 2467 IFS=$as_save_IFS 2468 test -z "$as_dir" && as_dir=. 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2471 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2473 break 2 2474 fi 2475done 2476 done 2477IFS=$as_save_IFS 2478 2479fi 2480fi 2481STRIP=$ac_cv_prog_STRIP 2482if test -n "$STRIP"; then 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2484$as_echo "$STRIP" >&6; } 2485else 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2487$as_echo "no" >&6; } 2488fi 2489 2490 2491fi 2492if test -z "$ac_cv_prog_STRIP"; then 2493 ac_ct_STRIP=$STRIP 2494 # Extract the first word of "strip", so it can be a program name with args. 2495set dummy strip; ac_word=$2 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2497$as_echo_n "checking for $ac_word... " >&6; } 2498if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2499 $as_echo_n "(cached) " >&6 2500else 2501 if test -n "$ac_ct_STRIP"; then 2502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2503else 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505for as_dir in $PATH 2506do 2507 IFS=$as_save_IFS 2508 test -z "$as_dir" && as_dir=. 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2511 ac_cv_prog_ac_ct_STRIP="strip" 2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2513 break 2 2514 fi 2515done 2516 done 2517IFS=$as_save_IFS 2518 2519fi 2520fi 2521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2522if test -n "$ac_ct_STRIP"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2524$as_echo "$ac_ct_STRIP" >&6; } 2525else 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2527$as_echo "no" >&6; } 2528fi 2529 2530 if test "x$ac_ct_STRIP" = x; then 2531 STRIP=":" 2532 else 2533 case $cross_compiling:$ac_tool_warned in 2534yes:) 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2537ac_tool_warned=yes ;; 2538esac 2539 STRIP=$ac_ct_STRIP 2540 fi 2541else 2542 STRIP="$ac_cv_prog_STRIP" 2543fi 2544 2545fi 2546INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2547 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2549$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2550if test -z "$MKDIR_P"; then 2551 if ${ac_cv_path_mkdir+:} false; then : 2552 $as_echo_n "(cached) " >&6 2553else 2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_prog in mkdir gmkdir; do 2560 for ac_exec_ext in '' $ac_executable_extensions; do 2561 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2562 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2563 'mkdir (GNU coreutils) '* | \ 2564 'mkdir (coreutils) '* | \ 2565 'mkdir (fileutils) '4.1*) 2566 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2567 break 3;; 2568 esac 2569 done 2570 done 2571 done 2572IFS=$as_save_IFS 2573 2574fi 2575 2576 test -d ./--version && rmdir ./--version 2577 if test "${ac_cv_path_mkdir+set}" = set; then 2578 MKDIR_P="$ac_cv_path_mkdir -p" 2579 else 2580 # As a last resort, use the slow shell script. Don't cache a 2581 # value for MKDIR_P within a source directory, because that will 2582 # break other packages using the cache if that directory is 2583 # removed, or if the value is a relative name. 2584 MKDIR_P="$ac_install_sh -d" 2585 fi 2586fi 2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2588$as_echo "$MKDIR_P" >&6; } 2589 2590for ac_prog in gawk mawk nawk awk 2591do 2592 # Extract the first word of "$ac_prog", so it can be a program name with args. 2593set dummy $ac_prog; ac_word=$2 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2595$as_echo_n "checking for $ac_word... " >&6; } 2596if ${ac_cv_prog_AWK+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 if test -n "$AWK"; then 2600 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2601else 2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2603for as_dir in $PATH 2604do 2605 IFS=$as_save_IFS 2606 test -z "$as_dir" && as_dir=. 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2609 ac_cv_prog_AWK="$ac_prog" 2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2611 break 2 2612 fi 2613done 2614 done 2615IFS=$as_save_IFS 2616 2617fi 2618fi 2619AWK=$ac_cv_prog_AWK 2620if test -n "$AWK"; then 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2622$as_echo "$AWK" >&6; } 2623else 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2625$as_echo "no" >&6; } 2626fi 2627 2628 2629 test -n "$AWK" && break 2630done 2631 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2633$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2634set x ${MAKE-make} 2635ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2636if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 cat >conftest.make <<\_ACEOF 2640SHELL = /bin/sh 2641all: 2642 @echo '@@@%%%=$(MAKE)=@@@%%%' 2643_ACEOF 2644# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2645case `${MAKE-make} -f conftest.make 2>/dev/null` in 2646 *@@@%%%=?*=@@@%%%*) 2647 eval ac_cv_prog_make_${ac_make}_set=yes;; 2648 *) 2649 eval ac_cv_prog_make_${ac_make}_set=no;; 2650esac 2651rm -f conftest.make 2652fi 2653if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2655$as_echo "yes" >&6; } 2656 SET_MAKE= 2657else 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2659$as_echo "no" >&6; } 2660 SET_MAKE="MAKE=${MAKE-make}" 2661fi 2662 2663rm -rf .tst 2>/dev/null 2664mkdir .tst 2>/dev/null 2665if test -d .tst; then 2666 am__leading_dot=. 2667else 2668 am__leading_dot=_ 2669fi 2670rmdir .tst 2>/dev/null 2671 2672# Check whether --enable-silent-rules was given. 2673if test "${enable_silent_rules+set}" = set; then : 2674 enableval=$enable_silent_rules; 2675fi 2676 2677case $enable_silent_rules in # ((( 2678 yes) AM_DEFAULT_VERBOSITY=0;; 2679 no) AM_DEFAULT_VERBOSITY=1;; 2680 *) AM_DEFAULT_VERBOSITY=1;; 2681esac 2682am_make=${MAKE-make} 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2684$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2685if ${am_cv_make_support_nested_variables+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if $as_echo 'TRUE=$(BAR$(V)) 2689BAR0=false 2690BAR1=true 2691V=1 2692am__doit: 2693 @$(TRUE) 2694.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2695 am_cv_make_support_nested_variables=yes 2696else 2697 am_cv_make_support_nested_variables=no 2698fi 2699fi 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2701$as_echo "$am_cv_make_support_nested_variables" >&6; } 2702if test $am_cv_make_support_nested_variables = yes; then 2703 AM_V='$(V)' 2704 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2705else 2706 AM_V=$AM_DEFAULT_VERBOSITY 2707 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2708fi 2709AM_BACKSLASH='\' 2710 2711if test "`cd $srcdir && pwd`" != "`pwd`"; then 2712 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2713 # is not polluted with repeated "-I." 2714 am__isrc=' -I$(srcdir)' 2715 # test to see if srcdir already configured 2716 if test -f $srcdir/config.status; then 2717 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2718 fi 2719fi 2720 2721# test whether we have cygpath 2722if test -z "$CYGPATH_W"; then 2723 if (cygpath --version) >/dev/null 2>/dev/null; then 2724 CYGPATH_W='cygpath -w' 2725 else 2726 CYGPATH_W=echo 2727 fi 2728fi 2729 2730 2731# Define the identity of the package. 2732 PACKAGE='iperf' 2733 VERSION='3-CURRENT' 2734 2735 2736cat >>confdefs.h <<_ACEOF 2737#define PACKAGE "$PACKAGE" 2738_ACEOF 2739 2740 2741cat >>confdefs.h <<_ACEOF 2742#define VERSION "$VERSION" 2743_ACEOF 2744 2745# Some tools Automake needs. 2746 2747ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2748 2749 2750AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2751 2752 2753AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2754 2755 2756AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2757 2758 2759MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2760 2761# For better backward compatibility. To be removed once Automake 1.9.x 2762# dies out for good. For more background, see: 2763# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2764# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2765mkdir_p='$(MKDIR_P)' 2766 2767# We need awk for the "check" target. The system "awk" is bad on 2768# some platforms. 2769# Always define AMTAR for backward compatibility. Yes, it's still used 2770# in the wild :-( We should find a proper way to deprecate it ... 2771AMTAR='$${TAR-tar}' 2772 2773 2774# We'll loop over all known methods to create a tar archive until one works. 2775_am_tools='gnutar pax cpio none' 2776 2777am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2778 2779 2780 2781 2782 2783 2784# POSIX will say in a future version that running "rm -f" with no argument 2785# is OK; and we want to be able to make that assumption in our Makefile 2786# recipes. So use an aggressive probe to check that the usage we want is 2787# actually supported "in the wild" to an acceptable degree. 2788# See automake bug#10828. 2789# To make any issue more visible, cause the running configure to be aborted 2790# by default if the 'rm' program in use doesn't match our expectations; the 2791# user can still override this though. 2792if rm -f && rm -fr && rm -rf; then : OK; else 2793 cat >&2 <<'END' 2794Oops! 2795 2796Your 'rm' program seems unable to run without file operands specified 2797on the command line, even when the '-f' option is present. This is contrary 2798to the behaviour of most rm programs out there, and not conforming with 2799the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2800 2801Please tell bug-automake@gnu.org about your system, including the value 2802of your $PATH and any error possibly output before this message. This 2803can help us improve future automake versions. 2804 2805END 2806 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2807 echo 'Configuration will proceed anyway, since you have set the' >&2 2808 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2809 echo >&2 2810 else 2811 cat >&2 <<'END' 2812Aborting the configuration process, to ensure you take notice of the issue. 2813 2814You can download and install GNU coreutils to get an 'rm' implementation 2815that behaves properly: <http://www.gnu.org/software/coreutils/>. 2816 2817If you want to complete the configuration process using your problematic 2818'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2819to "yes", and re-run configure. 2820 2821END 2822 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2823 fi 2824fi 2825 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2827$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2828 # Check whether --enable-maintainer-mode was given. 2829if test "${enable_maintainer_mode+set}" = set; then : 2830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2831else 2832 USE_MAINTAINER_MODE=no 2833fi 2834 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2836$as_echo "$USE_MAINTAINER_MODE" >&6; } 2837 if test $USE_MAINTAINER_MODE = yes; then 2838 MAINTAINER_MODE_TRUE= 2839 MAINTAINER_MODE_FALSE='#' 2840else 2841 MAINTAINER_MODE_TRUE='#' 2842 MAINTAINER_MODE_FALSE= 2843fi 2844 2845 MAINT=$MAINTAINER_MODE_TRUE 2846 2847 2848ac_config_headers="$ac_config_headers src/iperf_config.h" 2849 2850 2851# Make sure we can run config.sub. 2852$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2853 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2854 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2856$as_echo_n "checking build system type... " >&6; } 2857if ${ac_cv_build+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859else 2860 ac_build_alias=$build_alias 2861test "x$ac_build_alias" = x && 2862 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2863test "x$ac_build_alias" = x && 2864 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2865ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2866 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2867 2868fi 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2870$as_echo "$ac_cv_build" >&6; } 2871case $ac_cv_build in 2872*-*-*) ;; 2873*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2874esac 2875build=$ac_cv_build 2876ac_save_IFS=$IFS; IFS='-' 2877set x $ac_cv_build 2878shift 2879build_cpu=$1 2880build_vendor=$2 2881shift; shift 2882# Remember, the first character of IFS is used to create $*, 2883# except with old shells: 2884build_os=$* 2885IFS=$ac_save_IFS 2886case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2887 2888 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2890$as_echo_n "checking host system type... " >&6; } 2891if ${ac_cv_host+:} false; then : 2892 $as_echo_n "(cached) " >&6 2893else 2894 if test "x$host_alias" = x; then 2895 ac_cv_host=$ac_cv_build 2896else 2897 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2898 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2899fi 2900 2901fi 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2903$as_echo "$ac_cv_host" >&6; } 2904case $ac_cv_host in 2905*-*-*) ;; 2906*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2907esac 2908host=$ac_cv_host 2909ac_save_IFS=$IFS; IFS='-' 2910set x $ac_cv_host 2911shift 2912host_cpu=$1 2913host_vendor=$2 2914shift; shift 2915# Remember, the first character of IFS is used to create $*, 2916# except with old shells: 2917host_os=$* 2918IFS=$ac_save_IFS 2919case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2920 2921 2922 2923# Checks for tools: c compiler, ranlib (used for creating static libraries), 2924# symlinks and libtool 2925ac_ext=c 2926ac_cpp='$CPP $CPPFLAGS' 2927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2929ac_compiler_gnu=$ac_cv_c_compiler_gnu 2930if test -n "$ac_tool_prefix"; then 2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2932set dummy ${ac_tool_prefix}gcc; ac_word=$2 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2934$as_echo_n "checking for $ac_word... " >&6; } 2935if ${ac_cv_prog_CC+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 if test -n "$CC"; then 2939 ac_cv_prog_CC="$CC" # Let the user override the test. 2940else 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2948 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958CC=$ac_cv_prog_CC 2959if test -n "$CC"; then 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2961$as_echo "$CC" >&6; } 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 2968fi 2969if test -z "$ac_cv_prog_CC"; then 2970 ac_ct_CC=$CC 2971 # Extract the first word of "gcc", so it can be a program name with args. 2972set dummy gcc; ac_word=$2 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2974$as_echo_n "checking for $ac_word... " >&6; } 2975if ${ac_cv_prog_ac_ct_CC+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if test -n "$ac_ct_CC"; then 2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2980else 2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2988 ac_cv_prog_ac_ct_CC="gcc" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997fi 2998ac_ct_CC=$ac_cv_prog_ac_ct_CC 2999if test -n "$ac_ct_CC"; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3001$as_echo "$ac_ct_CC" >&6; } 3002else 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004$as_echo "no" >&6; } 3005fi 3006 3007 if test "x$ac_ct_CC" = x; then 3008 CC="" 3009 else 3010 case $cross_compiling:$ac_tool_warned in 3011yes:) 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3014ac_tool_warned=yes ;; 3015esac 3016 CC=$ac_ct_CC 3017 fi 3018else 3019 CC="$ac_cv_prog_CC" 3020fi 3021 3022if test -z "$CC"; then 3023 if test -n "$ac_tool_prefix"; then 3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3025set dummy ${ac_tool_prefix}cc; ac_word=$2 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3027$as_echo_n "checking for $ac_word... " >&6; } 3028if ${ac_cv_prog_CC+:} false; then : 3029 $as_echo_n "(cached) " >&6 3030else 3031 if test -n "$CC"; then 3032 ac_cv_prog_CC="$CC" # Let the user override the test. 3033else 3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3035for as_dir in $PATH 3036do 3037 IFS=$as_save_IFS 3038 test -z "$as_dir" && as_dir=. 3039 for ac_exec_ext in '' $ac_executable_extensions; do 3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3041 ac_cv_prog_CC="${ac_tool_prefix}cc" 3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3043 break 2 3044 fi 3045done 3046 done 3047IFS=$as_save_IFS 3048 3049fi 3050fi 3051CC=$ac_cv_prog_CC 3052if test -n "$CC"; then 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3054$as_echo "$CC" >&6; } 3055else 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057$as_echo "no" >&6; } 3058fi 3059 3060 3061 fi 3062fi 3063if test -z "$CC"; then 3064 # Extract the first word of "cc", so it can be a program name with args. 3065set dummy cc; ac_word=$2 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067$as_echo_n "checking for $ac_word... " >&6; } 3068if ${ac_cv_prog_CC+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 if test -n "$CC"; then 3072 ac_cv_prog_CC="$CC" # Let the user override the test. 3073else 3074 ac_prog_rejected=no 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076for as_dir in $PATH 3077do 3078 IFS=$as_save_IFS 3079 test -z "$as_dir" && as_dir=. 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3083 ac_prog_rejected=yes 3084 continue 3085 fi 3086 ac_cv_prog_CC="cc" 3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094if test $ac_prog_rejected = yes; then 3095 # We found a bogon in the path, so make sure we never use it. 3096 set dummy $ac_cv_prog_CC 3097 shift 3098 if test $# != 0; then 3099 # We chose a different compiler from the bogus one. 3100 # However, it has the same basename, so the bogon will be chosen 3101 # first if we set CC to just the basename; use the full file name. 3102 shift 3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3104 fi 3105fi 3106fi 3107fi 3108CC=$ac_cv_prog_CC 3109if test -n "$CC"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3111$as_echo "$CC" >&6; } 3112else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114$as_echo "no" >&6; } 3115fi 3116 3117 3118fi 3119if test -z "$CC"; then 3120 if test -n "$ac_tool_prefix"; then 3121 for ac_prog in cl.exe 3122 do 3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3124set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3126$as_echo_n "checking for $ac_word... " >&6; } 3127if ${ac_cv_prog_CC+:} false; then : 3128 $as_echo_n "(cached) " >&6 3129else 3130 if test -n "$CC"; then 3131 ac_cv_prog_CC="$CC" # Let the user override the test. 3132else 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 for ac_exec_ext in '' $ac_executable_extensions; do 3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3142 break 2 3143 fi 3144done 3145 done 3146IFS=$as_save_IFS 3147 3148fi 3149fi 3150CC=$ac_cv_prog_CC 3151if test -n "$CC"; then 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3153$as_echo "$CC" >&6; } 3154else 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3156$as_echo "no" >&6; } 3157fi 3158 3159 3160 test -n "$CC" && break 3161 done 3162fi 3163if test -z "$CC"; then 3164 ac_ct_CC=$CC 3165 for ac_prog in cl.exe 3166do 3167 # Extract the first word of "$ac_prog", so it can be a program name with args. 3168set dummy $ac_prog; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if ${ac_cv_prog_ac_ct_CC+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$ac_ct_CC"; then 3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_ac_ct_CC="$ac_prog" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194ac_ct_CC=$ac_cv_prog_ac_ct_CC 3195if test -n "$ac_ct_CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3197$as_echo "$ac_ct_CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 3204 test -n "$ac_ct_CC" && break 3205done 3206 3207 if test "x$ac_ct_CC" = x; then 3208 CC="" 3209 else 3210 case $cross_compiling:$ac_tool_warned in 3211yes:) 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3214ac_tool_warned=yes ;; 3215esac 3216 CC=$ac_ct_CC 3217 fi 3218fi 3219 3220fi 3221 3222 3223test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3225as_fn_error $? "no acceptable C compiler found in \$PATH 3226See \`config.log' for more details" "$LINENO" 5; } 3227 3228# Provide some information about the compiler. 3229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3230set X $ac_compile 3231ac_compiler=$2 3232for ac_option in --version -v -V -qversion; do 3233 { { ac_try="$ac_compiler $ac_option >&5" 3234case "(($ac_try" in 3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3236 *) ac_try_echo=$ac_try;; 3237esac 3238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3239$as_echo "$ac_try_echo"; } >&5 3240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3241 ac_status=$? 3242 if test -s conftest.err; then 3243 sed '10a\ 3244... rest of stderr output deleted ... 3245 10q' conftest.err >conftest.er1 3246 cat conftest.er1 >&5 3247 fi 3248 rm -f conftest.er1 conftest.err 3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3250 test $ac_status = 0; } 3251done 3252 3253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3254/* end confdefs.h. */ 3255 3256int 3257main () 3258{ 3259 3260 ; 3261 return 0; 3262} 3263_ACEOF 3264ac_clean_files_save=$ac_clean_files 3265ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3266# Try to create an executable without -o first, disregard a.out. 3267# It will help us diagnose broken compilers, and finding out an intuition 3268# of exeext. 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3270$as_echo_n "checking whether the C compiler works... " >&6; } 3271ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3272 3273# The possible output files: 3274ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3275 3276ac_rmfiles= 3277for ac_file in $ac_files 3278do 3279 case $ac_file in 3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3281 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3282 esac 3283done 3284rm -f $ac_rmfiles 3285 3286if { { ac_try="$ac_link_default" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292$as_echo "$ac_try_echo"; } >&5 3293 (eval "$ac_link_default") 2>&5 3294 ac_status=$? 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; then : 3297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3298# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3299# in a Makefile. We should not override ac_cv_exeext if it was cached, 3300# so that the user can short-circuit this test for compilers unknown to 3301# Autoconf. 3302for ac_file in $ac_files '' 3303do 3304 test -f "$ac_file" || continue 3305 case $ac_file in 3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3307 ;; 3308 [ab].out ) 3309 # We found the default executable, but exeext='' is most 3310 # certainly right. 3311 break;; 3312 *.* ) 3313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3314 then :; else 3315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3316 fi 3317 # We set ac_cv_exeext here because the later test for it is not 3318 # safe: cross compilers may not add the suffix if given an `-o' 3319 # argument, so we may need to know it at that point already. 3320 # Even if this section looks crufty: it has the advantage of 3321 # actually working. 3322 break;; 3323 * ) 3324 break;; 3325 esac 3326done 3327test "$ac_cv_exeext" = no && ac_cv_exeext= 3328 3329else 3330 ac_file='' 3331fi 3332if test -z "$ac_file"; then : 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3334$as_echo "no" >&6; } 3335$as_echo "$as_me: failed program was:" >&5 3336sed 's/^/| /' conftest.$ac_ext >&5 3337 3338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3340as_fn_error 77 "C compiler cannot create executables 3341See \`config.log' for more details" "$LINENO" 5; } 3342else 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3344$as_echo "yes" >&6; } 3345fi 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3347$as_echo_n "checking for C compiler default output file name... " >&6; } 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3349$as_echo "$ac_file" >&6; } 3350ac_exeext=$ac_cv_exeext 3351 3352rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3353ac_clean_files=$ac_clean_files_save 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3355$as_echo_n "checking for suffix of executables... " >&6; } 3356if { { ac_try="$ac_link" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362$as_echo "$ac_try_echo"; } >&5 3363 (eval "$ac_link") 2>&5 3364 ac_status=$? 3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366 test $ac_status = 0; }; then : 3367 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3368# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3369# work properly (i.e., refer to `conftest.exe'), while it won't with 3370# `rm'. 3371for ac_file in conftest.exe conftest conftest.*; do 3372 test -f "$ac_file" || continue 3373 case $ac_file in 3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3376 break;; 3377 * ) break;; 3378 esac 3379done 3380else 3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3383as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3384See \`config.log' for more details" "$LINENO" 5; } 3385fi 3386rm -f conftest conftest$ac_cv_exeext 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3388$as_echo "$ac_cv_exeext" >&6; } 3389 3390rm -f conftest.$ac_ext 3391EXEEXT=$ac_cv_exeext 3392ac_exeext=$EXEEXT 3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394/* end confdefs.h. */ 3395#include <stdio.h> 3396int 3397main () 3398{ 3399FILE *f = fopen ("conftest.out", "w"); 3400 return ferror (f) || fclose (f) != 0; 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406ac_clean_files="$ac_clean_files conftest.out" 3407# Check that the compiler produces executables we can run. If not, either 3408# the compiler is broken, or we cross compile. 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3410$as_echo_n "checking whether we are cross compiling... " >&6; } 3411if test "$cross_compiling" != yes; then 3412 { { ac_try="$ac_link" 3413case "(($ac_try" in 3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3415 *) ac_try_echo=$ac_try;; 3416esac 3417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3418$as_echo "$ac_try_echo"; } >&5 3419 (eval "$ac_link") 2>&5 3420 ac_status=$? 3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3422 test $ac_status = 0; } 3423 if { ac_try='./conftest$ac_cv_exeext' 3424 { { case "(($ac_try" in 3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3426 *) ac_try_echo=$ac_try;; 3427esac 3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3429$as_echo "$ac_try_echo"; } >&5 3430 (eval "$ac_try") 2>&5 3431 ac_status=$? 3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3433 test $ac_status = 0; }; }; then 3434 cross_compiling=no 3435 else 3436 if test "$cross_compiling" = maybe; then 3437 cross_compiling=yes 3438 else 3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3441as_fn_error $? "cannot run C compiled programs. 3442If you meant to cross compile, use \`--host'. 3443See \`config.log' for more details" "$LINENO" 5; } 3444 fi 3445 fi 3446fi 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3448$as_echo "$cross_compiling" >&6; } 3449 3450rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3451ac_clean_files=$ac_clean_files_save 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3453$as_echo_n "checking for suffix of object files... " >&6; } 3454if ${ac_cv_objext+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459 3460int 3461main () 3462{ 3463 3464 ; 3465 return 0; 3466} 3467_ACEOF 3468rm -f conftest.o conftest.obj 3469if { { ac_try="$ac_compile" 3470case "(($ac_try" in 3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3472 *) ac_try_echo=$ac_try;; 3473esac 3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3475$as_echo "$ac_try_echo"; } >&5 3476 (eval "$ac_compile") 2>&5 3477 ac_status=$? 3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3479 test $ac_status = 0; }; then : 3480 for ac_file in conftest.o conftest.obj conftest.*; do 3481 test -f "$ac_file" || continue; 3482 case $ac_file in 3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3485 break;; 3486 esac 3487done 3488else 3489 $as_echo "$as_me: failed program was:" >&5 3490sed 's/^/| /' conftest.$ac_ext >&5 3491 3492{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3494as_fn_error $? "cannot compute suffix of object files: cannot compile 3495See \`config.log' for more details" "$LINENO" 5; } 3496fi 3497rm -f conftest.$ac_cv_objext conftest.$ac_ext 3498fi 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3500$as_echo "$ac_cv_objext" >&6; } 3501OBJEXT=$ac_cv_objext 3502ac_objext=$OBJEXT 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3504$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3505if ${ac_cv_c_compiler_gnu+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510 3511int 3512main () 3513{ 3514#ifndef __GNUC__ 3515 choke me 3516#endif 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522if ac_fn_c_try_compile "$LINENO"; then : 3523 ac_compiler_gnu=yes 3524else 3525 ac_compiler_gnu=no 3526fi 3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3528ac_cv_c_compiler_gnu=$ac_compiler_gnu 3529 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3532$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3533if test $ac_compiler_gnu = yes; then 3534 GCC=yes 3535else 3536 GCC= 3537fi 3538ac_test_CFLAGS=${CFLAGS+set} 3539ac_save_CFLAGS=$CFLAGS 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3541$as_echo_n "checking whether $CC accepts -g... " >&6; } 3542if ${ac_cv_prog_cc_g+:} false; then : 3543 $as_echo_n "(cached) " >&6 3544else 3545 ac_save_c_werror_flag=$ac_c_werror_flag 3546 ac_c_werror_flag=yes 3547 ac_cv_prog_cc_g=no 3548 CFLAGS="-g" 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551 3552int 3553main () 3554{ 3555 3556 ; 3557 return 0; 3558} 3559_ACEOF 3560if ac_fn_c_try_compile "$LINENO"; then : 3561 ac_cv_prog_cc_g=yes 3562else 3563 CFLAGS="" 3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3565/* end confdefs.h. */ 3566 3567int 3568main () 3569{ 3570 3571 ; 3572 return 0; 3573} 3574_ACEOF 3575if ac_fn_c_try_compile "$LINENO"; then : 3576 3577else 3578 ac_c_werror_flag=$ac_save_c_werror_flag 3579 CFLAGS="-g" 3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3581/* end confdefs.h. */ 3582 3583int 3584main () 3585{ 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591if ac_fn_c_try_compile "$LINENO"; then : 3592 ac_cv_prog_cc_g=yes 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595fi 3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3599 ac_c_werror_flag=$ac_save_c_werror_flag 3600fi 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3602$as_echo "$ac_cv_prog_cc_g" >&6; } 3603if test "$ac_test_CFLAGS" = set; then 3604 CFLAGS=$ac_save_CFLAGS 3605elif test $ac_cv_prog_cc_g = yes; then 3606 if test "$GCC" = yes; then 3607 CFLAGS="-g -O2" 3608 else 3609 CFLAGS="-g" 3610 fi 3611else 3612 if test "$GCC" = yes; then 3613 CFLAGS="-O2" 3614 else 3615 CFLAGS= 3616 fi 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3619$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3620if ${ac_cv_prog_cc_c89+:} false; then : 3621 $as_echo_n "(cached) " >&6 3622else 3623 ac_cv_prog_cc_c89=no 3624ac_save_CC=$CC 3625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627#include <stdarg.h> 3628#include <stdio.h> 3629struct stat; 3630/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3631struct buf { int x; }; 3632FILE * (*rcsopen) (struct buf *, struct stat *, int); 3633static char *e (p, i) 3634 char **p; 3635 int i; 3636{ 3637 return p[i]; 3638} 3639static char *f (char * (*g) (char **, int), char **p, ...) 3640{ 3641 char *s; 3642 va_list v; 3643 va_start (v,p); 3644 s = g (p, va_arg (v,int)); 3645 va_end (v); 3646 return s; 3647} 3648 3649/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3650 function prototypes and stuff, but not '\xHH' hex character constants. 3651 These don't provoke an error unfortunately, instead are silently treated 3652 as 'x'. The following induces an error, until -std is added to get 3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3654 array size at least. It's necessary to write '\x00'==0 to get something 3655 that's true only with -std. */ 3656int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3657 3658/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3659 inside strings and character constants. */ 3660#define FOO(x) 'x' 3661int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3662 3663int test (int i, double x); 3664struct s1 {int (*f) (int a);}; 3665struct s2 {int (*f) (double a);}; 3666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3667int argc; 3668char **argv; 3669int 3670main () 3671{ 3672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3673 ; 3674 return 0; 3675} 3676_ACEOF 3677for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3679do 3680 CC="$ac_save_CC $ac_arg" 3681 if ac_fn_c_try_compile "$LINENO"; then : 3682 ac_cv_prog_cc_c89=$ac_arg 3683fi 3684rm -f core conftest.err conftest.$ac_objext 3685 test "x$ac_cv_prog_cc_c89" != "xno" && break 3686done 3687rm -f conftest.$ac_ext 3688CC=$ac_save_CC 3689 3690fi 3691# AC_CACHE_VAL 3692case "x$ac_cv_prog_cc_c89" in 3693 x) 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3695$as_echo "none needed" >&6; } ;; 3696 xno) 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3698$as_echo "unsupported" >&6; } ;; 3699 *) 3700 CC="$CC $ac_cv_prog_cc_c89" 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3702$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3703esac 3704if test "x$ac_cv_prog_cc_c89" != xno; then : 3705 3706fi 3707 3708ac_ext=c 3709ac_cpp='$CPP $CPPFLAGS' 3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3712ac_compiler_gnu=$ac_cv_c_compiler_gnu 3713 3714ac_ext=c 3715ac_cpp='$CPP $CPPFLAGS' 3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3718ac_compiler_gnu=$ac_cv_c_compiler_gnu 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3720$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3721if ${am_cv_prog_cc_c_o+:} false; then : 3722 $as_echo_n "(cached) " >&6 3723else 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726 3727int 3728main () 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735 # Make sure it works both with $CC and with simple cc. 3736 # Following AC_PROG_CC_C_O, we do the test twice because some 3737 # compilers refuse to overwrite an existing .o file with -o, 3738 # though they will create one. 3739 am_cv_prog_cc_c_o=yes 3740 for am_i in 1 2; do 3741 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3742 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3743 ac_status=$? 3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 (exit $ac_status); } \ 3746 && test -f conftest2.$ac_objext; then 3747 : OK 3748 else 3749 am_cv_prog_cc_c_o=no 3750 break 3751 fi 3752 done 3753 rm -f core conftest* 3754 unset am_i 3755fi 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3757$as_echo "$am_cv_prog_cc_c_o" >&6; } 3758if test "$am_cv_prog_cc_c_o" != yes; then 3759 # Losing compiler, so override with the script. 3760 # FIXME: It is wrong to rewrite CC. 3761 # But if we don't then we get into trouble of one sort or another. 3762 # A longer-term fix would be to have automake use am__CC in this case, 3763 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3764 CC="$am_aux_dir/compile $CC" 3765fi 3766ac_ext=c 3767ac_cpp='$CPP $CPPFLAGS' 3768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3770ac_compiler_gnu=$ac_cv_c_compiler_gnu 3771 3772DEPDIR="${am__leading_dot}deps" 3773 3774ac_config_commands="$ac_config_commands depfiles" 3775 3776 3777am_make=${MAKE-make} 3778cat > confinc << 'END' 3779am__doit: 3780 @echo this is the am__doit target 3781.PHONY: am__doit 3782END 3783# If we don't find an include directive, just comment out the code. 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3785$as_echo_n "checking for style of include used by $am_make... " >&6; } 3786am__include="#" 3787am__quote= 3788_am_result=none 3789# First try GNU make style include. 3790echo "include confinc" > confmf 3791# Ignore all kinds of additional output from 'make'. 3792case `$am_make -s -f confmf 2> /dev/null` in #( 3793*the\ am__doit\ target*) 3794 am__include=include 3795 am__quote= 3796 _am_result=GNU 3797 ;; 3798esac 3799# Now try BSD make style include. 3800if test "$am__include" = "#"; then 3801 echo '.include "confinc"' > confmf 3802 case `$am_make -s -f confmf 2> /dev/null` in #( 3803 *the\ am__doit\ target*) 3804 am__include=.include 3805 am__quote="\"" 3806 _am_result=BSD 3807 ;; 3808 esac 3809fi 3810 3811 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3813$as_echo "$_am_result" >&6; } 3814rm -f confinc confmf 3815 3816# Check whether --enable-dependency-tracking was given. 3817if test "${enable_dependency_tracking+set}" = set; then : 3818 enableval=$enable_dependency_tracking; 3819fi 3820 3821if test "x$enable_dependency_tracking" != xno; then 3822 am_depcomp="$ac_aux_dir/depcomp" 3823 AMDEPBACKSLASH='\' 3824 am__nodep='_no' 3825fi 3826 if test "x$enable_dependency_tracking" != xno; then 3827 AMDEP_TRUE= 3828 AMDEP_FALSE='#' 3829else 3830 AMDEP_TRUE='#' 3831 AMDEP_FALSE= 3832fi 3833 3834 3835 3836depcc="$CC" am_compiler_list= 3837 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3839$as_echo_n "checking dependency style of $depcc... " >&6; } 3840if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3844 # We make a subdir and do the tests there. Otherwise we can end up 3845 # making bogus files that we don't know about and never remove. For 3846 # instance it was reported that on HP-UX the gcc test will end up 3847 # making a dummy file named 'D' -- because '-MD' means "put the output 3848 # in D". 3849 rm -rf conftest.dir 3850 mkdir conftest.dir 3851 # Copy depcomp to subdir because otherwise we won't find it if we're 3852 # using a relative directory. 3853 cp "$am_depcomp" conftest.dir 3854 cd conftest.dir 3855 # We will build objects and dependencies in a subdirectory because 3856 # it helps to detect inapplicable dependency modes. For instance 3857 # both Tru64's cc and ICC support -MD to output dependencies as a 3858 # side effect of compilation, but ICC will put the dependencies in 3859 # the current directory while Tru64 will put them in the object 3860 # directory. 3861 mkdir sub 3862 3863 am_cv_CC_dependencies_compiler_type=none 3864 if test "$am_compiler_list" = ""; then 3865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3866 fi 3867 am__universal=false 3868 case " $depcc " in #( 3869 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3870 esac 3871 3872 for depmode in $am_compiler_list; do 3873 # Setup a source with many dependencies, because some compilers 3874 # like to wrap large dependency lists on column 80 (with \), and 3875 # we should not choose a depcomp mode which is confused by this. 3876 # 3877 # We need to recreate these files for each test, as the compiler may 3878 # overwrite some of them when testing with obscure command lines. 3879 # This happens at least with the AIX C compiler. 3880 : > sub/conftest.c 3881 for i in 1 2 3 4 5 6; do 3882 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3883 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3884 # Solaris 10 /bin/sh. 3885 echo '/* dummy */' > sub/conftst$i.h 3886 done 3887 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3888 3889 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3890 # mode. It turns out that the SunPro C++ compiler does not properly 3891 # handle '-M -o', and we need to detect this. Also, some Intel 3892 # versions had trouble with output in subdirs. 3893 am__obj=sub/conftest.${OBJEXT-o} 3894 am__minus_obj="-o $am__obj" 3895 case $depmode in 3896 gcc) 3897 # This depmode causes a compiler race in universal mode. 3898 test "$am__universal" = false || continue 3899 ;; 3900 nosideeffect) 3901 # After this tag, mechanisms are not by side-effect, so they'll 3902 # only be used when explicitly requested. 3903 if test "x$enable_dependency_tracking" = xyes; then 3904 continue 3905 else 3906 break 3907 fi 3908 ;; 3909 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3910 # This compiler won't grok '-c -o', but also, the minuso test has 3911 # not run yet. These depmodes are late enough in the game, and 3912 # so weak that their functioning should not be impacted. 3913 am__obj=conftest.${OBJEXT-o} 3914 am__minus_obj= 3915 ;; 3916 none) break ;; 3917 esac 3918 if depmode=$depmode \ 3919 source=sub/conftest.c object=$am__obj \ 3920 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3921 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3922 >/dev/null 2>conftest.err && 3923 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3924 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3925 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3926 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3927 # icc doesn't choke on unknown options, it will just issue warnings 3928 # or remarks (even with -Werror). So we grep stderr for any message 3929 # that says an option was ignored or not supported. 3930 # When given -MP, icc 7.0 and 7.1 complain thusly: 3931 # icc: Command line warning: ignoring option '-M'; no argument required 3932 # The diagnosis changed in icc 8.0: 3933 # icc: Command line remark: option '-MP' not supported 3934 if (grep 'ignoring option' conftest.err || 3935 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3936 am_cv_CC_dependencies_compiler_type=$depmode 3937 break 3938 fi 3939 fi 3940 done 3941 3942 cd .. 3943 rm -rf conftest.dir 3944else 3945 am_cv_CC_dependencies_compiler_type=none 3946fi 3947 3948fi 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3950$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3951CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3952 3953 if 3954 test "x$enable_dependency_tracking" != xno \ 3955 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3956 am__fastdepCC_TRUE= 3957 am__fastdepCC_FALSE='#' 3958else 3959 am__fastdepCC_TRUE='#' 3960 am__fastdepCC_FALSE= 3961fi 3962 3963 3964if test -n "$ac_tool_prefix"; then 3965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3966set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3968$as_echo_n "checking for $ac_word... " >&6; } 3969if ${ac_cv_prog_RANLIB+:} false; then : 3970 $as_echo_n "(cached) " >&6 3971else 3972 if test -n "$RANLIB"; then 3973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3974else 3975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976for as_dir in $PATH 3977do 3978 IFS=$as_save_IFS 3979 test -z "$as_dir" && as_dir=. 3980 for ac_exec_ext in '' $ac_executable_extensions; do 3981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3984 break 2 3985 fi 3986done 3987 done 3988IFS=$as_save_IFS 3989 3990fi 3991fi 3992RANLIB=$ac_cv_prog_RANLIB 3993if test -n "$RANLIB"; then 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3995$as_echo "$RANLIB" >&6; } 3996else 3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3998$as_echo "no" >&6; } 3999fi 4000 4001 4002fi 4003if test -z "$ac_cv_prog_RANLIB"; then 4004 ac_ct_RANLIB=$RANLIB 4005 # Extract the first word of "ranlib", so it can be a program name with args. 4006set dummy ranlib; ac_word=$2 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008$as_echo_n "checking for $ac_word... " >&6; } 4009if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 if test -n "$ac_ct_RANLIB"; then 4013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4014else 4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_exec_ext in '' $ac_executable_extensions; do 4021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4022 ac_cv_prog_ac_ct_RANLIB="ranlib" 4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4024 break 2 4025 fi 4026done 4027 done 4028IFS=$as_save_IFS 4029 4030fi 4031fi 4032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4033if test -n "$ac_ct_RANLIB"; then 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4035$as_echo "$ac_ct_RANLIB" >&6; } 4036else 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4038$as_echo "no" >&6; } 4039fi 4040 4041 if test "x$ac_ct_RANLIB" = x; then 4042 RANLIB=":" 4043 else 4044 case $cross_compiling:$ac_tool_warned in 4045yes:) 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4048ac_tool_warned=yes ;; 4049esac 4050 RANLIB=$ac_ct_RANLIB 4051 fi 4052else 4053 RANLIB="$ac_cv_prog_RANLIB" 4054fi 4055 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4057$as_echo_n "checking whether ln -s works... " >&6; } 4058LN_S=$as_ln_s 4059if test "$LN_S" = "ln -s"; then 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4061$as_echo "yes" >&6; } 4062else 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4064$as_echo "no, using $LN_S" >&6; } 4065fi 4066 4067case `pwd` in 4068 *\ * | *\ *) 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4070$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4071esac 4072 4073 4074 4075macro_version='2.4.2' 4076macro_revision='1.3337' 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090ltmain="$ac_aux_dir/ltmain.sh" 4091 4092# Backslashify metacharacters that are still active within 4093# double-quoted strings. 4094sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4095 4096# Same as above, but do not quote variable references. 4097double_quote_subst='s/\(["`\\]\)/\\\1/g' 4098 4099# Sed substitution to delay expansion of an escaped shell variable in a 4100# double_quote_subst'ed string. 4101delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4102 4103# Sed substitution to delay expansion of an escaped single quote. 4104delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4105 4106# Sed substitution to avoid accidental globbing in evaled expressions 4107no_glob_subst='s/\*/\\\*/g' 4108 4109ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4110ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4111ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4112 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4114$as_echo_n "checking how to print strings... " >&6; } 4115# Test print first, because it will be a builtin if present. 4116if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4117 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4118 ECHO='print -r --' 4119elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4120 ECHO='printf %s\n' 4121else 4122 # Use this function as a fallback that always works. 4123 func_fallback_echo () 4124 { 4125 eval 'cat <<_LTECHO_EOF 4126$1 4127_LTECHO_EOF' 4128 } 4129 ECHO='func_fallback_echo' 4130fi 4131 4132# func_echo_all arg... 4133# Invoke $ECHO with all args, space-separated. 4134func_echo_all () 4135{ 4136 $ECHO "" 4137} 4138 4139case "$ECHO" in 4140 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4141$as_echo "printf" >&6; } ;; 4142 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4143$as_echo "print -r" >&6; } ;; 4144 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4145$as_echo "cat" >&6; } ;; 4146esac 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4162$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4163if ${ac_cv_path_SED+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4167 for ac_i in 1 2 3 4 5 6 7; do 4168 ac_script="$ac_script$as_nl$ac_script" 4169 done 4170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4171 { ac_script=; unset ac_script;} 4172 if test -z "$SED"; then 4173 ac_path_SED_found=false 4174 # Loop through the user's path and test for each of PROGNAME-LIST 4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176for as_dir in $PATH 4177do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_prog in sed gsed; do 4181 for ac_exec_ext in '' $ac_executable_extensions; do 4182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4183 as_fn_executable_p "$ac_path_SED" || continue 4184# Check for GNU ac_path_SED and select it if it is found. 4185 # Check for GNU $ac_path_SED 4186case `"$ac_path_SED" --version 2>&1` in 4187*GNU*) 4188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4189*) 4190 ac_count=0 4191 $as_echo_n 0123456789 >"conftest.in" 4192 while : 4193 do 4194 cat "conftest.in" "conftest.in" >"conftest.tmp" 4195 mv "conftest.tmp" "conftest.in" 4196 cp "conftest.in" "conftest.nl" 4197 $as_echo '' >> "conftest.nl" 4198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4200 as_fn_arith $ac_count + 1 && ac_count=$as_val 4201 if test $ac_count -gt ${ac_path_SED_max-0}; then 4202 # Best one so far, save it but keep looking for a better one 4203 ac_cv_path_SED="$ac_path_SED" 4204 ac_path_SED_max=$ac_count 4205 fi 4206 # 10*(2^10) chars as input seems more than enough 4207 test $ac_count -gt 10 && break 4208 done 4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4210esac 4211 4212 $ac_path_SED_found && break 3 4213 done 4214 done 4215 done 4216IFS=$as_save_IFS 4217 if test -z "$ac_cv_path_SED"; then 4218 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4219 fi 4220else 4221 ac_cv_path_SED=$SED 4222fi 4223 4224fi 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4226$as_echo "$ac_cv_path_SED" >&6; } 4227 SED="$ac_cv_path_SED" 4228 rm -f conftest.sed 4229 4230test -z "$SED" && SED=sed 4231Xsed="$SED -e 1s/^X//" 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4244$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4245if ${ac_cv_path_GREP+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 if test -z "$GREP"; then 4249 ac_path_GREP_found=false 4250 # Loop through the user's path and test for each of PROGNAME-LIST 4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4253do 4254 IFS=$as_save_IFS 4255 test -z "$as_dir" && as_dir=. 4256 for ac_prog in grep ggrep; do 4257 for ac_exec_ext in '' $ac_executable_extensions; do 4258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4259 as_fn_executable_p "$ac_path_GREP" || continue 4260# Check for GNU ac_path_GREP and select it if it is found. 4261 # Check for GNU $ac_path_GREP 4262case `"$ac_path_GREP" --version 2>&1` in 4263*GNU*) 4264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4265*) 4266 ac_count=0 4267 $as_echo_n 0123456789 >"conftest.in" 4268 while : 4269 do 4270 cat "conftest.in" "conftest.in" >"conftest.tmp" 4271 mv "conftest.tmp" "conftest.in" 4272 cp "conftest.in" "conftest.nl" 4273 $as_echo 'GREP' >> "conftest.nl" 4274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4276 as_fn_arith $ac_count + 1 && ac_count=$as_val 4277 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4278 # Best one so far, save it but keep looking for a better one 4279 ac_cv_path_GREP="$ac_path_GREP" 4280 ac_path_GREP_max=$ac_count 4281 fi 4282 # 10*(2^10) chars as input seems more than enough 4283 test $ac_count -gt 10 && break 4284 done 4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4286esac 4287 4288 $ac_path_GREP_found && break 3 4289 done 4290 done 4291 done 4292IFS=$as_save_IFS 4293 if test -z "$ac_cv_path_GREP"; then 4294 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4295 fi 4296else 4297 ac_cv_path_GREP=$GREP 4298fi 4299 4300fi 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4302$as_echo "$ac_cv_path_GREP" >&6; } 4303 GREP="$ac_cv_path_GREP" 4304 4305 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4307$as_echo_n "checking for egrep... " >&6; } 4308if ${ac_cv_path_EGREP+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4312 then ac_cv_path_EGREP="$GREP -E" 4313 else 4314 if test -z "$EGREP"; then 4315 ac_path_EGREP_found=false 4316 # Loop through the user's path and test for each of PROGNAME-LIST 4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4319do 4320 IFS=$as_save_IFS 4321 test -z "$as_dir" && as_dir=. 4322 for ac_prog in egrep; do 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4325 as_fn_executable_p "$ac_path_EGREP" || continue 4326# Check for GNU ac_path_EGREP and select it if it is found. 4327 # Check for GNU $ac_path_EGREP 4328case `"$ac_path_EGREP" --version 2>&1` in 4329*GNU*) 4330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4331*) 4332 ac_count=0 4333 $as_echo_n 0123456789 >"conftest.in" 4334 while : 4335 do 4336 cat "conftest.in" "conftest.in" >"conftest.tmp" 4337 mv "conftest.tmp" "conftest.in" 4338 cp "conftest.in" "conftest.nl" 4339 $as_echo 'EGREP' >> "conftest.nl" 4340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4342 as_fn_arith $ac_count + 1 && ac_count=$as_val 4343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4344 # Best one so far, save it but keep looking for a better one 4345 ac_cv_path_EGREP="$ac_path_EGREP" 4346 ac_path_EGREP_max=$ac_count 4347 fi 4348 # 10*(2^10) chars as input seems more than enough 4349 test $ac_count -gt 10 && break 4350 done 4351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4352esac 4353 4354 $ac_path_EGREP_found && break 3 4355 done 4356 done 4357 done 4358IFS=$as_save_IFS 4359 if test -z "$ac_cv_path_EGREP"; then 4360 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4361 fi 4362else 4363 ac_cv_path_EGREP=$EGREP 4364fi 4365 4366 fi 4367fi 4368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4369$as_echo "$ac_cv_path_EGREP" >&6; } 4370 EGREP="$ac_cv_path_EGREP" 4371 4372 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4374$as_echo_n "checking for fgrep... " >&6; } 4375if ${ac_cv_path_FGREP+:} false; then : 4376 $as_echo_n "(cached) " >&6 4377else 4378 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4379 then ac_cv_path_FGREP="$GREP -F" 4380 else 4381 if test -z "$FGREP"; then 4382 ac_path_FGREP_found=false 4383 # Loop through the user's path and test for each of PROGNAME-LIST 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_prog in fgrep; do 4390 for ac_exec_ext in '' $ac_executable_extensions; do 4391 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4392 as_fn_executable_p "$ac_path_FGREP" || continue 4393# Check for GNU ac_path_FGREP and select it if it is found. 4394 # Check for GNU $ac_path_FGREP 4395case `"$ac_path_FGREP" --version 2>&1` in 4396*GNU*) 4397 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4398*) 4399 ac_count=0 4400 $as_echo_n 0123456789 >"conftest.in" 4401 while : 4402 do 4403 cat "conftest.in" "conftest.in" >"conftest.tmp" 4404 mv "conftest.tmp" "conftest.in" 4405 cp "conftest.in" "conftest.nl" 4406 $as_echo 'FGREP' >> "conftest.nl" 4407 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4409 as_fn_arith $ac_count + 1 && ac_count=$as_val 4410 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4411 # Best one so far, save it but keep looking for a better one 4412 ac_cv_path_FGREP="$ac_path_FGREP" 4413 ac_path_FGREP_max=$ac_count 4414 fi 4415 # 10*(2^10) chars as input seems more than enough 4416 test $ac_count -gt 10 && break 4417 done 4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4419esac 4420 4421 $ac_path_FGREP_found && break 3 4422 done 4423 done 4424 done 4425IFS=$as_save_IFS 4426 if test -z "$ac_cv_path_FGREP"; then 4427 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4428 fi 4429else 4430 ac_cv_path_FGREP=$FGREP 4431fi 4432 4433 fi 4434fi 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4436$as_echo "$ac_cv_path_FGREP" >&6; } 4437 FGREP="$ac_cv_path_FGREP" 4438 4439 4440test -z "$GREP" && GREP=grep 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460# Check whether --with-gnu-ld was given. 4461if test "${with_gnu_ld+set}" = set; then : 4462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4463else 4464 with_gnu_ld=no 4465fi 4466 4467ac_prog=ld 4468if test "$GCC" = yes; then 4469 # Check if gcc -print-prog-name=ld gives a path. 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4471$as_echo_n "checking for ld used by $CC... " >&6; } 4472 case $host in 4473 *-*-mingw*) 4474 # gcc leaves a trailing carriage return which upsets mingw 4475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4476 *) 4477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4478 esac 4479 case $ac_prog in 4480 # Accept absolute paths. 4481 [\\/]* | ?:[\\/]*) 4482 re_direlt='/[^/][^/]*/\.\./' 4483 # Canonicalize the pathname of ld 4484 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4485 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4486 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4487 done 4488 test -z "$LD" && LD="$ac_prog" 4489 ;; 4490 "") 4491 # If it fails, then pretend we aren't using GCC. 4492 ac_prog=ld 4493 ;; 4494 *) 4495 # If it is relative, then search for the first ld in PATH. 4496 with_gnu_ld=unknown 4497 ;; 4498 esac 4499elif test "$with_gnu_ld" = yes; then 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4501$as_echo_n "checking for GNU ld... " >&6; } 4502else 4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4504$as_echo_n "checking for non-GNU ld... " >&6; } 4505fi 4506if ${lt_cv_path_LD+:} false; then : 4507 $as_echo_n "(cached) " >&6 4508else 4509 if test -z "$LD"; then 4510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4511 for ac_dir in $PATH; do 4512 IFS="$lt_save_ifs" 4513 test -z "$ac_dir" && ac_dir=. 4514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4515 lt_cv_path_LD="$ac_dir/$ac_prog" 4516 # Check to see if the program is GNU ld. I'd rather use --version, 4517 # but apparently some variants of GNU ld only accept -v. 4518 # Break only if it was the GNU/non-GNU ld that we prefer. 4519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4520 *GNU* | *'with BFD'*) 4521 test "$with_gnu_ld" != no && break 4522 ;; 4523 *) 4524 test "$with_gnu_ld" != yes && break 4525 ;; 4526 esac 4527 fi 4528 done 4529 IFS="$lt_save_ifs" 4530else 4531 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4532fi 4533fi 4534 4535LD="$lt_cv_path_LD" 4536if test -n "$LD"; then 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4538$as_echo "$LD" >&6; } 4539else 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541$as_echo "no" >&6; } 4542fi 4543test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4545$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4546if ${lt_cv_prog_gnu_ld+:} false; then : 4547 $as_echo_n "(cached) " >&6 4548else 4549 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4550case `$LD -v 2>&1 </dev/null` in 4551*GNU* | *'with BFD'*) 4552 lt_cv_prog_gnu_ld=yes 4553 ;; 4554*) 4555 lt_cv_prog_gnu_ld=no 4556 ;; 4557esac 4558fi 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4560$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4561with_gnu_ld=$lt_cv_prog_gnu_ld 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4572$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4573if ${lt_cv_path_NM+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575else 4576 if test -n "$NM"; then 4577 # Let the user override the test. 4578 lt_cv_path_NM="$NM" 4579else 4580 lt_nm_to_check="${ac_tool_prefix}nm" 4581 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4582 lt_nm_to_check="$lt_nm_to_check nm" 4583 fi 4584 for lt_tmp_nm in $lt_nm_to_check; do 4585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4586 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4587 IFS="$lt_save_ifs" 4588 test -z "$ac_dir" && ac_dir=. 4589 tmp_nm="$ac_dir/$lt_tmp_nm" 4590 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4591 # Check to see if the nm accepts a BSD-compat flag. 4592 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4593 # nm: unknown option "B" ignored 4594 # Tru64's nm complains that /dev/null is an invalid object file 4595 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4596 */dev/null* | *'Invalid file or object type'*) 4597 lt_cv_path_NM="$tmp_nm -B" 4598 break 4599 ;; 4600 *) 4601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4602 */dev/null*) 4603 lt_cv_path_NM="$tmp_nm -p" 4604 break 4605 ;; 4606 *) 4607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4608 continue # so that we can try to find one that supports BSD flags 4609 ;; 4610 esac 4611 ;; 4612 esac 4613 fi 4614 done 4615 IFS="$lt_save_ifs" 4616 done 4617 : ${lt_cv_path_NM=no} 4618fi 4619fi 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4621$as_echo "$lt_cv_path_NM" >&6; } 4622if test "$lt_cv_path_NM" != "no"; then 4623 NM="$lt_cv_path_NM" 4624else 4625 # Didn't find any BSD compatible name lister, look for dumpbin. 4626 if test -n "$DUMPBIN"; then : 4627 # Let the user override the test. 4628 else 4629 if test -n "$ac_tool_prefix"; then 4630 for ac_prog in dumpbin "link -dump" 4631 do 4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4633set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4635$as_echo_n "checking for $ac_word... " >&6; } 4636if ${ac_cv_prog_DUMPBIN+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -n "$DUMPBIN"; then 4640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4641else 4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654 done 4655IFS=$as_save_IFS 4656 4657fi 4658fi 4659DUMPBIN=$ac_cv_prog_DUMPBIN 4660if test -n "$DUMPBIN"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4662$as_echo "$DUMPBIN" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4665$as_echo "no" >&6; } 4666fi 4667 4668 4669 test -n "$DUMPBIN" && break 4670 done 4671fi 4672if test -z "$DUMPBIN"; then 4673 ac_ct_DUMPBIN=$DUMPBIN 4674 for ac_prog in dumpbin "link -dump" 4675do 4676 # Extract the first word of "$ac_prog", so it can be a program name with args. 4677set dummy $ac_prog; ac_word=$2 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4679$as_echo_n "checking for $ac_word... " >&6; } 4680if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4681 $as_echo_n "(cached) " >&6 4682else 4683 if test -n "$ac_ct_DUMPBIN"; then 4684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4685else 4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4687for as_dir in $PATH 4688do 4689 IFS=$as_save_IFS 4690 test -z "$as_dir" && as_dir=. 4691 for ac_exec_ext in '' $ac_executable_extensions; do 4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4693 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4695 break 2 4696 fi 4697done 4698 done 4699IFS=$as_save_IFS 4700 4701fi 4702fi 4703ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4704if test -n "$ac_ct_DUMPBIN"; then 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4706$as_echo "$ac_ct_DUMPBIN" >&6; } 4707else 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4709$as_echo "no" >&6; } 4710fi 4711 4712 4713 test -n "$ac_ct_DUMPBIN" && break 4714done 4715 4716 if test "x$ac_ct_DUMPBIN" = x; then 4717 DUMPBIN=":" 4718 else 4719 case $cross_compiling:$ac_tool_warned in 4720yes:) 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4723ac_tool_warned=yes ;; 4724esac 4725 DUMPBIN=$ac_ct_DUMPBIN 4726 fi 4727fi 4728 4729 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4730 *COFF*) 4731 DUMPBIN="$DUMPBIN -symbols" 4732 ;; 4733 *) 4734 DUMPBIN=: 4735 ;; 4736 esac 4737 fi 4738 4739 if test "$DUMPBIN" != ":"; then 4740 NM="$DUMPBIN" 4741 fi 4742fi 4743test -z "$NM" && NM=nm 4744 4745 4746 4747 4748 4749 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4751$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4752if ${lt_cv_nm_interface+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 lt_cv_nm_interface="BSD nm" 4756 echo "int some_variable = 0;" > conftest.$ac_ext 4757 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4758 (eval "$ac_compile" 2>conftest.err) 4759 cat conftest.err >&5 4760 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4761 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4762 cat conftest.err >&5 4763 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4764 cat conftest.out >&5 4765 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4766 lt_cv_nm_interface="MS dumpbin" 4767 fi 4768 rm -f conftest* 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4771$as_echo "$lt_cv_nm_interface" >&6; } 4772 4773# find the maximum length of command line arguments 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4775$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4776if ${lt_cv_sys_max_cmd_len+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 i=0 4780 teststring="ABCD" 4781 4782 case $build_os in 4783 msdosdjgpp*) 4784 # On DJGPP, this test can blow up pretty badly due to problems in libc 4785 # (any single argument exceeding 2000 bytes causes a buffer overrun 4786 # during glob expansion). Even if it were fixed, the result of this 4787 # check would be larger than it should be. 4788 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4789 ;; 4790 4791 gnu*) 4792 # Under GNU Hurd, this test is not required because there is 4793 # no limit to the length of command line arguments. 4794 # Libtool will interpret -1 as no limit whatsoever 4795 lt_cv_sys_max_cmd_len=-1; 4796 ;; 4797 4798 cygwin* | mingw* | cegcc*) 4799 # On Win9x/ME, this test blows up -- it succeeds, but takes 4800 # about 5 minutes as the teststring grows exponentially. 4801 # Worse, since 9x/ME are not pre-emptively multitasking, 4802 # you end up with a "frozen" computer, even though with patience 4803 # the test eventually succeeds (with a max line length of 256k). 4804 # Instead, let's just punt: use the minimum linelength reported by 4805 # all of the supported platforms: 8192 (on NT/2K/XP). 4806 lt_cv_sys_max_cmd_len=8192; 4807 ;; 4808 4809 mint*) 4810 # On MiNT this can take a long time and run out of memory. 4811 lt_cv_sys_max_cmd_len=8192; 4812 ;; 4813 4814 amigaos*) 4815 # On AmigaOS with pdksh, this test takes hours, literally. 4816 # So we just punt and use a minimum line length of 8192. 4817 lt_cv_sys_max_cmd_len=8192; 4818 ;; 4819 4820 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4821 # This has been around since 386BSD, at least. Likely further. 4822 if test -x /sbin/sysctl; then 4823 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4824 elif test -x /usr/sbin/sysctl; then 4825 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4826 else 4827 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4828 fi 4829 # And add a safety zone 4830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4832 ;; 4833 4834 interix*) 4835 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4836 lt_cv_sys_max_cmd_len=196608 4837 ;; 4838 4839 os2*) 4840 # The test takes a long time on OS/2. 4841 lt_cv_sys_max_cmd_len=8192 4842 ;; 4843 4844 osf*) 4845 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4846 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4847 # nice to cause kernel panics so lets avoid the loop below. 4848 # First set a reasonable default. 4849 lt_cv_sys_max_cmd_len=16384 4850 # 4851 if test -x /sbin/sysconfig; then 4852 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4853 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4854 esac 4855 fi 4856 ;; 4857 sco3.2v5*) 4858 lt_cv_sys_max_cmd_len=102400 4859 ;; 4860 sysv5* | sco5v6* | sysv4.2uw2*) 4861 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4862 if test -n "$kargmax"; then 4863 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4864 else 4865 lt_cv_sys_max_cmd_len=32768 4866 fi 4867 ;; 4868 *) 4869 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4870 if test -n "$lt_cv_sys_max_cmd_len"; then 4871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4873 else 4874 # Make teststring a little bigger before we do anything with it. 4875 # a 1K string should be a reasonable start. 4876 for i in 1 2 3 4 5 6 7 8 ; do 4877 teststring=$teststring$teststring 4878 done 4879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4880 # If test is not a shell built-in, we'll probably end up computing a 4881 # maximum length that is only half of the actual maximum length, but 4882 # we can't tell. 4883 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4884 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4885 test $i != 17 # 1/2 MB should be enough 4886 do 4887 i=`expr $i + 1` 4888 teststring=$teststring$teststring 4889 done 4890 # Only check the string length outside the loop. 4891 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4892 teststring= 4893 # Add a significant safety factor because C++ compilers can tack on 4894 # massive amounts of additional arguments before passing them to the 4895 # linker. It appears as though 1/2 is a usable value. 4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4897 fi 4898 ;; 4899 esac 4900 4901fi 4902 4903if test -n $lt_cv_sys_max_cmd_len ; then 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4905$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4906else 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4908$as_echo "none" >&6; } 4909fi 4910max_cmd_len=$lt_cv_sys_max_cmd_len 4911 4912 4913 4914 4915 4916 4917: ${CP="cp -f"} 4918: ${MV="mv -f"} 4919: ${RM="rm -f"} 4920 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4922$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4923# Try some XSI features 4924xsi_shell=no 4925( _lt_dummy="a/b/c" 4926 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4927 = c,a/b,b/c, \ 4928 && eval 'test $(( 1 + 1 )) -eq 2 \ 4929 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4930 && xsi_shell=yes 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4932$as_echo "$xsi_shell" >&6; } 4933 4934 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4936$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4937lt_shell_append=no 4938( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4939 >/dev/null 2>&1 \ 4940 && lt_shell_append=yes 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4942$as_echo "$lt_shell_append" >&6; } 4943 4944 4945if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4946 lt_unset=unset 4947else 4948 lt_unset=false 4949fi 4950 4951 4952 4953 4954 4955# test EBCDIC or ASCII 4956case `echo X|tr X '\101'` in 4957 A) # ASCII based system 4958 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4959 lt_SP2NL='tr \040 \012' 4960 lt_NL2SP='tr \015\012 \040\040' 4961 ;; 4962 *) # EBCDIC based system 4963 lt_SP2NL='tr \100 \n' 4964 lt_NL2SP='tr \r\n \100\100' 4965 ;; 4966esac 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4977$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4978if ${lt_cv_to_host_file_cmd+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 case $host in 4982 *-*-mingw* ) 4983 case $build in 4984 *-*-mingw* ) # actually msys 4985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4986 ;; 4987 *-*-cygwin* ) 4988 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4989 ;; 4990 * ) # otherwise, assume *nix 4991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4992 ;; 4993 esac 4994 ;; 4995 *-*-cygwin* ) 4996 case $build in 4997 *-*-mingw* ) # actually msys 4998 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4999 ;; 5000 *-*-cygwin* ) 5001 lt_cv_to_host_file_cmd=func_convert_file_noop 5002 ;; 5003 * ) # otherwise, assume *nix 5004 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5005 ;; 5006 esac 5007 ;; 5008 * ) # unhandled hosts (and "normal" native builds) 5009 lt_cv_to_host_file_cmd=func_convert_file_noop 5010 ;; 5011esac 5012 5013fi 5014 5015to_host_file_cmd=$lt_cv_to_host_file_cmd 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5017$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5018 5019 5020 5021 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5024$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5025if ${lt_cv_to_tool_file_cmd+:} false; then : 5026 $as_echo_n "(cached) " >&6 5027else 5028 #assume ordinary cross tools, or native build. 5029lt_cv_to_tool_file_cmd=func_convert_file_noop 5030case $host in 5031 *-*-mingw* ) 5032 case $build in 5033 *-*-mingw* ) # actually msys 5034 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5035 ;; 5036 esac 5037 ;; 5038esac 5039 5040fi 5041 5042to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5044$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5045 5046 5047 5048 5049 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5051$as_echo_n "checking for $LD option to reload object files... " >&6; } 5052if ${lt_cv_ld_reload_flag+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 lt_cv_ld_reload_flag='-r' 5056fi 5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5058$as_echo "$lt_cv_ld_reload_flag" >&6; } 5059reload_flag=$lt_cv_ld_reload_flag 5060case $reload_flag in 5061"" | " "*) ;; 5062*) reload_flag=" $reload_flag" ;; 5063esac 5064reload_cmds='$LD$reload_flag -o $output$reload_objs' 5065case $host_os in 5066 cygwin* | mingw* | pw32* | cegcc*) 5067 if test "$GCC" != yes; then 5068 reload_cmds=false 5069 fi 5070 ;; 5071 darwin*) 5072 if test "$GCC" = yes; then 5073 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5074 else 5075 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5076 fi 5077 ;; 5078esac 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088if test -n "$ac_tool_prefix"; then 5089 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5090set dummy ${ac_tool_prefix}objdump; ac_word=$2 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5092$as_echo_n "checking for $ac_word... " >&6; } 5093if ${ac_cv_prog_OBJDUMP+:} false; then : 5094 $as_echo_n "(cached) " >&6 5095else 5096 if test -n "$OBJDUMP"; then 5097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5098else 5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5100for as_dir in $PATH 5101do 5102 IFS=$as_save_IFS 5103 test -z "$as_dir" && as_dir=. 5104 for ac_exec_ext in '' $ac_executable_extensions; do 5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5106 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5108 break 2 5109 fi 5110done 5111 done 5112IFS=$as_save_IFS 5113 5114fi 5115fi 5116OBJDUMP=$ac_cv_prog_OBJDUMP 5117if test -n "$OBJDUMP"; then 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5119$as_echo "$OBJDUMP" >&6; } 5120else 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5122$as_echo "no" >&6; } 5123fi 5124 5125 5126fi 5127if test -z "$ac_cv_prog_OBJDUMP"; then 5128 ac_ct_OBJDUMP=$OBJDUMP 5129 # Extract the first word of "objdump", so it can be a program name with args. 5130set dummy objdump; ac_word=$2 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5132$as_echo_n "checking for $ac_word... " >&6; } 5133if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 if test -n "$ac_ct_OBJDUMP"; then 5137 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5138else 5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5140for as_dir in $PATH 5141do 5142 IFS=$as_save_IFS 5143 test -z "$as_dir" && as_dir=. 5144 for ac_exec_ext in '' $ac_executable_extensions; do 5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5146 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5148 break 2 5149 fi 5150done 5151 done 5152IFS=$as_save_IFS 5153 5154fi 5155fi 5156ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5157if test -n "$ac_ct_OBJDUMP"; then 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5159$as_echo "$ac_ct_OBJDUMP" >&6; } 5160else 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5162$as_echo "no" >&6; } 5163fi 5164 5165 if test "x$ac_ct_OBJDUMP" = x; then 5166 OBJDUMP="false" 5167 else 5168 case $cross_compiling:$ac_tool_warned in 5169yes:) 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5172ac_tool_warned=yes ;; 5173esac 5174 OBJDUMP=$ac_ct_OBJDUMP 5175 fi 5176else 5177 OBJDUMP="$ac_cv_prog_OBJDUMP" 5178fi 5179 5180test -z "$OBJDUMP" && OBJDUMP=objdump 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5191$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5192if ${lt_cv_deplibs_check_method+:} false; then : 5193 $as_echo_n "(cached) " >&6 5194else 5195 lt_cv_file_magic_cmd='$MAGIC_CMD' 5196lt_cv_file_magic_test_file= 5197lt_cv_deplibs_check_method='unknown' 5198# Need to set the preceding variable on all platforms that support 5199# interlibrary dependencies. 5200# 'none' -- dependencies not supported. 5201# `unknown' -- same as none, but documents that we really don't know. 5202# 'pass_all' -- all dependencies passed with no checks. 5203# 'test_compile' -- check by making test program. 5204# 'file_magic [[regex]]' -- check by looking for files in library path 5205# which responds to the $file_magic_cmd with a given extended regex. 5206# If you have `file' or equivalent on your system and you're not sure 5207# whether `pass_all' will *always* work, you probably want this one. 5208 5209case $host_os in 5210aix[4-9]*) 5211 lt_cv_deplibs_check_method=pass_all 5212 ;; 5213 5214beos*) 5215 lt_cv_deplibs_check_method=pass_all 5216 ;; 5217 5218bsdi[45]*) 5219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5220 lt_cv_file_magic_cmd='/usr/bin/file -L' 5221 lt_cv_file_magic_test_file=/shlib/libc.so 5222 ;; 5223 5224cygwin*) 5225 # func_win32_libid is a shell function defined in ltmain.sh 5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5227 lt_cv_file_magic_cmd='func_win32_libid' 5228 ;; 5229 5230mingw* | pw32*) 5231 # Base MSYS/MinGW do not provide the 'file' command needed by 5232 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5233 # unless we find 'file', for example because we are cross-compiling. 5234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5237 lt_cv_file_magic_cmd='func_win32_libid' 5238 else 5239 # Keep this pattern in sync with the one in func_win32_libid. 5240 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5241 lt_cv_file_magic_cmd='$OBJDUMP -f' 5242 fi 5243 ;; 5244 5245cegcc*) 5246 # use the weaker test based on 'objdump'. See mingw*. 5247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5248 lt_cv_file_magic_cmd='$OBJDUMP -f' 5249 ;; 5250 5251darwin* | rhapsody*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255freebsd* | dragonfly*) 5256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5257 case $host_cpu in 5258 i*86 ) 5259 # Not sure whether the presence of OpenBSD here was a mistake. 5260 # Let's accept both of them until this is cleared up. 5261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5262 lt_cv_file_magic_cmd=/usr/bin/file 5263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5264 ;; 5265 esac 5266 else 5267 lt_cv_deplibs_check_method=pass_all 5268 fi 5269 ;; 5270 5271gnu*) 5272 lt_cv_deplibs_check_method=pass_all 5273 ;; 5274 5275haiku*) 5276 lt_cv_deplibs_check_method=pass_all 5277 ;; 5278 5279hpux10.20* | hpux11*) 5280 lt_cv_file_magic_cmd=/usr/bin/file 5281 case $host_cpu in 5282 ia64*) 5283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5285 ;; 5286 hppa*64*) 5287 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]' 5288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5289 ;; 5290 *) 5291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5292 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5293 ;; 5294 esac 5295 ;; 5296 5297interix[3-9]*) 5298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5300 ;; 5301 5302irix5* | irix6* | nonstopux*) 5303 case $LD in 5304 *-32|*"-32 ") libmagic=32-bit;; 5305 *-n32|*"-n32 ") libmagic=N32;; 5306 *-64|*"-64 ") libmagic=64-bit;; 5307 *) libmagic=never-match;; 5308 esac 5309 lt_cv_deplibs_check_method=pass_all 5310 ;; 5311 5312# This must be glibc/ELF. 5313linux* | k*bsd*-gnu | kopensolaris*-gnu) 5314 lt_cv_deplibs_check_method=pass_all 5315 ;; 5316 5317netbsd*) 5318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5320 else 5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5322 fi 5323 ;; 5324 5325newos6*) 5326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5327 lt_cv_file_magic_cmd=/usr/bin/file 5328 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5329 ;; 5330 5331*nto* | *qnx*) 5332 lt_cv_deplibs_check_method=pass_all 5333 ;; 5334 5335openbsd*) 5336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5338 else 5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5340 fi 5341 ;; 5342 5343osf3* | osf4* | osf5*) 5344 lt_cv_deplibs_check_method=pass_all 5345 ;; 5346 5347rdos*) 5348 lt_cv_deplibs_check_method=pass_all 5349 ;; 5350 5351solaris*) 5352 lt_cv_deplibs_check_method=pass_all 5353 ;; 5354 5355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5356 lt_cv_deplibs_check_method=pass_all 5357 ;; 5358 5359sysv4 | sysv4.3*) 5360 case $host_vendor in 5361 motorola) 5362 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]' 5363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5364 ;; 5365 ncr) 5366 lt_cv_deplibs_check_method=pass_all 5367 ;; 5368 sequent) 5369 lt_cv_file_magic_cmd='/bin/file' 5370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5371 ;; 5372 sni) 5373 lt_cv_file_magic_cmd='/bin/file' 5374 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5375 lt_cv_file_magic_test_file=/lib/libc.so 5376 ;; 5377 siemens) 5378 lt_cv_deplibs_check_method=pass_all 5379 ;; 5380 pc) 5381 lt_cv_deplibs_check_method=pass_all 5382 ;; 5383 esac 5384 ;; 5385 5386tpf*) 5387 lt_cv_deplibs_check_method=pass_all 5388 ;; 5389esac 5390 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5393$as_echo "$lt_cv_deplibs_check_method" >&6; } 5394 5395file_magic_glob= 5396want_nocaseglob=no 5397if test "$build" = "$host"; then 5398 case $host_os in 5399 mingw* | pw32*) 5400 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5401 want_nocaseglob=yes 5402 else 5403 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5404 fi 5405 ;; 5406 esac 5407fi 5408 5409file_magic_cmd=$lt_cv_file_magic_cmd 5410deplibs_check_method=$lt_cv_deplibs_check_method 5411test -z "$deplibs_check_method" && deplibs_check_method=unknown 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434if test -n "$ac_tool_prefix"; then 5435 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5436set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5438$as_echo_n "checking for $ac_word... " >&6; } 5439if ${ac_cv_prog_DLLTOOL+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441else 5442 if test -n "$DLLTOOL"; then 5443 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5444else 5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5446for as_dir in $PATH 5447do 5448 IFS=$as_save_IFS 5449 test -z "$as_dir" && as_dir=. 5450 for ac_exec_ext in '' $ac_executable_extensions; do 5451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5452 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5454 break 2 5455 fi 5456done 5457 done 5458IFS=$as_save_IFS 5459 5460fi 5461fi 5462DLLTOOL=$ac_cv_prog_DLLTOOL 5463if test -n "$DLLTOOL"; then 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5465$as_echo "$DLLTOOL" >&6; } 5466else 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5468$as_echo "no" >&6; } 5469fi 5470 5471 5472fi 5473if test -z "$ac_cv_prog_DLLTOOL"; then 5474 ac_ct_DLLTOOL=$DLLTOOL 5475 # Extract the first word of "dlltool", so it can be a program name with args. 5476set dummy dlltool; ac_word=$2 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5478$as_echo_n "checking for $ac_word... " >&6; } 5479if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 if test -n "$ac_ct_DLLTOOL"; then 5483 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5484else 5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5486for as_dir in $PATH 5487do 5488 IFS=$as_save_IFS 5489 test -z "$as_dir" && as_dir=. 5490 for ac_exec_ext in '' $ac_executable_extensions; do 5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5492 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5494 break 2 5495 fi 5496done 5497 done 5498IFS=$as_save_IFS 5499 5500fi 5501fi 5502ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5503if test -n "$ac_ct_DLLTOOL"; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5505$as_echo "$ac_ct_DLLTOOL" >&6; } 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5508$as_echo "no" >&6; } 5509fi 5510 5511 if test "x$ac_ct_DLLTOOL" = x; then 5512 DLLTOOL="false" 5513 else 5514 case $cross_compiling:$ac_tool_warned in 5515yes:) 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5518ac_tool_warned=yes ;; 5519esac 5520 DLLTOOL=$ac_ct_DLLTOOL 5521 fi 5522else 5523 DLLTOOL="$ac_cv_prog_DLLTOOL" 5524fi 5525 5526test -z "$DLLTOOL" && DLLTOOL=dlltool 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5538$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5539if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 lt_cv_sharedlib_from_linklib_cmd='unknown' 5543 5544case $host_os in 5545cygwin* | mingw* | pw32* | cegcc*) 5546 # two different shell functions defined in ltmain.sh 5547 # decide which to use based on capabilities of $DLLTOOL 5548 case `$DLLTOOL --help 2>&1` in 5549 *--identify-strict*) 5550 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5551 ;; 5552 *) 5553 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5554 ;; 5555 esac 5556 ;; 5557*) 5558 # fallback: assume linklib IS sharedlib 5559 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5560 ;; 5561esac 5562 5563fi 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5565$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5566sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5567test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5568 5569 5570 5571 5572 5573 5574 5575 5576if test -n "$ac_tool_prefix"; then 5577 for ac_prog in ar 5578 do 5579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5580set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5582$as_echo_n "checking for $ac_word... " >&6; } 5583if ${ac_cv_prog_AR+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 if test -n "$AR"; then 5587 ac_cv_prog_AR="$AR" # Let the user override the test. 5588else 5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590for as_dir in $PATH 5591do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5596 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600done 5601 done 5602IFS=$as_save_IFS 5603 5604fi 5605fi 5606AR=$ac_cv_prog_AR 5607if test -n "$AR"; then 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5609$as_echo "$AR" >&6; } 5610else 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5612$as_echo "no" >&6; } 5613fi 5614 5615 5616 test -n "$AR" && break 5617 done 5618fi 5619if test -z "$AR"; then 5620 ac_ct_AR=$AR 5621 for ac_prog in ar 5622do 5623 # Extract the first word of "$ac_prog", so it can be a program name with args. 5624set dummy $ac_prog; ac_word=$2 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5626$as_echo_n "checking for $ac_word... " >&6; } 5627if ${ac_cv_prog_ac_ct_AR+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 if test -n "$ac_ct_AR"; then 5631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5632else 5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5634for as_dir in $PATH 5635do 5636 IFS=$as_save_IFS 5637 test -z "$as_dir" && as_dir=. 5638 for ac_exec_ext in '' $ac_executable_extensions; do 5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5640 ac_cv_prog_ac_ct_AR="$ac_prog" 5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5642 break 2 5643 fi 5644done 5645 done 5646IFS=$as_save_IFS 5647 5648fi 5649fi 5650ac_ct_AR=$ac_cv_prog_ac_ct_AR 5651if test -n "$ac_ct_AR"; then 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5653$as_echo "$ac_ct_AR" >&6; } 5654else 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5656$as_echo "no" >&6; } 5657fi 5658 5659 5660 test -n "$ac_ct_AR" && break 5661done 5662 5663 if test "x$ac_ct_AR" = x; then 5664 AR="false" 5665 else 5666 case $cross_compiling:$ac_tool_warned in 5667yes:) 5668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5670ac_tool_warned=yes ;; 5671esac 5672 AR=$ac_ct_AR 5673 fi 5674fi 5675 5676: ${AR=ar} 5677: ${AR_FLAGS=cru} 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5690$as_echo_n "checking for archiver @FILE support... " >&6; } 5691if ${lt_cv_ar_at_file+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 lt_cv_ar_at_file=no 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5696/* end confdefs.h. */ 5697 5698int 5699main () 5700{ 5701 5702 ; 5703 return 0; 5704} 5705_ACEOF 5706if ac_fn_c_try_compile "$LINENO"; then : 5707 echo conftest.$ac_objext > conftest.lst 5708 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5710 (eval $lt_ar_try) 2>&5 5711 ac_status=$? 5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5713 test $ac_status = 0; } 5714 if test "$ac_status" -eq 0; then 5715 # Ensure the archiver fails upon bogus file names. 5716 rm -f conftest.$ac_objext libconftest.a 5717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5718 (eval $lt_ar_try) 2>&5 5719 ac_status=$? 5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5721 test $ac_status = 0; } 5722 if test "$ac_status" -ne 0; then 5723 lt_cv_ar_at_file=@ 5724 fi 5725 fi 5726 rm -f conftest.* libconftest.a 5727 5728fi 5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5730 5731fi 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5733$as_echo "$lt_cv_ar_at_file" >&6; } 5734 5735if test "x$lt_cv_ar_at_file" = xno; then 5736 archiver_list_spec= 5737else 5738 archiver_list_spec=$lt_cv_ar_at_file 5739fi 5740 5741 5742 5743 5744 5745 5746 5747if test -n "$ac_tool_prefix"; then 5748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5749set dummy ${ac_tool_prefix}strip; ac_word=$2 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5751$as_echo_n "checking for $ac_word... " >&6; } 5752if ${ac_cv_prog_STRIP+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 if test -n "$STRIP"; then 5756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5757else 5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5759for as_dir in $PATH 5760do 5761 IFS=$as_save_IFS 5762 test -z "$as_dir" && as_dir=. 5763 for ac_exec_ext in '' $ac_executable_extensions; do 5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5765 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5767 break 2 5768 fi 5769done 5770 done 5771IFS=$as_save_IFS 5772 5773fi 5774fi 5775STRIP=$ac_cv_prog_STRIP 5776if test -n "$STRIP"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5778$as_echo "$STRIP" >&6; } 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; } 5782fi 5783 5784 5785fi 5786if test -z "$ac_cv_prog_STRIP"; then 5787 ac_ct_STRIP=$STRIP 5788 # Extract the first word of "strip", so it can be a program name with args. 5789set dummy strip; ac_word=$2 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5791$as_echo_n "checking for $ac_word... " >&6; } 5792if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 if test -n "$ac_ct_STRIP"; then 5796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5797else 5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799for as_dir in $PATH 5800do 5801 IFS=$as_save_IFS 5802 test -z "$as_dir" && as_dir=. 5803 for ac_exec_ext in '' $ac_executable_extensions; do 5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5805 ac_cv_prog_ac_ct_STRIP="strip" 5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5807 break 2 5808 fi 5809done 5810 done 5811IFS=$as_save_IFS 5812 5813fi 5814fi 5815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5816if test -n "$ac_ct_STRIP"; then 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5818$as_echo "$ac_ct_STRIP" >&6; } 5819else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821$as_echo "no" >&6; } 5822fi 5823 5824 if test "x$ac_ct_STRIP" = x; then 5825 STRIP=":" 5826 else 5827 case $cross_compiling:$ac_tool_warned in 5828yes:) 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5831ac_tool_warned=yes ;; 5832esac 5833 STRIP=$ac_ct_STRIP 5834 fi 5835else 5836 STRIP="$ac_cv_prog_STRIP" 5837fi 5838 5839test -z "$STRIP" && STRIP=: 5840 5841 5842 5843 5844 5845 5846if test -n "$ac_tool_prefix"; then 5847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5848set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5850$as_echo_n "checking for $ac_word... " >&6; } 5851if ${ac_cv_prog_RANLIB+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853else 5854 if test -n "$RANLIB"; then 5855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5856else 5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858for as_dir in $PATH 5859do 5860 IFS=$as_save_IFS 5861 test -z "$as_dir" && as_dir=. 5862 for ac_exec_ext in '' $ac_executable_extensions; do 5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5866 break 2 5867 fi 5868done 5869 done 5870IFS=$as_save_IFS 5871 5872fi 5873fi 5874RANLIB=$ac_cv_prog_RANLIB 5875if test -n "$RANLIB"; then 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5877$as_echo "$RANLIB" >&6; } 5878else 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5880$as_echo "no" >&6; } 5881fi 5882 5883 5884fi 5885if test -z "$ac_cv_prog_RANLIB"; then 5886 ac_ct_RANLIB=$RANLIB 5887 # Extract the first word of "ranlib", so it can be a program name with args. 5888set dummy ranlib; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$ac_ct_RANLIB"; then 5895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_ac_ct_RANLIB="ranlib" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5915if test -n "$ac_ct_RANLIB"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5917$as_echo "$ac_ct_RANLIB" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 if test "x$ac_ct_RANLIB" = x; then 5924 RANLIB=":" 5925 else 5926 case $cross_compiling:$ac_tool_warned in 5927yes:) 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5930ac_tool_warned=yes ;; 5931esac 5932 RANLIB=$ac_ct_RANLIB 5933 fi 5934else 5935 RANLIB="$ac_cv_prog_RANLIB" 5936fi 5937 5938test -z "$RANLIB" && RANLIB=: 5939 5940 5941 5942 5943 5944 5945# Determine commands to create old-style static archives. 5946old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5947old_postinstall_cmds='chmod 644 $oldlib' 5948old_postuninstall_cmds= 5949 5950if test -n "$RANLIB"; then 5951 case $host_os in 5952 openbsd*) 5953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5954 ;; 5955 *) 5956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5957 ;; 5958 esac 5959 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5960fi 5961 5962case $host_os in 5963 darwin*) 5964 lock_old_archive_extraction=yes ;; 5965 *) 5966 lock_old_archive_extraction=no ;; 5967esac 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007# If no C compiler was specified, use CC. 6008LTCC=${LTCC-"$CC"} 6009 6010# If no C compiler flags were specified, use CFLAGS. 6011LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6012 6013# Allow CC to be a program name with arguments. 6014compiler=$CC 6015 6016 6017# Check for command to grab the raw symbol name followed by C symbol from nm. 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6019$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6020if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 6024# These are sane defaults that work on at least a few old systems. 6025# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6026 6027# Character class describing NM global symbol codes. 6028symcode='[BCDEGRST]' 6029 6030# Regexp to match symbols that can be accessed directly from C. 6031sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6032 6033# Define system-specific variables. 6034case $host_os in 6035aix*) 6036 symcode='[BCDT]' 6037 ;; 6038cygwin* | mingw* | pw32* | cegcc*) 6039 symcode='[ABCDGISTW]' 6040 ;; 6041hpux*) 6042 if test "$host_cpu" = ia64; then 6043 symcode='[ABCDEGRST]' 6044 fi 6045 ;; 6046irix* | nonstopux*) 6047 symcode='[BCDEGRST]' 6048 ;; 6049osf*) 6050 symcode='[BCDEGQRST]' 6051 ;; 6052solaris*) 6053 symcode='[BDRT]' 6054 ;; 6055sco3.2v5*) 6056 symcode='[DT]' 6057 ;; 6058sysv4.2uw2*) 6059 symcode='[DT]' 6060 ;; 6061sysv5* | sco5v6* | unixware* | OpenUNIX*) 6062 symcode='[ABDT]' 6063 ;; 6064sysv4) 6065 symcode='[DFNSTU]' 6066 ;; 6067esac 6068 6069# If we're using GNU nm, then use its standard symbol codes. 6070case `$NM -V 2>&1` in 6071*GNU* | *'with BFD'*) 6072 symcode='[ABCDGIRSTW]' ;; 6073esac 6074 6075# Transform an extracted symbol line into a proper C declaration. 6076# Some systems (esp. on ia64) link data and code symbols differently, 6077# so use this general approach. 6078lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6079 6080# Transform an extracted symbol line into symbol name and symbol address 6081lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6082lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6083 6084# Handle CRLF in mingw tool chain 6085opt_cr= 6086case $build_os in 6087mingw*) 6088 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6089 ;; 6090esac 6091 6092# Try without a prefix underscore, then with it. 6093for ac_symprfx in "" "_"; do 6094 6095 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6096 symxfrm="\\1 $ac_symprfx\\2 \\2" 6097 6098 # Write the raw and C identifiers. 6099 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6100 # Fake it for dumpbin and say T for any non-static function 6101 # and D for any global variable. 6102 # Also find C++ and __fastcall symbols from MSVC++, 6103 # which start with @ or ?. 6104 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6105" {last_section=section; section=\$ 3};"\ 6106" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6107" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6108" \$ 0!~/External *\|/{next};"\ 6109" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6110" {if(hide[section]) next};"\ 6111" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6112" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6113" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6114" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6115" ' prfx=^$ac_symprfx" 6116 else 6117 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6118 fi 6119 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6120 6121 # Check to see that the pipe works correctly. 6122 pipe_works=no 6123 6124 rm -f conftest* 6125 cat > conftest.$ac_ext <<_LT_EOF 6126#ifdef __cplusplus 6127extern "C" { 6128#endif 6129char nm_test_var; 6130void nm_test_func(void); 6131void nm_test_func(void){} 6132#ifdef __cplusplus 6133} 6134#endif 6135int main(){nm_test_var='a';nm_test_func();return(0);} 6136_LT_EOF 6137 6138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6139 (eval $ac_compile) 2>&5 6140 ac_status=$? 6141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6142 test $ac_status = 0; }; then 6143 # Now try to grab the symbols. 6144 nlist=conftest.nm 6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6146 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6147 ac_status=$? 6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6149 test $ac_status = 0; } && test -s "$nlist"; then 6150 # Try sorting and uniquifying the output. 6151 if sort "$nlist" | uniq > "$nlist"T; then 6152 mv -f "$nlist"T "$nlist" 6153 else 6154 rm -f "$nlist"T 6155 fi 6156 6157 # Make sure that we snagged all the symbols we need. 6158 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6159 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6160 cat <<_LT_EOF > conftest.$ac_ext 6161/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6162#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6163/* DATA imports from DLLs on WIN32 con't be const, because runtime 6164 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6165# define LT_DLSYM_CONST 6166#elif defined(__osf__) 6167/* This system does not cope well with relocations in const data. */ 6168# define LT_DLSYM_CONST 6169#else 6170# define LT_DLSYM_CONST const 6171#endif 6172 6173#ifdef __cplusplus 6174extern "C" { 6175#endif 6176 6177_LT_EOF 6178 # Now generate the symbol file. 6179 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6180 6181 cat <<_LT_EOF >> conftest.$ac_ext 6182 6183/* The mapping between symbol names and symbols. */ 6184LT_DLSYM_CONST struct { 6185 const char *name; 6186 void *address; 6187} 6188lt__PROGRAM__LTX_preloaded_symbols[] = 6189{ 6190 { "@PROGRAM@", (void *) 0 }, 6191_LT_EOF 6192 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6193 cat <<\_LT_EOF >> conftest.$ac_ext 6194 {0, (void *) 0} 6195}; 6196 6197/* This works around a problem in FreeBSD linker */ 6198#ifdef FREEBSD_WORKAROUND 6199static const void *lt_preloaded_setup() { 6200 return lt__PROGRAM__LTX_preloaded_symbols; 6201} 6202#endif 6203 6204#ifdef __cplusplus 6205} 6206#endif 6207_LT_EOF 6208 # Now try linking the two files. 6209 mv conftest.$ac_objext conftstm.$ac_objext 6210 lt_globsym_save_LIBS=$LIBS 6211 lt_globsym_save_CFLAGS=$CFLAGS 6212 LIBS="conftstm.$ac_objext" 6213 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6215 (eval $ac_link) 2>&5 6216 ac_status=$? 6217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6218 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6219 pipe_works=yes 6220 fi 6221 LIBS=$lt_globsym_save_LIBS 6222 CFLAGS=$lt_globsym_save_CFLAGS 6223 else 6224 echo "cannot find nm_test_func in $nlist" >&5 6225 fi 6226 else 6227 echo "cannot find nm_test_var in $nlist" >&5 6228 fi 6229 else 6230 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6231 fi 6232 else 6233 echo "$progname: failed program was:" >&5 6234 cat conftest.$ac_ext >&5 6235 fi 6236 rm -rf conftest* conftst* 6237 6238 # Do not use the global_symbol_pipe unless it works. 6239 if test "$pipe_works" = yes; then 6240 break 6241 else 6242 lt_cv_sys_global_symbol_pipe= 6243 fi 6244done 6245 6246fi 6247 6248if test -z "$lt_cv_sys_global_symbol_pipe"; then 6249 lt_cv_sys_global_symbol_to_cdecl= 6250fi 6251if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6253$as_echo "failed" >&6; } 6254else 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6256$as_echo "ok" >&6; } 6257fi 6258 6259# Response file support. 6260if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6261 nm_file_list_spec='@' 6262elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6263 nm_file_list_spec='@' 6264fi 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6293$as_echo_n "checking for sysroot... " >&6; } 6294 6295# Check whether --with-sysroot was given. 6296if test "${with_sysroot+set}" = set; then : 6297 withval=$with_sysroot; 6298else 6299 with_sysroot=no 6300fi 6301 6302 6303lt_sysroot= 6304case ${with_sysroot} in #( 6305 yes) 6306 if test "$GCC" = yes; then 6307 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6308 fi 6309 ;; #( 6310 /*) 6311 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6312 ;; #( 6313 no|'') 6314 ;; #( 6315 *) 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6317$as_echo "${with_sysroot}" >&6; } 6318 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6319 ;; 6320esac 6321 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6323$as_echo "${lt_sysroot:-no}" >&6; } 6324 6325 6326 6327 6328 6329# Check whether --enable-libtool-lock was given. 6330if test "${enable_libtool_lock+set}" = set; then : 6331 enableval=$enable_libtool_lock; 6332fi 6333 6334test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6335 6336# Some flags need to be propagated to the compiler or linker for good 6337# libtool support. 6338case $host in 6339ia64-*-hpux*) 6340 # Find out which ABI we are using. 6341 echo 'int i;' > conftest.$ac_ext 6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6343 (eval $ac_compile) 2>&5 6344 ac_status=$? 6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6346 test $ac_status = 0; }; then 6347 case `/usr/bin/file conftest.$ac_objext` in 6348 *ELF-32*) 6349 HPUX_IA64_MODE="32" 6350 ;; 6351 *ELF-64*) 6352 HPUX_IA64_MODE="64" 6353 ;; 6354 esac 6355 fi 6356 rm -rf conftest* 6357 ;; 6358*-*-irix6*) 6359 # Find out which ABI we are using. 6360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6362 (eval $ac_compile) 2>&5 6363 ac_status=$? 6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6365 test $ac_status = 0; }; then 6366 if test "$lt_cv_prog_gnu_ld" = yes; then 6367 case `/usr/bin/file conftest.$ac_objext` in 6368 *32-bit*) 6369 LD="${LD-ld} -melf32bsmip" 6370 ;; 6371 *N32*) 6372 LD="${LD-ld} -melf32bmipn32" 6373 ;; 6374 *64-bit*) 6375 LD="${LD-ld} -melf64bmip" 6376 ;; 6377 esac 6378 else 6379 case `/usr/bin/file conftest.$ac_objext` in 6380 *32-bit*) 6381 LD="${LD-ld} -32" 6382 ;; 6383 *N32*) 6384 LD="${LD-ld} -n32" 6385 ;; 6386 *64-bit*) 6387 LD="${LD-ld} -64" 6388 ;; 6389 esac 6390 fi 6391 fi 6392 rm -rf conftest* 6393 ;; 6394 6395x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6396s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6397 # Find out which ABI we are using. 6398 echo 'int i;' > conftest.$ac_ext 6399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6400 (eval $ac_compile) 2>&5 6401 ac_status=$? 6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6403 test $ac_status = 0; }; then 6404 case `/usr/bin/file conftest.o` in 6405 *32-bit*) 6406 case $host in 6407 x86_64-*kfreebsd*-gnu) 6408 LD="${LD-ld} -m elf_i386_fbsd" 6409 ;; 6410 x86_64-*linux*) 6411 LD="${LD-ld} -m elf_i386" 6412 ;; 6413 ppc64-*linux*|powerpc64-*linux*) 6414 LD="${LD-ld} -m elf32ppclinux" 6415 ;; 6416 s390x-*linux*) 6417 LD="${LD-ld} -m elf_s390" 6418 ;; 6419 sparc64-*linux*) 6420 LD="${LD-ld} -m elf32_sparc" 6421 ;; 6422 esac 6423 ;; 6424 *64-bit*) 6425 case $host in 6426 x86_64-*kfreebsd*-gnu) 6427 LD="${LD-ld} -m elf_x86_64_fbsd" 6428 ;; 6429 x86_64-*linux*) 6430 LD="${LD-ld} -m elf_x86_64" 6431 ;; 6432 ppc*-*linux*|powerpc*-*linux*) 6433 LD="${LD-ld} -m elf64ppc" 6434 ;; 6435 s390*-*linux*|s390*-*tpf*) 6436 LD="${LD-ld} -m elf64_s390" 6437 ;; 6438 sparc*-*linux*) 6439 LD="${LD-ld} -m elf64_sparc" 6440 ;; 6441 esac 6442 ;; 6443 esac 6444 fi 6445 rm -rf conftest* 6446 ;; 6447 6448*-*-sco3.2v5*) 6449 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6450 SAVE_CFLAGS="$CFLAGS" 6451 CFLAGS="$CFLAGS -belf" 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6453$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6454if ${lt_cv_cc_needs_belf+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 ac_ext=c 6458ac_cpp='$CPP $CPPFLAGS' 6459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6461ac_compiler_gnu=$ac_cv_c_compiler_gnu 6462 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465 6466int 6467main () 6468{ 6469 6470 ; 6471 return 0; 6472} 6473_ACEOF 6474if ac_fn_c_try_link "$LINENO"; then : 6475 lt_cv_cc_needs_belf=yes 6476else 6477 lt_cv_cc_needs_belf=no 6478fi 6479rm -f core conftest.err conftest.$ac_objext \ 6480 conftest$ac_exeext conftest.$ac_ext 6481 ac_ext=c 6482ac_cpp='$CPP $CPPFLAGS' 6483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6485ac_compiler_gnu=$ac_cv_c_compiler_gnu 6486 6487fi 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6489$as_echo "$lt_cv_cc_needs_belf" >&6; } 6490 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6491 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6492 CFLAGS="$SAVE_CFLAGS" 6493 fi 6494 ;; 6495*-*solaris*) 6496 # Find out which ABI we are using. 6497 echo 'int i;' > conftest.$ac_ext 6498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6499 (eval $ac_compile) 2>&5 6500 ac_status=$? 6501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6502 test $ac_status = 0; }; then 6503 case `/usr/bin/file conftest.o` in 6504 *64-bit*) 6505 case $lt_cv_prog_gnu_ld in 6506 yes*) 6507 case $host in 6508 i?86-*-solaris*) 6509 LD="${LD-ld} -m elf_x86_64" 6510 ;; 6511 sparc*-*-solaris*) 6512 LD="${LD-ld} -m elf64_sparc" 6513 ;; 6514 esac 6515 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6516 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6517 LD="${LD-ld}_sol2" 6518 fi 6519 ;; 6520 *) 6521 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6522 LD="${LD-ld} -64" 6523 fi 6524 ;; 6525 esac 6526 ;; 6527 esac 6528 fi 6529 rm -rf conftest* 6530 ;; 6531esac 6532 6533need_locks="$enable_libtool_lock" 6534 6535if test -n "$ac_tool_prefix"; then 6536 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6537set dummy ${ac_tool_prefix}mt; ac_word=$2 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6539$as_echo_n "checking for $ac_word... " >&6; } 6540if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 if test -n "$MANIFEST_TOOL"; then 6544 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6545else 6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547for as_dir in $PATH 6548do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6553 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557done 6558 done 6559IFS=$as_save_IFS 6560 6561fi 6562fi 6563MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6564if test -n "$MANIFEST_TOOL"; then 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6566$as_echo "$MANIFEST_TOOL" >&6; } 6567else 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569$as_echo "no" >&6; } 6570fi 6571 6572 6573fi 6574if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6575 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6576 # Extract the first word of "mt", so it can be a program name with args. 6577set dummy mt; ac_word=$2 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579$as_echo_n "checking for $ac_word... " >&6; } 6580if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 if test -n "$ac_ct_MANIFEST_TOOL"; then 6584 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6585else 6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587for as_dir in $PATH 6588do 6589 IFS=$as_save_IFS 6590 test -z "$as_dir" && as_dir=. 6591 for ac_exec_ext in '' $ac_executable_extensions; do 6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6593 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6595 break 2 6596 fi 6597done 6598 done 6599IFS=$as_save_IFS 6600 6601fi 6602fi 6603ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6604if test -n "$ac_ct_MANIFEST_TOOL"; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6606$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6607else 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609$as_echo "no" >&6; } 6610fi 6611 6612 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6613 MANIFEST_TOOL=":" 6614 else 6615 case $cross_compiling:$ac_tool_warned in 6616yes:) 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6619ac_tool_warned=yes ;; 6620esac 6621 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6622 fi 6623else 6624 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6625fi 6626 6627test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6629$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6630if ${lt_cv_path_mainfest_tool+:} false; then : 6631 $as_echo_n "(cached) " >&6 6632else 6633 lt_cv_path_mainfest_tool=no 6634 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6635 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6636 cat conftest.err >&5 6637 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6638 lt_cv_path_mainfest_tool=yes 6639 fi 6640 rm -f conftest* 6641fi 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6643$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6644if test "x$lt_cv_path_mainfest_tool" != xyes; then 6645 MANIFEST_TOOL=: 6646fi 6647 6648 6649 6650 6651 6652 6653 case $host_os in 6654 rhapsody* | darwin*) 6655 if test -n "$ac_tool_prefix"; then 6656 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6657set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6659$as_echo_n "checking for $ac_word... " >&6; } 6660if ${ac_cv_prog_DSYMUTIL+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 if test -n "$DSYMUTIL"; then 6664 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6665else 6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6667for as_dir in $PATH 6668do 6669 IFS=$as_save_IFS 6670 test -z "$as_dir" && as_dir=. 6671 for ac_exec_ext in '' $ac_executable_extensions; do 6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6673 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6675 break 2 6676 fi 6677done 6678 done 6679IFS=$as_save_IFS 6680 6681fi 6682fi 6683DSYMUTIL=$ac_cv_prog_DSYMUTIL 6684if test -n "$DSYMUTIL"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6686$as_echo "$DSYMUTIL" >&6; } 6687else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6689$as_echo "no" >&6; } 6690fi 6691 6692 6693fi 6694if test -z "$ac_cv_prog_DSYMUTIL"; then 6695 ac_ct_DSYMUTIL=$DSYMUTIL 6696 # Extract the first word of "dsymutil", so it can be a program name with args. 6697set dummy dsymutil; ac_word=$2 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6699$as_echo_n "checking for $ac_word... " >&6; } 6700if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 if test -n "$ac_ct_DSYMUTIL"; then 6704 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6705else 6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6707for as_dir in $PATH 6708do 6709 IFS=$as_save_IFS 6710 test -z "$as_dir" && as_dir=. 6711 for ac_exec_ext in '' $ac_executable_extensions; do 6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6713 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6715 break 2 6716 fi 6717done 6718 done 6719IFS=$as_save_IFS 6720 6721fi 6722fi 6723ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6724if test -n "$ac_ct_DSYMUTIL"; then 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6726$as_echo "$ac_ct_DSYMUTIL" >&6; } 6727else 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6729$as_echo "no" >&6; } 6730fi 6731 6732 if test "x$ac_ct_DSYMUTIL" = x; then 6733 DSYMUTIL=":" 6734 else 6735 case $cross_compiling:$ac_tool_warned in 6736yes:) 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6739ac_tool_warned=yes ;; 6740esac 6741 DSYMUTIL=$ac_ct_DSYMUTIL 6742 fi 6743else 6744 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6745fi 6746 6747 if test -n "$ac_tool_prefix"; then 6748 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6749set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751$as_echo_n "checking for $ac_word... " >&6; } 6752if ${ac_cv_prog_NMEDIT+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 if test -n "$NMEDIT"; then 6756 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6757else 6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775NMEDIT=$ac_cv_prog_NMEDIT 6776if test -n "$NMEDIT"; then 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6778$as_echo "$NMEDIT" >&6; } 6779else 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781$as_echo "no" >&6; } 6782fi 6783 6784 6785fi 6786if test -z "$ac_cv_prog_NMEDIT"; then 6787 ac_ct_NMEDIT=$NMEDIT 6788 # Extract the first word of "nmedit", so it can be a program name with args. 6789set dummy nmedit; ac_word=$2 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791$as_echo_n "checking for $ac_word... " >&6; } 6792if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 if test -n "$ac_ct_NMEDIT"; then 6796 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6797else 6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813fi 6814fi 6815ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6816if test -n "$ac_ct_NMEDIT"; then 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6818$as_echo "$ac_ct_NMEDIT" >&6; } 6819else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6821$as_echo "no" >&6; } 6822fi 6823 6824 if test "x$ac_ct_NMEDIT" = x; then 6825 NMEDIT=":" 6826 else 6827 case $cross_compiling:$ac_tool_warned in 6828yes:) 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6831ac_tool_warned=yes ;; 6832esac 6833 NMEDIT=$ac_ct_NMEDIT 6834 fi 6835else 6836 NMEDIT="$ac_cv_prog_NMEDIT" 6837fi 6838 6839 if test -n "$ac_tool_prefix"; then 6840 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6841set dummy ${ac_tool_prefix}lipo; ac_word=$2 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6843$as_echo_n "checking for $ac_word... " >&6; } 6844if ${ac_cv_prog_LIPO+:} false; then : 6845 $as_echo_n "(cached) " >&6 6846else 6847 if test -n "$LIPO"; then 6848 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6857 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862 done 6863IFS=$as_save_IFS 6864 6865fi 6866fi 6867LIPO=$ac_cv_prog_LIPO 6868if test -n "$LIPO"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6870$as_echo "$LIPO" >&6; } 6871else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873$as_echo "no" >&6; } 6874fi 6875 6876 6877fi 6878if test -z "$ac_cv_prog_LIPO"; then 6879 ac_ct_LIPO=$LIPO 6880 # Extract the first word of "lipo", so it can be a program name with args. 6881set dummy lipo; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_LIPO"; then 6888 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6897 ac_cv_prog_ac_ct_LIPO="lipo" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6908if test -n "$ac_ct_LIPO"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6910$as_echo "$ac_ct_LIPO" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 if test "x$ac_ct_LIPO" = x; then 6917 LIPO=":" 6918 else 6919 case $cross_compiling:$ac_tool_warned in 6920yes:) 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6923ac_tool_warned=yes ;; 6924esac 6925 LIPO=$ac_ct_LIPO 6926 fi 6927else 6928 LIPO="$ac_cv_prog_LIPO" 6929fi 6930 6931 if test -n "$ac_tool_prefix"; then 6932 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6933set dummy ${ac_tool_prefix}otool; ac_word=$2 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6935$as_echo_n "checking for $ac_word... " >&6; } 6936if ${ac_cv_prog_OTOOL+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 if test -n "$OTOOL"; then 6940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6941else 6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6949 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi 6958fi 6959OTOOL=$ac_cv_prog_OTOOL 6960if test -n "$OTOOL"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6962$as_echo "$OTOOL" >&6; } 6963else 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965$as_echo "no" >&6; } 6966fi 6967 6968 6969fi 6970if test -z "$ac_cv_prog_OTOOL"; then 6971 ac_ct_OTOOL=$OTOOL 6972 # Extract the first word of "otool", so it can be a program name with args. 6973set dummy otool; ac_word=$2 6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6975$as_echo_n "checking for $ac_word... " >&6; } 6976if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6977 $as_echo_n "(cached) " >&6 6978else 6979 if test -n "$ac_ct_OTOOL"; then 6980 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6981else 6982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6989 ac_cv_prog_ac_ct_OTOOL="otool" 6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994 done 6995IFS=$as_save_IFS 6996 6997fi 6998fi 6999ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7000if test -n "$ac_ct_OTOOL"; then 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7002$as_echo "$ac_ct_OTOOL" >&6; } 7003else 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7005$as_echo "no" >&6; } 7006fi 7007 7008 if test "x$ac_ct_OTOOL" = x; then 7009 OTOOL=":" 7010 else 7011 case $cross_compiling:$ac_tool_warned in 7012yes:) 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7015ac_tool_warned=yes ;; 7016esac 7017 OTOOL=$ac_ct_OTOOL 7018 fi 7019else 7020 OTOOL="$ac_cv_prog_OTOOL" 7021fi 7022 7023 if test -n "$ac_tool_prefix"; then 7024 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7025set dummy ${ac_tool_prefix}otool64; ac_word=$2 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027$as_echo_n "checking for $ac_word... " >&6; } 7028if ${ac_cv_prog_OTOOL64+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 if test -n "$OTOOL64"; then 7032 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7033else 7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7035for as_dir in $PATH 7036do 7037 IFS=$as_save_IFS 7038 test -z "$as_dir" && as_dir=. 7039 for ac_exec_ext in '' $ac_executable_extensions; do 7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7041 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7043 break 2 7044 fi 7045done 7046 done 7047IFS=$as_save_IFS 7048 7049fi 7050fi 7051OTOOL64=$ac_cv_prog_OTOOL64 7052if test -n "$OTOOL64"; then 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7054$as_echo "$OTOOL64" >&6; } 7055else 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7057$as_echo "no" >&6; } 7058fi 7059 7060 7061fi 7062if test -z "$ac_cv_prog_OTOOL64"; then 7063 ac_ct_OTOOL64=$OTOOL64 7064 # Extract the first word of "otool64", so it can be a program name with args. 7065set dummy otool64; ac_word=$2 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067$as_echo_n "checking for $ac_word... " >&6; } 7068if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 if test -n "$ac_ct_OTOOL64"; then 7072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7073else 7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7075for as_dir in $PATH 7076do 7077 IFS=$as_save_IFS 7078 test -z "$as_dir" && as_dir=. 7079 for ac_exec_ext in '' $ac_executable_extensions; do 7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7081 ac_cv_prog_ac_ct_OTOOL64="otool64" 7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7083 break 2 7084 fi 7085done 7086 done 7087IFS=$as_save_IFS 7088 7089fi 7090fi 7091ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7092if test -n "$ac_ct_OTOOL64"; then 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7094$as_echo "$ac_ct_OTOOL64" >&6; } 7095else 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7097$as_echo "no" >&6; } 7098fi 7099 7100 if test "x$ac_ct_OTOOL64" = x; then 7101 OTOOL64=":" 7102 else 7103 case $cross_compiling:$ac_tool_warned in 7104yes:) 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7107ac_tool_warned=yes ;; 7108esac 7109 OTOOL64=$ac_ct_OTOOL64 7110 fi 7111else 7112 OTOOL64="$ac_cv_prog_OTOOL64" 7113fi 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7142$as_echo_n "checking for -single_module linker flag... " >&6; } 7143if ${lt_cv_apple_cc_single_mod+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 lt_cv_apple_cc_single_mod=no 7147 if test -z "${LT_MULTI_MODULE}"; then 7148 # By default we will add the -single_module flag. You can override 7149 # by either setting the environment variable LT_MULTI_MODULE 7150 # non-empty at configure time, or by adding -multi_module to the 7151 # link flags. 7152 rm -rf libconftest.dylib* 7153 echo "int foo(void){return 1;}" > conftest.c 7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7155-dynamiclib -Wl,-single_module conftest.c" >&5 7156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7158 _lt_result=$? 7159 # If there is a non-empty error log, and "single_module" 7160 # appears in it, assume the flag caused a linker warning 7161 if test -s conftest.err && $GREP single_module conftest.err; then 7162 cat conftest.err >&5 7163 # Otherwise, if the output was created with a 0 exit code from 7164 # the compiler, it worked. 7165 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7166 lt_cv_apple_cc_single_mod=yes 7167 else 7168 cat conftest.err >&5 7169 fi 7170 rm -rf libconftest.dylib* 7171 rm -f conftest.* 7172 fi 7173fi 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7175$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7176 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7178$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7179if ${lt_cv_ld_exported_symbols_list+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 lt_cv_ld_exported_symbols_list=no 7183 save_LDFLAGS=$LDFLAGS 7184 echo "_main" > conftest.sym 7185 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188 7189int 7190main () 7191{ 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197if ac_fn_c_try_link "$LINENO"; then : 7198 lt_cv_ld_exported_symbols_list=yes 7199else 7200 lt_cv_ld_exported_symbols_list=no 7201fi 7202rm -f core conftest.err conftest.$ac_objext \ 7203 conftest$ac_exeext conftest.$ac_ext 7204 LDFLAGS="$save_LDFLAGS" 7205 7206fi 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7208$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7209 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7211$as_echo_n "checking for -force_load linker flag... " >&6; } 7212if ${lt_cv_ld_force_load+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 lt_cv_ld_force_load=no 7216 cat > conftest.c << _LT_EOF 7217int forced_loaded() { return 2;} 7218_LT_EOF 7219 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7220 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7221 echo "$AR cru libconftest.a conftest.o" >&5 7222 $AR cru libconftest.a conftest.o 2>&5 7223 echo "$RANLIB libconftest.a" >&5 7224 $RANLIB libconftest.a 2>&5 7225 cat > conftest.c << _LT_EOF 7226int main() { return 0;} 7227_LT_EOF 7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7229 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7230 _lt_result=$? 7231 if test -s conftest.err && $GREP force_load conftest.err; then 7232 cat conftest.err >&5 7233 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7234 lt_cv_ld_force_load=yes 7235 else 7236 cat conftest.err >&5 7237 fi 7238 rm -f conftest.err libconftest.a conftest conftest.c 7239 rm -rf conftest.dSYM 7240 7241fi 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7243$as_echo "$lt_cv_ld_force_load" >&6; } 7244 case $host_os in 7245 rhapsody* | darwin1.[012]) 7246 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7247 darwin1.*) 7248 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7249 darwin*) # darwin 5.x on 7250 # if running on 10.5 or later, the deployment target defaults 7251 # to the OS version, if on x86, and 10.4, the deployment 7252 # target defaults to 10.4. Don't you love it? 7253 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7254 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7255 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7256 10.[012]*) 7257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7258 10.*) 7259 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7260 esac 7261 ;; 7262 esac 7263 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7264 _lt_dar_single_mod='$single_module' 7265 fi 7266 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7267 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7268 else 7269 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7270 fi 7271 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7272 _lt_dsymutil='~$DSYMUTIL $lib || :' 7273 else 7274 _lt_dsymutil= 7275 fi 7276 ;; 7277 esac 7278 7279ac_ext=c 7280ac_cpp='$CPP $CPPFLAGS' 7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7283ac_compiler_gnu=$ac_cv_c_compiler_gnu 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7285$as_echo_n "checking how to run the C preprocessor... " >&6; } 7286# On Suns, sometimes $CPP names a directory. 7287if test -n "$CPP" && test -d "$CPP"; then 7288 CPP= 7289fi 7290if test -z "$CPP"; then 7291 if ${ac_cv_prog_CPP+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 # Double quotes because CPP needs to be expanded 7295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7296 do 7297 ac_preproc_ok=false 7298for ac_c_preproc_warn_flag in '' yes 7299do 7300 # Use a header file that comes with gcc, so configuring glibc 7301 # with a fresh cross-compiler works. 7302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7303 # <limits.h> exists even on freestanding compilers. 7304 # On the NeXT, cc -E runs the code through the compiler's parser, 7305 # not just through cpp. "Syntax error" is here to catch this case. 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307/* end confdefs.h. */ 7308#ifdef __STDC__ 7309# include <limits.h> 7310#else 7311# include <assert.h> 7312#endif 7313 Syntax error 7314_ACEOF 7315if ac_fn_c_try_cpp "$LINENO"; then : 7316 7317else 7318 # Broken: fails on valid input. 7319continue 7320fi 7321rm -f conftest.err conftest.i conftest.$ac_ext 7322 7323 # OK, works on sane cases. Now check whether nonexistent headers 7324 # can be detected and how. 7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7326/* end confdefs.h. */ 7327#include <ac_nonexistent.h> 7328_ACEOF 7329if ac_fn_c_try_cpp "$LINENO"; then : 7330 # Broken: success on invalid input. 7331continue 7332else 7333 # Passes both tests. 7334ac_preproc_ok=: 7335break 7336fi 7337rm -f conftest.err conftest.i conftest.$ac_ext 7338 7339done 7340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7341rm -f conftest.i conftest.err conftest.$ac_ext 7342if $ac_preproc_ok; then : 7343 break 7344fi 7345 7346 done 7347 ac_cv_prog_CPP=$CPP 7348 7349fi 7350 CPP=$ac_cv_prog_CPP 7351else 7352 ac_cv_prog_CPP=$CPP 7353fi 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7355$as_echo "$CPP" >&6; } 7356ac_preproc_ok=false 7357for ac_c_preproc_warn_flag in '' yes 7358do 7359 # Use a header file that comes with gcc, so configuring glibc 7360 # with a fresh cross-compiler works. 7361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7362 # <limits.h> exists even on freestanding compilers. 7363 # On the NeXT, cc -E runs the code through the compiler's parser, 7364 # not just through cpp. "Syntax error" is here to catch this case. 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367#ifdef __STDC__ 7368# include <limits.h> 7369#else 7370# include <assert.h> 7371#endif 7372 Syntax error 7373_ACEOF 7374if ac_fn_c_try_cpp "$LINENO"; then : 7375 7376else 7377 # Broken: fails on valid input. 7378continue 7379fi 7380rm -f conftest.err conftest.i conftest.$ac_ext 7381 7382 # OK, works on sane cases. Now check whether nonexistent headers 7383 # can be detected and how. 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386#include <ac_nonexistent.h> 7387_ACEOF 7388if ac_fn_c_try_cpp "$LINENO"; then : 7389 # Broken: success on invalid input. 7390continue 7391else 7392 # Passes both tests. 7393ac_preproc_ok=: 7394break 7395fi 7396rm -f conftest.err conftest.i conftest.$ac_ext 7397 7398done 7399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7400rm -f conftest.i conftest.err conftest.$ac_ext 7401if $ac_preproc_ok; then : 7402 7403else 7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7406as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7407See \`config.log' for more details" "$LINENO" 5; } 7408fi 7409 7410ac_ext=c 7411ac_cpp='$CPP $CPPFLAGS' 7412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7414ac_compiler_gnu=$ac_cv_c_compiler_gnu 7415 7416 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7418$as_echo_n "checking for ANSI C header files... " >&6; } 7419if ${ac_cv_header_stdc+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424#include <stdlib.h> 7425#include <stdarg.h> 7426#include <string.h> 7427#include <float.h> 7428 7429int 7430main () 7431{ 7432 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 ac_cv_header_stdc=yes 7439else 7440 ac_cv_header_stdc=no 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7443 7444if test $ac_cv_header_stdc = yes; then 7445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448#include <string.h> 7449 7450_ACEOF 7451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7452 $EGREP "memchr" >/dev/null 2>&1; then : 7453 7454else 7455 ac_cv_header_stdc=no 7456fi 7457rm -f conftest* 7458 7459fi 7460 7461if test $ac_cv_header_stdc = yes; then 7462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465#include <stdlib.h> 7466 7467_ACEOF 7468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7469 $EGREP "free" >/dev/null 2>&1; then : 7470 7471else 7472 ac_cv_header_stdc=no 7473fi 7474rm -f conftest* 7475 7476fi 7477 7478if test $ac_cv_header_stdc = yes; then 7479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7480 if test "$cross_compiling" = yes; then : 7481 : 7482else 7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7484/* end confdefs.h. */ 7485#include <ctype.h> 7486#include <stdlib.h> 7487#if ((' ' & 0x0FF) == 0x020) 7488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7490#else 7491# define ISLOWER(c) \ 7492 (('a' <= (c) && (c) <= 'i') \ 7493 || ('j' <= (c) && (c) <= 'r') \ 7494 || ('s' <= (c) && (c) <= 'z')) 7495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7496#endif 7497 7498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7499int 7500main () 7501{ 7502 int i; 7503 for (i = 0; i < 256; i++) 7504 if (XOR (islower (i), ISLOWER (i)) 7505 || toupper (i) != TOUPPER (i)) 7506 return 2; 7507 return 0; 7508} 7509_ACEOF 7510if ac_fn_c_try_run "$LINENO"; then : 7511 7512else 7513 ac_cv_header_stdc=no 7514fi 7515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7516 conftest.$ac_objext conftest.beam conftest.$ac_ext 7517fi 7518 7519fi 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7522$as_echo "$ac_cv_header_stdc" >&6; } 7523if test $ac_cv_header_stdc = yes; then 7524 7525$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7526 7527fi 7528 7529# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7530for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7531 inttypes.h stdint.h unistd.h 7532do : 7533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7535" 7536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7537 cat >>confdefs.h <<_ACEOF 7538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7539_ACEOF 7540 7541fi 7542 7543done 7544 7545 7546for ac_header in dlfcn.h 7547do : 7548 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7549" 7550if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7551 cat >>confdefs.h <<_ACEOF 7552#define HAVE_DLFCN_H 1 7553_ACEOF 7554 7555fi 7556 7557done 7558 7559 7560 7561 7562 7563# Set options 7564 7565 7566 7567 enable_dlopen=no 7568 7569 7570 enable_win32_dll=no 7571 7572 7573 # Check whether --enable-shared was given. 7574if test "${enable_shared+set}" = set; then : 7575 enableval=$enable_shared; p=${PACKAGE-default} 7576 case $enableval in 7577 yes) enable_shared=yes ;; 7578 no) enable_shared=no ;; 7579 *) 7580 enable_shared=no 7581 # Look at the argument we got. We use all the common list separators. 7582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7583 for pkg in $enableval; do 7584 IFS="$lt_save_ifs" 7585 if test "X$pkg" = "X$p"; then 7586 enable_shared=yes 7587 fi 7588 done 7589 IFS="$lt_save_ifs" 7590 ;; 7591 esac 7592else 7593 enable_shared=yes 7594fi 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 # Check whether --enable-static was given. 7605if test "${enable_static+set}" = set; then : 7606 enableval=$enable_static; p=${PACKAGE-default} 7607 case $enableval in 7608 yes) enable_static=yes ;; 7609 no) enable_static=no ;; 7610 *) 7611 enable_static=no 7612 # Look at the argument we got. We use all the common list separators. 7613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7614 for pkg in $enableval; do 7615 IFS="$lt_save_ifs" 7616 if test "X$pkg" = "X$p"; then 7617 enable_static=yes 7618 fi 7619 done 7620 IFS="$lt_save_ifs" 7621 ;; 7622 esac 7623else 7624 enable_static=yes 7625fi 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636# Check whether --with-pic was given. 7637if test "${with_pic+set}" = set; then : 7638 withval=$with_pic; lt_p=${PACKAGE-default} 7639 case $withval in 7640 yes|no) pic_mode=$withval ;; 7641 *) 7642 pic_mode=default 7643 # Look at the argument we got. We use all the common list separators. 7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7645 for lt_pkg in $withval; do 7646 IFS="$lt_save_ifs" 7647 if test "X$lt_pkg" = "X$lt_p"; then 7648 pic_mode=yes 7649 fi 7650 done 7651 IFS="$lt_save_ifs" 7652 ;; 7653 esac 7654else 7655 pic_mode=default 7656fi 7657 7658 7659test -z "$pic_mode" && pic_mode=default 7660 7661 7662 7663 7664 7665 7666 7667 # Check whether --enable-fast-install was given. 7668if test "${enable_fast_install+set}" = set; then : 7669 enableval=$enable_fast_install; p=${PACKAGE-default} 7670 case $enableval in 7671 yes) enable_fast_install=yes ;; 7672 no) enable_fast_install=no ;; 7673 *) 7674 enable_fast_install=no 7675 # Look at the argument we got. We use all the common list separators. 7676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7677 for pkg in $enableval; do 7678 IFS="$lt_save_ifs" 7679 if test "X$pkg" = "X$p"; then 7680 enable_fast_install=yes 7681 fi 7682 done 7683 IFS="$lt_save_ifs" 7684 ;; 7685 esac 7686else 7687 enable_fast_install=yes 7688fi 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700# This can be used to rebuild libtool when needed 7701LIBTOOL_DEPS="$ltmain" 7702 7703# Always use our own libtool. 7704LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735test -z "$LN_S" && LN_S="ln -s" 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750if test -n "${ZSH_VERSION+set}" ; then 7751 setopt NO_GLOB_SUBST 7752fi 7753 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7755$as_echo_n "checking for objdir... " >&6; } 7756if ${lt_cv_objdir+:} false; then : 7757 $as_echo_n "(cached) " >&6 7758else 7759 rm -f .libs 2>/dev/null 7760mkdir .libs 2>/dev/null 7761if test -d .libs; then 7762 lt_cv_objdir=.libs 7763else 7764 # MS-DOS does not allow filenames that begin with a dot. 7765 lt_cv_objdir=_libs 7766fi 7767rmdir .libs 2>/dev/null 7768fi 7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7770$as_echo "$lt_cv_objdir" >&6; } 7771objdir=$lt_cv_objdir 7772 7773 7774 7775 7776 7777cat >>confdefs.h <<_ACEOF 7778#define LT_OBJDIR "$lt_cv_objdir/" 7779_ACEOF 7780 7781 7782 7783 7784case $host_os in 7785aix3*) 7786 # AIX sometimes has problems with the GCC collect2 program. For some 7787 # reason, if we set the COLLECT_NAMES environment variable, the problems 7788 # vanish in a puff of smoke. 7789 if test "X${COLLECT_NAMES+set}" != Xset; then 7790 COLLECT_NAMES= 7791 export COLLECT_NAMES 7792 fi 7793 ;; 7794esac 7795 7796# Global variables: 7797ofile=libtool 7798can_build_shared=yes 7799 7800# All known linkers require a `.a' archive for static linking (except MSVC, 7801# which needs '.lib'). 7802libext=a 7803 7804with_gnu_ld="$lt_cv_prog_gnu_ld" 7805 7806old_CC="$CC" 7807old_CFLAGS="$CFLAGS" 7808 7809# Set sane defaults for various variables 7810test -z "$CC" && CC=cc 7811test -z "$LTCC" && LTCC=$CC 7812test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7813test -z "$LD" && LD=ld 7814test -z "$ac_objext" && ac_objext=o 7815 7816for cc_temp in $compiler""; do 7817 case $cc_temp in 7818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7820 \-*) ;; 7821 *) break;; 7822 esac 7823done 7824cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7825 7826 7827# Only perform the check for file, if the check method requires it 7828test -z "$MAGIC_CMD" && MAGIC_CMD=file 7829case $deplibs_check_method in 7830file_magic*) 7831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7833$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7834if ${lt_cv_path_MAGIC_CMD+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 case $MAGIC_CMD in 7838[\\/*] | ?:[\\/]*) 7839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7840 ;; 7841*) 7842 lt_save_MAGIC_CMD="$MAGIC_CMD" 7843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7845 for ac_dir in $ac_dummy; do 7846 IFS="$lt_save_ifs" 7847 test -z "$ac_dir" && ac_dir=. 7848 if test -f $ac_dir/${ac_tool_prefix}file; then 7849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7850 if test -n "$file_magic_test_file"; then 7851 case $deplibs_check_method in 7852 "file_magic "*) 7853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7856 $EGREP "$file_magic_regex" > /dev/null; then 7857 : 7858 else 7859 cat <<_LT_EOF 1>&2 7860 7861*** Warning: the command libtool uses to detect shared libraries, 7862*** $file_magic_cmd, produces output that libtool cannot recognize. 7863*** The result is that libtool may fail to recognize shared libraries 7864*** as such. This will affect the creation of libtool libraries that 7865*** depend on shared libraries, but programs linked with such libtool 7866*** libraries will work regardless of this problem. Nevertheless, you 7867*** may want to report the problem to your system manager and/or to 7868*** [email protected] 7869 7870_LT_EOF 7871 fi ;; 7872 esac 7873 fi 7874 break 7875 fi 7876 done 7877 IFS="$lt_save_ifs" 7878 MAGIC_CMD="$lt_save_MAGIC_CMD" 7879 ;; 7880esac 7881fi 7882 7883MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7884if test -n "$MAGIC_CMD"; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7886$as_echo "$MAGIC_CMD" >&6; } 7887else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7889$as_echo "no" >&6; } 7890fi 7891 7892 7893 7894 7895 7896if test -z "$lt_cv_path_MAGIC_CMD"; then 7897 if test -n "$ac_tool_prefix"; then 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7899$as_echo_n "checking for file... " >&6; } 7900if ${lt_cv_path_MAGIC_CMD+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 case $MAGIC_CMD in 7904[\\/*] | ?:[\\/]*) 7905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7906 ;; 7907*) 7908 lt_save_MAGIC_CMD="$MAGIC_CMD" 7909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7911 for ac_dir in $ac_dummy; do 7912 IFS="$lt_save_ifs" 7913 test -z "$ac_dir" && ac_dir=. 7914 if test -f $ac_dir/file; then 7915 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7916 if test -n "$file_magic_test_file"; then 7917 case $deplibs_check_method in 7918 "file_magic "*) 7919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7922 $EGREP "$file_magic_regex" > /dev/null; then 7923 : 7924 else 7925 cat <<_LT_EOF 1>&2 7926 7927*** Warning: the command libtool uses to detect shared libraries, 7928*** $file_magic_cmd, produces output that libtool cannot recognize. 7929*** The result is that libtool may fail to recognize shared libraries 7930*** as such. This will affect the creation of libtool libraries that 7931*** depend on shared libraries, but programs linked with such libtool 7932*** libraries will work regardless of this problem. Nevertheless, you 7933*** may want to report the problem to your system manager and/or to 7934*** [email protected] 7935 7936_LT_EOF 7937 fi ;; 7938 esac 7939 fi 7940 break 7941 fi 7942 done 7943 IFS="$lt_save_ifs" 7944 MAGIC_CMD="$lt_save_MAGIC_CMD" 7945 ;; 7946esac 7947fi 7948 7949MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7950if test -n "$MAGIC_CMD"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7952$as_echo "$MAGIC_CMD" >&6; } 7953else 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7955$as_echo "no" >&6; } 7956fi 7957 7958 7959 else 7960 MAGIC_CMD=: 7961 fi 7962fi 7963 7964 fi 7965 ;; 7966esac 7967 7968# Use C for the default configuration in the libtool script 7969 7970lt_save_CC="$CC" 7971ac_ext=c 7972ac_cpp='$CPP $CPPFLAGS' 7973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7975ac_compiler_gnu=$ac_cv_c_compiler_gnu 7976 7977 7978# Source file extension for C test sources. 7979ac_ext=c 7980 7981# Object file extension for compiled C test sources. 7982objext=o 7983objext=$objext 7984 7985# Code to be used in simple compile tests 7986lt_simple_compile_test_code="int some_variable = 0;" 7987 7988# Code to be used in simple link tests 7989lt_simple_link_test_code='int main(){return(0);}' 7990 7991 7992 7993 7994 7995 7996 7997# If no C compiler was specified, use CC. 7998LTCC=${LTCC-"$CC"} 7999 8000# If no C compiler flags were specified, use CFLAGS. 8001LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8002 8003# Allow CC to be a program name with arguments. 8004compiler=$CC 8005 8006# Save the default compiler, since it gets overwritten when the other 8007# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8008compiler_DEFAULT=$CC 8009 8010# save warnings/boilerplate of simple test code 8011ac_outfile=conftest.$ac_objext 8012echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8013eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8014_lt_compiler_boilerplate=`cat conftest.err` 8015$RM conftest* 8016 8017ac_outfile=conftest.$ac_objext 8018echo "$lt_simple_link_test_code" >conftest.$ac_ext 8019eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8020_lt_linker_boilerplate=`cat conftest.err` 8021$RM -r conftest* 8022 8023 8024if test -n "$compiler"; then 8025 8026lt_prog_compiler_no_builtin_flag= 8027 8028if test "$GCC" = yes; then 8029 case $cc_basename in 8030 nvcc*) 8031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8032 *) 8033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8034 esac 8035 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8037$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8038if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8039 $as_echo_n "(cached) " >&6 8040else 8041 lt_cv_prog_compiler_rtti_exceptions=no 8042 ac_outfile=conftest.$ac_objext 8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8044 lt_compiler_flag="-fno-rtti -fno-exceptions" 8045 # Insert the option either (1) after the last *FLAGS variable, or 8046 # (2) before a word containing "conftest.", or (3) at the end. 8047 # Note that $ac_compile itself does not contain backslashes and begins 8048 # with a dollar sign (not a hyphen), so the echo should work correctly. 8049 # The option is referenced via a variable to avoid confusing sed. 8050 lt_compile=`echo "$ac_compile" | $SED \ 8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8053 -e 's:$: $lt_compiler_flag:'` 8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8055 (eval "$lt_compile" 2>conftest.err) 8056 ac_status=$? 8057 cat conftest.err >&5 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 if (exit $ac_status) && test -s "$ac_outfile"; then 8060 # The compiler can only warn and ignore the option if not recognized 8061 # So say no if there are warnings other than the usual output. 8062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8065 lt_cv_prog_compiler_rtti_exceptions=yes 8066 fi 8067 fi 8068 $RM conftest* 8069 8070fi 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8072$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8073 8074if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8076else 8077 : 8078fi 8079 8080fi 8081 8082 8083 8084 8085 8086 8087 lt_prog_compiler_wl= 8088lt_prog_compiler_pic= 8089lt_prog_compiler_static= 8090 8091 8092 if test "$GCC" = yes; then 8093 lt_prog_compiler_wl='-Wl,' 8094 lt_prog_compiler_static='-static' 8095 8096 case $host_os in 8097 aix*) 8098 # All AIX code is PIC. 8099 if test "$host_cpu" = ia64; then 8100 # AIX 5 now supports IA64 processor 8101 lt_prog_compiler_static='-Bstatic' 8102 fi 8103 ;; 8104 8105 amigaos*) 8106 case $host_cpu in 8107 powerpc) 8108 # see comment about AmigaOS4 .so support 8109 lt_prog_compiler_pic='-fPIC' 8110 ;; 8111 m68k) 8112 # FIXME: we need at least 68020 code to build shared libraries, but 8113 # adding the `-m68020' flag to GCC prevents building anything better, 8114 # like `-m68040'. 8115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8116 ;; 8117 esac 8118 ;; 8119 8120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8121 # PIC is the default for these OSes. 8122 ;; 8123 8124 mingw* | cygwin* | pw32* | os2* | cegcc*) 8125 # This hack is so that the source file can tell whether it is being 8126 # built for inclusion in a dll (and should export symbols for example). 8127 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8128 # (--disable-auto-import) libraries 8129 lt_prog_compiler_pic='-DDLL_EXPORT' 8130 ;; 8131 8132 darwin* | rhapsody*) 8133 # PIC is the default on this platform 8134 # Common symbols not allowed in MH_DYLIB files 8135 lt_prog_compiler_pic='-fno-common' 8136 ;; 8137 8138 haiku*) 8139 # PIC is the default for Haiku. 8140 # The "-static" flag exists, but is broken. 8141 lt_prog_compiler_static= 8142 ;; 8143 8144 hpux*) 8145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8147 # sets the default TLS model and affects inlining. 8148 case $host_cpu in 8149 hppa*64*) 8150 # +Z the default 8151 ;; 8152 *) 8153 lt_prog_compiler_pic='-fPIC' 8154 ;; 8155 esac 8156 ;; 8157 8158 interix[3-9]*) 8159 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8160 # Instead, we relocate shared libraries at runtime. 8161 ;; 8162 8163 msdosdjgpp*) 8164 # Just because we use GCC doesn't mean we suddenly get shared libraries 8165 # on systems that don't support them. 8166 lt_prog_compiler_can_build_shared=no 8167 enable_shared=no 8168 ;; 8169 8170 *nto* | *qnx*) 8171 # QNX uses GNU C++, but need to define -shared option too, otherwise 8172 # it will coredump. 8173 lt_prog_compiler_pic='-fPIC -shared' 8174 ;; 8175 8176 sysv4*MP*) 8177 if test -d /usr/nec; then 8178 lt_prog_compiler_pic=-Kconform_pic 8179 fi 8180 ;; 8181 8182 *) 8183 lt_prog_compiler_pic='-fPIC' 8184 ;; 8185 esac 8186 8187 case $cc_basename in 8188 nvcc*) # Cuda Compiler Driver 2.2 8189 lt_prog_compiler_wl='-Xlinker ' 8190 if test -n "$lt_prog_compiler_pic"; then 8191 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8192 fi 8193 ;; 8194 esac 8195 else 8196 # PORTME Check for flag to pass linker flags through the system compiler. 8197 case $host_os in 8198 aix*) 8199 lt_prog_compiler_wl='-Wl,' 8200 if test "$host_cpu" = ia64; then 8201 # AIX 5 now supports IA64 processor 8202 lt_prog_compiler_static='-Bstatic' 8203 else 8204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8205 fi 8206 ;; 8207 8208 mingw* | cygwin* | pw32* | os2* | cegcc*) 8209 # This hack is so that the source file can tell whether it is being 8210 # built for inclusion in a dll (and should export symbols for example). 8211 lt_prog_compiler_pic='-DDLL_EXPORT' 8212 ;; 8213 8214 hpux9* | hpux10* | hpux11*) 8215 lt_prog_compiler_wl='-Wl,' 8216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8217 # not for PA HP-UX. 8218 case $host_cpu in 8219 hppa*64*|ia64*) 8220 # +Z the default 8221 ;; 8222 *) 8223 lt_prog_compiler_pic='+Z' 8224 ;; 8225 esac 8226 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8227 lt_prog_compiler_static='${wl}-a ${wl}archive' 8228 ;; 8229 8230 irix5* | irix6* | nonstopux*) 8231 lt_prog_compiler_wl='-Wl,' 8232 # PIC (with -KPIC) is the default. 8233 lt_prog_compiler_static='-non_shared' 8234 ;; 8235 8236 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8237 case $cc_basename in 8238 # old Intel for x86_64 which still supported -KPIC. 8239 ecc*) 8240 lt_prog_compiler_wl='-Wl,' 8241 lt_prog_compiler_pic='-KPIC' 8242 lt_prog_compiler_static='-static' 8243 ;; 8244 # icc used to be incompatible with GCC. 8245 # ICC 10 doesn't accept -KPIC any more. 8246 icc* | ifort*) 8247 lt_prog_compiler_wl='-Wl,' 8248 lt_prog_compiler_pic='-fPIC' 8249 lt_prog_compiler_static='-static' 8250 ;; 8251 # Lahey Fortran 8.1. 8252 lf95*) 8253 lt_prog_compiler_wl='-Wl,' 8254 lt_prog_compiler_pic='--shared' 8255 lt_prog_compiler_static='--static' 8256 ;; 8257 nagfor*) 8258 # NAG Fortran compiler 8259 lt_prog_compiler_wl='-Wl,-Wl,,' 8260 lt_prog_compiler_pic='-PIC' 8261 lt_prog_compiler_static='-Bstatic' 8262 ;; 8263 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8264 # Portland Group compilers (*not* the Pentium gcc compiler, 8265 # which looks to be a dead project) 8266 lt_prog_compiler_wl='-Wl,' 8267 lt_prog_compiler_pic='-fpic' 8268 lt_prog_compiler_static='-Bstatic' 8269 ;; 8270 ccc*) 8271 lt_prog_compiler_wl='-Wl,' 8272 # All Alpha code is PIC. 8273 lt_prog_compiler_static='-non_shared' 8274 ;; 8275 xl* | bgxl* | bgf* | mpixl*) 8276 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8277 lt_prog_compiler_wl='-Wl,' 8278 lt_prog_compiler_pic='-qpic' 8279 lt_prog_compiler_static='-qstaticlink' 8280 ;; 8281 *) 8282 case `$CC -V 2>&1 | sed 5q` in 8283 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8284 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8285 lt_prog_compiler_pic='-KPIC' 8286 lt_prog_compiler_static='-Bstatic' 8287 lt_prog_compiler_wl='' 8288 ;; 8289 *Sun\ F* | *Sun*Fortran*) 8290 lt_prog_compiler_pic='-KPIC' 8291 lt_prog_compiler_static='-Bstatic' 8292 lt_prog_compiler_wl='-Qoption ld ' 8293 ;; 8294 *Sun\ C*) 8295 # Sun C 5.9 8296 lt_prog_compiler_pic='-KPIC' 8297 lt_prog_compiler_static='-Bstatic' 8298 lt_prog_compiler_wl='-Wl,' 8299 ;; 8300 *Intel*\ [CF]*Compiler*) 8301 lt_prog_compiler_wl='-Wl,' 8302 lt_prog_compiler_pic='-fPIC' 8303 lt_prog_compiler_static='-static' 8304 ;; 8305 *Portland\ Group*) 8306 lt_prog_compiler_wl='-Wl,' 8307 lt_prog_compiler_pic='-fpic' 8308 lt_prog_compiler_static='-Bstatic' 8309 ;; 8310 esac 8311 ;; 8312 esac 8313 ;; 8314 8315 newsos6) 8316 lt_prog_compiler_pic='-KPIC' 8317 lt_prog_compiler_static='-Bstatic' 8318 ;; 8319 8320 *nto* | *qnx*) 8321 # QNX uses GNU C++, but need to define -shared option too, otherwise 8322 # it will coredump. 8323 lt_prog_compiler_pic='-fPIC -shared' 8324 ;; 8325 8326 osf3* | osf4* | osf5*) 8327 lt_prog_compiler_wl='-Wl,' 8328 # All OSF/1 code is PIC. 8329 lt_prog_compiler_static='-non_shared' 8330 ;; 8331 8332 rdos*) 8333 lt_prog_compiler_static='-non_shared' 8334 ;; 8335 8336 solaris*) 8337 lt_prog_compiler_pic='-KPIC' 8338 lt_prog_compiler_static='-Bstatic' 8339 case $cc_basename in 8340 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8341 lt_prog_compiler_wl='-Qoption ld ';; 8342 *) 8343 lt_prog_compiler_wl='-Wl,';; 8344 esac 8345 ;; 8346 8347 sunos4*) 8348 lt_prog_compiler_wl='-Qoption ld ' 8349 lt_prog_compiler_pic='-PIC' 8350 lt_prog_compiler_static='-Bstatic' 8351 ;; 8352 8353 sysv4 | sysv4.2uw2* | sysv4.3*) 8354 lt_prog_compiler_wl='-Wl,' 8355 lt_prog_compiler_pic='-KPIC' 8356 lt_prog_compiler_static='-Bstatic' 8357 ;; 8358 8359 sysv4*MP*) 8360 if test -d /usr/nec ;then 8361 lt_prog_compiler_pic='-Kconform_pic' 8362 lt_prog_compiler_static='-Bstatic' 8363 fi 8364 ;; 8365 8366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8367 lt_prog_compiler_wl='-Wl,' 8368 lt_prog_compiler_pic='-KPIC' 8369 lt_prog_compiler_static='-Bstatic' 8370 ;; 8371 8372 unicos*) 8373 lt_prog_compiler_wl='-Wl,' 8374 lt_prog_compiler_can_build_shared=no 8375 ;; 8376 8377 uts4*) 8378 lt_prog_compiler_pic='-pic' 8379 lt_prog_compiler_static='-Bstatic' 8380 ;; 8381 8382 *) 8383 lt_prog_compiler_can_build_shared=no 8384 ;; 8385 esac 8386 fi 8387 8388case $host_os in 8389 # For platforms which do not support PIC, -DPIC is meaningless: 8390 *djgpp*) 8391 lt_prog_compiler_pic= 8392 ;; 8393 *) 8394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8395 ;; 8396esac 8397 8398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8399$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8400if ${lt_cv_prog_compiler_pic+:} false; then : 8401 $as_echo_n "(cached) " >&6 8402else 8403 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8404fi 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8406$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8407lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8408 8409# 8410# Check to make sure the PIC flag actually works. 8411# 8412if test -n "$lt_prog_compiler_pic"; then 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8414$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8415if ${lt_cv_prog_compiler_pic_works+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 lt_cv_prog_compiler_pic_works=no 8419 ac_outfile=conftest.$ac_objext 8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8422 # Insert the option either (1) after the last *FLAGS variable, or 8423 # (2) before a word containing "conftest.", or (3) at the end. 8424 # Note that $ac_compile itself does not contain backslashes and begins 8425 # with a dollar sign (not a hyphen), so the echo should work correctly. 8426 # The option is referenced via a variable to avoid confusing sed. 8427 lt_compile=`echo "$ac_compile" | $SED \ 8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8430 -e 's:$: $lt_compiler_flag:'` 8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8432 (eval "$lt_compile" 2>conftest.err) 8433 ac_status=$? 8434 cat conftest.err >&5 8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8436 if (exit $ac_status) && test -s "$ac_outfile"; then 8437 # The compiler can only warn and ignore the option if not recognized 8438 # So say no if there are warnings other than the usual output. 8439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8442 lt_cv_prog_compiler_pic_works=yes 8443 fi 8444 fi 8445 $RM conftest* 8446 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8449$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8450 8451if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8452 case $lt_prog_compiler_pic in 8453 "" | " "*) ;; 8454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8455 esac 8456else 8457 lt_prog_compiler_pic= 8458 lt_prog_compiler_can_build_shared=no 8459fi 8460 8461fi 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473# 8474# Check to make sure the static flag actually works. 8475# 8476wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8478$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8479if ${lt_cv_prog_compiler_static_works+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 lt_cv_prog_compiler_static_works=no 8483 save_LDFLAGS="$LDFLAGS" 8484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8485 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8487 # The linker can only warn and ignore the option if not recognized 8488 # So say no if there are warnings 8489 if test -s conftest.err; then 8490 # Append any errors to the config.log. 8491 cat conftest.err 1>&5 8492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8494 if diff conftest.exp conftest.er2 >/dev/null; then 8495 lt_cv_prog_compiler_static_works=yes 8496 fi 8497 else 8498 lt_cv_prog_compiler_static_works=yes 8499 fi 8500 fi 8501 $RM -r conftest* 8502 LDFLAGS="$save_LDFLAGS" 8503 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8506$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8507 8508if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8509 : 8510else 8511 lt_prog_compiler_static= 8512fi 8513 8514 8515 8516 8517 8518 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8522if ${lt_cv_prog_compiler_c_o+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 lt_cv_prog_compiler_c_o=no 8526 $RM -r conftest 2>/dev/null 8527 mkdir conftest 8528 cd conftest 8529 mkdir out 8530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8531 8532 lt_compiler_flag="-o out/conftest2.$ac_objext" 8533 # Insert the option either (1) after the last *FLAGS variable, or 8534 # (2) before a word containing "conftest.", or (3) at the end. 8535 # Note that $ac_compile itself does not contain backslashes and begins 8536 # with a dollar sign (not a hyphen), so the echo should work correctly. 8537 lt_compile=`echo "$ac_compile" | $SED \ 8538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8540 -e 's:$: $lt_compiler_flag:'` 8541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8542 (eval "$lt_compile" 2>out/conftest.err) 8543 ac_status=$? 8544 cat out/conftest.err >&5 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8547 then 8548 # The compiler can only warn and ignore the option if not recognized 8549 # So say no if there are warnings 8550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8553 lt_cv_prog_compiler_c_o=yes 8554 fi 8555 fi 8556 chmod u+w . 2>&5 8557 $RM conftest* 8558 # SGI C++ compiler will create directory out/ii_files/ for 8559 # template instantiation 8560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8561 $RM out/* && rmdir out 8562 cd .. 8563 $RM -r conftest 8564 $RM conftest* 8565 8566fi 8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8568$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8569 8570 8571 8572 8573 8574 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8577if ${lt_cv_prog_compiler_c_o+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 lt_cv_prog_compiler_c_o=no 8581 $RM -r conftest 2>/dev/null 8582 mkdir conftest 8583 cd conftest 8584 mkdir out 8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8586 8587 lt_compiler_flag="-o out/conftest2.$ac_objext" 8588 # Insert the option either (1) after the last *FLAGS variable, or 8589 # (2) before a word containing "conftest.", or (3) at the end. 8590 # Note that $ac_compile itself does not contain backslashes and begins 8591 # with a dollar sign (not a hyphen), so the echo should work correctly. 8592 lt_compile=`echo "$ac_compile" | $SED \ 8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8595 -e 's:$: $lt_compiler_flag:'` 8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8597 (eval "$lt_compile" 2>out/conftest.err) 8598 ac_status=$? 8599 cat out/conftest.err >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8602 then 8603 # The compiler can only warn and ignore the option if not recognized 8604 # So say no if there are warnings 8605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8608 lt_cv_prog_compiler_c_o=yes 8609 fi 8610 fi 8611 chmod u+w . 2>&5 8612 $RM conftest* 8613 # SGI C++ compiler will create directory out/ii_files/ for 8614 # template instantiation 8615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8616 $RM out/* && rmdir out 8617 cd .. 8618 $RM -r conftest 8619 $RM conftest* 8620 8621fi 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8623$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8624 8625 8626 8627 8628hard_links="nottested" 8629if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8630 # do not overwrite the value of need_locks provided by the user 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8632$as_echo_n "checking if we can lock with hard links... " >&6; } 8633 hard_links=yes 8634 $RM conftest* 8635 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8636 touch conftest.a 8637 ln conftest.a conftest.b 2>&5 || hard_links=no 8638 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8640$as_echo "$hard_links" >&6; } 8641 if test "$hard_links" = no; then 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8643$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8644 need_locks=warn 8645 fi 8646else 8647 need_locks=no 8648fi 8649 8650 8651 8652 8653 8654 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8656$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8657 8658 runpath_var= 8659 allow_undefined_flag= 8660 always_export_symbols=no 8661 archive_cmds= 8662 archive_expsym_cmds= 8663 compiler_needs_object=no 8664 enable_shared_with_static_runtimes=no 8665 export_dynamic_flag_spec= 8666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8667 hardcode_automatic=no 8668 hardcode_direct=no 8669 hardcode_direct_absolute=no 8670 hardcode_libdir_flag_spec= 8671 hardcode_libdir_separator= 8672 hardcode_minus_L=no 8673 hardcode_shlibpath_var=unsupported 8674 inherit_rpath=no 8675 link_all_deplibs=unknown 8676 module_cmds= 8677 module_expsym_cmds= 8678 old_archive_from_new_cmds= 8679 old_archive_from_expsyms_cmds= 8680 thread_safe_flag_spec= 8681 whole_archive_flag_spec= 8682 # include_expsyms should be a list of space-separated symbols to be *always* 8683 # included in the symbol list 8684 include_expsyms= 8685 # exclude_expsyms can be an extended regexp of symbols to exclude 8686 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8688 # as well as any symbol that contains `d'. 8689 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8691 # platforms (ab)use it in PIC code, but their linkers get confused if 8692 # the symbol is explicitly referenced. Since portable code cannot 8693 # rely on this symbol name, it's probably fine to never include it in 8694 # preloaded symbol tables. 8695 # Exclude shared library initialization/finalization symbols. 8696 extract_expsyms_cmds= 8697 8698 case $host_os in 8699 cygwin* | mingw* | pw32* | cegcc*) 8700 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8701 # When not using gcc, we currently assume that we are using 8702 # Microsoft Visual C++. 8703 if test "$GCC" != yes; then 8704 with_gnu_ld=no 8705 fi 8706 ;; 8707 interix*) 8708 # we just hope/assume this is gcc and not c89 (= MSVC++) 8709 with_gnu_ld=yes 8710 ;; 8711 openbsd*) 8712 with_gnu_ld=no 8713 ;; 8714 esac 8715 8716 ld_shlibs=yes 8717 8718 # On some targets, GNU ld is compatible enough with the native linker 8719 # that we're better off using the native interface for both. 8720 lt_use_gnu_ld_interface=no 8721 if test "$with_gnu_ld" = yes; then 8722 case $host_os in 8723 aix*) 8724 # The AIX port of GNU ld has always aspired to compatibility 8725 # with the native linker. However, as the warning in the GNU ld 8726 # block says, versions before 2.19.5* couldn't really create working 8727 # shared libraries, regardless of the interface used. 8728 case `$LD -v 2>&1` in 8729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8731 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8732 *) 8733 lt_use_gnu_ld_interface=yes 8734 ;; 8735 esac 8736 ;; 8737 *) 8738 lt_use_gnu_ld_interface=yes 8739 ;; 8740 esac 8741 fi 8742 8743 if test "$lt_use_gnu_ld_interface" = yes; then 8744 # If archive_cmds runs LD, not CC, wlarc should be empty 8745 wlarc='${wl}' 8746 8747 # Set some defaults for GNU ld with shared library support. These 8748 # are reset later if shared libraries are not supported. Putting them 8749 # here allows them to be overridden if necessary. 8750 runpath_var=LD_RUN_PATH 8751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8752 export_dynamic_flag_spec='${wl}--export-dynamic' 8753 # ancient GNU ld didn't support --whole-archive et. al. 8754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8755 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8756 else 8757 whole_archive_flag_spec= 8758 fi 8759 supports_anon_versioning=no 8760 case `$LD -v 2>&1` in 8761 *GNU\ gold*) supports_anon_versioning=yes ;; 8762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8765 *\ 2.11.*) ;; # other 2.11 versions 8766 *) supports_anon_versioning=yes ;; 8767 esac 8768 8769 # See if GNU ld supports shared libraries. 8770 case $host_os in 8771 aix[3-9]*) 8772 # On AIX/PPC, the GNU linker is very broken 8773 if test "$host_cpu" != ia64; then 8774 ld_shlibs=no 8775 cat <<_LT_EOF 1>&2 8776 8777*** Warning: the GNU linker, at least up to release 2.19, is reported 8778*** to be unable to reliably create shared libraries on AIX. 8779*** Therefore, libtool is disabling shared libraries support. If you 8780*** really care for shared libraries, you may want to install binutils 8781*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8782*** You will then need to restart the configuration process. 8783 8784_LT_EOF 8785 fi 8786 ;; 8787 8788 amigaos*) 8789 case $host_cpu in 8790 powerpc) 8791 # see comment about AmigaOS4 .so support 8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8793 archive_expsym_cmds='' 8794 ;; 8795 m68k) 8796 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)' 8797 hardcode_libdir_flag_spec='-L$libdir' 8798 hardcode_minus_L=yes 8799 ;; 8800 esac 8801 ;; 8802 8803 beos*) 8804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8805 allow_undefined_flag=unsupported 8806 # Joseph Beckenbach <[email protected]> says some releases of gcc 8807 # support --undefined. This deserves some investigation. FIXME 8808 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8809 else 8810 ld_shlibs=no 8811 fi 8812 ;; 8813 8814 cygwin* | mingw* | pw32* | cegcc*) 8815 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8816 # as there is no search path for DLLs. 8817 hardcode_libdir_flag_spec='-L$libdir' 8818 export_dynamic_flag_spec='${wl}--export-all-symbols' 8819 allow_undefined_flag=unsupported 8820 always_export_symbols=no 8821 enable_shared_with_static_runtimes=yes 8822 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' 8823 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8824 8825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8827 # If the export-symbols file already is a .def file (1st line 8828 # is EXPORTS), use it as is; otherwise, prepend... 8829 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8830 cp $export_symbols $output_objdir/$soname.def; 8831 else 8832 echo EXPORTS > $output_objdir/$soname.def; 8833 cat $export_symbols >> $output_objdir/$soname.def; 8834 fi~ 8835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8836 else 8837 ld_shlibs=no 8838 fi 8839 ;; 8840 8841 haiku*) 8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8843 link_all_deplibs=yes 8844 ;; 8845 8846 interix[3-9]*) 8847 hardcode_direct=no 8848 hardcode_shlibpath_var=no 8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8850 export_dynamic_flag_spec='${wl}-E' 8851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8852 # Instead, shared libraries are loaded at an image base (0x10000000 by 8853 # default) and relocated if they conflict, which is a slow very memory 8854 # consuming and fragmenting process. To avoid this, we pick a random, 8855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8856 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8858 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' 8859 ;; 8860 8861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8862 tmp_diet=no 8863 if test "$host_os" = linux-dietlibc; then 8864 case $cc_basename in 8865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8866 esac 8867 fi 8868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8869 && test "$tmp_diet" = no 8870 then 8871 tmp_addflag=' $pic_flag' 8872 tmp_sharedflag='-shared' 8873 case $cc_basename,$host_cpu in 8874 pgcc*) # Portland Group C compiler 8875 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' 8876 tmp_addflag=' $pic_flag' 8877 ;; 8878 pgf77* | pgf90* | pgf95* | pgfortran*) 8879 # Portland Group f77 and f90 compilers 8880 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' 8881 tmp_addflag=' $pic_flag -Mnomain' ;; 8882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8883 tmp_addflag=' -i_dynamic' ;; 8884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8885 tmp_addflag=' -i_dynamic -nofor_main' ;; 8886 ifc* | ifort*) # Intel Fortran compiler 8887 tmp_addflag=' -nofor_main' ;; 8888 lf95*) # Lahey Fortran 8.1 8889 whole_archive_flag_spec= 8890 tmp_sharedflag='--shared' ;; 8891 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8892 tmp_sharedflag='-qmkshrobj' 8893 tmp_addflag= ;; 8894 nvcc*) # Cuda Compiler Driver 2.2 8895 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' 8896 compiler_needs_object=yes 8897 ;; 8898 esac 8899 case `$CC -V 2>&1 | sed 5q` in 8900 *Sun\ C*) # Sun C 5.9 8901 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' 8902 compiler_needs_object=yes 8903 tmp_sharedflag='-G' ;; 8904 *Sun\ F*) # Sun Fortran 8.3 8905 tmp_sharedflag='-G' ;; 8906 esac 8907 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8908 8909 if test "x$supports_anon_versioning" = xyes; then 8910 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8912 echo "local: *; };" >> $output_objdir/$libname.ver~ 8913 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8914 fi 8915 8916 case $cc_basename in 8917 xlf* | bgf* | bgxlf* | mpixlf*) 8918 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8919 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8921 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8922 if test "x$supports_anon_versioning" = xyes; then 8923 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8925 echo "local: *; };" >> $output_objdir/$libname.ver~ 8926 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8927 fi 8928 ;; 8929 esac 8930 else 8931 ld_shlibs=no 8932 fi 8933 ;; 8934 8935 netbsd*) 8936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8937 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8938 wlarc= 8939 else 8940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8942 fi 8943 ;; 8944 8945 solaris*) 8946 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8947 ld_shlibs=no 8948 cat <<_LT_EOF 1>&2 8949 8950*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8951*** create shared libraries on Solaris systems. Therefore, libtool 8952*** is disabling shared libraries support. We urge you to upgrade GNU 8953*** binutils to release 2.9.1 or newer. Another option is to modify 8954*** your PATH or compiler configuration so that the native linker is 8955*** used, and then restart. 8956 8957_LT_EOF 8958 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8961 else 8962 ld_shlibs=no 8963 fi 8964 ;; 8965 8966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8967 case `$LD -v 2>&1` in 8968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8969 ld_shlibs=no 8970 cat <<_LT_EOF 1>&2 8971 8972*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8973*** reliably create shared libraries on SCO systems. Therefore, libtool 8974*** is disabling shared libraries support. We urge you to upgrade GNU 8975*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8976*** your PATH or compiler configuration so that the native linker is 8977*** used, and then restart. 8978 8979_LT_EOF 8980 ;; 8981 *) 8982 # For security reasons, it is highly recommended that you always 8983 # use absolute paths for naming shared libraries, and exclude the 8984 # DT_RUNPATH tag from executables and libraries. But doing so 8985 # requires that you compile everything twice, which is a pain. 8986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8990 else 8991 ld_shlibs=no 8992 fi 8993 ;; 8994 esac 8995 ;; 8996 8997 sunos4*) 8998 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8999 wlarc= 9000 hardcode_direct=yes 9001 hardcode_shlibpath_var=no 9002 ;; 9003 9004 *) 9005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9007 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9008 else 9009 ld_shlibs=no 9010 fi 9011 ;; 9012 esac 9013 9014 if test "$ld_shlibs" = no; then 9015 runpath_var= 9016 hardcode_libdir_flag_spec= 9017 export_dynamic_flag_spec= 9018 whole_archive_flag_spec= 9019 fi 9020 else 9021 # PORTME fill in a description of your system's linker (not GNU ld) 9022 case $host_os in 9023 aix3*) 9024 allow_undefined_flag=unsupported 9025 always_export_symbols=yes 9026 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' 9027 # Note: this linker hardcodes the directories in LIBPATH if there 9028 # are no directories specified by -L. 9029 hardcode_minus_L=yes 9030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9031 # Neither direct hardcoding nor static linking is supported with a 9032 # broken collect2. 9033 hardcode_direct=unsupported 9034 fi 9035 ;; 9036 9037 aix[4-9]*) 9038 if test "$host_cpu" = ia64; then 9039 # On IA64, the linker does run time linking by default, so we don't 9040 # have to do anything special. 9041 aix_use_runtimelinking=no 9042 exp_sym_flag='-Bexport' 9043 no_entry_flag="" 9044 else 9045 # If we're using GNU nm, then we don't want the "-C" option. 9046 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9047 # Also, AIX nm treats weak defined symbols like other global 9048 # defined symbols, whereas GNU nm marks them as "W". 9049 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9050 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9051 else 9052 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9053 fi 9054 aix_use_runtimelinking=no 9055 9056 # Test if we are trying to use run time linking or normal 9057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9058 # need to do runtime linking. 9059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9060 for ld_flag in $LDFLAGS; do 9061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9062 aix_use_runtimelinking=yes 9063 break 9064 fi 9065 done 9066 ;; 9067 esac 9068 9069 exp_sym_flag='-bexport' 9070 no_entry_flag='-bnoentry' 9071 fi 9072 9073 # When large executables or shared objects are built, AIX ld can 9074 # have problems creating the table of contents. If linking a library 9075 # or program results in "error TOC overflow" add -mminimal-toc to 9076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9078 9079 archive_cmds='' 9080 hardcode_direct=yes 9081 hardcode_direct_absolute=yes 9082 hardcode_libdir_separator=':' 9083 link_all_deplibs=yes 9084 file_list_spec='${wl}-f,' 9085 9086 if test "$GCC" = yes; then 9087 case $host_os in aix4.[012]|aix4.[012].*) 9088 # We only want to do this on AIX 4.2 and lower, the check 9089 # below for broken collect2 doesn't work under 4.3+ 9090 collect2name=`${CC} -print-prog-name=collect2` 9091 if test -f "$collect2name" && 9092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9093 then 9094 # We have reworked collect2 9095 : 9096 else 9097 # We have old collect2 9098 hardcode_direct=unsupported 9099 # It fails to find uninstalled libraries when the uninstalled 9100 # path is not listed in the libpath. Setting hardcode_minus_L 9101 # to unsupported forces relinking 9102 hardcode_minus_L=yes 9103 hardcode_libdir_flag_spec='-L$libdir' 9104 hardcode_libdir_separator= 9105 fi 9106 ;; 9107 esac 9108 shared_flag='-shared' 9109 if test "$aix_use_runtimelinking" = yes; then 9110 shared_flag="$shared_flag "'${wl}-G' 9111 fi 9112 else 9113 # not using gcc 9114 if test "$host_cpu" = ia64; then 9115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9116 # chokes on -Wl,-G. The following line is correct: 9117 shared_flag='-G' 9118 else 9119 if test "$aix_use_runtimelinking" = yes; then 9120 shared_flag='${wl}-G' 9121 else 9122 shared_flag='${wl}-bM:SRE' 9123 fi 9124 fi 9125 fi 9126 9127 export_dynamic_flag_spec='${wl}-bexpall' 9128 # It seems that -bexpall does not export symbols beginning with 9129 # underscore (_), so it is better to generate a list of symbols to export. 9130 always_export_symbols=yes 9131 if test "$aix_use_runtimelinking" = yes; then 9132 # Warning - without using the other runtime loading flags (-brtl), 9133 # -berok will link without error, but may produce a broken library. 9134 allow_undefined_flag='-berok' 9135 # Determine the default libpath from the value encoded in an 9136 # empty executable. 9137 if test "${lt_cv_aix_libpath+set}" = set; then 9138 aix_libpath=$lt_cv_aix_libpath 9139else 9140 if ${lt_cv_aix_libpath_+:} false; then : 9141 $as_echo_n "(cached) " >&6 9142else 9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9144/* end confdefs.h. */ 9145 9146int 9147main () 9148{ 9149 9150 ; 9151 return 0; 9152} 9153_ACEOF 9154if ac_fn_c_try_link "$LINENO"; then : 9155 9156 lt_aix_libpath_sed=' 9157 /Import File Strings/,/^$/ { 9158 /^0/ { 9159 s/^0 *\([^ ]*\) *$/\1/ 9160 p 9161 } 9162 }' 9163 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9164 # Check for a 64-bit object if we didn't find anything. 9165 if test -z "$lt_cv_aix_libpath_"; then 9166 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9167 fi 9168fi 9169rm -f core conftest.err conftest.$ac_objext \ 9170 conftest$ac_exeext conftest.$ac_ext 9171 if test -z "$lt_cv_aix_libpath_"; then 9172 lt_cv_aix_libpath_="/usr/lib:/lib" 9173 fi 9174 9175fi 9176 9177 aix_libpath=$lt_cv_aix_libpath_ 9178fi 9179 9180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9181 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9182 else 9183 if test "$host_cpu" = ia64; then 9184 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9185 allow_undefined_flag="-z nodefs" 9186 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" 9187 else 9188 # Determine the default libpath from the value encoded in an 9189 # empty executable. 9190 if test "${lt_cv_aix_libpath+set}" = set; then 9191 aix_libpath=$lt_cv_aix_libpath 9192else 9193 if ${lt_cv_aix_libpath_+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198 9199int 9200main () 9201{ 9202 9203 ; 9204 return 0; 9205} 9206_ACEOF 9207if ac_fn_c_try_link "$LINENO"; then : 9208 9209 lt_aix_libpath_sed=' 9210 /Import File Strings/,/^$/ { 9211 /^0/ { 9212 s/^0 *\([^ ]*\) *$/\1/ 9213 p 9214 } 9215 }' 9216 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9217 # Check for a 64-bit object if we didn't find anything. 9218 if test -z "$lt_cv_aix_libpath_"; then 9219 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9220 fi 9221fi 9222rm -f core conftest.err conftest.$ac_objext \ 9223 conftest$ac_exeext conftest.$ac_ext 9224 if test -z "$lt_cv_aix_libpath_"; then 9225 lt_cv_aix_libpath_="/usr/lib:/lib" 9226 fi 9227 9228fi 9229 9230 aix_libpath=$lt_cv_aix_libpath_ 9231fi 9232 9233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9234 # Warning - without using the other run time loading flags, 9235 # -berok will link without error, but may produce a broken library. 9236 no_undefined_flag=' ${wl}-bernotok' 9237 allow_undefined_flag=' ${wl}-berok' 9238 if test "$with_gnu_ld" = yes; then 9239 # We only use this code for GNU lds that support --whole-archive. 9240 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9241 else 9242 # Exported symbols can be pulled into shared objects from archives 9243 whole_archive_flag_spec='$convenience' 9244 fi 9245 archive_cmds_need_lc=yes 9246 # This is similar to how AIX traditionally builds its shared libraries. 9247 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9248 fi 9249 fi 9250 ;; 9251 9252 amigaos*) 9253 case $host_cpu in 9254 powerpc) 9255 # see comment about AmigaOS4 .so support 9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9257 archive_expsym_cmds='' 9258 ;; 9259 m68k) 9260 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)' 9261 hardcode_libdir_flag_spec='-L$libdir' 9262 hardcode_minus_L=yes 9263 ;; 9264 esac 9265 ;; 9266 9267 bsdi[45]*) 9268 export_dynamic_flag_spec=-rdynamic 9269 ;; 9270 9271 cygwin* | mingw* | pw32* | cegcc*) 9272 # When not using gcc, we currently assume that we are using 9273 # Microsoft Visual C++. 9274 # hardcode_libdir_flag_spec is actually meaningless, as there is 9275 # no search path for DLLs. 9276 case $cc_basename in 9277 cl*) 9278 # Native MSVC 9279 hardcode_libdir_flag_spec=' ' 9280 allow_undefined_flag=unsupported 9281 always_export_symbols=yes 9282 file_list_spec='@' 9283 # Tell ltmain to make .lib files, not .a files. 9284 libext=lib 9285 # Tell ltmain to make .dll files, not .so files. 9286 shrext_cmds=".dll" 9287 # FIXME: Setting linknames here is a bad hack. 9288 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9289 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9290 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9291 else 9292 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9293 fi~ 9294 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9295 linknames=' 9296 # The linker will not automatically build a static lib if we build a DLL. 9297 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9298 enable_shared_with_static_runtimes=yes 9299 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9301 # Don't use ranlib 9302 old_postinstall_cmds='chmod 644 $oldlib' 9303 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9304 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9305 case $lt_outputfile in 9306 *.exe|*.EXE) ;; 9307 *) 9308 lt_outputfile="$lt_outputfile.exe" 9309 lt_tool_outputfile="$lt_tool_outputfile.exe" 9310 ;; 9311 esac~ 9312 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9313 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9314 $RM "$lt_outputfile.manifest"; 9315 fi' 9316 ;; 9317 *) 9318 # Assume MSVC wrapper 9319 hardcode_libdir_flag_spec=' ' 9320 allow_undefined_flag=unsupported 9321 # Tell ltmain to make .lib files, not .a files. 9322 libext=lib 9323 # Tell ltmain to make .dll files, not .so files. 9324 shrext_cmds=".dll" 9325 # FIXME: Setting linknames here is a bad hack. 9326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9327 # The linker will automatically build a .lib file if we build a DLL. 9328 old_archive_from_new_cmds='true' 9329 # FIXME: Should let the user specify the lib program. 9330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9331 enable_shared_with_static_runtimes=yes 9332 ;; 9333 esac 9334 ;; 9335 9336 darwin* | rhapsody*) 9337 9338 9339 archive_cmds_need_lc=no 9340 hardcode_direct=no 9341 hardcode_automatic=yes 9342 hardcode_shlibpath_var=unsupported 9343 if test "$lt_cv_ld_force_load" = "yes"; then 9344 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\"`' 9345 9346 else 9347 whole_archive_flag_spec='' 9348 fi 9349 link_all_deplibs=yes 9350 allow_undefined_flag="$_lt_dar_allow_undefined" 9351 case $cc_basename in 9352 ifort*) _lt_dar_can_shared=yes ;; 9353 *) _lt_dar_can_shared=$GCC ;; 9354 esac 9355 if test "$_lt_dar_can_shared" = "yes"; then 9356 output_verbose_link_cmd=func_echo_all 9357 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9358 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9359 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}" 9360 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}" 9361 9362 else 9363 ld_shlibs=no 9364 fi 9365 9366 ;; 9367 9368 dgux*) 9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9370 hardcode_libdir_flag_spec='-L$libdir' 9371 hardcode_shlibpath_var=no 9372 ;; 9373 9374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9375 # support. Future versions do this automatically, but an explicit c++rt0.o 9376 # does not break anything, and helps significantly (at the cost of a little 9377 # extra space). 9378 freebsd2.2*) 9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9380 hardcode_libdir_flag_spec='-R$libdir' 9381 hardcode_direct=yes 9382 hardcode_shlibpath_var=no 9383 ;; 9384 9385 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9386 freebsd2.*) 9387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9388 hardcode_direct=yes 9389 hardcode_minus_L=yes 9390 hardcode_shlibpath_var=no 9391 ;; 9392 9393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9394 freebsd* | dragonfly*) 9395 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9396 hardcode_libdir_flag_spec='-R$libdir' 9397 hardcode_direct=yes 9398 hardcode_shlibpath_var=no 9399 ;; 9400 9401 hpux9*) 9402 if test "$GCC" = yes; then 9403 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9404 else 9405 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9406 fi 9407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9408 hardcode_libdir_separator=: 9409 hardcode_direct=yes 9410 9411 # hardcode_minus_L: Not really in the search PATH, 9412 # but as the default location of the library. 9413 hardcode_minus_L=yes 9414 export_dynamic_flag_spec='${wl}-E' 9415 ;; 9416 9417 hpux10*) 9418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9420 else 9421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9422 fi 9423 if test "$with_gnu_ld" = no; then 9424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9425 hardcode_libdir_separator=: 9426 hardcode_direct=yes 9427 hardcode_direct_absolute=yes 9428 export_dynamic_flag_spec='${wl}-E' 9429 # hardcode_minus_L: Not really in the search PATH, 9430 # but as the default location of the library. 9431 hardcode_minus_L=yes 9432 fi 9433 ;; 9434 9435 hpux11*) 9436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9437 case $host_cpu in 9438 hppa*64*) 9439 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9440 ;; 9441 ia64*) 9442 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9443 ;; 9444 *) 9445 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9446 ;; 9447 esac 9448 else 9449 case $host_cpu in 9450 hppa*64*) 9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9452 ;; 9453 ia64*) 9454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9455 ;; 9456 *) 9457 9458 # Older versions of the 11.00 compiler do not understand -b yet 9459 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9461$as_echo_n "checking if $CC understands -b... " >&6; } 9462if ${lt_cv_prog_compiler__b+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 lt_cv_prog_compiler__b=no 9466 save_LDFLAGS="$LDFLAGS" 9467 LDFLAGS="$LDFLAGS -b" 9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9470 # The linker can only warn and ignore the option if not recognized 9471 # So say no if there are warnings 9472 if test -s conftest.err; then 9473 # Append any errors to the config.log. 9474 cat conftest.err 1>&5 9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9477 if diff conftest.exp conftest.er2 >/dev/null; then 9478 lt_cv_prog_compiler__b=yes 9479 fi 9480 else 9481 lt_cv_prog_compiler__b=yes 9482 fi 9483 fi 9484 $RM -r conftest* 9485 LDFLAGS="$save_LDFLAGS" 9486 9487fi 9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9489$as_echo "$lt_cv_prog_compiler__b" >&6; } 9490 9491if test x"$lt_cv_prog_compiler__b" = xyes; then 9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9493else 9494 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9495fi 9496 9497 ;; 9498 esac 9499 fi 9500 if test "$with_gnu_ld" = no; then 9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9502 hardcode_libdir_separator=: 9503 9504 case $host_cpu in 9505 hppa*64*|ia64*) 9506 hardcode_direct=no 9507 hardcode_shlibpath_var=no 9508 ;; 9509 *) 9510 hardcode_direct=yes 9511 hardcode_direct_absolute=yes 9512 export_dynamic_flag_spec='${wl}-E' 9513 9514 # hardcode_minus_L: Not really in the search PATH, 9515 # but as the default location of the library. 9516 hardcode_minus_L=yes 9517 ;; 9518 esac 9519 fi 9520 ;; 9521 9522 irix5* | irix6* | nonstopux*) 9523 if test "$GCC" = yes; then 9524 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' 9525 # Try to use the -exported_symbol ld option, if it does not 9526 # work, assume that -exports_file does not work either and 9527 # implicitly export all symbols. 9528 # This should be the same for all languages, so no per-tag cache variable. 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9530$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9531if ${lt_cv_irix_exported_symbol+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 save_LDFLAGS="$LDFLAGS" 9535 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int foo (void) { return 0; } 9539_ACEOF 9540if ac_fn_c_try_link "$LINENO"; then : 9541 lt_cv_irix_exported_symbol=yes 9542else 9543 lt_cv_irix_exported_symbol=no 9544fi 9545rm -f core conftest.err conftest.$ac_objext \ 9546 conftest$ac_exeext conftest.$ac_ext 9547 LDFLAGS="$save_LDFLAGS" 9548fi 9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9550$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9551 if test "$lt_cv_irix_exported_symbol" = yes; then 9552 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' 9553 fi 9554 else 9555 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' 9556 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' 9557 fi 9558 archive_cmds_need_lc='no' 9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9560 hardcode_libdir_separator=: 9561 inherit_rpath=yes 9562 link_all_deplibs=yes 9563 ;; 9564 9565 netbsd*) 9566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9568 else 9569 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9570 fi 9571 hardcode_libdir_flag_spec='-R$libdir' 9572 hardcode_direct=yes 9573 hardcode_shlibpath_var=no 9574 ;; 9575 9576 newsos6) 9577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9578 hardcode_direct=yes 9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9580 hardcode_libdir_separator=: 9581 hardcode_shlibpath_var=no 9582 ;; 9583 9584 *nto* | *qnx*) 9585 ;; 9586 9587 openbsd*) 9588 if test -f /usr/libexec/ld.so; then 9589 hardcode_direct=yes 9590 hardcode_shlibpath_var=no 9591 hardcode_direct_absolute=yes 9592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9594 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9596 export_dynamic_flag_spec='${wl}-E' 9597 else 9598 case $host_os in 9599 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9601 hardcode_libdir_flag_spec='-R$libdir' 9602 ;; 9603 *) 9604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9606 ;; 9607 esac 9608 fi 9609 else 9610 ld_shlibs=no 9611 fi 9612 ;; 9613 9614 os2*) 9615 hardcode_libdir_flag_spec='-L$libdir' 9616 hardcode_minus_L=yes 9617 allow_undefined_flag=unsupported 9618 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9619 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9620 ;; 9621 9622 osf3*) 9623 if test "$GCC" = yes; then 9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9625 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' 9626 else 9627 allow_undefined_flag=' -expect_unresolved \*' 9628 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' 9629 fi 9630 archive_cmds_need_lc='no' 9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9632 hardcode_libdir_separator=: 9633 ;; 9634 9635 osf4* | osf5*) # as osf3* with the addition of -msym flag 9636 if test "$GCC" = yes; then 9637 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9638 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' 9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9640 else 9641 allow_undefined_flag=' -expect_unresolved \*' 9642 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' 9643 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~ 9644 $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' 9645 9646 # Both c and cxx compiler support -rpath directly 9647 hardcode_libdir_flag_spec='-rpath $libdir' 9648 fi 9649 archive_cmds_need_lc='no' 9650 hardcode_libdir_separator=: 9651 ;; 9652 9653 solaris*) 9654 no_undefined_flag=' -z defs' 9655 if test "$GCC" = yes; then 9656 wlarc='${wl}' 9657 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9659 $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' 9660 else 9661 case `$CC -V 2>&1` in 9662 *"Compilers 5.0"*) 9663 wlarc='' 9664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9667 ;; 9668 *) 9669 wlarc='${wl}' 9670 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9672 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9673 ;; 9674 esac 9675 fi 9676 hardcode_libdir_flag_spec='-R$libdir' 9677 hardcode_shlibpath_var=no 9678 case $host_os in 9679 solaris2.[0-5] | solaris2.[0-5].*) ;; 9680 *) 9681 # The compiler driver will combine and reorder linker options, 9682 # but understands `-z linker_flag'. GCC discards it without `$wl', 9683 # but is careful enough not to reorder. 9684 # Supported since Solaris 2.6 (maybe 2.5.1?) 9685 if test "$GCC" = yes; then 9686 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9687 else 9688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9689 fi 9690 ;; 9691 esac 9692 link_all_deplibs=yes 9693 ;; 9694 9695 sunos4*) 9696 if test "x$host_vendor" = xsequent; then 9697 # Use $CC to link under sequent, because it throws in some extra .o 9698 # files that make .init and .fini sections work. 9699 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9700 else 9701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9702 fi 9703 hardcode_libdir_flag_spec='-L$libdir' 9704 hardcode_direct=yes 9705 hardcode_minus_L=yes 9706 hardcode_shlibpath_var=no 9707 ;; 9708 9709 sysv4) 9710 case $host_vendor in 9711 sni) 9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9713 hardcode_direct=yes # is this really true??? 9714 ;; 9715 siemens) 9716 ## LD is ld it makes a PLAMLIB 9717 ## CC just makes a GrossModule. 9718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9719 reload_cmds='$CC -r -o $output$reload_objs' 9720 hardcode_direct=no 9721 ;; 9722 motorola) 9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9725 ;; 9726 esac 9727 runpath_var='LD_RUN_PATH' 9728 hardcode_shlibpath_var=no 9729 ;; 9730 9731 sysv4.3*) 9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9733 hardcode_shlibpath_var=no 9734 export_dynamic_flag_spec='-Bexport' 9735 ;; 9736 9737 sysv4*MP*) 9738 if test -d /usr/nec; then 9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9740 hardcode_shlibpath_var=no 9741 runpath_var=LD_RUN_PATH 9742 hardcode_runpath_var=yes 9743 ld_shlibs=yes 9744 fi 9745 ;; 9746 9747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9748 no_undefined_flag='${wl}-z,text' 9749 archive_cmds_need_lc=no 9750 hardcode_shlibpath_var=no 9751 runpath_var='LD_RUN_PATH' 9752 9753 if test "$GCC" = yes; then 9754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9756 else 9757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9759 fi 9760 ;; 9761 9762 sysv5* | sco3.2v5* | sco5v6*) 9763 # Note: We can NOT use -z defs as we might desire, because we do not 9764 # link with -lc, and that would cause any symbols used from libc to 9765 # always be unresolved, which means just about no library would 9766 # ever link correctly. If we're not using GNU ld we use -z text 9767 # though, which does catch some bad symbols but isn't as heavy-handed 9768 # as -z defs. 9769 no_undefined_flag='${wl}-z,text' 9770 allow_undefined_flag='${wl}-z,nodefs' 9771 archive_cmds_need_lc=no 9772 hardcode_shlibpath_var=no 9773 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9774 hardcode_libdir_separator=':' 9775 link_all_deplibs=yes 9776 export_dynamic_flag_spec='${wl}-Bexport' 9777 runpath_var='LD_RUN_PATH' 9778 9779 if test "$GCC" = yes; then 9780 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9781 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9782 else 9783 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9784 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9785 fi 9786 ;; 9787 9788 uts4*) 9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9790 hardcode_libdir_flag_spec='-L$libdir' 9791 hardcode_shlibpath_var=no 9792 ;; 9793 9794 *) 9795 ld_shlibs=no 9796 ;; 9797 esac 9798 9799 if test x$host_vendor = xsni; then 9800 case $host in 9801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9802 export_dynamic_flag_spec='${wl}-Blargedynsym' 9803 ;; 9804 esac 9805 fi 9806 fi 9807 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9809$as_echo "$ld_shlibs" >&6; } 9810test "$ld_shlibs" = no && can_build_shared=no 9811 9812with_gnu_ld=$with_gnu_ld 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828# 9829# Do we need to explicitly link libc? 9830# 9831case "x$archive_cmds_need_lc" in 9832x|xyes) 9833 # Assume -lc should be added 9834 archive_cmds_need_lc=yes 9835 9836 if test "$enable_shared" = yes && test "$GCC" = yes; then 9837 case $archive_cmds in 9838 *'~'*) 9839 # FIXME: we may have to deal with multi-command sequences. 9840 ;; 9841 '$CC '*) 9842 # Test whether the compiler implicitly links with -lc since on some 9843 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9844 # to ld, don't add -lc before -lgcc. 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9846$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9847if ${lt_cv_archive_cmds_need_lc+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 $RM conftest* 9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9852 9853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9854 (eval $ac_compile) 2>&5 9855 ac_status=$? 9856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9857 test $ac_status = 0; } 2>conftest.err; then 9858 soname=conftest 9859 lib=conftest 9860 libobjs=conftest.$ac_objext 9861 deplibs= 9862 wl=$lt_prog_compiler_wl 9863 pic_flag=$lt_prog_compiler_pic 9864 compiler_flags=-v 9865 linker_flags=-v 9866 verstring= 9867 output_objdir=. 9868 libname=conftest 9869 lt_save_allow_undefined_flag=$allow_undefined_flag 9870 allow_undefined_flag= 9871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9872 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9873 ac_status=$? 9874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9875 test $ac_status = 0; } 9876 then 9877 lt_cv_archive_cmds_need_lc=no 9878 else 9879 lt_cv_archive_cmds_need_lc=yes 9880 fi 9881 allow_undefined_flag=$lt_save_allow_undefined_flag 9882 else 9883 cat conftest.err 1>&5 9884 fi 9885 $RM conftest* 9886 9887fi 9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9889$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9890 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9891 ;; 9892 esac 9893 fi 9894 ;; 9895esac 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10049$as_echo_n "checking dynamic linker characteristics... " >&6; } 10050 10051if test "$GCC" = yes; then 10052 case $host_os in 10053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10054 *) lt_awk_arg="/^libraries:/" ;; 10055 esac 10056 case $host_os in 10057 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10058 *) lt_sed_strip_eq="s,=/,/,g" ;; 10059 esac 10060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10061 case $lt_search_path_spec in 10062 *\;*) 10063 # if the path contains ";" then we assume it to be the separator 10064 # otherwise default to the standard path separator (i.e. ":") - it is 10065 # assumed that no part of a normal pathname contains ";" but that should 10066 # okay in the real world where ";" in dirpaths is itself problematic. 10067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10068 ;; 10069 *) 10070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10071 ;; 10072 esac 10073 # Ok, now we have the path, separated by spaces, we can step through it 10074 # and add multilib dir if necessary. 10075 lt_tmp_lt_search_path_spec= 10076 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10077 for lt_sys_path in $lt_search_path_spec; do 10078 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10080 else 10081 test -d "$lt_sys_path" && \ 10082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10083 fi 10084 done 10085 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10086BEGIN {RS=" "; FS="/|\n";} { 10087 lt_foo=""; 10088 lt_count=0; 10089 for (lt_i = NF; lt_i > 0; lt_i--) { 10090 if ($lt_i != "" && $lt_i != ".") { 10091 if ($lt_i == "..") { 10092 lt_count++; 10093 } else { 10094 if (lt_count == 0) { 10095 lt_foo="/" $lt_i lt_foo; 10096 } else { 10097 lt_count--; 10098 } 10099 } 10100 } 10101 } 10102 if (lt_foo != "") { lt_freq[lt_foo]++; } 10103 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10104}'` 10105 # AWK program above erroneously prepends '/' to C:/dos/paths 10106 # for these hosts. 10107 case $host_os in 10108 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10109 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10110 esac 10111 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10112else 10113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10114fi 10115library_names_spec= 10116libname_spec='lib$name' 10117soname_spec= 10118shrext_cmds=".so" 10119postinstall_cmds= 10120postuninstall_cmds= 10121finish_cmds= 10122finish_eval= 10123shlibpath_var= 10124shlibpath_overrides_runpath=unknown 10125version_type=none 10126dynamic_linker="$host_os ld.so" 10127sys_lib_dlsearch_path_spec="/lib /usr/lib" 10128need_lib_prefix=unknown 10129hardcode_into_libs=no 10130 10131# when you set need_version to no, make sure it does not cause -set_version 10132# flags to be left without arguments 10133need_version=unknown 10134 10135case $host_os in 10136aix3*) 10137 version_type=linux # correct to gnu/linux during the next big refactor 10138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10139 shlibpath_var=LIBPATH 10140 10141 # AIX 3 has no versioning support, so we append a major version to the name. 10142 soname_spec='${libname}${release}${shared_ext}$major' 10143 ;; 10144 10145aix[4-9]*) 10146 version_type=linux # correct to gnu/linux during the next big refactor 10147 need_lib_prefix=no 10148 need_version=no 10149 hardcode_into_libs=yes 10150 if test "$host_cpu" = ia64; then 10151 # AIX 5 supports IA64 10152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10153 shlibpath_var=LD_LIBRARY_PATH 10154 else 10155 # With GCC up to 2.95.x, collect2 would create an import file 10156 # for dependence libraries. The import file would start with 10157 # the line `#! .'. This would cause the generated library to 10158 # depend on `.', always an invalid library. This was fixed in 10159 # development snapshots of GCC prior to 3.0. 10160 case $host_os in 10161 aix4 | aix4.[01] | aix4.[01].*) 10162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10163 echo ' yes ' 10164 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10165 : 10166 else 10167 can_build_shared=no 10168 fi 10169 ;; 10170 esac 10171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10172 # soname into executable. Probably we can add versioning support to 10173 # collect2, so additional links can be useful in future. 10174 if test "$aix_use_runtimelinking" = yes; then 10175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10176 # instead of lib<name>.a to let people know that these are not 10177 # typical AIX shared libraries. 10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10179 else 10180 # We preserve .a as extension for shared libraries through AIX4.2 10181 # and later when we are not doing run time linking. 10182 library_names_spec='${libname}${release}.a $libname.a' 10183 soname_spec='${libname}${release}${shared_ext}$major' 10184 fi 10185 shlibpath_var=LIBPATH 10186 fi 10187 ;; 10188 10189amigaos*) 10190 case $host_cpu in 10191 powerpc) 10192 # Since July 2007 AmigaOS4 officially supports .so libraries. 10193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10195 ;; 10196 m68k) 10197 library_names_spec='$libname.ixlibrary $libname.a' 10198 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10199 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10200 ;; 10201 esac 10202 ;; 10203 10204beos*) 10205 library_names_spec='${libname}${shared_ext}' 10206 dynamic_linker="$host_os ld.so" 10207 shlibpath_var=LIBRARY_PATH 10208 ;; 10209 10210bsdi[45]*) 10211 version_type=linux # correct to gnu/linux during the next big refactor 10212 need_version=no 10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10214 soname_spec='${libname}${release}${shared_ext}$major' 10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10216 shlibpath_var=LD_LIBRARY_PATH 10217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10219 # the default ld.so.conf also contains /usr/contrib/lib and 10220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10221 # libtool to hard-code these into programs 10222 ;; 10223 10224cygwin* | mingw* | pw32* | cegcc*) 10225 version_type=windows 10226 shrext_cmds=".dll" 10227 need_version=no 10228 need_lib_prefix=no 10229 10230 case $GCC,$cc_basename in 10231 yes,*) 10232 # gcc 10233 library_names_spec='$libname.dll.a' 10234 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10235 postinstall_cmds='base_file=`basename \${file}`~ 10236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10237 dldir=$destdir/`dirname \$dlpath`~ 10238 test -d \$dldir || mkdir -p \$dldir~ 10239 $install_prog $dir/$dlname \$dldir/$dlname~ 10240 chmod a+x \$dldir/$dlname~ 10241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10243 fi' 10244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10245 dlpath=$dir/\$dldll~ 10246 $RM \$dlpath' 10247 shlibpath_overrides_runpath=yes 10248 10249 case $host_os in 10250 cygwin*) 10251 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10253 10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10255 ;; 10256 mingw* | cegcc*) 10257 # MinGW DLLs use traditional 'lib' prefix 10258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10259 ;; 10260 pw32*) 10261 # pw32 DLLs use 'pw' prefix rather than 'lib' 10262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10263 ;; 10264 esac 10265 dynamic_linker='Win32 ld.exe' 10266 ;; 10267 10268 *,cl*) 10269 # Native MSVC 10270 libname_spec='$name' 10271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10272 library_names_spec='${libname}.dll.lib' 10273 10274 case $build_os in 10275 mingw*) 10276 sys_lib_search_path_spec= 10277 lt_save_ifs=$IFS 10278 IFS=';' 10279 for lt_path in $LIB 10280 do 10281 IFS=$lt_save_ifs 10282 # Let DOS variable expansion print the short 8.3 style file name. 10283 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10284 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10285 done 10286 IFS=$lt_save_ifs 10287 # Convert to MSYS style. 10288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10289 ;; 10290 cygwin*) 10291 # Convert to unix form, then to dos form, then back to unix form 10292 # but this time dos style (no spaces!) so that the unix form looks 10293 # like /cygdrive/c/PROGRA~1:/cygdr... 10294 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10295 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10296 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10297 ;; 10298 *) 10299 sys_lib_search_path_spec="$LIB" 10300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10301 # It is most probably a Windows format PATH. 10302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10303 else 10304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10305 fi 10306 # FIXME: find the short name or the path components, as spaces are 10307 # common. (e.g. "Program Files" -> "PROGRA~1") 10308 ;; 10309 esac 10310 10311 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10312 postinstall_cmds='base_file=`basename \${file}`~ 10313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10314 dldir=$destdir/`dirname \$dlpath`~ 10315 test -d \$dldir || mkdir -p \$dldir~ 10316 $install_prog $dir/$dlname \$dldir/$dlname' 10317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10318 dlpath=$dir/\$dldll~ 10319 $RM \$dlpath' 10320 shlibpath_overrides_runpath=yes 10321 dynamic_linker='Win32 link.exe' 10322 ;; 10323 10324 *) 10325 # Assume MSVC wrapper 10326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10327 dynamic_linker='Win32 ld.exe' 10328 ;; 10329 esac 10330 # FIXME: first we should search . and the directory the executable is in 10331 shlibpath_var=PATH 10332 ;; 10333 10334darwin* | rhapsody*) 10335 dynamic_linker="$host_os dyld" 10336 version_type=darwin 10337 need_lib_prefix=no 10338 need_version=no 10339 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10340 soname_spec='${libname}${release}${major}$shared_ext' 10341 shlibpath_overrides_runpath=yes 10342 shlibpath_var=DYLD_LIBRARY_PATH 10343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10344 10345 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10347 ;; 10348 10349dgux*) 10350 version_type=linux # correct to gnu/linux during the next big refactor 10351 need_lib_prefix=no 10352 need_version=no 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 shlibpath_var=LD_LIBRARY_PATH 10356 ;; 10357 10358freebsd* | dragonfly*) 10359 # DragonFly does not have aout. When/if they implement a new 10360 # versioning mechanism, adjust this. 10361 if test -x /usr/bin/objformat; then 10362 objformat=`/usr/bin/objformat` 10363 else 10364 case $host_os in 10365 freebsd[23].*) objformat=aout ;; 10366 *) objformat=elf ;; 10367 esac 10368 fi 10369 version_type=freebsd-$objformat 10370 case $version_type in 10371 freebsd-elf*) 10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10373 need_version=no 10374 need_lib_prefix=no 10375 ;; 10376 freebsd-*) 10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10378 need_version=yes 10379 ;; 10380 esac 10381 shlibpath_var=LD_LIBRARY_PATH 10382 case $host_os in 10383 freebsd2.*) 10384 shlibpath_overrides_runpath=yes 10385 ;; 10386 freebsd3.[01]* | freebsdelf3.[01]*) 10387 shlibpath_overrides_runpath=yes 10388 hardcode_into_libs=yes 10389 ;; 10390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10392 shlibpath_overrides_runpath=no 10393 hardcode_into_libs=yes 10394 ;; 10395 *) # from 4.6 on, and DragonFly 10396 shlibpath_overrides_runpath=yes 10397 hardcode_into_libs=yes 10398 ;; 10399 esac 10400 ;; 10401 10402gnu*) 10403 version_type=linux # correct to gnu/linux during the next big refactor 10404 need_lib_prefix=no 10405 need_version=no 10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10407 soname_spec='${libname}${release}${shared_ext}$major' 10408 shlibpath_var=LD_LIBRARY_PATH 10409 shlibpath_overrides_runpath=no 10410 hardcode_into_libs=yes 10411 ;; 10412 10413haiku*) 10414 version_type=linux # correct to gnu/linux during the next big refactor 10415 need_lib_prefix=no 10416 need_version=no 10417 dynamic_linker="$host_os runtime_loader" 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10419 soname_spec='${libname}${release}${shared_ext}$major' 10420 shlibpath_var=LIBRARY_PATH 10421 shlibpath_overrides_runpath=yes 10422 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10423 hardcode_into_libs=yes 10424 ;; 10425 10426hpux9* | hpux10* | hpux11*) 10427 # Give a soname corresponding to the major version so that dld.sl refuses to 10428 # link against other versions. 10429 version_type=sunos 10430 need_lib_prefix=no 10431 need_version=no 10432 case $host_cpu in 10433 ia64*) 10434 shrext_cmds='.so' 10435 hardcode_into_libs=yes 10436 dynamic_linker="$host_os dld.so" 10437 shlibpath_var=LD_LIBRARY_PATH 10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10440 soname_spec='${libname}${release}${shared_ext}$major' 10441 if test "X$HPUX_IA64_MODE" = X32; then 10442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10443 else 10444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10445 fi 10446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10447 ;; 10448 hppa*64*) 10449 shrext_cmds='.sl' 10450 hardcode_into_libs=yes 10451 dynamic_linker="$host_os dld.sl" 10452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10455 soname_spec='${libname}${release}${shared_ext}$major' 10456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10458 ;; 10459 *) 10460 shrext_cmds='.sl' 10461 dynamic_linker="$host_os dld.sl" 10462 shlibpath_var=SHLIB_PATH 10463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10465 soname_spec='${libname}${release}${shared_ext}$major' 10466 ;; 10467 esac 10468 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10469 postinstall_cmds='chmod 555 $lib' 10470 # or fails outright, so override atomically: 10471 install_override_mode=555 10472 ;; 10473 10474interix[3-9]*) 10475 version_type=linux # correct to gnu/linux during the next big refactor 10476 need_lib_prefix=no 10477 need_version=no 10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10479 soname_spec='${libname}${release}${shared_ext}$major' 10480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10481 shlibpath_var=LD_LIBRARY_PATH 10482 shlibpath_overrides_runpath=no 10483 hardcode_into_libs=yes 10484 ;; 10485 10486irix5* | irix6* | nonstopux*) 10487 case $host_os in 10488 nonstopux*) version_type=nonstopux ;; 10489 *) 10490 if test "$lt_cv_prog_gnu_ld" = yes; then 10491 version_type=linux # correct to gnu/linux during the next big refactor 10492 else 10493 version_type=irix 10494 fi ;; 10495 esac 10496 need_lib_prefix=no 10497 need_version=no 10498 soname_spec='${libname}${release}${shared_ext}$major' 10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10500 case $host_os in 10501 irix5* | nonstopux*) 10502 libsuff= shlibsuff= 10503 ;; 10504 *) 10505 case $LD in # libtool.m4 will add one of these switches to LD 10506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10507 libsuff= shlibsuff= libmagic=32-bit;; 10508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10509 libsuff=32 shlibsuff=N32 libmagic=N32;; 10510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10511 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10512 *) libsuff= shlibsuff= libmagic=never-match;; 10513 esac 10514 ;; 10515 esac 10516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10517 shlibpath_overrides_runpath=no 10518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10520 hardcode_into_libs=yes 10521 ;; 10522 10523# No shared lib support for Linux oldld, aout, or coff. 10524linux*oldld* | linux*aout* | linux*coff*) 10525 dynamic_linker=no 10526 ;; 10527 10528# This must be glibc/ELF. 10529linux* | k*bsd*-gnu | kopensolaris*-gnu) 10530 version_type=linux # correct to gnu/linux during the next big refactor 10531 need_lib_prefix=no 10532 need_version=no 10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10534 soname_spec='${libname}${release}${shared_ext}$major' 10535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10536 shlibpath_var=LD_LIBRARY_PATH 10537 shlibpath_overrides_runpath=no 10538 10539 # Some binutils ld are patched to set DT_RUNPATH 10540 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10541 $as_echo_n "(cached) " >&6 10542else 10543 lt_cv_shlibpath_overrides_runpath=no 10544 save_LDFLAGS=$LDFLAGS 10545 save_libdir=$libdir 10546 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10547 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550 10551int 10552main () 10553{ 10554 10555 ; 10556 return 0; 10557} 10558_ACEOF 10559if ac_fn_c_try_link "$LINENO"; then : 10560 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10561 lt_cv_shlibpath_overrides_runpath=yes 10562fi 10563fi 10564rm -f core conftest.err conftest.$ac_objext \ 10565 conftest$ac_exeext conftest.$ac_ext 10566 LDFLAGS=$save_LDFLAGS 10567 libdir=$save_libdir 10568 10569fi 10570 10571 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10572 10573 # This implies no fast_install, which is unacceptable. 10574 # Some rework will be needed to allow for fast_install 10575 # before this can be enabled. 10576 hardcode_into_libs=yes 10577 10578 # Append ld.so.conf contents to the search path 10579 if test -f /etc/ld.so.conf; then 10580 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' ' '` 10581 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10582 fi 10583 10584 # We used to test for /lib/ld.so.1 and disable shared libraries on 10585 # powerpc, because MkLinux only supported shared libraries with the 10586 # GNU dynamic linker. Since this was broken with cross compilers, 10587 # most powerpc-linux boxes support dynamic linking these days and 10588 # people can always --disable-shared, the test was removed, and we 10589 # assume the GNU/Linux dynamic linker is in use. 10590 dynamic_linker='GNU/Linux ld.so' 10591 ;; 10592 10593netbsd*) 10594 version_type=sunos 10595 need_lib_prefix=no 10596 need_version=no 10597 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10600 dynamic_linker='NetBSD (a.out) ld.so' 10601 else 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 dynamic_linker='NetBSD ld.elf_so' 10605 fi 10606 shlibpath_var=LD_LIBRARY_PATH 10607 shlibpath_overrides_runpath=yes 10608 hardcode_into_libs=yes 10609 ;; 10610 10611newsos6) 10612 version_type=linux # correct to gnu/linux during the next big refactor 10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10614 shlibpath_var=LD_LIBRARY_PATH 10615 shlibpath_overrides_runpath=yes 10616 ;; 10617 10618*nto* | *qnx*) 10619 version_type=qnx 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10623 soname_spec='${libname}${release}${shared_ext}$major' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 shlibpath_overrides_runpath=no 10626 hardcode_into_libs=yes 10627 dynamic_linker='ldqnx.so' 10628 ;; 10629 10630openbsd*) 10631 version_type=sunos 10632 sys_lib_dlsearch_path_spec="/usr/lib" 10633 need_lib_prefix=no 10634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10635 case $host_os in 10636 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10637 *) need_version=no ;; 10638 esac 10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10643 case $host_os in 10644 openbsd2.[89] | openbsd2.[89].*) 10645 shlibpath_overrides_runpath=no 10646 ;; 10647 *) 10648 shlibpath_overrides_runpath=yes 10649 ;; 10650 esac 10651 else 10652 shlibpath_overrides_runpath=yes 10653 fi 10654 ;; 10655 10656os2*) 10657 libname_spec='$name' 10658 shrext_cmds=".dll" 10659 need_lib_prefix=no 10660 library_names_spec='$libname${shared_ext} $libname.a' 10661 dynamic_linker='OS/2 ld.exe' 10662 shlibpath_var=LIBPATH 10663 ;; 10664 10665osf3* | osf4* | osf5*) 10666 version_type=osf 10667 need_lib_prefix=no 10668 need_version=no 10669 soname_spec='${libname}${release}${shared_ext}$major' 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10671 shlibpath_var=LD_LIBRARY_PATH 10672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10674 ;; 10675 10676rdos*) 10677 dynamic_linker=no 10678 ;; 10679 10680solaris*) 10681 version_type=linux # correct to gnu/linux during the next big refactor 10682 need_lib_prefix=no 10683 need_version=no 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10685 soname_spec='${libname}${release}${shared_ext}$major' 10686 shlibpath_var=LD_LIBRARY_PATH 10687 shlibpath_overrides_runpath=yes 10688 hardcode_into_libs=yes 10689 # ldd complains unless libraries are executable 10690 postinstall_cmds='chmod +x $lib' 10691 ;; 10692 10693sunos4*) 10694 version_type=sunos 10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10697 shlibpath_var=LD_LIBRARY_PATH 10698 shlibpath_overrides_runpath=yes 10699 if test "$with_gnu_ld" = yes; then 10700 need_lib_prefix=no 10701 fi 10702 need_version=yes 10703 ;; 10704 10705sysv4 | sysv4.3*) 10706 version_type=linux # correct to gnu/linux during the next big refactor 10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10708 soname_spec='${libname}${release}${shared_ext}$major' 10709 shlibpath_var=LD_LIBRARY_PATH 10710 case $host_vendor in 10711 sni) 10712 shlibpath_overrides_runpath=no 10713 need_lib_prefix=no 10714 runpath_var=LD_RUN_PATH 10715 ;; 10716 siemens) 10717 need_lib_prefix=no 10718 ;; 10719 motorola) 10720 need_lib_prefix=no 10721 need_version=no 10722 shlibpath_overrides_runpath=no 10723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10724 ;; 10725 esac 10726 ;; 10727 10728sysv4*MP*) 10729 if test -d /usr/nec ;then 10730 version_type=linux # correct to gnu/linux during the next big refactor 10731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10732 soname_spec='$libname${shared_ext}.$major' 10733 shlibpath_var=LD_LIBRARY_PATH 10734 fi 10735 ;; 10736 10737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10738 version_type=freebsd-elf 10739 need_lib_prefix=no 10740 need_version=no 10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10742 soname_spec='${libname}${release}${shared_ext}$major' 10743 shlibpath_var=LD_LIBRARY_PATH 10744 shlibpath_overrides_runpath=yes 10745 hardcode_into_libs=yes 10746 if test "$with_gnu_ld" = yes; then 10747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10748 else 10749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10750 case $host_os in 10751 sco3.2v5*) 10752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10753 ;; 10754 esac 10755 fi 10756 sys_lib_dlsearch_path_spec='/usr/lib' 10757 ;; 10758 10759tpf*) 10760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10761 version_type=linux # correct to gnu/linux during the next big refactor 10762 need_lib_prefix=no 10763 need_version=no 10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 shlibpath_overrides_runpath=no 10767 hardcode_into_libs=yes 10768 ;; 10769 10770uts4*) 10771 version_type=linux # correct to gnu/linux during the next big refactor 10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10773 soname_spec='${libname}${release}${shared_ext}$major' 10774 shlibpath_var=LD_LIBRARY_PATH 10775 ;; 10776 10777*) 10778 dynamic_linker=no 10779 ;; 10780esac 10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10782$as_echo "$dynamic_linker" >&6; } 10783test "$dynamic_linker" = no && can_build_shared=no 10784 10785variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10786if test "$GCC" = yes; then 10787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10788fi 10789 10790if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10791 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10792fi 10793if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10794 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10795fi 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10889$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10890hardcode_action= 10891if test -n "$hardcode_libdir_flag_spec" || 10892 test -n "$runpath_var" || 10893 test "X$hardcode_automatic" = "Xyes" ; then 10894 10895 # We can hardcode non-existent directories. 10896 if test "$hardcode_direct" != no && 10897 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10898 # have to relink, otherwise we might link with an installed library 10899 # when we should be linking with a yet-to-be-installed one 10900 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10901 test "$hardcode_minus_L" != no; then 10902 # Linking always hardcodes the temporary library directory. 10903 hardcode_action=relink 10904 else 10905 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10906 hardcode_action=immediate 10907 fi 10908else 10909 # We cannot hardcode anything, or else we can only hardcode existing 10910 # directories. 10911 hardcode_action=unsupported 10912fi 10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10914$as_echo "$hardcode_action" >&6; } 10915 10916if test "$hardcode_action" = relink || 10917 test "$inherit_rpath" = yes; then 10918 # Fast installation is not supported 10919 enable_fast_install=no 10920elif test "$shlibpath_overrides_runpath" = yes || 10921 test "$enable_shared" = no; then 10922 # Fast installation is not necessary 10923 enable_fast_install=needless 10924fi 10925 10926 10927 10928 10929 10930 10931 if test "x$enable_dlopen" != xyes; then 10932 enable_dlopen=unknown 10933 enable_dlopen_self=unknown 10934 enable_dlopen_self_static=unknown 10935else 10936 lt_cv_dlopen=no 10937 lt_cv_dlopen_libs= 10938 10939 case $host_os in 10940 beos*) 10941 lt_cv_dlopen="load_add_on" 10942 lt_cv_dlopen_libs= 10943 lt_cv_dlopen_self=yes 10944 ;; 10945 10946 mingw* | pw32* | cegcc*) 10947 lt_cv_dlopen="LoadLibrary" 10948 lt_cv_dlopen_libs= 10949 ;; 10950 10951 cygwin*) 10952 lt_cv_dlopen="dlopen" 10953 lt_cv_dlopen_libs= 10954 ;; 10955 10956 darwin*) 10957 # if libdl is installed we need to link against it 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10959$as_echo_n "checking for dlopen in -ldl... " >&6; } 10960if ${ac_cv_lib_dl_dlopen+:} false; then : 10961 $as_echo_n "(cached) " >&6 10962else 10963 ac_check_lib_save_LIBS=$LIBS 10964LIBS="-ldl $LIBS" 10965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10966/* end confdefs.h. */ 10967 10968/* Override any GCC internal prototype to avoid an error. 10969 Use char because int might match the return type of a GCC 10970 builtin and then its argument prototype would still apply. */ 10971#ifdef __cplusplus 10972extern "C" 10973#endif 10974char dlopen (); 10975int 10976main () 10977{ 10978return dlopen (); 10979 ; 10980 return 0; 10981} 10982_ACEOF 10983if ac_fn_c_try_link "$LINENO"; then : 10984 ac_cv_lib_dl_dlopen=yes 10985else 10986 ac_cv_lib_dl_dlopen=no 10987fi 10988rm -f core conftest.err conftest.$ac_objext \ 10989 conftest$ac_exeext conftest.$ac_ext 10990LIBS=$ac_check_lib_save_LIBS 10991fi 10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10993$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10994if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10995 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10996else 10997 10998 lt_cv_dlopen="dyld" 10999 lt_cv_dlopen_libs= 11000 lt_cv_dlopen_self=yes 11001 11002fi 11003 11004 ;; 11005 11006 *) 11007 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11008if test "x$ac_cv_func_shl_load" = xyes; then : 11009 lt_cv_dlopen="shl_load" 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11012$as_echo_n "checking for shl_load in -ldld... " >&6; } 11013if ${ac_cv_lib_dld_shl_load+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 ac_check_lib_save_LIBS=$LIBS 11017LIBS="-ldld $LIBS" 11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021/* Override any GCC internal prototype to avoid an error. 11022 Use char because int might match the return type of a GCC 11023 builtin and then its argument prototype would still apply. */ 11024#ifdef __cplusplus 11025extern "C" 11026#endif 11027char shl_load (); 11028int 11029main () 11030{ 11031return shl_load (); 11032 ; 11033 return 0; 11034} 11035_ACEOF 11036if ac_fn_c_try_link "$LINENO"; then : 11037 ac_cv_lib_dld_shl_load=yes 11038else 11039 ac_cv_lib_dld_shl_load=no 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext conftest.$ac_ext 11043LIBS=$ac_check_lib_save_LIBS 11044fi 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11046$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11047if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11048 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11049else 11050 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11051if test "x$ac_cv_func_dlopen" = xyes; then : 11052 lt_cv_dlopen="dlopen" 11053else 11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11055$as_echo_n "checking for dlopen in -ldl... " >&6; } 11056if ${ac_cv_lib_dl_dlopen+:} false; then : 11057 $as_echo_n "(cached) " >&6 11058else 11059 ac_check_lib_save_LIBS=$LIBS 11060LIBS="-ldl $LIBS" 11061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11062/* end confdefs.h. */ 11063 11064/* Override any GCC internal prototype to avoid an error. 11065 Use char because int might match the return type of a GCC 11066 builtin and then its argument prototype would still apply. */ 11067#ifdef __cplusplus 11068extern "C" 11069#endif 11070char dlopen (); 11071int 11072main () 11073{ 11074return dlopen (); 11075 ; 11076 return 0; 11077} 11078_ACEOF 11079if ac_fn_c_try_link "$LINENO"; then : 11080 ac_cv_lib_dl_dlopen=yes 11081else 11082 ac_cv_lib_dl_dlopen=no 11083fi 11084rm -f core conftest.err conftest.$ac_objext \ 11085 conftest$ac_exeext conftest.$ac_ext 11086LIBS=$ac_check_lib_save_LIBS 11087fi 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11089$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11090if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11092else 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11094$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11095if ${ac_cv_lib_svld_dlopen+:} false; then : 11096 $as_echo_n "(cached) " >&6 11097else 11098 ac_check_lib_save_LIBS=$LIBS 11099LIBS="-lsvld $LIBS" 11100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11101/* end confdefs.h. */ 11102 11103/* Override any GCC internal prototype to avoid an error. 11104 Use char because int might match the return type of a GCC 11105 builtin and then its argument prototype would still apply. */ 11106#ifdef __cplusplus 11107extern "C" 11108#endif 11109char dlopen (); 11110int 11111main () 11112{ 11113return dlopen (); 11114 ; 11115 return 0; 11116} 11117_ACEOF 11118if ac_fn_c_try_link "$LINENO"; then : 11119 ac_cv_lib_svld_dlopen=yes 11120else 11121 ac_cv_lib_svld_dlopen=no 11122fi 11123rm -f core conftest.err conftest.$ac_objext \ 11124 conftest$ac_exeext conftest.$ac_ext 11125LIBS=$ac_check_lib_save_LIBS 11126fi 11127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11128$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11129if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11131else 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11133$as_echo_n "checking for dld_link in -ldld... " >&6; } 11134if ${ac_cv_lib_dld_dld_link+:} false; then : 11135 $as_echo_n "(cached) " >&6 11136else 11137 ac_check_lib_save_LIBS=$LIBS 11138LIBS="-ldld $LIBS" 11139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11140/* end confdefs.h. */ 11141 11142/* Override any GCC internal prototype to avoid an error. 11143 Use char because int might match the return type of a GCC 11144 builtin and then its argument prototype would still apply. */ 11145#ifdef __cplusplus 11146extern "C" 11147#endif 11148char dld_link (); 11149int 11150main () 11151{ 11152return dld_link (); 11153 ; 11154 return 0; 11155} 11156_ACEOF 11157if ac_fn_c_try_link "$LINENO"; then : 11158 ac_cv_lib_dld_dld_link=yes 11159else 11160 ac_cv_lib_dld_dld_link=no 11161fi 11162rm -f core conftest.err conftest.$ac_objext \ 11163 conftest$ac_exeext conftest.$ac_ext 11164LIBS=$ac_check_lib_save_LIBS 11165fi 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11167$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11168if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11169 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11170fi 11171 11172 11173fi 11174 11175 11176fi 11177 11178 11179fi 11180 11181 11182fi 11183 11184 11185fi 11186 11187 ;; 11188 esac 11189 11190 if test "x$lt_cv_dlopen" != xno; then 11191 enable_dlopen=yes 11192 else 11193 enable_dlopen=no 11194 fi 11195 11196 case $lt_cv_dlopen in 11197 dlopen) 11198 save_CPPFLAGS="$CPPFLAGS" 11199 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11200 11201 save_LDFLAGS="$LDFLAGS" 11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11203 11204 save_LIBS="$LIBS" 11205 LIBS="$lt_cv_dlopen_libs $LIBS" 11206 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11208$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11209if ${lt_cv_dlopen_self+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 if test "$cross_compiling" = yes; then : 11213 lt_cv_dlopen_self=cross 11214else 11215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11216 lt_status=$lt_dlunknown 11217 cat > conftest.$ac_ext <<_LT_EOF 11218#line $LINENO "configure" 11219#include "confdefs.h" 11220 11221#if HAVE_DLFCN_H 11222#include <dlfcn.h> 11223#endif 11224 11225#include <stdio.h> 11226 11227#ifdef RTLD_GLOBAL 11228# define LT_DLGLOBAL RTLD_GLOBAL 11229#else 11230# ifdef DL_GLOBAL 11231# define LT_DLGLOBAL DL_GLOBAL 11232# else 11233# define LT_DLGLOBAL 0 11234# endif 11235#endif 11236 11237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11238 find out it does not work in some platform. */ 11239#ifndef LT_DLLAZY_OR_NOW 11240# ifdef RTLD_LAZY 11241# define LT_DLLAZY_OR_NOW RTLD_LAZY 11242# else 11243# ifdef DL_LAZY 11244# define LT_DLLAZY_OR_NOW DL_LAZY 11245# else 11246# ifdef RTLD_NOW 11247# define LT_DLLAZY_OR_NOW RTLD_NOW 11248# else 11249# ifdef DL_NOW 11250# define LT_DLLAZY_OR_NOW DL_NOW 11251# else 11252# define LT_DLLAZY_OR_NOW 0 11253# endif 11254# endif 11255# endif 11256# endif 11257#endif 11258 11259/* When -fvisbility=hidden is used, assume the code has been annotated 11260 correspondingly for the symbols needed. */ 11261#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11262int fnord () __attribute__((visibility("default"))); 11263#endif 11264 11265int fnord () { return 42; } 11266int main () 11267{ 11268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11269 int status = $lt_dlunknown; 11270 11271 if (self) 11272 { 11273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11274 else 11275 { 11276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11277 else puts (dlerror ()); 11278 } 11279 /* dlclose (self); */ 11280 } 11281 else 11282 puts (dlerror ()); 11283 11284 return status; 11285} 11286_LT_EOF 11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11288 (eval $ac_link) 2>&5 11289 ac_status=$? 11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11291 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11292 (./conftest; exit; ) >&5 2>/dev/null 11293 lt_status=$? 11294 case x$lt_status in 11295 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11296 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11297 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11298 esac 11299 else : 11300 # compilation failed 11301 lt_cv_dlopen_self=no 11302 fi 11303fi 11304rm -fr conftest* 11305 11306 11307fi 11308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11309$as_echo "$lt_cv_dlopen_self" >&6; } 11310 11311 if test "x$lt_cv_dlopen_self" = xyes; then 11312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11314$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11315if ${lt_cv_dlopen_self_static+:} false; then : 11316 $as_echo_n "(cached) " >&6 11317else 11318 if test "$cross_compiling" = yes; then : 11319 lt_cv_dlopen_self_static=cross 11320else 11321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11322 lt_status=$lt_dlunknown 11323 cat > conftest.$ac_ext <<_LT_EOF 11324#line $LINENO "configure" 11325#include "confdefs.h" 11326 11327#if HAVE_DLFCN_H 11328#include <dlfcn.h> 11329#endif 11330 11331#include <stdio.h> 11332 11333#ifdef RTLD_GLOBAL 11334# define LT_DLGLOBAL RTLD_GLOBAL 11335#else 11336# ifdef DL_GLOBAL 11337# define LT_DLGLOBAL DL_GLOBAL 11338# else 11339# define LT_DLGLOBAL 0 11340# endif 11341#endif 11342 11343/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11344 find out it does not work in some platform. */ 11345#ifndef LT_DLLAZY_OR_NOW 11346# ifdef RTLD_LAZY 11347# define LT_DLLAZY_OR_NOW RTLD_LAZY 11348# else 11349# ifdef DL_LAZY 11350# define LT_DLLAZY_OR_NOW DL_LAZY 11351# else 11352# ifdef RTLD_NOW 11353# define LT_DLLAZY_OR_NOW RTLD_NOW 11354# else 11355# ifdef DL_NOW 11356# define LT_DLLAZY_OR_NOW DL_NOW 11357# else 11358# define LT_DLLAZY_OR_NOW 0 11359# endif 11360# endif 11361# endif 11362# endif 11363#endif 11364 11365/* When -fvisbility=hidden is used, assume the code has been annotated 11366 correspondingly for the symbols needed. */ 11367#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11368int fnord () __attribute__((visibility("default"))); 11369#endif 11370 11371int fnord () { return 42; } 11372int main () 11373{ 11374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11375 int status = $lt_dlunknown; 11376 11377 if (self) 11378 { 11379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11380 else 11381 { 11382 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11383 else puts (dlerror ()); 11384 } 11385 /* dlclose (self); */ 11386 } 11387 else 11388 puts (dlerror ()); 11389 11390 return status; 11391} 11392_LT_EOF 11393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11394 (eval $ac_link) 2>&5 11395 ac_status=$? 11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11397 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11398 (./conftest; exit; ) >&5 2>/dev/null 11399 lt_status=$? 11400 case x$lt_status in 11401 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11402 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11403 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11404 esac 11405 else : 11406 # compilation failed 11407 lt_cv_dlopen_self_static=no 11408 fi 11409fi 11410rm -fr conftest* 11411 11412 11413fi 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11415$as_echo "$lt_cv_dlopen_self_static" >&6; } 11416 fi 11417 11418 CPPFLAGS="$save_CPPFLAGS" 11419 LDFLAGS="$save_LDFLAGS" 11420 LIBS="$save_LIBS" 11421 ;; 11422 esac 11423 11424 case $lt_cv_dlopen_self in 11425 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11426 *) enable_dlopen_self=unknown ;; 11427 esac 11428 11429 case $lt_cv_dlopen_self_static in 11430 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11431 *) enable_dlopen_self_static=unknown ;; 11432 esac 11433fi 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451striplib= 11452old_striplib= 11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11454$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11455if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11456 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11457 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11459$as_echo "yes" >&6; } 11460else 11461# FIXME - insert some real tests, host_os isn't really good enough 11462 case $host_os in 11463 darwin*) 11464 if test -n "$STRIP" ; then 11465 striplib="$STRIP -x" 11466 old_striplib="$STRIP -S" 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11468$as_echo "yes" >&6; } 11469 else 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11471$as_echo "no" >&6; } 11472 fi 11473 ;; 11474 *) 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11476$as_echo "no" >&6; } 11477 ;; 11478 esac 11479fi 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 # Report which library types will actually be built 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11494$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11496$as_echo "$can_build_shared" >&6; } 11497 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11499$as_echo_n "checking whether to build shared libraries... " >&6; } 11500 test "$can_build_shared" = "no" && enable_shared=no 11501 11502 # On AIX, shared libraries and static libraries use the same namespace, and 11503 # are all built from PIC. 11504 case $host_os in 11505 aix3*) 11506 test "$enable_shared" = yes && enable_static=no 11507 if test -n "$RANLIB"; then 11508 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11509 postinstall_cmds='$RANLIB $lib' 11510 fi 11511 ;; 11512 11513 aix[4-9]*) 11514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11515 test "$enable_shared" = yes && enable_static=no 11516 fi 11517 ;; 11518 esac 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11520$as_echo "$enable_shared" >&6; } 11521 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11523$as_echo_n "checking whether to build static libraries... " >&6; } 11524 # Make sure either enable_shared or enable_static is yes. 11525 test "$enable_shared" = yes || enable_static=yes 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11527$as_echo "$enable_static" >&6; } 11528 11529 11530 11531 11532fi 11533ac_ext=c 11534ac_cpp='$CPP $CPPFLAGS' 11535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11537ac_compiler_gnu=$ac_cv_c_compiler_gnu 11538 11539CC="$lt_save_CC" 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 ac_config_commands="$ac_config_commands libtool" 11556 11557 11558 11559 11560# Only expand once: 11561 11562 11563 11564# Checks for header files. 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11566$as_echo_n "checking for ANSI C header files... " >&6; } 11567if ${ac_cv_header_stdc+:} false; then : 11568 $as_echo_n "(cached) " >&6 11569else 11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11571/* end confdefs.h. */ 11572#include <stdlib.h> 11573#include <stdarg.h> 11574#include <string.h> 11575#include <float.h> 11576 11577int 11578main () 11579{ 11580 11581 ; 11582 return 0; 11583} 11584_ACEOF 11585if ac_fn_c_try_compile "$LINENO"; then : 11586 ac_cv_header_stdc=yes 11587else 11588 ac_cv_header_stdc=no 11589fi 11590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11591 11592if test $ac_cv_header_stdc = yes; then 11593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11595/* end confdefs.h. */ 11596#include <string.h> 11597 11598_ACEOF 11599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11600 $EGREP "memchr" >/dev/null 2>&1; then : 11601 11602else 11603 ac_cv_header_stdc=no 11604fi 11605rm -f conftest* 11606 11607fi 11608 11609if test $ac_cv_header_stdc = yes; then 11610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11612/* end confdefs.h. */ 11613#include <stdlib.h> 11614 11615_ACEOF 11616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11617 $EGREP "free" >/dev/null 2>&1; then : 11618 11619else 11620 ac_cv_header_stdc=no 11621fi 11622rm -f conftest* 11623 11624fi 11625 11626if test $ac_cv_header_stdc = yes; then 11627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11628 if test "$cross_compiling" = yes; then : 11629 : 11630else 11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11632/* end confdefs.h. */ 11633#include <ctype.h> 11634#include <stdlib.h> 11635#if ((' ' & 0x0FF) == 0x020) 11636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11638#else 11639# define ISLOWER(c) \ 11640 (('a' <= (c) && (c) <= 'i') \ 11641 || ('j' <= (c) && (c) <= 'r') \ 11642 || ('s' <= (c) && (c) <= 'z')) 11643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11644#endif 11645 11646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11647int 11648main () 11649{ 11650 int i; 11651 for (i = 0; i < 256; i++) 11652 if (XOR (islower (i), ISLOWER (i)) 11653 || toupper (i) != TOUPPER (i)) 11654 return 2; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_run "$LINENO"; then : 11659 11660else 11661 ac_cv_header_stdc=no 11662fi 11663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11664 conftest.$ac_objext conftest.beam conftest.$ac_ext 11665fi 11666 11667fi 11668fi 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11670$as_echo "$ac_cv_header_stdc" >&6; } 11671if test $ac_cv_header_stdc = yes; then 11672 11673$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11674 11675fi 11676 11677 11678# Check for systems which need -lsocket and -lnsl 11679#AX_LIB_SOCKET_NSL 11680 11681# Solaris puts nanosleep in -lrt 11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 11683$as_echo_n "checking for library containing nanosleep... " >&6; } 11684if ${ac_cv_search_nanosleep+:} false; then : 11685 $as_echo_n "(cached) " >&6 11686else 11687 ac_func_search_save_LIBS=$LIBS 11688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11689/* end confdefs.h. */ 11690 11691/* Override any GCC internal prototype to avoid an error. 11692 Use char because int might match the return type of a GCC 11693 builtin and then its argument prototype would still apply. */ 11694#ifdef __cplusplus 11695extern "C" 11696#endif 11697char nanosleep (); 11698int 11699main () 11700{ 11701return nanosleep (); 11702 ; 11703 return 0; 11704} 11705_ACEOF 11706for ac_lib in '' rt; do 11707 if test -z "$ac_lib"; then 11708 ac_res="none required" 11709 else 11710 ac_res=-l$ac_lib 11711 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11712 fi 11713 if ac_fn_c_try_link "$LINENO"; then : 11714 ac_cv_search_nanosleep=$ac_res 11715fi 11716rm -f core conftest.err conftest.$ac_objext \ 11717 conftest$ac_exeext 11718 if ${ac_cv_search_nanosleep+:} false; then : 11719 break 11720fi 11721done 11722if ${ac_cv_search_nanosleep+:} false; then : 11723 11724else 11725 ac_cv_search_nanosleep=no 11726fi 11727rm conftest.$ac_ext 11728LIBS=$ac_func_search_save_LIBS 11729fi 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 11731$as_echo "$ac_cv_search_nanosleep" >&6; } 11732ac_res=$ac_cv_search_nanosleep 11733if test "$ac_res" != no; then : 11734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11735 11736else 11737 11738echo "nanosleep() required for timing operations." 11739exit 1 11740 11741fi 11742 11743 11744# Solaris puts hstrerror in -lresolv 11745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 11746$as_echo_n "checking for library containing hstrerror... " >&6; } 11747if ${ac_cv_search_hstrerror+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749else 11750 ac_func_search_save_LIBS=$LIBS 11751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11752/* end confdefs.h. */ 11753 11754/* Override any GCC internal prototype to avoid an error. 11755 Use char because int might match the return type of a GCC 11756 builtin and then its argument prototype would still apply. */ 11757#ifdef __cplusplus 11758extern "C" 11759#endif 11760char hstrerror (); 11761int 11762main () 11763{ 11764return hstrerror (); 11765 ; 11766 return 0; 11767} 11768_ACEOF 11769for ac_lib in '' resolv; do 11770 if test -z "$ac_lib"; then 11771 ac_res="none required" 11772 else 11773 ac_res=-l$ac_lib 11774 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11775 fi 11776 if ac_fn_c_try_link "$LINENO"; then : 11777 ac_cv_search_hstrerror=$ac_res 11778fi 11779rm -f core conftest.err conftest.$ac_objext \ 11780 conftest$ac_exeext 11781 if ${ac_cv_search_hstrerror+:} false; then : 11782 break 11783fi 11784done 11785if ${ac_cv_search_hstrerror+:} false; then : 11786 11787else 11788 ac_cv_search_hstrerror=no 11789fi 11790rm conftest.$ac_ext 11791LIBS=$ac_func_search_save_LIBS 11792fi 11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 11794$as_echo "$ac_cv_search_hstrerror" >&6; } 11795ac_res=$ac_cv_search_hstrerror 11796if test "$ac_res" != no; then : 11797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11798 11799else 11800 11801echo "nanosleep() required for timing operations." 11802exit 1 11803 11804fi 11805 11806 11807# Checks for typedefs, structures, and compiler characteristics. 11808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11809$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11810if ${ac_cv_c_const+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11814/* end confdefs.h. */ 11815 11816int 11817main () 11818{ 11819 11820#ifndef __cplusplus 11821 /* Ultrix mips cc rejects this sort of thing. */ 11822 typedef int charset[2]; 11823 const charset cs = { 0, 0 }; 11824 /* SunOS 4.1.1 cc rejects this. */ 11825 char const *const *pcpcc; 11826 char **ppc; 11827 /* NEC SVR4.0.2 mips cc rejects this. */ 11828 struct point {int x, y;}; 11829 static struct point const zero = {0,0}; 11830 /* AIX XL C 1.02.0.0 rejects this. 11831 It does not let you subtract one const X* pointer from another in 11832 an arm of an if-expression whose if-part is not a constant 11833 expression */ 11834 const char *g = "string"; 11835 pcpcc = &g + (g ? g-g : 0); 11836 /* HPUX 7.0 cc rejects these. */ 11837 ++pcpcc; 11838 ppc = (char**) pcpcc; 11839 pcpcc = (char const *const *) ppc; 11840 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11841 char tx; 11842 char *t = &tx; 11843 char const *s = 0 ? (char *) 0 : (char const *) 0; 11844 11845 *t++ = 0; 11846 if (s) return 0; 11847 } 11848 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11849 int x[] = {25, 17}; 11850 const int *foo = &x[0]; 11851 ++foo; 11852 } 11853 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11854 typedef const int *iptr; 11855 iptr p = 0; 11856 ++p; 11857 } 11858 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11859 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11860 struct s { int j; const int *ap[3]; } bx; 11861 struct s *b = &bx; b->j = 5; 11862 } 11863 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11864 const int foo = 10; 11865 if (!foo) return 0; 11866 } 11867 return !cs[0] && !zero.x; 11868#endif 11869 11870 ; 11871 return 0; 11872} 11873_ACEOF 11874if ac_fn_c_try_compile "$LINENO"; then : 11875 ac_cv_c_const=yes 11876else 11877 ac_cv_c_const=no 11878fi 11879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11880fi 11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11882$as_echo "$ac_cv_c_const" >&6; } 11883if test $ac_cv_c_const = no; then 11884 11885$as_echo "#define const /**/" >>confdefs.h 11886 11887fi 11888 11889 11890# Check for SCTP support 11891for ac_header in netinet/sctp.h 11892do : 11893 ac_fn_c_check_header_mongrel "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default" 11894if test "x$ac_cv_header_netinet_sctp_h" = xyes; then : 11895 cat >>confdefs.h <<_ACEOF 11896#define HAVE_NETINET_SCTP_H 1 11897_ACEOF 11898 11899$as_echo "#define HAVE_SCTP 1" >>confdefs.h 11900 11901fi 11902 11903done 11904 11905 11906# Check for TCP_CONGESTION sockopt (believed to be Linux only) 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5 11908$as_echo_n "checking TCP_CONGESTION socket option... " >&6; } 11909if ${iperf3_cv_header_tcp_congestion+:} false; then : 11910 $as_echo_n "(cached) " >&6 11911else 11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11913/* end confdefs.h. */ 11914#include <netinet/tcp.h> 11915#ifdef TCP_CONGESTION 11916 yes 11917#endif 11918 11919_ACEOF 11920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11921 $EGREP "yes" >/dev/null 2>&1; then : 11922 iperf3_cv_header_tcp_congestion=yes 11923else 11924 iperf3_cv_header_tcp_congestion=no 11925fi 11926rm -f conftest* 11927 11928fi 11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5 11930$as_echo "$iperf3_cv_header_tcp_congestion" >&6; } 11931if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 11932 11933$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h 11934 11935fi 11936 11937# Check for IPv6 flowlabel support (believed to be Linux only) 11938# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 11939# don't use that file directly (we have our own stripped-down 11940# copy, see src/flowlabel.h for more details). 11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5 11942$as_echo_n "checking IPv6 flowlabel support... " >&6; } 11943if ${iperf3_cv_header_flowlabel+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11947/* end confdefs.h. */ 11948#include <sys/types.h> 11949#include <linux/in6.h> 11950#ifdef IPV6_FLOWLABEL_MGR 11951 yes 11952#endif 11953 11954_ACEOF 11955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11956 $EGREP "yes" >/dev/null 2>&1; then : 11957 iperf3_cv_header_flowlabel=yes 11958else 11959 iperf3_cv_header_flowlabel=no 11960fi 11961rm -f conftest* 11962 11963fi 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5 11965$as_echo "$iperf3_cv_header_flowlabel" >&6; } 11966if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 11967 11968$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h 11969 11970fi 11971 11972# Check for CPU affinity support. FreeBSD and Linux do this differently 11973# unfortunately so we have to check separately for each of them. 11974# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 11975# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 11976# generic concept is available. 11977for ac_func in cpuset_setaffinity sched_setaffinity 11978do : 11979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11981if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11982 cat >>confdefs.h <<_ACEOF 11983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11984_ACEOF 11985 11986$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h 11987 11988fi 11989done 11990 11991 11992# Check for sendfile support. FreeBSD, Linux, and MacOS all support 11993# this system call, but they're all different in terms of what headers 11994# it needs and what arguments it expects. 11995for ac_func in sendfile 11996do : 11997 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 11998if test "x$ac_cv_func_sendfile" = xyes; then : 11999 cat >>confdefs.h <<_ACEOF 12000#define HAVE_SENDFILE 1 12001_ACEOF 12002 12003fi 12004done 12005 12006 12007ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile" 12008 12009cat >confcache <<\_ACEOF 12010# This file is a shell script that caches the results of configure 12011# tests run on this system so they can be shared between configure 12012# scripts and configure runs, see configure's option --config-cache. 12013# It is not useful on other systems. If it contains results you don't 12014# want to keep, you may remove or edit it. 12015# 12016# config.status only pays attention to the cache file if you give it 12017# the --recheck option to rerun configure. 12018# 12019# `ac_cv_env_foo' variables (set or unset) will be overridden when 12020# loading this file, other *unset* `ac_cv_foo' will be assigned the 12021# following values. 12022 12023_ACEOF 12024 12025# The following way of writing the cache mishandles newlines in values, 12026# but we know of no workaround that is simple, portable, and efficient. 12027# So, we kill variables containing newlines. 12028# Ultrix sh set writes to stderr and can't be redirected directly, 12029# and sets the high bit in the cache file unless we assign to the vars. 12030( 12031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12032 eval ac_val=\$$ac_var 12033 case $ac_val in #( 12034 *${as_nl}*) 12035 case $ac_var in #( 12036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12038 esac 12039 case $ac_var in #( 12040 _ | IFS | as_nl) ;; #( 12041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12042 *) { eval $ac_var=; unset $ac_var;} ;; 12043 esac ;; 12044 esac 12045 done 12046 12047 (set) 2>&1 | 12048 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12049 *${as_nl}ac_space=\ *) 12050 # `set' does not quote correctly, so add quotes: double-quote 12051 # substitution turns \\\\ into \\, and sed turns \\ into \. 12052 sed -n \ 12053 "s/'/'\\\\''/g; 12054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12055 ;; #( 12056 *) 12057 # `set' quotes correctly as required by POSIX, so do not add quotes. 12058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12059 ;; 12060 esac | 12061 sort 12062) | 12063 sed ' 12064 /^ac_cv_env_/b end 12065 t clear 12066 :clear 12067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12068 t end 12069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12070 :end' >>confcache 12071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12072 if test -w "$cache_file"; then 12073 if test "x$cache_file" != "x/dev/null"; then 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12075$as_echo "$as_me: updating cache $cache_file" >&6;} 12076 if test ! -f "$cache_file" || test -h "$cache_file"; then 12077 cat confcache >"$cache_file" 12078 else 12079 case $cache_file in #( 12080 */* | ?:*) 12081 mv -f confcache "$cache_file"$$ && 12082 mv -f "$cache_file"$$ "$cache_file" ;; #( 12083 *) 12084 mv -f confcache "$cache_file" ;; 12085 esac 12086 fi 12087 fi 12088 else 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12090$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12091 fi 12092fi 12093rm -f confcache 12094 12095test "x$prefix" = xNONE && prefix=$ac_default_prefix 12096# Let make expand exec_prefix. 12097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12098 12099DEFS=-DHAVE_CONFIG_H 12100 12101ac_libobjs= 12102ac_ltlibobjs= 12103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12104 # 1. Remove the extension, and $U if already installed. 12105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12108 # will be set to the directory where LIBOBJS objects are built. 12109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12111done 12112LIBOBJS=$ac_libobjs 12113 12114LTLIBOBJS=$ac_ltlibobjs 12115 12116 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12118$as_echo_n "checking that generated files are newer than configure... " >&6; } 12119 if test -n "$am_sleep_pid"; then 12120 # Hide warnings about reused PIDs. 12121 wait $am_sleep_pid 2>/dev/null 12122 fi 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12124$as_echo "done" >&6; } 12125 if test -n "$EXEEXT"; then 12126 am__EXEEXT_TRUE= 12127 am__EXEEXT_FALSE='#' 12128else 12129 am__EXEEXT_TRUE='#' 12130 am__EXEEXT_FALSE= 12131fi 12132 12133if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12134 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12135Usually this means the macro was only invoked conditionally." "$LINENO" 5 12136fi 12137if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12138 as_fn_error $? "conditional \"AMDEP\" was never defined. 12139Usually this means the macro was only invoked conditionally." "$LINENO" 5 12140fi 12141if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12142 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12143Usually this means the macro was only invoked conditionally." "$LINENO" 5 12144fi 12145 12146: "${CONFIG_STATUS=./config.status}" 12147ac_write_fail=0 12148ac_clean_files_save=$ac_clean_files 12149ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12150{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12151$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12152as_write_fail=0 12153cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12154#! $SHELL 12155# Generated by $as_me. 12156# Run this file to recreate the current configuration. 12157# Compiler output produced by configure, useful for debugging 12158# configure, is in config.log if it exists. 12159 12160debug=false 12161ac_cs_recheck=false 12162ac_cs_silent=false 12163 12164SHELL=\${CONFIG_SHELL-$SHELL} 12165export SHELL 12166_ASEOF 12167cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12168## -------------------- ## 12169## M4sh Initialization. ## 12170## -------------------- ## 12171 12172# Be more Bourne compatible 12173DUALCASE=1; export DUALCASE # for MKS sh 12174if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12175 emulate sh 12176 NULLCMD=: 12177 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12178 # is contrary to our usage. Disable this feature. 12179 alias -g '${1+"$@"}'='"$@"' 12180 setopt NO_GLOB_SUBST 12181else 12182 case `(set -o) 2>/dev/null` in #( 12183 *posix*) : 12184 set -o posix ;; #( 12185 *) : 12186 ;; 12187esac 12188fi 12189 12190 12191as_nl=' 12192' 12193export as_nl 12194# Printing a long string crashes Solaris 7 /usr/bin/printf. 12195as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12196as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12197as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12198# Prefer a ksh shell builtin over an external printf program on Solaris, 12199# but without wasting forks for bash or zsh. 12200if test -z "$BASH_VERSION$ZSH_VERSION" \ 12201 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12202 as_echo='print -r --' 12203 as_echo_n='print -rn --' 12204elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12205 as_echo='printf %s\n' 12206 as_echo_n='printf %s' 12207else 12208 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12209 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12210 as_echo_n='/usr/ucb/echo -n' 12211 else 12212 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12213 as_echo_n_body='eval 12214 arg=$1; 12215 case $arg in #( 12216 *"$as_nl"*) 12217 expr "X$arg" : "X\\(.*\\)$as_nl"; 12218 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12219 esac; 12220 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12221 ' 12222 export as_echo_n_body 12223 as_echo_n='sh -c $as_echo_n_body as_echo' 12224 fi 12225 export as_echo_body 12226 as_echo='sh -c $as_echo_body as_echo' 12227fi 12228 12229# The user is always right. 12230if test "${PATH_SEPARATOR+set}" != set; then 12231 PATH_SEPARATOR=: 12232 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12233 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12234 PATH_SEPARATOR=';' 12235 } 12236fi 12237 12238 12239# IFS 12240# We need space, tab and new line, in precisely that order. Quoting is 12241# there to prevent editors from complaining about space-tab. 12242# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12243# splitting by setting IFS to empty value.) 12244IFS=" "" $as_nl" 12245 12246# Find who we are. Look in the path if we contain no directory separator. 12247as_myself= 12248case $0 in #(( 12249 *[\\/]* ) as_myself=$0 ;; 12250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12251for as_dir in $PATH 12252do 12253 IFS=$as_save_IFS 12254 test -z "$as_dir" && as_dir=. 12255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12256 done 12257IFS=$as_save_IFS 12258 12259 ;; 12260esac 12261# We did not find ourselves, most probably we were run as `sh COMMAND' 12262# in which case we are not to be found in the path. 12263if test "x$as_myself" = x; then 12264 as_myself=$0 12265fi 12266if test ! -f "$as_myself"; then 12267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12268 exit 1 12269fi 12270 12271# Unset variables that we do not need and which cause bugs (e.g. in 12272# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12273# suppresses any "Segmentation fault" message there. '((' could 12274# trigger a bug in pdksh 5.2.14. 12275for as_var in BASH_ENV ENV MAIL MAILPATH 12276do eval test x\${$as_var+set} = xset \ 12277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12278done 12279PS1='$ ' 12280PS2='> ' 12281PS4='+ ' 12282 12283# NLS nuisances. 12284LC_ALL=C 12285export LC_ALL 12286LANGUAGE=C 12287export LANGUAGE 12288 12289# CDPATH. 12290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12291 12292 12293# as_fn_error STATUS ERROR [LINENO LOG_FD] 12294# ---------------------------------------- 12295# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12296# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12297# script with STATUS, using 1 if that was 0. 12298as_fn_error () 12299{ 12300 as_status=$1; test $as_status -eq 0 && as_status=1 12301 if test "$4"; then 12302 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12304 fi 12305 $as_echo "$as_me: error: $2" >&2 12306 as_fn_exit $as_status 12307} # as_fn_error 12308 12309 12310# as_fn_set_status STATUS 12311# ----------------------- 12312# Set $? to STATUS, without forking. 12313as_fn_set_status () 12314{ 12315 return $1 12316} # as_fn_set_status 12317 12318# as_fn_exit STATUS 12319# ----------------- 12320# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12321as_fn_exit () 12322{ 12323 set +e 12324 as_fn_set_status $1 12325 exit $1 12326} # as_fn_exit 12327 12328# as_fn_unset VAR 12329# --------------- 12330# Portably unset VAR. 12331as_fn_unset () 12332{ 12333 { eval $1=; unset $1;} 12334} 12335as_unset=as_fn_unset 12336# as_fn_append VAR VALUE 12337# ---------------------- 12338# Append the text in VALUE to the end of the definition contained in VAR. Take 12339# advantage of any shell optimizations that allow amortized linear growth over 12340# repeated appends, instead of the typical quadratic growth present in naive 12341# implementations. 12342if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12343 eval 'as_fn_append () 12344 { 12345 eval $1+=\$2 12346 }' 12347else 12348 as_fn_append () 12349 { 12350 eval $1=\$$1\$2 12351 } 12352fi # as_fn_append 12353 12354# as_fn_arith ARG... 12355# ------------------ 12356# Perform arithmetic evaluation on the ARGs, and store the result in the 12357# global $as_val. Take advantage of shells that can avoid forks. The arguments 12358# must be portable across $(()) and expr. 12359if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12360 eval 'as_fn_arith () 12361 { 12362 as_val=$(( $* )) 12363 }' 12364else 12365 as_fn_arith () 12366 { 12367 as_val=`expr "$@" || test $? -eq 1` 12368 } 12369fi # as_fn_arith 12370 12371 12372if expr a : '\(a\)' >/dev/null 2>&1 && 12373 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12374 as_expr=expr 12375else 12376 as_expr=false 12377fi 12378 12379if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12380 as_basename=basename 12381else 12382 as_basename=false 12383fi 12384 12385if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12386 as_dirname=dirname 12387else 12388 as_dirname=false 12389fi 12390 12391as_me=`$as_basename -- "$0" || 12392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12393 X"$0" : 'X\(//\)$' \| \ 12394 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12395$as_echo X/"$0" | 12396 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12397 s//\1/ 12398 q 12399 } 12400 /^X\/\(\/\/\)$/{ 12401 s//\1/ 12402 q 12403 } 12404 /^X\/\(\/\).*/{ 12405 s//\1/ 12406 q 12407 } 12408 s/.*/./; q'` 12409 12410# Avoid depending upon Character Ranges. 12411as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12412as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12413as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12414as_cr_digits='0123456789' 12415as_cr_alnum=$as_cr_Letters$as_cr_digits 12416 12417ECHO_C= ECHO_N= ECHO_T= 12418case `echo -n x` in #((((( 12419-n*) 12420 case `echo 'xy\c'` in 12421 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12422 xy) ECHO_C='\c';; 12423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12424 ECHO_T=' ';; 12425 esac;; 12426*) 12427 ECHO_N='-n';; 12428esac 12429 12430rm -f conf$$ conf$$.exe conf$$.file 12431if test -d conf$$.dir; then 12432 rm -f conf$$.dir/conf$$.file 12433else 12434 rm -f conf$$.dir 12435 mkdir conf$$.dir 2>/dev/null 12436fi 12437if (echo >conf$$.file) 2>/dev/null; then 12438 if ln -s conf$$.file conf$$ 2>/dev/null; then 12439 as_ln_s='ln -s' 12440 # ... but there are two gotchas: 12441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12443 # In both cases, we have to default to `cp -pR'. 12444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12445 as_ln_s='cp -pR' 12446 elif ln conf$$.file conf$$ 2>/dev/null; then 12447 as_ln_s=ln 12448 else 12449 as_ln_s='cp -pR' 12450 fi 12451else 12452 as_ln_s='cp -pR' 12453fi 12454rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12455rmdir conf$$.dir 2>/dev/null 12456 12457 12458# as_fn_mkdir_p 12459# ------------- 12460# Create "$as_dir" as a directory, including parents if necessary. 12461as_fn_mkdir_p () 12462{ 12463 12464 case $as_dir in #( 12465 -*) as_dir=./$as_dir;; 12466 esac 12467 test -d "$as_dir" || eval $as_mkdir_p || { 12468 as_dirs= 12469 while :; do 12470 case $as_dir in #( 12471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12472 *) as_qdir=$as_dir;; 12473 esac 12474 as_dirs="'$as_qdir' $as_dirs" 12475 as_dir=`$as_dirname -- "$as_dir" || 12476$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12477 X"$as_dir" : 'X\(//\)[^/]' \| \ 12478 X"$as_dir" : 'X\(//\)$' \| \ 12479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12480$as_echo X"$as_dir" | 12481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12482 s//\1/ 12483 q 12484 } 12485 /^X\(\/\/\)[^/].*/{ 12486 s//\1/ 12487 q 12488 } 12489 /^X\(\/\/\)$/{ 12490 s//\1/ 12491 q 12492 } 12493 /^X\(\/\).*/{ 12494 s//\1/ 12495 q 12496 } 12497 s/.*/./; q'` 12498 test -d "$as_dir" && break 12499 done 12500 test -z "$as_dirs" || eval "mkdir $as_dirs" 12501 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12502 12503 12504} # as_fn_mkdir_p 12505if mkdir -p . 2>/dev/null; then 12506 as_mkdir_p='mkdir -p "$as_dir"' 12507else 12508 test -d ./-p && rmdir ./-p 12509 as_mkdir_p=false 12510fi 12511 12512 12513# as_fn_executable_p FILE 12514# ----------------------- 12515# Test if FILE is an executable regular file. 12516as_fn_executable_p () 12517{ 12518 test -f "$1" && test -x "$1" 12519} # as_fn_executable_p 12520as_test_x='test -x' 12521as_executable_p=as_fn_executable_p 12522 12523# Sed expression to map a string onto a valid CPP name. 12524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12525 12526# Sed expression to map a string onto a valid variable name. 12527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12528 12529 12530exec 6>&1 12531## ----------------------------------- ## 12532## Main body of $CONFIG_STATUS script. ## 12533## ----------------------------------- ## 12534_ASEOF 12535test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12536 12537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12538# Save the log message, to keep $0 and so on meaningful, and to 12539# report actual input values of CONFIG_FILES etc. instead of their 12540# values after options handling. 12541ac_log=" 12542This file was extended by iperf $as_me 3-CURRENT, which was 12543generated by GNU Autoconf 2.69. Invocation command line was 12544 12545 CONFIG_FILES = $CONFIG_FILES 12546 CONFIG_HEADERS = $CONFIG_HEADERS 12547 CONFIG_LINKS = $CONFIG_LINKS 12548 CONFIG_COMMANDS = $CONFIG_COMMANDS 12549 $ $0 $@ 12550 12551on `(hostname || uname -n) 2>/dev/null | sed 1q` 12552" 12553 12554_ACEOF 12555 12556case $ac_config_files in *" 12557"*) set x $ac_config_files; shift; ac_config_files=$*;; 12558esac 12559 12560case $ac_config_headers in *" 12561"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12562esac 12563 12564 12565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12566# Files that config.status was made for. 12567config_files="$ac_config_files" 12568config_headers="$ac_config_headers" 12569config_commands="$ac_config_commands" 12570 12571_ACEOF 12572 12573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12574ac_cs_usage="\ 12575\`$as_me' instantiates files and other configuration actions 12576from templates according to the current configuration. Unless the files 12577and actions are specified as TAGs, all are instantiated by default. 12578 12579Usage: $0 [OPTION]... [TAG]... 12580 12581 -h, --help print this help, then exit 12582 -V, --version print version number and configuration settings, then exit 12583 --config print configuration, then exit 12584 -q, --quiet, --silent 12585 do not print progress messages 12586 -d, --debug don't remove temporary files 12587 --recheck update $as_me by reconfiguring in the same conditions 12588 --file=FILE[:TEMPLATE] 12589 instantiate the configuration file FILE 12590 --header=FILE[:TEMPLATE] 12591 instantiate the configuration header FILE 12592 12593Configuration files: 12594$config_files 12595 12596Configuration headers: 12597$config_headers 12598 12599Configuration commands: 12600$config_commands 12601 12602Report bugs to <https://github.com/esnet/iperf>. 12603iperf home page: <http://software.es.net/iperf/>." 12604 12605_ACEOF 12606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12607ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12608ac_cs_version="\\ 12609iperf config.status 3-CURRENT 12610configured by $0, generated by GNU Autoconf 2.69, 12611 with options \\"\$ac_cs_config\\" 12612 12613Copyright (C) 2012 Free Software Foundation, Inc. 12614This config.status script is free software; the Free Software Foundation 12615gives unlimited permission to copy, distribute and modify it." 12616 12617ac_pwd='$ac_pwd' 12618srcdir='$srcdir' 12619INSTALL='$INSTALL' 12620MKDIR_P='$MKDIR_P' 12621AWK='$AWK' 12622test -n "\$AWK" || AWK=awk 12623_ACEOF 12624 12625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12626# The default lists apply if the user does not specify any file. 12627ac_need_defaults=: 12628while test $# != 0 12629do 12630 case $1 in 12631 --*=?*) 12632 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12634 ac_shift=: 12635 ;; 12636 --*=) 12637 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12638 ac_optarg= 12639 ac_shift=: 12640 ;; 12641 *) 12642 ac_option=$1 12643 ac_optarg=$2 12644 ac_shift=shift 12645 ;; 12646 esac 12647 12648 case $ac_option in 12649 # Handling of the options. 12650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12651 ac_cs_recheck=: ;; 12652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12653 $as_echo "$ac_cs_version"; exit ;; 12654 --config | --confi | --conf | --con | --co | --c ) 12655 $as_echo "$ac_cs_config"; exit ;; 12656 --debug | --debu | --deb | --de | --d | -d ) 12657 debug=: ;; 12658 --file | --fil | --fi | --f ) 12659 $ac_shift 12660 case $ac_optarg in 12661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12662 '') as_fn_error $? "missing file argument" ;; 12663 esac 12664 as_fn_append CONFIG_FILES " '$ac_optarg'" 12665 ac_need_defaults=false;; 12666 --header | --heade | --head | --hea ) 12667 $ac_shift 12668 case $ac_optarg in 12669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12670 esac 12671 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12672 ac_need_defaults=false;; 12673 --he | --h) 12674 # Conflict between --help and --header 12675 as_fn_error $? "ambiguous option: \`$1' 12676Try \`$0 --help' for more information.";; 12677 --help | --hel | -h ) 12678 $as_echo "$ac_cs_usage"; exit ;; 12679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12680 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12681 ac_cs_silent=: ;; 12682 12683 # This is an error. 12684 -*) as_fn_error $? "unrecognized option: \`$1' 12685Try \`$0 --help' for more information." ;; 12686 12687 *) as_fn_append ac_config_targets " $1" 12688 ac_need_defaults=false ;; 12689 12690 esac 12691 shift 12692done 12693 12694ac_configure_extra_args= 12695 12696if $ac_cs_silent; then 12697 exec 6>/dev/null 12698 ac_configure_extra_args="$ac_configure_extra_args --silent" 12699fi 12700 12701_ACEOF 12702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12703if \$ac_cs_recheck; then 12704 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12705 shift 12706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12707 CONFIG_SHELL='$SHELL' 12708 export CONFIG_SHELL 12709 exec "\$@" 12710fi 12711 12712_ACEOF 12713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12714exec 5>>config.log 12715{ 12716 echo 12717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12718## Running $as_me. ## 12719_ASBOX 12720 $as_echo "$ac_log" 12721} >&5 12722 12723_ACEOF 12724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12725# 12726# INIT-COMMANDS 12727# 12728AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12729 12730 12731# The HP-UX ksh and POSIX shell print the target directory to stdout 12732# if CDPATH is set. 12733(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12734 12735sed_quote_subst='$sed_quote_subst' 12736double_quote_subst='$double_quote_subst' 12737delay_variable_subst='$delay_variable_subst' 12738macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12739macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12740enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12741enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12742pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12743enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12744SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12745ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12746PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 12747host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12748host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12749host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12750build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12751build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12752build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12753SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12754Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12755GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12756EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12757FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12758LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12759NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12760LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12761max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12762ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12763exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12764lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12765lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12766lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12767lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 12768lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 12769reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12770reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12771OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12772deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12773file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12774file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 12775want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 12776DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 12777sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 12778AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12779AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12780archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 12781STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12782RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12783old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12784old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12785old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12786lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12787CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12788CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12789compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12790GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12791lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12792lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12793lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12794lt_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"`' 12795nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 12796lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 12797objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12798MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12799lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12800lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12801lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12802lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12803lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12804need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12805MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 12806DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12807NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12808LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12809OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12810OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12811libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12812shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12813extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12814archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12815enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12816export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12817whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12818compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12819old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12820old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12821archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12822archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12823module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12824module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12825with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12826allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12827no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12828hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12829hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12830hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12831hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12832hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12833hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12834hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12835inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12836link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12837always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12838export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12839exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12840include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12841prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12842postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 12843file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12844variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12845need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12846need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12847version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12848runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12849shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12850shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12851libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12852library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12853soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12854install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12855postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12856postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12857finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12858finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12859hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12860sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12861sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12862hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12863enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12864enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12865enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12866old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12867striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12868 12869LTCC='$LTCC' 12870LTCFLAGS='$LTCFLAGS' 12871compiler='$compiler_DEFAULT' 12872 12873# A function that is used when there is no print builtin or printf. 12874func_fallback_echo () 12875{ 12876 eval 'cat <<_LTECHO_EOF 12877\$1 12878_LTECHO_EOF' 12879} 12880 12881# Quote evaled strings. 12882for var in SHELL \ 12883ECHO \ 12884PATH_SEPARATOR \ 12885SED \ 12886GREP \ 12887EGREP \ 12888FGREP \ 12889LD \ 12890NM \ 12891LN_S \ 12892lt_SP2NL \ 12893lt_NL2SP \ 12894reload_flag \ 12895OBJDUMP \ 12896deplibs_check_method \ 12897file_magic_cmd \ 12898file_magic_glob \ 12899want_nocaseglob \ 12900DLLTOOL \ 12901sharedlib_from_linklib_cmd \ 12902AR \ 12903AR_FLAGS \ 12904archiver_list_spec \ 12905STRIP \ 12906RANLIB \ 12907CC \ 12908CFLAGS \ 12909compiler \ 12910lt_cv_sys_global_symbol_pipe \ 12911lt_cv_sys_global_symbol_to_cdecl \ 12912lt_cv_sys_global_symbol_to_c_name_address \ 12913lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12914nm_file_list_spec \ 12915lt_prog_compiler_no_builtin_flag \ 12916lt_prog_compiler_pic \ 12917lt_prog_compiler_wl \ 12918lt_prog_compiler_static \ 12919lt_cv_prog_compiler_c_o \ 12920need_locks \ 12921MANIFEST_TOOL \ 12922DSYMUTIL \ 12923NMEDIT \ 12924LIPO \ 12925OTOOL \ 12926OTOOL64 \ 12927shrext_cmds \ 12928export_dynamic_flag_spec \ 12929whole_archive_flag_spec \ 12930compiler_needs_object \ 12931with_gnu_ld \ 12932allow_undefined_flag \ 12933no_undefined_flag \ 12934hardcode_libdir_flag_spec \ 12935hardcode_libdir_separator \ 12936exclude_expsyms \ 12937include_expsyms \ 12938file_list_spec \ 12939variables_saved_for_relink \ 12940libname_spec \ 12941library_names_spec \ 12942soname_spec \ 12943install_override_mode \ 12944finish_eval \ 12945old_striplib \ 12946striplib; do 12947 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12948 *[\\\\\\\`\\"\\\$]*) 12949 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12950 ;; 12951 *) 12952 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12953 ;; 12954 esac 12955done 12956 12957# Double-quote double-evaled strings. 12958for var in reload_cmds \ 12959old_postinstall_cmds \ 12960old_postuninstall_cmds \ 12961old_archive_cmds \ 12962extract_expsyms_cmds \ 12963old_archive_from_new_cmds \ 12964old_archive_from_expsyms_cmds \ 12965archive_cmds \ 12966archive_expsym_cmds \ 12967module_cmds \ 12968module_expsym_cmds \ 12969export_symbols_cmds \ 12970prelink_cmds \ 12971postlink_cmds \ 12972postinstall_cmds \ 12973postuninstall_cmds \ 12974finish_cmds \ 12975sys_lib_search_path_spec \ 12976sys_lib_dlsearch_path_spec; do 12977 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12978 *[\\\\\\\`\\"\\\$]*) 12979 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12980 ;; 12981 *) 12982 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12983 ;; 12984 esac 12985done 12986 12987ac_aux_dir='$ac_aux_dir' 12988xsi_shell='$xsi_shell' 12989lt_shell_append='$lt_shell_append' 12990 12991# See if we are running on zsh, and set the options which allow our 12992# commands through without removal of \ escapes INIT. 12993if test -n "\${ZSH_VERSION+set}" ; then 12994 setopt NO_GLOB_SUBST 12995fi 12996 12997 12998 PACKAGE='$PACKAGE' 12999 VERSION='$VERSION' 13000 TIMESTAMP='$TIMESTAMP' 13001 RM='$RM' 13002 ofile='$ofile' 13003 13004 13005 13006 13007_ACEOF 13008 13009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13010 13011# Handling of arguments. 13012for ac_config_target in $ac_config_targets 13013do 13014 case $ac_config_target in 13015 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 13016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13017 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13018 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13019 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13020 "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;; 13021 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 13022 13023 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13024 esac 13025done 13026 13027 13028# If the user did not use the arguments to specify the items to instantiate, 13029# then the envvar interface is used. Set only those that are not. 13030# We use the long form for the default assignment because of an extremely 13031# bizarre bug on SunOS 4.1.3. 13032if $ac_need_defaults; then 13033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13036fi 13037 13038# Have a temporary directory for convenience. Make it in the build tree 13039# simply because there is no reason against having it here, and in addition, 13040# creating and moving files from /tmp can sometimes cause problems. 13041# Hook for its removal unless debugging. 13042# Note that there is a small window in which the directory will not be cleaned: 13043# after its creation but before its name has been assigned to `$tmp'. 13044$debug || 13045{ 13046 tmp= ac_tmp= 13047 trap 'exit_status=$? 13048 : "${ac_tmp:=$tmp}" 13049 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13050' 0 13051 trap 'as_fn_exit 1' 1 2 13 15 13052} 13053# Create a (secure) tmp directory for tmp files. 13054 13055{ 13056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13057 test -d "$tmp" 13058} || 13059{ 13060 tmp=./conf$$-$RANDOM 13061 (umask 077 && mkdir "$tmp") 13062} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13063ac_tmp=$tmp 13064 13065# Set up the scripts for CONFIG_FILES section. 13066# No need to generate them if there are no CONFIG_FILES. 13067# This happens for instance with `./config.status config.h'. 13068if test -n "$CONFIG_FILES"; then 13069 13070 13071ac_cr=`echo X | tr X '\015'` 13072# On cygwin, bash can eat \r inside `` if the user requested igncr. 13073# But we know of no other shell where ac_cr would be empty at this 13074# point, so we can use a bashism as a fallback. 13075if test "x$ac_cr" = x; then 13076 eval ac_cr=\$\'\\r\' 13077fi 13078ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13079if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13080 ac_cs_awk_cr='\\r' 13081else 13082 ac_cs_awk_cr=$ac_cr 13083fi 13084 13085echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13086_ACEOF 13087 13088 13089{ 13090 echo "cat >conf$$subs.awk <<_ACEOF" && 13091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13092 echo "_ACEOF" 13093} >conf$$subs.sh || 13094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13095ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13096ac_delim='%!_!# ' 13097for ac_last_try in false false false false false :; do 13098 . ./conf$$subs.sh || 13099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13100 13101 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13102 if test $ac_delim_n = $ac_delim_num; then 13103 break 13104 elif $ac_last_try; then 13105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13106 else 13107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13108 fi 13109done 13110rm -f conf$$subs.sh 13111 13112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13113cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13114_ACEOF 13115sed -n ' 13116h 13117s/^/S["/; s/!.*/"]=/ 13118p 13119g 13120s/^[^!]*!// 13121:repl 13122t repl 13123s/'"$ac_delim"'$// 13124t delim 13125:nl 13126h 13127s/\(.\{148\}\)..*/\1/ 13128t more1 13129s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13130p 13131n 13132b repl 13133:more1 13134s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13135p 13136g 13137s/.\{148\}// 13138t nl 13139:delim 13140h 13141s/\(.\{148\}\)..*/\1/ 13142t more2 13143s/["\\]/\\&/g; s/^/"/; s/$/"/ 13144p 13145b 13146:more2 13147s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13148p 13149g 13150s/.\{148\}// 13151t delim 13152' <conf$$subs.awk | sed ' 13153/^[^""]/{ 13154 N 13155 s/\n// 13156} 13157' >>$CONFIG_STATUS || ac_write_fail=1 13158rm -f conf$$subs.awk 13159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13160_ACAWK 13161cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13162 for (key in S) S_is_set[key] = 1 13163 FS = "" 13164 13165} 13166{ 13167 line = $ 0 13168 nfields = split(line, field, "@") 13169 substed = 0 13170 len = length(field[1]) 13171 for (i = 2; i < nfields; i++) { 13172 key = field[i] 13173 keylen = length(key) 13174 if (S_is_set[key]) { 13175 value = S[key] 13176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13177 len += length(value) + length(field[++i]) 13178 substed = 1 13179 } else 13180 len += 1 + keylen 13181 } 13182 13183 print line 13184} 13185 13186_ACAWK 13187_ACEOF 13188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13189if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13190 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13191else 13192 cat 13193fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13194 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13195_ACEOF 13196 13197# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13198# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13199# trailing colons and then remove the whole line if VPATH becomes empty 13200# (actually we leave an empty line to preserve line numbers). 13201if test "x$srcdir" = x.; then 13202 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13203h 13204s/// 13205s/^/:/ 13206s/[ ]*$/:/ 13207s/:\$(srcdir):/:/g 13208s/:\${srcdir}:/:/g 13209s/:@srcdir@:/:/g 13210s/^:*// 13211s/:*$// 13212x 13213s/\(=[ ]*\).*/\1/ 13214G 13215s/\n// 13216s/^[^=]*=[ ]*$// 13217}' 13218fi 13219 13220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13221fi # test -n "$CONFIG_FILES" 13222 13223# Set up the scripts for CONFIG_HEADERS section. 13224# No need to generate them if there are no CONFIG_HEADERS. 13225# This happens for instance with `./config.status Makefile'. 13226if test -n "$CONFIG_HEADERS"; then 13227cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13228BEGIN { 13229_ACEOF 13230 13231# Transform confdefs.h into an awk script `defines.awk', embedded as 13232# here-document in config.status, that substitutes the proper values into 13233# config.h.in to produce config.h. 13234 13235# Create a delimiter string that does not exist in confdefs.h, to ease 13236# handling of long lines. 13237ac_delim='%!_!# ' 13238for ac_last_try in false false :; do 13239 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13240 if test -z "$ac_tt"; then 13241 break 13242 elif $ac_last_try; then 13243 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13244 else 13245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13246 fi 13247done 13248 13249# For the awk script, D is an array of macro values keyed by name, 13250# likewise P contains macro parameters if any. Preserve backslash 13251# newline sequences. 13252 13253ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13254sed -n ' 13255s/.\{148\}/&'"$ac_delim"'/g 13256t rset 13257:rset 13258s/^[ ]*#[ ]*define[ ][ ]*/ / 13259t def 13260d 13261:def 13262s/\\$// 13263t bsnl 13264s/["\\]/\\&/g 13265s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13266D["\1"]=" \3"/p 13267s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13268d 13269:bsnl 13270s/["\\]/\\&/g 13271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13272D["\1"]=" \3\\\\\\n"\\/p 13273t cont 13274s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13275t cont 13276d 13277:cont 13278n 13279s/.\{148\}/&'"$ac_delim"'/g 13280t clear 13281:clear 13282s/\\$// 13283t bsnlc 13284s/["\\]/\\&/g; s/^/"/; s/$/"/p 13285d 13286:bsnlc 13287s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13288b cont 13289' <confdefs.h | sed ' 13290s/'"$ac_delim"'/"\\\ 13291"/g' >>$CONFIG_STATUS || ac_write_fail=1 13292 13293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13294 for (key in D) D_is_set[key] = 1 13295 FS = "" 13296} 13297/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13298 line = \$ 0 13299 split(line, arg, " ") 13300 if (arg[1] == "#") { 13301 defundef = arg[2] 13302 mac1 = arg[3] 13303 } else { 13304 defundef = substr(arg[1], 2) 13305 mac1 = arg[2] 13306 } 13307 split(mac1, mac2, "(") #) 13308 macro = mac2[1] 13309 prefix = substr(line, 1, index(line, defundef) - 1) 13310 if (D_is_set[macro]) { 13311 # Preserve the white space surrounding the "#". 13312 print prefix "define", macro P[macro] D[macro] 13313 next 13314 } else { 13315 # Replace #undef with comments. This is necessary, for example, 13316 # in the case of _POSIX_SOURCE, which is predefined and required 13317 # on some systems where configure will not decide to define it. 13318 if (defundef == "undef") { 13319 print "/*", prefix defundef, macro, "*/" 13320 next 13321 } 13322 } 13323} 13324{ print } 13325_ACAWK 13326_ACEOF 13327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13328 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13329fi # test -n "$CONFIG_HEADERS" 13330 13331 13332eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13333shift 13334for ac_tag 13335do 13336 case $ac_tag in 13337 :[FHLC]) ac_mode=$ac_tag; continue;; 13338 esac 13339 case $ac_mode$ac_tag in 13340 :[FHL]*:*);; 13341 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13342 :[FH]-) ac_tag=-:-;; 13343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13344 esac 13345 ac_save_IFS=$IFS 13346 IFS=: 13347 set x $ac_tag 13348 IFS=$ac_save_IFS 13349 shift 13350 ac_file=$1 13351 shift 13352 13353 case $ac_mode in 13354 :L) ac_source=$1;; 13355 :[FH]) 13356 ac_file_inputs= 13357 for ac_f 13358 do 13359 case $ac_f in 13360 -) ac_f="$ac_tmp/stdin";; 13361 *) # Look for the file first in the build tree, then in the source tree 13362 # (if the path is not absolute). The absolute path cannot be DOS-style, 13363 # because $ac_f cannot contain `:'. 13364 test -f "$ac_f" || 13365 case $ac_f in 13366 [\\/$]*) false;; 13367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13368 esac || 13369 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13370 esac 13371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13372 as_fn_append ac_file_inputs " '$ac_f'" 13373 done 13374 13375 # Let's still pretend it is `configure' which instantiates (i.e., don't 13376 # use $as_me), people would be surprised to read: 13377 # /* config.h. Generated by config.status. */ 13378 configure_input='Generated from '` 13379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13380 `' by configure.' 13381 if test x"$ac_file" != x-; then 13382 configure_input="$ac_file. $configure_input" 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13384$as_echo "$as_me: creating $ac_file" >&6;} 13385 fi 13386 # Neutralize special characters interpreted by sed in replacement strings. 13387 case $configure_input in #( 13388 *\&* | *\|* | *\\* ) 13389 ac_sed_conf_input=`$as_echo "$configure_input" | 13390 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13391 *) ac_sed_conf_input=$configure_input;; 13392 esac 13393 13394 case $ac_tag in 13395 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13397 esac 13398 ;; 13399 esac 13400 13401 ac_dir=`$as_dirname -- "$ac_file" || 13402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13403 X"$ac_file" : 'X\(//\)[^/]' \| \ 13404 X"$ac_file" : 'X\(//\)$' \| \ 13405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13406$as_echo X"$ac_file" | 13407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13408 s//\1/ 13409 q 13410 } 13411 /^X\(\/\/\)[^/].*/{ 13412 s//\1/ 13413 q 13414 } 13415 /^X\(\/\/\)$/{ 13416 s//\1/ 13417 q 13418 } 13419 /^X\(\/\).*/{ 13420 s//\1/ 13421 q 13422 } 13423 s/.*/./; q'` 13424 as_dir="$ac_dir"; as_fn_mkdir_p 13425 ac_builddir=. 13426 13427case "$ac_dir" in 13428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13429*) 13430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13431 # A ".." for each directory in $ac_dir_suffix. 13432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13433 case $ac_top_builddir_sub in 13434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13436 esac ;; 13437esac 13438ac_abs_top_builddir=$ac_pwd 13439ac_abs_builddir=$ac_pwd$ac_dir_suffix 13440# for backward compatibility: 13441ac_top_builddir=$ac_top_build_prefix 13442 13443case $srcdir in 13444 .) # We are building in place. 13445 ac_srcdir=. 13446 ac_top_srcdir=$ac_top_builddir_sub 13447 ac_abs_top_srcdir=$ac_pwd ;; 13448 [\\/]* | ?:[\\/]* ) # Absolute name. 13449 ac_srcdir=$srcdir$ac_dir_suffix; 13450 ac_top_srcdir=$srcdir 13451 ac_abs_top_srcdir=$srcdir ;; 13452 *) # Relative name. 13453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13454 ac_top_srcdir=$ac_top_build_prefix$srcdir 13455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13456esac 13457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13458 13459 13460 case $ac_mode in 13461 :F) 13462 # 13463 # CONFIG_FILE 13464 # 13465 13466 case $INSTALL in 13467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13469 esac 13470 ac_MKDIR_P=$MKDIR_P 13471 case $MKDIR_P in 13472 [\\/$]* | ?:[\\/]* ) ;; 13473 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13474 esac 13475_ACEOF 13476 13477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13478# If the template does not know about datarootdir, expand it. 13479# FIXME: This hack should be removed a few years after 2.60. 13480ac_datarootdir_hack=; ac_datarootdir_seen= 13481ac_sed_dataroot=' 13482/datarootdir/ { 13483 p 13484 q 13485} 13486/@datadir@/p 13487/@docdir@/p 13488/@infodir@/p 13489/@localedir@/p 13490/@mandir@/p' 13491case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13492*datarootdir*) ac_datarootdir_seen=yes;; 13493*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13495$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13496_ACEOF 13497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13498 ac_datarootdir_hack=' 13499 s&@datadir@&$datadir&g 13500 s&@docdir@&$docdir&g 13501 s&@infodir@&$infodir&g 13502 s&@localedir@&$localedir&g 13503 s&@mandir@&$mandir&g 13504 s&\\\${datarootdir}&$datarootdir&g' ;; 13505esac 13506_ACEOF 13507 13508# Neutralize VPATH when `$srcdir' = `.'. 13509# Shell code in configure.ac might set extrasub. 13510# FIXME: do we really want to maintain this feature? 13511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13512ac_sed_extra="$ac_vpsub 13513$extrasub 13514_ACEOF 13515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13516:t 13517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13518s|@configure_input@|$ac_sed_conf_input|;t t 13519s&@top_builddir@&$ac_top_builddir_sub&;t t 13520s&@top_build_prefix@&$ac_top_build_prefix&;t t 13521s&@srcdir@&$ac_srcdir&;t t 13522s&@abs_srcdir@&$ac_abs_srcdir&;t t 13523s&@top_srcdir@&$ac_top_srcdir&;t t 13524s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13525s&@builddir@&$ac_builddir&;t t 13526s&@abs_builddir@&$ac_abs_builddir&;t t 13527s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13528s&@INSTALL@&$ac_INSTALL&;t t 13529s&@MKDIR_P@&$ac_MKDIR_P&;t t 13530$ac_datarootdir_hack 13531" 13532eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13533 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13534 13535test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13536 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13538 "$ac_tmp/out"`; test -z "$ac_out"; } && 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13540which seems to be undefined. Please make sure it is defined" >&5 13541$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13542which seems to be undefined. Please make sure it is defined" >&2;} 13543 13544 rm -f "$ac_tmp/stdin" 13545 case $ac_file in 13546 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13547 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13548 esac \ 13549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13550 ;; 13551 :H) 13552 # 13553 # CONFIG_HEADER 13554 # 13555 if test x"$ac_file" != x-; then 13556 { 13557 $as_echo "/* $configure_input */" \ 13558 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13559 } >"$ac_tmp/config.h" \ 13560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13561 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13563$as_echo "$as_me: $ac_file is unchanged" >&6;} 13564 else 13565 rm -f "$ac_file" 13566 mv "$ac_tmp/config.h" "$ac_file" \ 13567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13568 fi 13569 else 13570 $as_echo "/* $configure_input */" \ 13571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13572 || as_fn_error $? "could not create -" "$LINENO" 5 13573 fi 13574# Compute "$ac_file"'s index in $config_headers. 13575_am_arg="$ac_file" 13576_am_stamp_count=1 13577for _am_header in $config_headers :; do 13578 case $_am_header in 13579 $_am_arg | $_am_arg:* ) 13580 break ;; 13581 * ) 13582 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13583 esac 13584done 13585echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13586$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13587 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13588 X"$_am_arg" : 'X\(//\)$' \| \ 13589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13590$as_echo X"$_am_arg" | 13591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13592 s//\1/ 13593 q 13594 } 13595 /^X\(\/\/\)[^/].*/{ 13596 s//\1/ 13597 q 13598 } 13599 /^X\(\/\/\)$/{ 13600 s//\1/ 13601 q 13602 } 13603 /^X\(\/\).*/{ 13604 s//\1/ 13605 q 13606 } 13607 s/.*/./; q'`/stamp-h$_am_stamp_count 13608 ;; 13609 13610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13611$as_echo "$as_me: executing $ac_file commands" >&6;} 13612 ;; 13613 esac 13614 13615 13616 case $ac_file$ac_mode in 13617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13618 # Older Autoconf quotes --file arguments for eval, but not when files 13619 # are listed without --file. Let's play safe and only enable the eval 13620 # if we detect the quoting. 13621 case $CONFIG_FILES in 13622 *\'*) eval set x "$CONFIG_FILES" ;; 13623 *) set x $CONFIG_FILES ;; 13624 esac 13625 shift 13626 for mf 13627 do 13628 # Strip MF so we end up with the name of the file. 13629 mf=`echo "$mf" | sed -e 's/:.*$//'` 13630 # Check whether this is an Automake generated Makefile or not. 13631 # We used to match only the files named 'Makefile.in', but 13632 # some people rename them; so instead we look at the file content. 13633 # Grep'ing the first line is not enough: some people post-process 13634 # each Makefile.in and add a new line on top of each file to say so. 13635 # Grep'ing the whole file is not good either: AIX grep has a line 13636 # limit of 2048, but all sed's we know have understand at least 4000. 13637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13638 dirpart=`$as_dirname -- "$mf" || 13639$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13640 X"$mf" : 'X\(//\)[^/]' \| \ 13641 X"$mf" : 'X\(//\)$' \| \ 13642 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13643$as_echo X"$mf" | 13644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13645 s//\1/ 13646 q 13647 } 13648 /^X\(\/\/\)[^/].*/{ 13649 s//\1/ 13650 q 13651 } 13652 /^X\(\/\/\)$/{ 13653 s//\1/ 13654 q 13655 } 13656 /^X\(\/\).*/{ 13657 s//\1/ 13658 q 13659 } 13660 s/.*/./; q'` 13661 else 13662 continue 13663 fi 13664 # Extract the definition of DEPDIR, am__include, and am__quote 13665 # from the Makefile without running 'make'. 13666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13667 test -z "$DEPDIR" && continue 13668 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13669 test -z "$am__include" && continue 13670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13671 # Find all dependency output files, they are included files with 13672 # $(DEPDIR) in their names. We invoke sed twice because it is the 13673 # simplest approach to changing $(DEPDIR) to its actual value in the 13674 # expansion. 13675 for file in `sed -n " 13676 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13677 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 13678 # Make sure the directory exists. 13679 test -f "$dirpart/$file" && continue 13680 fdir=`$as_dirname -- "$file" || 13681$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13682 X"$file" : 'X\(//\)[^/]' \| \ 13683 X"$file" : 'X\(//\)$' \| \ 13684 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13685$as_echo X"$file" | 13686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13687 s//\1/ 13688 q 13689 } 13690 /^X\(\/\/\)[^/].*/{ 13691 s//\1/ 13692 q 13693 } 13694 /^X\(\/\/\)$/{ 13695 s//\1/ 13696 q 13697 } 13698 /^X\(\/\).*/{ 13699 s//\1/ 13700 q 13701 } 13702 s/.*/./; q'` 13703 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13704 # echo "creating $dirpart/$file" 13705 echo '# dummy' > "$dirpart/$file" 13706 done 13707 done 13708} 13709 ;; 13710 "libtool":C) 13711 13712 # See if we are running on zsh, and set the options which allow our 13713 # commands through without removal of \ escapes. 13714 if test -n "${ZSH_VERSION+set}" ; then 13715 setopt NO_GLOB_SUBST 13716 fi 13717 13718 cfgfile="${ofile}T" 13719 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13720 $RM "$cfgfile" 13721 13722 cat <<_LT_EOF >> "$cfgfile" 13723#! $SHELL 13724 13725# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13726# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13727# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13728# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13729# 13730# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13731# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 13732# Foundation, Inc. 13733# Written by Gordon Matzigkeit, 1996 13734# 13735# This file is part of GNU Libtool. 13736# 13737# GNU Libtool is free software; you can redistribute it and/or 13738# modify it under the terms of the GNU General Public License as 13739# published by the Free Software Foundation; either version 2 of 13740# the License, or (at your option) any later version. 13741# 13742# As a special exception to the GNU General Public License, 13743# if you distribute this file as part of a program or library that 13744# is built using GNU Libtool, you may include this file under the 13745# same distribution terms that you use for the rest of that program. 13746# 13747# GNU Libtool is distributed in the hope that it will be useful, 13748# but WITHOUT ANY WARRANTY; without even the implied warranty of 13749# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13750# GNU General Public License for more details. 13751# 13752# You should have received a copy of the GNU General Public License 13753# along with GNU Libtool; see the file COPYING. If not, a copy 13754# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13755# obtained by writing to the Free Software Foundation, Inc., 13756# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13757 13758 13759# The names of the tagged configurations supported by this script. 13760available_tags="" 13761 13762# ### BEGIN LIBTOOL CONFIG 13763 13764# Which release of libtool.m4 was used? 13765macro_version=$macro_version 13766macro_revision=$macro_revision 13767 13768# Whether or not to build shared libraries. 13769build_libtool_libs=$enable_shared 13770 13771# Whether or not to build static libraries. 13772build_old_libs=$enable_static 13773 13774# What type of objects to build. 13775pic_mode=$pic_mode 13776 13777# Whether or not to optimize for fast installation. 13778fast_install=$enable_fast_install 13779 13780# Shell to use when invoking shell scripts. 13781SHELL=$lt_SHELL 13782 13783# An echo program that protects backslashes. 13784ECHO=$lt_ECHO 13785 13786# The PATH separator for the build system. 13787PATH_SEPARATOR=$lt_PATH_SEPARATOR 13788 13789# The host system. 13790host_alias=$host_alias 13791host=$host 13792host_os=$host_os 13793 13794# The build system. 13795build_alias=$build_alias 13796build=$build 13797build_os=$build_os 13798 13799# A sed program that does not truncate output. 13800SED=$lt_SED 13801 13802# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13803Xsed="\$SED -e 1s/^X//" 13804 13805# A grep program that handles long lines. 13806GREP=$lt_GREP 13807 13808# An ERE matcher. 13809EGREP=$lt_EGREP 13810 13811# A literal string matcher. 13812FGREP=$lt_FGREP 13813 13814# A BSD- or MS-compatible name lister. 13815NM=$lt_NM 13816 13817# Whether we need soft or hard links. 13818LN_S=$lt_LN_S 13819 13820# What is the maximum length of a command? 13821max_cmd_len=$max_cmd_len 13822 13823# Object file suffix (normally "o"). 13824objext=$ac_objext 13825 13826# Executable file suffix (normally ""). 13827exeext=$exeext 13828 13829# whether the shell understands "unset". 13830lt_unset=$lt_unset 13831 13832# turn spaces into newlines. 13833SP2NL=$lt_lt_SP2NL 13834 13835# turn newlines into spaces. 13836NL2SP=$lt_lt_NL2SP 13837 13838# convert \$build file names to \$host format. 13839to_host_file_cmd=$lt_cv_to_host_file_cmd 13840 13841# convert \$build files to toolchain format. 13842to_tool_file_cmd=$lt_cv_to_tool_file_cmd 13843 13844# An object symbol dumper. 13845OBJDUMP=$lt_OBJDUMP 13846 13847# Method to check whether dependent libraries are shared objects. 13848deplibs_check_method=$lt_deplibs_check_method 13849 13850# Command to use when deplibs_check_method = "file_magic". 13851file_magic_cmd=$lt_file_magic_cmd 13852 13853# How to find potential files when deplibs_check_method = "file_magic". 13854file_magic_glob=$lt_file_magic_glob 13855 13856# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 13857want_nocaseglob=$lt_want_nocaseglob 13858 13859# DLL creation program. 13860DLLTOOL=$lt_DLLTOOL 13861 13862# Command to associate shared and link libraries. 13863sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 13864 13865# The archiver. 13866AR=$lt_AR 13867 13868# Flags to create an archive. 13869AR_FLAGS=$lt_AR_FLAGS 13870 13871# How to feed a file listing to the archiver. 13872archiver_list_spec=$lt_archiver_list_spec 13873 13874# A symbol stripping program. 13875STRIP=$lt_STRIP 13876 13877# Commands used to install an old-style archive. 13878RANLIB=$lt_RANLIB 13879old_postinstall_cmds=$lt_old_postinstall_cmds 13880old_postuninstall_cmds=$lt_old_postuninstall_cmds 13881 13882# Whether to use a lock for old archive extraction. 13883lock_old_archive_extraction=$lock_old_archive_extraction 13884 13885# A C compiler. 13886LTCC=$lt_CC 13887 13888# LTCC compiler flags. 13889LTCFLAGS=$lt_CFLAGS 13890 13891# Take the output of nm and produce a listing of raw symbols and C names. 13892global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13893 13894# Transform the output of nm in a proper C declaration. 13895global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13896 13897# Transform the output of nm in a C name address pair. 13898global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13899 13900# Transform the output of nm in a C name address pair when lib prefix is needed. 13901global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13902 13903# Specify filename containing input files for \$NM. 13904nm_file_list_spec=$lt_nm_file_list_spec 13905 13906# The root where to search for dependent libraries,and in which our libraries should be installed. 13907lt_sysroot=$lt_sysroot 13908 13909# The name of the directory that contains temporary libtool files. 13910objdir=$objdir 13911 13912# Used to examine libraries when file_magic_cmd begins with "file". 13913MAGIC_CMD=$MAGIC_CMD 13914 13915# Must we lock files when doing compilation? 13916need_locks=$lt_need_locks 13917 13918# Manifest tool. 13919MANIFEST_TOOL=$lt_MANIFEST_TOOL 13920 13921# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13922DSYMUTIL=$lt_DSYMUTIL 13923 13924# Tool to change global to local symbols on Mac OS X. 13925NMEDIT=$lt_NMEDIT 13926 13927# Tool to manipulate fat objects and archives on Mac OS X. 13928LIPO=$lt_LIPO 13929 13930# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13931OTOOL=$lt_OTOOL 13932 13933# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13934OTOOL64=$lt_OTOOL64 13935 13936# Old archive suffix (normally "a"). 13937libext=$libext 13938 13939# Shared library suffix (normally ".so"). 13940shrext_cmds=$lt_shrext_cmds 13941 13942# The commands to extract the exported symbol list from a shared archive. 13943extract_expsyms_cmds=$lt_extract_expsyms_cmds 13944 13945# Variables whose values should be saved in libtool wrapper scripts and 13946# restored at link time. 13947variables_saved_for_relink=$lt_variables_saved_for_relink 13948 13949# Do we need the "lib" prefix for modules? 13950need_lib_prefix=$need_lib_prefix 13951 13952# Do we need a version for libraries? 13953need_version=$need_version 13954 13955# Library versioning type. 13956version_type=$version_type 13957 13958# Shared library runtime path variable. 13959runpath_var=$runpath_var 13960 13961# Shared library path variable. 13962shlibpath_var=$shlibpath_var 13963 13964# Is shlibpath searched before the hard-coded library search path? 13965shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13966 13967# Format of library name prefix. 13968libname_spec=$lt_libname_spec 13969 13970# List of archive names. First name is the real one, the rest are links. 13971# The last name is the one that the linker finds with -lNAME 13972library_names_spec=$lt_library_names_spec 13973 13974# The coded name of the library, if different from the real name. 13975soname_spec=$lt_soname_spec 13976 13977# Permission mode override for installation of shared libraries. 13978install_override_mode=$lt_install_override_mode 13979 13980# Command to use after installation of a shared archive. 13981postinstall_cmds=$lt_postinstall_cmds 13982 13983# Command to use after uninstallation of a shared archive. 13984postuninstall_cmds=$lt_postuninstall_cmds 13985 13986# Commands used to finish a libtool library installation in a directory. 13987finish_cmds=$lt_finish_cmds 13988 13989# As "finish_cmds", except a single script fragment to be evaled but 13990# not shown. 13991finish_eval=$lt_finish_eval 13992 13993# Whether we should hardcode library paths into libraries. 13994hardcode_into_libs=$hardcode_into_libs 13995 13996# Compile-time system search path for libraries. 13997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13998 13999# Run-time system search path for libraries. 14000sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14001 14002# Whether dlopen is supported. 14003dlopen_support=$enable_dlopen 14004 14005# Whether dlopen of programs is supported. 14006dlopen_self=$enable_dlopen_self 14007 14008# Whether dlopen of statically linked programs is supported. 14009dlopen_self_static=$enable_dlopen_self_static 14010 14011# Commands to strip libraries. 14012old_striplib=$lt_old_striplib 14013striplib=$lt_striplib 14014 14015 14016# The linker used to build libraries. 14017LD=$lt_LD 14018 14019# How to create reloadable object files. 14020reload_flag=$lt_reload_flag 14021reload_cmds=$lt_reload_cmds 14022 14023# Commands used to build an old-style archive. 14024old_archive_cmds=$lt_old_archive_cmds 14025 14026# A language specific compiler. 14027CC=$lt_compiler 14028 14029# Is the compiler the GNU compiler? 14030with_gcc=$GCC 14031 14032# Compiler flag to turn off builtin functions. 14033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14034 14035# Additional compiler flags for building library objects. 14036pic_flag=$lt_lt_prog_compiler_pic 14037 14038# How to pass a linker flag through the compiler. 14039wl=$lt_lt_prog_compiler_wl 14040 14041# Compiler flag to prevent dynamic linking. 14042link_static_flag=$lt_lt_prog_compiler_static 14043 14044# Does compiler simultaneously support -c and -o options? 14045compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14046 14047# Whether or not to add -lc for building shared libraries. 14048build_libtool_need_lc=$archive_cmds_need_lc 14049 14050# Whether or not to disallow shared libs when runtime libs are static. 14051allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14052 14053# Compiler flag to allow reflexive dlopens. 14054export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14055 14056# Compiler flag to generate shared objects directly from archives. 14057whole_archive_flag_spec=$lt_whole_archive_flag_spec 14058 14059# Whether the compiler copes with passing no objects directly. 14060compiler_needs_object=$lt_compiler_needs_object 14061 14062# Create an old-style archive from a shared archive. 14063old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14064 14065# Create a temporary old-style archive to link instead of a shared archive. 14066old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14067 14068# Commands used to build a shared archive. 14069archive_cmds=$lt_archive_cmds 14070archive_expsym_cmds=$lt_archive_expsym_cmds 14071 14072# Commands used to build a loadable module if different from building 14073# a shared archive. 14074module_cmds=$lt_module_cmds 14075module_expsym_cmds=$lt_module_expsym_cmds 14076 14077# Whether we are building with GNU ld or not. 14078with_gnu_ld=$lt_with_gnu_ld 14079 14080# Flag that allows shared libraries with undefined symbols to be built. 14081allow_undefined_flag=$lt_allow_undefined_flag 14082 14083# Flag that enforces no undefined symbols. 14084no_undefined_flag=$lt_no_undefined_flag 14085 14086# Flag to hardcode \$libdir into a binary during linking. 14087# This must work even if \$libdir does not exist 14088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14089 14090# Whether we need a single "-rpath" flag with a separated argument. 14091hardcode_libdir_separator=$lt_hardcode_libdir_separator 14092 14093# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14094# DIR into the resulting binary. 14095hardcode_direct=$hardcode_direct 14096 14097# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14098# DIR into the resulting binary and the resulting library dependency is 14099# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14100# library is relocated. 14101hardcode_direct_absolute=$hardcode_direct_absolute 14102 14103# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14104# into the resulting binary. 14105hardcode_minus_L=$hardcode_minus_L 14106 14107# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14108# into the resulting binary. 14109hardcode_shlibpath_var=$hardcode_shlibpath_var 14110 14111# Set to "yes" if building a shared library automatically hardcodes DIR 14112# into the library and all subsequent libraries and executables linked 14113# against it. 14114hardcode_automatic=$hardcode_automatic 14115 14116# Set to yes if linker adds runtime paths of dependent libraries 14117# to runtime path list. 14118inherit_rpath=$inherit_rpath 14119 14120# Whether libtool must link a program against all its dependency libraries. 14121link_all_deplibs=$link_all_deplibs 14122 14123# Set to "yes" if exported symbols are required. 14124always_export_symbols=$always_export_symbols 14125 14126# The commands to list exported symbols. 14127export_symbols_cmds=$lt_export_symbols_cmds 14128 14129# Symbols that should not be listed in the preloaded symbols. 14130exclude_expsyms=$lt_exclude_expsyms 14131 14132# Symbols that must always be exported. 14133include_expsyms=$lt_include_expsyms 14134 14135# Commands necessary for linking programs (against libraries) with templates. 14136prelink_cmds=$lt_prelink_cmds 14137 14138# Commands necessary for finishing linking programs. 14139postlink_cmds=$lt_postlink_cmds 14140 14141# Specify filename containing input files. 14142file_list_spec=$lt_file_list_spec 14143 14144# How to hardcode a shared library path into an executable. 14145hardcode_action=$hardcode_action 14146 14147# ### END LIBTOOL CONFIG 14148 14149_LT_EOF 14150 14151 case $host_os in 14152 aix3*) 14153 cat <<\_LT_EOF >> "$cfgfile" 14154# AIX sometimes has problems with the GCC collect2 program. For some 14155# reason, if we set the COLLECT_NAMES environment variable, the problems 14156# vanish in a puff of smoke. 14157if test "X${COLLECT_NAMES+set}" != Xset; then 14158 COLLECT_NAMES= 14159 export COLLECT_NAMES 14160fi 14161_LT_EOF 14162 ;; 14163 esac 14164 14165 14166ltmain="$ac_aux_dir/ltmain.sh" 14167 14168 14169 # We use sed instead of cat because bash on DJGPP gets confused if 14170 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14171 # text mode, it properly converts lines to CR/LF. This bash problem 14172 # is reportedly fixed, but why not run on old versions too? 14173 sed '$q' "$ltmain" >> "$cfgfile" \ 14174 || (rm -f "$cfgfile"; exit 1) 14175 14176 if test x"$xsi_shell" = xyes; then 14177 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14178func_dirname ()\ 14179{\ 14180\ case ${1} in\ 14181\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14182\ * ) func_dirname_result="${3}" ;;\ 14183\ esac\ 14184} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14185 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14186 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14187test 0 -eq $? || _lt_function_replace_fail=: 14188 14189 14190 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14191func_basename ()\ 14192{\ 14193\ func_basename_result="${1##*/}"\ 14194} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14195 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14196 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14197test 0 -eq $? || _lt_function_replace_fail=: 14198 14199 14200 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14201func_dirname_and_basename ()\ 14202{\ 14203\ case ${1} in\ 14204\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14205\ * ) func_dirname_result="${3}" ;;\ 14206\ esac\ 14207\ func_basename_result="${1##*/}"\ 14208} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14209 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14211test 0 -eq $? || _lt_function_replace_fail=: 14212 14213 14214 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14215func_stripname ()\ 14216{\ 14217\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14218\ # positional parameters, so assign one to ordinary parameter first.\ 14219\ func_stripname_result=${3}\ 14220\ func_stripname_result=${func_stripname_result#"${1}"}\ 14221\ func_stripname_result=${func_stripname_result%"${2}"}\ 14222} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14223 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14225test 0 -eq $? || _lt_function_replace_fail=: 14226 14227 14228 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14229func_split_long_opt ()\ 14230{\ 14231\ func_split_long_opt_name=${1%%=*}\ 14232\ func_split_long_opt_arg=${1#*=}\ 14233} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14234 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14236test 0 -eq $? || _lt_function_replace_fail=: 14237 14238 14239 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14240func_split_short_opt ()\ 14241{\ 14242\ func_split_short_opt_arg=${1#??}\ 14243\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14244} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14245 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14247test 0 -eq $? || _lt_function_replace_fail=: 14248 14249 14250 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14251func_lo2o ()\ 14252{\ 14253\ case ${1} in\ 14254\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14255\ *) func_lo2o_result=${1} ;;\ 14256\ esac\ 14257} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14258 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14260test 0 -eq $? || _lt_function_replace_fail=: 14261 14262 14263 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14264func_xform ()\ 14265{\ 14266 func_xform_result=${1%.*}.lo\ 14267} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14268 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14270test 0 -eq $? || _lt_function_replace_fail=: 14271 14272 14273 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14274func_arith ()\ 14275{\ 14276 func_arith_result=$(( $* ))\ 14277} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14278 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14280test 0 -eq $? || _lt_function_replace_fail=: 14281 14282 14283 sed -e '/^func_len ()$/,/^} # func_len /c\ 14284func_len ()\ 14285{\ 14286 func_len_result=${#1}\ 14287} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14288 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14290test 0 -eq $? || _lt_function_replace_fail=: 14291 14292fi 14293 14294if test x"$lt_shell_append" = xyes; then 14295 sed -e '/^func_append ()$/,/^} # func_append /c\ 14296func_append ()\ 14297{\ 14298 eval "${1}+=\\${2}"\ 14299} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14300 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14302test 0 -eq $? || _lt_function_replace_fail=: 14303 14304 14305 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14306func_append_quoted ()\ 14307{\ 14308\ func_quote_for_eval "${2}"\ 14309\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14310} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14311 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14313test 0 -eq $? || _lt_function_replace_fail=: 14314 14315 14316 # Save a `func_append' function call where possible by direct use of '+=' 14317 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14318 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14320 test 0 -eq $? || _lt_function_replace_fail=: 14321else 14322 # Save a `func_append' function call even when '+=' is not available 14323 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14324 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14326 test 0 -eq $? || _lt_function_replace_fail=: 14327fi 14328 14329if test x"$_lt_function_replace_fail" = x":"; then 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14331$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14332fi 14333 14334 14335 mv -f "$cfgfile" "$ofile" || 14336 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14337 chmod +x "$ofile" 14338 14339 ;; 14340 14341 esac 14342done # for ac_tag 14343 14344 14345as_fn_exit 0 14346_ACEOF 14347ac_clean_files=$ac_clean_files_save 14348 14349test $ac_write_fail = 0 || 14350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14351 14352 14353# configure is writing to config.log, and then calls config.status. 14354# config.status does its own redirection, appending to config.log. 14355# Unfortunately, on DOS this fails, as config.log is still kept open 14356# by configure, so config.status won't be able to write to it; its 14357# output is simply discarded. So we exec the FD to /dev/null, 14358# effectively closing config.log, so it can be properly (re)opened and 14359# appended to by config.status. When coming back to configure, we 14360# need to make the FD available again. 14361if test "$no_create" != yes; then 14362 ac_cs_success=: 14363 ac_config_status_args= 14364 test "$silent" = yes && 14365 ac_config_status_args="$ac_config_status_args --quiet" 14366 exec 5>/dev/null 14367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14368 exec 5>>config.log 14369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14370 # would make configure fail if this is the last instruction. 14371 $ac_cs_success || as_fn_exit 1 14372fi 14373if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14375$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14376fi 14377 14378