1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for Google C++ Testing Framework 1.5.0. 4 # 5 # Report bugs to <googletestframework (at] googlegroups.com>. 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 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if 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 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_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. 45 if 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 --' 49 elif (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' 52 else 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' 72 fi 73 74 # The user is always right. 75 if 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 } 81 fi 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.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 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. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if 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 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -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 209 test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 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 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 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 244 fi; } 245 IFS=$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. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $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 267 exit 255 268 fi 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 bug-autoconf (at] gnu.org and 278 $0: googletestframework (at] googlegroups.com 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 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_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. 316 as_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. 326 as_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. 374 as_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. 384 if (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 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # 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. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # 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. 419 as_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 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_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. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_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 511 ECHO_C= ECHO_N= ECHO_T= 512 case `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';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (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 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_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. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 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. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='Google C++ Testing Framework' 592 PACKAGE_TARNAME='gtest' 593 PACKAGE_VERSION='1.5.0' 594 PACKAGE_STRING='Google C++ Testing Framework 1.5.0' 595 PACKAGE_BUGREPORT='googletestframework (at] googlegroups.com' 596 PACKAGE_URL='' 597 598 ac_unique_file="./COPYING" 599 # Factoring default headers for most tests. 600 ac_includes_default="\ 601 #include <stdio.h> 602 #ifdef HAVE_SYS_TYPES_H 603 # include <sys/types.h> 604 #endif 605 #ifdef HAVE_SYS_STAT_H 606 # include <sys/stat.h> 607 #endif 608 #ifdef STDC_HEADERS 609 # include <stdlib.h> 610 # include <stddef.h> 611 #else 612 # ifdef HAVE_STDLIB_H 613 # include <stdlib.h> 614 # endif 615 #endif 616 #ifdef HAVE_STRING_H 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618 # include <memory.h> 619 # endif 620 # include <string.h> 621 #endif 622 #ifdef HAVE_STRINGS_H 623 # include <strings.h> 624 #endif 625 #ifdef HAVE_INTTYPES_H 626 # include <inttypes.h> 627 #endif 628 #ifdef HAVE_STDINT_H 629 # include <stdint.h> 630 #endif 631 #ifdef HAVE_UNISTD_H 632 # include <unistd.h> 633 #endif" 634 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 HAVE_PTHREADS_FALSE 640 HAVE_PTHREADS_TRUE 641 PTHREAD_CFLAGS 642 PTHREAD_LIBS 643 PTHREAD_CC 644 acx_pthread_config 645 HAVE_PYTHON_FALSE 646 HAVE_PYTHON_TRUE 647 PYTHON 648 CXXCPP 649 CPP 650 OTOOL64 651 OTOOL 652 LIPO 653 NMEDIT 654 DSYMUTIL 655 MANIFEST_TOOL 656 RANLIB 657 ac_ct_AR 658 AR 659 DLLTOOL 660 OBJDUMP 661 LN_S 662 NM 663 ac_ct_DUMPBIN 664 DUMPBIN 665 LD 666 FGREP 667 EGREP 668 GREP 669 SED 670 host_os 671 host_vendor 672 host_cpu 673 host 674 build_os 675 build_vendor 676 build_cpu 677 build 678 LIBTOOL 679 am__fastdepCXX_FALSE 680 am__fastdepCXX_TRUE 681 CXXDEPMODE 682 ac_ct_CXX 683 CXXFLAGS 684 CXX 685 am__fastdepCC_FALSE 686 am__fastdepCC_TRUE 687 CCDEPMODE 688 am__nodep 689 AMDEPBACKSLASH 690 AMDEP_FALSE 691 AMDEP_TRUE 692 am__quote 693 am__include 694 DEPDIR 695 OBJEXT 696 EXEEXT 697 ac_ct_CC 698 CPPFLAGS 699 LDFLAGS 700 CFLAGS 701 CC 702 AM_BACKSLASH 703 AM_DEFAULT_VERBOSITY 704 AM_DEFAULT_V 705 AM_V 706 am__untar 707 am__tar 708 AMTAR 709 am__leading_dot 710 SET_MAKE 711 AWK 712 mkdir_p 713 MKDIR_P 714 INSTALL_STRIP_PROGRAM 715 STRIP 716 install_sh 717 MAKEINFO 718 AUTOHEADER 719 AUTOMAKE 720 AUTOCONF 721 ACLOCAL 722 VERSION 723 PACKAGE 724 CYGPATH_W 725 am__isrc 726 INSTALL_DATA 727 INSTALL_SCRIPT 728 INSTALL_PROGRAM 729 target_alias 730 host_alias 731 build_alias 732 LIBS 733 ECHO_T 734 ECHO_N 735 ECHO_C 736 DEFS 737 mandir 738 localedir 739 libdir 740 psdir 741 pdfdir 742 dvidir 743 htmldir 744 infodir 745 docdir 746 oldincludedir 747 includedir 748 localstatedir 749 sharedstatedir 750 sysconfdir 751 datadir 752 datarootdir 753 libexecdir 754 sbindir 755 bindir 756 program_transform_name 757 prefix 758 exec_prefix 759 PACKAGE_URL 760 PACKAGE_BUGREPORT 761 PACKAGE_STRING 762 PACKAGE_VERSION 763 PACKAGE_TARNAME 764 PACKAGE_NAME 765 PATH_SEPARATOR 766 SHELL' 767 ac_subst_files='' 768 ac_user_opts=' 769 enable_option_checking 770 enable_silent_rules 771 enable_dependency_tracking 772 enable_shared 773 enable_static 774 with_pic 775 enable_fast_install 776 with_gnu_ld 777 with_sysroot 778 enable_libtool_lock 779 with_pthreads 780 ' 781 ac_precious_vars='build_alias 782 host_alias 783 target_alias 784 CC 785 CFLAGS 786 LDFLAGS 787 LIBS 788 CPPFLAGS 789 CXX 790 CXXFLAGS 791 CCC 792 CPP 793 CXXCPP' 794 795 796 # Initialize some variables set by options. 797 ac_init_help= 798 ac_init_version=false 799 ac_unrecognized_opts= 800 ac_unrecognized_sep= 801 # The variables have the same names as the options, with 802 # dashes changed to underlines. 803 cache_file=/dev/null 804 exec_prefix=NONE 805 no_create= 806 no_recursion= 807 prefix=NONE 808 program_prefix=NONE 809 program_suffix=NONE 810 program_transform_name=s,x,x, 811 silent= 812 site= 813 srcdir= 814 verbose= 815 x_includes=NONE 816 x_libraries=NONE 817 818 # Installation directory options. 819 # These are left unexpanded so users can "make install exec_prefix=/foo" 820 # and all the variables that are supposed to be based on exec_prefix 821 # by default will actually change. 822 # Use braces instead of parens because sh, perl, etc. also accept them. 823 # (The list follows the same order as the GNU Coding Standards.) 824 bindir='${exec_prefix}/bin' 825 sbindir='${exec_prefix}/sbin' 826 libexecdir='${exec_prefix}/libexec' 827 datarootdir='${prefix}/share' 828 datadir='${datarootdir}' 829 sysconfdir='${prefix}/etc' 830 sharedstatedir='${prefix}/com' 831 localstatedir='${prefix}/var' 832 includedir='${prefix}/include' 833 oldincludedir='/usr/include' 834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 835 infodir='${datarootdir}/info' 836 htmldir='${docdir}' 837 dvidir='${docdir}' 838 pdfdir='${docdir}' 839 psdir='${docdir}' 840 libdir='${exec_prefix}/lib' 841 localedir='${datarootdir}/locale' 842 mandir='${datarootdir}/man' 843 844 ac_prev= 845 ac_dashdash= 846 for ac_option 847 do 848 # If the previous option needs an argument, assign it. 849 if test -n "$ac_prev"; then 850 eval $ac_prev=\$ac_option 851 ac_prev= 852 continue 853 fi 854 855 case $ac_option in 856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 857 *=) ac_optarg= ;; 858 *) ac_optarg=yes ;; 859 esac 860 861 # Accept the important Cygnus configure options, so we can diagnose typos. 862 863 case $ac_dashdash$ac_option in 864 --) 865 ac_dashdash=yes ;; 866 867 -bindir | --bindir | --bindi | --bind | --bin | --bi) 868 ac_prev=bindir ;; 869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 870 bindir=$ac_optarg ;; 871 872 -build | --build | --buil | --bui | --bu) 873 ac_prev=build_alias ;; 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 875 build_alias=$ac_optarg ;; 876 877 -cache-file | --cache-file | --cache-fil | --cache-fi \ 878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 879 ac_prev=cache_file ;; 880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 882 cache_file=$ac_optarg ;; 883 884 --config-cache | -C) 885 cache_file=config.cache ;; 886 887 -datadir | --datadir | --datadi | --datad) 888 ac_prev=datadir ;; 889 -datadir=* | --datadir=* | --datadi=* | --datad=*) 890 datadir=$ac_optarg ;; 891 892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 893 | --dataroo | --dataro | --datar) 894 ac_prev=datarootdir ;; 895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 897 datarootdir=$ac_optarg ;; 898 899 -disable-* | --disable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908 "enable_$ac_useropt" 909 "*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=no ;; 914 915 -docdir | --docdir | --docdi | --doc | --do) 916 ac_prev=docdir ;; 917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 918 docdir=$ac_optarg ;; 919 920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 921 ac_prev=dvidir ;; 922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 923 dvidir=$ac_optarg ;; 924 925 -enable-* | --enable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934 "enable_$ac_useropt" 935 "*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=\$ac_optarg ;; 940 941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 943 | --exec | --exe | --ex) 944 ac_prev=exec_prefix ;; 945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 947 | --exec=* | --exe=* | --ex=*) 948 exec_prefix=$ac_optarg ;; 949 950 -gas | --gas | --ga | --g) 951 # Obsolete; use --with-gas. 952 with_gas=yes ;; 953 954 -help | --help | --hel | --he | -h) 955 ac_init_help=long ;; 956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 957 ac_init_help=recursive ;; 958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 959 ac_init_help=short ;; 960 961 -host | --host | --hos | --ho) 962 ac_prev=host_alias ;; 963 -host=* | --host=* | --hos=* | --ho=*) 964 host_alias=$ac_optarg ;; 965 966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 967 ac_prev=htmldir ;; 968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 969 | --ht=*) 970 htmldir=$ac_optarg ;; 971 972 -includedir | --includedir | --includedi | --included | --include \ 973 | --includ | --inclu | --incl | --inc) 974 ac_prev=includedir ;; 975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 976 | --includ=* | --inclu=* | --incl=* | --inc=*) 977 includedir=$ac_optarg ;; 978 979 -infodir | --infodir | --infodi | --infod | --info | --inf) 980 ac_prev=infodir ;; 981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 982 infodir=$ac_optarg ;; 983 984 -libdir | --libdir | --libdi | --libd) 985 ac_prev=libdir ;; 986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 987 libdir=$ac_optarg ;; 988 989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 990 | --libexe | --libex | --libe) 991 ac_prev=libexecdir ;; 992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 993 | --libexe=* | --libex=* | --libe=*) 994 libexecdir=$ac_optarg ;; 995 996 -localedir | --localedir | --localedi | --localed | --locale) 997 ac_prev=localedir ;; 998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 999 localedir=$ac_optarg ;; 1000 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1002 | --localstate | --localstat | --localsta | --localst | --locals) 1003 ac_prev=localstatedir ;; 1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1006 localstatedir=$ac_optarg ;; 1007 1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1009 ac_prev=mandir ;; 1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1011 mandir=$ac_optarg ;; 1012 1013 -nfp | --nfp | --nf) 1014 # Obsolete; use --without-fp. 1015 with_fp=no ;; 1016 1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1018 | --no-cr | --no-c | -n) 1019 no_create=yes ;; 1020 1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1023 no_recursion=yes ;; 1024 1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1027 | --oldin | --oldi | --old | --ol | --o) 1028 ac_prev=oldincludedir ;; 1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1032 oldincludedir=$ac_optarg ;; 1033 1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1035 ac_prev=prefix ;; 1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1037 prefix=$ac_optarg ;; 1038 1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1040 | --program-pre | --program-pr | --program-p) 1041 ac_prev=program_prefix ;; 1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1044 program_prefix=$ac_optarg ;; 1045 1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1047 | --program-suf | --program-su | --program-s) 1048 ac_prev=program_suffix ;; 1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1051 program_suffix=$ac_optarg ;; 1052 1053 -program-transform-name | --program-transform-name \ 1054 | --program-transform-nam | --program-transform-na \ 1055 | --program-transform-n | --program-transform- \ 1056 | --program-transform | --program-transfor \ 1057 | --program-transfo | --program-transf \ 1058 | --program-trans | --program-tran \ 1059 | --progr-tra | --program-tr | --program-t) 1060 ac_prev=program_transform_name ;; 1061 -program-transform-name=* | --program-transform-name=* \ 1062 | --program-transform-nam=* | --program-transform-na=* \ 1063 | --program-transform-n=* | --program-transform-=* \ 1064 | --program-transform=* | --program-transfor=* \ 1065 | --program-transfo=* | --program-transf=* \ 1066 | --program-trans=* | --program-tran=* \ 1067 | --progr-tra=* | --program-tr=* | --program-t=*) 1068 program_transform_name=$ac_optarg ;; 1069 1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1071 ac_prev=pdfdir ;; 1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1073 pdfdir=$ac_optarg ;; 1074 1075 -psdir | --psdir | --psdi | --psd | --ps) 1076 ac_prev=psdir ;; 1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1078 psdir=$ac_optarg ;; 1079 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 | -silent | --silent | --silen | --sile | --sil) 1082 silent=yes ;; 1083 1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1085 ac_prev=sbindir ;; 1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1087 | --sbi=* | --sb=*) 1088 sbindir=$ac_optarg ;; 1089 1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1092 | --sharedst | --shareds | --shared | --share | --shar \ 1093 | --sha | --sh) 1094 ac_prev=sharedstatedir ;; 1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1098 | --sha=* | --sh=*) 1099 sharedstatedir=$ac_optarg ;; 1100 1101 -site | --site | --sit) 1102 ac_prev=site ;; 1103 -site=* | --site=* | --sit=*) 1104 site=$ac_optarg ;; 1105 1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1107 ac_prev=srcdir ;; 1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1109 srcdir=$ac_optarg ;; 1110 1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1112 | --syscon | --sysco | --sysc | --sys | --sy) 1113 ac_prev=sysconfdir ;; 1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1116 sysconfdir=$ac_optarg ;; 1117 1118 -target | --target | --targe | --targ | --tar | --ta | --t) 1119 ac_prev=target_alias ;; 1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1121 target_alias=$ac_optarg ;; 1122 1123 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1124 verbose=yes ;; 1125 1126 -version | --version | --versio | --versi | --vers | -V) 1127 ac_init_version=: ;; 1128 1129 -with-* | --with-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138 "with_$ac_useropt" 1139 "*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=\$ac_optarg ;; 1144 1145 -without-* | --without-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154 "with_$ac_useropt" 1155 "*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=no ;; 1160 1161 --x) 1162 # Obsolete; use --with-x. 1163 with_x=yes ;; 1164 1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1166 | --x-incl | --x-inc | --x-in | --x-i) 1167 ac_prev=x_includes ;; 1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1170 x_includes=$ac_optarg ;; 1171 1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1174 ac_prev=x_libraries ;; 1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1177 x_libraries=$ac_optarg ;; 1178 1179 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1180 Try \`$0 --help' for more information" 1181 ;; 1182 1183 *=*) 1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1185 # Reject names that are not valid shell variable names. 1186 case $ac_envvar in #( 1187 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1189 esac 1190 eval $ac_envvar=\$ac_optarg 1191 export $ac_envvar ;; 1192 1193 *) 1194 # FIXME: should be removed in autoconf 3.0. 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1199 ;; 1200 1201 esac 1202 done 1203 1204 if test -n "$ac_prev"; then 1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1206 as_fn_error $? "missing argument to $ac_option" 1207 fi 1208 1209 if test -n "$ac_unrecognized_opts"; then 1210 case $enable_option_checking in 1211 no) ;; 1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1214 esac 1215 fi 1216 1217 # Check all directory arguments for consistency. 1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1219 datadir sysconfdir sharedstatedir localstatedir includedir \ 1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1221 libdir localedir mandir 1222 do 1223 eval ac_val=\$$ac_var 1224 # Remove trailing slashes. 1225 case $ac_val in 1226 */ ) 1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1228 eval $ac_var=\$ac_val;; 1229 esac 1230 # Be sure to have absolute directory names. 1231 case $ac_val in 1232 [\\/$]* | ?:[\\/]* ) continue;; 1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1234 esac 1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1236 done 1237 1238 # There might be people who depend on the old broken behavior: `$host' 1239 # used to hold the argument of --host etc. 1240 # FIXME: To remove some day. 1241 build=$build_alias 1242 host=$host_alias 1243 target=$target_alias 1244 1245 # FIXME: To remove some day. 1246 if test "x$host_alias" != x; then 1247 if test "x$build_alias" = x; then 1248 cross_compiling=maybe 1249 elif test "x$build_alias" != "x$host_alias"; then 1250 cross_compiling=yes 1251 fi 1252 fi 1253 1254 ac_tool_prefix= 1255 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1256 1257 test "$silent" = yes && exec 6>/dev/null 1258 1259 1260 ac_pwd=`pwd` && test -n "$ac_pwd" && 1261 ac_ls_di=`ls -di .` && 1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1263 as_fn_error $? "working directory cannot be determined" 1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1265 as_fn_error $? "pwd does not report name of working directory" 1266 1267 1268 # Find the source files, if location was not specified. 1269 if test -z "$srcdir"; then 1270 ac_srcdir_defaulted=yes 1271 # Try the directory containing this script, then the parent directory. 1272 ac_confdir=`$as_dirname -- "$as_myself" || 1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274 X"$as_myself" : 'X\(//\)[^/]' \| \ 1275 X"$as_myself" : 'X\(//\)$' \| \ 1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1277 $as_echo X"$as_myself" | 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)[^/].*/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\).*/{ 1291 s//\1/ 1292 q 1293 } 1294 s/.*/./; q'` 1295 srcdir=$ac_confdir 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 srcdir=.. 1298 fi 1299 else 1300 ac_srcdir_defaulted=no 1301 fi 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1305 fi 1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1307 ac_abs_confdir=`( 1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1309 pwd)` 1310 # When building in place, set srcdir=. 1311 if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313 fi 1314 # Remove unnecessary trailing slashes from srcdir. 1315 # Double slashes in file names in object file debugging info 1316 # mess up M-x gdb in Emacs. 1317 case $srcdir in 1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319 esac 1320 for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325 done 1326 1327 # 1328 # Report the --help message. 1329 # 1330 if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334 \`configure' configures Google C++ Testing Framework 1.5.0 to adapt to many kinds of systems. 1335 1336 Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339 VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341 Defaults for the options are specified in brackets. 1342 1343 Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking ...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354 Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360 By default, \`make install' will install all the files in 1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363 for instance \`--prefix=\$HOME'. 1364 1365 For better control, use the options below. 1366 1367 Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/gtest] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387 _ACEOF 1388 1389 cat <<\_ACEOF 1390 1391 Program names: 1392 --program-prefix=PREFIX prepend PREFIX to installed program names 1393 --program-suffix=SUFFIX append SUFFIX to installed program names 1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1395 1396 System types: 1397 --build=BUILD configure for building on BUILD [guessed] 1398 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1399 _ACEOF 1400 fi 1401 1402 if test -n "$ac_init_help"; then 1403 case $ac_init_help in 1404 short | recursive ) echo "Configuration of Google C++ Testing Framework 1.5.0:";; 1405 esac 1406 cat <<\_ACEOF 1407 1408 Optional Features: 1409 --disable-option-checking ignore unrecognized --enable/--with options 1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1412 --enable-silent-rules less verbose build output (undo: "make V=1") 1413 --disable-silent-rules verbose build output (undo: "make V=0") 1414 --enable-dependency-tracking 1415 do not reject slow dependency extractors 1416 --disable-dependency-tracking 1417 speeds up one-time build 1418 --enable-shared[=PKGS] build shared libraries [default=yes] 1419 --enable-static[=PKGS] build static libraries [default=yes] 1420 --enable-fast-install[=PKGS] 1421 optimize for fast installation [default=yes] 1422 --disable-libtool-lock avoid locking (might break parallel builds) 1423 1424 Optional Packages: 1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1427 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1428 both] 1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1430 --with-sysroot=DIR Search for dependent libraries within DIR 1431 (or the compiler's sysroot if not specified). 1432 --with-pthreads use pthreads (default is yes) 1433 1434 Some influential environment variables: 1435 CC C compiler command 1436 CFLAGS C compiler flags 1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1438 nonstandard directory <lib dir> 1439 LIBS libraries to pass to the linker, e.g. -l<library> 1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1441 you have headers in a nonstandard directory <include dir> 1442 CXX C++ compiler command 1443 CXXFLAGS C++ compiler flags 1444 CPP C preprocessor 1445 CXXCPP C++ preprocessor 1446 1447 Use these variables to override the choices made by `configure' or to help 1448 it to find libraries and programs with nonstandard names/locations. 1449 1450 Report bugs to <googletestframework (at] googlegroups.com>. 1451 _ACEOF 1452 ac_status=$? 1453 fi 1454 1455 if test "$ac_init_help" = "recursive"; then 1456 # If there are subdirs, report their specific --help. 1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1458 test -d "$ac_dir" || 1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1460 continue 1461 ac_builddir=. 1462 1463 case "$ac_dir" in 1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465 *) 1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1467 # A ".." for each directory in $ac_dir_suffix. 1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1469 case $ac_top_builddir_sub in 1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1472 esac ;; 1473 esac 1474 ac_abs_top_builddir=$ac_pwd 1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1476 # for backward compatibility: 1477 ac_top_builddir=$ac_top_build_prefix 1478 1479 case $srcdir in 1480 .) # We are building in place. 1481 ac_srcdir=. 1482 ac_top_srcdir=$ac_top_builddir_sub 1483 ac_abs_top_srcdir=$ac_pwd ;; 1484 [\\/]* | ?:[\\/]* ) # Absolute name. 1485 ac_srcdir=$srcdir$ac_dir_suffix; 1486 ac_top_srcdir=$srcdir 1487 ac_abs_top_srcdir=$srcdir ;; 1488 *) # Relative name. 1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1490 ac_top_srcdir=$ac_top_build_prefix$srcdir 1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1492 esac 1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1494 1495 cd "$ac_dir" || { ac_status=$?; continue; } 1496 # Check for guested configure. 1497 if test -f "$ac_srcdir/configure.gnu"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1500 elif test -f "$ac_srcdir/configure"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure" --help=recursive 1503 else 1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1505 fi || ac_status=$? 1506 cd "$ac_pwd" || { ac_status=$?; break; } 1507 done 1508 fi 1509 1510 test -n "$ac_init_help" && exit $ac_status 1511 if $ac_init_version; then 1512 cat <<\_ACEOF 1513 Google C++ Testing Framework configure 1.5.0 1514 generated by GNU Autoconf 2.69 1515 1516 Copyright (C) 2012 Free Software Foundation, Inc. 1517 This configure script is free software; the Free Software Foundation 1518 gives unlimited permission to copy, distribute and modify it. 1519 _ACEOF 1520 exit 1521 fi 1522 1523 ## ------------------------ ## 1524 ## Autoconf initialization. ## 1525 ## ------------------------ ## 1526 1527 # ac_fn_c_try_compile LINENO 1528 # -------------------------- 1529 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1530 ac_fn_c_try_compile () 1531 { 1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1533 rm -f conftest.$ac_objext 1534 if { { ac_try="$ac_compile" 1535 case "(($ac_try" in 1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1537 *) ac_try_echo=$ac_try;; 1538 esac 1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1540 $as_echo "$ac_try_echo"; } >&5 1541 (eval "$ac_compile") 2>conftest.err 1542 ac_status=$? 1543 if test -s conftest.err; then 1544 grep -v '^ *+' conftest.err >conftest.er1 1545 cat conftest.er1 >&5 1546 mv -f conftest.er1 conftest.err 1547 fi 1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1549 test $ac_status = 0; } && { 1550 test -z "$ac_c_werror_flag" || 1551 test ! -s conftest.err 1552 } && test -s conftest.$ac_objext; then : 1553 ac_retval=0 1554 else 1555 $as_echo "$as_me: failed program was:" >&5 1556 sed 's/^/| /' conftest.$ac_ext >&5 1557 1558 ac_retval=1 1559 fi 1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561 as_fn_set_status $ac_retval 1562 1563 } # ac_fn_c_try_compile 1564 1565 # ac_fn_cxx_try_compile LINENO 1566 # ---------------------------- 1567 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1568 ac_fn_cxx_try_compile () 1569 { 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext 1572 if { { ac_try="$ac_compile" 1573 case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576 esac 1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578 $as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_cxx_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext; then : 1591 ac_retval=0 1592 else 1593 $as_echo "$as_me: failed program was:" >&5 1594 sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597 fi 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 as_fn_set_status $ac_retval 1600 1601 } # ac_fn_cxx_try_compile 1602 1603 # ac_fn_c_try_link LINENO 1604 # ----------------------- 1605 # Try to link conftest.$ac_ext, and return whether this succeeded. 1606 ac_fn_c_try_link () 1607 { 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 rm -f conftest.$ac_objext conftest$ac_exeext 1610 if { { ac_try="$ac_link" 1611 case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614 esac 1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616 $as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_link") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } && { 1626 test -z "$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 } && test -s conftest$ac_exeext && { 1629 test "$cross_compiling" = yes || 1630 test -x conftest$ac_exeext 1631 }; then : 1632 ac_retval=0 1633 else 1634 $as_echo "$as_me: failed program was:" >&5 1635 sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638 fi 1639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1641 # interfere with the next link command; also delete a directory that is 1642 # left behind by Apple's compiler. We do this before executing the actions. 1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 as_fn_set_status $ac_retval 1646 1647 } # ac_fn_c_try_link 1648 1649 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1650 # ------------------------------------------------------- 1651 # Tests whether HEADER exists and can be compiled using the include files in 1652 # INCLUDES, setting the cache variable VAR accordingly. 1653 ac_fn_c_check_header_compile () 1654 { 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1657 $as_echo_n "checking for $2... " >&6; } 1658 if eval \${$3+:} false; then : 1659 $as_echo_n "(cached) " >&6 1660 else 1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1662 /* end confdefs.h. */ 1663 $4 1664 #include <$2> 1665 _ACEOF 1666 if ac_fn_c_try_compile "$LINENO"; then : 1667 eval "$3=yes" 1668 else 1669 eval "$3=no" 1670 fi 1671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1672 fi 1673 eval ac_res=\$$3 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675 $as_echo "$ac_res" >&6; } 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678 } # ac_fn_c_check_header_compile 1679 1680 # ac_fn_c_try_cpp LINENO 1681 # ---------------------- 1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1683 ac_fn_c_try_cpp () 1684 { 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 if { { ac_try="$ac_cpp conftest.$ac_ext" 1687 case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690 esac 1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692 $as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } > conftest.i && { 1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 }; then : 1705 ac_retval=0 1706 else 1707 $as_echo "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711 fi 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715 } # ac_fn_c_try_cpp 1716 1717 # ac_fn_c_try_run LINENO 1718 # ---------------------- 1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1720 # that executables *can* be run. 1721 ac_fn_c_try_run () 1722 { 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 if { { ac_try="$ac_link" 1725 case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728 esac 1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730 $as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_link") 2>&5 1732 ac_status=$? 1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1735 { { case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738 esac 1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740 $as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_try") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; }; }; then : 1745 ac_retval=0 1746 else 1747 $as_echo "$as_me: program exited with status $ac_status" >&5 1748 $as_echo "$as_me: failed program was:" >&5 1749 sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=$ac_status 1752 fi 1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755 as_fn_set_status $ac_retval 1756 1757 } # ac_fn_c_try_run 1758 1759 # ac_fn_c_check_func LINENO FUNC VAR 1760 # ---------------------------------- 1761 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1762 ac_fn_c_check_func () 1763 { 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766 $as_echo_n "checking for $2... " >&6; } 1767 if eval \${$3+:} false; then : 1768 $as_echo_n "(cached) " >&6 1769 else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771 /* end confdefs.h. */ 1772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1773 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1774 #define $2 innocuous_$2 1775 1776 /* System header to define __stub macros and hopefully few prototypes, 1777 which can conflict with char $2 (); below. 1778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1779 <limits.h> exists even on freestanding compilers. */ 1780 1781 #ifdef __STDC__ 1782 # include <limits.h> 1783 #else 1784 # include <assert.h> 1785 #endif 1786 1787 #undef $2 1788 1789 /* Override any GCC internal prototype to avoid an error. 1790 Use char because int might match the return type of a GCC 1791 builtin and then its argument prototype would still apply. */ 1792 #ifdef __cplusplus 1793 extern "C" 1794 #endif 1795 char $2 (); 1796 /* The GNU C library defines this for functions which it implements 1797 to always fail with ENOSYS. Some functions are actually named 1798 something starting with __ and the normal name is an alias. */ 1799 #if defined __stub_$2 || defined __stub___$2 1800 choke me 1801 #endif 1802 1803 int 1804 main () 1805 { 1806 return $2 (); 1807 ; 1808 return 0; 1809 } 1810 _ACEOF 1811 if ac_fn_c_try_link "$LINENO"; then : 1812 eval "$3=yes" 1813 else 1814 eval "$3=no" 1815 fi 1816 rm -f core conftest.err conftest.$ac_objext \ 1817 conftest$ac_exeext conftest.$ac_ext 1818 fi 1819 eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821 $as_echo "$ac_res" >&6; } 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 1824 } # ac_fn_c_check_func 1825 1826 # ac_fn_cxx_try_cpp LINENO 1827 # ------------------------ 1828 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1829 ac_fn_cxx_try_cpp () 1830 { 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 if { { ac_try="$ac_cpp conftest.$ac_ext" 1833 case "(($ac_try" in 1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1835 *) ac_try_echo=$ac_try;; 1836 esac 1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1838 $as_echo "$ac_try_echo"; } >&5 1839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1840 ac_status=$? 1841 if test -s conftest.err; then 1842 grep -v '^ *+' conftest.err >conftest.er1 1843 cat conftest.er1 >&5 1844 mv -f conftest.er1 conftest.err 1845 fi 1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1847 test $ac_status = 0; } > conftest.i && { 1848 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1849 test ! -s conftest.err 1850 }; then : 1851 ac_retval=0 1852 else 1853 $as_echo "$as_me: failed program was:" >&5 1854 sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=1 1857 fi 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861 } # ac_fn_cxx_try_cpp 1862 1863 # ac_fn_cxx_try_link LINENO 1864 # ------------------------- 1865 # Try to link conftest.$ac_ext, and return whether this succeeded. 1866 ac_fn_cxx_try_link () 1867 { 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 rm -f conftest.$ac_objext conftest$ac_exeext 1870 if { { ac_try="$ac_link" 1871 case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874 esac 1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876 $as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_link") 2>conftest.err 1878 ac_status=$? 1879 if test -s conftest.err; then 1880 grep -v '^ *+' conftest.err >conftest.er1 1881 cat conftest.er1 >&5 1882 mv -f conftest.er1 conftest.err 1883 fi 1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1885 test $ac_status = 0; } && { 1886 test -z "$ac_cxx_werror_flag" || 1887 test ! -s conftest.err 1888 } && test -s conftest$ac_exeext && { 1889 test "$cross_compiling" = yes || 1890 test -x conftest$ac_exeext 1891 }; then : 1892 ac_retval=0 1893 else 1894 $as_echo "$as_me: failed program was:" >&5 1895 sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_retval=1 1898 fi 1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1901 # interfere with the next link command; also delete a directory that is 1902 # left behind by Apple's compiler. We do this before executing the actions. 1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 as_fn_set_status $ac_retval 1906 1907 } # ac_fn_cxx_try_link 1908 cat >config.log <<_ACEOF 1909 This file contains any messages produced by compilers while 1910 running configure, to aid debugging if configure makes a mistake. 1911 1912 It was created by Google C++ Testing Framework $as_me 1.5.0, which was 1913 generated by GNU Autoconf 2.69. Invocation command line was 1914 1915 $ $0 $@ 1916 1917 _ACEOF 1918 exec 5>>config.log 1919 { 1920 cat <<_ASUNAME 1921 ## --------- ## 1922 ## Platform. ## 1923 ## --------- ## 1924 1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1926 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1927 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1928 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1929 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1930 1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1933 1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1941 1942 _ASUNAME 1943 1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1945 for as_dir in $PATH 1946 do 1947 IFS=$as_save_IFS 1948 test -z "$as_dir" && as_dir=. 1949 $as_echo "PATH: $as_dir" 1950 done 1951 IFS=$as_save_IFS 1952 1953 } >&5 1954 1955 cat >&5 <<_ACEOF 1956 1957 1958 ## ----------- ## 1959 ## Core tests. ## 1960 ## ----------- ## 1961 1962 _ACEOF 1963 1964 1965 # Keep a trace of the command line. 1966 # Strip out --no-create and --no-recursion so they do not pile up. 1967 # Strip out --silent because we don't want to record it for future runs. 1968 # Also quote any args containing shell meta-characters. 1969 # Make two passes to allow for proper duplicate-argument suppression. 1970 ac_configure_args= 1971 ac_configure_args0= 1972 ac_configure_args1= 1973 ac_must_keep_next=false 1974 for ac_pass in 1 2 1975 do 1976 for ac_arg 1977 do 1978 case $ac_arg in 1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1981 | -silent | --silent | --silen | --sile | --sil) 1982 continue ;; 1983 *\'*) 1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1985 esac 1986 case $ac_pass in 1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1988 2) 1989 as_fn_append ac_configure_args1 " '$ac_arg'" 1990 if test $ac_must_keep_next = true; then 1991 ac_must_keep_next=false # Got value, back to normal. 1992 else 1993 case $ac_arg in 1994 *=* | --config-cache | -C | -disable-* | --disable-* \ 1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1997 | -with-* | --with-* | -without-* | --without-* | --x) 1998 case "$ac_configure_args0 " in 1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2000 esac 2001 ;; 2002 -* ) ac_must_keep_next=true ;; 2003 esac 2004 fi 2005 as_fn_append ac_configure_args " '$ac_arg'" 2006 ;; 2007 esac 2008 done 2009 done 2010 { ac_configure_args0=; unset ac_configure_args0;} 2011 { ac_configure_args1=; unset ac_configure_args1;} 2012 2013 # When interrupted or exit'd, cleanup temporary files, and complete 2014 # config.log. We remove comments because anyway the quotes in there 2015 # would cause problems or look ugly. 2016 # WARNING: Use '\'' to represent an apostrophe within the trap. 2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2018 trap 'exit_status=$? 2019 # Save into config.log some information that might help in debugging. 2020 { 2021 echo 2022 2023 $as_echo "## ---------------- ## 2024 ## Cache variables. ## 2025 ## ---------------- ##" 2026 echo 2027 # The following way of writing the cache mishandles newlines in values, 2028 ( 2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2030 eval ac_val=\$$ac_var 2031 case $ac_val in #( 2032 *${as_nl}*) 2033 case $ac_var in #( 2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2036 esac 2037 case $ac_var in #( 2038 _ | IFS | as_nl) ;; #( 2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2040 *) { eval $ac_var=; unset $ac_var;} ;; 2041 esac ;; 2042 esac 2043 done 2044 (set) 2>&1 | 2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2046 *${as_nl}ac_space=\ *) 2047 sed -n \ 2048 "s/'\''/'\''\\\\'\'''\''/g; 2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2050 ;; #( 2051 *) 2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2053 ;; 2054 esac | 2055 sort 2056 ) 2057 echo 2058 2059 $as_echo "## ----------------- ## 2060 ## Output variables. ## 2061 ## ----------------- ##" 2062 echo 2063 for ac_var in $ac_subst_vars 2064 do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in 2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2068 esac 2069 $as_echo "$ac_var='\''$ac_val'\''" 2070 done | sort 2071 echo 2072 2073 if test -n "$ac_subst_files"; then 2074 $as_echo "## ------------------- ## 2075 ## File substitutions. ## 2076 ## ------------------- ##" 2077 echo 2078 for ac_var in $ac_subst_files 2079 do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in 2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2083 esac 2084 $as_echo "$ac_var='\''$ac_val'\''" 2085 done | sort 2086 echo 2087 fi 2088 2089 if test -s confdefs.h; then 2090 $as_echo "## ----------- ## 2091 ## confdefs.h. ## 2092 ## ----------- ##" 2093 echo 2094 cat confdefs.h 2095 echo 2096 fi 2097 test "$ac_signal" != 0 && 2098 $as_echo "$as_me: caught signal $ac_signal" 2099 $as_echo "$as_me: exit $exit_status" 2100 } >&5 2101 rm -f core *.core core.conftest.* && 2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2103 exit $exit_status 2104 ' 0 2105 for ac_signal in 1 2 13 15; do 2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2107 done 2108 ac_signal=0 2109 2110 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2111 rm -f -r conftest* confdefs.h 2112 2113 $as_echo "/* confdefs.h */" > confdefs.h 2114 2115 # Predefined preprocessor variables. 2116 2117 cat >>confdefs.h <<_ACEOF 2118 #define PACKAGE_NAME "$PACKAGE_NAME" 2119 _ACEOF 2120 2121 cat >>confdefs.h <<_ACEOF 2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2123 _ACEOF 2124 2125 cat >>confdefs.h <<_ACEOF 2126 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2127 _ACEOF 2128 2129 cat >>confdefs.h <<_ACEOF 2130 #define PACKAGE_STRING "$PACKAGE_STRING" 2131 _ACEOF 2132 2133 cat >>confdefs.h <<_ACEOF 2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2135 _ACEOF 2136 2137 cat >>confdefs.h <<_ACEOF 2138 #define PACKAGE_URL "$PACKAGE_URL" 2139 _ACEOF 2140 2141 2142 # Let the site file select an alternate cache file if it wants to. 2143 # Prefer an explicitly selected file to automatically selected ones. 2144 ac_site_file1=NONE 2145 ac_site_file2=NONE 2146 if test -n "$CONFIG_SITE"; then 2147 # We do not want a PATH search for config.site. 2148 case $CONFIG_SITE in #(( 2149 -*) ac_site_file1=./$CONFIG_SITE;; 2150 */*) ac_site_file1=$CONFIG_SITE;; 2151 *) ac_site_file1=./$CONFIG_SITE;; 2152 esac 2153 elif test "x$prefix" != xNONE; then 2154 ac_site_file1=$prefix/share/config.site 2155 ac_site_file2=$prefix/etc/config.site 2156 else 2157 ac_site_file1=$ac_default_prefix/share/config.site 2158 ac_site_file2=$ac_default_prefix/etc/config.site 2159 fi 2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2161 do 2162 test "x$ac_site_file" = xNONE && continue 2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2166 sed 's/^/| /' "$ac_site_file" >&5 2167 . "$ac_site_file" \ 2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2170 as_fn_error $? "failed to load site script $ac_site_file 2171 See \`config.log' for more details" "$LINENO" 5; } 2172 fi 2173 done 2174 2175 if test -r "$cache_file"; then 2176 # Some versions of bash will fail to source /dev/null (special files 2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2180 $as_echo "$as_me: loading cache $cache_file" >&6;} 2181 case $cache_file in 2182 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2183 *) . "./$cache_file";; 2184 esac 2185 fi 2186 else 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2188 $as_echo "$as_me: creating cache $cache_file" >&6;} 2189 >$cache_file 2190 fi 2191 2192 # Check that the precious variables saved in the cache have kept the same 2193 # value. 2194 ac_cache_corrupted=false 2195 for ac_var in $ac_precious_vars; do 2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2197 eval ac_new_set=\$ac_env_${ac_var}_set 2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2199 eval ac_new_val=\$ac_env_${ac_var}_value 2200 case $ac_old_set,$ac_new_set in 2201 set,) 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2204 ac_cache_corrupted=: ;; 2205 ,set) 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2208 ac_cache_corrupted=: ;; 2209 ,);; 2210 *) 2211 if test "x$ac_old_val" != "x$ac_new_val"; then 2212 # differences in whitespace do not lead to failure. 2213 ac_old_val_w=`echo x $ac_old_val` 2214 ac_new_val_w=`echo x $ac_new_val` 2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2218 ac_cache_corrupted=: 2219 else 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2222 eval $ac_var=\$ac_old_val 2223 fi 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2228 fi;; 2229 esac 2230 # Pass precious variables to config.status. 2231 if test "$ac_new_set" = set; then 2232 case $ac_new_val in 2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2234 *) ac_arg=$ac_var=$ac_new_val ;; 2235 esac 2236 case " $ac_configure_args " in 2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2239 esac 2240 fi 2241 done 2242 if $ac_cache_corrupted; then 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2248 fi 2249 ## -------------------- ## 2250 ## Main body of script. ## 2251 ## -------------------- ## 2252 2253 ac_ext=c 2254 ac_cpp='$CPP $CPPFLAGS' 2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2258 2259 2260 2261 # Provide various options to initialize the Autoconf and configure processes. 2262 2263 2264 ac_aux_dir= 2265 for ac_dir in build-aux "$srcdir"/build-aux; do 2266 if test -f "$ac_dir/install-sh"; then 2267 ac_aux_dir=$ac_dir 2268 ac_install_sh="$ac_aux_dir/install-sh -c" 2269 break 2270 elif test -f "$ac_dir/install.sh"; then 2271 ac_aux_dir=$ac_dir 2272 ac_install_sh="$ac_aux_dir/install.sh -c" 2273 break 2274 elif test -f "$ac_dir/shtool"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/shtool install -c" 2277 break 2278 fi 2279 done 2280 if test -z "$ac_aux_dir"; then 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2282 fi 2283 2284 # These three variables are undocumented and unsupported, 2285 # and are intended to be withdrawn in a future Autoconf release. 2286 # They can cause serious problems if a builder's source tree is in a directory 2287 # whose full name contains unusual characters. 2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2291 2292 2293 ac_config_headers="$ac_config_headers build-aux/config.h" 2294 2295 ac_config_files="$ac_config_files Makefile" 2296 2297 ac_config_files="$ac_config_files scripts/gtest-config" 2298 2299 2300 # Initialize Automake with various options. We require at least v1.9, prevent 2301 # pedantic complaints about package files, and enable various distribution 2302 # targets. 2303 am__api_version='1.14' 2304 2305 # Find a good install program. We prefer a C program (faster), 2306 # so one script is as good as another. But avoid the broken or 2307 # incompatible versions: 2308 # SysV /etc/install, /usr/sbin/install 2309 # SunOS /usr/etc/install 2310 # IRIX /sbin/install 2311 # AIX /bin/install 2312 # AmigaOS /C/install, which installs bootblocks on floppy discs 2313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2316 # OS/2's system install, which has a completely different semantic 2317 # ./install, which can be erroneously created by make from ./install.sh. 2318 # Reject install programs that cannot install multiple files. 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2320 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2321 if test -z "$INSTALL"; then 2322 if ${ac_cv_path_install+:} false; then : 2323 $as_echo_n "(cached) " >&6 2324 else 2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2326 for as_dir in $PATH 2327 do 2328 IFS=$as_save_IFS 2329 test -z "$as_dir" && as_dir=. 2330 # Account for people who put trailing slashes in PATH elements. 2331 case $as_dir/ in #(( 2332 ./ | .// | /[cC]/* | \ 2333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2334 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2335 /usr/ucb/* ) ;; 2336 *) 2337 # OSF1 and SCO ODT 3.0 have their own names for install. 2338 # Don't use installbsd from OSF since it installs stuff as root 2339 # by default. 2340 for ac_prog in ginstall scoinst install; do 2341 for ac_exec_ext in '' $ac_executable_extensions; do 2342 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2343 if test $ac_prog = install && 2344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2345 # AIX install. It has an incompatible calling convention. 2346 : 2347 elif test $ac_prog = install && 2348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2349 # program-specific install script used by HP pwplus--don't use. 2350 : 2351 else 2352 rm -rf conftest.one conftest.two conftest.dir 2353 echo one > conftest.one 2354 echo two > conftest.two 2355 mkdir conftest.dir 2356 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2357 test -s conftest.one && test -s conftest.two && 2358 test -s conftest.dir/conftest.one && 2359 test -s conftest.dir/conftest.two 2360 then 2361 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2362 break 3 2363 fi 2364 fi 2365 fi 2366 done 2367 done 2368 ;; 2369 esac 2370 2371 done 2372 IFS=$as_save_IFS 2373 2374 rm -rf conftest.one conftest.two conftest.dir 2375 2376 fi 2377 if test "${ac_cv_path_install+set}" = set; then 2378 INSTALL=$ac_cv_path_install 2379 else 2380 # As a last resort, use the slow shell script. Don't cache a 2381 # value for INSTALL within a source directory, because that will 2382 # break other packages using the cache if that directory is 2383 # removed, or if the value is a relative name. 2384 INSTALL=$ac_install_sh 2385 fi 2386 fi 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2388 $as_echo "$INSTALL" >&6; } 2389 2390 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2391 # It thinks the first close brace ends the variable substitution. 2392 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2393 2394 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2395 2396 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2397 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2399 $as_echo_n "checking whether build environment is sane... " >&6; } 2400 # Reject unsafe characters in $srcdir or the absolute working directory 2401 # name. Accept space and tab only in the latter. 2402 am_lf=' 2403 ' 2404 case `pwd` in 2405 *[\\\"\#\$\&\'\`$am_lf]*) 2406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2407 esac 2408 case $srcdir in 2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2410 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2411 esac 2412 2413 # Do 'set' in a subshell so we don't clobber the current shell's 2414 # arguments. Must try -L first in case configure is actually a 2415 # symlink; some systems play weird games with the mod time of symlinks 2416 # (eg FreeBSD returns the mod time of the symlink's containing 2417 # directory). 2418 if ( 2419 am_has_slept=no 2420 for am_try in 1 2; do 2421 echo "timestamp, slept: $am_has_slept" > conftest.file 2422 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2423 if test "$*" = "X"; then 2424 # -L didn't work. 2425 set X `ls -t "$srcdir/configure" conftest.file` 2426 fi 2427 if test "$*" != "X $srcdir/configure conftest.file" \ 2428 && test "$*" != "X conftest.file $srcdir/configure"; then 2429 2430 # If neither matched, then we have a broken ls. This can happen 2431 # if, for instance, CONFIG_SHELL is bash and it inherits a 2432 # broken ls alias from the environment. This has actually 2433 # happened. Such a system could not be considered "sane". 2434 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2435 alias in your environment" "$LINENO" 5 2436 fi 2437 if test "$2" = conftest.file || test $am_try -eq 2; then 2438 break 2439 fi 2440 # Just in case. 2441 sleep 1 2442 am_has_slept=yes 2443 done 2444 test "$2" = conftest.file 2445 ) 2446 then 2447 # Ok. 2448 : 2449 else 2450 as_fn_error $? "newly created file is older than distributed files! 2451 Check your system clock" "$LINENO" 5 2452 fi 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2454 $as_echo "yes" >&6; } 2455 # If we didn't sleep, we still need to ensure time stamps of config.status and 2456 # generated files are strictly newer. 2457 am_sleep_pid= 2458 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2459 ( sleep 1 ) & 2460 am_sleep_pid=$! 2461 fi 2462 2463 rm -f conftest.file 2464 2465 test "$program_prefix" != NONE && 2466 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2467 # Use a double $ so make ignores it. 2468 test "$program_suffix" != NONE && 2469 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2470 # Double any \ or $. 2471 # By default was `s,x,x', remove it if useless. 2472 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2473 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2474 2475 # expand $ac_aux_dir to an absolute path 2476 am_aux_dir=`cd $ac_aux_dir && pwd` 2477 2478 if test x"${MISSING+set}" != xset; then 2479 case $am_aux_dir in 2480 *\ * | *\ *) 2481 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2482 *) 2483 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2484 esac 2485 fi 2486 # Use eval to expand $SHELL 2487 if eval "$MISSING --is-lightweight"; then 2488 am_missing_run="$MISSING " 2489 else 2490 am_missing_run= 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2492 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2493 fi 2494 2495 if test x"${install_sh}" != xset; then 2496 case $am_aux_dir in 2497 *\ * | *\ *) 2498 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2499 *) 2500 install_sh="\${SHELL} $am_aux_dir/install-sh" 2501 esac 2502 fi 2503 2504 # Installed binaries are usually stripped using 'strip' when the user 2505 # run "make install-strip". However 'strip' might not be the right 2506 # tool to use in cross-compilation environments, therefore Automake 2507 # will honor the 'STRIP' environment variable to overrule this program. 2508 if test "$cross_compiling" != no; then 2509 if test -n "$ac_tool_prefix"; then 2510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2511 set dummy ${ac_tool_prefix}strip; ac_word=$2 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2513 $as_echo_n "checking for $ac_word... " >&6; } 2514 if ${ac_cv_prog_STRIP+:} false; then : 2515 $as_echo_n "(cached) " >&6 2516 else 2517 if test -n "$STRIP"; then 2518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2519 else 2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521 for as_dir in $PATH 2522 do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_exec_ext in '' $ac_executable_extensions; do 2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2527 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531 done 2532 done 2533 IFS=$as_save_IFS 2534 2535 fi 2536 fi 2537 STRIP=$ac_cv_prog_STRIP 2538 if test -n "$STRIP"; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2540 $as_echo "$STRIP" >&6; } 2541 else 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2543 $as_echo "no" >&6; } 2544 fi 2545 2546 2547 fi 2548 if test -z "$ac_cv_prog_STRIP"; then 2549 ac_ct_STRIP=$STRIP 2550 # Extract the first word of "strip", so it can be a program name with args. 2551 set dummy strip; ac_word=$2 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2553 $as_echo_n "checking for $ac_word... " >&6; } 2554 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2555 $as_echo_n "(cached) " >&6 2556 else 2557 if test -n "$ac_ct_STRIP"; then 2558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2559 else 2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2561 for as_dir in $PATH 2562 do 2563 IFS=$as_save_IFS 2564 test -z "$as_dir" && as_dir=. 2565 for ac_exec_ext in '' $ac_executable_extensions; do 2566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2567 ac_cv_prog_ac_ct_STRIP="strip" 2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2569 break 2 2570 fi 2571 done 2572 done 2573 IFS=$as_save_IFS 2574 2575 fi 2576 fi 2577 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2578 if test -n "$ac_ct_STRIP"; then 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2580 $as_echo "$ac_ct_STRIP" >&6; } 2581 else 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2583 $as_echo "no" >&6; } 2584 fi 2585 2586 if test "x$ac_ct_STRIP" = x; then 2587 STRIP=":" 2588 else 2589 case $cross_compiling:$ac_tool_warned in 2590 yes:) 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2593 ac_tool_warned=yes ;; 2594 esac 2595 STRIP=$ac_ct_STRIP 2596 fi 2597 else 2598 STRIP="$ac_cv_prog_STRIP" 2599 fi 2600 2601 fi 2602 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2603 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2605 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2606 if test -z "$MKDIR_P"; then 2607 if ${ac_cv_path_mkdir+:} false; then : 2608 $as_echo_n "(cached) " >&6 2609 else 2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2611 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2612 do 2613 IFS=$as_save_IFS 2614 test -z "$as_dir" && as_dir=. 2615 for ac_prog in mkdir gmkdir; do 2616 for ac_exec_ext in '' $ac_executable_extensions; do 2617 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2618 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2619 'mkdir (GNU coreutils) '* | \ 2620 'mkdir (coreutils) '* | \ 2621 'mkdir (fileutils) '4.1*) 2622 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2623 break 3;; 2624 esac 2625 done 2626 done 2627 done 2628 IFS=$as_save_IFS 2629 2630 fi 2631 2632 test -d ./--version && rmdir ./--version 2633 if test "${ac_cv_path_mkdir+set}" = set; then 2634 MKDIR_P="$ac_cv_path_mkdir -p" 2635 else 2636 # As a last resort, use the slow shell script. Don't cache a 2637 # value for MKDIR_P within a source directory, because that will 2638 # break other packages using the cache if that directory is 2639 # removed, or if the value is a relative name. 2640 MKDIR_P="$ac_install_sh -d" 2641 fi 2642 fi 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2644 $as_echo "$MKDIR_P" >&6; } 2645 2646 for ac_prog in gawk mawk nawk awk 2647 do 2648 # Extract the first word of "$ac_prog", so it can be a program name with args. 2649 set dummy $ac_prog; ac_word=$2 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651 $as_echo_n "checking for $ac_word... " >&6; } 2652 if ${ac_cv_prog_AWK+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654 else 2655 if test -n "$AWK"; then 2656 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2657 else 2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659 for as_dir in $PATH 2660 do 2661 IFS=$as_save_IFS 2662 test -z "$as_dir" && as_dir=. 2663 for ac_exec_ext in '' $ac_executable_extensions; do 2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2665 ac_cv_prog_AWK="$ac_prog" 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2667 break 2 2668 fi 2669 done 2670 done 2671 IFS=$as_save_IFS 2672 2673 fi 2674 fi 2675 AWK=$ac_cv_prog_AWK 2676 if test -n "$AWK"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2678 $as_echo "$AWK" >&6; } 2679 else 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2681 $as_echo "no" >&6; } 2682 fi 2683 2684 2685 test -n "$AWK" && break 2686 done 2687 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2689 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2690 set x ${MAKE-make} 2691 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2692 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2693 $as_echo_n "(cached) " >&6 2694 else 2695 cat >conftest.make <<\_ACEOF 2696 SHELL = /bin/sh 2697 all: 2698 @echo '@@@%%%=$(MAKE)=@@@%%%' 2699 _ACEOF 2700 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2701 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2702 *@@@%%%=?*=@@@%%%*) 2703 eval ac_cv_prog_make_${ac_make}_set=yes;; 2704 *) 2705 eval ac_cv_prog_make_${ac_make}_set=no;; 2706 esac 2707 rm -f conftest.make 2708 fi 2709 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2711 $as_echo "yes" >&6; } 2712 SET_MAKE= 2713 else 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2715 $as_echo "no" >&6; } 2716 SET_MAKE="MAKE=${MAKE-make}" 2717 fi 2718 2719 rm -rf .tst 2>/dev/null 2720 mkdir .tst 2>/dev/null 2721 if test -d .tst; then 2722 am__leading_dot=. 2723 else 2724 am__leading_dot=_ 2725 fi 2726 rmdir .tst 2>/dev/null 2727 2728 # Check whether --enable-silent-rules was given. 2729 if test "${enable_silent_rules+set}" = set; then : 2730 enableval=$enable_silent_rules; 2731 fi 2732 2733 case $enable_silent_rules in # ((( 2734 yes) AM_DEFAULT_VERBOSITY=0;; 2735 no) AM_DEFAULT_VERBOSITY=1;; 2736 *) AM_DEFAULT_VERBOSITY=1;; 2737 esac 2738 am_make=${MAKE-make} 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2740 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2741 if ${am_cv_make_support_nested_variables+:} false; then : 2742 $as_echo_n "(cached) " >&6 2743 else 2744 if $as_echo 'TRUE=$(BAR$(V)) 2745 BAR0=false 2746 BAR1=true 2747 V=1 2748 am__doit: 2749 @$(TRUE) 2750 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2751 am_cv_make_support_nested_variables=yes 2752 else 2753 am_cv_make_support_nested_variables=no 2754 fi 2755 fi 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2757 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2758 if test $am_cv_make_support_nested_variables = yes; then 2759 AM_V='$(V)' 2760 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2761 else 2762 AM_V=$AM_DEFAULT_VERBOSITY 2763 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2764 fi 2765 AM_BACKSLASH='\' 2766 2767 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2769 # is not polluted with repeated "-I." 2770 am__isrc=' -I$(srcdir)' 2771 # test to see if srcdir already configured 2772 if test -f $srcdir/config.status; then 2773 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2774 fi 2775 fi 2776 2777 # test whether we have cygpath 2778 if test -z "$CYGPATH_W"; then 2779 if (cygpath --version) >/dev/null 2>/dev/null; then 2780 CYGPATH_W='cygpath -w' 2781 else 2782 CYGPATH_W=echo 2783 fi 2784 fi 2785 2786 2787 # Define the identity of the package. 2788 PACKAGE='gtest' 2789 VERSION='1.5.0' 2790 2791 2792 cat >>confdefs.h <<_ACEOF 2793 #define PACKAGE "$PACKAGE" 2794 _ACEOF 2795 2796 2797 cat >>confdefs.h <<_ACEOF 2798 #define VERSION "$VERSION" 2799 _ACEOF 2800 2801 # Some tools Automake needs. 2802 2803 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2804 2805 2806 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2807 2808 2809 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2810 2811 2812 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2813 2814 2815 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2816 2817 # For better backward compatibility. To be removed once Automake 1.9.x 2818 # dies out for good. For more background, see: 2819 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2820 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2821 mkdir_p='$(MKDIR_P)' 2822 2823 # We need awk for the "check" target. The system "awk" is bad on 2824 # some platforms. 2825 # Always define AMTAR for backward compatibility. Yes, it's still used 2826 # in the wild :-( We should find a proper way to deprecate it ... 2827 AMTAR='$${TAR-tar}' 2828 2829 2830 # We'll loop over all known methods to create a tar archive until one works. 2831 _am_tools='gnutar pax cpio none' 2832 2833 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2834 2835 2836 2837 2838 2839 2840 # POSIX will say in a future version that running "rm -f" with no argument 2841 # is OK; and we want to be able to make that assumption in our Makefile 2842 # recipes. So use an aggressive probe to check that the usage we want is 2843 # actually supported "in the wild" to an acceptable degree. 2844 # See automake bug#10828. 2845 # To make any issue more visible, cause the running configure to be aborted 2846 # by default if the 'rm' program in use doesn't match our expectations; the 2847 # user can still override this though. 2848 if rm -f && rm -fr && rm -rf; then : OK; else 2849 cat >&2 <<'END' 2850 Oops! 2851 2852 Your 'rm' program seems unable to run without file operands specified 2853 on the command line, even when the '-f' option is present. This is contrary 2854 to the behaviour of most rm programs out there, and not conforming with 2855 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2856 2857 Please tell bug-automake@gnu.org about your system, including the value 2858 of your $PATH and any error possibly output before this message. This 2859 can help us improve future automake versions. 2860 2861 END 2862 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2863 echo 'Configuration will proceed anyway, since you have set the' >&2 2864 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2865 echo >&2 2866 else 2867 cat >&2 <<'END' 2868 Aborting the configuration process, to ensure you take notice of the issue. 2869 2870 You can download and install GNU coreutils to get an 'rm' implementation 2871 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2872 2873 If you want to complete the configuration process using your problematic 2874 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2875 to "yes", and re-run configure. 2876 2877 END 2878 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2879 fi 2880 fi 2881 2882 # Check for programs used in building Google Test. 2883 ac_ext=c 2884 ac_cpp='$CPP $CPPFLAGS' 2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2888 if test -n "$ac_tool_prefix"; then 2889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2890 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892 $as_echo_n "checking for $ac_word... " >&6; } 2893 if ${ac_cv_prog_CC+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895 else 2896 if test -n "$CC"; then 2897 ac_cv_prog_CC="$CC" # Let the user override the test. 2898 else 2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900 for as_dir in $PATH 2901 do 2902 IFS=$as_save_IFS 2903 test -z "$as_dir" && as_dir=. 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2906 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910 done 2911 done 2912 IFS=$as_save_IFS 2913 2914 fi 2915 fi 2916 CC=$ac_cv_prog_CC 2917 if test -n "$CC"; then 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2919 $as_echo "$CC" >&6; } 2920 else 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922 $as_echo "no" >&6; } 2923 fi 2924 2925 2926 fi 2927 if test -z "$ac_cv_prog_CC"; then 2928 ac_ct_CC=$CC 2929 # Extract the first word of "gcc", so it can be a program name with args. 2930 set dummy gcc; ac_word=$2 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2932 $as_echo_n "checking for $ac_word... " >&6; } 2933 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2934 $as_echo_n "(cached) " >&6 2935 else 2936 if test -n "$ac_ct_CC"; then 2937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2938 else 2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2940 for as_dir in $PATH 2941 do 2942 IFS=$as_save_IFS 2943 test -z "$as_dir" && as_dir=. 2944 for ac_exec_ext in '' $ac_executable_extensions; do 2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2946 ac_cv_prog_ac_ct_CC="gcc" 2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2948 break 2 2949 fi 2950 done 2951 done 2952 IFS=$as_save_IFS 2953 2954 fi 2955 fi 2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2957 if test -n "$ac_ct_CC"; then 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2959 $as_echo "$ac_ct_CC" >&6; } 2960 else 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2962 $as_echo "no" >&6; } 2963 fi 2964 2965 if test "x$ac_ct_CC" = x; then 2966 CC="" 2967 else 2968 case $cross_compiling:$ac_tool_warned in 2969 yes:) 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2972 ac_tool_warned=yes ;; 2973 esac 2974 CC=$ac_ct_CC 2975 fi 2976 else 2977 CC="$ac_cv_prog_CC" 2978 fi 2979 2980 if test -z "$CC"; then 2981 if test -n "$ac_tool_prefix"; then 2982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2983 set dummy ${ac_tool_prefix}cc; ac_word=$2 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2985 $as_echo_n "checking for $ac_word... " >&6; } 2986 if ${ac_cv_prog_CC+:} false; then : 2987 $as_echo_n "(cached) " >&6 2988 else 2989 if test -n "$CC"; then 2990 ac_cv_prog_CC="$CC" # Let the user override the test. 2991 else 2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993 for as_dir in $PATH 2994 do 2995 IFS=$as_save_IFS 2996 test -z "$as_dir" && as_dir=. 2997 for ac_exec_ext in '' $ac_executable_extensions; do 2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2999 ac_cv_prog_CC="${ac_tool_prefix}cc" 3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3001 break 2 3002 fi 3003 done 3004 done 3005 IFS=$as_save_IFS 3006 3007 fi 3008 fi 3009 CC=$ac_cv_prog_CC 3010 if test -n "$CC"; then 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3012 $as_echo "$CC" >&6; } 3013 else 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015 $as_echo "no" >&6; } 3016 fi 3017 3018 3019 fi 3020 fi 3021 if test -z "$CC"; then 3022 # Extract the first word of "cc", so it can be a program name with args. 3023 set dummy cc; ac_word=$2 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3025 $as_echo_n "checking for $ac_word... " >&6; } 3026 if ${ac_cv_prog_CC+:} false; then : 3027 $as_echo_n "(cached) " >&6 3028 else 3029 if test -n "$CC"; then 3030 ac_cv_prog_CC="$CC" # Let the user override the test. 3031 else 3032 ac_prog_rejected=no 3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3034 for as_dir in $PATH 3035 do 3036 IFS=$as_save_IFS 3037 test -z "$as_dir" && as_dir=. 3038 for ac_exec_ext in '' $ac_executable_extensions; do 3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3041 ac_prog_rejected=yes 3042 continue 3043 fi 3044 ac_cv_prog_CC="cc" 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3046 break 2 3047 fi 3048 done 3049 done 3050 IFS=$as_save_IFS 3051 3052 if test $ac_prog_rejected = yes; then 3053 # We found a bogon in the path, so make sure we never use it. 3054 set dummy $ac_cv_prog_CC 3055 shift 3056 if test $# != 0; then 3057 # We chose a different compiler from the bogus one. 3058 # However, it has the same basename, so the bogon will be chosen 3059 # first if we set CC to just the basename; use the full file name. 3060 shift 3061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3062 fi 3063 fi 3064 fi 3065 fi 3066 CC=$ac_cv_prog_CC 3067 if test -n "$CC"; then 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3069 $as_echo "$CC" >&6; } 3070 else 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072 $as_echo "no" >&6; } 3073 fi 3074 3075 3076 fi 3077 if test -z "$CC"; then 3078 if test -n "$ac_tool_prefix"; then 3079 for ac_prog in cl.exe 3080 do 3081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084 $as_echo_n "checking for $ac_word... " >&6; } 3085 if ${ac_cv_prog_CC+:} false; then : 3086 $as_echo_n "(cached) " >&6 3087 else 3088 if test -n "$CC"; then 3089 ac_cv_prog_CC="$CC" # Let the user override the test. 3090 else 3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092 for as_dir in $PATH 3093 do 3094 IFS=$as_save_IFS 3095 test -z "$as_dir" && as_dir=. 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102 done 3103 done 3104 IFS=$as_save_IFS 3105 3106 fi 3107 fi 3108 CC=$ac_cv_prog_CC 3109 if test -n "$CC"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3111 $as_echo "$CC" >&6; } 3112 else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114 $as_echo "no" >&6; } 3115 fi 3116 3117 3118 test -n "$CC" && break 3119 done 3120 fi 3121 if test -z "$CC"; then 3122 ac_ct_CC=$CC 3123 for ac_prog in cl.exe 3124 do 3125 # Extract the first word of "$ac_prog", so it can be a program name with args. 3126 set dummy $ac_prog; ac_word=$2 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3128 $as_echo_n "checking for $ac_word... " >&6; } 3129 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131 else 3132 if test -n "$ac_ct_CC"; then 3133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3134 else 3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136 for as_dir in $PATH 3137 do 3138 IFS=$as_save_IFS 3139 test -z "$as_dir" && as_dir=. 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3142 ac_cv_prog_ac_ct_CC="$ac_prog" 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3144 break 2 3145 fi 3146 done 3147 done 3148 IFS=$as_save_IFS 3149 3150 fi 3151 fi 3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3153 if test -n "$ac_ct_CC"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3155 $as_echo "$ac_ct_CC" >&6; } 3156 else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158 $as_echo "no" >&6; } 3159 fi 3160 3161 3162 test -n "$ac_ct_CC" && break 3163 done 3164 3165 if test "x$ac_ct_CC" = x; then 3166 CC="" 3167 else 3168 case $cross_compiling:$ac_tool_warned in 3169 yes:) 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3172 ac_tool_warned=yes ;; 3173 esac 3174 CC=$ac_ct_CC 3175 fi 3176 fi 3177 3178 fi 3179 3180 3181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3183 as_fn_error $? "no acceptable C compiler found in \$PATH 3184 See \`config.log' for more details" "$LINENO" 5; } 3185 3186 # Provide some information about the compiler. 3187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3188 set X $ac_compile 3189 ac_compiler=$2 3190 for ac_option in --version -v -V -qversion; do 3191 { { ac_try="$ac_compiler $ac_option >&5" 3192 case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195 esac 3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3197 $as_echo "$ac_try_echo"; } >&5 3198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3199 ac_status=$? 3200 if test -s conftest.err; then 3201 sed '10a\ 3202 ... rest of stderr output deleted ... 3203 10q' conftest.err >conftest.er1 3204 cat conftest.er1 >&5 3205 fi 3206 rm -f conftest.er1 conftest.err 3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; } 3209 done 3210 3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212 /* end confdefs.h. */ 3213 3214 int 3215 main () 3216 { 3217 3218 ; 3219 return 0; 3220 } 3221 _ACEOF 3222 ac_clean_files_save=$ac_clean_files 3223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3224 # Try to create an executable without -o first, disregard a.out. 3225 # It will help us diagnose broken compilers, and finding out an intuition 3226 # of exeext. 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3228 $as_echo_n "checking whether the C compiler works... " >&6; } 3229 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3230 3231 # The possible output files: 3232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3233 3234 ac_rmfiles= 3235 for ac_file in $ac_files 3236 do 3237 case $ac_file in 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3239 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3240 esac 3241 done 3242 rm -f $ac_rmfiles 3243 3244 if { { ac_try="$ac_link_default" 3245 case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248 esac 3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3250 $as_echo "$ac_try_echo"; } >&5 3251 (eval "$ac_link_default") 2>&5 3252 ac_status=$? 3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; }; then : 3255 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3256 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3257 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3258 # so that the user can short-circuit this test for compilers unknown to 3259 # Autoconf. 3260 for ac_file in $ac_files '' 3261 do 3262 test -f "$ac_file" || continue 3263 case $ac_file in 3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3265 ;; 3266 [ab].out ) 3267 # We found the default executable, but exeext='' is most 3268 # certainly right. 3269 break;; 3270 *.* ) 3271 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3272 then :; else 3273 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3274 fi 3275 # We set ac_cv_exeext here because the later test for it is not 3276 # safe: cross compilers may not add the suffix if given an `-o' 3277 # argument, so we may need to know it at that point already. 3278 # Even if this section looks crufty: it has the advantage of 3279 # actually working. 3280 break;; 3281 * ) 3282 break;; 3283 esac 3284 done 3285 test "$ac_cv_exeext" = no && ac_cv_exeext= 3286 3287 else 3288 ac_file='' 3289 fi 3290 if test -z "$ac_file"; then : 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3292 $as_echo "no" >&6; } 3293 $as_echo "$as_me: failed program was:" >&5 3294 sed 's/^/| /' conftest.$ac_ext >&5 3295 3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3298 as_fn_error 77 "C compiler cannot create executables 3299 See \`config.log' for more details" "$LINENO" 5; } 3300 else 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3302 $as_echo "yes" >&6; } 3303 fi 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3305 $as_echo_n "checking for C compiler default output file name... " >&6; } 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3307 $as_echo "$ac_file" >&6; } 3308 ac_exeext=$ac_cv_exeext 3309 3310 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3311 ac_clean_files=$ac_clean_files_save 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3313 $as_echo_n "checking for suffix of executables... " >&6; } 3314 if { { ac_try="$ac_link" 3315 case "(($ac_try" in 3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3317 *) ac_try_echo=$ac_try;; 3318 esac 3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3320 $as_echo "$ac_try_echo"; } >&5 3321 (eval "$ac_link") 2>&5 3322 ac_status=$? 3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3324 test $ac_status = 0; }; then : 3325 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3327 # work properly (i.e., refer to `conftest.exe'), while it won't with 3328 # `rm'. 3329 for ac_file in conftest.exe conftest conftest.*; do 3330 test -f "$ac_file" || continue 3331 case $ac_file in 3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3334 break;; 3335 * ) break;; 3336 esac 3337 done 3338 else 3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3342 See \`config.log' for more details" "$LINENO" 5; } 3343 fi 3344 rm -f conftest conftest$ac_cv_exeext 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3346 $as_echo "$ac_cv_exeext" >&6; } 3347 3348 rm -f conftest.$ac_ext 3349 EXEEXT=$ac_cv_exeext 3350 ac_exeext=$EXEEXT 3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3352 /* end confdefs.h. */ 3353 #include <stdio.h> 3354 int 3355 main () 3356 { 3357 FILE *f = fopen ("conftest.out", "w"); 3358 return ferror (f) || fclose (f) != 0; 3359 3360 ; 3361 return 0; 3362 } 3363 _ACEOF 3364 ac_clean_files="$ac_clean_files conftest.out" 3365 # Check that the compiler produces executables we can run. If not, either 3366 # the compiler is broken, or we cross compile. 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3368 $as_echo_n "checking whether we are cross compiling... " >&6; } 3369 if test "$cross_compiling" != yes; then 3370 { { ac_try="$ac_link" 3371 case "(($ac_try" in 3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3373 *) ac_try_echo=$ac_try;; 3374 esac 3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3376 $as_echo "$ac_try_echo"; } >&5 3377 (eval "$ac_link") 2>&5 3378 ac_status=$? 3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3380 test $ac_status = 0; } 3381 if { ac_try='./conftest$ac_cv_exeext' 3382 { { case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385 esac 3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3387 $as_echo "$ac_try_echo"; } >&5 3388 (eval "$ac_try") 2>&5 3389 ac_status=$? 3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3391 test $ac_status = 0; }; }; then 3392 cross_compiling=no 3393 else 3394 if test "$cross_compiling" = maybe; then 3395 cross_compiling=yes 3396 else 3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3399 as_fn_error $? "cannot run C compiled programs. 3400 If you meant to cross compile, use \`--host'. 3401 See \`config.log' for more details" "$LINENO" 5; } 3402 fi 3403 fi 3404 fi 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3406 $as_echo "$cross_compiling" >&6; } 3407 3408 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3409 ac_clean_files=$ac_clean_files_save 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3411 $as_echo_n "checking for suffix of object files... " >&6; } 3412 if ${ac_cv_objext+:} false; then : 3413 $as_echo_n "(cached) " >&6 3414 else 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416 /* end confdefs.h. */ 3417 3418 int 3419 main () 3420 { 3421 3422 ; 3423 return 0; 3424 } 3425 _ACEOF 3426 rm -f conftest.o conftest.obj 3427 if { { ac_try="$ac_compile" 3428 case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431 esac 3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3433 $as_echo "$ac_try_echo"; } >&5 3434 (eval "$ac_compile") 2>&5 3435 ac_status=$? 3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3437 test $ac_status = 0; }; then : 3438 for ac_file in conftest.o conftest.obj conftest.*; do 3439 test -f "$ac_file" || continue; 3440 case $ac_file in 3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3443 break;; 3444 esac 3445 done 3446 else 3447 $as_echo "$as_me: failed program was:" >&5 3448 sed 's/^/| /' conftest.$ac_ext >&5 3449 3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3452 as_fn_error $? "cannot compute suffix of object files: cannot compile 3453 See \`config.log' for more details" "$LINENO" 5; } 3454 fi 3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3456 fi 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3458 $as_echo "$ac_cv_objext" >&6; } 3459 OBJEXT=$ac_cv_objext 3460 ac_objext=$OBJEXT 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3462 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3463 if ${ac_cv_c_compiler_gnu+:} false; then : 3464 $as_echo_n "(cached) " >&6 3465 else 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467 /* end confdefs.h. */ 3468 3469 int 3470 main () 3471 { 3472 #ifndef __GNUC__ 3473 choke me 3474 #endif 3475 3476 ; 3477 return 0; 3478 } 3479 _ACEOF 3480 if ac_fn_c_try_compile "$LINENO"; then : 3481 ac_compiler_gnu=yes 3482 else 3483 ac_compiler_gnu=no 3484 fi 3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3486 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3487 3488 fi 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3490 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3491 if test $ac_compiler_gnu = yes; then 3492 GCC=yes 3493 else 3494 GCC= 3495 fi 3496 ac_test_CFLAGS=${CFLAGS+set} 3497 ac_save_CFLAGS=$CFLAGS 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3499 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3500 if ${ac_cv_prog_cc_g+:} false; then : 3501 $as_echo_n "(cached) " >&6 3502 else 3503 ac_save_c_werror_flag=$ac_c_werror_flag 3504 ac_c_werror_flag=yes 3505 ac_cv_prog_cc_g=no 3506 CFLAGS="-g" 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508 /* end confdefs.h. */ 3509 3510 int 3511 main () 3512 { 3513 3514 ; 3515 return 0; 3516 } 3517 _ACEOF 3518 if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_cv_prog_cc_g=yes 3520 else 3521 CFLAGS="" 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523 /* end confdefs.h. */ 3524 3525 int 3526 main () 3527 { 3528 3529 ; 3530 return 0; 3531 } 3532 _ACEOF 3533 if ac_fn_c_try_compile "$LINENO"; then : 3534 3535 else 3536 ac_c_werror_flag=$ac_save_c_werror_flag 3537 CFLAGS="-g" 3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3539 /* end confdefs.h. */ 3540 3541 int 3542 main () 3543 { 3544 3545 ; 3546 return 0; 3547 } 3548 _ACEOF 3549 if ac_fn_c_try_compile "$LINENO"; then : 3550 ac_cv_prog_cc_g=yes 3551 fi 3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3553 fi 3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3555 fi 3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3557 ac_c_werror_flag=$ac_save_c_werror_flag 3558 fi 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3560 $as_echo "$ac_cv_prog_cc_g" >&6; } 3561 if test "$ac_test_CFLAGS" = set; then 3562 CFLAGS=$ac_save_CFLAGS 3563 elif test $ac_cv_prog_cc_g = yes; then 3564 if test "$GCC" = yes; then 3565 CFLAGS="-g -O2" 3566 else 3567 CFLAGS="-g" 3568 fi 3569 else 3570 if test "$GCC" = yes; then 3571 CFLAGS="-O2" 3572 else 3573 CFLAGS= 3574 fi 3575 fi 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3577 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3578 if ${ac_cv_prog_cc_c89+:} false; then : 3579 $as_echo_n "(cached) " >&6 3580 else 3581 ac_cv_prog_cc_c89=no 3582 ac_save_CC=$CC 3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584 /* end confdefs.h. */ 3585 #include <stdarg.h> 3586 #include <stdio.h> 3587 struct stat; 3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3589 struct buf { int x; }; 3590 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3591 static char *e (p, i) 3592 char **p; 3593 int i; 3594 { 3595 return p[i]; 3596 } 3597 static char *f (char * (*g) (char **, int), char **p, ...) 3598 { 3599 char *s; 3600 va_list v; 3601 va_start (v,p); 3602 s = g (p, va_arg (v,int)); 3603 va_end (v); 3604 return s; 3605 } 3606 3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3608 function prototypes and stuff, but not '\xHH' hex character constants. 3609 These don't provoke an error unfortunately, instead are silently treated 3610 as 'x'. The following induces an error, until -std is added to get 3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3612 array size at least. It's necessary to write '\x00'==0 to get something 3613 that's true only with -std. */ 3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3615 3616 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3617 inside strings and character constants. */ 3618 #define FOO(x) 'x' 3619 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3620 3621 int test (int i, double x); 3622 struct s1 {int (*f) (int a);}; 3623 struct s2 {int (*f) (double a);}; 3624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3625 int argc; 3626 char **argv; 3627 int 3628 main () 3629 { 3630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3631 ; 3632 return 0; 3633 } 3634 _ACEOF 3635 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3637 do 3638 CC="$ac_save_CC $ac_arg" 3639 if ac_fn_c_try_compile "$LINENO"; then : 3640 ac_cv_prog_cc_c89=$ac_arg 3641 fi 3642 rm -f core conftest.err conftest.$ac_objext 3643 test "x$ac_cv_prog_cc_c89" != "xno" && break 3644 done 3645 rm -f conftest.$ac_ext 3646 CC=$ac_save_CC 3647 3648 fi 3649 # AC_CACHE_VAL 3650 case "x$ac_cv_prog_cc_c89" in 3651 x) 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3653 $as_echo "none needed" >&6; } ;; 3654 xno) 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3656 $as_echo "unsupported" >&6; } ;; 3657 *) 3658 CC="$CC $ac_cv_prog_cc_c89" 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3660 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3661 esac 3662 if test "x$ac_cv_prog_cc_c89" != xno; then : 3663 3664 fi 3665 3666 ac_ext=c 3667 ac_cpp='$CPP $CPPFLAGS' 3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3671 3672 ac_ext=c 3673 ac_cpp='$CPP $CPPFLAGS' 3674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3676 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3678 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3679 if ${am_cv_prog_cc_c_o+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681 else 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683 /* end confdefs.h. */ 3684 3685 int 3686 main () 3687 { 3688 3689 ; 3690 return 0; 3691 } 3692 _ACEOF 3693 # Make sure it works both with $CC and with simple cc. 3694 # Following AC_PROG_CC_C_O, we do the test twice because some 3695 # compilers refuse to overwrite an existing .o file with -o, 3696 # though they will create one. 3697 am_cv_prog_cc_c_o=yes 3698 for am_i in 1 2; do 3699 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3700 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3701 ac_status=$? 3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3703 (exit $ac_status); } \ 3704 && test -f conftest2.$ac_objext; then 3705 : OK 3706 else 3707 am_cv_prog_cc_c_o=no 3708 break 3709 fi 3710 done 3711 rm -f core conftest* 3712 unset am_i 3713 fi 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3715 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3716 if test "$am_cv_prog_cc_c_o" != yes; then 3717 # Losing compiler, so override with the script. 3718 # FIXME: It is wrong to rewrite CC. 3719 # But if we don't then we get into trouble of one sort or another. 3720 # A longer-term fix would be to have automake use am__CC in this case, 3721 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3722 CC="$am_aux_dir/compile $CC" 3723 fi 3724 ac_ext=c 3725 ac_cpp='$CPP $CPPFLAGS' 3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3729 3730 DEPDIR="${am__leading_dot}deps" 3731 3732 ac_config_commands="$ac_config_commands depfiles" 3733 3734 3735 am_make=${MAKE-make} 3736 cat > confinc << 'END' 3737 am__doit: 3738 @echo this is the am__doit target 3739 .PHONY: am__doit 3740 END 3741 # If we don't find an include directive, just comment out the code. 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3743 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3744 am__include="#" 3745 am__quote= 3746 _am_result=none 3747 # First try GNU make style include. 3748 echo "include confinc" > confmf 3749 # Ignore all kinds of additional output from 'make'. 3750 case `$am_make -s -f confmf 2> /dev/null` in #( 3751 *the\ am__doit\ target*) 3752 am__include=include 3753 am__quote= 3754 _am_result=GNU 3755 ;; 3756 esac 3757 # Now try BSD make style include. 3758 if test "$am__include" = "#"; then 3759 echo '.include "confinc"' > confmf 3760 case `$am_make -s -f confmf 2> /dev/null` in #( 3761 *the\ am__doit\ target*) 3762 am__include=.include 3763 am__quote="\"" 3764 _am_result=BSD 3765 ;; 3766 esac 3767 fi 3768 3769 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3771 $as_echo "$_am_result" >&6; } 3772 rm -f confinc confmf 3773 3774 # Check whether --enable-dependency-tracking was given. 3775 if test "${enable_dependency_tracking+set}" = set; then : 3776 enableval=$enable_dependency_tracking; 3777 fi 3778 3779 if test "x$enable_dependency_tracking" != xno; then 3780 am_depcomp="$ac_aux_dir/depcomp" 3781 AMDEPBACKSLASH='\' 3782 am__nodep='_no' 3783 fi 3784 if test "x$enable_dependency_tracking" != xno; then 3785 AMDEP_TRUE= 3786 AMDEP_FALSE='#' 3787 else 3788 AMDEP_TRUE='#' 3789 AMDEP_FALSE= 3790 fi 3791 3792 3793 3794 depcc="$CC" am_compiler_list= 3795 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3797 $as_echo_n "checking dependency style of $depcc... " >&6; } 3798 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3799 $as_echo_n "(cached) " >&6 3800 else 3801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3802 # We make a subdir and do the tests there. Otherwise we can end up 3803 # making bogus files that we don't know about and never remove. For 3804 # instance it was reported that on HP-UX the gcc test will end up 3805 # making a dummy file named 'D' -- because '-MD' means "put the output 3806 # in D". 3807 rm -rf conftest.dir 3808 mkdir conftest.dir 3809 # Copy depcomp to subdir because otherwise we won't find it if we're 3810 # using a relative directory. 3811 cp "$am_depcomp" conftest.dir 3812 cd conftest.dir 3813 # We will build objects and dependencies in a subdirectory because 3814 # it helps to detect inapplicable dependency modes. For instance 3815 # both Tru64's cc and ICC support -MD to output dependencies as a 3816 # side effect of compilation, but ICC will put the dependencies in 3817 # the current directory while Tru64 will put them in the object 3818 # directory. 3819 mkdir sub 3820 3821 am_cv_CC_dependencies_compiler_type=none 3822 if test "$am_compiler_list" = ""; then 3823 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3824 fi 3825 am__universal=false 3826 case " $depcc " in #( 3827 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3828 esac 3829 3830 for depmode in $am_compiler_list; do 3831 # Setup a source with many dependencies, because some compilers 3832 # like to wrap large dependency lists on column 80 (with \), and 3833 # we should not choose a depcomp mode which is confused by this. 3834 # 3835 # We need to recreate these files for each test, as the compiler may 3836 # overwrite some of them when testing with obscure command lines. 3837 # This happens at least with the AIX C compiler. 3838 : > sub/conftest.c 3839 for i in 1 2 3 4 5 6; do 3840 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3841 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3842 # Solaris 10 /bin/sh. 3843 echo '/* dummy */' > sub/conftst$i.h 3844 done 3845 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3846 3847 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3848 # mode. It turns out that the SunPro C++ compiler does not properly 3849 # handle '-M -o', and we need to detect this. Also, some Intel 3850 # versions had trouble with output in subdirs. 3851 am__obj=sub/conftest.${OBJEXT-o} 3852 am__minus_obj="-o $am__obj" 3853 case $depmode in 3854 gcc) 3855 # This depmode causes a compiler race in universal mode. 3856 test "$am__universal" = false || continue 3857 ;; 3858 nosideeffect) 3859 # After this tag, mechanisms are not by side-effect, so they'll 3860 # only be used when explicitly requested. 3861 if test "x$enable_dependency_tracking" = xyes; then 3862 continue 3863 else 3864 break 3865 fi 3866 ;; 3867 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3868 # This compiler won't grok '-c -o', but also, the minuso test has 3869 # not run yet. These depmodes are late enough in the game, and 3870 # so weak that their functioning should not be impacted. 3871 am__obj=conftest.${OBJEXT-o} 3872 am__minus_obj= 3873 ;; 3874 none) break ;; 3875 esac 3876 if depmode=$depmode \ 3877 source=sub/conftest.c object=$am__obj \ 3878 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3879 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3880 >/dev/null 2>conftest.err && 3881 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3882 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3883 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3884 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3885 # icc doesn't choke on unknown options, it will just issue warnings 3886 # or remarks (even with -Werror). So we grep stderr for any message 3887 # that says an option was ignored or not supported. 3888 # When given -MP, icc 7.0 and 7.1 complain thusly: 3889 # icc: Command line warning: ignoring option '-M'; no argument required 3890 # The diagnosis changed in icc 8.0: 3891 # icc: Command line remark: option '-MP' not supported 3892 if (grep 'ignoring option' conftest.err || 3893 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3894 am_cv_CC_dependencies_compiler_type=$depmode 3895 break 3896 fi 3897 fi 3898 done 3899 3900 cd .. 3901 rm -rf conftest.dir 3902 else 3903 am_cv_CC_dependencies_compiler_type=none 3904 fi 3905 3906 fi 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3908 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3910 3911 if 3912 test "x$enable_dependency_tracking" != xno \ 3913 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3914 am__fastdepCC_TRUE= 3915 am__fastdepCC_FALSE='#' 3916 else 3917 am__fastdepCC_TRUE='#' 3918 am__fastdepCC_FALSE= 3919 fi 3920 3921 3922 ac_ext=cpp 3923 ac_cpp='$CXXCPP $CPPFLAGS' 3924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3927 if test -z "$CXX"; then 3928 if test -n "$CCC"; then 3929 CXX=$CCC 3930 else 3931 if test -n "$ac_tool_prefix"; then 3932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3933 do 3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3937 $as_echo_n "checking for $ac_word... " >&6; } 3938 if ${ac_cv_prog_CXX+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940 else 3941 if test -n "$CXX"; then 3942 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3943 else 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945 for as_dir in $PATH 3946 do 3947 IFS=$as_save_IFS 3948 test -z "$as_dir" && as_dir=. 3949 for ac_exec_ext in '' $ac_executable_extensions; do 3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3953 break 2 3954 fi 3955 done 3956 done 3957 IFS=$as_save_IFS 3958 3959 fi 3960 fi 3961 CXX=$ac_cv_prog_CXX 3962 if test -n "$CXX"; then 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3964 $as_echo "$CXX" >&6; } 3965 else 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3967 $as_echo "no" >&6; } 3968 fi 3969 3970 3971 test -n "$CXX" && break 3972 done 3973 fi 3974 if test -z "$CXX"; then 3975 ac_ct_CXX=$CXX 3976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3977 do 3978 # Extract the first word of "$ac_prog", so it can be a program name with args. 3979 set dummy $ac_prog; ac_word=$2 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3981 $as_echo_n "checking for $ac_word... " >&6; } 3982 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3983 $as_echo_n "(cached) " >&6 3984 else 3985 if test -n "$ac_ct_CXX"; then 3986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3987 else 3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3989 for as_dir in $PATH 3990 do 3991 IFS=$as_save_IFS 3992 test -z "$as_dir" && as_dir=. 3993 for ac_exec_ext in '' $ac_executable_extensions; do 3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3995 ac_cv_prog_ac_ct_CXX="$ac_prog" 3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3997 break 2 3998 fi 3999 done 4000 done 4001 IFS=$as_save_IFS 4002 4003 fi 4004 fi 4005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4006 if test -n "$ac_ct_CXX"; then 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4008 $as_echo "$ac_ct_CXX" >&6; } 4009 else 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4011 $as_echo "no" >&6; } 4012 fi 4013 4014 4015 test -n "$ac_ct_CXX" && break 4016 done 4017 4018 if test "x$ac_ct_CXX" = x; then 4019 CXX="g++" 4020 else 4021 case $cross_compiling:$ac_tool_warned in 4022 yes:) 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4025 ac_tool_warned=yes ;; 4026 esac 4027 CXX=$ac_ct_CXX 4028 fi 4029 fi 4030 4031 fi 4032 fi 4033 # Provide some information about the compiler. 4034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4035 set X $ac_compile 4036 ac_compiler=$2 4037 for ac_option in --version -v -V -qversion; do 4038 { { ac_try="$ac_compiler $ac_option >&5" 4039 case "(($ac_try" in 4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4041 *) ac_try_echo=$ac_try;; 4042 esac 4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4044 $as_echo "$ac_try_echo"; } >&5 4045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4046 ac_status=$? 4047 if test -s conftest.err; then 4048 sed '10a\ 4049 ... rest of stderr output deleted ... 4050 10q' conftest.err >conftest.er1 4051 cat conftest.er1 >&5 4052 fi 4053 rm -f conftest.er1 conftest.err 4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4055 test $ac_status = 0; } 4056 done 4057 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4059 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4060 if ${ac_cv_cxx_compiler_gnu+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062 else 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064 /* end confdefs.h. */ 4065 4066 int 4067 main () 4068 { 4069 #ifndef __GNUC__ 4070 choke me 4071 #endif 4072 4073 ; 4074 return 0; 4075 } 4076 _ACEOF 4077 if ac_fn_cxx_try_compile "$LINENO"; then : 4078 ac_compiler_gnu=yes 4079 else 4080 ac_compiler_gnu=no 4081 fi 4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4084 4085 fi 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4087 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4088 if test $ac_compiler_gnu = yes; then 4089 GXX=yes 4090 else 4091 GXX= 4092 fi 4093 ac_test_CXXFLAGS=${CXXFLAGS+set} 4094 ac_save_CXXFLAGS=$CXXFLAGS 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4096 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4097 if ${ac_cv_prog_cxx_g+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099 else 4100 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4101 ac_cxx_werror_flag=yes 4102 ac_cv_prog_cxx_g=no 4103 CXXFLAGS="-g" 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105 /* end confdefs.h. */ 4106 4107 int 4108 main () 4109 { 4110 4111 ; 4112 return 0; 4113 } 4114 _ACEOF 4115 if ac_fn_cxx_try_compile "$LINENO"; then : 4116 ac_cv_prog_cxx_g=yes 4117 else 4118 CXXFLAGS="" 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120 /* end confdefs.h. */ 4121 4122 int 4123 main () 4124 { 4125 4126 ; 4127 return 0; 4128 } 4129 _ACEOF 4130 if ac_fn_cxx_try_compile "$LINENO"; then : 4131 4132 else 4133 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4134 CXXFLAGS="-g" 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136 /* end confdefs.h. */ 4137 4138 int 4139 main () 4140 { 4141 4142 ; 4143 return 0; 4144 } 4145 _ACEOF 4146 if ac_fn_cxx_try_compile "$LINENO"; then : 4147 ac_cv_prog_cxx_g=yes 4148 fi 4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150 fi 4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4152 fi 4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4155 fi 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4157 $as_echo "$ac_cv_prog_cxx_g" >&6; } 4158 if test "$ac_test_CXXFLAGS" = set; then 4159 CXXFLAGS=$ac_save_CXXFLAGS 4160 elif test $ac_cv_prog_cxx_g = yes; then 4161 if test "$GXX" = yes; then 4162 CXXFLAGS="-g -O2" 4163 else 4164 CXXFLAGS="-g" 4165 fi 4166 else 4167 if test "$GXX" = yes; then 4168 CXXFLAGS="-O2" 4169 else 4170 CXXFLAGS= 4171 fi 4172 fi 4173 ac_ext=c 4174 ac_cpp='$CPP $CPPFLAGS' 4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4178 4179 depcc="$CXX" am_compiler_list= 4180 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4182 $as_echo_n "checking dependency style of $depcc... " >&6; } 4183 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185 else 4186 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4187 # We make a subdir and do the tests there. Otherwise we can end up 4188 # making bogus files that we don't know about and never remove. For 4189 # instance it was reported that on HP-UX the gcc test will end up 4190 # making a dummy file named 'D' -- because '-MD' means "put the output 4191 # in D". 4192 rm -rf conftest.dir 4193 mkdir conftest.dir 4194 # Copy depcomp to subdir because otherwise we won't find it if we're 4195 # using a relative directory. 4196 cp "$am_depcomp" conftest.dir 4197 cd conftest.dir 4198 # We will build objects and dependencies in a subdirectory because 4199 # it helps to detect inapplicable dependency modes. For instance 4200 # both Tru64's cc and ICC support -MD to output dependencies as a 4201 # side effect of compilation, but ICC will put the dependencies in 4202 # the current directory while Tru64 will put them in the object 4203 # directory. 4204 mkdir sub 4205 4206 am_cv_CXX_dependencies_compiler_type=none 4207 if test "$am_compiler_list" = ""; then 4208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4209 fi 4210 am__universal=false 4211 case " $depcc " in #( 4212 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4213 esac 4214 4215 for depmode in $am_compiler_list; do 4216 # Setup a source with many dependencies, because some compilers 4217 # like to wrap large dependency lists on column 80 (with \), and 4218 # we should not choose a depcomp mode which is confused by this. 4219 # 4220 # We need to recreate these files for each test, as the compiler may 4221 # overwrite some of them when testing with obscure command lines. 4222 # This happens at least with the AIX C compiler. 4223 : > sub/conftest.c 4224 for i in 1 2 3 4 5 6; do 4225 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4226 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4227 # Solaris 10 /bin/sh. 4228 echo '/* dummy */' > sub/conftst$i.h 4229 done 4230 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4231 4232 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4233 # mode. It turns out that the SunPro C++ compiler does not properly 4234 # handle '-M -o', and we need to detect this. Also, some Intel 4235 # versions had trouble with output in subdirs. 4236 am__obj=sub/conftest.${OBJEXT-o} 4237 am__minus_obj="-o $am__obj" 4238 case $depmode in 4239 gcc) 4240 # This depmode causes a compiler race in universal mode. 4241 test "$am__universal" = false || continue 4242 ;; 4243 nosideeffect) 4244 # After this tag, mechanisms are not by side-effect, so they'll 4245 # only be used when explicitly requested. 4246 if test "x$enable_dependency_tracking" = xyes; then 4247 continue 4248 else 4249 break 4250 fi 4251 ;; 4252 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4253 # This compiler won't grok '-c -o', but also, the minuso test has 4254 # not run yet. These depmodes are late enough in the game, and 4255 # so weak that their functioning should not be impacted. 4256 am__obj=conftest.${OBJEXT-o} 4257 am__minus_obj= 4258 ;; 4259 none) break ;; 4260 esac 4261 if depmode=$depmode \ 4262 source=sub/conftest.c object=$am__obj \ 4263 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4264 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4265 >/dev/null 2>conftest.err && 4266 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4267 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4268 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4269 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4270 # icc doesn't choke on unknown options, it will just issue warnings 4271 # or remarks (even with -Werror). So we grep stderr for any message 4272 # that says an option was ignored or not supported. 4273 # When given -MP, icc 7.0 and 7.1 complain thusly: 4274 # icc: Command line warning: ignoring option '-M'; no argument required 4275 # The diagnosis changed in icc 8.0: 4276 # icc: Command line remark: option '-MP' not supported 4277 if (grep 'ignoring option' conftest.err || 4278 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4279 am_cv_CXX_dependencies_compiler_type=$depmode 4280 break 4281 fi 4282 fi 4283 done 4284 4285 cd .. 4286 rm -rf conftest.dir 4287 else 4288 am_cv_CXX_dependencies_compiler_type=none 4289 fi 4290 4291 fi 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4293 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4294 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4295 4296 if 4297 test "x$enable_dependency_tracking" != xno \ 4298 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4299 am__fastdepCXX_TRUE= 4300 am__fastdepCXX_FALSE='#' 4301 else 4302 am__fastdepCXX_TRUE='#' 4303 am__fastdepCXX_FALSE= 4304 fi 4305 4306 4307 ac_ext=cpp 4308 ac_cpp='$CXXCPP $CPPFLAGS' 4309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4312 4313 case `pwd` in 4314 *\ * | *\ *) 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4316 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4317 esac 4318 4319 4320 4321 macro_version='2.4.2' 4322 macro_revision='1.3337' 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 ltmain="$ac_aux_dir/ltmain.sh" 4337 4338 # Make sure we can run config.sub. 4339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4340 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4341 4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4343 $as_echo_n "checking build system type... " >&6; } 4344 if ${ac_cv_build+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346 else 4347 ac_build_alias=$build_alias 4348 test "x$ac_build_alias" = x && 4349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4350 test "x$ac_build_alias" = x && 4351 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4352 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4353 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4354 4355 fi 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4357 $as_echo "$ac_cv_build" >&6; } 4358 case $ac_cv_build in 4359 *-*-*) ;; 4360 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4361 esac 4362 build=$ac_cv_build 4363 ac_save_IFS=$IFS; IFS='-' 4364 set x $ac_cv_build 4365 shift 4366 build_cpu=$1 4367 build_vendor=$2 4368 shift; shift 4369 # Remember, the first character of IFS is used to create $*, 4370 # except with old shells: 4371 build_os=$* 4372 IFS=$ac_save_IFS 4373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4374 4375 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4377 $as_echo_n "checking host system type... " >&6; } 4378 if ${ac_cv_host+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380 else 4381 if test "x$host_alias" = x; then 4382 ac_cv_host=$ac_cv_build 4383 else 4384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4386 fi 4387 4388 fi 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4390 $as_echo "$ac_cv_host" >&6; } 4391 case $ac_cv_host in 4392 *-*-*) ;; 4393 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4394 esac 4395 host=$ac_cv_host 4396 ac_save_IFS=$IFS; IFS='-' 4397 set x $ac_cv_host 4398 shift 4399 host_cpu=$1 4400 host_vendor=$2 4401 shift; shift 4402 # Remember, the first character of IFS is used to create $*, 4403 # except with old shells: 4404 host_os=$* 4405 IFS=$ac_save_IFS 4406 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4407 4408 4409 # Backslashify metacharacters that are still active within 4410 # double-quoted strings. 4411 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4412 4413 # Same as above, but do not quote variable references. 4414 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4415 4416 # Sed substitution to delay expansion of an escaped shell variable in a 4417 # double_quote_subst'ed string. 4418 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4419 4420 # Sed substitution to delay expansion of an escaped single quote. 4421 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4422 4423 # Sed substitution to avoid accidental globbing in evaled expressions 4424 no_glob_subst='s/\*/\\\*/g' 4425 4426 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4427 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4428 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4429 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4431 $as_echo_n "checking how to print strings... " >&6; } 4432 # Test print first, because it will be a builtin if present. 4433 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4434 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4435 ECHO='print -r --' 4436 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4437 ECHO='printf %s\n' 4438 else 4439 # Use this function as a fallback that always works. 4440 func_fallback_echo () 4441 { 4442 eval 'cat <<_LTECHO_EOF 4443 $1 4444 _LTECHO_EOF' 4445 } 4446 ECHO='func_fallback_echo' 4447 fi 4448 4449 # func_echo_all arg... 4450 # Invoke $ECHO with all args, space-separated. 4451 func_echo_all () 4452 { 4453 $ECHO "" 4454 } 4455 4456 case "$ECHO" in 4457 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4458 $as_echo "printf" >&6; } ;; 4459 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4460 $as_echo "print -r" >&6; } ;; 4461 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4462 $as_echo "cat" >&6; } ;; 4463 esac 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4479 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4480 if ${ac_cv_path_SED+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482 else 4483 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4484 for ac_i in 1 2 3 4 5 6 7; do 4485 ac_script="$ac_script$as_nl$ac_script" 4486 done 4487 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4488 { ac_script=; unset ac_script;} 4489 if test -z "$SED"; then 4490 ac_path_SED_found=false 4491 # Loop through the user's path and test for each of PROGNAME-LIST 4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493 for as_dir in $PATH 4494 do 4495 IFS=$as_save_IFS 4496 test -z "$as_dir" && as_dir=. 4497 for ac_prog in sed gsed; do 4498 for ac_exec_ext in '' $ac_executable_extensions; do 4499 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4500 as_fn_executable_p "$ac_path_SED" || continue 4501 # Check for GNU ac_path_SED and select it if it is found. 4502 # Check for GNU $ac_path_SED 4503 case `"$ac_path_SED" --version 2>&1` in 4504 *GNU*) 4505 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4506 *) 4507 ac_count=0 4508 $as_echo_n 0123456789 >"conftest.in" 4509 while : 4510 do 4511 cat "conftest.in" "conftest.in" >"conftest.tmp" 4512 mv "conftest.tmp" "conftest.in" 4513 cp "conftest.in" "conftest.nl" 4514 $as_echo '' >> "conftest.nl" 4515 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4517 as_fn_arith $ac_count + 1 && ac_count=$as_val 4518 if test $ac_count -gt ${ac_path_SED_max-0}; then 4519 # Best one so far, save it but keep looking for a better one 4520 ac_cv_path_SED="$ac_path_SED" 4521 ac_path_SED_max=$ac_count 4522 fi 4523 # 10*(2^10) chars as input seems more than enough 4524 test $ac_count -gt 10 && break 4525 done 4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4527 esac 4528 4529 $ac_path_SED_found && break 3 4530 done 4531 done 4532 done 4533 IFS=$as_save_IFS 4534 if test -z "$ac_cv_path_SED"; then 4535 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4536 fi 4537 else 4538 ac_cv_path_SED=$SED 4539 fi 4540 4541 fi 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4543 $as_echo "$ac_cv_path_SED" >&6; } 4544 SED="$ac_cv_path_SED" 4545 rm -f conftest.sed 4546 4547 test -z "$SED" && SED=sed 4548 Xsed="$SED -e 1s/^X//" 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4561 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4562 if ${ac_cv_path_GREP+:} false; then : 4563 $as_echo_n "(cached) " >&6 4564 else 4565 if test -z "$GREP"; then 4566 ac_path_GREP_found=false 4567 # Loop through the user's path and test for each of PROGNAME-LIST 4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4570 do 4571 IFS=$as_save_IFS 4572 test -z "$as_dir" && as_dir=. 4573 for ac_prog in grep ggrep; do 4574 for ac_exec_ext in '' $ac_executable_extensions; do 4575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4576 as_fn_executable_p "$ac_path_GREP" || continue 4577 # Check for GNU ac_path_GREP and select it if it is found. 4578 # Check for GNU $ac_path_GREP 4579 case `"$ac_path_GREP" --version 2>&1` in 4580 *GNU*) 4581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4582 *) 4583 ac_count=0 4584 $as_echo_n 0123456789 >"conftest.in" 4585 while : 4586 do 4587 cat "conftest.in" "conftest.in" >"conftest.tmp" 4588 mv "conftest.tmp" "conftest.in" 4589 cp "conftest.in" "conftest.nl" 4590 $as_echo 'GREP' >> "conftest.nl" 4591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4593 as_fn_arith $ac_count + 1 && ac_count=$as_val 4594 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4595 # Best one so far, save it but keep looking for a better one 4596 ac_cv_path_GREP="$ac_path_GREP" 4597 ac_path_GREP_max=$ac_count 4598 fi 4599 # 10*(2^10) chars as input seems more than enough 4600 test $ac_count -gt 10 && break 4601 done 4602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4603 esac 4604 4605 $ac_path_GREP_found && break 3 4606 done 4607 done 4608 done 4609 IFS=$as_save_IFS 4610 if test -z "$ac_cv_path_GREP"; then 4611 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4612 fi 4613 else 4614 ac_cv_path_GREP=$GREP 4615 fi 4616 4617 fi 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4619 $as_echo "$ac_cv_path_GREP" >&6; } 4620 GREP="$ac_cv_path_GREP" 4621 4622 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4624 $as_echo_n "checking for egrep... " >&6; } 4625 if ${ac_cv_path_EGREP+:} false; then : 4626 $as_echo_n "(cached) " >&6 4627 else 4628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4629 then ac_cv_path_EGREP="$GREP -E" 4630 else 4631 if test -z "$EGREP"; then 4632 ac_path_EGREP_found=false 4633 # Loop through the user's path and test for each of PROGNAME-LIST 4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4636 do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_prog in egrep; do 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4642 as_fn_executable_p "$ac_path_EGREP" || continue 4643 # Check for GNU ac_path_EGREP and select it if it is found. 4644 # Check for GNU $ac_path_EGREP 4645 case `"$ac_path_EGREP" --version 2>&1` in 4646 *GNU*) 4647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4648 *) 4649 ac_count=0 4650 $as_echo_n 0123456789 >"conftest.in" 4651 while : 4652 do 4653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4654 mv "conftest.tmp" "conftest.in" 4655 cp "conftest.in" "conftest.nl" 4656 $as_echo 'EGREP' >> "conftest.nl" 4657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4659 as_fn_arith $ac_count + 1 && ac_count=$as_val 4660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4661 # Best one so far, save it but keep looking for a better one 4662 ac_cv_path_EGREP="$ac_path_EGREP" 4663 ac_path_EGREP_max=$ac_count 4664 fi 4665 # 10*(2^10) chars as input seems more than enough 4666 test $ac_count -gt 10 && break 4667 done 4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4669 esac 4670 4671 $ac_path_EGREP_found && break 3 4672 done 4673 done 4674 done 4675 IFS=$as_save_IFS 4676 if test -z "$ac_cv_path_EGREP"; then 4677 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4678 fi 4679 else 4680 ac_cv_path_EGREP=$EGREP 4681 fi 4682 4683 fi 4684 fi 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4686 $as_echo "$ac_cv_path_EGREP" >&6; } 4687 EGREP="$ac_cv_path_EGREP" 4688 4689 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4691 $as_echo_n "checking for fgrep... " >&6; } 4692 if ${ac_cv_path_FGREP+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694 else 4695 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4696 then ac_cv_path_FGREP="$GREP -F" 4697 else 4698 if test -z "$FGREP"; then 4699 ac_path_FGREP_found=false 4700 # Loop through the user's path and test for each of PROGNAME-LIST 4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4703 do 4704 IFS=$as_save_IFS 4705 test -z "$as_dir" && as_dir=. 4706 for ac_prog in fgrep; do 4707 for ac_exec_ext in '' $ac_executable_extensions; do 4708 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4709 as_fn_executable_p "$ac_path_FGREP" || continue 4710 # Check for GNU ac_path_FGREP and select it if it is found. 4711 # Check for GNU $ac_path_FGREP 4712 case `"$ac_path_FGREP" --version 2>&1` in 4713 *GNU*) 4714 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4715 *) 4716 ac_count=0 4717 $as_echo_n 0123456789 >"conftest.in" 4718 while : 4719 do 4720 cat "conftest.in" "conftest.in" >"conftest.tmp" 4721 mv "conftest.tmp" "conftest.in" 4722 cp "conftest.in" "conftest.nl" 4723 $as_echo 'FGREP' >> "conftest.nl" 4724 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4726 as_fn_arith $ac_count + 1 && ac_count=$as_val 4727 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4728 # Best one so far, save it but keep looking for a better one 4729 ac_cv_path_FGREP="$ac_path_FGREP" 4730 ac_path_FGREP_max=$ac_count 4731 fi 4732 # 10*(2^10) chars as input seems more than enough 4733 test $ac_count -gt 10 && break 4734 done 4735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4736 esac 4737 4738 $ac_path_FGREP_found && break 3 4739 done 4740 done 4741 done 4742 IFS=$as_save_IFS 4743 if test -z "$ac_cv_path_FGREP"; then 4744 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4745 fi 4746 else 4747 ac_cv_path_FGREP=$FGREP 4748 fi 4749 4750 fi 4751 fi 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4753 $as_echo "$ac_cv_path_FGREP" >&6; } 4754 FGREP="$ac_cv_path_FGREP" 4755 4756 4757 test -z "$GREP" && GREP=grep 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 # Check whether --with-gnu-ld was given. 4778 if test "${with_gnu_ld+set}" = set; then : 4779 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4780 else 4781 with_gnu_ld=no 4782 fi 4783 4784 ac_prog=ld 4785 if test "$GCC" = yes; then 4786 # Check if gcc -print-prog-name=ld gives a path. 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4788 $as_echo_n "checking for ld used by $CC... " >&6; } 4789 case $host in 4790 *-*-mingw*) 4791 # gcc leaves a trailing carriage return which upsets mingw 4792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4793 *) 4794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4795 esac 4796 case $ac_prog in 4797 # Accept absolute paths. 4798 [\\/]* | ?:[\\/]*) 4799 re_direlt='/[^/][^/]*/\.\./' 4800 # Canonicalize the pathname of ld 4801 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4802 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4803 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4804 done 4805 test -z "$LD" && LD="$ac_prog" 4806 ;; 4807 "") 4808 # If it fails, then pretend we aren't using GCC. 4809 ac_prog=ld 4810 ;; 4811 *) 4812 # If it is relative, then search for the first ld in PATH. 4813 with_gnu_ld=unknown 4814 ;; 4815 esac 4816 elif test "$with_gnu_ld" = yes; then 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4818 $as_echo_n "checking for GNU ld... " >&6; } 4819 else 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4821 $as_echo_n "checking for non-GNU ld... " >&6; } 4822 fi 4823 if ${lt_cv_path_LD+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825 else 4826 if test -z "$LD"; then 4827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4828 for ac_dir in $PATH; do 4829 IFS="$lt_save_ifs" 4830 test -z "$ac_dir" && ac_dir=. 4831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4832 lt_cv_path_LD="$ac_dir/$ac_prog" 4833 # Check to see if the program is GNU ld. I'd rather use --version, 4834 # but apparently some variants of GNU ld only accept -v. 4835 # Break only if it was the GNU/non-GNU ld that we prefer. 4836 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4837 *GNU* | *'with BFD'*) 4838 test "$with_gnu_ld" != no && break 4839 ;; 4840 *) 4841 test "$with_gnu_ld" != yes && break 4842 ;; 4843 esac 4844 fi 4845 done 4846 IFS="$lt_save_ifs" 4847 else 4848 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4849 fi 4850 fi 4851 4852 LD="$lt_cv_path_LD" 4853 if test -n "$LD"; then 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4855 $as_echo "$LD" >&6; } 4856 else 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4858 $as_echo "no" >&6; } 4859 fi 4860 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4862 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4863 if ${lt_cv_prog_gnu_ld+:} false; then : 4864 $as_echo_n "(cached) " >&6 4865 else 4866 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4867 case `$LD -v 2>&1 </dev/null` in 4868 *GNU* | *'with BFD'*) 4869 lt_cv_prog_gnu_ld=yes 4870 ;; 4871 *) 4872 lt_cv_prog_gnu_ld=no 4873 ;; 4874 esac 4875 fi 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4877 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4878 with_gnu_ld=$lt_cv_prog_gnu_ld 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4889 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4890 if ${lt_cv_path_NM+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892 else 4893 if test -n "$NM"; then 4894 # Let the user override the test. 4895 lt_cv_path_NM="$NM" 4896 else 4897 lt_nm_to_check="${ac_tool_prefix}nm" 4898 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4899 lt_nm_to_check="$lt_nm_to_check nm" 4900 fi 4901 for lt_tmp_nm in $lt_nm_to_check; do 4902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4903 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4904 IFS="$lt_save_ifs" 4905 test -z "$ac_dir" && ac_dir=. 4906 tmp_nm="$ac_dir/$lt_tmp_nm" 4907 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4908 # Check to see if the nm accepts a BSD-compat flag. 4909 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4910 # nm: unknown option "B" ignored 4911 # Tru64's nm complains that /dev/null is an invalid object file 4912 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4913 */dev/null* | *'Invalid file or object type'*) 4914 lt_cv_path_NM="$tmp_nm -B" 4915 break 4916 ;; 4917 *) 4918 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4919 */dev/null*) 4920 lt_cv_path_NM="$tmp_nm -p" 4921 break 4922 ;; 4923 *) 4924 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4925 continue # so that we can try to find one that supports BSD flags 4926 ;; 4927 esac 4928 ;; 4929 esac 4930 fi 4931 done 4932 IFS="$lt_save_ifs" 4933 done 4934 : ${lt_cv_path_NM=no} 4935 fi 4936 fi 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4938 $as_echo "$lt_cv_path_NM" >&6; } 4939 if test "$lt_cv_path_NM" != "no"; then 4940 NM="$lt_cv_path_NM" 4941 else 4942 # Didn't find any BSD compatible name lister, look for dumpbin. 4943 if test -n "$DUMPBIN"; then : 4944 # Let the user override the test. 4945 else 4946 if test -n "$ac_tool_prefix"; then 4947 for ac_prog in dumpbin "link -dump" 4948 do 4949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4952 $as_echo_n "checking for $ac_word... " >&6; } 4953 if ${ac_cv_prog_DUMPBIN+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955 else 4956 if test -n "$DUMPBIN"; then 4957 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4958 else 4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4960 for as_dir in $PATH 4961 do 4962 IFS=$as_save_IFS 4963 test -z "$as_dir" && as_dir=. 4964 for ac_exec_ext in '' $ac_executable_extensions; do 4965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4966 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4968 break 2 4969 fi 4970 done 4971 done 4972 IFS=$as_save_IFS 4973 4974 fi 4975 fi 4976 DUMPBIN=$ac_cv_prog_DUMPBIN 4977 if test -n "$DUMPBIN"; then 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4979 $as_echo "$DUMPBIN" >&6; } 4980 else 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4982 $as_echo "no" >&6; } 4983 fi 4984 4985 4986 test -n "$DUMPBIN" && break 4987 done 4988 fi 4989 if test -z "$DUMPBIN"; then 4990 ac_ct_DUMPBIN=$DUMPBIN 4991 for ac_prog in dumpbin "link -dump" 4992 do 4993 # Extract the first word of "$ac_prog", so it can be a program name with args. 4994 set dummy $ac_prog; ac_word=$2 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4996 $as_echo_n "checking for $ac_word... " >&6; } 4997 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999 else 5000 if test -n "$ac_ct_DUMPBIN"; then 5001 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5002 else 5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5004 for as_dir in $PATH 5005 do 5006 IFS=$as_save_IFS 5007 test -z "$as_dir" && as_dir=. 5008 for ac_exec_ext in '' $ac_executable_extensions; do 5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5010 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5012 break 2 5013 fi 5014 done 5015 done 5016 IFS=$as_save_IFS 5017 5018 fi 5019 fi 5020 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5021 if test -n "$ac_ct_DUMPBIN"; then 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5023 $as_echo "$ac_ct_DUMPBIN" >&6; } 5024 else 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5026 $as_echo "no" >&6; } 5027 fi 5028 5029 5030 test -n "$ac_ct_DUMPBIN" && break 5031 done 5032 5033 if test "x$ac_ct_DUMPBIN" = x; then 5034 DUMPBIN=":" 5035 else 5036 case $cross_compiling:$ac_tool_warned in 5037 yes:) 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5040 ac_tool_warned=yes ;; 5041 esac 5042 DUMPBIN=$ac_ct_DUMPBIN 5043 fi 5044 fi 5045 5046 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5047 *COFF*) 5048 DUMPBIN="$DUMPBIN -symbols" 5049 ;; 5050 *) 5051 DUMPBIN=: 5052 ;; 5053 esac 5054 fi 5055 5056 if test "$DUMPBIN" != ":"; then 5057 NM="$DUMPBIN" 5058 fi 5059 fi 5060 test -z "$NM" && NM=nm 5061 5062 5063 5064 5065 5066 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5068 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5069 if ${lt_cv_nm_interface+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071 else 5072 lt_cv_nm_interface="BSD nm" 5073 echo "int some_variable = 0;" > conftest.$ac_ext 5074 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5075 (eval "$ac_compile" 2>conftest.err) 5076 cat conftest.err >&5 5077 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5078 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5079 cat conftest.err >&5 5080 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5081 cat conftest.out >&5 5082 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5083 lt_cv_nm_interface="MS dumpbin" 5084 fi 5085 rm -f conftest* 5086 fi 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5088 $as_echo "$lt_cv_nm_interface" >&6; } 5089 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5091 $as_echo_n "checking whether ln -s works... " >&6; } 5092 LN_S=$as_ln_s 5093 if test "$LN_S" = "ln -s"; then 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5095 $as_echo "yes" >&6; } 5096 else 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5098 $as_echo "no, using $LN_S" >&6; } 5099 fi 5100 5101 # find the maximum length of command line arguments 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5103 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5104 if ${lt_cv_sys_max_cmd_len+:} false; then : 5105 $as_echo_n "(cached) " >&6 5106 else 5107 i=0 5108 teststring="ABCD" 5109 5110 case $build_os in 5111 msdosdjgpp*) 5112 # On DJGPP, this test can blow up pretty badly due to problems in libc 5113 # (any single argument exceeding 2000 bytes causes a buffer overrun 5114 # during glob expansion). Even if it were fixed, the result of this 5115 # check would be larger than it should be. 5116 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5117 ;; 5118 5119 gnu*) 5120 # Under GNU Hurd, this test is not required because there is 5121 # no limit to the length of command line arguments. 5122 # Libtool will interpret -1 as no limit whatsoever 5123 lt_cv_sys_max_cmd_len=-1; 5124 ;; 5125 5126 cygwin* | mingw* | cegcc*) 5127 # On Win9x/ME, this test blows up -- it succeeds, but takes 5128 # about 5 minutes as the teststring grows exponentially. 5129 # Worse, since 9x/ME are not pre-emptively multitasking, 5130 # you end up with a "frozen" computer, even though with patience 5131 # the test eventually succeeds (with a max line length of 256k). 5132 # Instead, let's just punt: use the minimum linelength reported by 5133 # all of the supported platforms: 8192 (on NT/2K/XP). 5134 lt_cv_sys_max_cmd_len=8192; 5135 ;; 5136 5137 mint*) 5138 # On MiNT this can take a long time and run out of memory. 5139 lt_cv_sys_max_cmd_len=8192; 5140 ;; 5141 5142 amigaos*) 5143 # On AmigaOS with pdksh, this test takes hours, literally. 5144 # So we just punt and use a minimum line length of 8192. 5145 lt_cv_sys_max_cmd_len=8192; 5146 ;; 5147 5148 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5149 # This has been around since 386BSD, at least. Likely further. 5150 if test -x /sbin/sysctl; then 5151 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5152 elif test -x /usr/sbin/sysctl; then 5153 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5154 else 5155 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5156 fi 5157 # And add a safety zone 5158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5160 ;; 5161 5162 interix*) 5163 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5164 lt_cv_sys_max_cmd_len=196608 5165 ;; 5166 5167 os2*) 5168 # The test takes a long time on OS/2. 5169 lt_cv_sys_max_cmd_len=8192 5170 ;; 5171 5172 osf*) 5173 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5174 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5175 # nice to cause kernel panics so lets avoid the loop below. 5176 # First set a reasonable default. 5177 lt_cv_sys_max_cmd_len=16384 5178 # 5179 if test -x /sbin/sysconfig; then 5180 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5181 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5182 esac 5183 fi 5184 ;; 5185 sco3.2v5*) 5186 lt_cv_sys_max_cmd_len=102400 5187 ;; 5188 sysv5* | sco5v6* | sysv4.2uw2*) 5189 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5190 if test -n "$kargmax"; then 5191 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5192 else 5193 lt_cv_sys_max_cmd_len=32768 5194 fi 5195 ;; 5196 *) 5197 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5198 if test -n "$lt_cv_sys_max_cmd_len" && \ 5199 test undefined != "$lt_cv_sys_max_cmd_len"; then 5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5202 else 5203 # Make teststring a little bigger before we do anything with it. 5204 # a 1K string should be a reasonable start. 5205 for i in 1 2 3 4 5 6 7 8 ; do 5206 teststring=$teststring$teststring 5207 done 5208 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5209 # If test is not a shell built-in, we'll probably end up computing a 5210 # maximum length that is only half of the actual maximum length, but 5211 # we can't tell. 5212 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5213 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5214 test $i != 17 # 1/2 MB should be enough 5215 do 5216 i=`expr $i + 1` 5217 teststring=$teststring$teststring 5218 done 5219 # Only check the string length outside the loop. 5220 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5221 teststring= 5222 # Add a significant safety factor because C++ compilers can tack on 5223 # massive amounts of additional arguments before passing them to the 5224 # linker. It appears as though 1/2 is a usable value. 5225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5226 fi 5227 ;; 5228 esac 5229 5230 fi 5231 5232 if test -n $lt_cv_sys_max_cmd_len ; then 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5234 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5235 else 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5237 $as_echo "none" >&6; } 5238 fi 5239 max_cmd_len=$lt_cv_sys_max_cmd_len 5240 5241 5242 5243 5244 5245 5246 : ${CP="cp -f"} 5247 : ${MV="mv -f"} 5248 : ${RM="rm -f"} 5249 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5251 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5252 # Try some XSI features 5253 xsi_shell=no 5254 ( _lt_dummy="a/b/c" 5255 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5256 = c,a/b,b/c, \ 5257 && eval 'test $(( 1 + 1 )) -eq 2 \ 5258 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5259 && xsi_shell=yes 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5261 $as_echo "$xsi_shell" >&6; } 5262 5263 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5265 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5266 lt_shell_append=no 5267 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5268 >/dev/null 2>&1 \ 5269 && lt_shell_append=yes 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5271 $as_echo "$lt_shell_append" >&6; } 5272 5273 5274 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5275 lt_unset=unset 5276 else 5277 lt_unset=false 5278 fi 5279 5280 5281 5282 5283 5284 # test EBCDIC or ASCII 5285 case `echo X|tr X '\101'` in 5286 A) # ASCII based system 5287 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5288 lt_SP2NL='tr \040 \012' 5289 lt_NL2SP='tr \015\012 \040\040' 5290 ;; 5291 *) # EBCDIC based system 5292 lt_SP2NL='tr \100 \n' 5293 lt_NL2SP='tr \r\n \100\100' 5294 ;; 5295 esac 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5306 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5307 if ${lt_cv_to_host_file_cmd+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309 else 5310 case $host in 5311 *-*-mingw* ) 5312 case $build in 5313 *-*-mingw* ) # actually msys 5314 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5315 ;; 5316 *-*-cygwin* ) 5317 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5318 ;; 5319 * ) # otherwise, assume *nix 5320 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5321 ;; 5322 esac 5323 ;; 5324 *-*-cygwin* ) 5325 case $build in 5326 *-*-mingw* ) # actually msys 5327 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5328 ;; 5329 *-*-cygwin* ) 5330 lt_cv_to_host_file_cmd=func_convert_file_noop 5331 ;; 5332 * ) # otherwise, assume *nix 5333 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5334 ;; 5335 esac 5336 ;; 5337 * ) # unhandled hosts (and "normal" native builds) 5338 lt_cv_to_host_file_cmd=func_convert_file_noop 5339 ;; 5340 esac 5341 5342 fi 5343 5344 to_host_file_cmd=$lt_cv_to_host_file_cmd 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5346 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5347 5348 5349 5350 5351 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5353 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5354 if ${lt_cv_to_tool_file_cmd+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356 else 5357 #assume ordinary cross tools, or native build. 5358 lt_cv_to_tool_file_cmd=func_convert_file_noop 5359 case $host in 5360 *-*-mingw* ) 5361 case $build in 5362 *-*-mingw* ) # actually msys 5363 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5364 ;; 5365 esac 5366 ;; 5367 esac 5368 5369 fi 5370 5371 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5373 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5374 5375 5376 5377 5378 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5380 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5381 if ${lt_cv_ld_reload_flag+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383 else 5384 lt_cv_ld_reload_flag='-r' 5385 fi 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5387 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5388 reload_flag=$lt_cv_ld_reload_flag 5389 case $reload_flag in 5390 "" | " "*) ;; 5391 *) reload_flag=" $reload_flag" ;; 5392 esac 5393 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5394 case $host_os in 5395 cygwin* | mingw* | pw32* | cegcc*) 5396 if test "$GCC" != yes; then 5397 reload_cmds=false 5398 fi 5399 ;; 5400 darwin*) 5401 if test "$GCC" = yes; then 5402 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5403 else 5404 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5405 fi 5406 ;; 5407 esac 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 if test -n "$ac_tool_prefix"; then 5418 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5419 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5421 $as_echo_n "checking for $ac_word... " >&6; } 5422 if ${ac_cv_prog_OBJDUMP+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424 else 5425 if test -n "$OBJDUMP"; then 5426 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5427 else 5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429 for as_dir in $PATH 5430 do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5435 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439 done 5440 done 5441 IFS=$as_save_IFS 5442 5443 fi 5444 fi 5445 OBJDUMP=$ac_cv_prog_OBJDUMP 5446 if test -n "$OBJDUMP"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5448 $as_echo "$OBJDUMP" >&6; } 5449 else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451 $as_echo "no" >&6; } 5452 fi 5453 5454 5455 fi 5456 if test -z "$ac_cv_prog_OBJDUMP"; then 5457 ac_ct_OBJDUMP=$OBJDUMP 5458 # Extract the first word of "objdump", so it can be a program name with args. 5459 set dummy objdump; ac_word=$2 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5461 $as_echo_n "checking for $ac_word... " >&6; } 5462 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5463 $as_echo_n "(cached) " >&6 5464 else 5465 if test -n "$ac_ct_OBJDUMP"; then 5466 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5467 else 5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469 for as_dir in $PATH 5470 do 5471 IFS=$as_save_IFS 5472 test -z "$as_dir" && as_dir=. 5473 for ac_exec_ext in '' $ac_executable_extensions; do 5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5475 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5477 break 2 5478 fi 5479 done 5480 done 5481 IFS=$as_save_IFS 5482 5483 fi 5484 fi 5485 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5486 if test -n "$ac_ct_OBJDUMP"; then 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5488 $as_echo "$ac_ct_OBJDUMP" >&6; } 5489 else 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5491 $as_echo "no" >&6; } 5492 fi 5493 5494 if test "x$ac_ct_OBJDUMP" = x; then 5495 OBJDUMP="false" 5496 else 5497 case $cross_compiling:$ac_tool_warned in 5498 yes:) 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5501 ac_tool_warned=yes ;; 5502 esac 5503 OBJDUMP=$ac_ct_OBJDUMP 5504 fi 5505 else 5506 OBJDUMP="$ac_cv_prog_OBJDUMP" 5507 fi 5508 5509 test -z "$OBJDUMP" && OBJDUMP=objdump 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5520 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5521 if ${lt_cv_deplibs_check_method+:} false; then : 5522 $as_echo_n "(cached) " >&6 5523 else 5524 lt_cv_file_magic_cmd='$MAGIC_CMD' 5525 lt_cv_file_magic_test_file= 5526 lt_cv_deplibs_check_method='unknown' 5527 # Need to set the preceding variable on all platforms that support 5528 # interlibrary dependencies. 5529 # 'none' -- dependencies not supported. 5530 # `unknown' -- same as none, but documents that we really don't know. 5531 # 'pass_all' -- all dependencies passed with no checks. 5532 # 'test_compile' -- check by making test program. 5533 # 'file_magic [[regex]]' -- check by looking for files in library path 5534 # which responds to the $file_magic_cmd with a given extended regex. 5535 # If you have `file' or equivalent on your system and you're not sure 5536 # whether `pass_all' will *always* work, you probably want this one. 5537 5538 case $host_os in 5539 aix[4-9]*) 5540 lt_cv_deplibs_check_method=pass_all 5541 ;; 5542 5543 beos*) 5544 lt_cv_deplibs_check_method=pass_all 5545 ;; 5546 5547 bsdi[45]*) 5548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5549 lt_cv_file_magic_cmd='/usr/bin/file -L' 5550 lt_cv_file_magic_test_file=/shlib/libc.so 5551 ;; 5552 5553 cygwin*) 5554 # func_win32_libid is a shell function defined in ltmain.sh 5555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5556 lt_cv_file_magic_cmd='func_win32_libid' 5557 ;; 5558 5559 mingw* | pw32*) 5560 # Base MSYS/MinGW do not provide the 'file' command needed by 5561 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5562 # unless we find 'file', for example because we are cross-compiling. 5563 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5564 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5566 lt_cv_file_magic_cmd='func_win32_libid' 5567 else 5568 # Keep this pattern in sync with the one in func_win32_libid. 5569 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5570 lt_cv_file_magic_cmd='$OBJDUMP -f' 5571 fi 5572 ;; 5573 5574 cegcc*) 5575 # use the weaker test based on 'objdump'. See mingw*. 5576 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5577 lt_cv_file_magic_cmd='$OBJDUMP -f' 5578 ;; 5579 5580 darwin* | rhapsody*) 5581 lt_cv_deplibs_check_method=pass_all 5582 ;; 5583 5584 freebsd* | dragonfly*) 5585 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5586 case $host_cpu in 5587 i*86 ) 5588 # Not sure whether the presence of OpenBSD here was a mistake. 5589 # Let's accept both of them until this is cleared up. 5590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5591 lt_cv_file_magic_cmd=/usr/bin/file 5592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5593 ;; 5594 esac 5595 else 5596 lt_cv_deplibs_check_method=pass_all 5597 fi 5598 ;; 5599 5600 haiku*) 5601 lt_cv_deplibs_check_method=pass_all 5602 ;; 5603 5604 hpux10.20* | hpux11*) 5605 lt_cv_file_magic_cmd=/usr/bin/file 5606 case $host_cpu in 5607 ia64*) 5608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5609 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5610 ;; 5611 hppa*64*) 5612 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]' 5613 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5614 ;; 5615 *) 5616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5617 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5618 ;; 5619 esac 5620 ;; 5621 5622 interix[3-9]*) 5623 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5625 ;; 5626 5627 irix5* | irix6* | nonstopux*) 5628 case $LD in 5629 *-32|*"-32 ") libmagic=32-bit;; 5630 *-n32|*"-n32 ") libmagic=N32;; 5631 *-64|*"-64 ") libmagic=64-bit;; 5632 *) libmagic=never-match;; 5633 esac 5634 lt_cv_deplibs_check_method=pass_all 5635 ;; 5636 5637 # This must be glibc/ELF. 5638 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5639 lt_cv_deplibs_check_method=pass_all 5640 ;; 5641 5642 netbsd* | netbsdelf*-gnu) 5643 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5645 else 5646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5647 fi 5648 ;; 5649 5650 newos6*) 5651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5652 lt_cv_file_magic_cmd=/usr/bin/file 5653 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5654 ;; 5655 5656 *nto* | *qnx*) 5657 lt_cv_deplibs_check_method=pass_all 5658 ;; 5659 5660 openbsd*) 5661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5663 else 5664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5665 fi 5666 ;; 5667 5668 osf3* | osf4* | osf5*) 5669 lt_cv_deplibs_check_method=pass_all 5670 ;; 5671 5672 rdos*) 5673 lt_cv_deplibs_check_method=pass_all 5674 ;; 5675 5676 solaris*) 5677 lt_cv_deplibs_check_method=pass_all 5678 ;; 5679 5680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5681 lt_cv_deplibs_check_method=pass_all 5682 ;; 5683 5684 sysv4 | sysv4.3*) 5685 case $host_vendor in 5686 motorola) 5687 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]' 5688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5689 ;; 5690 ncr) 5691 lt_cv_deplibs_check_method=pass_all 5692 ;; 5693 sequent) 5694 lt_cv_file_magic_cmd='/bin/file' 5695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5696 ;; 5697 sni) 5698 lt_cv_file_magic_cmd='/bin/file' 5699 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5700 lt_cv_file_magic_test_file=/lib/libc.so 5701 ;; 5702 siemens) 5703 lt_cv_deplibs_check_method=pass_all 5704 ;; 5705 pc) 5706 lt_cv_deplibs_check_method=pass_all 5707 ;; 5708 esac 5709 ;; 5710 5711 tpf*) 5712 lt_cv_deplibs_check_method=pass_all 5713 ;; 5714 esac 5715 5716 fi 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5718 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5719 5720 file_magic_glob= 5721 want_nocaseglob=no 5722 if test "$build" = "$host"; then 5723 case $host_os in 5724 mingw* | pw32*) 5725 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5726 want_nocaseglob=yes 5727 else 5728 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5729 fi 5730 ;; 5731 esac 5732 fi 5733 5734 file_magic_cmd=$lt_cv_file_magic_cmd 5735 deplibs_check_method=$lt_cv_deplibs_check_method 5736 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 if test -n "$ac_tool_prefix"; then 5760 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5761 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5763 $as_echo_n "checking for $ac_word... " >&6; } 5764 if ${ac_cv_prog_DLLTOOL+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766 else 5767 if test -n "$DLLTOOL"; then 5768 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5769 else 5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5771 for as_dir in $PATH 5772 do 5773 IFS=$as_save_IFS 5774 test -z "$as_dir" && as_dir=. 5775 for ac_exec_ext in '' $ac_executable_extensions; do 5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5777 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5779 break 2 5780 fi 5781 done 5782 done 5783 IFS=$as_save_IFS 5784 5785 fi 5786 fi 5787 DLLTOOL=$ac_cv_prog_DLLTOOL 5788 if test -n "$DLLTOOL"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5790 $as_echo "$DLLTOOL" >&6; } 5791 else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793 $as_echo "no" >&6; } 5794 fi 5795 5796 5797 fi 5798 if test -z "$ac_cv_prog_DLLTOOL"; then 5799 ac_ct_DLLTOOL=$DLLTOOL 5800 # Extract the first word of "dlltool", so it can be a program name with args. 5801 set dummy dlltool; ac_word=$2 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5803 $as_echo_n "checking for $ac_word... " >&6; } 5804 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806 else 5807 if test -n "$ac_ct_DLLTOOL"; then 5808 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5809 else 5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811 for as_dir in $PATH 5812 do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5817 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821 done 5822 done 5823 IFS=$as_save_IFS 5824 5825 fi 5826 fi 5827 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5828 if test -n "$ac_ct_DLLTOOL"; then 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5830 $as_echo "$ac_ct_DLLTOOL" >&6; } 5831 else 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5833 $as_echo "no" >&6; } 5834 fi 5835 5836 if test "x$ac_ct_DLLTOOL" = x; then 5837 DLLTOOL="false" 5838 else 5839 case $cross_compiling:$ac_tool_warned in 5840 yes:) 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5843 ac_tool_warned=yes ;; 5844 esac 5845 DLLTOOL=$ac_ct_DLLTOOL 5846 fi 5847 else 5848 DLLTOOL="$ac_cv_prog_DLLTOOL" 5849 fi 5850 5851 test -z "$DLLTOOL" && DLLTOOL=dlltool 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5863 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5864 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866 else 5867 lt_cv_sharedlib_from_linklib_cmd='unknown' 5868 5869 case $host_os in 5870 cygwin* | mingw* | pw32* | cegcc*) 5871 # two different shell functions defined in ltmain.sh 5872 # decide which to use based on capabilities of $DLLTOOL 5873 case `$DLLTOOL --help 2>&1` in 5874 *--identify-strict*) 5875 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5876 ;; 5877 *) 5878 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5879 ;; 5880 esac 5881 ;; 5882 *) 5883 # fallback: assume linklib IS sharedlib 5884 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5885 ;; 5886 esac 5887 5888 fi 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5890 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5891 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5892 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5893 5894 5895 5896 5897 5898 5899 5900 5901 if test -n "$ac_tool_prefix"; then 5902 for ac_prog in ar 5903 do 5904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5907 $as_echo_n "checking for $ac_word... " >&6; } 5908 if ${ac_cv_prog_AR+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910 else 5911 if test -n "$AR"; then 5912 ac_cv_prog_AR="$AR" # Let the user override the test. 5913 else 5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915 for as_dir in $PATH 5916 do 5917 IFS=$as_save_IFS 5918 test -z "$as_dir" && as_dir=. 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5921 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925 done 5926 done 5927 IFS=$as_save_IFS 5928 5929 fi 5930 fi 5931 AR=$ac_cv_prog_AR 5932 if test -n "$AR"; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5934 $as_echo "$AR" >&6; } 5935 else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5937 $as_echo "no" >&6; } 5938 fi 5939 5940 5941 test -n "$AR" && break 5942 done 5943 fi 5944 if test -z "$AR"; then 5945 ac_ct_AR=$AR 5946 for ac_prog in ar 5947 do 5948 # Extract the first word of "$ac_prog", so it can be a program name with args. 5949 set dummy $ac_prog; ac_word=$2 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5951 $as_echo_n "checking for $ac_word... " >&6; } 5952 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954 else 5955 if test -n "$ac_ct_AR"; then 5956 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5957 else 5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959 for as_dir in $PATH 5960 do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5965 ac_cv_prog_ac_ct_AR="$ac_prog" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969 done 5970 done 5971 IFS=$as_save_IFS 5972 5973 fi 5974 fi 5975 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5976 if test -n "$ac_ct_AR"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5978 $as_echo "$ac_ct_AR" >&6; } 5979 else 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5981 $as_echo "no" >&6; } 5982 fi 5983 5984 5985 test -n "$ac_ct_AR" && break 5986 done 5987 5988 if test "x$ac_ct_AR" = x; then 5989 AR="false" 5990 else 5991 case $cross_compiling:$ac_tool_warned in 5992 yes:) 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5995 ac_tool_warned=yes ;; 5996 esac 5997 AR=$ac_ct_AR 5998 fi 5999 fi 6000 6001 : ${AR=ar} 6002 : ${AR_FLAGS=cru} 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6015 $as_echo_n "checking for archiver @FILE support... " >&6; } 6016 if ${lt_cv_ar_at_file+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018 else 6019 lt_cv_ar_at_file=no 6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6021 /* end confdefs.h. */ 6022 6023 int 6024 main () 6025 { 6026 6027 ; 6028 return 0; 6029 } 6030 _ACEOF 6031 if ac_fn_cxx_try_compile "$LINENO"; then : 6032 echo conftest.$ac_objext > conftest.lst 6033 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6035 (eval $lt_ar_try) 2>&5 6036 ac_status=$? 6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6038 test $ac_status = 0; } 6039 if test "$ac_status" -eq 0; then 6040 # Ensure the archiver fails upon bogus file names. 6041 rm -f conftest.$ac_objext libconftest.a 6042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6043 (eval $lt_ar_try) 2>&5 6044 ac_status=$? 6045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6046 test $ac_status = 0; } 6047 if test "$ac_status" -ne 0; then 6048 lt_cv_ar_at_file=@ 6049 fi 6050 fi 6051 rm -f conftest.* libconftest.a 6052 6053 fi 6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6055 6056 fi 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6058 $as_echo "$lt_cv_ar_at_file" >&6; } 6059 6060 if test "x$lt_cv_ar_at_file" = xno; then 6061 archiver_list_spec= 6062 else 6063 archiver_list_spec=$lt_cv_ar_at_file 6064 fi 6065 6066 6067 6068 6069 6070 6071 6072 if test -n "$ac_tool_prefix"; then 6073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6074 set dummy ${ac_tool_prefix}strip; ac_word=$2 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6076 $as_echo_n "checking for $ac_word... " >&6; } 6077 if ${ac_cv_prog_STRIP+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079 else 6080 if test -n "$STRIP"; then 6081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6082 else 6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6084 for as_dir in $PATH 6085 do 6086 IFS=$as_save_IFS 6087 test -z "$as_dir" && as_dir=. 6088 for ac_exec_ext in '' $ac_executable_extensions; do 6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6090 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6092 break 2 6093 fi 6094 done 6095 done 6096 IFS=$as_save_IFS 6097 6098 fi 6099 fi 6100 STRIP=$ac_cv_prog_STRIP 6101 if test -n "$STRIP"; then 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6103 $as_echo "$STRIP" >&6; } 6104 else 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6106 $as_echo "no" >&6; } 6107 fi 6108 6109 6110 fi 6111 if test -z "$ac_cv_prog_STRIP"; then 6112 ac_ct_STRIP=$STRIP 6113 # Extract the first word of "strip", so it can be a program name with args. 6114 set dummy strip; ac_word=$2 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6116 $as_echo_n "checking for $ac_word... " >&6; } 6117 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119 else 6120 if test -n "$ac_ct_STRIP"; then 6121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6122 else 6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124 for as_dir in $PATH 6125 do 6126 IFS=$as_save_IFS 6127 test -z "$as_dir" && as_dir=. 6128 for ac_exec_ext in '' $ac_executable_extensions; do 6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6130 ac_cv_prog_ac_ct_STRIP="strip" 6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6132 break 2 6133 fi 6134 done 6135 done 6136 IFS=$as_save_IFS 6137 6138 fi 6139 fi 6140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6141 if test -n "$ac_ct_STRIP"; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6143 $as_echo "$ac_ct_STRIP" >&6; } 6144 else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146 $as_echo "no" >&6; } 6147 fi 6148 6149 if test "x$ac_ct_STRIP" = x; then 6150 STRIP=":" 6151 else 6152 case $cross_compiling:$ac_tool_warned in 6153 yes:) 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6156 ac_tool_warned=yes ;; 6157 esac 6158 STRIP=$ac_ct_STRIP 6159 fi 6160 else 6161 STRIP="$ac_cv_prog_STRIP" 6162 fi 6163 6164 test -z "$STRIP" && STRIP=: 6165 6166 6167 6168 6169 6170 6171 if test -n "$ac_tool_prefix"; then 6172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6175 $as_echo_n "checking for $ac_word... " >&6; } 6176 if ${ac_cv_prog_RANLIB+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178 else 6179 if test -n "$RANLIB"; then 6180 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6181 else 6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6183 for as_dir in $PATH 6184 do 6185 IFS=$as_save_IFS 6186 test -z "$as_dir" && as_dir=. 6187 for ac_exec_ext in '' $ac_executable_extensions; do 6188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6189 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6191 break 2 6192 fi 6193 done 6194 done 6195 IFS=$as_save_IFS 6196 6197 fi 6198 fi 6199 RANLIB=$ac_cv_prog_RANLIB 6200 if test -n "$RANLIB"; then 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6202 $as_echo "$RANLIB" >&6; } 6203 else 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6205 $as_echo "no" >&6; } 6206 fi 6207 6208 6209 fi 6210 if test -z "$ac_cv_prog_RANLIB"; then 6211 ac_ct_RANLIB=$RANLIB 6212 # Extract the first word of "ranlib", so it can be a program name with args. 6213 set dummy ranlib; ac_word=$2 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6215 $as_echo_n "checking for $ac_word... " >&6; } 6216 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218 else 6219 if test -n "$ac_ct_RANLIB"; then 6220 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6221 else 6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223 for as_dir in $PATH 6224 do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_exec_ext in '' $ac_executable_extensions; do 6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6229 ac_cv_prog_ac_ct_RANLIB="ranlib" 6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6231 break 2 6232 fi 6233 done 6234 done 6235 IFS=$as_save_IFS 6236 6237 fi 6238 fi 6239 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6240 if test -n "$ac_ct_RANLIB"; then 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6242 $as_echo "$ac_ct_RANLIB" >&6; } 6243 else 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6245 $as_echo "no" >&6; } 6246 fi 6247 6248 if test "x$ac_ct_RANLIB" = x; then 6249 RANLIB=":" 6250 else 6251 case $cross_compiling:$ac_tool_warned in 6252 yes:) 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6255 ac_tool_warned=yes ;; 6256 esac 6257 RANLIB=$ac_ct_RANLIB 6258 fi 6259 else 6260 RANLIB="$ac_cv_prog_RANLIB" 6261 fi 6262 6263 test -z "$RANLIB" && RANLIB=: 6264 6265 6266 6267 6268 6269 6270 # Determine commands to create old-style static archives. 6271 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6272 old_postinstall_cmds='chmod 644 $oldlib' 6273 old_postuninstall_cmds= 6274 6275 if test -n "$RANLIB"; then 6276 case $host_os in 6277 openbsd*) 6278 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6279 ;; 6280 *) 6281 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6282 ;; 6283 esac 6284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6285 fi 6286 6287 case $host_os in 6288 darwin*) 6289 lock_old_archive_extraction=yes ;; 6290 *) 6291 lock_old_archive_extraction=no ;; 6292 esac 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 # If no C compiler was specified, use CC. 6333 LTCC=${LTCC-"$CC"} 6334 6335 # If no C compiler flags were specified, use CFLAGS. 6336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6337 6338 # Allow CC to be a program name with arguments. 6339 compiler=$CC 6340 6341 6342 # Check for command to grab the raw symbol name followed by C symbol from nm. 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6344 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6345 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347 else 6348 6349 # These are sane defaults that work on at least a few old systems. 6350 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6351 6352 # Character class describing NM global symbol codes. 6353 symcode='[BCDEGRST]' 6354 6355 # Regexp to match symbols that can be accessed directly from C. 6356 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6357 6358 # Define system-specific variables. 6359 case $host_os in 6360 aix*) 6361 symcode='[BCDT]' 6362 ;; 6363 cygwin* | mingw* | pw32* | cegcc*) 6364 symcode='[ABCDGISTW]' 6365 ;; 6366 hpux*) 6367 if test "$host_cpu" = ia64; then 6368 symcode='[ABCDEGRST]' 6369 fi 6370 ;; 6371 irix* | nonstopux*) 6372 symcode='[BCDEGRST]' 6373 ;; 6374 osf*) 6375 symcode='[BCDEGQRST]' 6376 ;; 6377 solaris*) 6378 symcode='[BDRT]' 6379 ;; 6380 sco3.2v5*) 6381 symcode='[DT]' 6382 ;; 6383 sysv4.2uw2*) 6384 symcode='[DT]' 6385 ;; 6386 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6387 symcode='[ABDT]' 6388 ;; 6389 sysv4) 6390 symcode='[DFNSTU]' 6391 ;; 6392 esac 6393 6394 # If we're using GNU nm, then use its standard symbol codes. 6395 case `$NM -V 2>&1` in 6396 *GNU* | *'with BFD'*) 6397 symcode='[ABCDGIRSTW]' ;; 6398 esac 6399 6400 # Transform an extracted symbol line into a proper C declaration. 6401 # Some systems (esp. on ia64) link data and code symbols differently, 6402 # so use this general approach. 6403 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6404 6405 # Transform an extracted symbol line into symbol name and symbol address 6406 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6407 lt_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'" 6408 6409 # Handle CRLF in mingw tool chain 6410 opt_cr= 6411 case $build_os in 6412 mingw*) 6413 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6414 ;; 6415 esac 6416 6417 # Try without a prefix underscore, then with it. 6418 for ac_symprfx in "" "_"; do 6419 6420 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6421 symxfrm="\\1 $ac_symprfx\\2 \\2" 6422 6423 # Write the raw and C identifiers. 6424 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6425 # Fake it for dumpbin and say T for any non-static function 6426 # and D for any global variable. 6427 # Also find C++ and __fastcall symbols from MSVC++, 6428 # which start with @ or ?. 6429 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6430 " {last_section=section; section=\$ 3};"\ 6431 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6432 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6433 " \$ 0!~/External *\|/{next};"\ 6434 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6435 " {if(hide[section]) next};"\ 6436 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6437 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6438 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6439 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6440 " ' prfx=^$ac_symprfx" 6441 else 6442 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6443 fi 6444 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6445 6446 # Check to see that the pipe works correctly. 6447 pipe_works=no 6448 6449 rm -f conftest* 6450 cat > conftest.$ac_ext <<_LT_EOF 6451 #ifdef __cplusplus 6452 extern "C" { 6453 #endif 6454 char nm_test_var; 6455 void nm_test_func(void); 6456 void nm_test_func(void){} 6457 #ifdef __cplusplus 6458 } 6459 #endif 6460 int main(){nm_test_var='a';nm_test_func();return(0);} 6461 _LT_EOF 6462 6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6464 (eval $ac_compile) 2>&5 6465 ac_status=$? 6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6467 test $ac_status = 0; }; then 6468 # Now try to grab the symbols. 6469 nlist=conftest.nm 6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6472 ac_status=$? 6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6474 test $ac_status = 0; } && test -s "$nlist"; then 6475 # Try sorting and uniquifying the output. 6476 if sort "$nlist" | uniq > "$nlist"T; then 6477 mv -f "$nlist"T "$nlist" 6478 else 6479 rm -f "$nlist"T 6480 fi 6481 6482 # Make sure that we snagged all the symbols we need. 6483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6485 cat <<_LT_EOF > conftest.$ac_ext 6486 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6487 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6488 /* DATA imports from DLLs on WIN32 con't be const, because runtime 6489 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6490 # define LT_DLSYM_CONST 6491 #elif defined(__osf__) 6492 /* This system does not cope well with relocations in const data. */ 6493 # define LT_DLSYM_CONST 6494 #else 6495 # define LT_DLSYM_CONST const 6496 #endif 6497 6498 #ifdef __cplusplus 6499 extern "C" { 6500 #endif 6501 6502 _LT_EOF 6503 # Now generate the symbol file. 6504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6505 6506 cat <<_LT_EOF >> conftest.$ac_ext 6507 6508 /* The mapping between symbol names and symbols. */ 6509 LT_DLSYM_CONST struct { 6510 const char *name; 6511 void *address; 6512 } 6513 lt__PROGRAM__LTX_preloaded_symbols[] = 6514 { 6515 { "@PROGRAM@", (void *) 0 }, 6516 _LT_EOF 6517 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6518 cat <<\_LT_EOF >> conftest.$ac_ext 6519 {0, (void *) 0} 6520 }; 6521 6522 /* This works around a problem in FreeBSD linker */ 6523 #ifdef FREEBSD_WORKAROUND 6524 static const void *lt_preloaded_setup() { 6525 return lt__PROGRAM__LTX_preloaded_symbols; 6526 } 6527 #endif 6528 6529 #ifdef __cplusplus 6530 } 6531 #endif 6532 _LT_EOF 6533 # Now try linking the two files. 6534 mv conftest.$ac_objext conftstm.$ac_objext 6535 lt_globsym_save_LIBS=$LIBS 6536 lt_globsym_save_CFLAGS=$CFLAGS 6537 LIBS="conftstm.$ac_objext" 6538 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6540 (eval $ac_link) 2>&5 6541 ac_status=$? 6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6543 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6544 pipe_works=yes 6545 fi 6546 LIBS=$lt_globsym_save_LIBS 6547 CFLAGS=$lt_globsym_save_CFLAGS 6548 else 6549 echo "cannot find nm_test_func in $nlist" >&5 6550 fi 6551 else 6552 echo "cannot find nm_test_var in $nlist" >&5 6553 fi 6554 else 6555 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6556 fi 6557 else 6558 echo "$progname: failed program was:" >&5 6559 cat conftest.$ac_ext >&5 6560 fi 6561 rm -rf conftest* conftst* 6562 6563 # Do not use the global_symbol_pipe unless it works. 6564 if test "$pipe_works" = yes; then 6565 break 6566 else 6567 lt_cv_sys_global_symbol_pipe= 6568 fi 6569 done 6570 6571 fi 6572 6573 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6574 lt_cv_sys_global_symbol_to_cdecl= 6575 fi 6576 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6578 $as_echo "failed" >&6; } 6579 else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6581 $as_echo "ok" >&6; } 6582 fi 6583 6584 # Response file support. 6585 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6586 nm_file_list_spec='@' 6587 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6588 nm_file_list_spec='@' 6589 fi 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6618 $as_echo_n "checking for sysroot... " >&6; } 6619 6620 # Check whether --with-sysroot was given. 6621 if test "${with_sysroot+set}" = set; then : 6622 withval=$with_sysroot; 6623 else 6624 with_sysroot=no 6625 fi 6626 6627 6628 lt_sysroot= 6629 case ${with_sysroot} in #( 6630 yes) 6631 if test "$GCC" = yes; then 6632 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6633 fi 6634 ;; #( 6635 /*) 6636 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6637 ;; #( 6638 no|'') 6639 ;; #( 6640 *) 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6642 $as_echo "${with_sysroot}" >&6; } 6643 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6644 ;; 6645 esac 6646 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6648 $as_echo "${lt_sysroot:-no}" >&6; } 6649 6650 6651 6652 6653 6654 6655 # Check whether --enable-libtool-lock was given. 6656 if test "${enable_libtool_lock+set}" = set; then : 6657 enableval=$enable_libtool_lock; 6658 fi 6659 6660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6661 6662 # Some flags need to be propagated to the compiler or linker for good 6663 # libtool support. 6664 case $host in 6665 ia64-*-hpux*) 6666 # Find out which ABI we are using. 6667 echo 'int i;' > conftest.$ac_ext 6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6669 (eval $ac_compile) 2>&5 6670 ac_status=$? 6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6672 test $ac_status = 0; }; then 6673 case `/usr/bin/file conftest.$ac_objext` in 6674 *ELF-32*) 6675 HPUX_IA64_MODE="32" 6676 ;; 6677 *ELF-64*) 6678 HPUX_IA64_MODE="64" 6679 ;; 6680 esac 6681 fi 6682 rm -rf conftest* 6683 ;; 6684 *-*-irix6*) 6685 # Find out which ABI we are using. 6686 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6688 (eval $ac_compile) 2>&5 6689 ac_status=$? 6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6691 test $ac_status = 0; }; then 6692 if test "$lt_cv_prog_gnu_ld" = yes; then 6693 case `/usr/bin/file conftest.$ac_objext` in 6694 *32-bit*) 6695 LD="${LD-ld} -melf32bsmip" 6696 ;; 6697 *N32*) 6698 LD="${LD-ld} -melf32bmipn32" 6699 ;; 6700 *64-bit*) 6701 LD="${LD-ld} -melf64bmip" 6702 ;; 6703 esac 6704 else 6705 case `/usr/bin/file conftest.$ac_objext` in 6706 *32-bit*) 6707 LD="${LD-ld} -32" 6708 ;; 6709 *N32*) 6710 LD="${LD-ld} -n32" 6711 ;; 6712 *64-bit*) 6713 LD="${LD-ld} -64" 6714 ;; 6715 esac 6716 fi 6717 fi 6718 rm -rf conftest* 6719 ;; 6720 6721 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6722 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6723 # Find out which ABI we are using. 6724 echo 'int i;' > conftest.$ac_ext 6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6726 (eval $ac_compile) 2>&5 6727 ac_status=$? 6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6729 test $ac_status = 0; }; then 6730 case `/usr/bin/file conftest.o` in 6731 *32-bit*) 6732 case $host in 6733 x86_64-*kfreebsd*-gnu) 6734 LD="${LD-ld} -m elf_i386_fbsd" 6735 ;; 6736 x86_64-*linux*) 6737 case `/usr/bin/file conftest.o` in 6738 *x86-64*) 6739 LD="${LD-ld} -m elf32_x86_64" 6740 ;; 6741 *) 6742 LD="${LD-ld} -m elf_i386" 6743 ;; 6744 esac 6745 ;; 6746 powerpc64le-*) 6747 LD="${LD-ld} -m elf32lppclinux" 6748 ;; 6749 powerpc64-*) 6750 LD="${LD-ld} -m elf32ppclinux" 6751 ;; 6752 s390x-*linux*) 6753 LD="${LD-ld} -m elf_s390" 6754 ;; 6755 sparc64-*linux*) 6756 LD="${LD-ld} -m elf32_sparc" 6757 ;; 6758 esac 6759 ;; 6760 *64-bit*) 6761 case $host in 6762 x86_64-*kfreebsd*-gnu) 6763 LD="${LD-ld} -m elf_x86_64_fbsd" 6764 ;; 6765 x86_64-*linux*) 6766 LD="${LD-ld} -m elf_x86_64" 6767 ;; 6768 powerpcle-*) 6769 LD="${LD-ld} -m elf64lppc" 6770 ;; 6771 powerpc-*) 6772 LD="${LD-ld} -m elf64ppc" 6773 ;; 6774 s390*-*linux*|s390*-*tpf*) 6775 LD="${LD-ld} -m elf64_s390" 6776 ;; 6777 sparc*-*linux*) 6778 LD="${LD-ld} -m elf64_sparc" 6779 ;; 6780 esac 6781 ;; 6782 esac 6783 fi 6784 rm -rf conftest* 6785 ;; 6786 6787 *-*-sco3.2v5*) 6788 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6789 SAVE_CFLAGS="$CFLAGS" 6790 CFLAGS="$CFLAGS -belf" 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6792 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6793 if ${lt_cv_cc_needs_belf+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795 else 6796 ac_ext=c 6797 ac_cpp='$CPP $CPPFLAGS' 6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6801 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803 /* end confdefs.h. */ 6804 6805 int 6806 main () 6807 { 6808 6809 ; 6810 return 0; 6811 } 6812 _ACEOF 6813 if ac_fn_c_try_link "$LINENO"; then : 6814 lt_cv_cc_needs_belf=yes 6815 else 6816 lt_cv_cc_needs_belf=no 6817 fi 6818 rm -f core conftest.err conftest.$ac_objext \ 6819 conftest$ac_exeext conftest.$ac_ext 6820 ac_ext=c 6821 ac_cpp='$CPP $CPPFLAGS' 6822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6824 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6825 6826 fi 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6828 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6829 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6830 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6831 CFLAGS="$SAVE_CFLAGS" 6832 fi 6833 ;; 6834 *-*solaris*) 6835 # Find out which ABI we are using. 6836 echo 'int i;' > conftest.$ac_ext 6837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6838 (eval $ac_compile) 2>&5 6839 ac_status=$? 6840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6841 test $ac_status = 0; }; then 6842 case `/usr/bin/file conftest.o` in 6843 *64-bit*) 6844 case $lt_cv_prog_gnu_ld in 6845 yes*) 6846 case $host in 6847 i?86-*-solaris*) 6848 LD="${LD-ld} -m elf_x86_64" 6849 ;; 6850 sparc*-*-solaris*) 6851 LD="${LD-ld} -m elf64_sparc" 6852 ;; 6853 esac 6854 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6855 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6856 LD="${LD-ld}_sol2" 6857 fi 6858 ;; 6859 *) 6860 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6861 LD="${LD-ld} -64" 6862 fi 6863 ;; 6864 esac 6865 ;; 6866 esac 6867 fi 6868 rm -rf conftest* 6869 ;; 6870 esac 6871 6872 need_locks="$enable_libtool_lock" 6873 6874 if test -n "$ac_tool_prefix"; then 6875 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6876 set dummy ${ac_tool_prefix}mt; ac_word=$2 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6878 $as_echo_n "checking for $ac_word... " >&6; } 6879 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881 else 6882 if test -n "$MANIFEST_TOOL"; then 6883 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6884 else 6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6886 for as_dir in $PATH 6887 do 6888 IFS=$as_save_IFS 6889 test -z "$as_dir" && as_dir=. 6890 for ac_exec_ext in '' $ac_executable_extensions; do 6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6892 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6894 break 2 6895 fi 6896 done 6897 done 6898 IFS=$as_save_IFS 6899 6900 fi 6901 fi 6902 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6903 if test -n "$MANIFEST_TOOL"; then 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6905 $as_echo "$MANIFEST_TOOL" >&6; } 6906 else 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6908 $as_echo "no" >&6; } 6909 fi 6910 6911 6912 fi 6913 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6914 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6915 # Extract the first word of "mt", so it can be a program name with args. 6916 set dummy mt; ac_word=$2 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6918 $as_echo_n "checking for $ac_word... " >&6; } 6919 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921 else 6922 if test -n "$ac_ct_MANIFEST_TOOL"; then 6923 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6924 else 6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6926 for as_dir in $PATH 6927 do 6928 IFS=$as_save_IFS 6929 test -z "$as_dir" && as_dir=. 6930 for ac_exec_ext in '' $ac_executable_extensions; do 6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6932 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6934 break 2 6935 fi 6936 done 6937 done 6938 IFS=$as_save_IFS 6939 6940 fi 6941 fi 6942 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6943 if test -n "$ac_ct_MANIFEST_TOOL"; then 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6945 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6946 else 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6948 $as_echo "no" >&6; } 6949 fi 6950 6951 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6952 MANIFEST_TOOL=":" 6953 else 6954 case $cross_compiling:$ac_tool_warned in 6955 yes:) 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6958 ac_tool_warned=yes ;; 6959 esac 6960 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6961 fi 6962 else 6963 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6964 fi 6965 6966 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6968 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6969 if ${lt_cv_path_mainfest_tool+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971 else 6972 lt_cv_path_mainfest_tool=no 6973 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6974 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6975 cat conftest.err >&5 6976 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6977 lt_cv_path_mainfest_tool=yes 6978 fi 6979 rm -f conftest* 6980 fi 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6982 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6983 if test "x$lt_cv_path_mainfest_tool" != xyes; then 6984 MANIFEST_TOOL=: 6985 fi 6986 6987 6988 6989 6990 6991 6992 case $host_os in 6993 rhapsody* | darwin*) 6994 if test -n "$ac_tool_prefix"; then 6995 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6996 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6998 $as_echo_n "checking for $ac_word... " >&6; } 6999 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001 else 7002 if test -n "$DSYMUTIL"; then 7003 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7004 else 7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7006 for as_dir in $PATH 7007 do 7008 IFS=$as_save_IFS 7009 test -z "$as_dir" && as_dir=. 7010 for ac_exec_ext in '' $ac_executable_extensions; do 7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7012 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7014 break 2 7015 fi 7016 done 7017 done 7018 IFS=$as_save_IFS 7019 7020 fi 7021 fi 7022 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7023 if test -n "$DSYMUTIL"; then 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7025 $as_echo "$DSYMUTIL" >&6; } 7026 else 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7028 $as_echo "no" >&6; } 7029 fi 7030 7031 7032 fi 7033 if test -z "$ac_cv_prog_DSYMUTIL"; then 7034 ac_ct_DSYMUTIL=$DSYMUTIL 7035 # Extract the first word of "dsymutil", so it can be a program name with args. 7036 set dummy dsymutil; ac_word=$2 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7038 $as_echo_n "checking for $ac_word... " >&6; } 7039 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041 else 7042 if test -n "$ac_ct_DSYMUTIL"; then 7043 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7044 else 7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046 for as_dir in $PATH 7047 do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7052 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056 done 7057 done 7058 IFS=$as_save_IFS 7059 7060 fi 7061 fi 7062 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7063 if test -n "$ac_ct_DSYMUTIL"; then 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7065 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7066 else 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7068 $as_echo "no" >&6; } 7069 fi 7070 7071 if test "x$ac_ct_DSYMUTIL" = x; then 7072 DSYMUTIL=":" 7073 else 7074 case $cross_compiling:$ac_tool_warned in 7075 yes:) 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7078 ac_tool_warned=yes ;; 7079 esac 7080 DSYMUTIL=$ac_ct_DSYMUTIL 7081 fi 7082 else 7083 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7084 fi 7085 7086 if test -n "$ac_tool_prefix"; then 7087 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7088 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7090 $as_echo_n "checking for $ac_word... " >&6; } 7091 if ${ac_cv_prog_NMEDIT+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093 else 7094 if test -n "$NMEDIT"; then 7095 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7096 else 7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098 for as_dir in $PATH 7099 do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108 done 7109 done 7110 IFS=$as_save_IFS 7111 7112 fi 7113 fi 7114 NMEDIT=$ac_cv_prog_NMEDIT 7115 if test -n "$NMEDIT"; then 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7117 $as_echo "$NMEDIT" >&6; } 7118 else 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7120 $as_echo "no" >&6; } 7121 fi 7122 7123 7124 fi 7125 if test -z "$ac_cv_prog_NMEDIT"; then 7126 ac_ct_NMEDIT=$NMEDIT 7127 # Extract the first word of "nmedit", so it can be a program name with args. 7128 set dummy nmedit; ac_word=$2 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130 $as_echo_n "checking for $ac_word... " >&6; } 7131 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133 else 7134 if test -n "$ac_ct_NMEDIT"; then 7135 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7136 else 7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138 for as_dir in $PATH 7139 do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148 done 7149 done 7150 IFS=$as_save_IFS 7151 7152 fi 7153 fi 7154 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7155 if test -n "$ac_ct_NMEDIT"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7157 $as_echo "$ac_ct_NMEDIT" >&6; } 7158 else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160 $as_echo "no" >&6; } 7161 fi 7162 7163 if test "x$ac_ct_NMEDIT" = x; then 7164 NMEDIT=":" 7165 else 7166 case $cross_compiling:$ac_tool_warned in 7167 yes:) 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7170 ac_tool_warned=yes ;; 7171 esac 7172 NMEDIT=$ac_ct_NMEDIT 7173 fi 7174 else 7175 NMEDIT="$ac_cv_prog_NMEDIT" 7176 fi 7177 7178 if test -n "$ac_tool_prefix"; then 7179 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7180 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182 $as_echo_n "checking for $ac_word... " >&6; } 7183 if ${ac_cv_prog_LIPO+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185 else 7186 if test -n "$LIPO"; then 7187 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7188 else 7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190 for as_dir in $PATH 7191 do 7192 IFS=$as_save_IFS 7193 test -z "$as_dir" && as_dir=. 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7196 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7198 break 2 7199 fi 7200 done 7201 done 7202 IFS=$as_save_IFS 7203 7204 fi 7205 fi 7206 LIPO=$ac_cv_prog_LIPO 7207 if test -n "$LIPO"; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7209 $as_echo "$LIPO" >&6; } 7210 else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212 $as_echo "no" >&6; } 7213 fi 7214 7215 7216 fi 7217 if test -z "$ac_cv_prog_LIPO"; then 7218 ac_ct_LIPO=$LIPO 7219 # Extract the first word of "lipo", so it can be a program name with args. 7220 set dummy lipo; ac_word=$2 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7222 $as_echo_n "checking for $ac_word... " >&6; } 7223 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225 else 7226 if test -n "$ac_ct_LIPO"; then 7227 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7228 else 7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230 for as_dir in $PATH 7231 do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7236 ac_cv_prog_ac_ct_LIPO="lipo" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240 done 7241 done 7242 IFS=$as_save_IFS 7243 7244 fi 7245 fi 7246 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7247 if test -n "$ac_ct_LIPO"; then 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7249 $as_echo "$ac_ct_LIPO" >&6; } 7250 else 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252 $as_echo "no" >&6; } 7253 fi 7254 7255 if test "x$ac_ct_LIPO" = x; then 7256 LIPO=":" 7257 else 7258 case $cross_compiling:$ac_tool_warned in 7259 yes:) 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7262 ac_tool_warned=yes ;; 7263 esac 7264 LIPO=$ac_ct_LIPO 7265 fi 7266 else 7267 LIPO="$ac_cv_prog_LIPO" 7268 fi 7269 7270 if test -n "$ac_tool_prefix"; then 7271 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7272 set dummy ${ac_tool_prefix}otool; ac_word=$2 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7274 $as_echo_n "checking for $ac_word... " >&6; } 7275 if ${ac_cv_prog_OTOOL+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277 else 7278 if test -n "$OTOOL"; then 7279 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7280 else 7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282 for as_dir in $PATH 7283 do 7284 IFS=$as_save_IFS 7285 test -z "$as_dir" && as_dir=. 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7288 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7290 break 2 7291 fi 7292 done 7293 done 7294 IFS=$as_save_IFS 7295 7296 fi 7297 fi 7298 OTOOL=$ac_cv_prog_OTOOL 7299 if test -n "$OTOOL"; then 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7301 $as_echo "$OTOOL" >&6; } 7302 else 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7304 $as_echo "no" >&6; } 7305 fi 7306 7307 7308 fi 7309 if test -z "$ac_cv_prog_OTOOL"; then 7310 ac_ct_OTOOL=$OTOOL 7311 # Extract the first word of "otool", so it can be a program name with args. 7312 set dummy otool; ac_word=$2 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7314 $as_echo_n "checking for $ac_word... " >&6; } 7315 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317 else 7318 if test -n "$ac_ct_OTOOL"; then 7319 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7320 else 7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7322 for as_dir in $PATH 7323 do 7324 IFS=$as_save_IFS 7325 test -z "$as_dir" && as_dir=. 7326 for ac_exec_ext in '' $ac_executable_extensions; do 7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7328 ac_cv_prog_ac_ct_OTOOL="otool" 7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7330 break 2 7331 fi 7332 done 7333 done 7334 IFS=$as_save_IFS 7335 7336 fi 7337 fi 7338 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7339 if test -n "$ac_ct_OTOOL"; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7341 $as_echo "$ac_ct_OTOOL" >&6; } 7342 else 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344 $as_echo "no" >&6; } 7345 fi 7346 7347 if test "x$ac_ct_OTOOL" = x; then 7348 OTOOL=":" 7349 else 7350 case $cross_compiling:$ac_tool_warned in 7351 yes:) 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7354 ac_tool_warned=yes ;; 7355 esac 7356 OTOOL=$ac_ct_OTOOL 7357 fi 7358 else 7359 OTOOL="$ac_cv_prog_OTOOL" 7360 fi 7361 7362 if test -n "$ac_tool_prefix"; then 7363 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7364 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7366 $as_echo_n "checking for $ac_word... " >&6; } 7367 if ${ac_cv_prog_OTOOL64+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369 else 7370 if test -n "$OTOOL64"; then 7371 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7372 else 7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7374 for as_dir in $PATH 7375 do 7376 IFS=$as_save_IFS 7377 test -z "$as_dir" && as_dir=. 7378 for ac_exec_ext in '' $ac_executable_extensions; do 7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7380 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7382 break 2 7383 fi 7384 done 7385 done 7386 IFS=$as_save_IFS 7387 7388 fi 7389 fi 7390 OTOOL64=$ac_cv_prog_OTOOL64 7391 if test -n "$OTOOL64"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7393 $as_echo "$OTOOL64" >&6; } 7394 else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396 $as_echo "no" >&6; } 7397 fi 7398 7399 7400 fi 7401 if test -z "$ac_cv_prog_OTOOL64"; then 7402 ac_ct_OTOOL64=$OTOOL64 7403 # Extract the first word of "otool64", so it can be a program name with args. 7404 set dummy otool64; ac_word=$2 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7406 $as_echo_n "checking for $ac_word... " >&6; } 7407 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7408 $as_echo_n "(cached) " >&6 7409 else 7410 if test -n "$ac_ct_OTOOL64"; then 7411 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7412 else 7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7414 for as_dir in $PATH 7415 do 7416 IFS=$as_save_IFS 7417 test -z "$as_dir" && as_dir=. 7418 for ac_exec_ext in '' $ac_executable_extensions; do 7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7420 ac_cv_prog_ac_ct_OTOOL64="otool64" 7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7422 break 2 7423 fi 7424 done 7425 done 7426 IFS=$as_save_IFS 7427 7428 fi 7429 fi 7430 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7431 if test -n "$ac_ct_OTOOL64"; then 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7433 $as_echo "$ac_ct_OTOOL64" >&6; } 7434 else 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7436 $as_echo "no" >&6; } 7437 fi 7438 7439 if test "x$ac_ct_OTOOL64" = x; then 7440 OTOOL64=":" 7441 else 7442 case $cross_compiling:$ac_tool_warned in 7443 yes:) 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7446 ac_tool_warned=yes ;; 7447 esac 7448 OTOOL64=$ac_ct_OTOOL64 7449 fi 7450 else 7451 OTOOL64="$ac_cv_prog_OTOOL64" 7452 fi 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7481 $as_echo_n "checking for -single_module linker flag... " >&6; } 7482 if ${lt_cv_apple_cc_single_mod+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484 else 7485 lt_cv_apple_cc_single_mod=no 7486 if test -z "${LT_MULTI_MODULE}"; then 7487 # By default we will add the -single_module flag. You can override 7488 # by either setting the environment variable LT_MULTI_MODULE 7489 # non-empty at configure time, or by adding -multi_module to the 7490 # link flags. 7491 rm -rf libconftest.dylib* 7492 echo "int foo(void){return 1;}" > conftest.c 7493 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7494 -dynamiclib -Wl,-single_module conftest.c" >&5 7495 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7496 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7497 _lt_result=$? 7498 # If there is a non-empty error log, and "single_module" 7499 # appears in it, assume the flag caused a linker warning 7500 if test -s conftest.err && $GREP single_module conftest.err; then 7501 cat conftest.err >&5 7502 # Otherwise, if the output was created with a 0 exit code from 7503 # the compiler, it worked. 7504 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7505 lt_cv_apple_cc_single_mod=yes 7506 else 7507 cat conftest.err >&5 7508 fi 7509 rm -rf libconftest.dylib* 7510 rm -f conftest.* 7511 fi 7512 fi 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7514 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7515 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7517 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7518 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520 else 7521 lt_cv_ld_exported_symbols_list=no 7522 save_LDFLAGS=$LDFLAGS 7523 echo "_main" > conftest.sym 7524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526 /* end confdefs.h. */ 7527 7528 int 7529 main () 7530 { 7531 7532 ; 7533 return 0; 7534 } 7535 _ACEOF 7536 if ac_fn_c_try_link "$LINENO"; then : 7537 lt_cv_ld_exported_symbols_list=yes 7538 else 7539 lt_cv_ld_exported_symbols_list=no 7540 fi 7541 rm -f core conftest.err conftest.$ac_objext \ 7542 conftest$ac_exeext conftest.$ac_ext 7543 LDFLAGS="$save_LDFLAGS" 7544 7545 fi 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7548 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7550 $as_echo_n "checking for -force_load linker flag... " >&6; } 7551 if ${lt_cv_ld_force_load+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553 else 7554 lt_cv_ld_force_load=no 7555 cat > conftest.c << _LT_EOF 7556 int forced_loaded() { return 2;} 7557 _LT_EOF 7558 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7559 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7560 echo "$AR cru libconftest.a conftest.o" >&5 7561 $AR cru libconftest.a conftest.o 2>&5 7562 echo "$RANLIB libconftest.a" >&5 7563 $RANLIB libconftest.a 2>&5 7564 cat > conftest.c << _LT_EOF 7565 int main() { return 0;} 7566 _LT_EOF 7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7568 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7569 _lt_result=$? 7570 if test -s conftest.err && $GREP force_load conftest.err; then 7571 cat conftest.err >&5 7572 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7573 lt_cv_ld_force_load=yes 7574 else 7575 cat conftest.err >&5 7576 fi 7577 rm -f conftest.err libconftest.a conftest conftest.c 7578 rm -rf conftest.dSYM 7579 7580 fi 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7582 $as_echo "$lt_cv_ld_force_load" >&6; } 7583 case $host_os in 7584 rhapsody* | darwin1.[012]) 7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7586 darwin1.*) 7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7588 darwin*) # darwin 5.x on 7589 # if running on 10.5 or later, the deployment target defaults 7590 # to the OS version, if on x86, and 10.4, the deployment 7591 # target defaults to 10.4. Don't you love it? 7592 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7593 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7595 10.[012]*) 7596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7597 10.*) 7598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7599 esac 7600 ;; 7601 esac 7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7603 _lt_dar_single_mod='$single_module' 7604 fi 7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7607 else 7608 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7609 fi 7610 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7611 _lt_dsymutil='~$DSYMUTIL $lib || :' 7612 else 7613 _lt_dsymutil= 7614 fi 7615 ;; 7616 esac 7617 7618 ac_ext=c 7619 ac_cpp='$CPP $CPPFLAGS' 7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7624 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7625 # On Suns, sometimes $CPP names a directory. 7626 if test -n "$CPP" && test -d "$CPP"; then 7627 CPP= 7628 fi 7629 if test -z "$CPP"; then 7630 if ${ac_cv_prog_CPP+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632 else 7633 # Double quotes because CPP needs to be expanded 7634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7635 do 7636 ac_preproc_ok=false 7637 for ac_c_preproc_warn_flag in '' yes 7638 do 7639 # Use a header file that comes with gcc, so configuring glibc 7640 # with a fresh cross-compiler works. 7641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7642 # <limits.h> exists even on freestanding compilers. 7643 # On the NeXT, cc -E runs the code through the compiler's parser, 7644 # not just through cpp. "Syntax error" is here to catch this case. 7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646 /* end confdefs.h. */ 7647 #ifdef __STDC__ 7648 # include <limits.h> 7649 #else 7650 # include <assert.h> 7651 #endif 7652 Syntax error 7653 _ACEOF 7654 if ac_fn_c_try_cpp "$LINENO"; then : 7655 7656 else 7657 # Broken: fails on valid input. 7658 continue 7659 fi 7660 rm -f conftest.err conftest.i conftest.$ac_ext 7661 7662 # OK, works on sane cases. Now check whether nonexistent headers 7663 # can be detected and how. 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665 /* end confdefs.h. */ 7666 #include <ac_nonexistent.h> 7667 _ACEOF 7668 if ac_fn_c_try_cpp "$LINENO"; then : 7669 # Broken: success on invalid input. 7670 continue 7671 else 7672 # Passes both tests. 7673 ac_preproc_ok=: 7674 break 7675 fi 7676 rm -f conftest.err conftest.i conftest.$ac_ext 7677 7678 done 7679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7680 rm -f conftest.i conftest.err conftest.$ac_ext 7681 if $ac_preproc_ok; then : 7682 break 7683 fi 7684 7685 done 7686 ac_cv_prog_CPP=$CPP 7687 7688 fi 7689 CPP=$ac_cv_prog_CPP 7690 else 7691 ac_cv_prog_CPP=$CPP 7692 fi 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7694 $as_echo "$CPP" >&6; } 7695 ac_preproc_ok=false 7696 for ac_c_preproc_warn_flag in '' yes 7697 do 7698 # Use a header file that comes with gcc, so configuring glibc 7699 # with a fresh cross-compiler works. 7700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7701 # <limits.h> exists even on freestanding compilers. 7702 # On the NeXT, cc -E runs the code through the compiler's parser, 7703 # not just through cpp. "Syntax error" is here to catch this case. 7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705 /* end confdefs.h. */ 7706 #ifdef __STDC__ 7707 # include <limits.h> 7708 #else 7709 # include <assert.h> 7710 #endif 7711 Syntax error 7712 _ACEOF 7713 if ac_fn_c_try_cpp "$LINENO"; then : 7714 7715 else 7716 # Broken: fails on valid input. 7717 continue 7718 fi 7719 rm -f conftest.err conftest.i conftest.$ac_ext 7720 7721 # OK, works on sane cases. Now check whether nonexistent headers 7722 # can be detected and how. 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724 /* end confdefs.h. */ 7725 #include <ac_nonexistent.h> 7726 _ACEOF 7727 if ac_fn_c_try_cpp "$LINENO"; then : 7728 # Broken: success on invalid input. 7729 continue 7730 else 7731 # Passes both tests. 7732 ac_preproc_ok=: 7733 break 7734 fi 7735 rm -f conftest.err conftest.i conftest.$ac_ext 7736 7737 done 7738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7739 rm -f conftest.i conftest.err conftest.$ac_ext 7740 if $ac_preproc_ok; then : 7741 7742 else 7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7745 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7746 See \`config.log' for more details" "$LINENO" 5; } 7747 fi 7748 7749 ac_ext=c 7750 ac_cpp='$CPP $CPPFLAGS' 7751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7753 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7754 7755 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7757 $as_echo_n "checking for ANSI C header files... " >&6; } 7758 if ${ac_cv_header_stdc+:} false; then : 7759 $as_echo_n "(cached) " >&6 7760 else 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762 /* end confdefs.h. */ 7763 #include <stdlib.h> 7764 #include <stdarg.h> 7765 #include <string.h> 7766 #include <float.h> 7767 7768 int 7769 main () 7770 { 7771 7772 ; 7773 return 0; 7774 } 7775 _ACEOF 7776 if ac_fn_c_try_compile "$LINENO"; then : 7777 ac_cv_header_stdc=yes 7778 else 7779 ac_cv_header_stdc=no 7780 fi 7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7782 7783 if test $ac_cv_header_stdc = yes; then 7784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786 /* end confdefs.h. */ 7787 #include <string.h> 7788 7789 _ACEOF 7790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7791 $EGREP "memchr" >/dev/null 2>&1; then : 7792 7793 else 7794 ac_cv_header_stdc=no 7795 fi 7796 rm -f conftest* 7797 7798 fi 7799 7800 if test $ac_cv_header_stdc = yes; then 7801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803 /* end confdefs.h. */ 7804 #include <stdlib.h> 7805 7806 _ACEOF 7807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7808 $EGREP "free" >/dev/null 2>&1; then : 7809 7810 else 7811 ac_cv_header_stdc=no 7812 fi 7813 rm -f conftest* 7814 7815 fi 7816 7817 if test $ac_cv_header_stdc = yes; then 7818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7819 if test "$cross_compiling" = yes; then : 7820 : 7821 else 7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7823 /* end confdefs.h. */ 7824 #include <ctype.h> 7825 #include <stdlib.h> 7826 #if ((' ' & 0x0FF) == 0x020) 7827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7829 #else 7830 # define ISLOWER(c) \ 7831 (('a' <= (c) && (c) <= 'i') \ 7832 || ('j' <= (c) && (c) <= 'r') \ 7833 || ('s' <= (c) && (c) <= 'z')) 7834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7835 #endif 7836 7837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7838 int 7839 main () 7840 { 7841 int i; 7842 for (i = 0; i < 256; i++) 7843 if (XOR (islower (i), ISLOWER (i)) 7844 || toupper (i) != TOUPPER (i)) 7845 return 2; 7846 return 0; 7847 } 7848 _ACEOF 7849 if ac_fn_c_try_run "$LINENO"; then : 7850 7851 else 7852 ac_cv_header_stdc=no 7853 fi 7854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7855 conftest.$ac_objext conftest.beam conftest.$ac_ext 7856 fi 7857 7858 fi 7859 fi 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7861 $as_echo "$ac_cv_header_stdc" >&6; } 7862 if test $ac_cv_header_stdc = yes; then 7863 7864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7865 7866 fi 7867 7868 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7870 inttypes.h stdint.h unistd.h 7871 do : 7872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7873 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7874 " 7875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7876 cat >>confdefs.h <<_ACEOF 7877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7878 _ACEOF 7879 7880 fi 7881 7882 done 7883 7884 7885 for ac_header in dlfcn.h 7886 do : 7887 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7888 " 7889 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7890 cat >>confdefs.h <<_ACEOF 7891 #define HAVE_DLFCN_H 1 7892 _ACEOF 7893 7894 fi 7895 7896 done 7897 7898 7899 7900 func_stripname_cnf () 7901 { 7902 case ${2} in 7903 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 7904 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 7905 esac 7906 } # func_stripname_cnf 7907 7908 7909 7910 7911 7912 # Set options 7913 7914 7915 7916 enable_dlopen=no 7917 7918 7919 enable_win32_dll=no 7920 7921 7922 # Check whether --enable-shared was given. 7923 if test "${enable_shared+set}" = set; then : 7924 enableval=$enable_shared; p=${PACKAGE-default} 7925 case $enableval in 7926 yes) enable_shared=yes ;; 7927 no) enable_shared=no ;; 7928 *) 7929 enable_shared=no 7930 # Look at the argument we got. We use all the common list separators. 7931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7932 for pkg in $enableval; do 7933 IFS="$lt_save_ifs" 7934 if test "X$pkg" = "X$p"; then 7935 enable_shared=yes 7936 fi 7937 done 7938 IFS="$lt_save_ifs" 7939 ;; 7940 esac 7941 else 7942 enable_shared=yes 7943 fi 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 # Check whether --enable-static was given. 7954 if test "${enable_static+set}" = set; then : 7955 enableval=$enable_static; p=${PACKAGE-default} 7956 case $enableval in 7957 yes) enable_static=yes ;; 7958 no) enable_static=no ;; 7959 *) 7960 enable_static=no 7961 # Look at the argument we got. We use all the common list separators. 7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7963 for pkg in $enableval; do 7964 IFS="$lt_save_ifs" 7965 if test "X$pkg" = "X$p"; then 7966 enable_static=yes 7967 fi 7968 done 7969 IFS="$lt_save_ifs" 7970 ;; 7971 esac 7972 else 7973 enable_static=yes 7974 fi 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 # Check whether --with-pic was given. 7986 if test "${with_pic+set}" = set; then : 7987 withval=$with_pic; lt_p=${PACKAGE-default} 7988 case $withval in 7989 yes|no) pic_mode=$withval ;; 7990 *) 7991 pic_mode=default 7992 # Look at the argument we got. We use all the common list separators. 7993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7994 for lt_pkg in $withval; do 7995 IFS="$lt_save_ifs" 7996 if test "X$lt_pkg" = "X$lt_p"; then 7997 pic_mode=yes 7998 fi 7999 done 8000 IFS="$lt_save_ifs" 8001 ;; 8002 esac 8003 else 8004 pic_mode=default 8005 fi 8006 8007 8008 test -z "$pic_mode" && pic_mode=default 8009 8010 8011 8012 8013 8014 8015 8016 # Check whether --enable-fast-install was given. 8017 if test "${enable_fast_install+set}" = set; then : 8018 enableval=$enable_fast_install; p=${PACKAGE-default} 8019 case $enableval in 8020 yes) enable_fast_install=yes ;; 8021 no) enable_fast_install=no ;; 8022 *) 8023 enable_fast_install=no 8024 # Look at the argument we got. We use all the common list separators. 8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8026 for pkg in $enableval; do 8027 IFS="$lt_save_ifs" 8028 if test "X$pkg" = "X$p"; then 8029 enable_fast_install=yes 8030 fi 8031 done 8032 IFS="$lt_save_ifs" 8033 ;; 8034 esac 8035 else 8036 enable_fast_install=yes 8037 fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 # This can be used to rebuild libtool when needed 8050 LIBTOOL_DEPS="$ltmain" 8051 8052 # Always use our own libtool. 8053 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 test -z "$LN_S" && LN_S="ln -s" 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 if test -n "${ZSH_VERSION+set}" ; then 8100 setopt NO_GLOB_SUBST 8101 fi 8102 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8104 $as_echo_n "checking for objdir... " >&6; } 8105 if ${lt_cv_objdir+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107 else 8108 rm -f .libs 2>/dev/null 8109 mkdir .libs 2>/dev/null 8110 if test -d .libs; then 8111 lt_cv_objdir=.libs 8112 else 8113 # MS-DOS does not allow filenames that begin with a dot. 8114 lt_cv_objdir=_libs 8115 fi 8116 rmdir .libs 2>/dev/null 8117 fi 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8119 $as_echo "$lt_cv_objdir" >&6; } 8120 objdir=$lt_cv_objdir 8121 8122 8123 8124 8125 8126 cat >>confdefs.h <<_ACEOF 8127 #define LT_OBJDIR "$lt_cv_objdir/" 8128 _ACEOF 8129 8130 8131 8132 8133 case $host_os in 8134 aix3*) 8135 # AIX sometimes has problems with the GCC collect2 program. For some 8136 # reason, if we set the COLLECT_NAMES environment variable, the problems 8137 # vanish in a puff of smoke. 8138 if test "X${COLLECT_NAMES+set}" != Xset; then 8139 COLLECT_NAMES= 8140 export COLLECT_NAMES 8141 fi 8142 ;; 8143 esac 8144 8145 # Global variables: 8146 ofile=libtool 8147 can_build_shared=yes 8148 8149 # All known linkers require a `.a' archive for static linking (except MSVC, 8150 # which needs '.lib'). 8151 libext=a 8152 8153 with_gnu_ld="$lt_cv_prog_gnu_ld" 8154 8155 old_CC="$CC" 8156 old_CFLAGS="$CFLAGS" 8157 8158 # Set sane defaults for various variables 8159 test -z "$CC" && CC=cc 8160 test -z "$LTCC" && LTCC=$CC 8161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8162 test -z "$LD" && LD=ld 8163 test -z "$ac_objext" && ac_objext=o 8164 8165 for cc_temp in $compiler""; do 8166 case $cc_temp in 8167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8169 \-*) ;; 8170 *) break;; 8171 esac 8172 done 8173 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8174 8175 8176 # Only perform the check for file, if the check method requires it 8177 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8178 case $deplibs_check_method in 8179 file_magic*) 8180 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8182 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8183 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185 else 8186 case $MAGIC_CMD in 8187 [\\/*] | ?:[\\/]*) 8188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8189 ;; 8190 *) 8191 lt_save_MAGIC_CMD="$MAGIC_CMD" 8192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8193 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8194 for ac_dir in $ac_dummy; do 8195 IFS="$lt_save_ifs" 8196 test -z "$ac_dir" && ac_dir=. 8197 if test -f $ac_dir/${ac_tool_prefix}file; then 8198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8199 if test -n "$file_magic_test_file"; then 8200 case $deplibs_check_method in 8201 "file_magic "*) 8202 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8205 $EGREP "$file_magic_regex" > /dev/null; then 8206 : 8207 else 8208 cat <<_LT_EOF 1>&2 8209 8210 *** Warning: the command libtool uses to detect shared libraries, 8211 *** $file_magic_cmd, produces output that libtool cannot recognize. 8212 *** The result is that libtool may fail to recognize shared libraries 8213 *** as such. This will affect the creation of libtool libraries that 8214 *** depend on shared libraries, but programs linked with such libtool 8215 *** libraries will work regardless of this problem. Nevertheless, you 8216 *** may want to report the problem to your system manager and/or to 8217 *** bug-libtool@gnu.org 8218 8219 _LT_EOF 8220 fi ;; 8221 esac 8222 fi 8223 break 8224 fi 8225 done 8226 IFS="$lt_save_ifs" 8227 MAGIC_CMD="$lt_save_MAGIC_CMD" 8228 ;; 8229 esac 8230 fi 8231 8232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8233 if test -n "$MAGIC_CMD"; then 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8235 $as_echo "$MAGIC_CMD" >&6; } 8236 else 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8238 $as_echo "no" >&6; } 8239 fi 8240 8241 8242 8243 8244 8245 if test -z "$lt_cv_path_MAGIC_CMD"; then 8246 if test -n "$ac_tool_prefix"; then 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8248 $as_echo_n "checking for file... " >&6; } 8249 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251 else 8252 case $MAGIC_CMD in 8253 [\\/*] | ?:[\\/]*) 8254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8255 ;; 8256 *) 8257 lt_save_MAGIC_CMD="$MAGIC_CMD" 8258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8260 for ac_dir in $ac_dummy; do 8261 IFS="$lt_save_ifs" 8262 test -z "$ac_dir" && ac_dir=. 8263 if test -f $ac_dir/file; then 8264 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8265 if test -n "$file_magic_test_file"; then 8266 case $deplibs_check_method in 8267 "file_magic "*) 8268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8271 $EGREP "$file_magic_regex" > /dev/null; then 8272 : 8273 else 8274 cat <<_LT_EOF 1>&2 8275 8276 *** Warning: the command libtool uses to detect shared libraries, 8277 *** $file_magic_cmd, produces output that libtool cannot recognize. 8278 *** The result is that libtool may fail to recognize shared libraries 8279 *** as such. This will affect the creation of libtool libraries that 8280 *** depend on shared libraries, but programs linked with such libtool 8281 *** libraries will work regardless of this problem. Nevertheless, you 8282 *** may want to report the problem to your system manager and/or to 8283 *** bug-libtool@gnu.org 8284 8285 _LT_EOF 8286 fi ;; 8287 esac 8288 fi 8289 break 8290 fi 8291 done 8292 IFS="$lt_save_ifs" 8293 MAGIC_CMD="$lt_save_MAGIC_CMD" 8294 ;; 8295 esac 8296 fi 8297 8298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8299 if test -n "$MAGIC_CMD"; then 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8301 $as_echo "$MAGIC_CMD" >&6; } 8302 else 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8304 $as_echo "no" >&6; } 8305 fi 8306 8307 8308 else 8309 MAGIC_CMD=: 8310 fi 8311 fi 8312 8313 fi 8314 ;; 8315 esac 8316 8317 # Use C for the default configuration in the libtool script 8318 8319 lt_save_CC="$CC" 8320 ac_ext=c 8321 ac_cpp='$CPP $CPPFLAGS' 8322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8324 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8325 8326 8327 # Source file extension for C test sources. 8328 ac_ext=c 8329 8330 # Object file extension for compiled C test sources. 8331 objext=o 8332 objext=$objext 8333 8334 # Code to be used in simple compile tests 8335 lt_simple_compile_test_code="int some_variable = 0;" 8336 8337 # Code to be used in simple link tests 8338 lt_simple_link_test_code='int main(){return(0);}' 8339 8340 8341 8342 8343 8344 8345 8346 # If no C compiler was specified, use CC. 8347 LTCC=${LTCC-"$CC"} 8348 8349 # If no C compiler flags were specified, use CFLAGS. 8350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8351 8352 # Allow CC to be a program name with arguments. 8353 compiler=$CC 8354 8355 # Save the default compiler, since it gets overwritten when the other 8356 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8357 compiler_DEFAULT=$CC 8358 8359 # save warnings/boilerplate of simple test code 8360 ac_outfile=conftest.$ac_objext 8361 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8362 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8363 _lt_compiler_boilerplate=`cat conftest.err` 8364 $RM conftest* 8365 8366 ac_outfile=conftest.$ac_objext 8367 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8368 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8369 _lt_linker_boilerplate=`cat conftest.err` 8370 $RM -r conftest* 8371 8372 8373 if test -n "$compiler"; then 8374 8375 lt_prog_compiler_no_builtin_flag= 8376 8377 if test "$GCC" = yes; then 8378 case $cc_basename in 8379 nvcc*) 8380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8381 *) 8382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8383 esac 8384 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8386 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8387 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389 else 8390 lt_cv_prog_compiler_rtti_exceptions=no 8391 ac_outfile=conftest.$ac_objext 8392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8393 lt_compiler_flag="-fno-rtti -fno-exceptions" 8394 # Insert the option either (1) after the last *FLAGS variable, or 8395 # (2) before a word containing "conftest.", or (3) at the end. 8396 # Note that $ac_compile itself does not contain backslashes and begins 8397 # with a dollar sign (not a hyphen), so the echo should work correctly. 8398 # The option is referenced via a variable to avoid confusing sed. 8399 lt_compile=`echo "$ac_compile" | $SED \ 8400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8402 -e 's:$: $lt_compiler_flag:'` 8403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8404 (eval "$lt_compile" 2>conftest.err) 8405 ac_status=$? 8406 cat conftest.err >&5 8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8408 if (exit $ac_status) && test -s "$ac_outfile"; then 8409 # The compiler can only warn and ignore the option if not recognized 8410 # So say no if there are warnings other than the usual output. 8411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8414 lt_cv_prog_compiler_rtti_exceptions=yes 8415 fi 8416 fi 8417 $RM conftest* 8418 8419 fi 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8421 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8422 8423 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8425 else 8426 : 8427 fi 8428 8429 fi 8430 8431 8432 8433 8434 8435 8436 lt_prog_compiler_wl= 8437 lt_prog_compiler_pic= 8438 lt_prog_compiler_static= 8439 8440 8441 if test "$GCC" = yes; then 8442 lt_prog_compiler_wl='-Wl,' 8443 lt_prog_compiler_static='-static' 8444 8445 case $host_os in 8446 aix*) 8447 # All AIX code is PIC. 8448 if test "$host_cpu" = ia64; then 8449 # AIX 5 now supports IA64 processor 8450 lt_prog_compiler_static='-Bstatic' 8451 fi 8452 ;; 8453 8454 amigaos*) 8455 case $host_cpu in 8456 powerpc) 8457 # see comment about AmigaOS4 .so support 8458 lt_prog_compiler_pic='-fPIC' 8459 ;; 8460 m68k) 8461 # FIXME: we need at least 68020 code to build shared libraries, but 8462 # adding the `-m68020' flag to GCC prevents building anything better, 8463 # like `-m68040'. 8464 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8465 ;; 8466 esac 8467 ;; 8468 8469 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8470 # PIC is the default for these OSes. 8471 ;; 8472 8473 mingw* | cygwin* | pw32* | os2* | cegcc*) 8474 # This hack is so that the source file can tell whether it is being 8475 # built for inclusion in a dll (and should export symbols for example). 8476 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8477 # (--disable-auto-import) libraries 8478 lt_prog_compiler_pic='-DDLL_EXPORT' 8479 ;; 8480 8481 darwin* | rhapsody*) 8482 # PIC is the default on this platform 8483 # Common symbols not allowed in MH_DYLIB files 8484 lt_prog_compiler_pic='-fno-common' 8485 ;; 8486 8487 haiku*) 8488 # PIC is the default for Haiku. 8489 # The "-static" flag exists, but is broken. 8490 lt_prog_compiler_static= 8491 ;; 8492 8493 hpux*) 8494 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8495 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8496 # sets the default TLS model and affects inlining. 8497 case $host_cpu in 8498 hppa*64*) 8499 # +Z the default 8500 ;; 8501 *) 8502 lt_prog_compiler_pic='-fPIC' 8503 ;; 8504 esac 8505 ;; 8506 8507 interix[3-9]*) 8508 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8509 # Instead, we relocate shared libraries at runtime. 8510 ;; 8511 8512 msdosdjgpp*) 8513 # Just because we use GCC doesn't mean we suddenly get shared libraries 8514 # on systems that don't support them. 8515 lt_prog_compiler_can_build_shared=no 8516 enable_shared=no 8517 ;; 8518 8519 *nto* | *qnx*) 8520 # QNX uses GNU C++, but need to define -shared option too, otherwise 8521 # it will coredump. 8522 lt_prog_compiler_pic='-fPIC -shared' 8523 ;; 8524 8525 sysv4*MP*) 8526 if test -d /usr/nec; then 8527 lt_prog_compiler_pic=-Kconform_pic 8528 fi 8529 ;; 8530 8531 *) 8532 lt_prog_compiler_pic='-fPIC' 8533 ;; 8534 esac 8535 8536 case $cc_basename in 8537 nvcc*) # Cuda Compiler Driver 2.2 8538 lt_prog_compiler_wl='-Xlinker ' 8539 if test -n "$lt_prog_compiler_pic"; then 8540 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8541 fi 8542 ;; 8543 esac 8544 else 8545 # PORTME Check for flag to pass linker flags through the system compiler. 8546 case $host_os in 8547 aix*) 8548 lt_prog_compiler_wl='-Wl,' 8549 if test "$host_cpu" = ia64; then 8550 # AIX 5 now supports IA64 processor 8551 lt_prog_compiler_static='-Bstatic' 8552 else 8553 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8554 fi 8555 ;; 8556 8557 mingw* | cygwin* | pw32* | os2* | cegcc*) 8558 # This hack is so that the source file can tell whether it is being 8559 # built for inclusion in a dll (and should export symbols for example). 8560 lt_prog_compiler_pic='-DDLL_EXPORT' 8561 ;; 8562 8563 hpux9* | hpux10* | hpux11*) 8564 lt_prog_compiler_wl='-Wl,' 8565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8566 # not for PA HP-UX. 8567 case $host_cpu in 8568 hppa*64*|ia64*) 8569 # +Z the default 8570 ;; 8571 *) 8572 lt_prog_compiler_pic='+Z' 8573 ;; 8574 esac 8575 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8576 lt_prog_compiler_static='${wl}-a ${wl}archive' 8577 ;; 8578 8579 irix5* | irix6* | nonstopux*) 8580 lt_prog_compiler_wl='-Wl,' 8581 # PIC (with -KPIC) is the default. 8582 lt_prog_compiler_static='-non_shared' 8583 ;; 8584 8585 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8586 case $cc_basename in 8587 # old Intel for x86_64 which still supported -KPIC. 8588 ecc*) 8589 lt_prog_compiler_wl='-Wl,' 8590 lt_prog_compiler_pic='-KPIC' 8591 lt_prog_compiler_static='-static' 8592 ;; 8593 # icc used to be incompatible with GCC. 8594 # ICC 10 doesn't accept -KPIC any more. 8595 icc* | ifort*) 8596 lt_prog_compiler_wl='-Wl,' 8597 lt_prog_compiler_pic='-fPIC' 8598 lt_prog_compiler_static='-static' 8599 ;; 8600 # Lahey Fortran 8.1. 8601 lf95*) 8602 lt_prog_compiler_wl='-Wl,' 8603 lt_prog_compiler_pic='--shared' 8604 lt_prog_compiler_static='--static' 8605 ;; 8606 nagfor*) 8607 # NAG Fortran compiler 8608 lt_prog_compiler_wl='-Wl,-Wl,,' 8609 lt_prog_compiler_pic='-PIC' 8610 lt_prog_compiler_static='-Bstatic' 8611 ;; 8612 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8613 # Portland Group compilers (*not* the Pentium gcc compiler, 8614 # which looks to be a dead project) 8615 lt_prog_compiler_wl='-Wl,' 8616 lt_prog_compiler_pic='-fpic' 8617 lt_prog_compiler_static='-Bstatic' 8618 ;; 8619 ccc*) 8620 lt_prog_compiler_wl='-Wl,' 8621 # All Alpha code is PIC. 8622 lt_prog_compiler_static='-non_shared' 8623 ;; 8624 xl* | bgxl* | bgf* | mpixl*) 8625 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8626 lt_prog_compiler_wl='-Wl,' 8627 lt_prog_compiler_pic='-qpic' 8628 lt_prog_compiler_static='-qstaticlink' 8629 ;; 8630 *) 8631 case `$CC -V 2>&1 | sed 5q` in 8632 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8633 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8634 lt_prog_compiler_pic='-KPIC' 8635 lt_prog_compiler_static='-Bstatic' 8636 lt_prog_compiler_wl='' 8637 ;; 8638 *Sun\ F* | *Sun*Fortran*) 8639 lt_prog_compiler_pic='-KPIC' 8640 lt_prog_compiler_static='-Bstatic' 8641 lt_prog_compiler_wl='-Qoption ld ' 8642 ;; 8643 *Sun\ C*) 8644 # Sun C 5.9 8645 lt_prog_compiler_pic='-KPIC' 8646 lt_prog_compiler_static='-Bstatic' 8647 lt_prog_compiler_wl='-Wl,' 8648 ;; 8649 *Intel*\ [CF]*Compiler*) 8650 lt_prog_compiler_wl='-Wl,' 8651 lt_prog_compiler_pic='-fPIC' 8652 lt_prog_compiler_static='-static' 8653 ;; 8654 *Portland\ Group*) 8655 lt_prog_compiler_wl='-Wl,' 8656 lt_prog_compiler_pic='-fpic' 8657 lt_prog_compiler_static='-Bstatic' 8658 ;; 8659 esac 8660 ;; 8661 esac 8662 ;; 8663 8664 newsos6) 8665 lt_prog_compiler_pic='-KPIC' 8666 lt_prog_compiler_static='-Bstatic' 8667 ;; 8668 8669 *nto* | *qnx*) 8670 # QNX uses GNU C++, but need to define -shared option too, otherwise 8671 # it will coredump. 8672 lt_prog_compiler_pic='-fPIC -shared' 8673 ;; 8674 8675 osf3* | osf4* | osf5*) 8676 lt_prog_compiler_wl='-Wl,' 8677 # All OSF/1 code is PIC. 8678 lt_prog_compiler_static='-non_shared' 8679 ;; 8680 8681 rdos*) 8682 lt_prog_compiler_static='-non_shared' 8683 ;; 8684 8685 solaris*) 8686 lt_prog_compiler_pic='-KPIC' 8687 lt_prog_compiler_static='-Bstatic' 8688 case $cc_basename in 8689 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8690 lt_prog_compiler_wl='-Qoption ld ';; 8691 *) 8692 lt_prog_compiler_wl='-Wl,';; 8693 esac 8694 ;; 8695 8696 sunos4*) 8697 lt_prog_compiler_wl='-Qoption ld ' 8698 lt_prog_compiler_pic='-PIC' 8699 lt_prog_compiler_static='-Bstatic' 8700 ;; 8701 8702 sysv4 | sysv4.2uw2* | sysv4.3*) 8703 lt_prog_compiler_wl='-Wl,' 8704 lt_prog_compiler_pic='-KPIC' 8705 lt_prog_compiler_static='-Bstatic' 8706 ;; 8707 8708 sysv4*MP*) 8709 if test -d /usr/nec ;then 8710 lt_prog_compiler_pic='-Kconform_pic' 8711 lt_prog_compiler_static='-Bstatic' 8712 fi 8713 ;; 8714 8715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8716 lt_prog_compiler_wl='-Wl,' 8717 lt_prog_compiler_pic='-KPIC' 8718 lt_prog_compiler_static='-Bstatic' 8719 ;; 8720 8721 unicos*) 8722 lt_prog_compiler_wl='-Wl,' 8723 lt_prog_compiler_can_build_shared=no 8724 ;; 8725 8726 uts4*) 8727 lt_prog_compiler_pic='-pic' 8728 lt_prog_compiler_static='-Bstatic' 8729 ;; 8730 8731 *) 8732 lt_prog_compiler_can_build_shared=no 8733 ;; 8734 esac 8735 fi 8736 8737 case $host_os in 8738 # For platforms which do not support PIC, -DPIC is meaningless: 8739 *djgpp*) 8740 lt_prog_compiler_pic= 8741 ;; 8742 *) 8743 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8744 ;; 8745 esac 8746 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8749 if ${lt_cv_prog_compiler_pic+:} false; then : 8750 $as_echo_n "(cached) " >&6 8751 else 8752 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8753 fi 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8755 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8756 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8757 8758 # 8759 # Check to make sure the PIC flag actually works. 8760 # 8761 if test -n "$lt_prog_compiler_pic"; then 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8763 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8764 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8765 $as_echo_n "(cached) " >&6 8766 else 8767 lt_cv_prog_compiler_pic_works=no 8768 ac_outfile=conftest.$ac_objext 8769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8771 # Insert the option either (1) after the last *FLAGS variable, or 8772 # (2) before a word containing "conftest.", or (3) at the end. 8773 # Note that $ac_compile itself does not contain backslashes and begins 8774 # with a dollar sign (not a hyphen), so the echo should work correctly. 8775 # The option is referenced via a variable to avoid confusing sed. 8776 lt_compile=`echo "$ac_compile" | $SED \ 8777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8779 -e 's:$: $lt_compiler_flag:'` 8780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8781 (eval "$lt_compile" 2>conftest.err) 8782 ac_status=$? 8783 cat conftest.err >&5 8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8785 if (exit $ac_status) && test -s "$ac_outfile"; then 8786 # The compiler can only warn and ignore the option if not recognized 8787 # So say no if there are warnings other than the usual output. 8788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8791 lt_cv_prog_compiler_pic_works=yes 8792 fi 8793 fi 8794 $RM conftest* 8795 8796 fi 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8798 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8799 8800 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8801 case $lt_prog_compiler_pic in 8802 "" | " "*) ;; 8803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8804 esac 8805 else 8806 lt_prog_compiler_pic= 8807 lt_prog_compiler_can_build_shared=no 8808 fi 8809 8810 fi 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 # 8823 # Check to make sure the static flag actually works. 8824 # 8825 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8828 if ${lt_cv_prog_compiler_static_works+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830 else 8831 lt_cv_prog_compiler_static_works=no 8832 save_LDFLAGS="$LDFLAGS" 8833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8834 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8836 # The linker can only warn and ignore the option if not recognized 8837 # So say no if there are warnings 8838 if test -s conftest.err; then 8839 # Append any errors to the config.log. 8840 cat conftest.err 1>&5 8841 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8843 if diff conftest.exp conftest.er2 >/dev/null; then 8844 lt_cv_prog_compiler_static_works=yes 8845 fi 8846 else 8847 lt_cv_prog_compiler_static_works=yes 8848 fi 8849 fi 8850 $RM -r conftest* 8851 LDFLAGS="$save_LDFLAGS" 8852 8853 fi 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8855 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8856 8857 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8858 : 8859 else 8860 lt_prog_compiler_static= 8861 fi 8862 8863 8864 8865 8866 8867 8868 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8871 if ${lt_cv_prog_compiler_c_o+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873 else 8874 lt_cv_prog_compiler_c_o=no 8875 $RM -r conftest 2>/dev/null 8876 mkdir conftest 8877 cd conftest 8878 mkdir out 8879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8880 8881 lt_compiler_flag="-o out/conftest2.$ac_objext" 8882 # Insert the option either (1) after the last *FLAGS variable, or 8883 # (2) before a word containing "conftest.", or (3) at the end. 8884 # Note that $ac_compile itself does not contain backslashes and begins 8885 # with a dollar sign (not a hyphen), so the echo should work correctly. 8886 lt_compile=`echo "$ac_compile" | $SED \ 8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8889 -e 's:$: $lt_compiler_flag:'` 8890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8891 (eval "$lt_compile" 2>out/conftest.err) 8892 ac_status=$? 8893 cat out/conftest.err >&5 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8896 then 8897 # The compiler can only warn and ignore the option if not recognized 8898 # So say no if there are warnings 8899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8902 lt_cv_prog_compiler_c_o=yes 8903 fi 8904 fi 8905 chmod u+w . 2>&5 8906 $RM conftest* 8907 # SGI C++ compiler will create directory out/ii_files/ for 8908 # template instantiation 8909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8910 $RM out/* && rmdir out 8911 cd .. 8912 $RM -r conftest 8913 $RM conftest* 8914 8915 fi 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8918 8919 8920 8921 8922 8923 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8926 if ${lt_cv_prog_compiler_c_o+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928 else 8929 lt_cv_prog_compiler_c_o=no 8930 $RM -r conftest 2>/dev/null 8931 mkdir conftest 8932 cd conftest 8933 mkdir out 8934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8935 8936 lt_compiler_flag="-o out/conftest2.$ac_objext" 8937 # Insert the option either (1) after the last *FLAGS variable, or 8938 # (2) before a word containing "conftest.", or (3) at the end. 8939 # Note that $ac_compile itself does not contain backslashes and begins 8940 # with a dollar sign (not a hyphen), so the echo should work correctly. 8941 lt_compile=`echo "$ac_compile" | $SED \ 8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8944 -e 's:$: $lt_compiler_flag:'` 8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8946 (eval "$lt_compile" 2>out/conftest.err) 8947 ac_status=$? 8948 cat out/conftest.err >&5 8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8950 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8951 then 8952 # The compiler can only warn and ignore the option if not recognized 8953 # So say no if there are warnings 8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8957 lt_cv_prog_compiler_c_o=yes 8958 fi 8959 fi 8960 chmod u+w . 2>&5 8961 $RM conftest* 8962 # SGI C++ compiler will create directory out/ii_files/ for 8963 # template instantiation 8964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8965 $RM out/* && rmdir out 8966 cd .. 8967 $RM -r conftest 8968 $RM conftest* 8969 8970 fi 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8973 8974 8975 8976 8977 hard_links="nottested" 8978 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8979 # do not overwrite the value of need_locks provided by the user 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8981 $as_echo_n "checking if we can lock with hard links... " >&6; } 8982 hard_links=yes 8983 $RM conftest* 8984 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8985 touch conftest.a 8986 ln conftest.a conftest.b 2>&5 || hard_links=no 8987 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8989 $as_echo "$hard_links" >&6; } 8990 if test "$hard_links" = no; then 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8993 need_locks=warn 8994 fi 8995 else 8996 need_locks=no 8997 fi 8998 8999 9000 9001 9002 9003 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9006 9007 runpath_var= 9008 allow_undefined_flag= 9009 always_export_symbols=no 9010 archive_cmds= 9011 archive_expsym_cmds= 9012 compiler_needs_object=no 9013 enable_shared_with_static_runtimes=no 9014 export_dynamic_flag_spec= 9015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9016 hardcode_automatic=no 9017 hardcode_direct=no 9018 hardcode_direct_absolute=no 9019 hardcode_libdir_flag_spec= 9020 hardcode_libdir_separator= 9021 hardcode_minus_L=no 9022 hardcode_shlibpath_var=unsupported 9023 inherit_rpath=no 9024 link_all_deplibs=unknown 9025 module_cmds= 9026 module_expsym_cmds= 9027 old_archive_from_new_cmds= 9028 old_archive_from_expsyms_cmds= 9029 thread_safe_flag_spec= 9030 whole_archive_flag_spec= 9031 # include_expsyms should be a list of space-separated symbols to be *always* 9032 # included in the symbol list 9033 include_expsyms= 9034 # exclude_expsyms can be an extended regexp of symbols to exclude 9035 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9037 # as well as any symbol that contains `d'. 9038 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9040 # platforms (ab)use it in PIC code, but their linkers get confused if 9041 # the symbol is explicitly referenced. Since portable code cannot 9042 # rely on this symbol name, it's probably fine to never include it in 9043 # preloaded symbol tables. 9044 # Exclude shared library initialization/finalization symbols. 9045 extract_expsyms_cmds= 9046 9047 case $host_os in 9048 cygwin* | mingw* | pw32* | cegcc*) 9049 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9050 # When not using gcc, we currently assume that we are using 9051 # Microsoft Visual C++. 9052 if test "$GCC" != yes; then 9053 with_gnu_ld=no 9054 fi 9055 ;; 9056 interix*) 9057 # we just hope/assume this is gcc and not c89 (= MSVC++) 9058 with_gnu_ld=yes 9059 ;; 9060 openbsd*) 9061 with_gnu_ld=no 9062 ;; 9063 linux* | k*bsd*-gnu | gnu*) 9064 link_all_deplibs=no 9065 ;; 9066 esac 9067 9068 ld_shlibs=yes 9069 9070 # On some targets, GNU ld is compatible enough with the native linker 9071 # that we're better off using the native interface for both. 9072 lt_use_gnu_ld_interface=no 9073 if test "$with_gnu_ld" = yes; then 9074 case $host_os in 9075 aix*) 9076 # The AIX port of GNU ld has always aspired to compatibility 9077 # with the native linker. However, as the warning in the GNU ld 9078 # block says, versions before 2.19.5* couldn't really create working 9079 # shared libraries, regardless of the interface used. 9080 case `$LD -v 2>&1` in 9081 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9082 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9083 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9084 *) 9085 lt_use_gnu_ld_interface=yes 9086 ;; 9087 esac 9088 ;; 9089 *) 9090 lt_use_gnu_ld_interface=yes 9091 ;; 9092 esac 9093 fi 9094 9095 if test "$lt_use_gnu_ld_interface" = yes; then 9096 # If archive_cmds runs LD, not CC, wlarc should be empty 9097 wlarc='${wl}' 9098 9099 # Set some defaults for GNU ld with shared library support. These 9100 # are reset later if shared libraries are not supported. Putting them 9101 # here allows them to be overridden if necessary. 9102 runpath_var=LD_RUN_PATH 9103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9104 export_dynamic_flag_spec='${wl}--export-dynamic' 9105 # ancient GNU ld didn't support --whole-archive et. al. 9106 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9108 else 9109 whole_archive_flag_spec= 9110 fi 9111 supports_anon_versioning=no 9112 case `$LD -v 2>&1` in 9113 *GNU\ gold*) supports_anon_versioning=yes ;; 9114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9117 *\ 2.11.*) ;; # other 2.11 versions 9118 *) supports_anon_versioning=yes ;; 9119 esac 9120 9121 # See if GNU ld supports shared libraries. 9122 case $host_os in 9123 aix[3-9]*) 9124 # On AIX/PPC, the GNU linker is very broken 9125 if test "$host_cpu" != ia64; then 9126 ld_shlibs=no 9127 cat <<_LT_EOF 1>&2 9128 9129 *** Warning: the GNU linker, at least up to release 2.19, is reported 9130 *** to be unable to reliably create shared libraries on AIX. 9131 *** Therefore, libtool is disabling shared libraries support. If you 9132 *** really care for shared libraries, you may want to install binutils 9133 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9134 *** You will then need to restart the configuration process. 9135 9136 _LT_EOF 9137 fi 9138 ;; 9139 9140 amigaos*) 9141 case $host_cpu in 9142 powerpc) 9143 # see comment about AmigaOS4 .so support 9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9145 archive_expsym_cmds='' 9146 ;; 9147 m68k) 9148 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)' 9149 hardcode_libdir_flag_spec='-L$libdir' 9150 hardcode_minus_L=yes 9151 ;; 9152 esac 9153 ;; 9154 9155 beos*) 9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9157 allow_undefined_flag=unsupported 9158 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9159 # support --undefined. This deserves some investigation. FIXME 9160 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9161 else 9162 ld_shlibs=no 9163 fi 9164 ;; 9165 9166 cygwin* | mingw* | pw32* | cegcc*) 9167 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9168 # as there is no search path for DLLs. 9169 hardcode_libdir_flag_spec='-L$libdir' 9170 export_dynamic_flag_spec='${wl}--export-all-symbols' 9171 allow_undefined_flag=unsupported 9172 always_export_symbols=no 9173 enable_shared_with_static_runtimes=yes 9174 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' 9175 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9176 9177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9179 # If the export-symbols file already is a .def file (1st line 9180 # is EXPORTS), use it as is; otherwise, prepend... 9181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9182 cp $export_symbols $output_objdir/$soname.def; 9183 else 9184 echo EXPORTS > $output_objdir/$soname.def; 9185 cat $export_symbols >> $output_objdir/$soname.def; 9186 fi~ 9187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9188 else 9189 ld_shlibs=no 9190 fi 9191 ;; 9192 9193 haiku*) 9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9195 link_all_deplibs=yes 9196 ;; 9197 9198 interix[3-9]*) 9199 hardcode_direct=no 9200 hardcode_shlibpath_var=no 9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9202 export_dynamic_flag_spec='${wl}-E' 9203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9204 # Instead, shared libraries are loaded at an image base (0x10000000 by 9205 # default) and relocated if they conflict, which is a slow very memory 9206 # consuming and fragmenting process. To avoid this, we pick a random, 9207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9208 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9210 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' 9211 ;; 9212 9213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9214 tmp_diet=no 9215 if test "$host_os" = linux-dietlibc; then 9216 case $cc_basename in 9217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9218 esac 9219 fi 9220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9221 && test "$tmp_diet" = no 9222 then 9223 tmp_addflag=' $pic_flag' 9224 tmp_sharedflag='-shared' 9225 case $cc_basename,$host_cpu in 9226 pgcc*) # Portland Group C compiler 9227 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' 9228 tmp_addflag=' $pic_flag' 9229 ;; 9230 pgf77* | pgf90* | pgf95* | pgfortran*) 9231 # Portland Group f77 and f90 compilers 9232 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' 9233 tmp_addflag=' $pic_flag -Mnomain' ;; 9234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9235 tmp_addflag=' -i_dynamic' ;; 9236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9237 tmp_addflag=' -i_dynamic -nofor_main' ;; 9238 ifc* | ifort*) # Intel Fortran compiler 9239 tmp_addflag=' -nofor_main' ;; 9240 lf95*) # Lahey Fortran 8.1 9241 whole_archive_flag_spec= 9242 tmp_sharedflag='--shared' ;; 9243 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9244 tmp_sharedflag='-qmkshrobj' 9245 tmp_addflag= ;; 9246 nvcc*) # Cuda Compiler Driver 2.2 9247 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' 9248 compiler_needs_object=yes 9249 ;; 9250 esac 9251 case `$CC -V 2>&1 | sed 5q` in 9252 *Sun\ C*) # Sun C 5.9 9253 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' 9254 compiler_needs_object=yes 9255 tmp_sharedflag='-G' ;; 9256 *Sun\ F*) # Sun Fortran 8.3 9257 tmp_sharedflag='-G' ;; 9258 esac 9259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9260 9261 if test "x$supports_anon_versioning" = xyes; then 9262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9264 echo "local: *; };" >> $output_objdir/$libname.ver~ 9265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9266 fi 9267 9268 case $cc_basename in 9269 xlf* | bgf* | bgxlf* | mpixlf*) 9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9273 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9274 if test "x$supports_anon_versioning" = xyes; then 9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9277 echo "local: *; };" >> $output_objdir/$libname.ver~ 9278 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9279 fi 9280 ;; 9281 esac 9282 else 9283 ld_shlibs=no 9284 fi 9285 ;; 9286 9287 netbsd* | netbsdelf*-gnu) 9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9290 wlarc= 9291 else 9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9294 fi 9295 ;; 9296 9297 solaris*) 9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9299 ld_shlibs=no 9300 cat <<_LT_EOF 1>&2 9301 9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9303 *** create shared libraries on Solaris systems. Therefore, libtool 9304 *** is disabling shared libraries support. We urge you to upgrade GNU 9305 *** binutils to release 2.9.1 or newer. Another option is to modify 9306 *** your PATH or compiler configuration so that the native linker is 9307 *** used, and then restart. 9308 9309 _LT_EOF 9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9312 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9313 else 9314 ld_shlibs=no 9315 fi 9316 ;; 9317 9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9319 case `$LD -v 2>&1` in 9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9321 ld_shlibs=no 9322 cat <<_LT_EOF 1>&2 9323 9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9325 *** reliably create shared libraries on SCO systems. Therefore, libtool 9326 *** is disabling shared libraries support. We urge you to upgrade GNU 9327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9328 *** your PATH or compiler configuration so that the native linker is 9329 *** used, and then restart. 9330 9331 _LT_EOF 9332 ;; 9333 *) 9334 # For security reasons, it is highly recommended that you always 9335 # use absolute paths for naming shared libraries, and exclude the 9336 # DT_RUNPATH tag from executables and libraries. But doing so 9337 # requires that you compile everything twice, which is a pain. 9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9342 else 9343 ld_shlibs=no 9344 fi 9345 ;; 9346 esac 9347 ;; 9348 9349 sunos4*) 9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9351 wlarc= 9352 hardcode_direct=yes 9353 hardcode_shlibpath_var=no 9354 ;; 9355 9356 *) 9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9360 else 9361 ld_shlibs=no 9362 fi 9363 ;; 9364 esac 9365 9366 if test "$ld_shlibs" = no; then 9367 runpath_var= 9368 hardcode_libdir_flag_spec= 9369 export_dynamic_flag_spec= 9370 whole_archive_flag_spec= 9371 fi 9372 else 9373 # PORTME fill in a description of your system's linker (not GNU ld) 9374 case $host_os in 9375 aix3*) 9376 allow_undefined_flag=unsupported 9377 always_export_symbols=yes 9378 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' 9379 # Note: this linker hardcodes the directories in LIBPATH if there 9380 # are no directories specified by -L. 9381 hardcode_minus_L=yes 9382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9383 # Neither direct hardcoding nor static linking is supported with a 9384 # broken collect2. 9385 hardcode_direct=unsupported 9386 fi 9387 ;; 9388 9389 aix[4-9]*) 9390 if test "$host_cpu" = ia64; then 9391 # On IA64, the linker does run time linking by default, so we don't 9392 # have to do anything special. 9393 aix_use_runtimelinking=no 9394 exp_sym_flag='-Bexport' 9395 no_entry_flag="" 9396 else 9397 # If we're using GNU nm, then we don't want the "-C" option. 9398 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9399 # Also, AIX nm treats weak defined symbols like other global 9400 # defined symbols, whereas GNU nm marks them as "W". 9401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9402 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' 9403 else 9404 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' 9405 fi 9406 aix_use_runtimelinking=no 9407 9408 # Test if we are trying to use run time linking or normal 9409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9410 # need to do runtime linking. 9411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9412 for ld_flag in $LDFLAGS; do 9413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9414 aix_use_runtimelinking=yes 9415 break 9416 fi 9417 done 9418 ;; 9419 esac 9420 9421 exp_sym_flag='-bexport' 9422 no_entry_flag='-bnoentry' 9423 fi 9424 9425 # When large executables or shared objects are built, AIX ld can 9426 # have problems creating the table of contents. If linking a library 9427 # or program results in "error TOC overflow" add -mminimal-toc to 9428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9430 9431 archive_cmds='' 9432 hardcode_direct=yes 9433 hardcode_direct_absolute=yes 9434 hardcode_libdir_separator=':' 9435 link_all_deplibs=yes 9436 file_list_spec='${wl}-f,' 9437 9438 if test "$GCC" = yes; then 9439 case $host_os in aix4.[012]|aix4.[012].*) 9440 # We only want to do this on AIX 4.2 and lower, the check 9441 # below for broken collect2 doesn't work under 4.3+ 9442 collect2name=`${CC} -print-prog-name=collect2` 9443 if test -f "$collect2name" && 9444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9445 then 9446 # We have reworked collect2 9447 : 9448 else 9449 # We have old collect2 9450 hardcode_direct=unsupported 9451 # It fails to find uninstalled libraries when the uninstalled 9452 # path is not listed in the libpath. Setting hardcode_minus_L 9453 # to unsupported forces relinking 9454 hardcode_minus_L=yes 9455 hardcode_libdir_flag_spec='-L$libdir' 9456 hardcode_libdir_separator= 9457 fi 9458 ;; 9459 esac 9460 shared_flag='-shared' 9461 if test "$aix_use_runtimelinking" = yes; then 9462 shared_flag="$shared_flag "'${wl}-G' 9463 fi 9464 link_all_deplibs=no 9465 else 9466 # not using gcc 9467 if test "$host_cpu" = ia64; then 9468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9469 # chokes on -Wl,-G. The following line is correct: 9470 shared_flag='-G' 9471 else 9472 if test "$aix_use_runtimelinking" = yes; then 9473 shared_flag='${wl}-G' 9474 else 9475 shared_flag='${wl}-bM:SRE' 9476 fi 9477 fi 9478 fi 9479 9480 export_dynamic_flag_spec='${wl}-bexpall' 9481 # It seems that -bexpall does not export symbols beginning with 9482 # underscore (_), so it is better to generate a list of symbols to export. 9483 always_export_symbols=yes 9484 if test "$aix_use_runtimelinking" = yes; then 9485 # Warning - without using the other runtime loading flags (-brtl), 9486 # -berok will link without error, but may produce a broken library. 9487 allow_undefined_flag='-berok' 9488 # Determine the default libpath from the value encoded in an 9489 # empty executable. 9490 if test "${lt_cv_aix_libpath+set}" = set; then 9491 aix_libpath=$lt_cv_aix_libpath 9492 else 9493 if ${lt_cv_aix_libpath_+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495 else 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497 /* end confdefs.h. */ 9498 9499 int 9500 main () 9501 { 9502 9503 ; 9504 return 0; 9505 } 9506 _ACEOF 9507 if ac_fn_c_try_link "$LINENO"; then : 9508 9509 lt_aix_libpath_sed=' 9510 /Import File Strings/,/^$/ { 9511 /^0/ { 9512 s/^0 *\([^ ]*\) *$/\1/ 9513 p 9514 } 9515 }' 9516 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9517 # Check for a 64-bit object if we didn't find anything. 9518 if test -z "$lt_cv_aix_libpath_"; then 9519 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9520 fi 9521 fi 9522 rm -f core conftest.err conftest.$ac_objext \ 9523 conftest$ac_exeext conftest.$ac_ext 9524 if test -z "$lt_cv_aix_libpath_"; then 9525 lt_cv_aix_libpath_="/usr/lib:/lib" 9526 fi 9527 9528 fi 9529 9530 aix_libpath=$lt_cv_aix_libpath_ 9531 fi 9532 9533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9534 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" 9535 else 9536 if test "$host_cpu" = ia64; then 9537 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9538 allow_undefined_flag="-z nodefs" 9539 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" 9540 else 9541 # Determine the default libpath from the value encoded in an 9542 # empty executable. 9543 if test "${lt_cv_aix_libpath+set}" = set; then 9544 aix_libpath=$lt_cv_aix_libpath 9545 else 9546 if ${lt_cv_aix_libpath_+:} false; then : 9547 $as_echo_n "(cached) " >&6 9548 else 9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9550 /* end confdefs.h. */ 9551 9552 int 9553 main () 9554 { 9555 9556 ; 9557 return 0; 9558 } 9559 _ACEOF 9560 if ac_fn_c_try_link "$LINENO"; then : 9561 9562 lt_aix_libpath_sed=' 9563 /Import File Strings/,/^$/ { 9564 /^0/ { 9565 s/^0 *\([^ ]*\) *$/\1/ 9566 p 9567 } 9568 }' 9569 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9570 # Check for a 64-bit object if we didn't find anything. 9571 if test -z "$lt_cv_aix_libpath_"; then 9572 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9573 fi 9574 fi 9575 rm -f core conftest.err conftest.$ac_objext \ 9576 conftest$ac_exeext conftest.$ac_ext 9577 if test -z "$lt_cv_aix_libpath_"; then 9578 lt_cv_aix_libpath_="/usr/lib:/lib" 9579 fi 9580 9581 fi 9582 9583 aix_libpath=$lt_cv_aix_libpath_ 9584 fi 9585 9586 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9587 # Warning - without using the other run time loading flags, 9588 # -berok will link without error, but may produce a broken library. 9589 no_undefined_flag=' ${wl}-bernotok' 9590 allow_undefined_flag=' ${wl}-berok' 9591 if test "$with_gnu_ld" = yes; then 9592 # We only use this code for GNU lds that support --whole-archive. 9593 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9594 else 9595 # Exported symbols can be pulled into shared objects from archives 9596 whole_archive_flag_spec='$convenience' 9597 fi 9598 archive_cmds_need_lc=yes 9599 # This is similar to how AIX traditionally builds its shared libraries. 9600 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' 9601 fi 9602 fi 9603 ;; 9604 9605 amigaos*) 9606 case $host_cpu in 9607 powerpc) 9608 # see comment about AmigaOS4 .so support 9609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9610 archive_expsym_cmds='' 9611 ;; 9612 m68k) 9613 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)' 9614 hardcode_libdir_flag_spec='-L$libdir' 9615 hardcode_minus_L=yes 9616 ;; 9617 esac 9618 ;; 9619 9620 bsdi[45]*) 9621 export_dynamic_flag_spec=-rdynamic 9622 ;; 9623 9624 cygwin* | mingw* | pw32* | cegcc*) 9625 # When not using gcc, we currently assume that we are using 9626 # Microsoft Visual C++. 9627 # hardcode_libdir_flag_spec is actually meaningless, as there is 9628 # no search path for DLLs. 9629 case $cc_basename in 9630 cl*) 9631 # Native MSVC 9632 hardcode_libdir_flag_spec=' ' 9633 allow_undefined_flag=unsupported 9634 always_export_symbols=yes 9635 file_list_spec='@' 9636 # Tell ltmain to make .lib files, not .a files. 9637 libext=lib 9638 # Tell ltmain to make .dll files, not .so files. 9639 shrext_cmds=".dll" 9640 # FIXME: Setting linknames here is a bad hack. 9641 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9642 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9643 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9644 else 9645 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9646 fi~ 9647 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9648 linknames=' 9649 # The linker will not automatically build a static lib if we build a DLL. 9650 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9651 enable_shared_with_static_runtimes=yes 9652 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9654 # Don't use ranlib 9655 old_postinstall_cmds='chmod 644 $oldlib' 9656 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9657 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9658 case $lt_outputfile in 9659 *.exe|*.EXE) ;; 9660 *) 9661 lt_outputfile="$lt_outputfile.exe" 9662 lt_tool_outputfile="$lt_tool_outputfile.exe" 9663 ;; 9664 esac~ 9665 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9666 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9667 $RM "$lt_outputfile.manifest"; 9668 fi' 9669 ;; 9670 *) 9671 # Assume MSVC wrapper 9672 hardcode_libdir_flag_spec=' ' 9673 allow_undefined_flag=unsupported 9674 # Tell ltmain to make .lib files, not .a files. 9675 libext=lib 9676 # Tell ltmain to make .dll files, not .so files. 9677 shrext_cmds=".dll" 9678 # FIXME: Setting linknames here is a bad hack. 9679 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9680 # The linker will automatically build a .lib file if we build a DLL. 9681 old_archive_from_new_cmds='true' 9682 # FIXME: Should let the user specify the lib program. 9683 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9684 enable_shared_with_static_runtimes=yes 9685 ;; 9686 esac 9687 ;; 9688 9689 darwin* | rhapsody*) 9690 9691 9692 archive_cmds_need_lc=no 9693 hardcode_direct=no 9694 hardcode_automatic=yes 9695 hardcode_shlibpath_var=unsupported 9696 if test "$lt_cv_ld_force_load" = "yes"; then 9697 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\"`' 9698 9699 else 9700 whole_archive_flag_spec='' 9701 fi 9702 link_all_deplibs=yes 9703 allow_undefined_flag="$_lt_dar_allow_undefined" 9704 case $cc_basename in 9705 ifort*) _lt_dar_can_shared=yes ;; 9706 *) _lt_dar_can_shared=$GCC ;; 9707 esac 9708 if test "$_lt_dar_can_shared" = "yes"; then 9709 output_verbose_link_cmd=func_echo_all 9710 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9711 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9712 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}" 9713 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}" 9714 9715 else 9716 ld_shlibs=no 9717 fi 9718 9719 ;; 9720 9721 dgux*) 9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9723 hardcode_libdir_flag_spec='-L$libdir' 9724 hardcode_shlibpath_var=no 9725 ;; 9726 9727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9728 # support. Future versions do this automatically, but an explicit c++rt0.o 9729 # does not break anything, and helps significantly (at the cost of a little 9730 # extra space). 9731 freebsd2.2*) 9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9733 hardcode_libdir_flag_spec='-R$libdir' 9734 hardcode_direct=yes 9735 hardcode_shlibpath_var=no 9736 ;; 9737 9738 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9739 freebsd2.*) 9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_direct=yes 9742 hardcode_minus_L=yes 9743 hardcode_shlibpath_var=no 9744 ;; 9745 9746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9747 freebsd* | dragonfly*) 9748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9749 hardcode_libdir_flag_spec='-R$libdir' 9750 hardcode_direct=yes 9751 hardcode_shlibpath_var=no 9752 ;; 9753 9754 hpux9*) 9755 if test "$GCC" = yes; then 9756 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' 9757 else 9758 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' 9759 fi 9760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9761 hardcode_libdir_separator=: 9762 hardcode_direct=yes 9763 9764 # hardcode_minus_L: Not really in the search PATH, 9765 # but as the default location of the library. 9766 hardcode_minus_L=yes 9767 export_dynamic_flag_spec='${wl}-E' 9768 ;; 9769 9770 hpux10*) 9771 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9772 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9773 else 9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9775 fi 9776 if test "$with_gnu_ld" = no; then 9777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9778 hardcode_libdir_separator=: 9779 hardcode_direct=yes 9780 hardcode_direct_absolute=yes 9781 export_dynamic_flag_spec='${wl}-E' 9782 # hardcode_minus_L: Not really in the search PATH, 9783 # but as the default location of the library. 9784 hardcode_minus_L=yes 9785 fi 9786 ;; 9787 9788 hpux11*) 9789 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9790 case $host_cpu in 9791 hppa*64*) 9792 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9793 ;; 9794 ia64*) 9795 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9796 ;; 9797 *) 9798 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9799 ;; 9800 esac 9801 else 9802 case $host_cpu in 9803 hppa*64*) 9804 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9805 ;; 9806 ia64*) 9807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9808 ;; 9809 *) 9810 9811 # Older versions of the 11.00 compiler do not understand -b yet 9812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9814 $as_echo_n "checking if $CC understands -b... " >&6; } 9815 if ${lt_cv_prog_compiler__b+:} false; then : 9816 $as_echo_n "(cached) " >&6 9817 else 9818 lt_cv_prog_compiler__b=no 9819 save_LDFLAGS="$LDFLAGS" 9820 LDFLAGS="$LDFLAGS -b" 9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9823 # The linker can only warn and ignore the option if not recognized 9824 # So say no if there are warnings 9825 if test -s conftest.err; then 9826 # Append any errors to the config.log. 9827 cat conftest.err 1>&5 9828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9830 if diff conftest.exp conftest.er2 >/dev/null; then 9831 lt_cv_prog_compiler__b=yes 9832 fi 9833 else 9834 lt_cv_prog_compiler__b=yes 9835 fi 9836 fi 9837 $RM -r conftest* 9838 LDFLAGS="$save_LDFLAGS" 9839 9840 fi 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9842 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9843 9844 if test x"$lt_cv_prog_compiler__b" = xyes; then 9845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9846 else 9847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9848 fi 9849 9850 ;; 9851 esac 9852 fi 9853 if test "$with_gnu_ld" = no; then 9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9855 hardcode_libdir_separator=: 9856 9857 case $host_cpu in 9858 hppa*64*|ia64*) 9859 hardcode_direct=no 9860 hardcode_shlibpath_var=no 9861 ;; 9862 *) 9863 hardcode_direct=yes 9864 hardcode_direct_absolute=yes 9865 export_dynamic_flag_spec='${wl}-E' 9866 9867 # hardcode_minus_L: Not really in the search PATH, 9868 # but as the default location of the library. 9869 hardcode_minus_L=yes 9870 ;; 9871 esac 9872 fi 9873 ;; 9874 9875 irix5* | irix6* | nonstopux*) 9876 if test "$GCC" = yes; then 9877 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' 9878 # Try to use the -exported_symbol ld option, if it does not 9879 # work, assume that -exports_file does not work either and 9880 # implicitly export all symbols. 9881 # This should be the same for all languages, so no per-tag cache variable. 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9883 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9884 if ${lt_cv_irix_exported_symbol+:} false; then : 9885 $as_echo_n "(cached) " >&6 9886 else 9887 save_LDFLAGS="$LDFLAGS" 9888 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890 /* end confdefs.h. */ 9891 int foo (void) { return 0; } 9892 _ACEOF 9893 if ac_fn_c_try_link "$LINENO"; then : 9894 lt_cv_irix_exported_symbol=yes 9895 else 9896 lt_cv_irix_exported_symbol=no 9897 fi 9898 rm -f core conftest.err conftest.$ac_objext \ 9899 conftest$ac_exeext conftest.$ac_ext 9900 LDFLAGS="$save_LDFLAGS" 9901 fi 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9903 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 9904 if test "$lt_cv_irix_exported_symbol" = yes; then 9905 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' 9906 fi 9907 else 9908 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' 9909 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' 9910 fi 9911 archive_cmds_need_lc='no' 9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9913 hardcode_libdir_separator=: 9914 inherit_rpath=yes 9915 link_all_deplibs=yes 9916 ;; 9917 9918 netbsd* | netbsdelf*-gnu) 9919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9921 else 9922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9923 fi 9924 hardcode_libdir_flag_spec='-R$libdir' 9925 hardcode_direct=yes 9926 hardcode_shlibpath_var=no 9927 ;; 9928 9929 newsos6) 9930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9931 hardcode_direct=yes 9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9933 hardcode_libdir_separator=: 9934 hardcode_shlibpath_var=no 9935 ;; 9936 9937 *nto* | *qnx*) 9938 ;; 9939 9940 openbsd*) 9941 if test -f /usr/libexec/ld.so; then 9942 hardcode_direct=yes 9943 hardcode_shlibpath_var=no 9944 hardcode_direct_absolute=yes 9945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9947 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9948 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9949 export_dynamic_flag_spec='${wl}-E' 9950 else 9951 case $host_os in 9952 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9954 hardcode_libdir_flag_spec='-R$libdir' 9955 ;; 9956 *) 9957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9958 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9959 ;; 9960 esac 9961 fi 9962 else 9963 ld_shlibs=no 9964 fi 9965 ;; 9966 9967 os2*) 9968 hardcode_libdir_flag_spec='-L$libdir' 9969 hardcode_minus_L=yes 9970 allow_undefined_flag=unsupported 9971 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' 9972 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9973 ;; 9974 9975 osf3*) 9976 if test "$GCC" = yes; then 9977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9978 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' 9979 else 9980 allow_undefined_flag=' -expect_unresolved \*' 9981 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' 9982 fi 9983 archive_cmds_need_lc='no' 9984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9985 hardcode_libdir_separator=: 9986 ;; 9987 9988 osf4* | osf5*) # as osf3* with the addition of -msym flag 9989 if test "$GCC" = yes; then 9990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9991 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' 9992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9993 else 9994 allow_undefined_flag=' -expect_unresolved \*' 9995 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' 9996 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~ 9997 $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' 9998 9999 # Both c and cxx compiler support -rpath directly 10000 hardcode_libdir_flag_spec='-rpath $libdir' 10001 fi 10002 archive_cmds_need_lc='no' 10003 hardcode_libdir_separator=: 10004 ;; 10005 10006 solaris*) 10007 no_undefined_flag=' -z defs' 10008 if test "$GCC" = yes; then 10009 wlarc='${wl}' 10010 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10012 $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' 10013 else 10014 case `$CC -V 2>&1` in 10015 *"Compilers 5.0"*) 10016 wlarc='' 10017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10018 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10020 ;; 10021 *) 10022 wlarc='${wl}' 10023 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10024 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10025 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10026 ;; 10027 esac 10028 fi 10029 hardcode_libdir_flag_spec='-R$libdir' 10030 hardcode_shlibpath_var=no 10031 case $host_os in 10032 solaris2.[0-5] | solaris2.[0-5].*) ;; 10033 *) 10034 # The compiler driver will combine and reorder linker options, 10035 # but understands `-z linker_flag'. GCC discards it without `$wl', 10036 # but is careful enough not to reorder. 10037 # Supported since Solaris 2.6 (maybe 2.5.1?) 10038 if test "$GCC" = yes; then 10039 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10040 else 10041 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10042 fi 10043 ;; 10044 esac 10045 link_all_deplibs=yes 10046 ;; 10047 10048 sunos4*) 10049 if test "x$host_vendor" = xsequent; then 10050 # Use $CC to link under sequent, because it throws in some extra .o 10051 # files that make .init and .fini sections work. 10052 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10053 else 10054 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10055 fi 10056 hardcode_libdir_flag_spec='-L$libdir' 10057 hardcode_direct=yes 10058 hardcode_minus_L=yes 10059 hardcode_shlibpath_var=no 10060 ;; 10061 10062 sysv4) 10063 case $host_vendor in 10064 sni) 10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10066 hardcode_direct=yes # is this really true??? 10067 ;; 10068 siemens) 10069 ## LD is ld it makes a PLAMLIB 10070 ## CC just makes a GrossModule. 10071 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10072 reload_cmds='$CC -r -o $output$reload_objs' 10073 hardcode_direct=no 10074 ;; 10075 motorola) 10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10077 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10078 ;; 10079 esac 10080 runpath_var='LD_RUN_PATH' 10081 hardcode_shlibpath_var=no 10082 ;; 10083 10084 sysv4.3*) 10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10086 hardcode_shlibpath_var=no 10087 export_dynamic_flag_spec='-Bexport' 10088 ;; 10089 10090 sysv4*MP*) 10091 if test -d /usr/nec; then 10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10093 hardcode_shlibpath_var=no 10094 runpath_var=LD_RUN_PATH 10095 hardcode_runpath_var=yes 10096 ld_shlibs=yes 10097 fi 10098 ;; 10099 10100 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10101 no_undefined_flag='${wl}-z,text' 10102 archive_cmds_need_lc=no 10103 hardcode_shlibpath_var=no 10104 runpath_var='LD_RUN_PATH' 10105 10106 if test "$GCC" = yes; then 10107 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10108 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10109 else 10110 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10111 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10112 fi 10113 ;; 10114 10115 sysv5* | sco3.2v5* | sco5v6*) 10116 # Note: We can NOT use -z defs as we might desire, because we do not 10117 # link with -lc, and that would cause any symbols used from libc to 10118 # always be unresolved, which means just about no library would 10119 # ever link correctly. If we're not using GNU ld we use -z text 10120 # though, which does catch some bad symbols but isn't as heavy-handed 10121 # as -z defs. 10122 no_undefined_flag='${wl}-z,text' 10123 allow_undefined_flag='${wl}-z,nodefs' 10124 archive_cmds_need_lc=no 10125 hardcode_shlibpath_var=no 10126 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10127 hardcode_libdir_separator=':' 10128 link_all_deplibs=yes 10129 export_dynamic_flag_spec='${wl}-Bexport' 10130 runpath_var='LD_RUN_PATH' 10131 10132 if test "$GCC" = yes; then 10133 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10134 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10135 else 10136 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10137 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10138 fi 10139 ;; 10140 10141 uts4*) 10142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10143 hardcode_libdir_flag_spec='-L$libdir' 10144 hardcode_shlibpath_var=no 10145 ;; 10146 10147 *) 10148 ld_shlibs=no 10149 ;; 10150 esac 10151 10152 if test x$host_vendor = xsni; then 10153 case $host in 10154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10155 export_dynamic_flag_spec='${wl}-Blargedynsym' 10156 ;; 10157 esac 10158 fi 10159 fi 10160 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10162 $as_echo "$ld_shlibs" >&6; } 10163 test "$ld_shlibs" = no && can_build_shared=no 10164 10165 with_gnu_ld=$with_gnu_ld 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 # 10182 # Do we need to explicitly link libc? 10183 # 10184 case "x$archive_cmds_need_lc" in 10185 x|xyes) 10186 # Assume -lc should be added 10187 archive_cmds_need_lc=yes 10188 10189 if test "$enable_shared" = yes && test "$GCC" = yes; then 10190 case $archive_cmds in 10191 *'~'*) 10192 # FIXME: we may have to deal with multi-command sequences. 10193 ;; 10194 '$CC '*) 10195 # Test whether the compiler implicitly links with -lc since on some 10196 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10197 # to ld, don't add -lc before -lgcc. 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10199 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10200 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10201 $as_echo_n "(cached) " >&6 10202 else 10203 $RM conftest* 10204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10205 10206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10207 (eval $ac_compile) 2>&5 10208 ac_status=$? 10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10210 test $ac_status = 0; } 2>conftest.err; then 10211 soname=conftest 10212 lib=conftest 10213 libobjs=conftest.$ac_objext 10214 deplibs= 10215 wl=$lt_prog_compiler_wl 10216 pic_flag=$lt_prog_compiler_pic 10217 compiler_flags=-v 10218 linker_flags=-v 10219 verstring= 10220 output_objdir=. 10221 libname=conftest 10222 lt_save_allow_undefined_flag=$allow_undefined_flag 10223 allow_undefined_flag= 10224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10225 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10226 ac_status=$? 10227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10228 test $ac_status = 0; } 10229 then 10230 lt_cv_archive_cmds_need_lc=no 10231 else 10232 lt_cv_archive_cmds_need_lc=yes 10233 fi 10234 allow_undefined_flag=$lt_save_allow_undefined_flag 10235 else 10236 cat conftest.err 1>&5 10237 fi 10238 $RM conftest* 10239 10240 fi 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10242 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10243 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10244 ;; 10245 esac 10246 fi 10247 ;; 10248 esac 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10402 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10403 10404 if test "$GCC" = yes; then 10405 case $host_os in 10406 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10407 *) lt_awk_arg="/^libraries:/" ;; 10408 esac 10409 case $host_os in 10410 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10411 *) lt_sed_strip_eq="s,=/,/,g" ;; 10412 esac 10413 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10414 case $lt_search_path_spec in 10415 *\;*) 10416 # if the path contains ";" then we assume it to be the separator 10417 # otherwise default to the standard path separator (i.e. ":") - it is 10418 # assumed that no part of a normal pathname contains ";" but that should 10419 # okay in the real world where ";" in dirpaths is itself problematic. 10420 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10421 ;; 10422 *) 10423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10424 ;; 10425 esac 10426 # Ok, now we have the path, separated by spaces, we can step through it 10427 # and add multilib dir if necessary. 10428 lt_tmp_lt_search_path_spec= 10429 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10430 for lt_sys_path in $lt_search_path_spec; do 10431 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10433 else 10434 test -d "$lt_sys_path" && \ 10435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10436 fi 10437 done 10438 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10439 BEGIN {RS=" "; FS="/|\n";} { 10440 lt_foo=""; 10441 lt_count=0; 10442 for (lt_i = NF; lt_i > 0; lt_i--) { 10443 if ($lt_i != "" && $lt_i != ".") { 10444 if ($lt_i == "..") { 10445 lt_count++; 10446 } else { 10447 if (lt_count == 0) { 10448 lt_foo="/" $lt_i lt_foo; 10449 } else { 10450 lt_count--; 10451 } 10452 } 10453 } 10454 } 10455 if (lt_foo != "") { lt_freq[lt_foo]++; } 10456 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10457 }'` 10458 # AWK program above erroneously prepends '/' to C:/dos/paths 10459 # for these hosts. 10460 case $host_os in 10461 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10462 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10463 esac 10464 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10465 else 10466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10467 fi 10468 library_names_spec= 10469 libname_spec='lib$name' 10470 soname_spec= 10471 shrext_cmds=".so" 10472 postinstall_cmds= 10473 postuninstall_cmds= 10474 finish_cmds= 10475 finish_eval= 10476 shlibpath_var= 10477 shlibpath_overrides_runpath=unknown 10478 version_type=none 10479 dynamic_linker="$host_os ld.so" 10480 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10481 need_lib_prefix=unknown 10482 hardcode_into_libs=no 10483 10484 # when you set need_version to no, make sure it does not cause -set_version 10485 # flags to be left without arguments 10486 need_version=unknown 10487 10488 case $host_os in 10489 aix3*) 10490 version_type=linux # correct to gnu/linux during the next big refactor 10491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10492 shlibpath_var=LIBPATH 10493 10494 # AIX 3 has no versioning support, so we append a major version to the name. 10495 soname_spec='${libname}${release}${shared_ext}$major' 10496 ;; 10497 10498 aix[4-9]*) 10499 version_type=linux # correct to gnu/linux during the next big refactor 10500 need_lib_prefix=no 10501 need_version=no 10502 hardcode_into_libs=yes 10503 if test "$host_cpu" = ia64; then 10504 # AIX 5 supports IA64 10505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10506 shlibpath_var=LD_LIBRARY_PATH 10507 else 10508 # With GCC up to 2.95.x, collect2 would create an import file 10509 # for dependence libraries. The import file would start with 10510 # the line `#! .'. This would cause the generated library to 10511 # depend on `.', always an invalid library. This was fixed in 10512 # development snapshots of GCC prior to 3.0. 10513 case $host_os in 10514 aix4 | aix4.[01] | aix4.[01].*) 10515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10516 echo ' yes ' 10517 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10518 : 10519 else 10520 can_build_shared=no 10521 fi 10522 ;; 10523 esac 10524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10525 # soname into executable. Probably we can add versioning support to 10526 # collect2, so additional links can be useful in future. 10527 if test "$aix_use_runtimelinking" = yes; then 10528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10529 # instead of lib<name>.a to let people know that these are not 10530 # typical AIX shared libraries. 10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10532 else 10533 # We preserve .a as extension for shared libraries through AIX4.2 10534 # and later when we are not doing run time linking. 10535 library_names_spec='${libname}${release}.a $libname.a' 10536 soname_spec='${libname}${release}${shared_ext}$major' 10537 fi 10538 shlibpath_var=LIBPATH 10539 fi 10540 ;; 10541 10542 amigaos*) 10543 case $host_cpu in 10544 powerpc) 10545 # Since July 2007 AmigaOS4 officially supports .so libraries. 10546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10548 ;; 10549 m68k) 10550 library_names_spec='$libname.ixlibrary $libname.a' 10551 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10552 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' 10553 ;; 10554 esac 10555 ;; 10556 10557 beos*) 10558 library_names_spec='${libname}${shared_ext}' 10559 dynamic_linker="$host_os ld.so" 10560 shlibpath_var=LIBRARY_PATH 10561 ;; 10562 10563 bsdi[45]*) 10564 version_type=linux # correct to gnu/linux during the next big refactor 10565 need_version=no 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10567 soname_spec='${libname}${release}${shared_ext}$major' 10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10572 # the default ld.so.conf also contains /usr/contrib/lib and 10573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10574 # libtool to hard-code these into programs 10575 ;; 10576 10577 cygwin* | mingw* | pw32* | cegcc*) 10578 version_type=windows 10579 shrext_cmds=".dll" 10580 need_version=no 10581 need_lib_prefix=no 10582 10583 case $GCC,$cc_basename in 10584 yes,*) 10585 # gcc 10586 library_names_spec='$libname.dll.a' 10587 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10588 postinstall_cmds='base_file=`basename \${file}`~ 10589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10590 dldir=$destdir/`dirname \$dlpath`~ 10591 test -d \$dldir || mkdir -p \$dldir~ 10592 $install_prog $dir/$dlname \$dldir/$dlname~ 10593 chmod a+x \$dldir/$dlname~ 10594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10596 fi' 10597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10598 dlpath=$dir/\$dldll~ 10599 $RM \$dlpath' 10600 shlibpath_overrides_runpath=yes 10601 10602 case $host_os in 10603 cygwin*) 10604 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10605 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10606 10607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10608 ;; 10609 mingw* | cegcc*) 10610 # MinGW DLLs use traditional 'lib' prefix 10611 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10612 ;; 10613 pw32*) 10614 # pw32 DLLs use 'pw' prefix rather than 'lib' 10615 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10616 ;; 10617 esac 10618 dynamic_linker='Win32 ld.exe' 10619 ;; 10620 10621 *,cl*) 10622 # Native MSVC 10623 libname_spec='$name' 10624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10625 library_names_spec='${libname}.dll.lib' 10626 10627 case $build_os in 10628 mingw*) 10629 sys_lib_search_path_spec= 10630 lt_save_ifs=$IFS 10631 IFS=';' 10632 for lt_path in $LIB 10633 do 10634 IFS=$lt_save_ifs 10635 # Let DOS variable expansion print the short 8.3 style file name. 10636 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10637 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10638 done 10639 IFS=$lt_save_ifs 10640 # Convert to MSYS style. 10641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10642 ;; 10643 cygwin*) 10644 # Convert to unix form, then to dos form, then back to unix form 10645 # but this time dos style (no spaces!) so that the unix form looks 10646 # like /cygdrive/c/PROGRA~1:/cygdr... 10647 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10648 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10649 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10650 ;; 10651 *) 10652 sys_lib_search_path_spec="$LIB" 10653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10654 # It is most probably a Windows format PATH. 10655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10656 else 10657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10658 fi 10659 # FIXME: find the short name or the path components, as spaces are 10660 # common. (e.g. "Program Files" -> "PROGRA~1") 10661 ;; 10662 esac 10663 10664 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10665 postinstall_cmds='base_file=`basename \${file}`~ 10666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10667 dldir=$destdir/`dirname \$dlpath`~ 10668 test -d \$dldir || mkdir -p \$dldir~ 10669 $install_prog $dir/$dlname \$dldir/$dlname' 10670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10671 dlpath=$dir/\$dldll~ 10672 $RM \$dlpath' 10673 shlibpath_overrides_runpath=yes 10674 dynamic_linker='Win32 link.exe' 10675 ;; 10676 10677 *) 10678 # Assume MSVC wrapper 10679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10680 dynamic_linker='Win32 ld.exe' 10681 ;; 10682 esac 10683 # FIXME: first we should search . and the directory the executable is in 10684 shlibpath_var=PATH 10685 ;; 10686 10687 darwin* | rhapsody*) 10688 dynamic_linker="$host_os dyld" 10689 version_type=darwin 10690 need_lib_prefix=no 10691 need_version=no 10692 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10693 soname_spec='${libname}${release}${major}$shared_ext' 10694 shlibpath_overrides_runpath=yes 10695 shlibpath_var=DYLD_LIBRARY_PATH 10696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10697 10698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10700 ;; 10701 10702 dgux*) 10703 version_type=linux # correct to gnu/linux during the next big refactor 10704 need_lib_prefix=no 10705 need_version=no 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 shlibpath_var=LD_LIBRARY_PATH 10709 ;; 10710 10711 freebsd* | dragonfly*) 10712 # DragonFly does not have aout. When/if they implement a new 10713 # versioning mechanism, adjust this. 10714 if test -x /usr/bin/objformat; then 10715 objformat=`/usr/bin/objformat` 10716 else 10717 case $host_os in 10718 freebsd[23].*) objformat=aout ;; 10719 *) objformat=elf ;; 10720 esac 10721 fi 10722 version_type=freebsd-$objformat 10723 case $version_type in 10724 freebsd-elf*) 10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10726 need_version=no 10727 need_lib_prefix=no 10728 ;; 10729 freebsd-*) 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10731 need_version=yes 10732 ;; 10733 esac 10734 shlibpath_var=LD_LIBRARY_PATH 10735 case $host_os in 10736 freebsd2.*) 10737 shlibpath_overrides_runpath=yes 10738 ;; 10739 freebsd3.[01]* | freebsdelf3.[01]*) 10740 shlibpath_overrides_runpath=yes 10741 hardcode_into_libs=yes 10742 ;; 10743 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10744 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10745 shlibpath_overrides_runpath=no 10746 hardcode_into_libs=yes 10747 ;; 10748 *) # from 4.6 on, and DragonFly 10749 shlibpath_overrides_runpath=yes 10750 hardcode_into_libs=yes 10751 ;; 10752 esac 10753 ;; 10754 10755 haiku*) 10756 version_type=linux # correct to gnu/linux during the next big refactor 10757 need_lib_prefix=no 10758 need_version=no 10759 dynamic_linker="$host_os runtime_loader" 10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10761 soname_spec='${libname}${release}${shared_ext}$major' 10762 shlibpath_var=LIBRARY_PATH 10763 shlibpath_overrides_runpath=yes 10764 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10765 hardcode_into_libs=yes 10766 ;; 10767 10768 hpux9* | hpux10* | hpux11*) 10769 # Give a soname corresponding to the major version so that dld.sl refuses to 10770 # link against other versions. 10771 version_type=sunos 10772 need_lib_prefix=no 10773 need_version=no 10774 case $host_cpu in 10775 ia64*) 10776 shrext_cmds='.so' 10777 hardcode_into_libs=yes 10778 dynamic_linker="$host_os dld.so" 10779 shlibpath_var=LD_LIBRARY_PATH 10780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10782 soname_spec='${libname}${release}${shared_ext}$major' 10783 if test "X$HPUX_IA64_MODE" = X32; then 10784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10785 else 10786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10787 fi 10788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10789 ;; 10790 hppa*64*) 10791 shrext_cmds='.sl' 10792 hardcode_into_libs=yes 10793 dynamic_linker="$host_os dld.sl" 10794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10797 soname_spec='${libname}${release}${shared_ext}$major' 10798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10800 ;; 10801 *) 10802 shrext_cmds='.sl' 10803 dynamic_linker="$host_os dld.sl" 10804 shlibpath_var=SHLIB_PATH 10805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10807 soname_spec='${libname}${release}${shared_ext}$major' 10808 ;; 10809 esac 10810 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10811 postinstall_cmds='chmod 555 $lib' 10812 # or fails outright, so override atomically: 10813 install_override_mode=555 10814 ;; 10815 10816 interix[3-9]*) 10817 version_type=linux # correct to gnu/linux during the next big refactor 10818 need_lib_prefix=no 10819 need_version=no 10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10821 soname_spec='${libname}${release}${shared_ext}$major' 10822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10823 shlibpath_var=LD_LIBRARY_PATH 10824 shlibpath_overrides_runpath=no 10825 hardcode_into_libs=yes 10826 ;; 10827 10828 irix5* | irix6* | nonstopux*) 10829 case $host_os in 10830 nonstopux*) version_type=nonstopux ;; 10831 *) 10832 if test "$lt_cv_prog_gnu_ld" = yes; then 10833 version_type=linux # correct to gnu/linux during the next big refactor 10834 else 10835 version_type=irix 10836 fi ;; 10837 esac 10838 need_lib_prefix=no 10839 need_version=no 10840 soname_spec='${libname}${release}${shared_ext}$major' 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10842 case $host_os in 10843 irix5* | nonstopux*) 10844 libsuff= shlibsuff= 10845 ;; 10846 *) 10847 case $LD in # libtool.m4 will add one of these switches to LD 10848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10849 libsuff= shlibsuff= libmagic=32-bit;; 10850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10851 libsuff=32 shlibsuff=N32 libmagic=N32;; 10852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10853 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10854 *) libsuff= shlibsuff= libmagic=never-match;; 10855 esac 10856 ;; 10857 esac 10858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10859 shlibpath_overrides_runpath=no 10860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10862 hardcode_into_libs=yes 10863 ;; 10864 10865 # No shared lib support for Linux oldld, aout, or coff. 10866 linux*oldld* | linux*aout* | linux*coff*) 10867 dynamic_linker=no 10868 ;; 10869 10870 # This must be glibc/ELF. 10871 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10872 version_type=linux # correct to gnu/linux during the next big refactor 10873 need_lib_prefix=no 10874 need_version=no 10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10876 soname_spec='${libname}${release}${shared_ext}$major' 10877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10878 shlibpath_var=LD_LIBRARY_PATH 10879 shlibpath_overrides_runpath=no 10880 10881 # Some binutils ld are patched to set DT_RUNPATH 10882 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10883 $as_echo_n "(cached) " >&6 10884 else 10885 lt_cv_shlibpath_overrides_runpath=no 10886 save_LDFLAGS=$LDFLAGS 10887 save_libdir=$libdir 10888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10891 /* end confdefs.h. */ 10892 10893 int 10894 main () 10895 { 10896 10897 ; 10898 return 0; 10899 } 10900 _ACEOF 10901 if ac_fn_c_try_link "$LINENO"; then : 10902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10903 lt_cv_shlibpath_overrides_runpath=yes 10904 fi 10905 fi 10906 rm -f core conftest.err conftest.$ac_objext \ 10907 conftest$ac_exeext conftest.$ac_ext 10908 LDFLAGS=$save_LDFLAGS 10909 libdir=$save_libdir 10910 10911 fi 10912 10913 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10914 10915 # This implies no fast_install, which is unacceptable. 10916 # Some rework will be needed to allow for fast_install 10917 # before this can be enabled. 10918 hardcode_into_libs=yes 10919 10920 # Append ld.so.conf contents to the search path 10921 if test -f /etc/ld.so.conf; then 10922 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' ' '` 10923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10924 fi 10925 10926 # We used to test for /lib/ld.so.1 and disable shared libraries on 10927 # powerpc, because MkLinux only supported shared libraries with the 10928 # GNU dynamic linker. Since this was broken with cross compilers, 10929 # most powerpc-linux boxes support dynamic linking these days and 10930 # people can always --disable-shared, the test was removed, and we 10931 # assume the GNU/Linux dynamic linker is in use. 10932 dynamic_linker='GNU/Linux ld.so' 10933 ;; 10934 10935 netbsdelf*-gnu) 10936 version_type=linux 10937 need_lib_prefix=no 10938 need_version=no 10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10940 soname_spec='${libname}${release}${shared_ext}$major' 10941 shlibpath_var=LD_LIBRARY_PATH 10942 shlibpath_overrides_runpath=no 10943 hardcode_into_libs=yes 10944 dynamic_linker='NetBSD ld.elf_so' 10945 ;; 10946 10947 netbsd*) 10948 version_type=sunos 10949 need_lib_prefix=no 10950 need_version=no 10951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10954 dynamic_linker='NetBSD (a.out) ld.so' 10955 else 10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10957 soname_spec='${libname}${release}${shared_ext}$major' 10958 dynamic_linker='NetBSD ld.elf_so' 10959 fi 10960 shlibpath_var=LD_LIBRARY_PATH 10961 shlibpath_overrides_runpath=yes 10962 hardcode_into_libs=yes 10963 ;; 10964 10965 newsos6) 10966 version_type=linux # correct to gnu/linux during the next big refactor 10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10968 shlibpath_var=LD_LIBRARY_PATH 10969 shlibpath_overrides_runpath=yes 10970 ;; 10971 10972 *nto* | *qnx*) 10973 version_type=qnx 10974 need_lib_prefix=no 10975 need_version=no 10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10977 soname_spec='${libname}${release}${shared_ext}$major' 10978 shlibpath_var=LD_LIBRARY_PATH 10979 shlibpath_overrides_runpath=no 10980 hardcode_into_libs=yes 10981 dynamic_linker='ldqnx.so' 10982 ;; 10983 10984 openbsd*) 10985 version_type=sunos 10986 sys_lib_dlsearch_path_spec="/usr/lib" 10987 need_lib_prefix=no 10988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10989 case $host_os in 10990 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10991 *) need_version=no ;; 10992 esac 10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10995 shlibpath_var=LD_LIBRARY_PATH 10996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10997 case $host_os in 10998 openbsd2.[89] | openbsd2.[89].*) 10999 shlibpath_overrides_runpath=no 11000 ;; 11001 *) 11002 shlibpath_overrides_runpath=yes 11003 ;; 11004 esac 11005 else 11006 shlibpath_overrides_runpath=yes 11007 fi 11008 ;; 11009 11010 os2*) 11011 libname_spec='$name' 11012 shrext_cmds=".dll" 11013 need_lib_prefix=no 11014 library_names_spec='$libname${shared_ext} $libname.a' 11015 dynamic_linker='OS/2 ld.exe' 11016 shlibpath_var=LIBPATH 11017 ;; 11018 11019 osf3* | osf4* | osf5*) 11020 version_type=osf 11021 need_lib_prefix=no 11022 need_version=no 11023 soname_spec='${libname}${release}${shared_ext}$major' 11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11025 shlibpath_var=LD_LIBRARY_PATH 11026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11028 ;; 11029 11030 rdos*) 11031 dynamic_linker=no 11032 ;; 11033 11034 solaris*) 11035 version_type=linux # correct to gnu/linux during the next big refactor 11036 need_lib_prefix=no 11037 need_version=no 11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11039 soname_spec='${libname}${release}${shared_ext}$major' 11040 shlibpath_var=LD_LIBRARY_PATH 11041 shlibpath_overrides_runpath=yes 11042 hardcode_into_libs=yes 11043 # ldd complains unless libraries are executable 11044 postinstall_cmds='chmod +x $lib' 11045 ;; 11046 11047 sunos4*) 11048 version_type=sunos 11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11050 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11051 shlibpath_var=LD_LIBRARY_PATH 11052 shlibpath_overrides_runpath=yes 11053 if test "$with_gnu_ld" = yes; then 11054 need_lib_prefix=no 11055 fi 11056 need_version=yes 11057 ;; 11058 11059 sysv4 | sysv4.3*) 11060 version_type=linux # correct to gnu/linux during the next big refactor 11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11062 soname_spec='${libname}${release}${shared_ext}$major' 11063 shlibpath_var=LD_LIBRARY_PATH 11064 case $host_vendor in 11065 sni) 11066 shlibpath_overrides_runpath=no 11067 need_lib_prefix=no 11068 runpath_var=LD_RUN_PATH 11069 ;; 11070 siemens) 11071 need_lib_prefix=no 11072 ;; 11073 motorola) 11074 need_lib_prefix=no 11075 need_version=no 11076 shlibpath_overrides_runpath=no 11077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11078 ;; 11079 esac 11080 ;; 11081 11082 sysv4*MP*) 11083 if test -d /usr/nec ;then 11084 version_type=linux # correct to gnu/linux during the next big refactor 11085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11086 soname_spec='$libname${shared_ext}.$major' 11087 shlibpath_var=LD_LIBRARY_PATH 11088 fi 11089 ;; 11090 11091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11092 version_type=freebsd-elf 11093 need_lib_prefix=no 11094 need_version=no 11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11096 soname_spec='${libname}${release}${shared_ext}$major' 11097 shlibpath_var=LD_LIBRARY_PATH 11098 shlibpath_overrides_runpath=yes 11099 hardcode_into_libs=yes 11100 if test "$with_gnu_ld" = yes; then 11101 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11102 else 11103 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11104 case $host_os in 11105 sco3.2v5*) 11106 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11107 ;; 11108 esac 11109 fi 11110 sys_lib_dlsearch_path_spec='/usr/lib' 11111 ;; 11112 11113 tpf*) 11114 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11115 version_type=linux # correct to gnu/linux during the next big refactor 11116 need_lib_prefix=no 11117 need_version=no 11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11119 shlibpath_var=LD_LIBRARY_PATH 11120 shlibpath_overrides_runpath=no 11121 hardcode_into_libs=yes 11122 ;; 11123 11124 uts4*) 11125 version_type=linux # correct to gnu/linux during the next big refactor 11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11127 soname_spec='${libname}${release}${shared_ext}$major' 11128 shlibpath_var=LD_LIBRARY_PATH 11129 ;; 11130 11131 *) 11132 dynamic_linker=no 11133 ;; 11134 esac 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11136 $as_echo "$dynamic_linker" >&6; } 11137 test "$dynamic_linker" = no && can_build_shared=no 11138 11139 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11140 if test "$GCC" = yes; then 11141 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11142 fi 11143 11144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11145 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11146 fi 11147 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11148 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11149 fi 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11243 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11244 hardcode_action= 11245 if test -n "$hardcode_libdir_flag_spec" || 11246 test -n "$runpath_var" || 11247 test "X$hardcode_automatic" = "Xyes" ; then 11248 11249 # We can hardcode non-existent directories. 11250 if test "$hardcode_direct" != no && 11251 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11252 # have to relink, otherwise we might link with an installed library 11253 # when we should be linking with a yet-to-be-installed one 11254 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11255 test "$hardcode_minus_L" != no; then 11256 # Linking always hardcodes the temporary library directory. 11257 hardcode_action=relink 11258 else 11259 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11260 hardcode_action=immediate 11261 fi 11262 else 11263 # We cannot hardcode anything, or else we can only hardcode existing 11264 # directories. 11265 hardcode_action=unsupported 11266 fi 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11268 $as_echo "$hardcode_action" >&6; } 11269 11270 if test "$hardcode_action" = relink || 11271 test "$inherit_rpath" = yes; then 11272 # Fast installation is not supported 11273 enable_fast_install=no 11274 elif test "$shlibpath_overrides_runpath" = yes || 11275 test "$enable_shared" = no; then 11276 # Fast installation is not necessary 11277 enable_fast_install=needless 11278 fi 11279 11280 11281 11282 11283 11284 11285 if test "x$enable_dlopen" != xyes; then 11286 enable_dlopen=unknown 11287 enable_dlopen_self=unknown 11288 enable_dlopen_self_static=unknown 11289 else 11290 lt_cv_dlopen=no 11291 lt_cv_dlopen_libs= 11292 11293 case $host_os in 11294 beos*) 11295 lt_cv_dlopen="load_add_on" 11296 lt_cv_dlopen_libs= 11297 lt_cv_dlopen_self=yes 11298 ;; 11299 11300 mingw* | pw32* | cegcc*) 11301 lt_cv_dlopen="LoadLibrary" 11302 lt_cv_dlopen_libs= 11303 ;; 11304 11305 cygwin*) 11306 lt_cv_dlopen="dlopen" 11307 lt_cv_dlopen_libs= 11308 ;; 11309 11310 darwin*) 11311 # if libdl is installed we need to link against it 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11313 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11314 if ${ac_cv_lib_dl_dlopen+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316 else 11317 ac_check_lib_save_LIBS=$LIBS 11318 LIBS="-ldl $LIBS" 11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320 /* end confdefs.h. */ 11321 11322 /* Override any GCC internal prototype to avoid an error. 11323 Use char because int might match the return type of a GCC 11324 builtin and then its argument prototype would still apply. */ 11325 #ifdef __cplusplus 11326 extern "C" 11327 #endif 11328 char dlopen (); 11329 int 11330 main () 11331 { 11332 return dlopen (); 11333 ; 11334 return 0; 11335 } 11336 _ACEOF 11337 if ac_fn_c_try_link "$LINENO"; then : 11338 ac_cv_lib_dl_dlopen=yes 11339 else 11340 ac_cv_lib_dl_dlopen=no 11341 fi 11342 rm -f core conftest.err conftest.$ac_objext \ 11343 conftest$ac_exeext conftest.$ac_ext 11344 LIBS=$ac_check_lib_save_LIBS 11345 fi 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11348 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11350 else 11351 11352 lt_cv_dlopen="dyld" 11353 lt_cv_dlopen_libs= 11354 lt_cv_dlopen_self=yes 11355 11356 fi 11357 11358 ;; 11359 11360 *) 11361 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11362 if test "x$ac_cv_func_shl_load" = xyes; then : 11363 lt_cv_dlopen="shl_load" 11364 else 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11366 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11367 if ${ac_cv_lib_dld_shl_load+:} false; then : 11368 $as_echo_n "(cached) " >&6 11369 else 11370 ac_check_lib_save_LIBS=$LIBS 11371 LIBS="-ldld $LIBS" 11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11373 /* end confdefs.h. */ 11374 11375 /* Override any GCC internal prototype to avoid an error. 11376 Use char because int might match the return type of a GCC 11377 builtin and then its argument prototype would still apply. */ 11378 #ifdef __cplusplus 11379 extern "C" 11380 #endif 11381 char shl_load (); 11382 int 11383 main () 11384 { 11385 return shl_load (); 11386 ; 11387 return 0; 11388 } 11389 _ACEOF 11390 if ac_fn_c_try_link "$LINENO"; then : 11391 ac_cv_lib_dld_shl_load=yes 11392 else 11393 ac_cv_lib_dld_shl_load=no 11394 fi 11395 rm -f core conftest.err conftest.$ac_objext \ 11396 conftest$ac_exeext conftest.$ac_ext 11397 LIBS=$ac_check_lib_save_LIBS 11398 fi 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11400 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11401 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11402 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11403 else 11404 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11405 if test "x$ac_cv_func_dlopen" = xyes; then : 11406 lt_cv_dlopen="dlopen" 11407 else 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11409 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11410 if ${ac_cv_lib_dl_dlopen+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412 else 11413 ac_check_lib_save_LIBS=$LIBS 11414 LIBS="-ldl $LIBS" 11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11416 /* end confdefs.h. */ 11417 11418 /* Override any GCC internal prototype to avoid an error. 11419 Use char because int might match the return type of a GCC 11420 builtin and then its argument prototype would still apply. */ 11421 #ifdef __cplusplus 11422 extern "C" 11423 #endif 11424 char dlopen (); 11425 int 11426 main () 11427 { 11428 return dlopen (); 11429 ; 11430 return 0; 11431 } 11432 _ACEOF 11433 if ac_fn_c_try_link "$LINENO"; then : 11434 ac_cv_lib_dl_dlopen=yes 11435 else 11436 ac_cv_lib_dl_dlopen=no 11437 fi 11438 rm -f core conftest.err conftest.$ac_objext \ 11439 conftest$ac_exeext conftest.$ac_ext 11440 LIBS=$ac_check_lib_save_LIBS 11441 fi 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11443 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11444 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11446 else 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11448 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11449 if ${ac_cv_lib_svld_dlopen+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451 else 11452 ac_check_lib_save_LIBS=$LIBS 11453 LIBS="-lsvld $LIBS" 11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11455 /* end confdefs.h. */ 11456 11457 /* Override any GCC internal prototype to avoid an error. 11458 Use char because int might match the return type of a GCC 11459 builtin and then its argument prototype would still apply. */ 11460 #ifdef __cplusplus 11461 extern "C" 11462 #endif 11463 char dlopen (); 11464 int 11465 main () 11466 { 11467 return dlopen (); 11468 ; 11469 return 0; 11470 } 11471 _ACEOF 11472 if ac_fn_c_try_link "$LINENO"; then : 11473 ac_cv_lib_svld_dlopen=yes 11474 else 11475 ac_cv_lib_svld_dlopen=no 11476 fi 11477 rm -f core conftest.err conftest.$ac_objext \ 11478 conftest$ac_exeext conftest.$ac_ext 11479 LIBS=$ac_check_lib_save_LIBS 11480 fi 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11482 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11483 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11485 else 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11487 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11488 if ${ac_cv_lib_dld_dld_link+:} false; then : 11489 $as_echo_n "(cached) " >&6 11490 else 11491 ac_check_lib_save_LIBS=$LIBS 11492 LIBS="-ldld $LIBS" 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11494 /* end confdefs.h. */ 11495 11496 /* Override any GCC internal prototype to avoid an error. 11497 Use char because int might match the return type of a GCC 11498 builtin and then its argument prototype would still apply. */ 11499 #ifdef __cplusplus 11500 extern "C" 11501 #endif 11502 char dld_link (); 11503 int 11504 main () 11505 { 11506 return dld_link (); 11507 ; 11508 return 0; 11509 } 11510 _ACEOF 11511 if ac_fn_c_try_link "$LINENO"; then : 11512 ac_cv_lib_dld_dld_link=yes 11513 else 11514 ac_cv_lib_dld_dld_link=no 11515 fi 11516 rm -f core conftest.err conftest.$ac_objext \ 11517 conftest$ac_exeext conftest.$ac_ext 11518 LIBS=$ac_check_lib_save_LIBS 11519 fi 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11521 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11522 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11523 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11524 fi 11525 11526 11527 fi 11528 11529 11530 fi 11531 11532 11533 fi 11534 11535 11536 fi 11537 11538 11539 fi 11540 11541 ;; 11542 esac 11543 11544 if test "x$lt_cv_dlopen" != xno; then 11545 enable_dlopen=yes 11546 else 11547 enable_dlopen=no 11548 fi 11549 11550 case $lt_cv_dlopen in 11551 dlopen) 11552 save_CPPFLAGS="$CPPFLAGS" 11553 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11554 11555 save_LDFLAGS="$LDFLAGS" 11556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11557 11558 save_LIBS="$LIBS" 11559 LIBS="$lt_cv_dlopen_libs $LIBS" 11560 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11562 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11563 if ${lt_cv_dlopen_self+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565 else 11566 if test "$cross_compiling" = yes; then : 11567 lt_cv_dlopen_self=cross 11568 else 11569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11570 lt_status=$lt_dlunknown 11571 cat > conftest.$ac_ext <<_LT_EOF 11572 #line $LINENO "configure" 11573 #include "confdefs.h" 11574 11575 #if HAVE_DLFCN_H 11576 #include <dlfcn.h> 11577 #endif 11578 11579 #include <stdio.h> 11580 11581 #ifdef RTLD_GLOBAL 11582 # define LT_DLGLOBAL RTLD_GLOBAL 11583 #else 11584 # ifdef DL_GLOBAL 11585 # define LT_DLGLOBAL DL_GLOBAL 11586 # else 11587 # define LT_DLGLOBAL 0 11588 # endif 11589 #endif 11590 11591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11592 find out it does not work in some platform. */ 11593 #ifndef LT_DLLAZY_OR_NOW 11594 # ifdef RTLD_LAZY 11595 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11596 # else 11597 # ifdef DL_LAZY 11598 # define LT_DLLAZY_OR_NOW DL_LAZY 11599 # else 11600 # ifdef RTLD_NOW 11601 # define LT_DLLAZY_OR_NOW RTLD_NOW 11602 # else 11603 # ifdef DL_NOW 11604 # define LT_DLLAZY_OR_NOW DL_NOW 11605 # else 11606 # define LT_DLLAZY_OR_NOW 0 11607 # endif 11608 # endif 11609 # endif 11610 # endif 11611 #endif 11612 11613 /* When -fvisbility=hidden is used, assume the code has been annotated 11614 correspondingly for the symbols needed. */ 11615 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11616 int fnord () __attribute__((visibility("default"))); 11617 #endif 11618 11619 int fnord () { return 42; } 11620 int main () 11621 { 11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11623 int status = $lt_dlunknown; 11624 11625 if (self) 11626 { 11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11628 else 11629 { 11630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11631 else puts (dlerror ()); 11632 } 11633 /* dlclose (self); */ 11634 } 11635 else 11636 puts (dlerror ()); 11637 11638 return status; 11639 } 11640 _LT_EOF 11641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11642 (eval $ac_link) 2>&5 11643 ac_status=$? 11644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11645 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11646 (./conftest; exit; ) >&5 2>/dev/null 11647 lt_status=$? 11648 case x$lt_status in 11649 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11650 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11651 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11652 esac 11653 else : 11654 # compilation failed 11655 lt_cv_dlopen_self=no 11656 fi 11657 fi 11658 rm -fr conftest* 11659 11660 11661 fi 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11663 $as_echo "$lt_cv_dlopen_self" >&6; } 11664 11665 if test "x$lt_cv_dlopen_self" = xyes; then 11666 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11668 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11669 if ${lt_cv_dlopen_self_static+:} false; then : 11670 $as_echo_n "(cached) " >&6 11671 else 11672 if test "$cross_compiling" = yes; then : 11673 lt_cv_dlopen_self_static=cross 11674 else 11675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11676 lt_status=$lt_dlunknown 11677 cat > conftest.$ac_ext <<_LT_EOF 11678 #line $LINENO "configure" 11679 #include "confdefs.h" 11680 11681 #if HAVE_DLFCN_H 11682 #include <dlfcn.h> 11683 #endif 11684 11685 #include <stdio.h> 11686 11687 #ifdef RTLD_GLOBAL 11688 # define LT_DLGLOBAL RTLD_GLOBAL 11689 #else 11690 # ifdef DL_GLOBAL 11691 # define LT_DLGLOBAL DL_GLOBAL 11692 # else 11693 # define LT_DLGLOBAL 0 11694 # endif 11695 #endif 11696 11697 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11698 find out it does not work in some platform. */ 11699 #ifndef LT_DLLAZY_OR_NOW 11700 # ifdef RTLD_LAZY 11701 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11702 # else 11703 # ifdef DL_LAZY 11704 # define LT_DLLAZY_OR_NOW DL_LAZY 11705 # else 11706 # ifdef RTLD_NOW 11707 # define LT_DLLAZY_OR_NOW RTLD_NOW 11708 # else 11709 # ifdef DL_NOW 11710 # define LT_DLLAZY_OR_NOW DL_NOW 11711 # else 11712 # define LT_DLLAZY_OR_NOW 0 11713 # endif 11714 # endif 11715 # endif 11716 # endif 11717 #endif 11718 11719 /* When -fvisbility=hidden is used, assume the code has been annotated 11720 correspondingly for the symbols needed. */ 11721 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11722 int fnord () __attribute__((visibility("default"))); 11723 #endif 11724 11725 int fnord () { return 42; } 11726 int main () 11727 { 11728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11729 int status = $lt_dlunknown; 11730 11731 if (self) 11732 { 11733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11734 else 11735 { 11736 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11737 else puts (dlerror ()); 11738 } 11739 /* dlclose (self); */ 11740 } 11741 else 11742 puts (dlerror ()); 11743 11744 return status; 11745 } 11746 _LT_EOF 11747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11748 (eval $ac_link) 2>&5 11749 ac_status=$? 11750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11751 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11752 (./conftest; exit; ) >&5 2>/dev/null 11753 lt_status=$? 11754 case x$lt_status in 11755 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11756 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11757 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11758 esac 11759 else : 11760 # compilation failed 11761 lt_cv_dlopen_self_static=no 11762 fi 11763 fi 11764 rm -fr conftest* 11765 11766 11767 fi 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11769 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11770 fi 11771 11772 CPPFLAGS="$save_CPPFLAGS" 11773 LDFLAGS="$save_LDFLAGS" 11774 LIBS="$save_LIBS" 11775 ;; 11776 esac 11777 11778 case $lt_cv_dlopen_self in 11779 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11780 *) enable_dlopen_self=unknown ;; 11781 esac 11782 11783 case $lt_cv_dlopen_self_static in 11784 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11785 *) enable_dlopen_self_static=unknown ;; 11786 esac 11787 fi 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 striplib= 11806 old_striplib= 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11808 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11809 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11810 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11811 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11813 $as_echo "yes" >&6; } 11814 else 11815 # FIXME - insert some real tests, host_os isn't really good enough 11816 case $host_os in 11817 darwin*) 11818 if test -n "$STRIP" ; then 11819 striplib="$STRIP -x" 11820 old_striplib="$STRIP -S" 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11822 $as_echo "yes" >&6; } 11823 else 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11825 $as_echo "no" >&6; } 11826 fi 11827 ;; 11828 *) 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11830 $as_echo "no" >&6; } 11831 ;; 11832 esac 11833 fi 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 # Report which library types will actually be built 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11848 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11850 $as_echo "$can_build_shared" >&6; } 11851 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11853 $as_echo_n "checking whether to build shared libraries... " >&6; } 11854 test "$can_build_shared" = "no" && enable_shared=no 11855 11856 # On AIX, shared libraries and static libraries use the same namespace, and 11857 # are all built from PIC. 11858 case $host_os in 11859 aix3*) 11860 test "$enable_shared" = yes && enable_static=no 11861 if test -n "$RANLIB"; then 11862 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11863 postinstall_cmds='$RANLIB $lib' 11864 fi 11865 ;; 11866 11867 aix[4-9]*) 11868 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11869 test "$enable_shared" = yes && enable_static=no 11870 fi 11871 ;; 11872 esac 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11874 $as_echo "$enable_shared" >&6; } 11875 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11877 $as_echo_n "checking whether to build static libraries... " >&6; } 11878 # Make sure either enable_shared or enable_static is yes. 11879 test "$enable_shared" = yes || enable_static=yes 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11881 $as_echo "$enable_static" >&6; } 11882 11883 11884 11885 11886 fi 11887 ac_ext=cpp 11888 ac_cpp='$CXXCPP $CPPFLAGS' 11889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11892 11893 CC="$lt_save_CC" 11894 11895 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11896 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11897 (test "X$CXX" != "Xg++"))) ; then 11898 ac_ext=cpp 11899 ac_cpp='$CXXCPP $CPPFLAGS' 11900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11904 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11905 if test -z "$CXXCPP"; then 11906 if ${ac_cv_prog_CXXCPP+:} false; then : 11907 $as_echo_n "(cached) " >&6 11908 else 11909 # Double quotes because CXXCPP needs to be expanded 11910 for CXXCPP in "$CXX -E" "/lib/cpp" 11911 do 11912 ac_preproc_ok=false 11913 for ac_cxx_preproc_warn_flag in '' yes 11914 do 11915 # Use a header file that comes with gcc, so configuring glibc 11916 # with a fresh cross-compiler works. 11917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11918 # <limits.h> exists even on freestanding compilers. 11919 # On the NeXT, cc -E runs the code through the compiler's parser, 11920 # not just through cpp. "Syntax error" is here to catch this case. 11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11922 /* end confdefs.h. */ 11923 #ifdef __STDC__ 11924 # include <limits.h> 11925 #else 11926 # include <assert.h> 11927 #endif 11928 Syntax error 11929 _ACEOF 11930 if ac_fn_cxx_try_cpp "$LINENO"; then : 11931 11932 else 11933 # Broken: fails on valid input. 11934 continue 11935 fi 11936 rm -f conftest.err conftest.i conftest.$ac_ext 11937 11938 # OK, works on sane cases. Now check whether nonexistent headers 11939 # can be detected and how. 11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11941 /* end confdefs.h. */ 11942 #include <ac_nonexistent.h> 11943 _ACEOF 11944 if ac_fn_cxx_try_cpp "$LINENO"; then : 11945 # Broken: success on invalid input. 11946 continue 11947 else 11948 # Passes both tests. 11949 ac_preproc_ok=: 11950 break 11951 fi 11952 rm -f conftest.err conftest.i conftest.$ac_ext 11953 11954 done 11955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11956 rm -f conftest.i conftest.err conftest.$ac_ext 11957 if $ac_preproc_ok; then : 11958 break 11959 fi 11960 11961 done 11962 ac_cv_prog_CXXCPP=$CXXCPP 11963 11964 fi 11965 CXXCPP=$ac_cv_prog_CXXCPP 11966 else 11967 ac_cv_prog_CXXCPP=$CXXCPP 11968 fi 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11970 $as_echo "$CXXCPP" >&6; } 11971 ac_preproc_ok=false 11972 for ac_cxx_preproc_warn_flag in '' yes 11973 do 11974 # Use a header file that comes with gcc, so configuring glibc 11975 # with a fresh cross-compiler works. 11976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11977 # <limits.h> exists even on freestanding compilers. 11978 # On the NeXT, cc -E runs the code through the compiler's parser, 11979 # not just through cpp. "Syntax error" is here to catch this case. 11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11981 /* end confdefs.h. */ 11982 #ifdef __STDC__ 11983 # include <limits.h> 11984 #else 11985 # include <assert.h> 11986 #endif 11987 Syntax error 11988 _ACEOF 11989 if ac_fn_cxx_try_cpp "$LINENO"; then : 11990 11991 else 11992 # Broken: fails on valid input. 11993 continue 11994 fi 11995 rm -f conftest.err conftest.i conftest.$ac_ext 11996 11997 # OK, works on sane cases. Now check whether nonexistent headers 11998 # can be detected and how. 11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12000 /* end confdefs.h. */ 12001 #include <ac_nonexistent.h> 12002 _ACEOF 12003 if ac_fn_cxx_try_cpp "$LINENO"; then : 12004 # Broken: success on invalid input. 12005 continue 12006 else 12007 # Passes both tests. 12008 ac_preproc_ok=: 12009 break 12010 fi 12011 rm -f conftest.err conftest.i conftest.$ac_ext 12012 12013 done 12014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12015 rm -f conftest.i conftest.err conftest.$ac_ext 12016 if $ac_preproc_ok; then : 12017 12018 else 12019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12021 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12022 See \`config.log' for more details" "$LINENO" 5; } 12023 fi 12024 12025 ac_ext=cpp 12026 ac_cpp='$CXXCPP $CPPFLAGS' 12027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12030 12031 else 12032 _lt_caught_CXX_error=yes 12033 fi 12034 12035 ac_ext=cpp 12036 ac_cpp='$CXXCPP $CPPFLAGS' 12037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12040 12041 archive_cmds_need_lc_CXX=no 12042 allow_undefined_flag_CXX= 12043 always_export_symbols_CXX=no 12044 archive_expsym_cmds_CXX= 12045 compiler_needs_object_CXX=no 12046 export_dynamic_flag_spec_CXX= 12047 hardcode_direct_CXX=no 12048 hardcode_direct_absolute_CXX=no 12049 hardcode_libdir_flag_spec_CXX= 12050 hardcode_libdir_separator_CXX= 12051 hardcode_minus_L_CXX=no 12052 hardcode_shlibpath_var_CXX=unsupported 12053 hardcode_automatic_CXX=no 12054 inherit_rpath_CXX=no 12055 module_cmds_CXX= 12056 module_expsym_cmds_CXX= 12057 link_all_deplibs_CXX=unknown 12058 old_archive_cmds_CXX=$old_archive_cmds 12059 reload_flag_CXX=$reload_flag 12060 reload_cmds_CXX=$reload_cmds 12061 no_undefined_flag_CXX= 12062 whole_archive_flag_spec_CXX= 12063 enable_shared_with_static_runtimes_CXX=no 12064 12065 # Source file extension for C++ test sources. 12066 ac_ext=cpp 12067 12068 # Object file extension for compiled C++ test sources. 12069 objext=o 12070 objext_CXX=$objext 12071 12072 # No sense in running all these tests if we already determined that 12073 # the CXX compiler isn't working. Some variables (like enable_shared) 12074 # are currently assumed to apply to all compilers on this platform, 12075 # and will be corrupted by setting them based on a non-working compiler. 12076 if test "$_lt_caught_CXX_error" != yes; then 12077 # Code to be used in simple compile tests 12078 lt_simple_compile_test_code="int some_variable = 0;" 12079 12080 # Code to be used in simple link tests 12081 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12082 12083 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12084 12085 12086 12087 12088 12089 12090 # If no C compiler was specified, use CC. 12091 LTCC=${LTCC-"$CC"} 12092 12093 # If no C compiler flags were specified, use CFLAGS. 12094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12095 12096 # Allow CC to be a program name with arguments. 12097 compiler=$CC 12098 12099 12100 # save warnings/boilerplate of simple test code 12101 ac_outfile=conftest.$ac_objext 12102 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12103 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12104 _lt_compiler_boilerplate=`cat conftest.err` 12105 $RM conftest* 12106 12107 ac_outfile=conftest.$ac_objext 12108 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12109 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12110 _lt_linker_boilerplate=`cat conftest.err` 12111 $RM -r conftest* 12112 12113 12114 # Allow CC to be a program name with arguments. 12115 lt_save_CC=$CC 12116 lt_save_CFLAGS=$CFLAGS 12117 lt_save_LD=$LD 12118 lt_save_GCC=$GCC 12119 GCC=$GXX 12120 lt_save_with_gnu_ld=$with_gnu_ld 12121 lt_save_path_LD=$lt_cv_path_LD 12122 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12123 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12124 else 12125 $as_unset lt_cv_prog_gnu_ld 12126 fi 12127 if test -n "${lt_cv_path_LDCXX+set}"; then 12128 lt_cv_path_LD=$lt_cv_path_LDCXX 12129 else 12130 $as_unset lt_cv_path_LD 12131 fi 12132 test -z "${LDCXX+set}" || LD=$LDCXX 12133 CC=${CXX-"c++"} 12134 CFLAGS=$CXXFLAGS 12135 compiler=$CC 12136 compiler_CXX=$CC 12137 for cc_temp in $compiler""; do 12138 case $cc_temp in 12139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12141 \-*) ;; 12142 *) break;; 12143 esac 12144 done 12145 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12146 12147 12148 if test -n "$compiler"; then 12149 # We don't want -fno-exception when compiling C++ code, so set the 12150 # no_builtin_flag separately 12151 if test "$GXX" = yes; then 12152 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12153 else 12154 lt_prog_compiler_no_builtin_flag_CXX= 12155 fi 12156 12157 if test "$GXX" = yes; then 12158 # Set up default GNU C++ configuration 12159 12160 12161 12162 # Check whether --with-gnu-ld was given. 12163 if test "${with_gnu_ld+set}" = set; then : 12164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12165 else 12166 with_gnu_ld=no 12167 fi 12168 12169 ac_prog=ld 12170 if test "$GCC" = yes; then 12171 # Check if gcc -print-prog-name=ld gives a path. 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12173 $as_echo_n "checking for ld used by $CC... " >&6; } 12174 case $host in 12175 *-*-mingw*) 12176 # gcc leaves a trailing carriage return which upsets mingw 12177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12178 *) 12179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12180 esac 12181 case $ac_prog in 12182 # Accept absolute paths. 12183 [\\/]* | ?:[\\/]*) 12184 re_direlt='/[^/][^/]*/\.\./' 12185 # Canonicalize the pathname of ld 12186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12189 done 12190 test -z "$LD" && LD="$ac_prog" 12191 ;; 12192 "") 12193 # If it fails, then pretend we aren't using GCC. 12194 ac_prog=ld 12195 ;; 12196 *) 12197 # If it is relative, then search for the first ld in PATH. 12198 with_gnu_ld=unknown 12199 ;; 12200 esac 12201 elif test "$with_gnu_ld" = yes; then 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12203 $as_echo_n "checking for GNU ld... " >&6; } 12204 else 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12206 $as_echo_n "checking for non-GNU ld... " >&6; } 12207 fi 12208 if ${lt_cv_path_LD+:} false; then : 12209 $as_echo_n "(cached) " >&6 12210 else 12211 if test -z "$LD"; then 12212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12213 for ac_dir in $PATH; do 12214 IFS="$lt_save_ifs" 12215 test -z "$ac_dir" && ac_dir=. 12216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12217 lt_cv_path_LD="$ac_dir/$ac_prog" 12218 # Check to see if the program is GNU ld. I'd rather use --version, 12219 # but apparently some variants of GNU ld only accept -v. 12220 # Break only if it was the GNU/non-GNU ld that we prefer. 12221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12222 *GNU* | *'with BFD'*) 12223 test "$with_gnu_ld" != no && break 12224 ;; 12225 *) 12226 test "$with_gnu_ld" != yes && break 12227 ;; 12228 esac 12229 fi 12230 done 12231 IFS="$lt_save_ifs" 12232 else 12233 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12234 fi 12235 fi 12236 12237 LD="$lt_cv_path_LD" 12238 if test -n "$LD"; then 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12240 $as_echo "$LD" >&6; } 12241 else 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12243 $as_echo "no" >&6; } 12244 fi 12245 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12248 if ${lt_cv_prog_gnu_ld+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250 else 12251 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12252 case `$LD -v 2>&1 </dev/null` in 12253 *GNU* | *'with BFD'*) 12254 lt_cv_prog_gnu_ld=yes 12255 ;; 12256 *) 12257 lt_cv_prog_gnu_ld=no 12258 ;; 12259 esac 12260 fi 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12262 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12263 with_gnu_ld=$lt_cv_prog_gnu_ld 12264 12265 12266 12267 12268 12269 12270 12271 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12272 # archiving commands below assume that GNU ld is being used. 12273 if test "$with_gnu_ld" = yes; then 12274 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12275 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12276 12277 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12278 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12279 12280 # If archive_cmds runs LD, not CC, wlarc should be empty 12281 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12282 # investigate it a little bit more. (MM) 12283 wlarc='${wl}' 12284 12285 # ancient GNU ld didn't support --whole-archive et. al. 12286 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12287 $GREP 'no-whole-archive' > /dev/null; then 12288 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12289 else 12290 whole_archive_flag_spec_CXX= 12291 fi 12292 else 12293 with_gnu_ld=no 12294 wlarc= 12295 12296 # A generic and very simple default shared library creation 12297 # command for GNU C++ for the case where it uses the native 12298 # linker, instead of GNU ld. If possible, this setting should 12299 # overridden to take advantage of the native linker features on 12300 # the platform it is being used on. 12301 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12302 fi 12303 12304 # Commands to make compiler produce verbose output that lists 12305 # what "hidden" libraries, object files and flags are used when 12306 # linking a shared library. 12307 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12308 12309 else 12310 GXX=no 12311 with_gnu_ld=no 12312 wlarc= 12313 fi 12314 12315 # PORTME: fill in a description of your system's C++ link characteristics 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12317 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12318 ld_shlibs_CXX=yes 12319 case $host_os in 12320 aix3*) 12321 # FIXME: insert proper C++ library support 12322 ld_shlibs_CXX=no 12323 ;; 12324 aix[4-9]*) 12325 if test "$host_cpu" = ia64; then 12326 # On IA64, the linker does run time linking by default, so we don't 12327 # have to do anything special. 12328 aix_use_runtimelinking=no 12329 exp_sym_flag='-Bexport' 12330 no_entry_flag="" 12331 else 12332 aix_use_runtimelinking=no 12333 12334 # Test if we are trying to use run time linking or normal 12335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12336 # need to do runtime linking. 12337 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12338 for ld_flag in $LDFLAGS; do 12339 case $ld_flag in 12340 *-brtl*) 12341 aix_use_runtimelinking=yes 12342 break 12343 ;; 12344 esac 12345 done 12346 ;; 12347 esac 12348 12349 exp_sym_flag='-bexport' 12350 no_entry_flag='-bnoentry' 12351 fi 12352 12353 # When large executables or shared objects are built, AIX ld can 12354 # have problems creating the table of contents. If linking a library 12355 # or program results in "error TOC overflow" add -mminimal-toc to 12356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12358 12359 archive_cmds_CXX='' 12360 hardcode_direct_CXX=yes 12361 hardcode_direct_absolute_CXX=yes 12362 hardcode_libdir_separator_CXX=':' 12363 link_all_deplibs_CXX=yes 12364 file_list_spec_CXX='${wl}-f,' 12365 12366 if test "$GXX" = yes; then 12367 case $host_os in aix4.[012]|aix4.[012].*) 12368 # We only want to do this on AIX 4.2 and lower, the check 12369 # below for broken collect2 doesn't work under 4.3+ 12370 collect2name=`${CC} -print-prog-name=collect2` 12371 if test -f "$collect2name" && 12372 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12373 then 12374 # We have reworked collect2 12375 : 12376 else 12377 # We have old collect2 12378 hardcode_direct_CXX=unsupported 12379 # It fails to find uninstalled libraries when the uninstalled 12380 # path is not listed in the libpath. Setting hardcode_minus_L 12381 # to unsupported forces relinking 12382 hardcode_minus_L_CXX=yes 12383 hardcode_libdir_flag_spec_CXX='-L$libdir' 12384 hardcode_libdir_separator_CXX= 12385 fi 12386 esac 12387 shared_flag='-shared' 12388 if test "$aix_use_runtimelinking" = yes; then 12389 shared_flag="$shared_flag "'${wl}-G' 12390 fi 12391 else 12392 # not using gcc 12393 if test "$host_cpu" = ia64; then 12394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12395 # chokes on -Wl,-G. The following line is correct: 12396 shared_flag='-G' 12397 else 12398 if test "$aix_use_runtimelinking" = yes; then 12399 shared_flag='${wl}-G' 12400 else 12401 shared_flag='${wl}-bM:SRE' 12402 fi 12403 fi 12404 fi 12405 12406 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12407 # It seems that -bexpall does not export symbols beginning with 12408 # underscore (_), so it is better to generate a list of symbols to 12409 # export. 12410 always_export_symbols_CXX=yes 12411 if test "$aix_use_runtimelinking" = yes; then 12412 # Warning - without using the other runtime loading flags (-brtl), 12413 # -berok will link without error, but may produce a broken library. 12414 allow_undefined_flag_CXX='-berok' 12415 # Determine the default libpath from the value encoded in an empty 12416 # executable. 12417 if test "${lt_cv_aix_libpath+set}" = set; then 12418 aix_libpath=$lt_cv_aix_libpath 12419 else 12420 if ${lt_cv_aix_libpath__CXX+:} false; then : 12421 $as_echo_n "(cached) " >&6 12422 else 12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12424 /* end confdefs.h. */ 12425 12426 int 12427 main () 12428 { 12429 12430 ; 12431 return 0; 12432 } 12433 _ACEOF 12434 if ac_fn_cxx_try_link "$LINENO"; then : 12435 12436 lt_aix_libpath_sed=' 12437 /Import File Strings/,/^$/ { 12438 /^0/ { 12439 s/^0 *\([^ ]*\) *$/\1/ 12440 p 12441 } 12442 }' 12443 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12444 # Check for a 64-bit object if we didn't find anything. 12445 if test -z "$lt_cv_aix_libpath__CXX"; then 12446 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12447 fi 12448 fi 12449 rm -f core conftest.err conftest.$ac_objext \ 12450 conftest$ac_exeext conftest.$ac_ext 12451 if test -z "$lt_cv_aix_libpath__CXX"; then 12452 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12453 fi 12454 12455 fi 12456 12457 aix_libpath=$lt_cv_aix_libpath__CXX 12458 fi 12459 12460 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12461 12462 archive_expsym_cmds_CXX='$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" 12463 else 12464 if test "$host_cpu" = ia64; then 12465 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12466 allow_undefined_flag_CXX="-z nodefs" 12467 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12468 else 12469 # Determine the default libpath from the value encoded in an 12470 # empty executable. 12471 if test "${lt_cv_aix_libpath+set}" = set; then 12472 aix_libpath=$lt_cv_aix_libpath 12473 else 12474 if ${lt_cv_aix_libpath__CXX+:} false; then : 12475 $as_echo_n "(cached) " >&6 12476 else 12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12478 /* end confdefs.h. */ 12479 12480 int 12481 main () 12482 { 12483 12484 ; 12485 return 0; 12486 } 12487 _ACEOF 12488 if ac_fn_cxx_try_link "$LINENO"; then : 12489 12490 lt_aix_libpath_sed=' 12491 /Import File Strings/,/^$/ { 12492 /^0/ { 12493 s/^0 *\([^ ]*\) *$/\1/ 12494 p 12495 } 12496 }' 12497 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12498 # Check for a 64-bit object if we didn't find anything. 12499 if test -z "$lt_cv_aix_libpath__CXX"; then 12500 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12501 fi 12502 fi 12503 rm -f core conftest.err conftest.$ac_objext \ 12504 conftest$ac_exeext conftest.$ac_ext 12505 if test -z "$lt_cv_aix_libpath__CXX"; then 12506 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12507 fi 12508 12509 fi 12510 12511 aix_libpath=$lt_cv_aix_libpath__CXX 12512 fi 12513 12514 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12515 # Warning - without using the other run time loading flags, 12516 # -berok will link without error, but may produce a broken library. 12517 no_undefined_flag_CXX=' ${wl}-bernotok' 12518 allow_undefined_flag_CXX=' ${wl}-berok' 12519 if test "$with_gnu_ld" = yes; then 12520 # We only use this code for GNU lds that support --whole-archive. 12521 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12522 else 12523 # Exported symbols can be pulled into shared objects from archives 12524 whole_archive_flag_spec_CXX='$convenience' 12525 fi 12526 archive_cmds_need_lc_CXX=yes 12527 # This is similar to how AIX traditionally builds its shared 12528 # libraries. 12529 archive_expsym_cmds_CXX="\$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' 12530 fi 12531 fi 12532 ;; 12533 12534 beos*) 12535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12536 allow_undefined_flag_CXX=unsupported 12537 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12538 # support --undefined. This deserves some investigation. FIXME 12539 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12540 else 12541 ld_shlibs_CXX=no 12542 fi 12543 ;; 12544 12545 chorus*) 12546 case $cc_basename in 12547 *) 12548 # FIXME: insert proper C++ library support 12549 ld_shlibs_CXX=no 12550 ;; 12551 esac 12552 ;; 12553 12554 cygwin* | mingw* | pw32* | cegcc*) 12555 case $GXX,$cc_basename in 12556 ,cl* | no,cl*) 12557 # Native MSVC 12558 # hardcode_libdir_flag_spec is actually meaningless, as there is 12559 # no search path for DLLs. 12560 hardcode_libdir_flag_spec_CXX=' ' 12561 allow_undefined_flag_CXX=unsupported 12562 always_export_symbols_CXX=yes 12563 file_list_spec_CXX='@' 12564 # Tell ltmain to make .lib files, not .a files. 12565 libext=lib 12566 # Tell ltmain to make .dll files, not .so files. 12567 shrext_cmds=".dll" 12568 # FIXME: Setting linknames here is a bad hack. 12569 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12570 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12571 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12572 else 12573 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12574 fi~ 12575 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12576 linknames=' 12577 # The linker will not automatically build a static lib if we build a DLL. 12578 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12579 enable_shared_with_static_runtimes_CXX=yes 12580 # Don't use ranlib 12581 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12582 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12583 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12584 case $lt_outputfile in 12585 *.exe|*.EXE) ;; 12586 *) 12587 lt_outputfile="$lt_outputfile.exe" 12588 lt_tool_outputfile="$lt_tool_outputfile.exe" 12589 ;; 12590 esac~ 12591 func_to_tool_file "$lt_outputfile"~ 12592 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12593 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12594 $RM "$lt_outputfile.manifest"; 12595 fi' 12596 ;; 12597 *) 12598 # g++ 12599 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12600 # as there is no search path for DLLs. 12601 hardcode_libdir_flag_spec_CXX='-L$libdir' 12602 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12603 allow_undefined_flag_CXX=unsupported 12604 always_export_symbols_CXX=no 12605 enable_shared_with_static_runtimes_CXX=yes 12606 12607 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12609 # If the export-symbols file already is a .def file (1st line 12610 # is EXPORTS), use it as is; otherwise, prepend... 12611 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12612 cp $export_symbols $output_objdir/$soname.def; 12613 else 12614 echo EXPORTS > $output_objdir/$soname.def; 12615 cat $export_symbols >> $output_objdir/$soname.def; 12616 fi~ 12617 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12618 else 12619 ld_shlibs_CXX=no 12620 fi 12621 ;; 12622 esac 12623 ;; 12624 darwin* | rhapsody*) 12625 12626 12627 archive_cmds_need_lc_CXX=no 12628 hardcode_direct_CXX=no 12629 hardcode_automatic_CXX=yes 12630 hardcode_shlibpath_var_CXX=unsupported 12631 if test "$lt_cv_ld_force_load" = "yes"; then 12632 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12633 12634 else 12635 whole_archive_flag_spec_CXX='' 12636 fi 12637 link_all_deplibs_CXX=yes 12638 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12639 case $cc_basename in 12640 ifort*) _lt_dar_can_shared=yes ;; 12641 *) _lt_dar_can_shared=$GCC ;; 12642 esac 12643 if test "$_lt_dar_can_shared" = "yes"; then 12644 output_verbose_link_cmd=func_echo_all 12645 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12646 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12647 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12648 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12649 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12650 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12651 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12652 fi 12653 12654 else 12655 ld_shlibs_CXX=no 12656 fi 12657 12658 ;; 12659 12660 dgux*) 12661 case $cc_basename in 12662 ec++*) 12663 # FIXME: insert proper C++ library support 12664 ld_shlibs_CXX=no 12665 ;; 12666 ghcx*) 12667 # Green Hills C++ Compiler 12668 # FIXME: insert proper C++ library support 12669 ld_shlibs_CXX=no 12670 ;; 12671 *) 12672 # FIXME: insert proper C++ library support 12673 ld_shlibs_CXX=no 12674 ;; 12675 esac 12676 ;; 12677 12678 freebsd2.*) 12679 # C++ shared libraries reported to be fairly broken before 12680 # switch to ELF 12681 ld_shlibs_CXX=no 12682 ;; 12683 12684 freebsd-elf*) 12685 archive_cmds_need_lc_CXX=no 12686 ;; 12687 12688 freebsd* | dragonfly*) 12689 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12690 # conventions 12691 ld_shlibs_CXX=yes 12692 ;; 12693 12694 haiku*) 12695 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12696 link_all_deplibs_CXX=yes 12697 ;; 12698 12699 hpux9*) 12700 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12701 hardcode_libdir_separator_CXX=: 12702 export_dynamic_flag_spec_CXX='${wl}-E' 12703 hardcode_direct_CXX=yes 12704 hardcode_minus_L_CXX=yes # Not in the search PATH, 12705 # but as the default 12706 # location of the library. 12707 12708 case $cc_basename in 12709 CC*) 12710 # FIXME: insert proper C++ library support 12711 ld_shlibs_CXX=no 12712 ;; 12713 aCC*) 12714 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12715 # Commands to make compiler produce verbose output that lists 12716 # what "hidden" libraries, object files and flags are used when 12717 # linking a shared library. 12718 # 12719 # There doesn't appear to be a way to prevent this compiler from 12720 # explicitly linking system object files so we need to strip them 12721 # from the output so that they don't get included in the library 12722 # dependencies. 12723 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12724 ;; 12725 *) 12726 if test "$GXX" = yes; then 12727 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12728 else 12729 # FIXME: insert proper C++ library support 12730 ld_shlibs_CXX=no 12731 fi 12732 ;; 12733 esac 12734 ;; 12735 12736 hpux10*|hpux11*) 12737 if test $with_gnu_ld = no; then 12738 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12739 hardcode_libdir_separator_CXX=: 12740 12741 case $host_cpu in 12742 hppa*64*|ia64*) 12743 ;; 12744 *) 12745 export_dynamic_flag_spec_CXX='${wl}-E' 12746 ;; 12747 esac 12748 fi 12749 case $host_cpu in 12750 hppa*64*|ia64*) 12751 hardcode_direct_CXX=no 12752 hardcode_shlibpath_var_CXX=no 12753 ;; 12754 *) 12755 hardcode_direct_CXX=yes 12756 hardcode_direct_absolute_CXX=yes 12757 hardcode_minus_L_CXX=yes # Not in the search PATH, 12758 # but as the default 12759 # location of the library. 12760 ;; 12761 esac 12762 12763 case $cc_basename in 12764 CC*) 12765 # FIXME: insert proper C++ library support 12766 ld_shlibs_CXX=no 12767 ;; 12768 aCC*) 12769 case $host_cpu in 12770 hppa*64*) 12771 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12772 ;; 12773 ia64*) 12774 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12775 ;; 12776 *) 12777 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12778 ;; 12779 esac 12780 # Commands to make compiler produce verbose output that lists 12781 # what "hidden" libraries, object files and flags are used when 12782 # linking a shared library. 12783 # 12784 # There doesn't appear to be a way to prevent this compiler from 12785 # explicitly linking system object files so we need to strip them 12786 # from the output so that they don't get included in the library 12787 # dependencies. 12788 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12789 ;; 12790 *) 12791 if test "$GXX" = yes; then 12792 if test $with_gnu_ld = no; then 12793 case $host_cpu in 12794 hppa*64*) 12795 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12796 ;; 12797 ia64*) 12798 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12799 ;; 12800 *) 12801 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12802 ;; 12803 esac 12804 fi 12805 else 12806 # FIXME: insert proper C++ library support 12807 ld_shlibs_CXX=no 12808 fi 12809 ;; 12810 esac 12811 ;; 12812 12813 interix[3-9]*) 12814 hardcode_direct_CXX=no 12815 hardcode_shlibpath_var_CXX=no 12816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12817 export_dynamic_flag_spec_CXX='${wl}-E' 12818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12819 # Instead, shared libraries are loaded at an image base (0x10000000 by 12820 # default) and relocated if they conflict, which is a slow very memory 12821 # consuming and fragmenting process. To avoid this, we pick a random, 12822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12823 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12824 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12825 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12826 ;; 12827 irix5* | irix6*) 12828 case $cc_basename in 12829 CC*) 12830 # SGI C++ 12831 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12832 12833 # Archives containing C++ object files must be created using 12834 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12835 # necessary to make sure instantiated templates are included 12836 # in the archive. 12837 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12838 ;; 12839 *) 12840 if test "$GXX" = yes; then 12841 if test "$with_gnu_ld" = no; then 12842 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12843 else 12844 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12845 fi 12846 fi 12847 link_all_deplibs_CXX=yes 12848 ;; 12849 esac 12850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12851 hardcode_libdir_separator_CXX=: 12852 inherit_rpath_CXX=yes 12853 ;; 12854 12855 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12856 case $cc_basename in 12857 KCC*) 12858 # Kuck and Associates, Inc. (KAI) C++ Compiler 12859 12860 # KCC will only create a shared library if the output file 12861 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12862 # to its proper name (with version) after linking. 12863 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12864 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12865 # Commands to make compiler produce verbose output that lists 12866 # what "hidden" libraries, object files and flags are used when 12867 # linking a shared library. 12868 # 12869 # There doesn't appear to be a way to prevent this compiler from 12870 # explicitly linking system object files so we need to strip them 12871 # from the output so that they don't get included in the library 12872 # dependencies. 12873 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12874 12875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12877 12878 # Archives containing C++ object files must be created using 12879 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12880 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12881 ;; 12882 icpc* | ecpc* ) 12883 # Intel C++ 12884 with_gnu_ld=yes 12885 # version 8.0 and above of icpc choke on multiply defined symbols 12886 # if we add $predep_objects and $postdep_objects, however 7.1 and 12887 # earlier do not add the objects themselves. 12888 case `$CC -V 2>&1` in 12889 *"Version 7."*) 12890 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12891 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12892 ;; 12893 *) # Version 8.0 or newer 12894 tmp_idyn= 12895 case $host_cpu in 12896 ia64*) tmp_idyn=' -i_dynamic';; 12897 esac 12898 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12899 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12900 ;; 12901 esac 12902 archive_cmds_need_lc_CXX=no 12903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12905 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12906 ;; 12907 pgCC* | pgcpp*) 12908 # Portland Group C++ compiler 12909 case `$CC -V` in 12910 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12911 prelink_cmds_CXX='tpldir=Template.dir~ 12912 rm -rf $tpldir~ 12913 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12914 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12915 old_archive_cmds_CXX='tpldir=Template.dir~ 12916 rm -rf $tpldir~ 12917 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12918 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12919 $RANLIB $oldlib' 12920 archive_cmds_CXX='tpldir=Template.dir~ 12921 rm -rf $tpldir~ 12922 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12923 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12924 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12925 rm -rf $tpldir~ 12926 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12927 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12928 ;; 12929 *) # Version 6 and above use weak symbols 12930 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12931 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12932 ;; 12933 esac 12934 12935 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12936 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12937 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12938 ;; 12939 cxx*) 12940 # Compaq C++ 12941 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12942 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12943 12944 runpath_var=LD_RUN_PATH 12945 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12946 hardcode_libdir_separator_CXX=: 12947 12948 # Commands to make compiler produce verbose output that lists 12949 # what "hidden" libraries, object files and flags are used when 12950 # linking a shared library. 12951 # 12952 # There doesn't appear to be a way to prevent this compiler from 12953 # explicitly linking system object files so we need to strip them 12954 # from the output so that they don't get included in the library 12955 # dependencies. 12956 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 12957 ;; 12958 xl* | mpixl* | bgxl*) 12959 # IBM XL 8.0 on PPC, with GNU ld 12960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12961 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12962 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12963 if test "x$supports_anon_versioning" = xyes; then 12964 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12966 echo "local: *; };" >> $output_objdir/$libname.ver~ 12967 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12968 fi 12969 ;; 12970 *) 12971 case `$CC -V 2>&1 | sed 5q` in 12972 *Sun\ C*) 12973 # Sun C++ 5.9 12974 no_undefined_flag_CXX=' -zdefs' 12975 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12976 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12977 hardcode_libdir_flag_spec_CXX='-R$libdir' 12978 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12979 compiler_needs_object_CXX=yes 12980 12981 # Not sure whether something based on 12982 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12983 # would be better. 12984 output_verbose_link_cmd='func_echo_all' 12985 12986 # Archives containing C++ object files must be created using 12987 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12988 # necessary to make sure instantiated templates are included 12989 # in the archive. 12990 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12991 ;; 12992 esac 12993 ;; 12994 esac 12995 ;; 12996 12997 lynxos*) 12998 # FIXME: insert proper C++ library support 12999 ld_shlibs_CXX=no 13000 ;; 13001 13002 m88k*) 13003 # FIXME: insert proper C++ library support 13004 ld_shlibs_CXX=no 13005 ;; 13006 13007 mvs*) 13008 case $cc_basename in 13009 cxx*) 13010 # FIXME: insert proper C++ library support 13011 ld_shlibs_CXX=no 13012 ;; 13013 *) 13014 # FIXME: insert proper C++ library support 13015 ld_shlibs_CXX=no 13016 ;; 13017 esac 13018 ;; 13019 13020 netbsd*) 13021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13022 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13023 wlarc= 13024 hardcode_libdir_flag_spec_CXX='-R$libdir' 13025 hardcode_direct_CXX=yes 13026 hardcode_shlibpath_var_CXX=no 13027 fi 13028 # Workaround some broken pre-1.5 toolchains 13029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13030 ;; 13031 13032 *nto* | *qnx*) 13033 ld_shlibs_CXX=yes 13034 ;; 13035 13036 openbsd2*) 13037 # C++ shared libraries are fairly broken 13038 ld_shlibs_CXX=no 13039 ;; 13040 13041 openbsd*) 13042 if test -f /usr/libexec/ld.so; then 13043 hardcode_direct_CXX=yes 13044 hardcode_shlibpath_var_CXX=no 13045 hardcode_direct_absolute_CXX=yes 13046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13049 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13050 export_dynamic_flag_spec_CXX='${wl}-E' 13051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13052 fi 13053 output_verbose_link_cmd=func_echo_all 13054 else 13055 ld_shlibs_CXX=no 13056 fi 13057 ;; 13058 13059 osf3* | osf4* | osf5*) 13060 case $cc_basename in 13061 KCC*) 13062 # Kuck and Associates, Inc. (KAI) C++ Compiler 13063 13064 # KCC will only create a shared library if the output file 13065 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13066 # to its proper name (with version) after linking. 13067 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13068 13069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13070 hardcode_libdir_separator_CXX=: 13071 13072 # Archives containing C++ object files must be created using 13073 # the KAI C++ compiler. 13074 case $host in 13075 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13076 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13077 esac 13078 ;; 13079 RCC*) 13080 # Rational C++ 2.4.1 13081 # FIXME: insert proper C++ library support 13082 ld_shlibs_CXX=no 13083 ;; 13084 cxx*) 13085 case $host in 13086 osf3*) 13087 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13088 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13089 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13090 ;; 13091 *) 13092 allow_undefined_flag_CXX=' -expect_unresolved \*' 13093 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13094 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13095 echo "-hidden">> $lib.exp~ 13096 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 13097 $RM $lib.exp' 13098 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13099 ;; 13100 esac 13101 13102 hardcode_libdir_separator_CXX=: 13103 13104 # Commands to make compiler produce verbose output that lists 13105 # what "hidden" libraries, object files and flags are used when 13106 # linking a shared library. 13107 # 13108 # There doesn't appear to be a way to prevent this compiler from 13109 # explicitly linking system object files so we need to strip them 13110 # from the output so that they don't get included in the library 13111 # dependencies. 13112 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13113 ;; 13114 *) 13115 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13116 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13117 case $host in 13118 osf3*) 13119 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13120 ;; 13121 *) 13122 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13123 ;; 13124 esac 13125 13126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13127 hardcode_libdir_separator_CXX=: 13128 13129 # Commands to make compiler produce verbose output that lists 13130 # what "hidden" libraries, object files and flags are used when 13131 # linking a shared library. 13132 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13133 13134 else 13135 # FIXME: insert proper C++ library support 13136 ld_shlibs_CXX=no 13137 fi 13138 ;; 13139 esac 13140 ;; 13141 13142 psos*) 13143 # FIXME: insert proper C++ library support 13144 ld_shlibs_CXX=no 13145 ;; 13146 13147 sunos4*) 13148 case $cc_basename in 13149 CC*) 13150 # Sun C++ 4.x 13151 # FIXME: insert proper C++ library support 13152 ld_shlibs_CXX=no 13153 ;; 13154 lcc*) 13155 # Lucid 13156 # FIXME: insert proper C++ library support 13157 ld_shlibs_CXX=no 13158 ;; 13159 *) 13160 # FIXME: insert proper C++ library support 13161 ld_shlibs_CXX=no 13162 ;; 13163 esac 13164 ;; 13165 13166 solaris*) 13167 case $cc_basename in 13168 CC* | sunCC*) 13169 # Sun C++ 4.2, 5.x and Centerline C++ 13170 archive_cmds_need_lc_CXX=yes 13171 no_undefined_flag_CXX=' -zdefs' 13172 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13173 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13174 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13175 13176 hardcode_libdir_flag_spec_CXX='-R$libdir' 13177 hardcode_shlibpath_var_CXX=no 13178 case $host_os in 13179 solaris2.[0-5] | solaris2.[0-5].*) ;; 13180 *) 13181 # The compiler driver will combine and reorder linker options, 13182 # but understands `-z linker_flag'. 13183 # Supported since Solaris 2.6 (maybe 2.5.1?) 13184 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13185 ;; 13186 esac 13187 link_all_deplibs_CXX=yes 13188 13189 output_verbose_link_cmd='func_echo_all' 13190 13191 # Archives containing C++ object files must be created using 13192 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13193 # necessary to make sure instantiated templates are included 13194 # in the archive. 13195 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13196 ;; 13197 gcx*) 13198 # Green Hills C++ Compiler 13199 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13200 13201 # The C++ compiler must be used to create the archive. 13202 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13203 ;; 13204 *) 13205 # GNU C++ compiler with Solaris linker 13206 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13207 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13208 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13209 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13210 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13211 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13212 13213 # Commands to make compiler produce verbose output that lists 13214 # what "hidden" libraries, object files and flags are used when 13215 # linking a shared library. 13216 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13217 else 13218 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13219 # platform. 13220 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13222 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13223 13224 # Commands to make compiler produce verbose output that lists 13225 # what "hidden" libraries, object files and flags are used when 13226 # linking a shared library. 13227 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13228 fi 13229 13230 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13231 case $host_os in 13232 solaris2.[0-5] | solaris2.[0-5].*) ;; 13233 *) 13234 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13235 ;; 13236 esac 13237 fi 13238 ;; 13239 esac 13240 ;; 13241 13242 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13243 no_undefined_flag_CXX='${wl}-z,text' 13244 archive_cmds_need_lc_CXX=no 13245 hardcode_shlibpath_var_CXX=no 13246 runpath_var='LD_RUN_PATH' 13247 13248 case $cc_basename in 13249 CC*) 13250 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13251 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13252 ;; 13253 *) 13254 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13255 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13256 ;; 13257 esac 13258 ;; 13259 13260 sysv5* | sco3.2v5* | sco5v6*) 13261 # Note: We can NOT use -z defs as we might desire, because we do not 13262 # link with -lc, and that would cause any symbols used from libc to 13263 # always be unresolved, which means just about no library would 13264 # ever link correctly. If we're not using GNU ld we use -z text 13265 # though, which does catch some bad symbols but isn't as heavy-handed 13266 # as -z defs. 13267 no_undefined_flag_CXX='${wl}-z,text' 13268 allow_undefined_flag_CXX='${wl}-z,nodefs' 13269 archive_cmds_need_lc_CXX=no 13270 hardcode_shlibpath_var_CXX=no 13271 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13272 hardcode_libdir_separator_CXX=':' 13273 link_all_deplibs_CXX=yes 13274 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13275 runpath_var='LD_RUN_PATH' 13276 13277 case $cc_basename in 13278 CC*) 13279 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13280 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13281 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13282 '"$old_archive_cmds_CXX" 13283 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13284 '"$reload_cmds_CXX" 13285 ;; 13286 *) 13287 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13288 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13289 ;; 13290 esac 13291 ;; 13292 13293 tandem*) 13294 case $cc_basename in 13295 NCC*) 13296 # NonStop-UX NCC 3.20 13297 # FIXME: insert proper C++ library support 13298 ld_shlibs_CXX=no 13299 ;; 13300 *) 13301 # FIXME: insert proper C++ library support 13302 ld_shlibs_CXX=no 13303 ;; 13304 esac 13305 ;; 13306 13307 vxworks*) 13308 # FIXME: insert proper C++ library support 13309 ld_shlibs_CXX=no 13310 ;; 13311 13312 *) 13313 # FIXME: insert proper C++ library support 13314 ld_shlibs_CXX=no 13315 ;; 13316 esac 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13319 $as_echo "$ld_shlibs_CXX" >&6; } 13320 test "$ld_shlibs_CXX" = no && can_build_shared=no 13321 13322 GCC_CXX="$GXX" 13323 LD_CXX="$LD" 13324 13325 ## CAVEAT EMPTOR: 13326 ## There is no encapsulation within the following macros, do not change 13327 ## the running order or otherwise move them around unless you know exactly 13328 ## what you are doing... 13329 # Dependencies to place before and after the object being linked: 13330 predep_objects_CXX= 13331 postdep_objects_CXX= 13332 predeps_CXX= 13333 postdeps_CXX= 13334 compiler_lib_search_path_CXX= 13335 13336 cat > conftest.$ac_ext <<_LT_EOF 13337 class Foo 13338 { 13339 public: 13340 Foo (void) { a = 0; } 13341 private: 13342 int a; 13343 }; 13344 _LT_EOF 13345 13346 13347 _lt_libdeps_save_CFLAGS=$CFLAGS 13348 case "$CC $CFLAGS " in #( 13349 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13350 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13351 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13352 esac 13353 13354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13355 (eval $ac_compile) 2>&5 13356 ac_status=$? 13357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13358 test $ac_status = 0; }; then 13359 # Parse the compiler output and extract the necessary 13360 # objects, libraries and library flags. 13361 13362 # Sentinel used to keep track of whether or not we are before 13363 # the conftest object file. 13364 pre_test_object_deps_done=no 13365 13366 for p in `eval "$output_verbose_link_cmd"`; do 13367 case ${prev}${p} in 13368 13369 -L* | -R* | -l*) 13370 # Some compilers place space between "-{L,R}" and the path. 13371 # Remove the space. 13372 if test $p = "-L" || 13373 test $p = "-R"; then 13374 prev=$p 13375 continue 13376 fi 13377 13378 # Expand the sysroot to ease extracting the directories later. 13379 if test -z "$prev"; then 13380 case $p in 13381 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13382 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13383 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13384 esac 13385 fi 13386 case $p in 13387 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13388 esac 13389 if test "$pre_test_object_deps_done" = no; then 13390 case ${prev} in 13391 -L | -R) 13392 # Internal compiler library paths should come after those 13393 # provided the user. The postdeps already come after the 13394 # user supplied libs so there is no need to process them. 13395 if test -z "$compiler_lib_search_path_CXX"; then 13396 compiler_lib_search_path_CXX="${prev}${p}" 13397 else 13398 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13399 fi 13400 ;; 13401 # The "-l" case would never come before the object being 13402 # linked, so don't bother handling this case. 13403 esac 13404 else 13405 if test -z "$postdeps_CXX"; then 13406 postdeps_CXX="${prev}${p}" 13407 else 13408 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13409 fi 13410 fi 13411 prev= 13412 ;; 13413 13414 *.lto.$objext) ;; # Ignore GCC LTO objects 13415 *.$objext) 13416 # This assumes that the test object file only shows up 13417 # once in the compiler output. 13418 if test "$p" = "conftest.$objext"; then 13419 pre_test_object_deps_done=yes 13420 continue 13421 fi 13422 13423 if test "$pre_test_object_deps_done" = no; then 13424 if test -z "$predep_objects_CXX"; then 13425 predep_objects_CXX="$p" 13426 else 13427 predep_objects_CXX="$predep_objects_CXX $p" 13428 fi 13429 else 13430 if test -z "$postdep_objects_CXX"; then 13431 postdep_objects_CXX="$p" 13432 else 13433 postdep_objects_CXX="$postdep_objects_CXX $p" 13434 fi 13435 fi 13436 ;; 13437 13438 *) ;; # Ignore the rest. 13439 13440 esac 13441 done 13442 13443 # Clean up. 13444 rm -f a.out a.exe 13445 else 13446 echo "libtool.m4: error: problem compiling CXX test program" 13447 fi 13448 13449 $RM -f confest.$objext 13450 CFLAGS=$_lt_libdeps_save_CFLAGS 13451 13452 # PORTME: override above test on systems where it is broken 13453 case $host_os in 13454 interix[3-9]*) 13455 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13456 # hack all around it, let's just trust "g++" to DTRT. 13457 predep_objects_CXX= 13458 postdep_objects_CXX= 13459 postdeps_CXX= 13460 ;; 13461 13462 linux*) 13463 case `$CC -V 2>&1 | sed 5q` in 13464 *Sun\ C*) 13465 # Sun C++ 5.9 13466 13467 # The more standards-conforming stlport4 library is 13468 # incompatible with the Cstd library. Avoid specifying 13469 # it if it's in CXXFLAGS. Ignore libCrun as 13470 # -library=stlport4 depends on it. 13471 case " $CXX $CXXFLAGS " in 13472 *" -library=stlport4 "*) 13473 solaris_use_stlport4=yes 13474 ;; 13475 esac 13476 13477 if test "$solaris_use_stlport4" != yes; then 13478 postdeps_CXX='-library=Cstd -library=Crun' 13479 fi 13480 ;; 13481 esac 13482 ;; 13483 13484 solaris*) 13485 case $cc_basename in 13486 CC* | sunCC*) 13487 # The more standards-conforming stlport4 library is 13488 # incompatible with the Cstd library. Avoid specifying 13489 # it if it's in CXXFLAGS. Ignore libCrun as 13490 # -library=stlport4 depends on it. 13491 case " $CXX $CXXFLAGS " in 13492 *" -library=stlport4 "*) 13493 solaris_use_stlport4=yes 13494 ;; 13495 esac 13496 13497 # Adding this requires a known-good setup of shared libraries for 13498 # Sun compiler versions before 5.6, else PIC objects from an old 13499 # archive will be linked into the output, leading to subtle bugs. 13500 if test "$solaris_use_stlport4" != yes; then 13501 postdeps_CXX='-library=Cstd -library=Crun' 13502 fi 13503 ;; 13504 esac 13505 ;; 13506 esac 13507 13508 13509 case " $postdeps_CXX " in 13510 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 13511 esac 13512 compiler_lib_search_dirs_CXX= 13513 if test -n "${compiler_lib_search_path_CXX}"; then 13514 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13515 fi 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 lt_prog_compiler_wl_CXX= 13548 lt_prog_compiler_pic_CXX= 13549 lt_prog_compiler_static_CXX= 13550 13551 13552 # C++ specific cases for pic, static, wl, etc. 13553 if test "$GXX" = yes; then 13554 lt_prog_compiler_wl_CXX='-Wl,' 13555 lt_prog_compiler_static_CXX='-static' 13556 13557 case $host_os in 13558 aix*) 13559 # All AIX code is PIC. 13560 if test "$host_cpu" = ia64; then 13561 # AIX 5 now supports IA64 processor 13562 lt_prog_compiler_static_CXX='-Bstatic' 13563 fi 13564 ;; 13565 13566 amigaos*) 13567 case $host_cpu in 13568 powerpc) 13569 # see comment about AmigaOS4 .so support 13570 lt_prog_compiler_pic_CXX='-fPIC' 13571 ;; 13572 m68k) 13573 # FIXME: we need at least 68020 code to build shared libraries, but 13574 # adding the `-m68020' flag to GCC prevents building anything better, 13575 # like `-m68040'. 13576 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13577 ;; 13578 esac 13579 ;; 13580 13581 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13582 # PIC is the default for these OSes. 13583 ;; 13584 mingw* | cygwin* | os2* | pw32* | cegcc*) 13585 # This hack is so that the source file can tell whether it is being 13586 # built for inclusion in a dll (and should export symbols for example). 13587 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13588 # (--disable-auto-import) libraries 13589 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13590 ;; 13591 darwin* | rhapsody*) 13592 # PIC is the default on this platform 13593 # Common symbols not allowed in MH_DYLIB files 13594 lt_prog_compiler_pic_CXX='-fno-common' 13595 ;; 13596 *djgpp*) 13597 # DJGPP does not support shared libraries at all 13598 lt_prog_compiler_pic_CXX= 13599 ;; 13600 haiku*) 13601 # PIC is the default for Haiku. 13602 # The "-static" flag exists, but is broken. 13603 lt_prog_compiler_static_CXX= 13604 ;; 13605 interix[3-9]*) 13606 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13607 # Instead, we relocate shared libraries at runtime. 13608 ;; 13609 sysv4*MP*) 13610 if test -d /usr/nec; then 13611 lt_prog_compiler_pic_CXX=-Kconform_pic 13612 fi 13613 ;; 13614 hpux*) 13615 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13616 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13617 # sets the default TLS model and affects inlining. 13618 case $host_cpu in 13619 hppa*64*) 13620 ;; 13621 *) 13622 lt_prog_compiler_pic_CXX='-fPIC' 13623 ;; 13624 esac 13625 ;; 13626 *qnx* | *nto*) 13627 # QNX uses GNU C++, but need to define -shared option too, otherwise 13628 # it will coredump. 13629 lt_prog_compiler_pic_CXX='-fPIC -shared' 13630 ;; 13631 *) 13632 lt_prog_compiler_pic_CXX='-fPIC' 13633 ;; 13634 esac 13635 else 13636 case $host_os in 13637 aix[4-9]*) 13638 # All AIX code is PIC. 13639 if test "$host_cpu" = ia64; then 13640 # AIX 5 now supports IA64 processor 13641 lt_prog_compiler_static_CXX='-Bstatic' 13642 else 13643 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13644 fi 13645 ;; 13646 chorus*) 13647 case $cc_basename in 13648 cxch68*) 13649 # Green Hills C++ Compiler 13650 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13651 ;; 13652 esac 13653 ;; 13654 mingw* | cygwin* | os2* | pw32* | cegcc*) 13655 # This hack is so that the source file can tell whether it is being 13656 # built for inclusion in a dll (and should export symbols for example). 13657 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13658 ;; 13659 dgux*) 13660 case $cc_basename in 13661 ec++*) 13662 lt_prog_compiler_pic_CXX='-KPIC' 13663 ;; 13664 ghcx*) 13665 # Green Hills C++ Compiler 13666 lt_prog_compiler_pic_CXX='-pic' 13667 ;; 13668 *) 13669 ;; 13670 esac 13671 ;; 13672 freebsd* | dragonfly*) 13673 # FreeBSD uses GNU C++ 13674 ;; 13675 hpux9* | hpux10* | hpux11*) 13676 case $cc_basename in 13677 CC*) 13678 lt_prog_compiler_wl_CXX='-Wl,' 13679 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13680 if test "$host_cpu" != ia64; then 13681 lt_prog_compiler_pic_CXX='+Z' 13682 fi 13683 ;; 13684 aCC*) 13685 lt_prog_compiler_wl_CXX='-Wl,' 13686 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13687 case $host_cpu in 13688 hppa*64*|ia64*) 13689 # +Z the default 13690 ;; 13691 *) 13692 lt_prog_compiler_pic_CXX='+Z' 13693 ;; 13694 esac 13695 ;; 13696 *) 13697 ;; 13698 esac 13699 ;; 13700 interix*) 13701 # This is c89, which is MS Visual C++ (no shared libs) 13702 # Anyone wants to do a port? 13703 ;; 13704 irix5* | irix6* | nonstopux*) 13705 case $cc_basename in 13706 CC*) 13707 lt_prog_compiler_wl_CXX='-Wl,' 13708 lt_prog_compiler_static_CXX='-non_shared' 13709 # CC pic flag -KPIC is the default. 13710 ;; 13711 *) 13712 ;; 13713 esac 13714 ;; 13715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13716 case $cc_basename in 13717 KCC*) 13718 # KAI C++ Compiler 13719 lt_prog_compiler_wl_CXX='--backend -Wl,' 13720 lt_prog_compiler_pic_CXX='-fPIC' 13721 ;; 13722 ecpc* ) 13723 # old Intel C++ for x86_64 which still supported -KPIC. 13724 lt_prog_compiler_wl_CXX='-Wl,' 13725 lt_prog_compiler_pic_CXX='-KPIC' 13726 lt_prog_compiler_static_CXX='-static' 13727 ;; 13728 icpc* ) 13729 # Intel C++, used to be incompatible with GCC. 13730 # ICC 10 doesn't accept -KPIC any more. 13731 lt_prog_compiler_wl_CXX='-Wl,' 13732 lt_prog_compiler_pic_CXX='-fPIC' 13733 lt_prog_compiler_static_CXX='-static' 13734 ;; 13735 pgCC* | pgcpp*) 13736 # Portland Group C++ compiler 13737 lt_prog_compiler_wl_CXX='-Wl,' 13738 lt_prog_compiler_pic_CXX='-fpic' 13739 lt_prog_compiler_static_CXX='-Bstatic' 13740 ;; 13741 cxx*) 13742 # Compaq C++ 13743 # Make sure the PIC flag is empty. It appears that all Alpha 13744 # Linux and Compaq Tru64 Unix objects are PIC. 13745 lt_prog_compiler_pic_CXX= 13746 lt_prog_compiler_static_CXX='-non_shared' 13747 ;; 13748 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13749 # IBM XL 8.0, 9.0 on PPC and BlueGene 13750 lt_prog_compiler_wl_CXX='-Wl,' 13751 lt_prog_compiler_pic_CXX='-qpic' 13752 lt_prog_compiler_static_CXX='-qstaticlink' 13753 ;; 13754 *) 13755 case `$CC -V 2>&1 | sed 5q` in 13756 *Sun\ C*) 13757 # Sun C++ 5.9 13758 lt_prog_compiler_pic_CXX='-KPIC' 13759 lt_prog_compiler_static_CXX='-Bstatic' 13760 lt_prog_compiler_wl_CXX='-Qoption ld ' 13761 ;; 13762 esac 13763 ;; 13764 esac 13765 ;; 13766 lynxos*) 13767 ;; 13768 m88k*) 13769 ;; 13770 mvs*) 13771 case $cc_basename in 13772 cxx*) 13773 lt_prog_compiler_pic_CXX='-W c,exportall' 13774 ;; 13775 *) 13776 ;; 13777 esac 13778 ;; 13779 netbsd* | netbsdelf*-gnu) 13780 ;; 13781 *qnx* | *nto*) 13782 # QNX uses GNU C++, but need to define -shared option too, otherwise 13783 # it will coredump. 13784 lt_prog_compiler_pic_CXX='-fPIC -shared' 13785 ;; 13786 osf3* | osf4* | osf5*) 13787 case $cc_basename in 13788 KCC*) 13789 lt_prog_compiler_wl_CXX='--backend -Wl,' 13790 ;; 13791 RCC*) 13792 # Rational C++ 2.4.1 13793 lt_prog_compiler_pic_CXX='-pic' 13794 ;; 13795 cxx*) 13796 # Digital/Compaq C++ 13797 lt_prog_compiler_wl_CXX='-Wl,' 13798 # Make sure the PIC flag is empty. It appears that all Alpha 13799 # Linux and Compaq Tru64 Unix objects are PIC. 13800 lt_prog_compiler_pic_CXX= 13801 lt_prog_compiler_static_CXX='-non_shared' 13802 ;; 13803 *) 13804 ;; 13805 esac 13806 ;; 13807 psos*) 13808 ;; 13809 solaris*) 13810 case $cc_basename in 13811 CC* | sunCC*) 13812 # Sun C++ 4.2, 5.x and Centerline C++ 13813 lt_prog_compiler_pic_CXX='-KPIC' 13814 lt_prog_compiler_static_CXX='-Bstatic' 13815 lt_prog_compiler_wl_CXX='-Qoption ld ' 13816 ;; 13817 gcx*) 13818 # Green Hills C++ Compiler 13819 lt_prog_compiler_pic_CXX='-PIC' 13820 ;; 13821 *) 13822 ;; 13823 esac 13824 ;; 13825 sunos4*) 13826 case $cc_basename in 13827 CC*) 13828 # Sun C++ 4.x 13829 lt_prog_compiler_pic_CXX='-pic' 13830 lt_prog_compiler_static_CXX='-Bstatic' 13831 ;; 13832 lcc*) 13833 # Lucid 13834 lt_prog_compiler_pic_CXX='-pic' 13835 ;; 13836 *) 13837 ;; 13838 esac 13839 ;; 13840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13841 case $cc_basename in 13842 CC*) 13843 lt_prog_compiler_wl_CXX='-Wl,' 13844 lt_prog_compiler_pic_CXX='-KPIC' 13845 lt_prog_compiler_static_CXX='-Bstatic' 13846 ;; 13847 esac 13848 ;; 13849 tandem*) 13850 case $cc_basename in 13851 NCC*) 13852 # NonStop-UX NCC 3.20 13853 lt_prog_compiler_pic_CXX='-KPIC' 13854 ;; 13855 *) 13856 ;; 13857 esac 13858 ;; 13859 vxworks*) 13860 ;; 13861 *) 13862 lt_prog_compiler_can_build_shared_CXX=no 13863 ;; 13864 esac 13865 fi 13866 13867 case $host_os in 13868 # For platforms which do not support PIC, -DPIC is meaningless: 13869 *djgpp*) 13870 lt_prog_compiler_pic_CXX= 13871 ;; 13872 *) 13873 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13874 ;; 13875 esac 13876 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13878 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13879 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 13880 $as_echo_n "(cached) " >&6 13881 else 13882 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 13883 fi 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 13885 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 13886 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 13887 13888 # 13889 # Check to make sure the PIC flag actually works. 13890 # 13891 if test -n "$lt_prog_compiler_pic_CXX"; then 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13893 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13894 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 13895 $as_echo_n "(cached) " >&6 13896 else 13897 lt_cv_prog_compiler_pic_works_CXX=no 13898 ac_outfile=conftest.$ac_objext 13899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13900 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13901 # Insert the option either (1) after the last *FLAGS variable, or 13902 # (2) before a word containing "conftest.", or (3) at the end. 13903 # Note that $ac_compile itself does not contain backslashes and begins 13904 # with a dollar sign (not a hyphen), so the echo should work correctly. 13905 # The option is referenced via a variable to avoid confusing sed. 13906 lt_compile=`echo "$ac_compile" | $SED \ 13907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13909 -e 's:$: $lt_compiler_flag:'` 13910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13911 (eval "$lt_compile" 2>conftest.err) 13912 ac_status=$? 13913 cat conftest.err >&5 13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13915 if (exit $ac_status) && test -s "$ac_outfile"; then 13916 # The compiler can only warn and ignore the option if not recognized 13917 # So say no if there are warnings other than the usual output. 13918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13921 lt_cv_prog_compiler_pic_works_CXX=yes 13922 fi 13923 fi 13924 $RM conftest* 13925 13926 fi 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13928 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13929 13930 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13931 case $lt_prog_compiler_pic_CXX in 13932 "" | " "*) ;; 13933 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13934 esac 13935 else 13936 lt_prog_compiler_pic_CXX= 13937 lt_prog_compiler_can_build_shared_CXX=no 13938 fi 13939 13940 fi 13941 13942 13943 13944 13945 13946 # 13947 # Check to make sure the static flag actually works. 13948 # 13949 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13951 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13952 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 13953 $as_echo_n "(cached) " >&6 13954 else 13955 lt_cv_prog_compiler_static_works_CXX=no 13956 save_LDFLAGS="$LDFLAGS" 13957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13958 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13960 # The linker can only warn and ignore the option if not recognized 13961 # So say no if there are warnings 13962 if test -s conftest.err; then 13963 # Append any errors to the config.log. 13964 cat conftest.err 1>&5 13965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13967 if diff conftest.exp conftest.er2 >/dev/null; then 13968 lt_cv_prog_compiler_static_works_CXX=yes 13969 fi 13970 else 13971 lt_cv_prog_compiler_static_works_CXX=yes 13972 fi 13973 fi 13974 $RM -r conftest* 13975 LDFLAGS="$save_LDFLAGS" 13976 13977 fi 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13979 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13980 13981 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13982 : 13983 else 13984 lt_prog_compiler_static_CXX= 13985 fi 13986 13987 13988 13989 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13992 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994 else 13995 lt_cv_prog_compiler_c_o_CXX=no 13996 $RM -r conftest 2>/dev/null 13997 mkdir conftest 13998 cd conftest 13999 mkdir out 14000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14001 14002 lt_compiler_flag="-o out/conftest2.$ac_objext" 14003 # Insert the option either (1) after the last *FLAGS variable, or 14004 # (2) before a word containing "conftest.", or (3) at the end. 14005 # Note that $ac_compile itself does not contain backslashes and begins 14006 # with a dollar sign (not a hyphen), so the echo should work correctly. 14007 lt_compile=`echo "$ac_compile" | $SED \ 14008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14010 -e 's:$: $lt_compiler_flag:'` 14011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14012 (eval "$lt_compile" 2>out/conftest.err) 14013 ac_status=$? 14014 cat out/conftest.err >&5 14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14016 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14017 then 14018 # The compiler can only warn and ignore the option if not recognized 14019 # So say no if there are warnings 14020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14023 lt_cv_prog_compiler_c_o_CXX=yes 14024 fi 14025 fi 14026 chmod u+w . 2>&5 14027 $RM conftest* 14028 # SGI C++ compiler will create directory out/ii_files/ for 14029 # template instantiation 14030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14031 $RM out/* && rmdir out 14032 cd .. 14033 $RM -r conftest 14034 $RM conftest* 14035 14036 fi 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14038 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14039 14040 14041 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14044 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14045 $as_echo_n "(cached) " >&6 14046 else 14047 lt_cv_prog_compiler_c_o_CXX=no 14048 $RM -r conftest 2>/dev/null 14049 mkdir conftest 14050 cd conftest 14051 mkdir out 14052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14053 14054 lt_compiler_flag="-o out/conftest2.$ac_objext" 14055 # Insert the option either (1) after the last *FLAGS variable, or 14056 # (2) before a word containing "conftest.", or (3) at the end. 14057 # Note that $ac_compile itself does not contain backslashes and begins 14058 # with a dollar sign (not a hyphen), so the echo should work correctly. 14059 lt_compile=`echo "$ac_compile" | $SED \ 14060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14062 -e 's:$: $lt_compiler_flag:'` 14063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14064 (eval "$lt_compile" 2>out/conftest.err) 14065 ac_status=$? 14066 cat out/conftest.err >&5 14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14068 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14069 then 14070 # The compiler can only warn and ignore the option if not recognized 14071 # So say no if there are warnings 14072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14075 lt_cv_prog_compiler_c_o_CXX=yes 14076 fi 14077 fi 14078 chmod u+w . 2>&5 14079 $RM conftest* 14080 # SGI C++ compiler will create directory out/ii_files/ for 14081 # template instantiation 14082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14083 $RM out/* && rmdir out 14084 cd .. 14085 $RM -r conftest 14086 $RM conftest* 14087 14088 fi 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14090 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14091 14092 14093 14094 14095 hard_links="nottested" 14096 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14097 # do not overwrite the value of need_locks provided by the user 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14099 $as_echo_n "checking if we can lock with hard links... " >&6; } 14100 hard_links=yes 14101 $RM conftest* 14102 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14103 touch conftest.a 14104 ln conftest.a conftest.b 2>&5 || hard_links=no 14105 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14107 $as_echo "$hard_links" >&6; } 14108 if test "$hard_links" = no; then 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14110 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14111 need_locks=warn 14112 fi 14113 else 14114 need_locks=no 14115 fi 14116 14117 14118 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14120 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14121 14122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14123 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14124 case $host_os in 14125 aix[4-9]*) 14126 # If we're using GNU nm, then we don't want the "-C" option. 14127 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14128 # Also, AIX nm treats weak defined symbols like other global defined 14129 # symbols, whereas GNU nm marks them as "W". 14130 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14131 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14132 else 14133 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14134 fi 14135 ;; 14136 pw32*) 14137 export_symbols_cmds_CXX="$ltdll_cmds" 14138 ;; 14139 cygwin* | mingw* | cegcc*) 14140 case $cc_basename in 14141 cl*) 14142 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14143 ;; 14144 *) 14145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14146 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14147 ;; 14148 esac 14149 ;; 14150 linux* | k*bsd*-gnu | gnu*) 14151 link_all_deplibs_CXX=no 14152 ;; 14153 *) 14154 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14155 ;; 14156 esac 14157 14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14159 $as_echo "$ld_shlibs_CXX" >&6; } 14160 test "$ld_shlibs_CXX" = no && can_build_shared=no 14161 14162 with_gnu_ld_CXX=$with_gnu_ld 14163 14164 14165 14166 14167 14168 14169 # 14170 # Do we need to explicitly link libc? 14171 # 14172 case "x$archive_cmds_need_lc_CXX" in 14173 x|xyes) 14174 # Assume -lc should be added 14175 archive_cmds_need_lc_CXX=yes 14176 14177 if test "$enable_shared" = yes && test "$GCC" = yes; then 14178 case $archive_cmds_CXX in 14179 *'~'*) 14180 # FIXME: we may have to deal with multi-command sequences. 14181 ;; 14182 '$CC '*) 14183 # Test whether the compiler implicitly links with -lc since on some 14184 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14185 # to ld, don't add -lc before -lgcc. 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14188 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14189 $as_echo_n "(cached) " >&6 14190 else 14191 $RM conftest* 14192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14193 14194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14195 (eval $ac_compile) 2>&5 14196 ac_status=$? 14197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14198 test $ac_status = 0; } 2>conftest.err; then 14199 soname=conftest 14200 lib=conftest 14201 libobjs=conftest.$ac_objext 14202 deplibs= 14203 wl=$lt_prog_compiler_wl_CXX 14204 pic_flag=$lt_prog_compiler_pic_CXX 14205 compiler_flags=-v 14206 linker_flags=-v 14207 verstring= 14208 output_objdir=. 14209 libname=conftest 14210 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14211 allow_undefined_flag_CXX= 14212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14213 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14214 ac_status=$? 14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14216 test $ac_status = 0; } 14217 then 14218 lt_cv_archive_cmds_need_lc_CXX=no 14219 else 14220 lt_cv_archive_cmds_need_lc_CXX=yes 14221 fi 14222 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14223 else 14224 cat conftest.err 1>&5 14225 fi 14226 $RM conftest* 14227 14228 fi 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14230 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14231 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14232 ;; 14233 esac 14234 fi 14235 ;; 14236 esac 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14300 $as_echo_n "checking dynamic linker characteristics... " >&6; } 14301 14302 library_names_spec= 14303 libname_spec='lib$name' 14304 soname_spec= 14305 shrext_cmds=".so" 14306 postinstall_cmds= 14307 postuninstall_cmds= 14308 finish_cmds= 14309 finish_eval= 14310 shlibpath_var= 14311 shlibpath_overrides_runpath=unknown 14312 version_type=none 14313 dynamic_linker="$host_os ld.so" 14314 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14315 need_lib_prefix=unknown 14316 hardcode_into_libs=no 14317 14318 # when you set need_version to no, make sure it does not cause -set_version 14319 # flags to be left without arguments 14320 need_version=unknown 14321 14322 case $host_os in 14323 aix3*) 14324 version_type=linux # correct to gnu/linux during the next big refactor 14325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14326 shlibpath_var=LIBPATH 14327 14328 # AIX 3 has no versioning support, so we append a major version to the name. 14329 soname_spec='${libname}${release}${shared_ext}$major' 14330 ;; 14331 14332 aix[4-9]*) 14333 version_type=linux # correct to gnu/linux during the next big refactor 14334 need_lib_prefix=no 14335 need_version=no 14336 hardcode_into_libs=yes 14337 if test "$host_cpu" = ia64; then 14338 # AIX 5 supports IA64 14339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14340 shlibpath_var=LD_LIBRARY_PATH 14341 else 14342 # With GCC up to 2.95.x, collect2 would create an import file 14343 # for dependence libraries. The import file would start with 14344 # the line `#! .'. This would cause the generated library to 14345 # depend on `.', always an invalid library. This was fixed in 14346 # development snapshots of GCC prior to 3.0. 14347 case $host_os in 14348 aix4 | aix4.[01] | aix4.[01].*) 14349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14350 echo ' yes ' 14351 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14352 : 14353 else 14354 can_build_shared=no 14355 fi 14356 ;; 14357 esac 14358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14359 # soname into executable. Probably we can add versioning support to 14360 # collect2, so additional links can be useful in future. 14361 if test "$aix_use_runtimelinking" = yes; then 14362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14363 # instead of lib<name>.a to let people know that these are not 14364 # typical AIX shared libraries. 14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14366 else 14367 # We preserve .a as extension for shared libraries through AIX4.2 14368 # and later when we are not doing run time linking. 14369 library_names_spec='${libname}${release}.a $libname.a' 14370 soname_spec='${libname}${release}${shared_ext}$major' 14371 fi 14372 shlibpath_var=LIBPATH 14373 fi 14374 ;; 14375 14376 amigaos*) 14377 case $host_cpu in 14378 powerpc) 14379 # Since July 2007 AmigaOS4 officially supports .so libraries. 14380 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14382 ;; 14383 m68k) 14384 library_names_spec='$libname.ixlibrary $libname.a' 14385 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14386 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' 14387 ;; 14388 esac 14389 ;; 14390 14391 beos*) 14392 library_names_spec='${libname}${shared_ext}' 14393 dynamic_linker="$host_os ld.so" 14394 shlibpath_var=LIBRARY_PATH 14395 ;; 14396 14397 bsdi[45]*) 14398 version_type=linux # correct to gnu/linux during the next big refactor 14399 need_version=no 14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14401 soname_spec='${libname}${release}${shared_ext}$major' 14402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14403 shlibpath_var=LD_LIBRARY_PATH 14404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14406 # the default ld.so.conf also contains /usr/contrib/lib and 14407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14408 # libtool to hard-code these into programs 14409 ;; 14410 14411 cygwin* | mingw* | pw32* | cegcc*) 14412 version_type=windows 14413 shrext_cmds=".dll" 14414 need_version=no 14415 need_lib_prefix=no 14416 14417 case $GCC,$cc_basename in 14418 yes,*) 14419 # gcc 14420 library_names_spec='$libname.dll.a' 14421 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14422 postinstall_cmds='base_file=`basename \${file}`~ 14423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14424 dldir=$destdir/`dirname \$dlpath`~ 14425 test -d \$dldir || mkdir -p \$dldir~ 14426 $install_prog $dir/$dlname \$dldir/$dlname~ 14427 chmod a+x \$dldir/$dlname~ 14428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14430 fi' 14431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14432 dlpath=$dir/\$dldll~ 14433 $RM \$dlpath' 14434 shlibpath_overrides_runpath=yes 14435 14436 case $host_os in 14437 cygwin*) 14438 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14440 14441 ;; 14442 mingw* | cegcc*) 14443 # MinGW DLLs use traditional 'lib' prefix 14444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14445 ;; 14446 pw32*) 14447 # pw32 DLLs use 'pw' prefix rather than 'lib' 14448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14449 ;; 14450 esac 14451 dynamic_linker='Win32 ld.exe' 14452 ;; 14453 14454 *,cl*) 14455 # Native MSVC 14456 libname_spec='$name' 14457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14458 library_names_spec='${libname}.dll.lib' 14459 14460 case $build_os in 14461 mingw*) 14462 sys_lib_search_path_spec= 14463 lt_save_ifs=$IFS 14464 IFS=';' 14465 for lt_path in $LIB 14466 do 14467 IFS=$lt_save_ifs 14468 # Let DOS variable expansion print the short 8.3 style file name. 14469 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14470 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14471 done 14472 IFS=$lt_save_ifs 14473 # Convert to MSYS style. 14474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14475 ;; 14476 cygwin*) 14477 # Convert to unix form, then to dos form, then back to unix form 14478 # but this time dos style (no spaces!) so that the unix form looks 14479 # like /cygdrive/c/PROGRA~1:/cygdr... 14480 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14481 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14482 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14483 ;; 14484 *) 14485 sys_lib_search_path_spec="$LIB" 14486 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14487 # It is most probably a Windows format PATH. 14488 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14489 else 14490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14491 fi 14492 # FIXME: find the short name or the path components, as spaces are 14493 # common. (e.g. "Program Files" -> "PROGRA~1") 14494 ;; 14495 esac 14496 14497 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14498 postinstall_cmds='base_file=`basename \${file}`~ 14499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14500 dldir=$destdir/`dirname \$dlpath`~ 14501 test -d \$dldir || mkdir -p \$dldir~ 14502 $install_prog $dir/$dlname \$dldir/$dlname' 14503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14504 dlpath=$dir/\$dldll~ 14505 $RM \$dlpath' 14506 shlibpath_overrides_runpath=yes 14507 dynamic_linker='Win32 link.exe' 14508 ;; 14509 14510 *) 14511 # Assume MSVC wrapper 14512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14513 dynamic_linker='Win32 ld.exe' 14514 ;; 14515 esac 14516 # FIXME: first we should search . and the directory the executable is in 14517 shlibpath_var=PATH 14518 ;; 14519 14520 darwin* | rhapsody*) 14521 dynamic_linker="$host_os dyld" 14522 version_type=darwin 14523 need_lib_prefix=no 14524 need_version=no 14525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14526 soname_spec='${libname}${release}${major}$shared_ext' 14527 shlibpath_overrides_runpath=yes 14528 shlibpath_var=DYLD_LIBRARY_PATH 14529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14530 14531 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14532 ;; 14533 14534 dgux*) 14535 version_type=linux # correct to gnu/linux during the next big refactor 14536 need_lib_prefix=no 14537 need_version=no 14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14539 soname_spec='${libname}${release}${shared_ext}$major' 14540 shlibpath_var=LD_LIBRARY_PATH 14541 ;; 14542 14543 freebsd* | dragonfly*) 14544 # DragonFly does not have aout. When/if they implement a new 14545 # versioning mechanism, adjust this. 14546 if test -x /usr/bin/objformat; then 14547 objformat=`/usr/bin/objformat` 14548 else 14549 case $host_os in 14550 freebsd[23].*) objformat=aout ;; 14551 *) objformat=elf ;; 14552 esac 14553 fi 14554 version_type=freebsd-$objformat 14555 case $version_type in 14556 freebsd-elf*) 14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14558 need_version=no 14559 need_lib_prefix=no 14560 ;; 14561 freebsd-*) 14562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14563 need_version=yes 14564 ;; 14565 esac 14566 shlibpath_var=LD_LIBRARY_PATH 14567 case $host_os in 14568 freebsd2.*) 14569 shlibpath_overrides_runpath=yes 14570 ;; 14571 freebsd3.[01]* | freebsdelf3.[01]*) 14572 shlibpath_overrides_runpath=yes 14573 hardcode_into_libs=yes 14574 ;; 14575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14577 shlibpath_overrides_runpath=no 14578 hardcode_into_libs=yes 14579 ;; 14580 *) # from 4.6 on, and DragonFly 14581 shlibpath_overrides_runpath=yes 14582 hardcode_into_libs=yes 14583 ;; 14584 esac 14585 ;; 14586 14587 haiku*) 14588 version_type=linux # correct to gnu/linux during the next big refactor 14589 need_lib_prefix=no 14590 need_version=no 14591 dynamic_linker="$host_os runtime_loader" 14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14593 soname_spec='${libname}${release}${shared_ext}$major' 14594 shlibpath_var=LIBRARY_PATH 14595 shlibpath_overrides_runpath=yes 14596 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14597 hardcode_into_libs=yes 14598 ;; 14599 14600 hpux9* | hpux10* | hpux11*) 14601 # Give a soname corresponding to the major version so that dld.sl refuses to 14602 # link against other versions. 14603 version_type=sunos 14604 need_lib_prefix=no 14605 need_version=no 14606 case $host_cpu in 14607 ia64*) 14608 shrext_cmds='.so' 14609 hardcode_into_libs=yes 14610 dynamic_linker="$host_os dld.so" 14611 shlibpath_var=LD_LIBRARY_PATH 14612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14614 soname_spec='${libname}${release}${shared_ext}$major' 14615 if test "X$HPUX_IA64_MODE" = X32; then 14616 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14617 else 14618 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14619 fi 14620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14621 ;; 14622 hppa*64*) 14623 shrext_cmds='.sl' 14624 hardcode_into_libs=yes 14625 dynamic_linker="$host_os dld.sl" 14626 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14629 soname_spec='${libname}${release}${shared_ext}$major' 14630 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14631 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14632 ;; 14633 *) 14634 shrext_cmds='.sl' 14635 dynamic_linker="$host_os dld.sl" 14636 shlibpath_var=SHLIB_PATH 14637 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14639 soname_spec='${libname}${release}${shared_ext}$major' 14640 ;; 14641 esac 14642 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14643 postinstall_cmds='chmod 555 $lib' 14644 # or fails outright, so override atomically: 14645 install_override_mode=555 14646 ;; 14647 14648 interix[3-9]*) 14649 version_type=linux # correct to gnu/linux during the next big refactor 14650 need_lib_prefix=no 14651 need_version=no 14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14653 soname_spec='${libname}${release}${shared_ext}$major' 14654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14655 shlibpath_var=LD_LIBRARY_PATH 14656 shlibpath_overrides_runpath=no 14657 hardcode_into_libs=yes 14658 ;; 14659 14660 irix5* | irix6* | nonstopux*) 14661 case $host_os in 14662 nonstopux*) version_type=nonstopux ;; 14663 *) 14664 if test "$lt_cv_prog_gnu_ld" = yes; then 14665 version_type=linux # correct to gnu/linux during the next big refactor 14666 else 14667 version_type=irix 14668 fi ;; 14669 esac 14670 need_lib_prefix=no 14671 need_version=no 14672 soname_spec='${libname}${release}${shared_ext}$major' 14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14674 case $host_os in 14675 irix5* | nonstopux*) 14676 libsuff= shlibsuff= 14677 ;; 14678 *) 14679 case $LD in # libtool.m4 will add one of these switches to LD 14680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14681 libsuff= shlibsuff= libmagic=32-bit;; 14682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14683 libsuff=32 shlibsuff=N32 libmagic=N32;; 14684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14685 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14686 *) libsuff= shlibsuff= libmagic=never-match;; 14687 esac 14688 ;; 14689 esac 14690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14691 shlibpath_overrides_runpath=no 14692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14694 hardcode_into_libs=yes 14695 ;; 14696 14697 # No shared lib support for Linux oldld, aout, or coff. 14698 linux*oldld* | linux*aout* | linux*coff*) 14699 dynamic_linker=no 14700 ;; 14701 14702 # This must be glibc/ELF. 14703 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14704 version_type=linux # correct to gnu/linux during the next big refactor 14705 need_lib_prefix=no 14706 need_version=no 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14708 soname_spec='${libname}${release}${shared_ext}$major' 14709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14710 shlibpath_var=LD_LIBRARY_PATH 14711 shlibpath_overrides_runpath=no 14712 14713 # Some binutils ld are patched to set DT_RUNPATH 14714 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14715 $as_echo_n "(cached) " >&6 14716 else 14717 lt_cv_shlibpath_overrides_runpath=no 14718 save_LDFLAGS=$LDFLAGS 14719 save_libdir=$libdir 14720 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14721 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723 /* end confdefs.h. */ 14724 14725 int 14726 main () 14727 { 14728 14729 ; 14730 return 0; 14731 } 14732 _ACEOF 14733 if ac_fn_cxx_try_link "$LINENO"; then : 14734 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14735 lt_cv_shlibpath_overrides_runpath=yes 14736 fi 14737 fi 14738 rm -f core conftest.err conftest.$ac_objext \ 14739 conftest$ac_exeext conftest.$ac_ext 14740 LDFLAGS=$save_LDFLAGS 14741 libdir=$save_libdir 14742 14743 fi 14744 14745 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14746 14747 # This implies no fast_install, which is unacceptable. 14748 # Some rework will be needed to allow for fast_install 14749 # before this can be enabled. 14750 hardcode_into_libs=yes 14751 14752 # Append ld.so.conf contents to the search path 14753 if test -f /etc/ld.so.conf; then 14754 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' ' '` 14755 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14756 fi 14757 14758 # We used to test for /lib/ld.so.1 and disable shared libraries on 14759 # powerpc, because MkLinux only supported shared libraries with the 14760 # GNU dynamic linker. Since this was broken with cross compilers, 14761 # most powerpc-linux boxes support dynamic linking these days and 14762 # people can always --disable-shared, the test was removed, and we 14763 # assume the GNU/Linux dynamic linker is in use. 14764 dynamic_linker='GNU/Linux ld.so' 14765 ;; 14766 14767 netbsdelf*-gnu) 14768 version_type=linux 14769 need_lib_prefix=no 14770 need_version=no 14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14772 soname_spec='${libname}${release}${shared_ext}$major' 14773 shlibpath_var=LD_LIBRARY_PATH 14774 shlibpath_overrides_runpath=no 14775 hardcode_into_libs=yes 14776 dynamic_linker='NetBSD ld.elf_so' 14777 ;; 14778 14779 netbsd*) 14780 version_type=sunos 14781 need_lib_prefix=no 14782 need_version=no 14783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14786 dynamic_linker='NetBSD (a.out) ld.so' 14787 else 14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14789 soname_spec='${libname}${release}${shared_ext}$major' 14790 dynamic_linker='NetBSD ld.elf_so' 14791 fi 14792 shlibpath_var=LD_LIBRARY_PATH 14793 shlibpath_overrides_runpath=yes 14794 hardcode_into_libs=yes 14795 ;; 14796 14797 newsos6) 14798 version_type=linux # correct to gnu/linux during the next big refactor 14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14800 shlibpath_var=LD_LIBRARY_PATH 14801 shlibpath_overrides_runpath=yes 14802 ;; 14803 14804 *nto* | *qnx*) 14805 version_type=qnx 14806 need_lib_prefix=no 14807 need_version=no 14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14809 soname_spec='${libname}${release}${shared_ext}$major' 14810 shlibpath_var=LD_LIBRARY_PATH 14811 shlibpath_overrides_runpath=no 14812 hardcode_into_libs=yes 14813 dynamic_linker='ldqnx.so' 14814 ;; 14815 14816 openbsd*) 14817 version_type=sunos 14818 sys_lib_dlsearch_path_spec="/usr/lib" 14819 need_lib_prefix=no 14820 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14821 case $host_os in 14822 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14823 *) need_version=no ;; 14824 esac 14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14827 shlibpath_var=LD_LIBRARY_PATH 14828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14829 case $host_os in 14830 openbsd2.[89] | openbsd2.[89].*) 14831 shlibpath_overrides_runpath=no 14832 ;; 14833 *) 14834 shlibpath_overrides_runpath=yes 14835 ;; 14836 esac 14837 else 14838 shlibpath_overrides_runpath=yes 14839 fi 14840 ;; 14841 14842 os2*) 14843 libname_spec='$name' 14844 shrext_cmds=".dll" 14845 need_lib_prefix=no 14846 library_names_spec='$libname${shared_ext} $libname.a' 14847 dynamic_linker='OS/2 ld.exe' 14848 shlibpath_var=LIBPATH 14849 ;; 14850 14851 osf3* | osf4* | osf5*) 14852 version_type=osf 14853 need_lib_prefix=no 14854 need_version=no 14855 soname_spec='${libname}${release}${shared_ext}$major' 14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14857 shlibpath_var=LD_LIBRARY_PATH 14858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14860 ;; 14861 14862 rdos*) 14863 dynamic_linker=no 14864 ;; 14865 14866 solaris*) 14867 version_type=linux # correct to gnu/linux during the next big refactor 14868 need_lib_prefix=no 14869 need_version=no 14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14871 soname_spec='${libname}${release}${shared_ext}$major' 14872 shlibpath_var=LD_LIBRARY_PATH 14873 shlibpath_overrides_runpath=yes 14874 hardcode_into_libs=yes 14875 # ldd complains unless libraries are executable 14876 postinstall_cmds='chmod +x $lib' 14877 ;; 14878 14879 sunos4*) 14880 version_type=sunos 14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14883 shlibpath_var=LD_LIBRARY_PATH 14884 shlibpath_overrides_runpath=yes 14885 if test "$with_gnu_ld" = yes; then 14886 need_lib_prefix=no 14887 fi 14888 need_version=yes 14889 ;; 14890 14891 sysv4 | sysv4.3*) 14892 version_type=linux # correct to gnu/linux during the next big refactor 14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14894 soname_spec='${libname}${release}${shared_ext}$major' 14895 shlibpath_var=LD_LIBRARY_PATH 14896 case $host_vendor in 14897 sni) 14898 shlibpath_overrides_runpath=no 14899 need_lib_prefix=no 14900 runpath_var=LD_RUN_PATH 14901 ;; 14902 siemens) 14903 need_lib_prefix=no 14904 ;; 14905 motorola) 14906 need_lib_prefix=no 14907 need_version=no 14908 shlibpath_overrides_runpath=no 14909 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14910 ;; 14911 esac 14912 ;; 14913 14914 sysv4*MP*) 14915 if test -d /usr/nec ;then 14916 version_type=linux # correct to gnu/linux during the next big refactor 14917 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14918 soname_spec='$libname${shared_ext}.$major' 14919 shlibpath_var=LD_LIBRARY_PATH 14920 fi 14921 ;; 14922 14923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14924 version_type=freebsd-elf 14925 need_lib_prefix=no 14926 need_version=no 14927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14928 soname_spec='${libname}${release}${shared_ext}$major' 14929 shlibpath_var=LD_LIBRARY_PATH 14930 shlibpath_overrides_runpath=yes 14931 hardcode_into_libs=yes 14932 if test "$with_gnu_ld" = yes; then 14933 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14934 else 14935 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14936 case $host_os in 14937 sco3.2v5*) 14938 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14939 ;; 14940 esac 14941 fi 14942 sys_lib_dlsearch_path_spec='/usr/lib' 14943 ;; 14944 14945 tpf*) 14946 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14947 version_type=linux # correct to gnu/linux during the next big refactor 14948 need_lib_prefix=no 14949 need_version=no 14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14951 shlibpath_var=LD_LIBRARY_PATH 14952 shlibpath_overrides_runpath=no 14953 hardcode_into_libs=yes 14954 ;; 14955 14956 uts4*) 14957 version_type=linux # correct to gnu/linux during the next big refactor 14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14959 soname_spec='${libname}${release}${shared_ext}$major' 14960 shlibpath_var=LD_LIBRARY_PATH 14961 ;; 14962 14963 *) 14964 dynamic_linker=no 14965 ;; 14966 esac 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14968 $as_echo "$dynamic_linker" >&6; } 14969 test "$dynamic_linker" = no && can_build_shared=no 14970 14971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14972 if test "$GCC" = yes; then 14973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14974 fi 14975 14976 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14977 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14978 fi 14979 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14980 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14981 fi 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15021 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15022 hardcode_action_CXX= 15023 if test -n "$hardcode_libdir_flag_spec_CXX" || 15024 test -n "$runpath_var_CXX" || 15025 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15026 15027 # We can hardcode non-existent directories. 15028 if test "$hardcode_direct_CXX" != no && 15029 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15030 # have to relink, otherwise we might link with an installed library 15031 # when we should be linking with a yet-to-be-installed one 15032 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15033 test "$hardcode_minus_L_CXX" != no; then 15034 # Linking always hardcodes the temporary library directory. 15035 hardcode_action_CXX=relink 15036 else 15037 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15038 hardcode_action_CXX=immediate 15039 fi 15040 else 15041 # We cannot hardcode anything, or else we can only hardcode existing 15042 # directories. 15043 hardcode_action_CXX=unsupported 15044 fi 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15046 $as_echo "$hardcode_action_CXX" >&6; } 15047 15048 if test "$hardcode_action_CXX" = relink || 15049 test "$inherit_rpath_CXX" = yes; then 15050 # Fast installation is not supported 15051 enable_fast_install=no 15052 elif test "$shlibpath_overrides_runpath" = yes || 15053 test "$enable_shared" = no; then 15054 # Fast installation is not necessary 15055 enable_fast_install=needless 15056 fi 15057 15058 15059 15060 15061 15062 15063 15064 fi # test -n "$compiler" 15065 15066 CC=$lt_save_CC 15067 CFLAGS=$lt_save_CFLAGS 15068 LDCXX=$LD 15069 LD=$lt_save_LD 15070 GCC=$lt_save_GCC 15071 with_gnu_ld=$lt_save_with_gnu_ld 15072 lt_cv_path_LDCXX=$lt_cv_path_LD 15073 lt_cv_path_LD=$lt_save_path_LD 15074 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15075 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15076 fi # test "$_lt_caught_CXX_error" != yes 15077 15078 ac_ext=cpp 15079 ac_cpp='$CXXCPP $CPPFLAGS' 15080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 ac_config_commands="$ac_config_commands libtool" 15099 15100 15101 15102 15103 # Only expand once: 15104 15105 15106 15107 # TODO(chandlerc (at] google.com): Currently we aren't running the Python tests 15108 # against the interpreter detected by AM_PATH_PYTHON, and so we condition 15109 # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's 15110 # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env" 15111 # hashbang. 15112 PYTHON= # We *do not* allow the user to specify a python interpreter 15113 # Extract the first word of "python", so it can be a program name with args. 15114 set dummy python; ac_word=$2 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15116 $as_echo_n "checking for $ac_word... " >&6; } 15117 if ${ac_cv_path_PYTHON+:} false; then : 15118 $as_echo_n "(cached) " >&6 15119 else 15120 case $PYTHON in 15121 [\\/]* | ?:[\\/]*) 15122 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15123 ;; 15124 *) 15125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15126 for as_dir in $PATH 15127 do 15128 IFS=$as_save_IFS 15129 test -z "$as_dir" && as_dir=. 15130 for ac_exec_ext in '' $ac_executable_extensions; do 15131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15132 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 15133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15134 break 2 15135 fi 15136 done 15137 done 15138 IFS=$as_save_IFS 15139 15140 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":" 15141 ;; 15142 esac 15143 fi 15144 PYTHON=$ac_cv_path_PYTHON 15145 if test -n "$PYTHON"; then 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15147 $as_echo "$PYTHON" >&6; } 15148 else 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15150 $as_echo "no" >&6; } 15151 fi 15152 15153 15154 if test "$PYTHON" != ":"; then : 15155 prog="import sys 15156 # split strings by '.' and convert to numeric. Append some zeros 15157 # because we need at least 4 digits for the hex conversion. 15158 # map returns an iterator in Python 3.0 and a list in 2.x 15159 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0] 15160 minverhex = 0 15161 # xrange is not present in Python 3.0 and range returns an iterator 15162 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 15163 sys.exit(sys.hexversion < minverhex)" 15164 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 15165 ($PYTHON -c "$prog") >&5 2>&5 15166 ac_status=$? 15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15168 (exit $ac_status); }; then : 15169 : 15170 else 15171 PYTHON=":" 15172 fi 15173 fi 15174 if test "$PYTHON" != ":"; then 15175 HAVE_PYTHON_TRUE= 15176 HAVE_PYTHON_FALSE='#' 15177 else 15178 HAVE_PYTHON_TRUE='#' 15179 HAVE_PYTHON_FALSE= 15180 fi 15181 15182 15183 # Configure pthreads. 15184 15185 # Check whether --with-pthreads was given. 15186 if test "${with_pthreads+set}" = set; then : 15187 withval=$with_pthreads; with_pthreads=$withval 15188 else 15189 with_pthreads=check 15190 fi 15191 15192 15193 have_pthreads=no 15194 if test "x$with_pthreads" != "xno"; then : 15195 15196 15197 15198 ac_ext=c 15199 ac_cpp='$CPP $CPPFLAGS' 15200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15202 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15203 15204 acx_pthread_ok=no 15205 15206 # We used to check for pthread.h first, but this fails if pthread.h 15207 # requires special compiler flags (e.g. on True64 or Sequent). 15208 # It gets checked for in the link test anyway. 15209 15210 # First of all, check if the user has set any of the PTHREAD_LIBS, 15211 # etcetera environment variables, and if threads linking works using 15212 # them: 15213 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15214 save_CFLAGS="$CFLAGS" 15215 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15216 save_LIBS="$LIBS" 15217 LIBS="$PTHREAD_LIBS $LIBS" 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15219 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221 /* end confdefs.h. */ 15222 15223 /* Override any GCC internal prototype to avoid an error. 15224 Use char because int might match the return type of a GCC 15225 builtin and then its argument prototype would still apply. */ 15226 #ifdef __cplusplus 15227 extern "C" 15228 #endif 15229 char pthread_join (); 15230 int 15231 main () 15232 { 15233 return pthread_join (); 15234 ; 15235 return 0; 15236 } 15237 _ACEOF 15238 if ac_fn_c_try_link "$LINENO"; then : 15239 acx_pthread_ok=yes 15240 fi 15241 rm -f core conftest.err conftest.$ac_objext \ 15242 conftest$ac_exeext conftest.$ac_ext 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15244 $as_echo "$acx_pthread_ok" >&6; } 15245 if test x"$acx_pthread_ok" = xno; then 15246 PTHREAD_LIBS="" 15247 PTHREAD_CFLAGS="" 15248 fi 15249 LIBS="$save_LIBS" 15250 CFLAGS="$save_CFLAGS" 15251 fi 15252 15253 # We must check for the threads library under a number of different 15254 # names; the ordering is very important because some systems 15255 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15256 # libraries is broken (non-POSIX). 15257 15258 # Create a list of thread flags to try. Items starting with a "-" are 15259 # C compiler flags, and other items are library names, except for "none" 15260 # which indicates that we try without any flags at all, and "pthread-config" 15261 # which is a program returning the flags for the Pth emulation library. 15262 15263 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15264 15265 # The ordering *is* (sometimes) important. Some notes on the 15266 # individual items follow: 15267 15268 # pthreads: AIX (must check this before -lpthread) 15269 # none: in case threads are in libc; should be tried before -Kthread and 15270 # other compiler flags to prevent continual compiler warnings 15271 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15272 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15273 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15274 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15275 # -pthreads: Solaris/gcc 15276 # -mthreads: Mingw32/gcc, Lynx/gcc 15277 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15278 # doesn't hurt to check since this sometimes defines pthreads too; 15279 # also defines -D_REENTRANT) 15280 # ... -mt is also the pthreads flag for HP/aCC 15281 # pthread: Linux, etcetera 15282 # --thread-safe: KAI C++ 15283 # pthread-config: use pthread-config program (for GNU Pth library) 15284 15285 case "${host_cpu}-${host_os}" in 15286 *solaris*) 15287 15288 # On Solaris (at least, for some versions), libc contains stubbed 15289 # (non-functional) versions of the pthreads routines, so link-based 15290 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15291 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15292 # a function called by this macro, so we could check for that, but 15293 # who knows whether they'll stub that too in a future libc.) So, 15294 # we'll just look for -pthreads and -lpthread first: 15295 15296 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 15297 ;; 15298 esac 15299 15300 if test x"$acx_pthread_ok" = xno; then 15301 for flag in $acx_pthread_flags; do 15302 15303 case $flag in 15304 none) 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15306 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 15307 ;; 15308 15309 -*) 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15311 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 15312 PTHREAD_CFLAGS="$flag" 15313 ;; 15314 15315 pthread-config) 15316 # Extract the first word of "pthread-config", so it can be a program name with args. 15317 set dummy pthread-config; ac_word=$2 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15319 $as_echo_n "checking for $ac_word... " >&6; } 15320 if ${ac_cv_prog_acx_pthread_config+:} false; then : 15321 $as_echo_n "(cached) " >&6 15322 else 15323 if test -n "$acx_pthread_config"; then 15324 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15325 else 15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15327 for as_dir in $PATH 15328 do 15329 IFS=$as_save_IFS 15330 test -z "$as_dir" && as_dir=. 15331 for ac_exec_ext in '' $ac_executable_extensions; do 15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15333 ac_cv_prog_acx_pthread_config="yes" 15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15335 break 2 15336 fi 15337 done 15338 done 15339 IFS=$as_save_IFS 15340 15341 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15342 fi 15343 fi 15344 acx_pthread_config=$ac_cv_prog_acx_pthread_config 15345 if test -n "$acx_pthread_config"; then 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15347 $as_echo "$acx_pthread_config" >&6; } 15348 else 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15350 $as_echo "no" >&6; } 15351 fi 15352 15353 15354 if test x"$acx_pthread_config" = xno; then continue; fi 15355 PTHREAD_CFLAGS="`pthread-config --cflags`" 15356 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15357 ;; 15358 15359 *) 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15361 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15362 PTHREAD_LIBS="-l$flag" 15363 ;; 15364 esac 15365 15366 save_LIBS="$LIBS" 15367 save_CFLAGS="$CFLAGS" 15368 LIBS="$PTHREAD_LIBS $LIBS" 15369 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15370 15371 # Check for various functions. We must include pthread.h, 15372 # since some functions may be macros. (On the Sequent, we 15373 # need a special flag -Kthread to make this header compile.) 15374 # We check for pthread_join because it is in -lpthread on IRIX 15375 # while pthread_create is in libc. We check for pthread_attr_init 15376 # due to DEC craziness with -lpthreads. We check for 15377 # pthread_cleanup_push because it is one of the few pthread 15378 # functions on Solaris that doesn't have a non-functional libc stub. 15379 # We try pthread_create on general principles. 15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15381 /* end confdefs.h. */ 15382 #include <pthread.h> 15383 int 15384 main () 15385 { 15386 pthread_t th; pthread_join(th, 0); 15387 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15388 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15389 ; 15390 return 0; 15391 } 15392 _ACEOF 15393 if ac_fn_c_try_link "$LINENO"; then : 15394 acx_pthread_ok=yes 15395 fi 15396 rm -f core conftest.err conftest.$ac_objext \ 15397 conftest$ac_exeext conftest.$ac_ext 15398 15399 LIBS="$save_LIBS" 15400 CFLAGS="$save_CFLAGS" 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15403 $as_echo "$acx_pthread_ok" >&6; } 15404 if test "x$acx_pthread_ok" = xyes; then 15405 break; 15406 fi 15407 15408 PTHREAD_LIBS="" 15409 PTHREAD_CFLAGS="" 15410 done 15411 fi 15412 15413 # Various other checks: 15414 if test "x$acx_pthread_ok" = xyes; then 15415 save_LIBS="$LIBS" 15416 LIBS="$PTHREAD_LIBS $LIBS" 15417 save_CFLAGS="$CFLAGS" 15418 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15419 15420 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15422 $as_echo_n "checking for joinable pthread attribute... " >&6; } 15423 attr_name=unknown 15424 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15426 /* end confdefs.h. */ 15427 #include <pthread.h> 15428 int 15429 main () 15430 { 15431 int attr=$attr; return attr; 15432 ; 15433 return 0; 15434 } 15435 _ACEOF 15436 if ac_fn_c_try_link "$LINENO"; then : 15437 attr_name=$attr; break 15438 fi 15439 rm -f core conftest.err conftest.$ac_objext \ 15440 conftest$ac_exeext conftest.$ac_ext 15441 done 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15443 $as_echo "$attr_name" >&6; } 15444 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15445 15446 cat >>confdefs.h <<_ACEOF 15447 #define PTHREAD_CREATE_JOINABLE $attr_name 15448 _ACEOF 15449 15450 fi 15451 15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15453 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15454 flag=no 15455 case "${host_cpu}-${host_os}" in 15456 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 15457 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15458 esac 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15460 $as_echo "${flag}" >&6; } 15461 if test "x$flag" != xno; then 15462 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15463 fi 15464 15465 LIBS="$save_LIBS" 15466 CFLAGS="$save_CFLAGS" 15467 # More AIX lossage: must compile with xlc_r or cc_r 15468 if test x"$GCC" != xyes; then 15469 for ac_prog in xlc_r cc_r 15470 do 15471 # Extract the first word of "$ac_prog", so it can be a program name with args. 15472 set dummy $ac_prog; ac_word=$2 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15474 $as_echo_n "checking for $ac_word... " >&6; } 15475 if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15476 $as_echo_n "(cached) " >&6 15477 else 15478 if test -n "$PTHREAD_CC"; then 15479 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15480 else 15481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15482 for as_dir in $PATH 15483 do 15484 IFS=$as_save_IFS 15485 test -z "$as_dir" && as_dir=. 15486 for ac_exec_ext in '' $ac_executable_extensions; do 15487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15488 ac_cv_prog_PTHREAD_CC="$ac_prog" 15489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15490 break 2 15491 fi 15492 done 15493 done 15494 IFS=$as_save_IFS 15495 15496 fi 15497 fi 15498 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15499 if test -n "$PTHREAD_CC"; then 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15501 $as_echo "$PTHREAD_CC" >&6; } 15502 else 15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15504 $as_echo "no" >&6; } 15505 fi 15506 15507 15508 test -n "$PTHREAD_CC" && break 15509 done 15510 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15511 15512 else 15513 PTHREAD_CC=$CC 15514 fi 15515 15516 # The next part tries to detect GCC inconsistency with -shared on some 15517 # architectures and systems. The problem is that in certain 15518 # configurations, when -shared is specified, GCC "forgets" to 15519 # internally use various flags which are still necessary. 15520 15521 # 15522 # Prepare the flags 15523 # 15524 save_CFLAGS="$CFLAGS" 15525 save_LIBS="$LIBS" 15526 save_CC="$CC" 15527 15528 # Try with the flags determined by the earlier checks. 15529 # 15530 # -Wl,-z,defs forces link-time symbol resolution, so that the 15531 # linking checks with -shared actually have any value 15532 # 15533 # FIXME: -fPIC is required for -shared on many architectures, 15534 # so we specify it here, but the right way would probably be to 15535 # properly detect whether it is actually required. 15536 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 15537 LIBS="$PTHREAD_LIBS $LIBS" 15538 CC="$PTHREAD_CC" 15539 15540 # In order not to create several levels of indentation, we test 15541 # the value of "$done" until we find the cure or run out of ideas. 15542 done="no" 15543 15544 # First, make sure the CFLAGS we added are actually accepted by our 15545 # compiler. If not (and OS X's ld, for instance, does not accept -z), 15546 # then we can't do this test. 15547 if test x"$done" = xno; then 15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 15549 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15551 /* end confdefs.h. */ 15552 15553 int 15554 main () 15555 { 15556 15557 ; 15558 return 0; 15559 } 15560 _ACEOF 15561 if ac_fn_c_try_link "$LINENO"; then : 15562 15563 else 15564 done=yes 15565 fi 15566 rm -f core conftest.err conftest.$ac_objext \ 15567 conftest$ac_exeext conftest.$ac_ext 15568 15569 if test "x$done" = xyes ; then 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15571 $as_echo "no" >&6; } 15572 else 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15574 $as_echo "yes" >&6; } 15575 fi 15576 fi 15577 15578 if test x"$done" = xno; then 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 15580 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582 /* end confdefs.h. */ 15583 #include <pthread.h> 15584 int 15585 main () 15586 { 15587 pthread_t th; pthread_join(th, 0); 15588 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15589 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15590 ; 15591 return 0; 15592 } 15593 _ACEOF 15594 if ac_fn_c_try_link "$LINENO"; then : 15595 done=yes 15596 fi 15597 rm -f core conftest.err conftest.$ac_objext \ 15598 conftest$ac_exeext conftest.$ac_ext 15599 15600 if test "x$done" = xyes; then 15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15602 $as_echo "yes" >&6; } 15603 else 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15605 $as_echo "no" >&6; } 15606 fi 15607 fi 15608 15609 # 15610 # Linux gcc on some architectures such as mips/mipsel forgets 15611 # about -lpthread 15612 # 15613 if test x"$done" = xno; then 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 15615 $as_echo_n "checking whether -lpthread fixes that... " >&6; } 15616 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618 /* end confdefs.h. */ 15619 #include <pthread.h> 15620 int 15621 main () 15622 { 15623 pthread_t th; pthread_join(th, 0); 15624 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15625 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15626 ; 15627 return 0; 15628 } 15629 _ACEOF 15630 if ac_fn_c_try_link "$LINENO"; then : 15631 done=yes 15632 fi 15633 rm -f core conftest.err conftest.$ac_objext \ 15634 conftest$ac_exeext conftest.$ac_ext 15635 15636 if test "x$done" = xyes; then 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15638 $as_echo "yes" >&6; } 15639 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 15640 else 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15642 $as_echo "no" >&6; } 15643 fi 15644 fi 15645 # 15646 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 15647 # 15648 if test x"$done" = xno; then 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 15650 $as_echo_n "checking whether -lc_r fixes that... " >&6; } 15651 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15653 /* end confdefs.h. */ 15654 #include <pthread.h> 15655 int 15656 main () 15657 { 15658 pthread_t th; pthread_join(th, 0); 15659 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15660 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15661 ; 15662 return 0; 15663 } 15664 _ACEOF 15665 if ac_fn_c_try_link "$LINENO"; then : 15666 done=yes 15667 fi 15668 rm -f core conftest.err conftest.$ac_objext \ 15669 conftest$ac_exeext conftest.$ac_ext 15670 15671 if test "x$done" = xyes; then 15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15673 $as_echo "yes" >&6; } 15674 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 15675 else 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15677 $as_echo "no" >&6; } 15678 fi 15679 fi 15680 if test x"$done" = xno; then 15681 # OK, we have run out of ideas 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 15683 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 15684 15685 # so it's not safe to assume that we may use pthreads 15686 acx_pthread_ok=no 15687 fi 15688 15689 CFLAGS="$save_CFLAGS" 15690 LIBS="$save_LIBS" 15691 CC="$save_CC" 15692 else 15693 PTHREAD_CC="$CC" 15694 fi 15695 15696 15697 15698 15699 15700 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15701 if test x"$acx_pthread_ok" = xyes; then 15702 15703 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15704 15705 : 15706 else 15707 acx_pthread_ok=no 15708 if test "x$with_pthreads" != "xcheck"; then : 15709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15711 as_fn_error $? "--with-pthreads was specified, but unable to be used 15712 See \`config.log' for more details" "$LINENO" 5; } 15713 fi 15714 fi 15715 ac_ext=cpp 15716 ac_cpp='$CXXCPP $CPPFLAGS' 15717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15720 15721 15722 have_pthreads="$acx_pthread_ok" 15723 fi 15724 if test "x$have_pthreads" == "xyes"; then 15725 HAVE_PTHREADS_TRUE= 15726 HAVE_PTHREADS_FALSE='#' 15727 else 15728 HAVE_PTHREADS_TRUE='#' 15729 HAVE_PTHREADS_FALSE= 15730 fi 15731 15732 15733 15734 15735 # TODO(chandlerc (at] google.com) Check for the necessary system headers. 15736 15737 # TODO(chandlerc (at] google.com) Check the types, structures, and other compiler 15738 # and architecture characteristics. 15739 15740 # Output the generated files. No further autoconf macros may be used. 15741 cat >confcache <<\_ACEOF 15742 # This file is a shell script that caches the results of configure 15743 # tests run on this system so they can be shared between configure 15744 # scripts and configure runs, see configure's option --config-cache. 15745 # It is not useful on other systems. If it contains results you don't 15746 # want to keep, you may remove or edit it. 15747 # 15748 # config.status only pays attention to the cache file if you give it 15749 # the --recheck option to rerun configure. 15750 # 15751 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15752 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15753 # following values. 15754 15755 _ACEOF 15756 15757 # The following way of writing the cache mishandles newlines in values, 15758 # but we know of no workaround that is simple, portable, and efficient. 15759 # So, we kill variables containing newlines. 15760 # Ultrix sh set writes to stderr and can't be redirected directly, 15761 # and sets the high bit in the cache file unless we assign to the vars. 15762 ( 15763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15764 eval ac_val=\$$ac_var 15765 case $ac_val in #( 15766 *${as_nl}*) 15767 case $ac_var in #( 15768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15770 esac 15771 case $ac_var in #( 15772 _ | IFS | as_nl) ;; #( 15773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15774 *) { eval $ac_var=; unset $ac_var;} ;; 15775 esac ;; 15776 esac 15777 done 15778 15779 (set) 2>&1 | 15780 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15781 *${as_nl}ac_space=\ *) 15782 # `set' does not quote correctly, so add quotes: double-quote 15783 # substitution turns \\\\ into \\, and sed turns \\ into \. 15784 sed -n \ 15785 "s/'/'\\\\''/g; 15786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15787 ;; #( 15788 *) 15789 # `set' quotes correctly as required by POSIX, so do not add quotes. 15790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15791 ;; 15792 esac | 15793 sort 15794 ) | 15795 sed ' 15796 /^ac_cv_env_/b end 15797 t clear 15798 :clear 15799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15800 t end 15801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15802 :end' >>confcache 15803 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15804 if test -w "$cache_file"; then 15805 if test "x$cache_file" != "x/dev/null"; then 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15807 $as_echo "$as_me: updating cache $cache_file" >&6;} 15808 if test ! -f "$cache_file" || test -h "$cache_file"; then 15809 cat confcache >"$cache_file" 15810 else 15811 case $cache_file in #( 15812 */* | ?:*) 15813 mv -f confcache "$cache_file"$$ && 15814 mv -f "$cache_file"$$ "$cache_file" ;; #( 15815 *) 15816 mv -f confcache "$cache_file" ;; 15817 esac 15818 fi 15819 fi 15820 else 15821 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15822 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15823 fi 15824 fi 15825 rm -f confcache 15826 15827 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15828 # Let make expand exec_prefix. 15829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15830 15831 DEFS=-DHAVE_CONFIG_H 15832 15833 ac_libobjs= 15834 ac_ltlibobjs= 15835 U= 15836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15837 # 1. Remove the extension, and $U if already installed. 15838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15841 # will be set to the directory where LIBOBJS objects are built. 15842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15844 done 15845 LIBOBJS=$ac_libobjs 15846 15847 LTLIBOBJS=$ac_ltlibobjs 15848 15849 15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15851 $as_echo_n "checking that generated files are newer than configure... " >&6; } 15852 if test -n "$am_sleep_pid"; then 15853 # Hide warnings about reused PIDs. 15854 wait $am_sleep_pid 2>/dev/null 15855 fi 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15857 $as_echo "done" >&6; } 15858 if test -n "$EXEEXT"; then 15859 am__EXEEXT_TRUE= 15860 am__EXEEXT_FALSE='#' 15861 else 15862 am__EXEEXT_TRUE='#' 15863 am__EXEEXT_FALSE= 15864 fi 15865 15866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15867 as_fn_error $? "conditional \"AMDEP\" was never defined. 15868 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15869 fi 15870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15871 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15873 fi 15874 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15875 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15877 fi 15878 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 15879 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15881 fi 15882 if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then 15883 as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined. 15884 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15885 fi 15886 15887 : "${CONFIG_STATUS=./config.status}" 15888 ac_write_fail=0 15889 ac_clean_files_save=$ac_clean_files 15890 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15892 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15893 as_write_fail=0 15894 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15895 #! $SHELL 15896 # Generated by $as_me. 15897 # Run this file to recreate the current configuration. 15898 # Compiler output produced by configure, useful for debugging 15899 # configure, is in config.log if it exists. 15900 15901 debug=false 15902 ac_cs_recheck=false 15903 ac_cs_silent=false 15904 15905 SHELL=\${CONFIG_SHELL-$SHELL} 15906 export SHELL 15907 _ASEOF 15908 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15909 ## -------------------- ## 15910 ## M4sh Initialization. ## 15911 ## -------------------- ## 15912 15913 # Be more Bourne compatible 15914 DUALCASE=1; export DUALCASE # for MKS sh 15915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15916 emulate sh 15917 NULLCMD=: 15918 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15919 # is contrary to our usage. Disable this feature. 15920 alias -g '${1+"$@"}'='"$@"' 15921 setopt NO_GLOB_SUBST 15922 else 15923 case `(set -o) 2>/dev/null` in #( 15924 *posix*) : 15925 set -o posix ;; #( 15926 *) : 15927 ;; 15928 esac 15929 fi 15930 15931 15932 as_nl=' 15933 ' 15934 export as_nl 15935 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15936 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15937 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15938 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15939 # Prefer a ksh shell builtin over an external printf program on Solaris, 15940 # but without wasting forks for bash or zsh. 15941 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15942 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15943 as_echo='print -r --' 15944 as_echo_n='print -rn --' 15945 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15946 as_echo='printf %s\n' 15947 as_echo_n='printf %s' 15948 else 15949 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15950 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15951 as_echo_n='/usr/ucb/echo -n' 15952 else 15953 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15954 as_echo_n_body='eval 15955 arg=$1; 15956 case $arg in #( 15957 *"$as_nl"*) 15958 expr "X$arg" : "X\\(.*\\)$as_nl"; 15959 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15960 esac; 15961 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15962 ' 15963 export as_echo_n_body 15964 as_echo_n='sh -c $as_echo_n_body as_echo' 15965 fi 15966 export as_echo_body 15967 as_echo='sh -c $as_echo_body as_echo' 15968 fi 15969 15970 # The user is always right. 15971 if test "${PATH_SEPARATOR+set}" != set; then 15972 PATH_SEPARATOR=: 15973 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15974 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15975 PATH_SEPARATOR=';' 15976 } 15977 fi 15978 15979 15980 # IFS 15981 # We need space, tab and new line, in precisely that order. Quoting is 15982 # there to prevent editors from complaining about space-tab. 15983 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15984 # splitting by setting IFS to empty value.) 15985 IFS=" "" $as_nl" 15986 15987 # Find who we are. Look in the path if we contain no directory separator. 15988 as_myself= 15989 case $0 in #(( 15990 *[\\/]* ) as_myself=$0 ;; 15991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15992 for as_dir in $PATH 15993 do 15994 IFS=$as_save_IFS 15995 test -z "$as_dir" && as_dir=. 15996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15997 done 15998 IFS=$as_save_IFS 15999 16000 ;; 16001 esac 16002 # We did not find ourselves, most probably we were run as `sh COMMAND' 16003 # in which case we are not to be found in the path. 16004 if test "x$as_myself" = x; then 16005 as_myself=$0 16006 fi 16007 if test ! -f "$as_myself"; then 16008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16009 exit 1 16010 fi 16011 16012 # Unset variables that we do not need and which cause bugs (e.g. in 16013 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16014 # suppresses any "Segmentation fault" message there. '((' could 16015 # trigger a bug in pdksh 5.2.14. 16016 for as_var in BASH_ENV ENV MAIL MAILPATH 16017 do eval test x\${$as_var+set} = xset \ 16018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16019 done 16020 PS1='$ ' 16021 PS2='> ' 16022 PS4='+ ' 16023 16024 # NLS nuisances. 16025 LC_ALL=C 16026 export LC_ALL 16027 LANGUAGE=C 16028 export LANGUAGE 16029 16030 # CDPATH. 16031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16032 16033 16034 # as_fn_error STATUS ERROR [LINENO LOG_FD] 16035 # ---------------------------------------- 16036 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16037 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16038 # script with STATUS, using 1 if that was 0. 16039 as_fn_error () 16040 { 16041 as_status=$1; test $as_status -eq 0 && as_status=1 16042 if test "$4"; then 16043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16045 fi 16046 $as_echo "$as_me: error: $2" >&2 16047 as_fn_exit $as_status 16048 } # as_fn_error 16049 16050 16051 # as_fn_set_status STATUS 16052 # ----------------------- 16053 # Set $? to STATUS, without forking. 16054 as_fn_set_status () 16055 { 16056 return $1 16057 } # as_fn_set_status 16058 16059 # as_fn_exit STATUS 16060 # ----------------- 16061 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16062 as_fn_exit () 16063 { 16064 set +e 16065 as_fn_set_status $1 16066 exit $1 16067 } # as_fn_exit 16068 16069 # as_fn_unset VAR 16070 # --------------- 16071 # Portably unset VAR. 16072 as_fn_unset () 16073 { 16074 { eval $1=; unset $1;} 16075 } 16076 as_unset=as_fn_unset 16077 # as_fn_append VAR VALUE 16078 # ---------------------- 16079 # Append the text in VALUE to the end of the definition contained in VAR. Take 16080 # advantage of any shell optimizations that allow amortized linear growth over 16081 # repeated appends, instead of the typical quadratic growth present in naive 16082 # implementations. 16083 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16084 eval 'as_fn_append () 16085 { 16086 eval $1+=\$2 16087 }' 16088 else 16089 as_fn_append () 16090 { 16091 eval $1=\$$1\$2 16092 } 16093 fi # as_fn_append 16094 16095 # as_fn_arith ARG... 16096 # ------------------ 16097 # Perform arithmetic evaluation on the ARGs, and store the result in the 16098 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16099 # must be portable across $(()) and expr. 16100 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16101 eval 'as_fn_arith () 16102 { 16103 as_val=$(( $* )) 16104 }' 16105 else 16106 as_fn_arith () 16107 { 16108 as_val=`expr "$@" || test $? -eq 1` 16109 } 16110 fi # as_fn_arith 16111 16112 16113 if expr a : '\(a\)' >/dev/null 2>&1 && 16114 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16115 as_expr=expr 16116 else 16117 as_expr=false 16118 fi 16119 16120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16121 as_basename=basename 16122 else 16123 as_basename=false 16124 fi 16125 16126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16127 as_dirname=dirname 16128 else 16129 as_dirname=false 16130 fi 16131 16132 as_me=`$as_basename -- "$0" || 16133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16134 X"$0" : 'X\(//\)$' \| \ 16135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16136 $as_echo X/"$0" | 16137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16138 s//\1/ 16139 q 16140 } 16141 /^X\/\(\/\/\)$/{ 16142 s//\1/ 16143 q 16144 } 16145 /^X\/\(\/\).*/{ 16146 s//\1/ 16147 q 16148 } 16149 s/.*/./; q'` 16150 16151 # Avoid depending upon Character Ranges. 16152 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16155 as_cr_digits='0123456789' 16156 as_cr_alnum=$as_cr_Letters$as_cr_digits 16157 16158 ECHO_C= ECHO_N= ECHO_T= 16159 case `echo -n x` in #((((( 16160 -n*) 16161 case `echo 'xy\c'` in 16162 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16163 xy) ECHO_C='\c';; 16164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16165 ECHO_T=' ';; 16166 esac;; 16167 *) 16168 ECHO_N='-n';; 16169 esac 16170 16171 rm -f conf$$ conf$$.exe conf$$.file 16172 if test -d conf$$.dir; then 16173 rm -f conf$$.dir/conf$$.file 16174 else 16175 rm -f conf$$.dir 16176 mkdir conf$$.dir 2>/dev/null 16177 fi 16178 if (echo >conf$$.file) 2>/dev/null; then 16179 if ln -s conf$$.file conf$$ 2>/dev/null; then 16180 as_ln_s='ln -s' 16181 # ... but there are two gotchas: 16182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16184 # In both cases, we have to default to `cp -pR'. 16185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16186 as_ln_s='cp -pR' 16187 elif ln conf$$.file conf$$ 2>/dev/null; then 16188 as_ln_s=ln 16189 else 16190 as_ln_s='cp -pR' 16191 fi 16192 else 16193 as_ln_s='cp -pR' 16194 fi 16195 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16196 rmdir conf$$.dir 2>/dev/null 16197 16198 16199 # as_fn_mkdir_p 16200 # ------------- 16201 # Create "$as_dir" as a directory, including parents if necessary. 16202 as_fn_mkdir_p () 16203 { 16204 16205 case $as_dir in #( 16206 -*) as_dir=./$as_dir;; 16207 esac 16208 test -d "$as_dir" || eval $as_mkdir_p || { 16209 as_dirs= 16210 while :; do 16211 case $as_dir in #( 16212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16213 *) as_qdir=$as_dir;; 16214 esac 16215 as_dirs="'$as_qdir' $as_dirs" 16216 as_dir=`$as_dirname -- "$as_dir" || 16217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16218 X"$as_dir" : 'X\(//\)[^/]' \| \ 16219 X"$as_dir" : 'X\(//\)$' \| \ 16220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16221 $as_echo X"$as_dir" | 16222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16223 s//\1/ 16224 q 16225 } 16226 /^X\(\/\/\)[^/].*/{ 16227 s//\1/ 16228 q 16229 } 16230 /^X\(\/\/\)$/{ 16231 s//\1/ 16232 q 16233 } 16234 /^X\(\/\).*/{ 16235 s//\1/ 16236 q 16237 } 16238 s/.*/./; q'` 16239 test -d "$as_dir" && break 16240 done 16241 test -z "$as_dirs" || eval "mkdir $as_dirs" 16242 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16243 16244 16245 } # as_fn_mkdir_p 16246 if mkdir -p . 2>/dev/null; then 16247 as_mkdir_p='mkdir -p "$as_dir"' 16248 else 16249 test -d ./-p && rmdir ./-p 16250 as_mkdir_p=false 16251 fi 16252 16253 16254 # as_fn_executable_p FILE 16255 # ----------------------- 16256 # Test if FILE is an executable regular file. 16257 as_fn_executable_p () 16258 { 16259 test -f "$1" && test -x "$1" 16260 } # as_fn_executable_p 16261 as_test_x='test -x' 16262 as_executable_p=as_fn_executable_p 16263 16264 # Sed expression to map a string onto a valid CPP name. 16265 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16266 16267 # Sed expression to map a string onto a valid variable name. 16268 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16269 16270 16271 exec 6>&1 16272 ## ----------------------------------- ## 16273 ## Main body of $CONFIG_STATUS script. ## 16274 ## ----------------------------------- ## 16275 _ASEOF 16276 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16277 16278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16279 # Save the log message, to keep $0 and so on meaningful, and to 16280 # report actual input values of CONFIG_FILES etc. instead of their 16281 # values after options handling. 16282 ac_log=" 16283 This file was extended by Google C++ Testing Framework $as_me 1.5.0, which was 16284 generated by GNU Autoconf 2.69. Invocation command line was 16285 16286 CONFIG_FILES = $CONFIG_FILES 16287 CONFIG_HEADERS = $CONFIG_HEADERS 16288 CONFIG_LINKS = $CONFIG_LINKS 16289 CONFIG_COMMANDS = $CONFIG_COMMANDS 16290 $ $0 $@ 16291 16292 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16293 " 16294 16295 _ACEOF 16296 16297 case $ac_config_files in *" 16298 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16299 esac 16300 16301 case $ac_config_headers in *" 16302 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16303 esac 16304 16305 16306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16307 # Files that config.status was made for. 16308 config_files="$ac_config_files" 16309 config_headers="$ac_config_headers" 16310 config_commands="$ac_config_commands" 16311 16312 _ACEOF 16313 16314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16315 ac_cs_usage="\ 16316 \`$as_me' instantiates files and other configuration actions 16317 from templates according to the current configuration. Unless the files 16318 and actions are specified as TAGs, all are instantiated by default. 16319 16320 Usage: $0 [OPTION]... [TAG]... 16321 16322 -h, --help print this help, then exit 16323 -V, --version print version number and configuration settings, then exit 16324 --config print configuration, then exit 16325 -q, --quiet, --silent 16326 do not print progress messages 16327 -d, --debug don't remove temporary files 16328 --recheck update $as_me by reconfiguring in the same conditions 16329 --file=FILE[:TEMPLATE] 16330 instantiate the configuration file FILE 16331 --header=FILE[:TEMPLATE] 16332 instantiate the configuration header FILE 16333 16334 Configuration files: 16335 $config_files 16336 16337 Configuration headers: 16338 $config_headers 16339 16340 Configuration commands: 16341 $config_commands 16342 16343 Report bugs to <googletestframework@googlegroups.com>." 16344 16345 _ACEOF 16346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16347 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16348 ac_cs_version="\\ 16349 Google C++ Testing Framework config.status 1.5.0 16350 configured by $0, generated by GNU Autoconf 2.69, 16351 with options \\"\$ac_cs_config\\" 16352 16353 Copyright (C) 2012 Free Software Foundation, Inc. 16354 This config.status script is free software; the Free Software Foundation 16355 gives unlimited permission to copy, distribute and modify it." 16356 16357 ac_pwd='$ac_pwd' 16358 srcdir='$srcdir' 16359 INSTALL='$INSTALL' 16360 MKDIR_P='$MKDIR_P' 16361 AWK='$AWK' 16362 test -n "\$AWK" || AWK=awk 16363 _ACEOF 16364 16365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16366 # The default lists apply if the user does not specify any file. 16367 ac_need_defaults=: 16368 while test $# != 0 16369 do 16370 case $1 in 16371 --*=?*) 16372 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16374 ac_shift=: 16375 ;; 16376 --*=) 16377 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16378 ac_optarg= 16379 ac_shift=: 16380 ;; 16381 *) 16382 ac_option=$1 16383 ac_optarg=$2 16384 ac_shift=shift 16385 ;; 16386 esac 16387 16388 case $ac_option in 16389 # Handling of the options. 16390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16391 ac_cs_recheck=: ;; 16392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16393 $as_echo "$ac_cs_version"; exit ;; 16394 --config | --confi | --conf | --con | --co | --c ) 16395 $as_echo "$ac_cs_config"; exit ;; 16396 --debug | --debu | --deb | --de | --d | -d ) 16397 debug=: ;; 16398 --file | --fil | --fi | --f ) 16399 $ac_shift 16400 case $ac_optarg in 16401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16402 '') as_fn_error $? "missing file argument" ;; 16403 esac 16404 as_fn_append CONFIG_FILES " '$ac_optarg'" 16405 ac_need_defaults=false;; 16406 --header | --heade | --head | --hea ) 16407 $ac_shift 16408 case $ac_optarg in 16409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16410 esac 16411 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16412 ac_need_defaults=false;; 16413 --he | --h) 16414 # Conflict between --help and --header 16415 as_fn_error $? "ambiguous option: \`$1' 16416 Try \`$0 --help' for more information.";; 16417 --help | --hel | -h ) 16418 $as_echo "$ac_cs_usage"; exit ;; 16419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16420 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16421 ac_cs_silent=: ;; 16422 16423 # This is an error. 16424 -*) as_fn_error $? "unrecognized option: \`$1' 16425 Try \`$0 --help' for more information." ;; 16426 16427 *) as_fn_append ac_config_targets " $1" 16428 ac_need_defaults=false ;; 16429 16430 esac 16431 shift 16432 done 16433 16434 ac_configure_extra_args= 16435 16436 if $ac_cs_silent; then 16437 exec 6>/dev/null 16438 ac_configure_extra_args="$ac_configure_extra_args --silent" 16439 fi 16440 16441 _ACEOF 16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16443 if \$ac_cs_recheck; then 16444 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16445 shift 16446 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16447 CONFIG_SHELL='$SHELL' 16448 export CONFIG_SHELL 16449 exec "\$@" 16450 fi 16451 16452 _ACEOF 16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16454 exec 5>>config.log 16455 { 16456 echo 16457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16458 ## Running $as_me. ## 16459 _ASBOX 16460 $as_echo "$ac_log" 16461 } >&5 16462 16463 _ACEOF 16464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16465 # 16466 # INIT-COMMANDS 16467 # 16468 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16469 16470 16471 # The HP-UX ksh and POSIX shell print the target directory to stdout 16472 # if CDPATH is set. 16473 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16474 16475 sed_quote_subst='$sed_quote_subst' 16476 double_quote_subst='$double_quote_subst' 16477 delay_variable_subst='$delay_variable_subst' 16478 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16479 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16480 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16481 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16482 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16483 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16484 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16485 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16486 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16487 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16488 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16489 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16490 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16491 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16492 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16493 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16494 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16495 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16496 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16497 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16498 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16499 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16500 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16501 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16502 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16503 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16504 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16505 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16506 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16507 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16508 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16509 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16510 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16512 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16513 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16514 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16515 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16516 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16517 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16518 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16519 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16520 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16521 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16522 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16523 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16524 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16525 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16526 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16527 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16528 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16529 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16530 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16531 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16532 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16533 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 16535 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16536 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16537 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16538 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16539 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16540 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16541 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16542 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16543 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16544 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16545 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16546 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16547 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16548 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16549 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16550 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16551 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16552 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16553 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16554 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16555 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16556 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16557 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16558 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16559 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16560 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16561 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16562 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16563 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16564 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16565 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16566 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16567 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16568 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16569 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16570 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16571 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16572 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16573 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16574 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16575 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16576 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16577 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16578 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16579 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16580 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16581 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16582 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16583 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16584 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16585 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16586 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16587 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16588 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16589 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16590 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16591 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16592 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16593 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16594 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16595 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16596 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16597 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16598 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16599 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16600 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16601 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16602 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16603 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16604 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16605 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16606 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16607 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16608 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16609 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16610 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16611 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16612 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16613 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16614 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16615 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16616 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16617 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16618 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16619 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16620 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16621 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16622 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16623 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16624 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16625 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16626 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16627 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16628 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16629 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16630 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16631 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16632 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16633 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16634 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16635 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16636 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16637 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16638 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16639 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16640 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16641 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16642 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16643 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16644 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16645 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16646 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16647 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16648 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16649 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16650 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16651 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16652 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16653 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16654 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16655 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16656 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16657 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16658 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16659 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16660 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16661 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16662 16663 LTCC='$LTCC' 16664 LTCFLAGS='$LTCFLAGS' 16665 compiler='$compiler_DEFAULT' 16666 16667 # A function that is used when there is no print builtin or printf. 16668 func_fallback_echo () 16669 { 16670 eval 'cat <<_LTECHO_EOF 16671 \$1 16672 _LTECHO_EOF' 16673 } 16674 16675 # Quote evaled strings. 16676 for var in SHELL \ 16677 ECHO \ 16678 PATH_SEPARATOR \ 16679 SED \ 16680 GREP \ 16681 EGREP \ 16682 FGREP \ 16683 LD \ 16684 NM \ 16685 LN_S \ 16686 lt_SP2NL \ 16687 lt_NL2SP \ 16688 reload_flag \ 16689 OBJDUMP \ 16690 deplibs_check_method \ 16691 file_magic_cmd \ 16692 file_magic_glob \ 16693 want_nocaseglob \ 16694 DLLTOOL \ 16695 sharedlib_from_linklib_cmd \ 16696 AR \ 16697 AR_FLAGS \ 16698 archiver_list_spec \ 16699 STRIP \ 16700 RANLIB \ 16701 CC \ 16702 CFLAGS \ 16703 compiler \ 16704 lt_cv_sys_global_symbol_pipe \ 16705 lt_cv_sys_global_symbol_to_cdecl \ 16706 lt_cv_sys_global_symbol_to_c_name_address \ 16707 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16708 nm_file_list_spec \ 16709 lt_prog_compiler_no_builtin_flag \ 16710 lt_prog_compiler_pic \ 16711 lt_prog_compiler_wl \ 16712 lt_prog_compiler_static \ 16713 lt_cv_prog_compiler_c_o \ 16714 need_locks \ 16715 MANIFEST_TOOL \ 16716 DSYMUTIL \ 16717 NMEDIT \ 16718 LIPO \ 16719 OTOOL \ 16720 OTOOL64 \ 16721 shrext_cmds \ 16722 export_dynamic_flag_spec \ 16723 whole_archive_flag_spec \ 16724 compiler_needs_object \ 16725 with_gnu_ld \ 16726 allow_undefined_flag \ 16727 no_undefined_flag \ 16728 hardcode_libdir_flag_spec \ 16729 hardcode_libdir_separator \ 16730 exclude_expsyms \ 16731 include_expsyms \ 16732 file_list_spec \ 16733 variables_saved_for_relink \ 16734 libname_spec \ 16735 library_names_spec \ 16736 soname_spec \ 16737 install_override_mode \ 16738 finish_eval \ 16739 old_striplib \ 16740 striplib \ 16741 compiler_lib_search_dirs \ 16742 predep_objects \ 16743 postdep_objects \ 16744 predeps \ 16745 postdeps \ 16746 compiler_lib_search_path \ 16747 LD_CXX \ 16748 reload_flag_CXX \ 16749 compiler_CXX \ 16750 lt_prog_compiler_no_builtin_flag_CXX \ 16751 lt_prog_compiler_pic_CXX \ 16752 lt_prog_compiler_wl_CXX \ 16753 lt_prog_compiler_static_CXX \ 16754 lt_cv_prog_compiler_c_o_CXX \ 16755 export_dynamic_flag_spec_CXX \ 16756 whole_archive_flag_spec_CXX \ 16757 compiler_needs_object_CXX \ 16758 with_gnu_ld_CXX \ 16759 allow_undefined_flag_CXX \ 16760 no_undefined_flag_CXX \ 16761 hardcode_libdir_flag_spec_CXX \ 16762 hardcode_libdir_separator_CXX \ 16763 exclude_expsyms_CXX \ 16764 include_expsyms_CXX \ 16765 file_list_spec_CXX \ 16766 compiler_lib_search_dirs_CXX \ 16767 predep_objects_CXX \ 16768 postdep_objects_CXX \ 16769 predeps_CXX \ 16770 postdeps_CXX \ 16771 compiler_lib_search_path_CXX; do 16772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16773 *[\\\\\\\`\\"\\\$]*) 16774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16775 ;; 16776 *) 16777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16778 ;; 16779 esac 16780 done 16781 16782 # Double-quote double-evaled strings. 16783 for var in reload_cmds \ 16784 old_postinstall_cmds \ 16785 old_postuninstall_cmds \ 16786 old_archive_cmds \ 16787 extract_expsyms_cmds \ 16788 old_archive_from_new_cmds \ 16789 old_archive_from_expsyms_cmds \ 16790 archive_cmds \ 16791 archive_expsym_cmds \ 16792 module_cmds \ 16793 module_expsym_cmds \ 16794 export_symbols_cmds \ 16795 prelink_cmds \ 16796 postlink_cmds \ 16797 postinstall_cmds \ 16798 postuninstall_cmds \ 16799 finish_cmds \ 16800 sys_lib_search_path_spec \ 16801 sys_lib_dlsearch_path_spec \ 16802 reload_cmds_CXX \ 16803 old_archive_cmds_CXX \ 16804 old_archive_from_new_cmds_CXX \ 16805 old_archive_from_expsyms_cmds_CXX \ 16806 archive_cmds_CXX \ 16807 archive_expsym_cmds_CXX \ 16808 module_cmds_CXX \ 16809 module_expsym_cmds_CXX \ 16810 export_symbols_cmds_CXX \ 16811 prelink_cmds_CXX \ 16812 postlink_cmds_CXX; do 16813 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16814 *[\\\\\\\`\\"\\\$]*) 16815 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16816 ;; 16817 *) 16818 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16819 ;; 16820 esac 16821 done 16822 16823 ac_aux_dir='$ac_aux_dir' 16824 xsi_shell='$xsi_shell' 16825 lt_shell_append='$lt_shell_append' 16826 16827 # See if we are running on zsh, and set the options which allow our 16828 # commands through without removal of \ escapes INIT. 16829 if test -n "\${ZSH_VERSION+set}" ; then 16830 setopt NO_GLOB_SUBST 16831 fi 16832 16833 16834 PACKAGE='$PACKAGE' 16835 VERSION='$VERSION' 16836 TIMESTAMP='$TIMESTAMP' 16837 RM='$RM' 16838 ofile='$ofile' 16839 16840 16841 16842 16843 16844 16845 _ACEOF 16846 16847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16848 16849 # Handling of arguments. 16850 for ac_config_target in $ac_config_targets 16851 do 16852 case $ac_config_target in 16853 "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;; 16854 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16855 "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;; 16856 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16857 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16858 16859 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16860 esac 16861 done 16862 16863 16864 # If the user did not use the arguments to specify the items to instantiate, 16865 # then the envvar interface is used. Set only those that are not. 16866 # We use the long form for the default assignment because of an extremely 16867 # bizarre bug on SunOS 4.1.3. 16868 if $ac_need_defaults; then 16869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16872 fi 16873 16874 # Have a temporary directory for convenience. Make it in the build tree 16875 # simply because there is no reason against having it here, and in addition, 16876 # creating and moving files from /tmp can sometimes cause problems. 16877 # Hook for its removal unless debugging. 16878 # Note that there is a small window in which the directory will not be cleaned: 16879 # after its creation but before its name has been assigned to `$tmp'. 16880 $debug || 16881 { 16882 tmp= ac_tmp= 16883 trap 'exit_status=$? 16884 : "${ac_tmp:=$tmp}" 16885 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16886 ' 0 16887 trap 'as_fn_exit 1' 1 2 13 15 16888 } 16889 # Create a (secure) tmp directory for tmp files. 16890 16891 { 16892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16893 test -d "$tmp" 16894 } || 16895 { 16896 tmp=./conf$$-$RANDOM 16897 (umask 077 && mkdir "$tmp") 16898 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16899 ac_tmp=$tmp 16900 16901 # Set up the scripts for CONFIG_FILES section. 16902 # No need to generate them if there are no CONFIG_FILES. 16903 # This happens for instance with `./config.status config.h'. 16904 if test -n "$CONFIG_FILES"; then 16905 16906 16907 ac_cr=`echo X | tr X '\015'` 16908 # On cygwin, bash can eat \r inside `` if the user requested igncr. 16909 # But we know of no other shell where ac_cr would be empty at this 16910 # point, so we can use a bashism as a fallback. 16911 if test "x$ac_cr" = x; then 16912 eval ac_cr=\$\'\\r\' 16913 fi 16914 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16915 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16916 ac_cs_awk_cr='\\r' 16917 else 16918 ac_cs_awk_cr=$ac_cr 16919 fi 16920 16921 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16922 _ACEOF 16923 16924 16925 { 16926 echo "cat >conf$$subs.awk <<_ACEOF" && 16927 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16928 echo "_ACEOF" 16929 } >conf$$subs.sh || 16930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16931 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16932 ac_delim='%!_!# ' 16933 for ac_last_try in false false false false false :; do 16934 . ./conf$$subs.sh || 16935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16936 16937 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16938 if test $ac_delim_n = $ac_delim_num; then 16939 break 16940 elif $ac_last_try; then 16941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16942 else 16943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16944 fi 16945 done 16946 rm -f conf$$subs.sh 16947 16948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16949 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16950 _ACEOF 16951 sed -n ' 16952 h 16953 s/^/S["/; s/!.*/"]=/ 16954 p 16955 g 16956 s/^[^!]*!// 16957 :repl 16958 t repl 16959 s/'"$ac_delim"'$// 16960 t delim 16961 :nl 16962 h 16963 s/\(.\{148\}\)..*/\1/ 16964 t more1 16965 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16966 p 16967 n 16968 b repl 16969 :more1 16970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16971 p 16972 g 16973 s/.\{148\}// 16974 t nl 16975 :delim 16976 h 16977 s/\(.\{148\}\)..*/\1/ 16978 t more2 16979 s/["\\]/\\&/g; s/^/"/; s/$/"/ 16980 p 16981 b 16982 :more2 16983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16984 p 16985 g 16986 s/.\{148\}// 16987 t delim 16988 ' <conf$$subs.awk | sed ' 16989 /^[^""]/{ 16990 N 16991 s/\n// 16992 } 16993 ' >>$CONFIG_STATUS || ac_write_fail=1 16994 rm -f conf$$subs.awk 16995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16996 _ACAWK 16997 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16998 for (key in S) S_is_set[key] = 1 16999 FS = "" 17000 17001 } 17002 { 17003 line = $ 0 17004 nfields = split(line, field, "@") 17005 substed = 0 17006 len = length(field[1]) 17007 for (i = 2; i < nfields; i++) { 17008 key = field[i] 17009 keylen = length(key) 17010 if (S_is_set[key]) { 17011 value = S[key] 17012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17013 len += length(value) + length(field[++i]) 17014 substed = 1 17015 } else 17016 len += 1 + keylen 17017 } 17018 17019 print line 17020 } 17021 17022 _ACAWK 17023 _ACEOF 17024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17027 else 17028 cat 17029 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17030 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17031 _ACEOF 17032 17033 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17034 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17035 # trailing colons and then remove the whole line if VPATH becomes empty 17036 # (actually we leave an empty line to preserve line numbers). 17037 if test "x$srcdir" = x.; then 17038 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17039 h 17040 s/// 17041 s/^/:/ 17042 s/[ ]*$/:/ 17043 s/:\$(srcdir):/:/g 17044 s/:\${srcdir}:/:/g 17045 s/:@srcdir@:/:/g 17046 s/^:*// 17047 s/:*$// 17048 x 17049 s/\(=[ ]*\).*/\1/ 17050 G 17051 s/\n// 17052 s/^[^=]*=[ ]*$// 17053 }' 17054 fi 17055 17056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17057 fi # test -n "$CONFIG_FILES" 17058 17059 # Set up the scripts for CONFIG_HEADERS section. 17060 # No need to generate them if there are no CONFIG_HEADERS. 17061 # This happens for instance with `./config.status Makefile'. 17062 if test -n "$CONFIG_HEADERS"; then 17063 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17064 BEGIN { 17065 _ACEOF 17066 17067 # Transform confdefs.h into an awk script `defines.awk', embedded as 17068 # here-document in config.status, that substitutes the proper values into 17069 # config.h.in to produce config.h. 17070 17071 # Create a delimiter string that does not exist in confdefs.h, to ease 17072 # handling of long lines. 17073 ac_delim='%!_!# ' 17074 for ac_last_try in false false :; do 17075 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17076 if test -z "$ac_tt"; then 17077 break 17078 elif $ac_last_try; then 17079 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17080 else 17081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17082 fi 17083 done 17084 17085 # For the awk script, D is an array of macro values keyed by name, 17086 # likewise P contains macro parameters if any. Preserve backslash 17087 # newline sequences. 17088 17089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17090 sed -n ' 17091 s/.\{148\}/&'"$ac_delim"'/g 17092 t rset 17093 :rset 17094 s/^[ ]*#[ ]*define[ ][ ]*/ / 17095 t def 17096 d 17097 :def 17098 s/\\$// 17099 t bsnl 17100 s/["\\]/\\&/g 17101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17102 D["\1"]=" \3"/p 17103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17104 d 17105 :bsnl 17106 s/["\\]/\\&/g 17107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17108 D["\1"]=" \3\\\\\\n"\\/p 17109 t cont 17110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17111 t cont 17112 d 17113 :cont 17114 n 17115 s/.\{148\}/&'"$ac_delim"'/g 17116 t clear 17117 :clear 17118 s/\\$// 17119 t bsnlc 17120 s/["\\]/\\&/g; s/^/"/; s/$/"/p 17121 d 17122 :bsnlc 17123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17124 b cont 17125 ' <confdefs.h | sed ' 17126 s/'"$ac_delim"'/"\\\ 17127 "/g' >>$CONFIG_STATUS || ac_write_fail=1 17128 17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17130 for (key in D) D_is_set[key] = 1 17131 FS = "" 17132 } 17133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17134 line = \$ 0 17135 split(line, arg, " ") 17136 if (arg[1] == "#") { 17137 defundef = arg[2] 17138 mac1 = arg[3] 17139 } else { 17140 defundef = substr(arg[1], 2) 17141 mac1 = arg[2] 17142 } 17143 split(mac1, mac2, "(") #) 17144 macro = mac2[1] 17145 prefix = substr(line, 1, index(line, defundef) - 1) 17146 if (D_is_set[macro]) { 17147 # Preserve the white space surrounding the "#". 17148 print prefix "define", macro P[macro] D[macro] 17149 next 17150 } else { 17151 # Replace #undef with comments. This is necessary, for example, 17152 # in the case of _POSIX_SOURCE, which is predefined and required 17153 # on some systems where configure will not decide to define it. 17154 if (defundef == "undef") { 17155 print "/*", prefix defundef, macro, "*/" 17156 next 17157 } 17158 } 17159 } 17160 { print } 17161 _ACAWK 17162 _ACEOF 17163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17164 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17165 fi # test -n "$CONFIG_HEADERS" 17166 17167 17168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17169 shift 17170 for ac_tag 17171 do 17172 case $ac_tag in 17173 :[FHLC]) ac_mode=$ac_tag; continue;; 17174 esac 17175 case $ac_mode$ac_tag in 17176 :[FHL]*:*);; 17177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17178 :[FH]-) ac_tag=-:-;; 17179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17180 esac 17181 ac_save_IFS=$IFS 17182 IFS=: 17183 set x $ac_tag 17184 IFS=$ac_save_IFS 17185 shift 17186 ac_file=$1 17187 shift 17188 17189 case $ac_mode in 17190 :L) ac_source=$1;; 17191 :[FH]) 17192 ac_file_inputs= 17193 for ac_f 17194 do 17195 case $ac_f in 17196 -) ac_f="$ac_tmp/stdin";; 17197 *) # Look for the file first in the build tree, then in the source tree 17198 # (if the path is not absolute). The absolute path cannot be DOS-style, 17199 # because $ac_f cannot contain `:'. 17200 test -f "$ac_f" || 17201 case $ac_f in 17202 [\\/$]*) false;; 17203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17204 esac || 17205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17206 esac 17207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17208 as_fn_append ac_file_inputs " '$ac_f'" 17209 done 17210 17211 # Let's still pretend it is `configure' which instantiates (i.e., don't 17212 # use $as_me), people would be surprised to read: 17213 # /* config.h. Generated by config.status. */ 17214 configure_input='Generated from '` 17215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17216 `' by configure.' 17217 if test x"$ac_file" != x-; then 17218 configure_input="$ac_file. $configure_input" 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17220 $as_echo "$as_me: creating $ac_file" >&6;} 17221 fi 17222 # Neutralize special characters interpreted by sed in replacement strings. 17223 case $configure_input in #( 17224 *\&* | *\|* | *\\* ) 17225 ac_sed_conf_input=`$as_echo "$configure_input" | 17226 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17227 *) ac_sed_conf_input=$configure_input;; 17228 esac 17229 17230 case $ac_tag in 17231 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17233 esac 17234 ;; 17235 esac 17236 17237 ac_dir=`$as_dirname -- "$ac_file" || 17238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17239 X"$ac_file" : 'X\(//\)[^/]' \| \ 17240 X"$ac_file" : 'X\(//\)$' \| \ 17241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17242 $as_echo X"$ac_file" | 17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17244 s//\1/ 17245 q 17246 } 17247 /^X\(\/\/\)[^/].*/{ 17248 s//\1/ 17249 q 17250 } 17251 /^X\(\/\/\)$/{ 17252 s//\1/ 17253 q 17254 } 17255 /^X\(\/\).*/{ 17256 s//\1/ 17257 q 17258 } 17259 s/.*/./; q'` 17260 as_dir="$ac_dir"; as_fn_mkdir_p 17261 ac_builddir=. 17262 17263 case "$ac_dir" in 17264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17265 *) 17266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17267 # A ".." for each directory in $ac_dir_suffix. 17268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17269 case $ac_top_builddir_sub in 17270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17272 esac ;; 17273 esac 17274 ac_abs_top_builddir=$ac_pwd 17275 ac_abs_builddir=$ac_pwd$ac_dir_suffix 17276 # for backward compatibility: 17277 ac_top_builddir=$ac_top_build_prefix 17278 17279 case $srcdir in 17280 .) # We are building in place. 17281 ac_srcdir=. 17282 ac_top_srcdir=$ac_top_builddir_sub 17283 ac_abs_top_srcdir=$ac_pwd ;; 17284 [\\/]* | ?:[\\/]* ) # Absolute name. 17285 ac_srcdir=$srcdir$ac_dir_suffix; 17286 ac_top_srcdir=$srcdir 17287 ac_abs_top_srcdir=$srcdir ;; 17288 *) # Relative name. 17289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17290 ac_top_srcdir=$ac_top_build_prefix$srcdir 17291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17292 esac 17293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17294 17295 17296 case $ac_mode in 17297 :F) 17298 # 17299 # CONFIG_FILE 17300 # 17301 17302 case $INSTALL in 17303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17305 esac 17306 ac_MKDIR_P=$MKDIR_P 17307 case $MKDIR_P in 17308 [\\/$]* | ?:[\\/]* ) ;; 17309 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17310 esac 17311 _ACEOF 17312 17313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17314 # If the template does not know about datarootdir, expand it. 17315 # FIXME: This hack should be removed a few years after 2.60. 17316 ac_datarootdir_hack=; ac_datarootdir_seen= 17317 ac_sed_dataroot=' 17318 /datarootdir/ { 17319 p 17320 q 17321 } 17322 /@datadir@/p 17323 /@docdir@/p 17324 /@infodir@/p 17325 /@localedir@/p 17326 /@mandir@/p' 17327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17328 *datarootdir*) ac_datarootdir_seen=yes;; 17329 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17331 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17332 _ACEOF 17333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17334 ac_datarootdir_hack=' 17335 s&@datadir@&$datadir&g 17336 s&@docdir@&$docdir&g 17337 s&@infodir@&$infodir&g 17338 s&@localedir@&$localedir&g 17339 s&@mandir@&$mandir&g 17340 s&\\\${datarootdir}&$datarootdir&g' ;; 17341 esac 17342 _ACEOF 17343 17344 # Neutralize VPATH when `$srcdir' = `.'. 17345 # Shell code in configure.ac might set extrasub. 17346 # FIXME: do we really want to maintain this feature? 17347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17348 ac_sed_extra="$ac_vpsub 17349 $extrasub 17350 _ACEOF 17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17352 :t 17353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17354 s|@configure_input@|$ac_sed_conf_input|;t t 17355 s&@top_builddir@&$ac_top_builddir_sub&;t t 17356 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17357 s&@srcdir@&$ac_srcdir&;t t 17358 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17359 s&@top_srcdir@&$ac_top_srcdir&;t t 17360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17361 s&@builddir@&$ac_builddir&;t t 17362 s&@abs_builddir@&$ac_abs_builddir&;t t 17363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17364 s&@INSTALL@&$ac_INSTALL&;t t 17365 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17366 $ac_datarootdir_hack 17367 " 17368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17369 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17370 17371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17372 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17373 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17374 "$ac_tmp/out"`; test -z "$ac_out"; } && 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17376 which seems to be undefined. Please make sure it is defined" >&5 17377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17378 which seems to be undefined. Please make sure it is defined" >&2;} 17379 17380 rm -f "$ac_tmp/stdin" 17381 case $ac_file in 17382 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17383 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17384 esac \ 17385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17386 ;; 17387 :H) 17388 # 17389 # CONFIG_HEADER 17390 # 17391 if test x"$ac_file" != x-; then 17392 { 17393 $as_echo "/* $configure_input */" \ 17394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17395 } >"$ac_tmp/config.h" \ 17396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17397 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17399 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17400 else 17401 rm -f "$ac_file" 17402 mv "$ac_tmp/config.h" "$ac_file" \ 17403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17404 fi 17405 else 17406 $as_echo "/* $configure_input */" \ 17407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17408 || as_fn_error $? "could not create -" "$LINENO" 5 17409 fi 17410 # Compute "$ac_file"'s index in $config_headers. 17411 _am_arg="$ac_file" 17412 _am_stamp_count=1 17413 for _am_header in $config_headers :; do 17414 case $_am_header in 17415 $_am_arg | $_am_arg:* ) 17416 break ;; 17417 * ) 17418 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17419 esac 17420 done 17421 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17422 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17423 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17424 X"$_am_arg" : 'X\(//\)$' \| \ 17425 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17426 $as_echo X"$_am_arg" | 17427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17428 s//\1/ 17429 q 17430 } 17431 /^X\(\/\/\)[^/].*/{ 17432 s//\1/ 17433 q 17434 } 17435 /^X\(\/\/\)$/{ 17436 s//\1/ 17437 q 17438 } 17439 /^X\(\/\).*/{ 17440 s//\1/ 17441 q 17442 } 17443 s/.*/./; q'`/stamp-h$_am_stamp_count 17444 ;; 17445 17446 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17447 $as_echo "$as_me: executing $ac_file commands" >&6;} 17448 ;; 17449 esac 17450 17451 17452 case $ac_file$ac_mode in 17453 "scripts/gtest-config":F) chmod +x scripts/gtest-config ;; 17454 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17455 # Older Autoconf quotes --file arguments for eval, but not when files 17456 # are listed without --file. Let's play safe and only enable the eval 17457 # if we detect the quoting. 17458 case $CONFIG_FILES in 17459 *\'*) eval set x "$CONFIG_FILES" ;; 17460 *) set x $CONFIG_FILES ;; 17461 esac 17462 shift 17463 for mf 17464 do 17465 # Strip MF so we end up with the name of the file. 17466 mf=`echo "$mf" | sed -e 's/:.*$//'` 17467 # Check whether this is an Automake generated Makefile or not. 17468 # We used to match only the files named 'Makefile.in', but 17469 # some people rename them; so instead we look at the file content. 17470 # Grep'ing the first line is not enough: some people post-process 17471 # each Makefile.in and add a new line on top of each file to say so. 17472 # Grep'ing the whole file is not good either: AIX grep has a line 17473 # limit of 2048, but all sed's we know have understand at least 4000. 17474 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17475 dirpart=`$as_dirname -- "$mf" || 17476 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17477 X"$mf" : 'X\(//\)[^/]' \| \ 17478 X"$mf" : 'X\(//\)$' \| \ 17479 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17480 $as_echo X"$mf" | 17481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17482 s//\1/ 17483 q 17484 } 17485 /^X\(\/\/\)[^/].*/{ 17486 s//\1/ 17487 q 17488 } 17489 /^X\(\/\/\)$/{ 17490 s//\1/ 17491 q 17492 } 17493 /^X\(\/\).*/{ 17494 s//\1/ 17495 q 17496 } 17497 s/.*/./; q'` 17498 else 17499 continue 17500 fi 17501 # Extract the definition of DEPDIR, am__include, and am__quote 17502 # from the Makefile without running 'make'. 17503 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17504 test -z "$DEPDIR" && continue 17505 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17506 test -z "$am__include" && continue 17507 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17508 # Find all dependency output files, they are included files with 17509 # $(DEPDIR) in their names. We invoke sed twice because it is the 17510 # simplest approach to changing $(DEPDIR) to its actual value in the 17511 # expansion. 17512 for file in `sed -n " 17513 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17514 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17515 # Make sure the directory exists. 17516 test -f "$dirpart/$file" && continue 17517 fdir=`$as_dirname -- "$file" || 17518 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17519 X"$file" : 'X\(//\)[^/]' \| \ 17520 X"$file" : 'X\(//\)$' \| \ 17521 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17522 $as_echo X"$file" | 17523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17524 s//\1/ 17525 q 17526 } 17527 /^X\(\/\/\)[^/].*/{ 17528 s//\1/ 17529 q 17530 } 17531 /^X\(\/\/\)$/{ 17532 s//\1/ 17533 q 17534 } 17535 /^X\(\/\).*/{ 17536 s//\1/ 17537 q 17538 } 17539 s/.*/./; q'` 17540 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17541 # echo "creating $dirpart/$file" 17542 echo '# dummy' > "$dirpart/$file" 17543 done 17544 done 17545 } 17546 ;; 17547 "libtool":C) 17548 17549 # See if we are running on zsh, and set the options which allow our 17550 # commands through without removal of \ escapes. 17551 if test -n "${ZSH_VERSION+set}" ; then 17552 setopt NO_GLOB_SUBST 17553 fi 17554 17555 cfgfile="${ofile}T" 17556 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17557 $RM "$cfgfile" 17558 17559 cat <<_LT_EOF >> "$cfgfile" 17560 #! $SHELL 17561 17562 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17563 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17564 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17565 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 17566 # 17567 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17568 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17569 # Foundation, Inc. 17570 # Written by Gordon Matzigkeit, 1996 17571 # 17572 # This file is part of GNU Libtool. 17573 # 17574 # GNU Libtool is free software; you can redistribute it and/or 17575 # modify it under the terms of the GNU General Public License as 17576 # published by the Free Software Foundation; either version 2 of 17577 # the License, or (at your option) any later version. 17578 # 17579 # As a special exception to the GNU General Public License, 17580 # if you distribute this file as part of a program or library that 17581 # is built using GNU Libtool, you may include this file under the 17582 # same distribution terms that you use for the rest of that program. 17583 # 17584 # GNU Libtool is distributed in the hope that it will be useful, 17585 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17586 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17587 # GNU General Public License for more details. 17588 # 17589 # You should have received a copy of the GNU General Public License 17590 # along with GNU Libtool; see the file COPYING. If not, a copy 17591 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17592 # obtained by writing to the Free Software Foundation, Inc., 17593 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17594 17595 17596 # The names of the tagged configurations supported by this script. 17597 available_tags="CXX " 17598 17599 # ### BEGIN LIBTOOL CONFIG 17600 17601 # Which release of libtool.m4 was used? 17602 macro_version=$macro_version 17603 macro_revision=$macro_revision 17604 17605 # Whether or not to build shared libraries. 17606 build_libtool_libs=$enable_shared 17607 17608 # Whether or not to build static libraries. 17609 build_old_libs=$enable_static 17610 17611 # What type of objects to build. 17612 pic_mode=$pic_mode 17613 17614 # Whether or not to optimize for fast installation. 17615 fast_install=$enable_fast_install 17616 17617 # Shell to use when invoking shell scripts. 17618 SHELL=$lt_SHELL 17619 17620 # An echo program that protects backslashes. 17621 ECHO=$lt_ECHO 17622 17623 # The PATH separator for the build system. 17624 PATH_SEPARATOR=$lt_PATH_SEPARATOR 17625 17626 # The host system. 17627 host_alias=$host_alias 17628 host=$host 17629 host_os=$host_os 17630 17631 # The build system. 17632 build_alias=$build_alias 17633 build=$build 17634 build_os=$build_os 17635 17636 # A sed program that does not truncate output. 17637 SED=$lt_SED 17638 17639 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 17640 Xsed="\$SED -e 1s/^X//" 17641 17642 # A grep program that handles long lines. 17643 GREP=$lt_GREP 17644 17645 # An ERE matcher. 17646 EGREP=$lt_EGREP 17647 17648 # A literal string matcher. 17649 FGREP=$lt_FGREP 17650 17651 # A BSD- or MS-compatible name lister. 17652 NM=$lt_NM 17653 17654 # Whether we need soft or hard links. 17655 LN_S=$lt_LN_S 17656 17657 # What is the maximum length of a command? 17658 max_cmd_len=$max_cmd_len 17659 17660 # Object file suffix (normally "o"). 17661 objext=$ac_objext 17662 17663 # Executable file suffix (normally ""). 17664 exeext=$exeext 17665 17666 # whether the shell understands "unset". 17667 lt_unset=$lt_unset 17668 17669 # turn spaces into newlines. 17670 SP2NL=$lt_lt_SP2NL 17671 17672 # turn newlines into spaces. 17673 NL2SP=$lt_lt_NL2SP 17674 17675 # convert \$build file names to \$host format. 17676 to_host_file_cmd=$lt_cv_to_host_file_cmd 17677 17678 # convert \$build files to toolchain format. 17679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17680 17681 # An object symbol dumper. 17682 OBJDUMP=$lt_OBJDUMP 17683 17684 # Method to check whether dependent libraries are shared objects. 17685 deplibs_check_method=$lt_deplibs_check_method 17686 17687 # Command to use when deplibs_check_method = "file_magic". 17688 file_magic_cmd=$lt_file_magic_cmd 17689 17690 # How to find potential files when deplibs_check_method = "file_magic". 17691 file_magic_glob=$lt_file_magic_glob 17692 17693 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17694 want_nocaseglob=$lt_want_nocaseglob 17695 17696 # DLL creation program. 17697 DLLTOOL=$lt_DLLTOOL 17698 17699 # Command to associate shared and link libraries. 17700 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17701 17702 # The archiver. 17703 AR=$lt_AR 17704 17705 # Flags to create an archive. 17706 AR_FLAGS=$lt_AR_FLAGS 17707 17708 # How to feed a file listing to the archiver. 17709 archiver_list_spec=$lt_archiver_list_spec 17710 17711 # A symbol stripping program. 17712 STRIP=$lt_STRIP 17713 17714 # Commands used to install an old-style archive. 17715 RANLIB=$lt_RANLIB 17716 old_postinstall_cmds=$lt_old_postinstall_cmds 17717 old_postuninstall_cmds=$lt_old_postuninstall_cmds 17718 17719 # Whether to use a lock for old archive extraction. 17720 lock_old_archive_extraction=$lock_old_archive_extraction 17721 17722 # A C compiler. 17723 LTCC=$lt_CC 17724 17725 # LTCC compiler flags. 17726 LTCFLAGS=$lt_CFLAGS 17727 17728 # Take the output of nm and produce a listing of raw symbols and C names. 17729 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17730 17731 # Transform the output of nm in a proper C declaration. 17732 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17733 17734 # Transform the output of nm in a C name address pair. 17735 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17736 17737 # Transform the output of nm in a C name address pair when lib prefix is needed. 17738 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17739 17740 # Specify filename containing input files for \$NM. 17741 nm_file_list_spec=$lt_nm_file_list_spec 17742 17743 # The root where to search for dependent libraries,and in which our libraries should be installed. 17744 lt_sysroot=$lt_sysroot 17745 17746 # The name of the directory that contains temporary libtool files. 17747 objdir=$objdir 17748 17749 # Used to examine libraries when file_magic_cmd begins with "file". 17750 MAGIC_CMD=$MAGIC_CMD 17751 17752 # Must we lock files when doing compilation? 17753 need_locks=$lt_need_locks 17754 17755 # Manifest tool. 17756 MANIFEST_TOOL=$lt_MANIFEST_TOOL 17757 17758 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17759 DSYMUTIL=$lt_DSYMUTIL 17760 17761 # Tool to change global to local symbols on Mac OS X. 17762 NMEDIT=$lt_NMEDIT 17763 17764 # Tool to manipulate fat objects and archives on Mac OS X. 17765 LIPO=$lt_LIPO 17766 17767 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 17768 OTOOL=$lt_OTOOL 17769 17770 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17771 OTOOL64=$lt_OTOOL64 17772 17773 # Old archive suffix (normally "a"). 17774 libext=$libext 17775 17776 # Shared library suffix (normally ".so"). 17777 shrext_cmds=$lt_shrext_cmds 17778 17779 # The commands to extract the exported symbol list from a shared archive. 17780 extract_expsyms_cmds=$lt_extract_expsyms_cmds 17781 17782 # Variables whose values should be saved in libtool wrapper scripts and 17783 # restored at link time. 17784 variables_saved_for_relink=$lt_variables_saved_for_relink 17785 17786 # Do we need the "lib" prefix for modules? 17787 need_lib_prefix=$need_lib_prefix 17788 17789 # Do we need a version for libraries? 17790 need_version=$need_version 17791 17792 # Library versioning type. 17793 version_type=$version_type 17794 17795 # Shared library runtime path variable. 17796 runpath_var=$runpath_var 17797 17798 # Shared library path variable. 17799 shlibpath_var=$shlibpath_var 17800 17801 # Is shlibpath searched before the hard-coded library search path? 17802 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17803 17804 # Format of library name prefix. 17805 libname_spec=$lt_libname_spec 17806 17807 # List of archive names. First name is the real one, the rest are links. 17808 # The last name is the one that the linker finds with -lNAME 17809 library_names_spec=$lt_library_names_spec 17810 17811 # The coded name of the library, if different from the real name. 17812 soname_spec=$lt_soname_spec 17813 17814 # Permission mode override for installation of shared libraries. 17815 install_override_mode=$lt_install_override_mode 17816 17817 # Command to use after installation of a shared archive. 17818 postinstall_cmds=$lt_postinstall_cmds 17819 17820 # Command to use after uninstallation of a shared archive. 17821 postuninstall_cmds=$lt_postuninstall_cmds 17822 17823 # Commands used to finish a libtool library installation in a directory. 17824 finish_cmds=$lt_finish_cmds 17825 17826 # As "finish_cmds", except a single script fragment to be evaled but 17827 # not shown. 17828 finish_eval=$lt_finish_eval 17829 17830 # Whether we should hardcode library paths into libraries. 17831 hardcode_into_libs=$hardcode_into_libs 17832 17833 # Compile-time system search path for libraries. 17834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17835 17836 # Run-time system search path for libraries. 17837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17838 17839 # Whether dlopen is supported. 17840 dlopen_support=$enable_dlopen 17841 17842 # Whether dlopen of programs is supported. 17843 dlopen_self=$enable_dlopen_self 17844 17845 # Whether dlopen of statically linked programs is supported. 17846 dlopen_self_static=$enable_dlopen_self_static 17847 17848 # Commands to strip libraries. 17849 old_striplib=$lt_old_striplib 17850 striplib=$lt_striplib 17851 17852 17853 # The linker used to build libraries. 17854 LD=$lt_LD 17855 17856 # How to create reloadable object files. 17857 reload_flag=$lt_reload_flag 17858 reload_cmds=$lt_reload_cmds 17859 17860 # Commands used to build an old-style archive. 17861 old_archive_cmds=$lt_old_archive_cmds 17862 17863 # A language specific compiler. 17864 CC=$lt_compiler 17865 17866 # Is the compiler the GNU compiler? 17867 with_gcc=$GCC 17868 17869 # Compiler flag to turn off builtin functions. 17870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17871 17872 # Additional compiler flags for building library objects. 17873 pic_flag=$lt_lt_prog_compiler_pic 17874 17875 # How to pass a linker flag through the compiler. 17876 wl=$lt_lt_prog_compiler_wl 17877 17878 # Compiler flag to prevent dynamic linking. 17879 link_static_flag=$lt_lt_prog_compiler_static 17880 17881 # Does compiler simultaneously support -c and -o options? 17882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17883 17884 # Whether or not to add -lc for building shared libraries. 17885 build_libtool_need_lc=$archive_cmds_need_lc 17886 17887 # Whether or not to disallow shared libs when runtime libs are static. 17888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17889 17890 # Compiler flag to allow reflexive dlopens. 17891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17892 17893 # Compiler flag to generate shared objects directly from archives. 17894 whole_archive_flag_spec=$lt_whole_archive_flag_spec 17895 17896 # Whether the compiler copes with passing no objects directly. 17897 compiler_needs_object=$lt_compiler_needs_object 17898 17899 # Create an old-style archive from a shared archive. 17900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17901 17902 # Create a temporary old-style archive to link instead of a shared archive. 17903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17904 17905 # Commands used to build a shared archive. 17906 archive_cmds=$lt_archive_cmds 17907 archive_expsym_cmds=$lt_archive_expsym_cmds 17908 17909 # Commands used to build a loadable module if different from building 17910 # a shared archive. 17911 module_cmds=$lt_module_cmds 17912 module_expsym_cmds=$lt_module_expsym_cmds 17913 17914 # Whether we are building with GNU ld or not. 17915 with_gnu_ld=$lt_with_gnu_ld 17916 17917 # Flag that allows shared libraries with undefined symbols to be built. 17918 allow_undefined_flag=$lt_allow_undefined_flag 17919 17920 # Flag that enforces no undefined symbols. 17921 no_undefined_flag=$lt_no_undefined_flag 17922 17923 # Flag to hardcode \$libdir into a binary during linking. 17924 # This must work even if \$libdir does not exist 17925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17926 17927 # Whether we need a single "-rpath" flag with a separated argument. 17928 hardcode_libdir_separator=$lt_hardcode_libdir_separator 17929 17930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17931 # DIR into the resulting binary. 17932 hardcode_direct=$hardcode_direct 17933 17934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17935 # DIR into the resulting binary and the resulting library dependency is 17936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17937 # library is relocated. 17938 hardcode_direct_absolute=$hardcode_direct_absolute 17939 17940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17941 # into the resulting binary. 17942 hardcode_minus_L=$hardcode_minus_L 17943 17944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17945 # into the resulting binary. 17946 hardcode_shlibpath_var=$hardcode_shlibpath_var 17947 17948 # Set to "yes" if building a shared library automatically hardcodes DIR 17949 # into the library and all subsequent libraries and executables linked 17950 # against it. 17951 hardcode_automatic=$hardcode_automatic 17952 17953 # Set to yes if linker adds runtime paths of dependent libraries 17954 # to runtime path list. 17955 inherit_rpath=$inherit_rpath 17956 17957 # Whether libtool must link a program against all its dependency libraries. 17958 link_all_deplibs=$link_all_deplibs 17959 17960 # Set to "yes" if exported symbols are required. 17961 always_export_symbols=$always_export_symbols 17962 17963 # The commands to list exported symbols. 17964 export_symbols_cmds=$lt_export_symbols_cmds 17965 17966 # Symbols that should not be listed in the preloaded symbols. 17967 exclude_expsyms=$lt_exclude_expsyms 17968 17969 # Symbols that must always be exported. 17970 include_expsyms=$lt_include_expsyms 17971 17972 # Commands necessary for linking programs (against libraries) with templates. 17973 prelink_cmds=$lt_prelink_cmds 17974 17975 # Commands necessary for finishing linking programs. 17976 postlink_cmds=$lt_postlink_cmds 17977 17978 # Specify filename containing input files. 17979 file_list_spec=$lt_file_list_spec 17980 17981 # How to hardcode a shared library path into an executable. 17982 hardcode_action=$hardcode_action 17983 17984 # The directories searched by this compiler when creating a shared library. 17985 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17986 17987 # Dependencies to place before and after the objects being linked to 17988 # create a shared library. 17989 predep_objects=$lt_predep_objects 17990 postdep_objects=$lt_postdep_objects 17991 predeps=$lt_predeps 17992 postdeps=$lt_postdeps 17993 17994 # The library search path used internally by the compiler when linking 17995 # a shared library. 17996 compiler_lib_search_path=$lt_compiler_lib_search_path 17997 17998 # ### END LIBTOOL CONFIG 17999 18000 _LT_EOF 18001 18002 case $host_os in 18003 aix3*) 18004 cat <<\_LT_EOF >> "$cfgfile" 18005 # AIX sometimes has problems with the GCC collect2 program. For some 18006 # reason, if we set the COLLECT_NAMES environment variable, the problems 18007 # vanish in a puff of smoke. 18008 if test "X${COLLECT_NAMES+set}" != Xset; then 18009 COLLECT_NAMES= 18010 export COLLECT_NAMES 18011 fi 18012 _LT_EOF 18013 ;; 18014 esac 18015 18016 18017 ltmain="$ac_aux_dir/ltmain.sh" 18018 18019 18020 # We use sed instead of cat because bash on DJGPP gets confused if 18021 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18022 # text mode, it properly converts lines to CR/LF. This bash problem 18023 # is reportedly fixed, but why not run on old versions too? 18024 sed '$q' "$ltmain" >> "$cfgfile" \ 18025 || (rm -f "$cfgfile"; exit 1) 18026 18027 if test x"$xsi_shell" = xyes; then 18028 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18029 func_dirname ()\ 18030 {\ 18031 \ case ${1} in\ 18032 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 18033 \ * ) func_dirname_result="${3}" ;;\ 18034 \ esac\ 18035 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18038 test 0 -eq $? || _lt_function_replace_fail=: 18039 18040 18041 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18042 func_basename ()\ 18043 {\ 18044 \ func_basename_result="${1##*/}"\ 18045 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18046 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18048 test 0 -eq $? || _lt_function_replace_fail=: 18049 18050 18051 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18052 func_dirname_and_basename ()\ 18053 {\ 18054 \ case ${1} in\ 18055 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 18056 \ * ) func_dirname_result="${3}" ;;\ 18057 \ esac\ 18058 \ func_basename_result="${1##*/}"\ 18059 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18060 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18062 test 0 -eq $? || _lt_function_replace_fail=: 18063 18064 18065 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18066 func_stripname ()\ 18067 {\ 18068 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18069 \ # positional parameters, so assign one to ordinary parameter first.\ 18070 \ func_stripname_result=${3}\ 18071 \ func_stripname_result=${func_stripname_result#"${1}"}\ 18072 \ func_stripname_result=${func_stripname_result%"${2}"}\ 18073 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18074 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18076 test 0 -eq $? || _lt_function_replace_fail=: 18077 18078 18079 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18080 func_split_long_opt ()\ 18081 {\ 18082 \ func_split_long_opt_name=${1%%=*}\ 18083 \ func_split_long_opt_arg=${1#*=}\ 18084 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18085 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18087 test 0 -eq $? || _lt_function_replace_fail=: 18088 18089 18090 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18091 func_split_short_opt ()\ 18092 {\ 18093 \ func_split_short_opt_arg=${1#??}\ 18094 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18095 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18096 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18098 test 0 -eq $? || _lt_function_replace_fail=: 18099 18100 18101 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18102 func_lo2o ()\ 18103 {\ 18104 \ case ${1} in\ 18105 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18106 \ *) func_lo2o_result=${1} ;;\ 18107 \ esac\ 18108 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18111 test 0 -eq $? || _lt_function_replace_fail=: 18112 18113 18114 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18115 func_xform ()\ 18116 {\ 18117 func_xform_result=${1%.*}.lo\ 18118 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18121 test 0 -eq $? || _lt_function_replace_fail=: 18122 18123 18124 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18125 func_arith ()\ 18126 {\ 18127 func_arith_result=$(( $* ))\ 18128 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18129 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18131 test 0 -eq $? || _lt_function_replace_fail=: 18132 18133 18134 sed -e '/^func_len ()$/,/^} # func_len /c\ 18135 func_len ()\ 18136 {\ 18137 func_len_result=${#1}\ 18138 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18139 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18141 test 0 -eq $? || _lt_function_replace_fail=: 18142 18143 fi 18144 18145 if test x"$lt_shell_append" = xyes; then 18146 sed -e '/^func_append ()$/,/^} # func_append /c\ 18147 func_append ()\ 18148 {\ 18149 eval "${1}+=\\${2}"\ 18150 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18151 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18152 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18153 test 0 -eq $? || _lt_function_replace_fail=: 18154 18155 18156 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18157 func_append_quoted ()\ 18158 {\ 18159 \ func_quote_for_eval "${2}"\ 18160 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18161 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18162 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18164 test 0 -eq $? || _lt_function_replace_fail=: 18165 18166 18167 # Save a `func_append' function call where possible by direct use of '+=' 18168 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18169 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18171 test 0 -eq $? || _lt_function_replace_fail=: 18172 else 18173 # Save a `func_append' function call even when '+=' is not available 18174 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18175 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18177 test 0 -eq $? || _lt_function_replace_fail=: 18178 fi 18179 18180 if test x"$_lt_function_replace_fail" = x":"; then 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18182 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18183 fi 18184 18185 18186 mv -f "$cfgfile" "$ofile" || 18187 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18188 chmod +x "$ofile" 18189 18190 18191 cat <<_LT_EOF >> "$ofile" 18192 18193 # ### BEGIN LIBTOOL TAG CONFIG: CXX 18194 18195 # The linker used to build libraries. 18196 LD=$lt_LD_CXX 18197 18198 # How to create reloadable object files. 18199 reload_flag=$lt_reload_flag_CXX 18200 reload_cmds=$lt_reload_cmds_CXX 18201 18202 # Commands used to build an old-style archive. 18203 old_archive_cmds=$lt_old_archive_cmds_CXX 18204 18205 # A language specific compiler. 18206 CC=$lt_compiler_CXX 18207 18208 # Is the compiler the GNU compiler? 18209 with_gcc=$GCC_CXX 18210 18211 # Compiler flag to turn off builtin functions. 18212 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18213 18214 # Additional compiler flags for building library objects. 18215 pic_flag=$lt_lt_prog_compiler_pic_CXX 18216 18217 # How to pass a linker flag through the compiler. 18218 wl=$lt_lt_prog_compiler_wl_CXX 18219 18220 # Compiler flag to prevent dynamic linking. 18221 link_static_flag=$lt_lt_prog_compiler_static_CXX 18222 18223 # Does compiler simultaneously support -c and -o options? 18224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18225 18226 # Whether or not to add -lc for building shared libraries. 18227 build_libtool_need_lc=$archive_cmds_need_lc_CXX 18228 18229 # Whether or not to disallow shared libs when runtime libs are static. 18230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18231 18232 # Compiler flag to allow reflexive dlopens. 18233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18234 18235 # Compiler flag to generate shared objects directly from archives. 18236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18237 18238 # Whether the compiler copes with passing no objects directly. 18239 compiler_needs_object=$lt_compiler_needs_object_CXX 18240 18241 # Create an old-style archive from a shared archive. 18242 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18243 18244 # Create a temporary old-style archive to link instead of a shared archive. 18245 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18246 18247 # Commands used to build a shared archive. 18248 archive_cmds=$lt_archive_cmds_CXX 18249 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18250 18251 # Commands used to build a loadable module if different from building 18252 # a shared archive. 18253 module_cmds=$lt_module_cmds_CXX 18254 module_expsym_cmds=$lt_module_expsym_cmds_CXX 18255 18256 # Whether we are building with GNU ld or not. 18257 with_gnu_ld=$lt_with_gnu_ld_CXX 18258 18259 # Flag that allows shared libraries with undefined symbols to be built. 18260 allow_undefined_flag=$lt_allow_undefined_flag_CXX 18261 18262 # Flag that enforces no undefined symbols. 18263 no_undefined_flag=$lt_no_undefined_flag_CXX 18264 18265 # Flag to hardcode \$libdir into a binary during linking. 18266 # This must work even if \$libdir does not exist 18267 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18268 18269 # Whether we need a single "-rpath" flag with a separated argument. 18270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18271 18272 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18273 # DIR into the resulting binary. 18274 hardcode_direct=$hardcode_direct_CXX 18275 18276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18277 # DIR into the resulting binary and the resulting library dependency is 18278 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18279 # library is relocated. 18280 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18281 18282 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18283 # into the resulting binary. 18284 hardcode_minus_L=$hardcode_minus_L_CXX 18285 18286 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18287 # into the resulting binary. 18288 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18289 18290 # Set to "yes" if building a shared library automatically hardcodes DIR 18291 # into the library and all subsequent libraries and executables linked 18292 # against it. 18293 hardcode_automatic=$hardcode_automatic_CXX 18294 18295 # Set to yes if linker adds runtime paths of dependent libraries 18296 # to runtime path list. 18297 inherit_rpath=$inherit_rpath_CXX 18298 18299 # Whether libtool must link a program against all its dependency libraries. 18300 link_all_deplibs=$link_all_deplibs_CXX 18301 18302 # Set to "yes" if exported symbols are required. 18303 always_export_symbols=$always_export_symbols_CXX 18304 18305 # The commands to list exported symbols. 18306 export_symbols_cmds=$lt_export_symbols_cmds_CXX 18307 18308 # Symbols that should not be listed in the preloaded symbols. 18309 exclude_expsyms=$lt_exclude_expsyms_CXX 18310 18311 # Symbols that must always be exported. 18312 include_expsyms=$lt_include_expsyms_CXX 18313 18314 # Commands necessary for linking programs (against libraries) with templates. 18315 prelink_cmds=$lt_prelink_cmds_CXX 18316 18317 # Commands necessary for finishing linking programs. 18318 postlink_cmds=$lt_postlink_cmds_CXX 18319 18320 # Specify filename containing input files. 18321 file_list_spec=$lt_file_list_spec_CXX 18322 18323 # How to hardcode a shared library path into an executable. 18324 hardcode_action=$hardcode_action_CXX 18325 18326 # The directories searched by this compiler when creating a shared library. 18327 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18328 18329 # Dependencies to place before and after the objects being linked to 18330 # create a shared library. 18331 predep_objects=$lt_predep_objects_CXX 18332 postdep_objects=$lt_postdep_objects_CXX 18333 predeps=$lt_predeps_CXX 18334 postdeps=$lt_postdeps_CXX 18335 18336 # The library search path used internally by the compiler when linking 18337 # a shared library. 18338 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18339 18340 # ### END LIBTOOL TAG CONFIG: CXX 18341 _LT_EOF 18342 18343 ;; 18344 18345 esac 18346 done # for ac_tag 18347 18348 18349 as_fn_exit 0 18350 _ACEOF 18351 ac_clean_files=$ac_clean_files_save 18352 18353 test $ac_write_fail = 0 || 18354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18355 18356 18357 # configure is writing to config.log, and then calls config.status. 18358 # config.status does its own redirection, appending to config.log. 18359 # Unfortunately, on DOS this fails, as config.log is still kept open 18360 # by configure, so config.status won't be able to write to it; its 18361 # output is simply discarded. So we exec the FD to /dev/null, 18362 # effectively closing config.log, so it can be properly (re)opened and 18363 # appended to by config.status. When coming back to configure, we 18364 # need to make the FD available again. 18365 if test "$no_create" != yes; then 18366 ac_cs_success=: 18367 ac_config_status_args= 18368 test "$silent" = yes && 18369 ac_config_status_args="$ac_config_status_args --quiet" 18370 exec 5>/dev/null 18371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18372 exec 5>>config.log 18373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18374 # would make configure fail if this is the last instruction. 18375 $ac_cs_success || as_fn_exit 1 18376 fi 18377 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18379 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18380 fi 18381 18382