1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for dia2code 1.0.0. 4@%:@ 5@%:@ 6@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7@%:@ 8@%:@ 9@%:@ This configure script is free software; the Free Software Foundation 10@%:@ gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in @%:@( 26 *posix*) : 27 set -o posix ;; @%:@( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in @%:@( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in @%:@(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in @%:@ (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in @%:@( 170 *posix*) : 171 set -o posix ;; @%:@( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in @%:@( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in @%:@ (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293@%:@ as_fn_unset VAR 294@%:@ --------------- 295@%:@ Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302@%:@ as_fn_set_status STATUS 303@%:@ ----------------------- 304@%:@ Set @S|@? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} @%:@ as_fn_set_status 309 310@%:@ as_fn_exit STATUS 311@%:@ ----------------- 312@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} @%:@ as_fn_exit 319 320@%:@ as_fn_mkdir_p 321@%:@ ------------- 322@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} @%:@ as_fn_mkdir_p 367 368@%:@ as_fn_executable_p FILE 369@%:@ ----------------------- 370@%:@ Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} @%:@ as_fn_executable_p 375@%:@ as_fn_append VAR VALUE 376@%:@ ---------------------- 377@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 378@%:@ advantage of any shell optimizations that allow amortized linear growth over 379@%:@ repeated appends, instead of the typical quadratic growth present in naive 380@%:@ implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393@%:@ as_fn_arith ARG... 394@%:@ ------------------ 395@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 396@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 397@%:@ must be portable across @S|@(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 412@%:@ ---------------------------------------- 413@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415@%:@ script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} @%:@ as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in @%:@((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIB@&t@OBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='dia2code' 589PACKAGE_TARNAME='dia2code' 590PACKAGE_VERSION='1.0.0' 591PACKAGE_STRING='dia2code 1.0.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/main.cpp" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIB@&t@OBJS 636ENABLE_CORBA_FALSE 637ENABLE_CORBA_TRUE 638XML_LIBS 639XML_CFLAGS 640XML_CONFIG 641CXXCPP 642am__fastdepCXX_FALSE 643am__fastdepCXX_TRUE 644CXXDEPMODE 645ac_ct_CXX 646CXXFLAGS 647CXX 648CPP 649LT_SYS_LIBRARY_PATH 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__quote 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695LIBTOOL 696AM_BACKSLASH 697AM_DEFAULT_VERBOSITY 698AM_DEFAULT_V 699AM_V 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_silent_rules 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769with_aix_soname 770enable_dependency_tracking 771with_gnu_ld 772with_sysroot 773enable_libtool_lock 774with_corba 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784LT_SYS_LIBRARY_PATH 785CPP 786CXX 787CXXFLAGS 788CCC 789CXXCPP' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828includedir='${prefix}/include' 829oldincludedir='/usr/include' 830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 831infodir='${datarootdir}/info' 832htmldir='${docdir}' 833dvidir='${docdir}' 834pdfdir='${docdir}' 835psdir='${docdir}' 836libdir='${exec_prefix}/lib' 837localedir='${datarootdir}/locale' 838mandir='${datarootdir}/man' 839 840ac_prev= 841ac_dashdash= 842for ac_option 843do 844 # If the previous option needs an argument, assign it. 845 if test -n "$ac_prev"; then 846 eval $ac_prev=\$ac_option 847 ac_prev= 848 continue 849 fi 850 851 case $ac_option in 852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 853 *=) ac_optarg= ;; 854 *) ac_optarg=yes ;; 855 esac 856 857 # Accept the important Cygnus configure options, so we can diagnose typos. 858 859 case $ac_dashdash$ac_option in 860 --) 861 ac_dashdash=yes ;; 862 863 -bindir | --bindir | --bindi | --bind | --bin | --bi) 864 ac_prev=bindir ;; 865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 866 bindir=$ac_optarg ;; 867 868 -build | --build | --buil | --bui | --bu) 869 ac_prev=build_alias ;; 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 871 build_alias=$ac_optarg ;; 872 873 -cache-file | --cache-file | --cache-fil | --cache-fi \ 874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 875 ac_prev=cache_file ;; 876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 878 cache_file=$ac_optarg ;; 879 880 --config-cache | -C) 881 cache_file=config.cache ;; 882 883 -datadir | --datadir | --datadi | --datad) 884 ac_prev=datadir ;; 885 -datadir=* | --datadir=* | --datadi=* | --datad=*) 886 datadir=$ac_optarg ;; 887 888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 889 | --dataroo | --dataro | --datar) 890 ac_prev=datarootdir ;; 891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 893 datarootdir=$ac_optarg ;; 894 895 -disable-* | --disable-*) 896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 897 # Reject names that are not valid shell variable names. 898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 899 as_fn_error $? "invalid feature name: $ac_useropt" 900 ac_useropt_orig=$ac_useropt 901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 902 case $ac_user_opts in 903 *" 904"enable_$ac_useropt" 905"*) ;; 906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 907 ac_unrecognized_sep=', ';; 908 esac 909 eval enable_$ac_useropt=no ;; 910 911 -docdir | --docdir | --docdi | --doc | --do) 912 ac_prev=docdir ;; 913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 914 docdir=$ac_optarg ;; 915 916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 917 ac_prev=dvidir ;; 918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 919 dvidir=$ac_optarg ;; 920 921 -enable-* | --enable-*) 922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 923 # Reject names that are not valid shell variable names. 924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 925 as_fn_error $? "invalid feature name: $ac_useropt" 926 ac_useropt_orig=$ac_useropt 927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 928 case $ac_user_opts in 929 *" 930"enable_$ac_useropt" 931"*) ;; 932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 933 ac_unrecognized_sep=', ';; 934 esac 935 eval enable_$ac_useropt=\$ac_optarg ;; 936 937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 939 | --exec | --exe | --ex) 940 ac_prev=exec_prefix ;; 941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 943 | --exec=* | --exe=* | --ex=*) 944 exec_prefix=$ac_optarg ;; 945 946 -gas | --gas | --ga | --g) 947 # Obsolete; use --with-gas. 948 with_gas=yes ;; 949 950 -help | --help | --hel | --he | -h) 951 ac_init_help=long ;; 952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 953 ac_init_help=recursive ;; 954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 955 ac_init_help=short ;; 956 957 -host | --host | --hos | --ho) 958 ac_prev=host_alias ;; 959 -host=* | --host=* | --hos=* | --ho=*) 960 host_alias=$ac_optarg ;; 961 962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 963 ac_prev=htmldir ;; 964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 965 | --ht=*) 966 htmldir=$ac_optarg ;; 967 968 -includedir | --includedir | --includedi | --included | --include \ 969 | --includ | --inclu | --incl | --inc) 970 ac_prev=includedir ;; 971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 972 | --includ=* | --inclu=* | --incl=* | --inc=*) 973 includedir=$ac_optarg ;; 974 975 -infodir | --infodir | --infodi | --infod | --info | --inf) 976 ac_prev=infodir ;; 977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 978 infodir=$ac_optarg ;; 979 980 -libdir | --libdir | --libdi | --libd) 981 ac_prev=libdir ;; 982 -libdir=* | --libdir=* | --libdi=* | --libd=*) 983 libdir=$ac_optarg ;; 984 985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 986 | --libexe | --libex | --libe) 987 ac_prev=libexecdir ;; 988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 989 | --libexe=* | --libex=* | --libe=*) 990 libexecdir=$ac_optarg ;; 991 992 -localedir | --localedir | --localedi | --localed | --locale) 993 ac_prev=localedir ;; 994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 995 localedir=$ac_optarg ;; 996 997 -localstatedir | --localstatedir | --localstatedi | --localstated \ 998 | --localstate | --localstat | --localsta | --localst | --locals) 999 ac_prev=localstatedir ;; 1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1002 localstatedir=$ac_optarg ;; 1003 1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1005 ac_prev=mandir ;; 1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1007 mandir=$ac_optarg ;; 1008 1009 -nfp | --nfp | --nf) 1010 # Obsolete; use --without-fp. 1011 with_fp=no ;; 1012 1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1014 | --no-cr | --no-c | -n) 1015 no_create=yes ;; 1016 1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1019 no_recursion=yes ;; 1020 1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1023 | --oldin | --oldi | --old | --ol | --o) 1024 ac_prev=oldincludedir ;; 1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1028 oldincludedir=$ac_optarg ;; 1029 1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1031 ac_prev=prefix ;; 1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1033 prefix=$ac_optarg ;; 1034 1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1036 | --program-pre | --program-pr | --program-p) 1037 ac_prev=program_prefix ;; 1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1040 program_prefix=$ac_optarg ;; 1041 1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1043 | --program-suf | --program-su | --program-s) 1044 ac_prev=program_suffix ;; 1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1047 program_suffix=$ac_optarg ;; 1048 1049 -program-transform-name | --program-transform-name \ 1050 | --program-transform-nam | --program-transform-na \ 1051 | --program-transform-n | --program-transform- \ 1052 | --program-transform | --program-transfor \ 1053 | --program-transfo | --program-transf \ 1054 | --program-trans | --program-tran \ 1055 | --progr-tra | --program-tr | --program-t) 1056 ac_prev=program_transform_name ;; 1057 -program-transform-name=* | --program-transform-name=* \ 1058 | --program-transform-nam=* | --program-transform-na=* \ 1059 | --program-transform-n=* | --program-transform-=* \ 1060 | --program-transform=* | --program-transfor=* \ 1061 | --program-transfo=* | --program-transf=* \ 1062 | --program-trans=* | --program-tran=* \ 1063 | --progr-tra=* | --program-tr=* | --program-t=*) 1064 program_transform_name=$ac_optarg ;; 1065 1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1067 ac_prev=pdfdir ;; 1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1069 pdfdir=$ac_optarg ;; 1070 1071 -psdir | --psdir | --psdi | --psd | --ps) 1072 ac_prev=psdir ;; 1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1074 psdir=$ac_optarg ;; 1075 1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1077 | -silent | --silent | --silen | --sile | --sil) 1078 silent=yes ;; 1079 1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1081 ac_prev=sbindir ;; 1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1083 | --sbi=* | --sb=*) 1084 sbindir=$ac_optarg ;; 1085 1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1088 | --sharedst | --shareds | --shared | --share | --shar \ 1089 | --sha | --sh) 1090 ac_prev=sharedstatedir ;; 1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1094 | --sha=* | --sh=*) 1095 sharedstatedir=$ac_optarg ;; 1096 1097 -site | --site | --sit) 1098 ac_prev=site ;; 1099 -site=* | --site=* | --sit=*) 1100 site=$ac_optarg ;; 1101 1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1103 ac_prev=srcdir ;; 1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1105 srcdir=$ac_optarg ;; 1106 1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1108 | --syscon | --sysco | --sysc | --sys | --sy) 1109 ac_prev=sysconfdir ;; 1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1112 sysconfdir=$ac_optarg ;; 1113 1114 -target | --target | --targe | --targ | --tar | --ta | --t) 1115 ac_prev=target_alias ;; 1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1117 target_alias=$ac_optarg ;; 1118 1119 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1120 verbose=yes ;; 1121 1122 -version | --version | --versio | --versi | --vers | -V) 1123 ac_init_version=: ;; 1124 1125 -with-* | --with-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=\$ac_optarg ;; 1140 1141 -without-* | --without-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: $ac_useropt" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=no ;; 1156 1157 --x) 1158 # Obsolete; use --with-x. 1159 with_x=yes ;; 1160 1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1162 | --x-incl | --x-inc | --x-in | --x-i) 1163 ac_prev=x_includes ;; 1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1166 x_includes=$ac_optarg ;; 1167 1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1170 ac_prev=x_libraries ;; 1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1173 x_libraries=$ac_optarg ;; 1174 1175 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1176Try \`$0 --help' for more information" 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 case $ac_envvar in #( 1183 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1185 esac 1186 eval $ac_envvar=\$ac_optarg 1187 export $ac_envvar ;; 1188 1189 *) 1190 # FIXME: should be removed in autoconf 3.0. 1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1195 ;; 1196 1197 esac 1198done 1199 1200if test -n "$ac_prev"; then 1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1202 as_fn_error $? "missing argument to $ac_option" 1203fi 1204 1205if test -n "$ac_unrecognized_opts"; then 1206 case $enable_option_checking in 1207 no) ;; 1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1210 esac 1211fi 1212 1213# Check all directory arguments for consistency. 1214for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir 1218do 1219 eval ac_val=\$$ac_var 1220 # Remove trailing slashes. 1221 case $ac_val in 1222 */ ) 1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1224 eval $ac_var=\$ac_val;; 1225 esac 1226 # Be sure to have absolute directory names. 1227 case $ac_val in 1228 [\\/$]* | ?:[\\/]* ) continue;; 1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1230 esac 1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1232done 1233 1234# There might be people who depend on the old broken behavior: `$host' 1235# used to hold the argument of --host etc. 1236# FIXME: To remove some day. 1237build=$build_alias 1238host=$host_alias 1239target=$target_alias 1240 1241# FIXME: To remove some day. 1242if test "x$host_alias" != x; then 1243 if test "x$build_alias" = x; then 1244 cross_compiling=maybe 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248fi 1249 1250ac_tool_prefix= 1251test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253test "$silent" = yes && exec 6>/dev/null 1254 1255 1256ac_pwd=`pwd` && test -n "$ac_pwd" && 1257ac_ls_di=`ls -di .` && 1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 as_fn_error $? "working directory cannot be determined" 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1261 as_fn_error $? "pwd does not report name of working directory" 1262 1263 1264# Find the source files, if location was not specified. 1265if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$as_myself" || 1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$as_myself" : 'X\(//\)[^/]' \| \ 1271 X"$as_myself" : 'X\(//\)$' \| \ 1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1273$as_echo X"$as_myself" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295else 1296 ac_srcdir_defaulted=no 1297fi 1298if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1301fi 1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1303ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1305 pwd)` 1306# When building in place, set srcdir=. 1307if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309fi 1310# Remove unnecessary trailing slashes from srcdir. 1311# Double slashes in file names in object file debugging info 1312# mess up M-x gdb in Emacs. 1313case $srcdir in 1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315esac 1316for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321done 1322 1323# 1324# Report the --help message. 1325# 1326if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330\`configure' configures dia2code 1.0.0 to adapt to many kinds of systems. 1331 1332Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337Defaults for the options are specified in brackets. 1338 1339Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print \`checking ...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for \`--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1349 1350Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 @<:@@S|@ac_default_prefix@:>@ 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 @<:@PREFIX@:>@ 1355 1356By default, \`make install' will install all the files in 1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1358an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1359for instance \`--prefix=\$HOME'. 1360 1361For better control, use the options below. 1362 1363Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --libdir=DIR object code libraries [EPREFIX/lib] 1371 --includedir=DIR C header files [PREFIX/include] 1372 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1375 --infodir=DIR info documentation [DATAROOTDIR/info] 1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1377 --mandir=DIR man documentation [DATAROOTDIR/man] 1378 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/dia2code@:>@ 1379 --htmldir=DIR html documentation [DOCDIR] 1380 --dvidir=DIR dvi documentation [DOCDIR] 1381 --pdfdir=DIR pdf documentation [DOCDIR] 1382 --psdir=DIR ps documentation [DOCDIR] 1383_ACEOF 1384 1385 cat <<\_ACEOF 1386 1387Program names: 1388 --program-prefix=PREFIX prepend PREFIX to installed program names 1389 --program-suffix=SUFFIX append SUFFIX to installed program names 1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1391 1392System types: 1393 --build=BUILD configure for building on BUILD [guessed] 1394 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1395_ACEOF 1396fi 1397 1398if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of dia2code 1.0.0:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-option-checking ignore unrecognized --enable/--with options 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408 --enable-silent-rules less verbose build output (undo: "make V=1") 1409 --disable-silent-rules verbose build output (undo: "make V=0") 1410 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1411 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1412 --enable-fast-install@<:@=PKGS@:>@ 1413 optimize for fast installation @<:@default=yes@:>@ 1414 --enable-dependency-tracking 1415 do not reject slow dependency extractors 1416 --disable-dependency-tracking 1417 speeds up one-time build 1418 --disable-libtool-lock avoid locking (might break parallel builds) 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1424 both@:>@ 1425 --with-aix-soname=aix|svr4|both 1426 shared library versioning (aka "SONAME") variant to 1427 provide on AIX, @<:@default=aix@:>@. 1428 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1429 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1430 compiler's sysroot if not specified). 1431 --with-corba build with corba. 1432 1433Some influential environment variables: 1434 CC C compiler command 1435 CFLAGS C compiler flags 1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1437 nonstandard directory <lib dir> 1438 LIBS libraries to pass to the linker, e.g. -l<library> 1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1440 you have headers in a nonstandard directory <include dir> 1441 LT_SYS_LIBRARY_PATH 1442 User-defined run-time library search path. 1443 CPP C preprocessor 1444 CXX C++ compiler command 1445 CXXFLAGS C++ compiler flags 1446 CXXCPP C++ preprocessor 1447 1448Use these variables to override the choices made by `configure' or to help 1449it to find libraries and programs with nonstandard names/locations. 1450 1451Report bugs to the package provider. 1452_ACEOF 1453ac_status=$? 1454fi 1455 1456if test "$ac_init_help" = "recursive"; then 1457 # If there are subdirs, report their specific --help. 1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1459 test -d "$ac_dir" || 1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1461 continue 1462 ac_builddir=. 1463 1464case "$ac_dir" in 1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1466*) 1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1468 # A ".." for each directory in $ac_dir_suffix. 1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1470 case $ac_top_builddir_sub in 1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1473 esac ;; 1474esac 1475ac_abs_top_builddir=$ac_pwd 1476ac_abs_builddir=$ac_pwd$ac_dir_suffix 1477# for backward compatibility: 1478ac_top_builddir=$ac_top_build_prefix 1479 1480case $srcdir in 1481 .) # We are building in place. 1482 ac_srcdir=. 1483 ac_top_srcdir=$ac_top_builddir_sub 1484 ac_abs_top_srcdir=$ac_pwd ;; 1485 [\\/]* | ?:[\\/]* ) # Absolute name. 1486 ac_srcdir=$srcdir$ac_dir_suffix; 1487 ac_top_srcdir=$srcdir 1488 ac_abs_top_srcdir=$srcdir ;; 1489 *) # Relative name. 1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1491 ac_top_srcdir=$ac_top_build_prefix$srcdir 1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1493esac 1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1495 1496 cd "$ac_dir" || { ac_status=$?; continue; } 1497 # Check for guested configure. 1498 if test -f "$ac_srcdir/configure.gnu"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1501 elif test -f "$ac_srcdir/configure"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure" --help=recursive 1504 else 1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1506 fi || ac_status=$? 1507 cd "$ac_pwd" || { ac_status=$?; break; } 1508 done 1509fi 1510 1511test -n "$ac_init_help" && exit $ac_status 1512if $ac_init_version; then 1513 cat <<\_ACEOF 1514dia2code configure 1.0.0 1515generated by GNU Autoconf 2.69 1516 1517Copyright (C) 2012 Free Software Foundation, Inc. 1518This configure script is free software; the Free Software Foundation 1519gives unlimited permission to copy, distribute and modify it. 1520_ACEOF 1521 exit 1522fi 1523 1524## ------------------------ ## 1525## Autoconf initialization. ## 1526## ------------------------ ## 1527 1528@%:@ ac_fn_c_try_compile LINENO 1529@%:@ -------------------------- 1530@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1531ac_fn_c_try_compile () 1532{ 1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1534 rm -f conftest.$ac_objext 1535 if { { ac_try="$ac_compile" 1536case "(($ac_try" in 1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1538 *) ac_try_echo=$ac_try;; 1539esac 1540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1541$as_echo "$ac_try_echo"; } >&5 1542 (eval "$ac_compile") 2>conftest.err 1543 ac_status=$? 1544 if test -s conftest.err; then 1545 grep -v '^ *+' conftest.err >conftest.er1 1546 cat conftest.er1 >&5 1547 mv -f conftest.er1 conftest.err 1548 fi 1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1550 test $ac_status = 0; } && { 1551 test -z "$ac_c_werror_flag" || 1552 test ! -s conftest.err 1553 } && test -s conftest.$ac_objext; then : 1554 ac_retval=0 1555else 1556 $as_echo "$as_me: failed program was:" >&5 1557sed 's/^/| /' conftest.$ac_ext >&5 1558 1559 ac_retval=1 1560fi 1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1562 as_fn_set_status $ac_retval 1563 1564} @%:@ ac_fn_c_try_compile 1565 1566@%:@ ac_fn_c_try_link LINENO 1567@%:@ ----------------------- 1568@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1569ac_fn_c_try_link () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 rm -f conftest.$ac_objext conftest$ac_exeext 1573 if { { ac_try="$ac_link" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_link") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } && { 1589 test -z "$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 } && test -s conftest$ac_exeext && { 1592 test "$cross_compiling" = yes || 1593 test -x conftest$ac_exeext 1594 }; then : 1595 ac_retval=0 1596else 1597 $as_echo "$as_me: failed program was:" >&5 1598sed 's/^/| /' conftest.$ac_ext >&5 1599 1600 ac_retval=1 1601fi 1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1604 # interfere with the next link command; also delete a directory that is 1605 # left behind by Apple's compiler. We do this before executing the actions. 1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1608 as_fn_set_status $ac_retval 1609 1610} @%:@ ac_fn_c_try_link 1611 1612@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1613@%:@ ------------------------------------------------------- 1614@%:@ Tests whether HEADER exists and can be compiled using the include files in 1615@%:@ INCLUDES, setting the cache variable VAR accordingly. 1616ac_fn_c_check_header_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1620$as_echo_n "checking for $2... " >&6; } 1621if eval \${$3+:} false; then : 1622 $as_echo_n "(cached) " >&6 1623else 1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1625/* end confdefs.h. */ 1626$4 1627@%:@include <$2> 1628_ACEOF 1629if ac_fn_c_try_compile "$LINENO"; then : 1630 eval "$3=yes" 1631else 1632 eval "$3=no" 1633fi 1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1635fi 1636eval ac_res=\$$3 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1638$as_echo "$ac_res" >&6; } 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 1641} @%:@ ac_fn_c_check_header_compile 1642 1643@%:@ ac_fn_c_try_cpp LINENO 1644@%:@ ---------------------- 1645@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1646ac_fn_c_try_cpp () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 if { { ac_try="$ac_cpp conftest.$ac_ext" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1657 ac_status=$? 1658 if test -s conftest.err; then 1659 grep -v '^ *+' conftest.err >conftest.er1 1660 cat conftest.er1 >&5 1661 mv -f conftest.er1 conftest.err 1662 fi 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } > conftest.i && { 1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1666 test ! -s conftest.err 1667 }; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678} @%:@ ac_fn_c_try_cpp 1679 1680@%:@ ac_fn_c_try_run LINENO 1681@%:@ ---------------------- 1682@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1683@%:@ that executables *can* be run. 1684ac_fn_c_try_run () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_link" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>&5 1695 ac_status=$? 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1698 { { case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_try") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; }; }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: program exited with status $ac_status" >&5 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=$ac_status 1715fi 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} @%:@ ac_fn_c_try_run 1721 1722@%:@ ac_fn_c_check_func LINENO FUNC VAR 1723@%:@ ---------------------------------- 1724@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1725ac_fn_c_check_func () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732else 1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1737#define $2 innocuous_$2 1738 1739/* System header to define __stub macros and hopefully few prototypes, 1740 which can conflict with char $2 (); below. 1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1742 <limits.h> exists even on freestanding compilers. */ 1743 1744#ifdef __STDC__ 1745# include <limits.h> 1746#else 1747# include <assert.h> 1748#endif 1749 1750#undef $2 1751 1752/* Override any GCC internal prototype to avoid an error. 1753 Use char because int might match the return type of a GCC 1754 builtin and then its argument prototype would still apply. */ 1755#ifdef __cplusplus 1756extern "C" 1757#endif 1758char $2 (); 1759/* The GNU C library defines this for functions which it implements 1760 to always fail with ENOSYS. Some functions are actually named 1761 something starting with __ and the normal name is an alias. */ 1762#if defined __stub_$2 || defined __stub___$2 1763choke me 1764#endif 1765 1766int 1767main () 1768{ 1769return $2 (); 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774if ac_fn_c_try_link "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext \ 1780 conftest$ac_exeext conftest.$ac_ext 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} @%:@ ac_fn_c_check_func 1788 1789@%:@ ac_fn_cxx_try_compile LINENO 1790@%:@ ---------------------------- 1791@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1792ac_fn_cxx_try_compile () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 rm -f conftest.$ac_objext 1796 if { { ac_try="$ac_compile" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_compile") 2>conftest.err 1804 ac_status=$? 1805 if test -s conftest.err; then 1806 grep -v '^ *+' conftest.err >conftest.er1 1807 cat conftest.er1 >&5 1808 mv -f conftest.er1 conftest.err 1809 fi 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; } && { 1812 test -z "$ac_cxx_werror_flag" || 1813 test ! -s conftest.err 1814 } && test -s conftest.$ac_objext; then : 1815 ac_retval=0 1816else 1817 $as_echo "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} @%:@ ac_fn_cxx_try_compile 1826 1827@%:@ ac_fn_cxx_try_cpp LINENO 1828@%:@ ------------------------ 1829@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1830ac_fn_cxx_try_cpp () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 if { { ac_try="$ac_cpp conftest.$ac_ext" 1834case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1841 ac_status=$? 1842 if test -s conftest.err; then 1843 grep -v '^ *+' conftest.err >conftest.er1 1844 cat conftest.er1 >&5 1845 mv -f conftest.er1 conftest.err 1846 fi 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; } > conftest.i && { 1849 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1850 test ! -s conftest.err 1851 }; then : 1852 ac_retval=0 1853else 1854 $as_echo "$as_me: failed program was:" >&5 1855sed 's/^/| /' conftest.$ac_ext >&5 1856 1857 ac_retval=1 1858fi 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 as_fn_set_status $ac_retval 1861 1862} @%:@ ac_fn_cxx_try_cpp 1863 1864@%:@ ac_fn_cxx_try_link LINENO 1865@%:@ ------------------------- 1866@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1867ac_fn_cxx_try_link () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 rm -f conftest.$ac_objext conftest$ac_exeext 1871 if { { ac_try="$ac_link" 1872case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875esac 1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877$as_echo "$ac_try_echo"; } >&5 1878 (eval "$ac_link") 2>conftest.err 1879 ac_status=$? 1880 if test -s conftest.err; then 1881 grep -v '^ *+' conftest.err >conftest.er1 1882 cat conftest.er1 >&5 1883 mv -f conftest.er1 conftest.err 1884 fi 1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; } && { 1887 test -z "$ac_cxx_werror_flag" || 1888 test ! -s conftest.err 1889 } && test -s conftest$ac_exeext && { 1890 test "$cross_compiling" = yes || 1891 test -x conftest$ac_exeext 1892 }; then : 1893 ac_retval=0 1894else 1895 $as_echo "$as_me: failed program was:" >&5 1896sed 's/^/| /' conftest.$ac_ext >&5 1897 1898 ac_retval=1 1899fi 1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1902 # interfere with the next link command; also delete a directory that is 1903 # left behind by Apple's compiler. We do this before executing the actions. 1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 as_fn_set_status $ac_retval 1907 1908} @%:@ ac_fn_cxx_try_link 1909cat >config.log <<_ACEOF 1910This file contains any messages produced by compilers while 1911running configure, to aid debugging if configure makes a mistake. 1912 1913It was created by dia2code $as_me 1.0.0, which was 1914generated by GNU Autoconf 2.69. Invocation command line was 1915 1916 $ $0 $@ 1917 1918_ACEOF 1919exec 5>>config.log 1920{ 1921cat <<_ASUNAME 1922## --------- ## 1923## Platform. ## 1924## --------- ## 1925 1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1927uname -m = `(uname -m) 2>/dev/null || echo unknown` 1928uname -r = `(uname -r) 2>/dev/null || echo unknown` 1929uname -s = `(uname -s) 2>/dev/null || echo unknown` 1930uname -v = `(uname -v) 2>/dev/null || echo unknown` 1931 1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1933/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1934 1935/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1936/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1938/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1939/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1940/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1941/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1942 1943_ASUNAME 1944 1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1946for as_dir in $PATH 1947do 1948 IFS=$as_save_IFS 1949 test -z "$as_dir" && as_dir=. 1950 $as_echo "PATH: $as_dir" 1951 done 1952IFS=$as_save_IFS 1953 1954} >&5 1955 1956cat >&5 <<_ACEOF 1957 1958 1959## ----------- ## 1960## Core tests. ## 1961## ----------- ## 1962 1963_ACEOF 1964 1965 1966# Keep a trace of the command line. 1967# Strip out --no-create and --no-recursion so they do not pile up. 1968# Strip out --silent because we don't want to record it for future runs. 1969# Also quote any args containing shell meta-characters. 1970# Make two passes to allow for proper duplicate-argument suppression. 1971ac_configure_args= 1972ac_configure_args0= 1973ac_configure_args1= 1974ac_must_keep_next=false 1975for ac_pass in 1 2 1976do 1977 for ac_arg 1978 do 1979 case $ac_arg in 1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1982 | -silent | --silent | --silen | --sile | --sil) 1983 continue ;; 1984 *\'*) 1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1986 esac 1987 case $ac_pass in 1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1989 2) 1990 as_fn_append ac_configure_args1 " '$ac_arg'" 1991 if test $ac_must_keep_next = true; then 1992 ac_must_keep_next=false # Got value, back to normal. 1993 else 1994 case $ac_arg in 1995 *=* | --config-cache | -C | -disable-* | --disable-* \ 1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1998 | -with-* | --with-* | -without-* | --without-* | --x) 1999 case "$ac_configure_args0 " in 2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2001 esac 2002 ;; 2003 -* ) ac_must_keep_next=true ;; 2004 esac 2005 fi 2006 as_fn_append ac_configure_args " '$ac_arg'" 2007 ;; 2008 esac 2009 done 2010done 2011{ ac_configure_args0=; unset ac_configure_args0;} 2012{ ac_configure_args1=; unset ac_configure_args1;} 2013 2014# When interrupted or exit'd, cleanup temporary files, and complete 2015# config.log. We remove comments because anyway the quotes in there 2016# would cause problems or look ugly. 2017# WARNING: Use '\'' to represent an apostrophe within the trap. 2018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2019trap 'exit_status=$? 2020 # Save into config.log some information that might help in debugging. 2021 { 2022 echo 2023 2024 $as_echo "## ---------------- ## 2025## Cache variables. ## 2026## ---------------- ##" 2027 echo 2028 # The following way of writing the cache mishandles newlines in values, 2029( 2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2031 eval ac_val=\$$ac_var 2032 case $ac_val in #( 2033 *${as_nl}*) 2034 case $ac_var in #( 2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2037 esac 2038 case $ac_var in #( 2039 _ | IFS | as_nl) ;; #( 2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2041 *) { eval $ac_var=; unset $ac_var;} ;; 2042 esac ;; 2043 esac 2044 done 2045 (set) 2>&1 | 2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2047 *${as_nl}ac_space=\ *) 2048 sed -n \ 2049 "s/'\''/'\''\\\\'\'''\''/g; 2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2051 ;; #( 2052 *) 2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2054 ;; 2055 esac | 2056 sort 2057) 2058 echo 2059 2060 $as_echo "## ----------------- ## 2061## Output variables. ## 2062## ----------------- ##" 2063 echo 2064 for ac_var in $ac_subst_vars 2065 do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in 2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2069 esac 2070 $as_echo "$ac_var='\''$ac_val'\''" 2071 done | sort 2072 echo 2073 2074 if test -n "$ac_subst_files"; then 2075 $as_echo "## ------------------- ## 2076## File substitutions. ## 2077## ------------------- ##" 2078 echo 2079 for ac_var in $ac_subst_files 2080 do 2081 eval ac_val=\$$ac_var 2082 case $ac_val in 2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2084 esac 2085 $as_echo "$ac_var='\''$ac_val'\''" 2086 done | sort 2087 echo 2088 fi 2089 2090 if test -s confdefs.h; then 2091 $as_echo "## ----------- ## 2092## confdefs.h. ## 2093## ----------- ##" 2094 echo 2095 cat confdefs.h 2096 echo 2097 fi 2098 test "$ac_signal" != 0 && 2099 $as_echo "$as_me: caught signal $ac_signal" 2100 $as_echo "$as_me: exit $exit_status" 2101 } >&5 2102 rm -f core *.core core.conftest.* && 2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2104 exit $exit_status 2105' 0 2106for ac_signal in 1 2 13 15; do 2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2108done 2109ac_signal=0 2110 2111# confdefs.h avoids OS command line length limits that DEFS can exceed. 2112rm -f -r conftest* confdefs.h 2113 2114$as_echo "/* confdefs.h */" > confdefs.h 2115 2116# Predefined preprocessor variables. 2117 2118cat >>confdefs.h <<_ACEOF 2119@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2128_ACEOF 2129 2130cat >>confdefs.h <<_ACEOF 2131@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2132_ACEOF 2133 2134cat >>confdefs.h <<_ACEOF 2135@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2136_ACEOF 2137 2138cat >>confdefs.h <<_ACEOF 2139@%:@define PACKAGE_URL "$PACKAGE_URL" 2140_ACEOF 2141 2142 2143# Let the site file select an alternate cache file if it wants to. 2144# Prefer an explicitly selected file to automatically selected ones. 2145ac_site_file1=NONE 2146ac_site_file2=NONE 2147if test -n "$CONFIG_SITE"; then 2148 # We do not want a PATH search for config.site. 2149 case $CONFIG_SITE in @%:@(( 2150 -*) ac_site_file1=./$CONFIG_SITE;; 2151 */*) ac_site_file1=$CONFIG_SITE;; 2152 *) ac_site_file1=./$CONFIG_SITE;; 2153 esac 2154elif test "x$prefix" != xNONE; then 2155 ac_site_file1=$prefix/share/config.site 2156 ac_site_file2=$prefix/etc/config.site 2157else 2158 ac_site_file1=$ac_default_prefix/share/config.site 2159 ac_site_file2=$ac_default_prefix/etc/config.site 2160fi 2161for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2162do 2163 test "x$ac_site_file" = xNONE && continue 2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2166$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2167 sed 's/^/| /' "$ac_site_file" >&5 2168 . "$ac_site_file" \ 2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2171as_fn_error $? "failed to load site script $ac_site_file 2172See \`config.log' for more details" "$LINENO" 5; } 2173 fi 2174done 2175 2176if test -r "$cache_file"; then 2177 # Some versions of bash will fail to source /dev/null (special files 2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2181$as_echo "$as_me: loading cache $cache_file" >&6;} 2182 case $cache_file in 2183 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2184 *) . "./$cache_file";; 2185 esac 2186 fi 2187else 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2189$as_echo "$as_me: creating cache $cache_file" >&6;} 2190 >$cache_file 2191fi 2192 2193# Check that the precious variables saved in the cache have kept the same 2194# value. 2195ac_cache_corrupted=false 2196for ac_var in $ac_precious_vars; do 2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2198 eval ac_new_set=\$ac_env_${ac_var}_set 2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2200 eval ac_new_val=\$ac_env_${ac_var}_value 2201 case $ac_old_set,$ac_new_set in 2202 set,) 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2205 ac_cache_corrupted=: ;; 2206 ,set) 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2209 ac_cache_corrupted=: ;; 2210 ,);; 2211 *) 2212 if test "x$ac_old_val" != "x$ac_new_val"; then 2213 # differences in whitespace do not lead to failure. 2214 ac_old_val_w=`echo x $ac_old_val` 2215 ac_new_val_w=`echo x $ac_new_val` 2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2219 ac_cache_corrupted=: 2220 else 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2223 eval $ac_var=\$ac_old_val 2224 fi 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2226$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2228$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2229 fi;; 2230 esac 2231 # Pass precious variables to config.status. 2232 if test "$ac_new_set" = set; then 2233 case $ac_new_val in 2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2235 *) ac_arg=$ac_var=$ac_new_val ;; 2236 esac 2237 case " $ac_configure_args " in 2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2240 esac 2241 fi 2242done 2243if $ac_cache_corrupted; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2249fi 2250## -------------------- ## 2251## Main body of script. ## 2252## -------------------- ## 2253 2254ac_ext=c 2255ac_cpp='$CPP $CPPFLAGS' 2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2258ac_compiler_gnu=$ac_cv_c_compiler_gnu 2259 2260 2261 2262am__api_version='1.15' 2263 2264ac_aux_dir= 2265for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; 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 2279done 2280if test -z "$ac_aux_dir"; then 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2282fi 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. 2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2291 2292 2293# Find a good install program. We prefer a C program (faster), 2294# so one script is as good as another. But avoid the broken or 2295# incompatible versions: 2296# SysV /etc/install, /usr/sbin/install 2297# SunOS /usr/etc/install 2298# IRIX /sbin/install 2299# AIX /bin/install 2300# AmigaOS /C/install, which installs bootblocks on floppy discs 2301# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2302# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2303# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2304# OS/2's system install, which has a completely different semantic 2305# ./install, which can be erroneously created by make from ./install.sh. 2306# Reject install programs that cannot install multiple files. 2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2308$as_echo_n "checking for a BSD-compatible install... " >&6; } 2309if test -z "$INSTALL"; then 2310if ${ac_cv_path_install+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2314for as_dir in $PATH 2315do 2316 IFS=$as_save_IFS 2317 test -z "$as_dir" && as_dir=. 2318 # Account for people who put trailing slashes in PATH elements. 2319case $as_dir/ in @%:@(( 2320 ./ | .// | /[cC]/* | \ 2321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2323 /usr/ucb/* ) ;; 2324 *) 2325 # OSF1 and SCO ODT 3.0 have their own names for install. 2326 # Don't use installbsd from OSF since it installs stuff as root 2327 # by default. 2328 for ac_prog in ginstall scoinst install; do 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2331 if test $ac_prog = install && 2332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2333 # AIX install. It has an incompatible calling convention. 2334 : 2335 elif test $ac_prog = install && 2336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2337 # program-specific install script used by HP pwplus--don't use. 2338 : 2339 else 2340 rm -rf conftest.one conftest.two conftest.dir 2341 echo one > conftest.one 2342 echo two > conftest.two 2343 mkdir conftest.dir 2344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2345 test -s conftest.one && test -s conftest.two && 2346 test -s conftest.dir/conftest.one && 2347 test -s conftest.dir/conftest.two 2348 then 2349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2350 break 3 2351 fi 2352 fi 2353 fi 2354 done 2355 done 2356 ;; 2357esac 2358 2359 done 2360IFS=$as_save_IFS 2361 2362rm -rf conftest.one conftest.two conftest.dir 2363 2364fi 2365 if test "${ac_cv_path_install+set}" = set; then 2366 INSTALL=$ac_cv_path_install 2367 else 2368 # As a last resort, use the slow shell script. Don't cache a 2369 # value for INSTALL within a source directory, because that will 2370 # break other packages using the cache if that directory is 2371 # removed, or if the value is a relative name. 2372 INSTALL=$ac_install_sh 2373 fi 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2376$as_echo "$INSTALL" >&6; } 2377 2378# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2379# It thinks the first close brace ends the variable substitution. 2380test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2381 2382test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2383 2384test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2385 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2387$as_echo_n "checking whether build environment is sane... " >&6; } 2388# Reject unsafe characters in $srcdir or the absolute working directory 2389# name. Accept space and tab only in the latter. 2390am_lf=' 2391' 2392case `pwd` in 2393 *[\\\"\#\$\&\'\`$am_lf]*) 2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2395esac 2396case $srcdir in 2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2399esac 2400 2401# Do 'set' in a subshell so we don't clobber the current shell's 2402# arguments. Must try -L first in case configure is actually a 2403# symlink; some systems play weird games with the mod time of symlinks 2404# (eg FreeBSD returns the mod time of the symlink's containing 2405# directory). 2406if ( 2407 am_has_slept=no 2408 for am_try in 1 2; do 2409 echo "timestamp, slept: $am_has_slept" > conftest.file 2410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2411 if test "$*" = "X"; then 2412 # -L didn't work. 2413 set X `ls -t "$srcdir/configure" conftest.file` 2414 fi 2415 if test "$*" != "X $srcdir/configure conftest.file" \ 2416 && test "$*" != "X conftest.file $srcdir/configure"; then 2417 2418 # If neither matched, then we have a broken ls. This can happen 2419 # if, for instance, CONFIG_SHELL is bash and it inherits a 2420 # broken ls alias from the environment. This has actually 2421 # happened. Such a system could not be considered "sane". 2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2423 alias in your environment" "$LINENO" 5 2424 fi 2425 if test "$2" = conftest.file || test $am_try -eq 2; then 2426 break 2427 fi 2428 # Just in case. 2429 sleep 1 2430 am_has_slept=yes 2431 done 2432 test "$2" = conftest.file 2433 ) 2434then 2435 # Ok. 2436 : 2437else 2438 as_fn_error $? "newly created file is older than distributed files! 2439Check your system clock" "$LINENO" 5 2440fi 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2442$as_echo "yes" >&6; } 2443# If we didn't sleep, we still need to ensure time stamps of config.status and 2444# generated files are strictly newer. 2445am_sleep_pid= 2446if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2447 ( sleep 1 ) & 2448 am_sleep_pid=$! 2449fi 2450 2451rm -f conftest.file 2452 2453test "$program_prefix" != NONE && 2454 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2455# Use a double $ so make ignores it. 2456test "$program_suffix" != NONE && 2457 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2458# Double any \ or $. 2459# By default was `s,x,x', remove it if useless. 2460ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2461program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2462 2463# Expand $ac_aux_dir to an absolute path. 2464am_aux_dir=`cd "$ac_aux_dir" && pwd` 2465 2466if test x"${MISSING+set}" != xset; then 2467 case $am_aux_dir in 2468 *\ * | *\ *) 2469 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2470 *) 2471 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2472 esac 2473fi 2474# Use eval to expand $SHELL 2475if eval "$MISSING --is-lightweight"; then 2476 am_missing_run="$MISSING " 2477else 2478 am_missing_run= 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2480$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2481fi 2482 2483if test x"${install_sh+set}" != xset; then 2484 case $am_aux_dir in 2485 *\ * | *\ *) 2486 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2487 *) 2488 install_sh="\${SHELL} $am_aux_dir/install-sh" 2489 esac 2490fi 2491 2492# Installed binaries are usually stripped using 'strip' when the user 2493# run "make install-strip". However 'strip' might not be the right 2494# tool to use in cross-compilation environments, therefore Automake 2495# will honor the 'STRIP' environment variable to overrule this program. 2496if test "$cross_compiling" != no; then 2497 if test -n "$ac_tool_prefix"; then 2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2499set dummy ${ac_tool_prefix}strip; ac_word=$2 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2501$as_echo_n "checking for $ac_word... " >&6; } 2502if ${ac_cv_prog_STRIP+:} false; then : 2503 $as_echo_n "(cached) " >&6 2504else 2505 if test -n "$STRIP"; then 2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2507else 2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2509for as_dir in $PATH 2510do 2511 IFS=$as_save_IFS 2512 test -z "$as_dir" && as_dir=. 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2517 break 2 2518 fi 2519done 2520 done 2521IFS=$as_save_IFS 2522 2523fi 2524fi 2525STRIP=$ac_cv_prog_STRIP 2526if test -n "$STRIP"; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2528$as_echo "$STRIP" >&6; } 2529else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2531$as_echo "no" >&6; } 2532fi 2533 2534 2535fi 2536if test -z "$ac_cv_prog_STRIP"; then 2537 ac_ct_STRIP=$STRIP 2538 # Extract the first word of "strip", so it can be a program name with args. 2539set dummy strip; ac_word=$2 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2541$as_echo_n "checking for $ac_word... " >&6; } 2542if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 if test -n "$ac_ct_STRIP"; then 2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2547else 2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2555 ac_cv_prog_ac_ct_STRIP="strip" 2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2557 break 2 2558 fi 2559done 2560 done 2561IFS=$as_save_IFS 2562 2563fi 2564fi 2565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2566if test -n "$ac_ct_STRIP"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2568$as_echo "$ac_ct_STRIP" >&6; } 2569else 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2571$as_echo "no" >&6; } 2572fi 2573 2574 if test "x$ac_ct_STRIP" = x; then 2575 STRIP=":" 2576 else 2577 case $cross_compiling:$ac_tool_warned in 2578yes:) 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2581ac_tool_warned=yes ;; 2582esac 2583 STRIP=$ac_ct_STRIP 2584 fi 2585else 2586 STRIP="$ac_cv_prog_STRIP" 2587fi 2588 2589fi 2590INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2591 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2593$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2594if test -z "$MKDIR_P"; then 2595 if ${ac_cv_path_mkdir+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 for ac_prog in mkdir gmkdir; do 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2606 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2607 'mkdir (GNU coreutils) '* | \ 2608 'mkdir (coreutils) '* | \ 2609 'mkdir (fileutils) '4.1*) 2610 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2611 break 3;; 2612 esac 2613 done 2614 done 2615 done 2616IFS=$as_save_IFS 2617 2618fi 2619 2620 test -d ./--version && rmdir ./--version 2621 if test "${ac_cv_path_mkdir+set}" = set; then 2622 MKDIR_P="$ac_cv_path_mkdir -p" 2623 else 2624 # As a last resort, use the slow shell script. Don't cache a 2625 # value for MKDIR_P within a source directory, because that will 2626 # break other packages using the cache if that directory is 2627 # removed, or if the value is a relative name. 2628 MKDIR_P="$ac_install_sh -d" 2629 fi 2630fi 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2632$as_echo "$MKDIR_P" >&6; } 2633 2634for ac_prog in gawk mawk nawk awk 2635do 2636 # Extract the first word of "$ac_prog", so it can be a program name with args. 2637set dummy $ac_prog; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if ${ac_cv_prog_AWK+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$AWK"; then 2644 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_AWK="$ac_prog" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663AWK=$ac_cv_prog_AWK 2664if test -n "$AWK"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2666$as_echo "$AWK" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 2673 test -n "$AWK" && break 2674done 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2677$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2678set x ${MAKE-make} 2679ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2680if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 cat >conftest.make <<\_ACEOF 2684SHELL = /bin/sh 2685all: 2686 @echo '@@@%%%=$(MAKE)=@@@%%%' 2687_ACEOF 2688# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2689case `${MAKE-make} -f conftest.make 2>/dev/null` in 2690 *@@@%%%=?*=@@@%%%*) 2691 eval ac_cv_prog_make_${ac_make}_set=yes;; 2692 *) 2693 eval ac_cv_prog_make_${ac_make}_set=no;; 2694esac 2695rm -f conftest.make 2696fi 2697if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2699$as_echo "yes" >&6; } 2700 SET_MAKE= 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704 SET_MAKE="MAKE=${MAKE-make}" 2705fi 2706 2707rm -rf .tst 2>/dev/null 2708mkdir .tst 2>/dev/null 2709if test -d .tst; then 2710 am__leading_dot=. 2711else 2712 am__leading_dot=_ 2713fi 2714rmdir .tst 2>/dev/null 2715 2716@%:@ Check whether --enable-silent-rules was given. 2717if test "${enable_silent_rules+set}" = set; then : 2718 enableval=$enable_silent_rules; 2719fi 2720 2721case $enable_silent_rules in @%:@ ((( 2722 yes) AM_DEFAULT_VERBOSITY=0;; 2723 no) AM_DEFAULT_VERBOSITY=1;; 2724 *) AM_DEFAULT_VERBOSITY=1;; 2725esac 2726am_make=${MAKE-make} 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2728$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2729if ${am_cv_make_support_nested_variables+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 if $as_echo 'TRUE=$(BAR$(V)) 2733BAR0=false 2734BAR1=true 2735V=1 2736am__doit: 2737 @$(TRUE) 2738.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2739 am_cv_make_support_nested_variables=yes 2740else 2741 am_cv_make_support_nested_variables=no 2742fi 2743fi 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2745$as_echo "$am_cv_make_support_nested_variables" >&6; } 2746if test $am_cv_make_support_nested_variables = yes; then 2747 AM_V='$(V)' 2748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2749else 2750 AM_V=$AM_DEFAULT_VERBOSITY 2751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2752fi 2753AM_BACKSLASH='\' 2754 2755if test "`cd $srcdir && pwd`" != "`pwd`"; then 2756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2757 # is not polluted with repeated "-I." 2758 am__isrc=' -I$(srcdir)' 2759 # test to see if srcdir already configured 2760 if test -f $srcdir/config.status; then 2761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2762 fi 2763fi 2764 2765# test whether we have cygpath 2766if test -z "$CYGPATH_W"; then 2767 if (cygpath --version) >/dev/null 2>/dev/null; then 2768 CYGPATH_W='cygpath -w' 2769 else 2770 CYGPATH_W=echo 2771 fi 2772fi 2773 2774 2775# Define the identity of the package. 2776 PACKAGE='dia2code' 2777 VERSION='1.0.0' 2778 2779 2780cat >>confdefs.h <<_ACEOF 2781@%:@define PACKAGE "$PACKAGE" 2782_ACEOF 2783 2784 2785cat >>confdefs.h <<_ACEOF 2786@%:@define VERSION "$VERSION" 2787_ACEOF 2788 2789# Some tools Automake needs. 2790 2791ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2792 2793 2794AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2795 2796 2797AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2798 2799 2800AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2801 2802 2803MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2804 2805# For better backward compatibility. To be removed once Automake 1.9.x 2806# dies out for good. For more background, see: 2807# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2808# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2809mkdir_p='$(MKDIR_P)' 2810 2811# We need awk for the "check" target (and possibly the TAP driver). The 2812# system "awk" is bad on some platforms. 2813# Always define AMTAR for backward compatibility. Yes, it's still used 2814# in the wild :-( We should find a proper way to deprecate it ... 2815AMTAR='$${TAR-tar}' 2816 2817 2818# We'll loop over all known methods to create a tar archive until one works. 2819_am_tools='gnutar pax cpio none' 2820 2821am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2822 2823 2824 2825 2826 2827 2828# POSIX will say in a future version that running "rm -f" with no argument 2829# is OK; and we want to be able to make that assumption in our Makefile 2830# recipes. So use an aggressive probe to check that the usage we want is 2831# actually supported "in the wild" to an acceptable degree. 2832# See automake bug#10828. 2833# To make any issue more visible, cause the running configure to be aborted 2834# by default if the 'rm' program in use doesn't match our expectations; the 2835# user can still override this though. 2836if rm -f && rm -fr && rm -rf; then : OK; else 2837 cat >&2 <<'END' 2838Oops! 2839 2840Your 'rm' program seems unable to run without file operands specified 2841on the command line, even when the '-f' option is present. This is contrary 2842to the behaviour of most rm programs out there, and not conforming with 2843the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2844 2845Please tell bug-automake@gnu.org about your system, including the value 2846of your $PATH and any error possibly output before this message. This 2847can help us improve future automake versions. 2848 2849END 2850 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2851 echo 'Configuration will proceed anyway, since you have set the' >&2 2852 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2853 echo >&2 2854 else 2855 cat >&2 <<'END' 2856Aborting the configuration process, to ensure you take notice of the issue. 2857 2858You can download and install GNU coreutils to get an 'rm' implementation 2859that behaves properly: <http://www.gnu.org/software/coreutils/>. 2860 2861If you want to complete the configuration process using your problematic 2862'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2863to "yes", and re-run configure. 2864 2865END 2866 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2867 fi 2868fi 2869 2870 2871 2872case `pwd` in 2873 *\ * | *\ *) 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2875$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2876esac 2877 2878 2879 2880macro_version='2.4.6' 2881macro_revision='2.4.6' 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895ltmain=$ac_aux_dir/ltmain.sh 2896 2897# Make sure we can run config.sub. 2898$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2899 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2900 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2902$as_echo_n "checking build system type... " >&6; } 2903if ${ac_cv_build+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 ac_build_alias=$build_alias 2907test "x$ac_build_alias" = x && 2908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2909test "x$ac_build_alias" = x && 2910 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2911ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2913 2914fi 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2916$as_echo "$ac_cv_build" >&6; } 2917case $ac_cv_build in 2918*-*-*) ;; 2919*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2920esac 2921build=$ac_cv_build 2922ac_save_IFS=$IFS; IFS='-' 2923set x $ac_cv_build 2924shift 2925build_cpu=$1 2926build_vendor=$2 2927shift; shift 2928# Remember, the first character of IFS is used to create $*, 2929# except with old shells: 2930build_os=$* 2931IFS=$ac_save_IFS 2932case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2933 2934 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2936$as_echo_n "checking host system type... " >&6; } 2937if ${ac_cv_host+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 if test "x$host_alias" = x; then 2941 ac_cv_host=$ac_cv_build 2942else 2943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2945fi 2946 2947fi 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2949$as_echo "$ac_cv_host" >&6; } 2950case $ac_cv_host in 2951*-*-*) ;; 2952*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2953esac 2954host=$ac_cv_host 2955ac_save_IFS=$IFS; IFS='-' 2956set x $ac_cv_host 2957shift 2958host_cpu=$1 2959host_vendor=$2 2960shift; shift 2961# Remember, the first character of IFS is used to create $*, 2962# except with old shells: 2963host_os=$* 2964IFS=$ac_save_IFS 2965case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2966 2967 2968# Backslashify metacharacters that are still active within 2969# double-quoted strings. 2970sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2971 2972# Same as above, but do not quote variable references. 2973double_quote_subst='s/\(["`\\]\)/\\\1/g' 2974 2975# Sed substitution to delay expansion of an escaped shell variable in a 2976# double_quote_subst'ed string. 2977delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2978 2979# Sed substitution to delay expansion of an escaped single quote. 2980delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2981 2982# Sed substitution to avoid accidental globbing in evaled expressions 2983no_glob_subst='s/\*/\\\*/g' 2984 2985ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2986ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2987ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2988 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2990$as_echo_n "checking how to print strings... " >&6; } 2991# Test print first, because it will be a builtin if present. 2992if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2993 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2994 ECHO='print -r --' 2995elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2996 ECHO='printf %s\n' 2997else 2998 # Use this function as a fallback that always works. 2999 func_fallback_echo () 3000 { 3001 eval 'cat <<_LTECHO_EOF 3002$1 3003_LTECHO_EOF' 3004 } 3005 ECHO='func_fallback_echo' 3006fi 3007 3008# func_echo_all arg... 3009# Invoke $ECHO with all args, space-separated. 3010func_echo_all () 3011{ 3012 $ECHO "" 3013} 3014 3015case $ECHO in 3016 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3017$as_echo "printf" >&6; } ;; 3018 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3019$as_echo "print -r" >&6; } ;; 3020 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3021$as_echo "cat" >&6; } ;; 3022esac 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037DEPDIR="${am__leading_dot}deps" 3038 3039ac_config_commands="$ac_config_commands depfiles" 3040 3041 3042am_make=${MAKE-make} 3043cat > confinc << 'END' 3044am__doit: 3045 @echo this is the am__doit target 3046.PHONY: am__doit 3047END 3048# If we don't find an include directive, just comment out the code. 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3050$as_echo_n "checking for style of include used by $am_make... " >&6; } 3051am__include="#" 3052am__quote= 3053_am_result=none 3054# First try GNU make style include. 3055echo "include confinc" > confmf 3056# Ignore all kinds of additional output from 'make'. 3057case `$am_make -s -f confmf 2> /dev/null` in #( 3058*the\ am__doit\ target*) 3059 am__include=include 3060 am__quote= 3061 _am_result=GNU 3062 ;; 3063esac 3064# Now try BSD make style include. 3065if test "$am__include" = "#"; then 3066 echo '.include "confinc"' > confmf 3067 case `$am_make -s -f confmf 2> /dev/null` in #( 3068 *the\ am__doit\ target*) 3069 am__include=.include 3070 am__quote="\"" 3071 _am_result=BSD 3072 ;; 3073 esac 3074fi 3075 3076 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3078$as_echo "$_am_result" >&6; } 3079rm -f confinc confmf 3080 3081@%:@ Check whether --enable-dependency-tracking was given. 3082if test "${enable_dependency_tracking+set}" = set; then : 3083 enableval=$enable_dependency_tracking; 3084fi 3085 3086if test "x$enable_dependency_tracking" != xno; then 3087 am_depcomp="$ac_aux_dir/depcomp" 3088 AMDEPBACKSLASH='\' 3089 am__nodep='_no' 3090fi 3091 if test "x$enable_dependency_tracking" != xno; then 3092 AMDEP_TRUE= 3093 AMDEP_FALSE='#' 3094else 3095 AMDEP_TRUE='#' 3096 AMDEP_FALSE= 3097fi 3098 3099 3100ac_ext=c 3101ac_cpp='$CPP $CPPFLAGS' 3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3104ac_compiler_gnu=$ac_cv_c_compiler_gnu 3105if test -n "$ac_tool_prefix"; then 3106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3107set dummy ${ac_tool_prefix}gcc; ac_word=$2 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3109$as_echo_n "checking for $ac_word... " >&6; } 3110if ${ac_cv_prog_CC+:} false; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 if test -n "$CC"; then 3114 ac_cv_prog_CC="$CC" # Let the user override the test. 3115else 3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117for as_dir in $PATH 3118do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 for ac_exec_ext in '' $ac_executable_extensions; do 3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3123 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3125 break 2 3126 fi 3127done 3128 done 3129IFS=$as_save_IFS 3130 3131fi 3132fi 3133CC=$ac_cv_prog_CC 3134if test -n "$CC"; then 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3136$as_echo "$CC" >&6; } 3137else 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139$as_echo "no" >&6; } 3140fi 3141 3142 3143fi 3144if test -z "$ac_cv_prog_CC"; then 3145 ac_ct_CC=$CC 3146 # Extract the first word of "gcc", so it can be a program name with args. 3147set dummy gcc; ac_word=$2 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3149$as_echo_n "checking for $ac_word... " >&6; } 3150if ${ac_cv_prog_ac_ct_CC+:} false; then : 3151 $as_echo_n "(cached) " >&6 3152else 3153 if test -n "$ac_ct_CC"; then 3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3155else 3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3157for as_dir in $PATH 3158do 3159 IFS=$as_save_IFS 3160 test -z "$as_dir" && as_dir=. 3161 for ac_exec_ext in '' $ac_executable_extensions; do 3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3163 ac_cv_prog_ac_ct_CC="gcc" 3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167done 3168 done 3169IFS=$as_save_IFS 3170 3171fi 3172fi 3173ac_ct_CC=$ac_cv_prog_ac_ct_CC 3174if test -n "$ac_ct_CC"; then 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3176$as_echo "$ac_ct_CC" >&6; } 3177else 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3179$as_echo "no" >&6; } 3180fi 3181 3182 if test "x$ac_ct_CC" = x; then 3183 CC="" 3184 else 3185 case $cross_compiling:$ac_tool_warned in 3186yes:) 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3189ac_tool_warned=yes ;; 3190esac 3191 CC=$ac_ct_CC 3192 fi 3193else 3194 CC="$ac_cv_prog_CC" 3195fi 3196 3197if test -z "$CC"; then 3198 if test -n "$ac_tool_prefix"; then 3199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3200set dummy ${ac_tool_prefix}cc; ac_word=$2 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3202$as_echo_n "checking for $ac_word... " >&6; } 3203if ${ac_cv_prog_CC+:} false; then : 3204 $as_echo_n "(cached) " >&6 3205else 3206 if test -n "$CC"; then 3207 ac_cv_prog_CC="$CC" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_CC="${ac_tool_prefix}cc" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236 fi 3237fi 3238if test -z "$CC"; then 3239 # Extract the first word of "cc", so it can be a program name with args. 3240set dummy cc; ac_word=$2 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3242$as_echo_n "checking for $ac_word... " >&6; } 3243if ${ac_cv_prog_CC+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 if test -n "$CC"; then 3247 ac_cv_prog_CC="$CC" # Let the user override the test. 3248else 3249 ac_prog_rejected=no 3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3251for as_dir in $PATH 3252do 3253 IFS=$as_save_IFS 3254 test -z "$as_dir" && as_dir=. 3255 for ac_exec_ext in '' $ac_executable_extensions; do 3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3258 ac_prog_rejected=yes 3259 continue 3260 fi 3261 ac_cv_prog_CC="cc" 3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265done 3266 done 3267IFS=$as_save_IFS 3268 3269if test $ac_prog_rejected = yes; then 3270 # We found a bogon in the path, so make sure we never use it. 3271 set dummy $ac_cv_prog_CC 3272 shift 3273 if test $@%:@ != 0; then 3274 # We chose a different compiler from the bogus one. 3275 # However, it has the same basename, so the bogon will be chosen 3276 # first if we set CC to just the basename; use the full file name. 3277 shift 3278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3279 fi 3280fi 3281fi 3282fi 3283CC=$ac_cv_prog_CC 3284if test -n "$CC"; then 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3286$as_echo "$CC" >&6; } 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3289$as_echo "no" >&6; } 3290fi 3291 3292 3293fi 3294if test -z "$CC"; then 3295 if test -n "$ac_tool_prefix"; then 3296 for ac_prog in cl.exe 3297 do 3298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3299set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3301$as_echo_n "checking for $ac_word... " >&6; } 3302if ${ac_cv_prog_CC+:} false; then : 3303 $as_echo_n "(cached) " >&6 3304else 3305 if test -n "$CC"; then 3306 ac_cv_prog_CC="$CC" # Let the user override the test. 3307else 3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3309for as_dir in $PATH 3310do 3311 IFS=$as_save_IFS 3312 test -z "$as_dir" && as_dir=. 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319done 3320 done 3321IFS=$as_save_IFS 3322 3323fi 3324fi 3325CC=$ac_cv_prog_CC 3326if test -n "$CC"; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3328$as_echo "$CC" >&6; } 3329else 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331$as_echo "no" >&6; } 3332fi 3333 3334 3335 test -n "$CC" && break 3336 done 3337fi 3338if test -z "$CC"; then 3339 ac_ct_CC=$CC 3340 for ac_prog in cl.exe 3341do 3342 # Extract the first word of "$ac_prog", so it can be a program name with args. 3343set dummy $ac_prog; ac_word=$2 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3345$as_echo_n "checking for $ac_word... " >&6; } 3346if ${ac_cv_prog_ac_ct_CC+:} false; then : 3347 $as_echo_n "(cached) " >&6 3348else 3349 if test -n "$ac_ct_CC"; then 3350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_ac_ct_CC="$ac_prog" 3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi 3368fi 3369ac_ct_CC=$ac_cv_prog_ac_ct_CC 3370if test -n "$ac_ct_CC"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3372$as_echo "$ac_ct_CC" >&6; } 3373else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375$as_echo "no" >&6; } 3376fi 3377 3378 3379 test -n "$ac_ct_CC" && break 3380done 3381 3382 if test "x$ac_ct_CC" = x; then 3383 CC="" 3384 else 3385 case $cross_compiling:$ac_tool_warned in 3386yes:) 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3389ac_tool_warned=yes ;; 3390esac 3391 CC=$ac_ct_CC 3392 fi 3393fi 3394 3395fi 3396 3397 3398test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3400as_fn_error $? "no acceptable C compiler found in \$PATH 3401See \`config.log' for more details" "$LINENO" 5; } 3402 3403# Provide some information about the compiler. 3404$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3405set X $ac_compile 3406ac_compiler=$2 3407for ac_option in --version -v -V -qversion; do 3408 { { ac_try="$ac_compiler $ac_option >&5" 3409case "(($ac_try" in 3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3411 *) ac_try_echo=$ac_try;; 3412esac 3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3414$as_echo "$ac_try_echo"; } >&5 3415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3416 ac_status=$? 3417 if test -s conftest.err; then 3418 sed '10a\ 3419... rest of stderr output deleted ... 3420 10q' conftest.err >conftest.er1 3421 cat conftest.er1 >&5 3422 fi 3423 rm -f conftest.er1 conftest.err 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; } 3426done 3427 3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439ac_clean_files_save=$ac_clean_files 3440ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3441# Try to create an executable without -o first, disregard a.out. 3442# It will help us diagnose broken compilers, and finding out an intuition 3443# of exeext. 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3445$as_echo_n "checking whether the C compiler works... " >&6; } 3446ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3447 3448# The possible output files: 3449ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3450 3451ac_rmfiles= 3452for ac_file in $ac_files 3453do 3454 case $ac_file in 3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3456 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3457 esac 3458done 3459rm -f $ac_rmfiles 3460 3461if { { ac_try="$ac_link_default" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_link_default") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; then : 3472 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3473# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3474# in a Makefile. We should not override ac_cv_exeext if it was cached, 3475# so that the user can short-circuit this test for compilers unknown to 3476# Autoconf. 3477for ac_file in $ac_files '' 3478do 3479 test -f "$ac_file" || continue 3480 case $ac_file in 3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3482 ;; 3483 [ab].out ) 3484 # We found the default executable, but exeext='' is most 3485 # certainly right. 3486 break;; 3487 *.* ) 3488 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3489 then :; else 3490 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3491 fi 3492 # We set ac_cv_exeext here because the later test for it is not 3493 # safe: cross compilers may not add the suffix if given an `-o' 3494 # argument, so we may need to know it at that point already. 3495 # Even if this section looks crufty: it has the advantage of 3496 # actually working. 3497 break;; 3498 * ) 3499 break;; 3500 esac 3501done 3502test "$ac_cv_exeext" = no && ac_cv_exeext= 3503 3504else 3505 ac_file='' 3506fi 3507if test -z "$ac_file"; then : 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3509$as_echo "no" >&6; } 3510$as_echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515as_fn_error 77 "C compiler cannot create executables 3516See \`config.log' for more details" "$LINENO" 5; } 3517else 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3519$as_echo "yes" >&6; } 3520fi 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3522$as_echo_n "checking for C compiler default output file name... " >&6; } 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3524$as_echo "$ac_file" >&6; } 3525ac_exeext=$ac_cv_exeext 3526 3527rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3528ac_clean_files=$ac_clean_files_save 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3530$as_echo_n "checking for suffix of executables... " >&6; } 3531if { { ac_try="$ac_link" 3532case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537$as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_link") 2>&5 3539 ac_status=$? 3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3541 test $ac_status = 0; }; then : 3542 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3543# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3544# work properly (i.e., refer to `conftest.exe'), while it won't with 3545# `rm'. 3546for ac_file in conftest.exe conftest conftest.*; do 3547 test -f "$ac_file" || continue 3548 case $ac_file in 3549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3551 break;; 3552 * ) break;; 3553 esac 3554done 3555else 3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3558as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3559See \`config.log' for more details" "$LINENO" 5; } 3560fi 3561rm -f conftest conftest$ac_cv_exeext 3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3563$as_echo "$ac_cv_exeext" >&6; } 3564 3565rm -f conftest.$ac_ext 3566EXEEXT=$ac_cv_exeext 3567ac_exeext=$EXEEXT 3568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570@%:@include <stdio.h> 3571int 3572main () 3573{ 3574FILE *f = fopen ("conftest.out", "w"); 3575 return ferror (f) || fclose (f) != 0; 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581ac_clean_files="$ac_clean_files conftest.out" 3582# Check that the compiler produces executables we can run. If not, either 3583# the compiler is broken, or we cross compile. 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3585$as_echo_n "checking whether we are cross compiling... " >&6; } 3586if test "$cross_compiling" != yes; then 3587 { { ac_try="$ac_link" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_link") 2>&5 3595 ac_status=$? 3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3597 test $ac_status = 0; } 3598 if { ac_try='./conftest$ac_cv_exeext' 3599 { { case "(($ac_try" in 3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3601 *) ac_try_echo=$ac_try;; 3602esac 3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3604$as_echo "$ac_try_echo"; } >&5 3605 (eval "$ac_try") 2>&5 3606 ac_status=$? 3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3608 test $ac_status = 0; }; }; then 3609 cross_compiling=no 3610 else 3611 if test "$cross_compiling" = maybe; then 3612 cross_compiling=yes 3613 else 3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3616as_fn_error $? "cannot run C compiled programs. 3617If you meant to cross compile, use \`--host'. 3618See \`config.log' for more details" "$LINENO" 5; } 3619 fi 3620 fi 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3623$as_echo "$cross_compiling" >&6; } 3624 3625rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3626ac_clean_files=$ac_clean_files_save 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3628$as_echo_n "checking for suffix of object files... " >&6; } 3629if ${ac_cv_objext+:} false; then : 3630 $as_echo_n "(cached) " >&6 3631else 3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3633/* end confdefs.h. */ 3634 3635int 3636main () 3637{ 3638 3639 ; 3640 return 0; 3641} 3642_ACEOF 3643rm -f conftest.o conftest.obj 3644if { { ac_try="$ac_compile" 3645case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648esac 3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3650$as_echo "$ac_try_echo"; } >&5 3651 (eval "$ac_compile") 2>&5 3652 ac_status=$? 3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3654 test $ac_status = 0; }; then : 3655 for ac_file in conftest.o conftest.obj conftest.*; do 3656 test -f "$ac_file" || continue; 3657 case $ac_file in 3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3660 break;; 3661 esac 3662done 3663else 3664 $as_echo "$as_me: failed program was:" >&5 3665sed 's/^/| /' conftest.$ac_ext >&5 3666 3667{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3669as_fn_error $? "cannot compute suffix of object files: cannot compile 3670See \`config.log' for more details" "$LINENO" 5; } 3671fi 3672rm -f conftest.$ac_cv_objext conftest.$ac_ext 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3675$as_echo "$ac_cv_objext" >&6; } 3676OBJEXT=$ac_cv_objext 3677ac_objext=$OBJEXT 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3679$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3680if ${ac_cv_c_compiler_gnu+:} false; then : 3681 $as_echo_n "(cached) " >&6 3682else 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main () 3688{ 3689#ifndef __GNUC__ 3690 choke me 3691#endif 3692 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697if ac_fn_c_try_compile "$LINENO"; then : 3698 ac_compiler_gnu=yes 3699else 3700 ac_compiler_gnu=no 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703ac_cv_c_compiler_gnu=$ac_compiler_gnu 3704 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3707$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3708if test $ac_compiler_gnu = yes; then 3709 GCC=yes 3710else 3711 GCC= 3712fi 3713ac_test_CFLAGS=${CFLAGS+set} 3714ac_save_CFLAGS=$CFLAGS 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3716$as_echo_n "checking whether $CC accepts -g... " >&6; } 3717if ${ac_cv_prog_cc_g+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 ac_save_c_werror_flag=$ac_c_werror_flag 3721 ac_c_werror_flag=yes 3722 ac_cv_prog_cc_g=no 3723 CFLAGS="-g" 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726 3727int 3728main () 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735if ac_fn_c_try_compile "$LINENO"; then : 3736 ac_cv_prog_cc_g=yes 3737else 3738 CFLAGS="" 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741 3742int 3743main () 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO"; then : 3751 3752else 3753 ac_c_werror_flag=$ac_save_c_werror_flag 3754 CFLAGS="-g" 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757 3758int 3759main () 3760{ 3761 3762 ; 3763 return 0; 3764} 3765_ACEOF 3766if ac_fn_c_try_compile "$LINENO"; then : 3767 ac_cv_prog_cc_g=yes 3768fi 3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3770fi 3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3772fi 3773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3774 ac_c_werror_flag=$ac_save_c_werror_flag 3775fi 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3777$as_echo "$ac_cv_prog_cc_g" >&6; } 3778if test "$ac_test_CFLAGS" = set; then 3779 CFLAGS=$ac_save_CFLAGS 3780elif test $ac_cv_prog_cc_g = yes; then 3781 if test "$GCC" = yes; then 3782 CFLAGS="-g -O2" 3783 else 3784 CFLAGS="-g" 3785 fi 3786else 3787 if test "$GCC" = yes; then 3788 CFLAGS="-O2" 3789 else 3790 CFLAGS= 3791 fi 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3794$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3795if ${ac_cv_prog_cc_c89+:} false; then : 3796 $as_echo_n "(cached) " >&6 3797else 3798 ac_cv_prog_cc_c89=no 3799ac_save_CC=$CC 3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802#include <stdarg.h> 3803#include <stdio.h> 3804struct stat; 3805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3806struct buf { int x; }; 3807FILE * (*rcsopen) (struct buf *, struct stat *, int); 3808static char *e (p, i) 3809 char **p; 3810 int i; 3811{ 3812 return p[i]; 3813} 3814static char *f (char * (*g) (char **, int), char **p, ...) 3815{ 3816 char *s; 3817 va_list v; 3818 va_start (v,p); 3819 s = g (p, va_arg (v,int)); 3820 va_end (v); 3821 return s; 3822} 3823 3824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3825 function prototypes and stuff, but not '\xHH' hex character constants. 3826 These don't provoke an error unfortunately, instead are silently treated 3827 as 'x'. The following induces an error, until -std is added to get 3828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3829 array size at least. It's necessary to write '\x00'==0 to get something 3830 that's true only with -std. */ 3831int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3832 3833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3834 inside strings and character constants. */ 3835#define FOO(x) 'x' 3836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3837 3838int test (int i, double x); 3839struct s1 {int (*f) (int a);}; 3840struct s2 {int (*f) (double a);}; 3841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3842int argc; 3843char **argv; 3844int 3845main () 3846{ 3847return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3854do 3855 CC="$ac_save_CC $ac_arg" 3856 if ac_fn_c_try_compile "$LINENO"; then : 3857 ac_cv_prog_cc_c89=$ac_arg 3858fi 3859rm -f core conftest.err conftest.$ac_objext 3860 test "x$ac_cv_prog_cc_c89" != "xno" && break 3861done 3862rm -f conftest.$ac_ext 3863CC=$ac_save_CC 3864 3865fi 3866# AC_CACHE_VAL 3867case "x$ac_cv_prog_cc_c89" in 3868 x) 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3870$as_echo "none needed" >&6; } ;; 3871 xno) 3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3873$as_echo "unsupported" >&6; } ;; 3874 *) 3875 CC="$CC $ac_cv_prog_cc_c89" 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3877$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3878esac 3879if test "x$ac_cv_prog_cc_c89" != xno; then : 3880 3881fi 3882 3883ac_ext=c 3884ac_cpp='$CPP $CPPFLAGS' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu 3888 3889ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3895$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3896if ${am_cv_prog_cc_c_o+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3900/* end confdefs.h. */ 3901 3902int 3903main () 3904{ 3905 3906 ; 3907 return 0; 3908} 3909_ACEOF 3910 # Make sure it works both with $CC and with simple cc. 3911 # Following AC_PROG_CC_C_O, we do the test twice because some 3912 # compilers refuse to overwrite an existing .o file with -o, 3913 # though they will create one. 3914 am_cv_prog_cc_c_o=yes 3915 for am_i in 1 2; do 3916 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3917 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3918 ac_status=$? 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); } \ 3921 && test -f conftest2.$ac_objext; then 3922 : OK 3923 else 3924 am_cv_prog_cc_c_o=no 3925 break 3926 fi 3927 done 3928 rm -f core conftest* 3929 unset am_i 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3932$as_echo "$am_cv_prog_cc_c_o" >&6; } 3933if test "$am_cv_prog_cc_c_o" != yes; then 3934 # Losing compiler, so override with the script. 3935 # FIXME: It is wrong to rewrite CC. 3936 # But if we don't then we get into trouble of one sort or another. 3937 # A longer-term fix would be to have automake use am__CC in this case, 3938 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3939 CC="$am_aux_dir/compile $CC" 3940fi 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946 3947 3948depcc="$CC" am_compiler_list= 3949 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3951$as_echo_n "checking dependency style of $depcc... " >&6; } 3952if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3953 $as_echo_n "(cached) " >&6 3954else 3955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3956 # We make a subdir and do the tests there. Otherwise we can end up 3957 # making bogus files that we don't know about and never remove. For 3958 # instance it was reported that on HP-UX the gcc test will end up 3959 # making a dummy file named 'D' -- because '-MD' means "put the output 3960 # in D". 3961 rm -rf conftest.dir 3962 mkdir conftest.dir 3963 # Copy depcomp to subdir because otherwise we won't find it if we're 3964 # using a relative directory. 3965 cp "$am_depcomp" conftest.dir 3966 cd conftest.dir 3967 # We will build objects and dependencies in a subdirectory because 3968 # it helps to detect inapplicable dependency modes. For instance 3969 # both Tru64's cc and ICC support -MD to output dependencies as a 3970 # side effect of compilation, but ICC will put the dependencies in 3971 # the current directory while Tru64 will put them in the object 3972 # directory. 3973 mkdir sub 3974 3975 am_cv_CC_dependencies_compiler_type=none 3976 if test "$am_compiler_list" = ""; then 3977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3978 fi 3979 am__universal=false 3980 case " $depcc " in #( 3981 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3982 esac 3983 3984 for depmode in $am_compiler_list; do 3985 # Setup a source with many dependencies, because some compilers 3986 # like to wrap large dependency lists on column 80 (with \), and 3987 # we should not choose a depcomp mode which is confused by this. 3988 # 3989 # We need to recreate these files for each test, as the compiler may 3990 # overwrite some of them when testing with obscure command lines. 3991 # This happens at least with the AIX C compiler. 3992 : > sub/conftest.c 3993 for i in 1 2 3 4 5 6; do 3994 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3996 # Solaris 10 /bin/sh. 3997 echo '/* dummy */' > sub/conftst$i.h 3998 done 3999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4000 4001 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4002 # mode. It turns out that the SunPro C++ compiler does not properly 4003 # handle '-M -o', and we need to detect this. Also, some Intel 4004 # versions had trouble with output in subdirs. 4005 am__obj=sub/conftest.${OBJEXT-o} 4006 am__minus_obj="-o $am__obj" 4007 case $depmode in 4008 gcc) 4009 # This depmode causes a compiler race in universal mode. 4010 test "$am__universal" = false || continue 4011 ;; 4012 nosideeffect) 4013 # After this tag, mechanisms are not by side-effect, so they'll 4014 # only be used when explicitly requested. 4015 if test "x$enable_dependency_tracking" = xyes; then 4016 continue 4017 else 4018 break 4019 fi 4020 ;; 4021 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4022 # This compiler won't grok '-c -o', but also, the minuso test has 4023 # not run yet. These depmodes are late enough in the game, and 4024 # so weak that their functioning should not be impacted. 4025 am__obj=conftest.${OBJEXT-o} 4026 am__minus_obj= 4027 ;; 4028 none) break ;; 4029 esac 4030 if depmode=$depmode \ 4031 source=sub/conftest.c object=$am__obj \ 4032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4034 >/dev/null 2>conftest.err && 4035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4039 # icc doesn't choke on unknown options, it will just issue warnings 4040 # or remarks (even with -Werror). So we grep stderr for any message 4041 # that says an option was ignored or not supported. 4042 # When given -MP, icc 7.0 and 7.1 complain thusly: 4043 # icc: Command line warning: ignoring option '-M'; no argument required 4044 # The diagnosis changed in icc 8.0: 4045 # icc: Command line remark: option '-MP' not supported 4046 if (grep 'ignoring option' conftest.err || 4047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4048 am_cv_CC_dependencies_compiler_type=$depmode 4049 break 4050 fi 4051 fi 4052 done 4053 4054 cd .. 4055 rm -rf conftest.dir 4056else 4057 am_cv_CC_dependencies_compiler_type=none 4058fi 4059 4060fi 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4062$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4063CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4064 4065 if 4066 test "x$enable_dependency_tracking" != xno \ 4067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4068 am__fastdepCC_TRUE= 4069 am__fastdepCC_FALSE='#' 4070else 4071 am__fastdepCC_TRUE='#' 4072 am__fastdepCC_FALSE= 4073fi 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4077$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4078if ${ac_cv_path_SED+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4082 for ac_i in 1 2 3 4 5 6 7; do 4083 ac_script="$ac_script$as_nl$ac_script" 4084 done 4085 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4086 { ac_script=; unset ac_script;} 4087 if test -z "$SED"; then 4088 ac_path_SED_found=false 4089 # Loop through the user's path and test for each of PROGNAME-LIST 4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091for as_dir in $PATH 4092do 4093 IFS=$as_save_IFS 4094 test -z "$as_dir" && as_dir=. 4095 for ac_prog in sed gsed; do 4096 for ac_exec_ext in '' $ac_executable_extensions; do 4097 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4098 as_fn_executable_p "$ac_path_SED" || continue 4099# Check for GNU ac_path_SED and select it if it is found. 4100 # Check for GNU $ac_path_SED 4101case `"$ac_path_SED" --version 2>&1` in 4102*GNU*) 4103 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4104*) 4105 ac_count=0 4106 $as_echo_n 0123456789 >"conftest.in" 4107 while : 4108 do 4109 cat "conftest.in" "conftest.in" >"conftest.tmp" 4110 mv "conftest.tmp" "conftest.in" 4111 cp "conftest.in" "conftest.nl" 4112 $as_echo '' >> "conftest.nl" 4113 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4115 as_fn_arith $ac_count + 1 && ac_count=$as_val 4116 if test $ac_count -gt ${ac_path_SED_max-0}; then 4117 # Best one so far, save it but keep looking for a better one 4118 ac_cv_path_SED="$ac_path_SED" 4119 ac_path_SED_max=$ac_count 4120 fi 4121 # 10*(2^10) chars as input seems more than enough 4122 test $ac_count -gt 10 && break 4123 done 4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4125esac 4126 4127 $ac_path_SED_found && break 3 4128 done 4129 done 4130 done 4131IFS=$as_save_IFS 4132 if test -z "$ac_cv_path_SED"; then 4133 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4134 fi 4135else 4136 ac_cv_path_SED=$SED 4137fi 4138 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4141$as_echo "$ac_cv_path_SED" >&6; } 4142 SED="$ac_cv_path_SED" 4143 rm -f conftest.sed 4144 4145test -z "$SED" && SED=sed 4146Xsed="$SED -e 1s/^X//" 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4159$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4160if ${ac_cv_path_GREP+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 if test -z "$GREP"; then 4164 ac_path_GREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in grep ggrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4174 as_fn_executable_p "$ac_path_GREP" || continue 4175# Check for GNU ac_path_GREP and select it if it is found. 4176 # Check for GNU $ac_path_GREP 4177case `"$ac_path_GREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'GREP' >> "conftest.nl" 4189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_GREP="$ac_path_GREP" 4195 ac_path_GREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_GREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_GREP"; then 4209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_GREP=$GREP 4213fi 4214 4215fi 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4217$as_echo "$ac_cv_path_GREP" >&6; } 4218 GREP="$ac_cv_path_GREP" 4219 4220 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4222$as_echo_n "checking for egrep... " >&6; } 4223if ${ac_cv_path_EGREP+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4227 then ac_cv_path_EGREP="$GREP -E" 4228 else 4229 if test -z "$EGREP"; then 4230 ac_path_EGREP_found=false 4231 # Loop through the user's path and test for each of PROGNAME-LIST 4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4234do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_prog in egrep; do 4238 for ac_exec_ext in '' $ac_executable_extensions; do 4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4240 as_fn_executable_p "$ac_path_EGREP" || continue 4241# Check for GNU ac_path_EGREP and select it if it is found. 4242 # Check for GNU $ac_path_EGREP 4243case `"$ac_path_EGREP" --version 2>&1` in 4244*GNU*) 4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4246*) 4247 ac_count=0 4248 $as_echo_n 0123456789 >"conftest.in" 4249 while : 4250 do 4251 cat "conftest.in" "conftest.in" >"conftest.tmp" 4252 mv "conftest.tmp" "conftest.in" 4253 cp "conftest.in" "conftest.nl" 4254 $as_echo 'EGREP' >> "conftest.nl" 4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4257 as_fn_arith $ac_count + 1 && ac_count=$as_val 4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4259 # Best one so far, save it but keep looking for a better one 4260 ac_cv_path_EGREP="$ac_path_EGREP" 4261 ac_path_EGREP_max=$ac_count 4262 fi 4263 # 10*(2^10) chars as input seems more than enough 4264 test $ac_count -gt 10 && break 4265 done 4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4267esac 4268 4269 $ac_path_EGREP_found && break 3 4270 done 4271 done 4272 done 4273IFS=$as_save_IFS 4274 if test -z "$ac_cv_path_EGREP"; then 4275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4276 fi 4277else 4278 ac_cv_path_EGREP=$EGREP 4279fi 4280 4281 fi 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4284$as_echo "$ac_cv_path_EGREP" >&6; } 4285 EGREP="$ac_cv_path_EGREP" 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4289$as_echo_n "checking for fgrep... " >&6; } 4290if ${ac_cv_path_FGREP+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4294 then ac_cv_path_FGREP="$GREP -F" 4295 else 4296 if test -z "$FGREP"; then 4297 ac_path_FGREP_found=false 4298 # Loop through the user's path and test for each of PROGNAME-LIST 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4301do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_prog in fgrep; do 4305 for ac_exec_ext in '' $ac_executable_extensions; do 4306 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4307 as_fn_executable_p "$ac_path_FGREP" || continue 4308# Check for GNU ac_path_FGREP and select it if it is found. 4309 # Check for GNU $ac_path_FGREP 4310case `"$ac_path_FGREP" --version 2>&1` in 4311*GNU*) 4312 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4313*) 4314 ac_count=0 4315 $as_echo_n 0123456789 >"conftest.in" 4316 while : 4317 do 4318 cat "conftest.in" "conftest.in" >"conftest.tmp" 4319 mv "conftest.tmp" "conftest.in" 4320 cp "conftest.in" "conftest.nl" 4321 $as_echo 'FGREP' >> "conftest.nl" 4322 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4324 as_fn_arith $ac_count + 1 && ac_count=$as_val 4325 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4326 # Best one so far, save it but keep looking for a better one 4327 ac_cv_path_FGREP="$ac_path_FGREP" 4328 ac_path_FGREP_max=$ac_count 4329 fi 4330 # 10*(2^10) chars as input seems more than enough 4331 test $ac_count -gt 10 && break 4332 done 4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4334esac 4335 4336 $ac_path_FGREP_found && break 3 4337 done 4338 done 4339 done 4340IFS=$as_save_IFS 4341 if test -z "$ac_cv_path_FGREP"; then 4342 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4343 fi 4344else 4345 ac_cv_path_FGREP=$FGREP 4346fi 4347 4348 fi 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4351$as_echo "$ac_cv_path_FGREP" >&6; } 4352 FGREP="$ac_cv_path_FGREP" 4353 4354 4355test -z "$GREP" && GREP=grep 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375@%:@ Check whether --with-gnu-ld was given. 4376if test "${with_gnu_ld+set}" = set; then : 4377 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4378else 4379 with_gnu_ld=no 4380fi 4381 4382ac_prog=ld 4383if test yes = "$GCC"; then 4384 # Check if gcc -print-prog-name=ld gives a path. 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4386$as_echo_n "checking for ld used by $CC... " >&6; } 4387 case $host in 4388 *-*-mingw*) 4389 # gcc leaves a trailing carriage return, which upsets mingw 4390 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4391 *) 4392 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4393 esac 4394 case $ac_prog in 4395 # Accept absolute paths. 4396 [\\/]* | ?:[\\/]*) 4397 re_direlt='/[^/][^/]*/\.\./' 4398 # Canonicalize the pathname of ld 4399 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4400 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4401 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4402 done 4403 test -z "$LD" && LD=$ac_prog 4404 ;; 4405 "") 4406 # If it fails, then pretend we aren't using GCC. 4407 ac_prog=ld 4408 ;; 4409 *) 4410 # If it is relative, then search for the first ld in PATH. 4411 with_gnu_ld=unknown 4412 ;; 4413 esac 4414elif test yes = "$with_gnu_ld"; then 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4416$as_echo_n "checking for GNU ld... " >&6; } 4417else 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4419$as_echo_n "checking for non-GNU ld... " >&6; } 4420fi 4421if ${lt_cv_path_LD+:} false; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -z "$LD"; then 4425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4426 for ac_dir in $PATH; do 4427 IFS=$lt_save_ifs 4428 test -z "$ac_dir" && ac_dir=. 4429 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4430 lt_cv_path_LD=$ac_dir/$ac_prog 4431 # Check to see if the program is GNU ld. I'd rather use --version, 4432 # but apparently some variants of GNU ld only accept -v. 4433 # Break only if it was the GNU/non-GNU ld that we prefer. 4434 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4435 *GNU* | *'with BFD'*) 4436 test no != "$with_gnu_ld" && break 4437 ;; 4438 *) 4439 test yes != "$with_gnu_ld" && break 4440 ;; 4441 esac 4442 fi 4443 done 4444 IFS=$lt_save_ifs 4445else 4446 lt_cv_path_LD=$LD # Let the user override the test with a path. 4447fi 4448fi 4449 4450LD=$lt_cv_path_LD 4451if test -n "$LD"; then 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4453$as_echo "$LD" >&6; } 4454else 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456$as_echo "no" >&6; } 4457fi 4458test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4460$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4461if ${lt_cv_prog_gnu_ld+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4465case `$LD -v 2>&1 </dev/null` in 4466*GNU* | *'with BFD'*) 4467 lt_cv_prog_gnu_ld=yes 4468 ;; 4469*) 4470 lt_cv_prog_gnu_ld=no 4471 ;; 4472esac 4473fi 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4475$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4476with_gnu_ld=$lt_cv_prog_gnu_ld 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4487$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4488if ${lt_cv_path_NM+:} false; then : 4489 $as_echo_n "(cached) " >&6 4490else 4491 if test -n "$NM"; then 4492 # Let the user override the test. 4493 lt_cv_path_NM=$NM 4494else 4495 lt_nm_to_check=${ac_tool_prefix}nm 4496 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4497 lt_nm_to_check="$lt_nm_to_check nm" 4498 fi 4499 for lt_tmp_nm in $lt_nm_to_check; do 4500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4501 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4502 IFS=$lt_save_ifs 4503 test -z "$ac_dir" && ac_dir=. 4504 tmp_nm=$ac_dir/$lt_tmp_nm 4505 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4506 # Check to see if the nm accepts a BSD-compat flag. 4507 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4508 # nm: unknown option "B" ignored 4509 # Tru64's nm complains that /dev/null is an invalid object file 4510 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4511 case $build_os in 4512 mingw*) lt_bad_file=conftest.nm/nofile ;; 4513 *) lt_bad_file=/dev/null ;; 4514 esac 4515 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4516 *$lt_bad_file* | *'Invalid file or object type'*) 4517 lt_cv_path_NM="$tmp_nm -B" 4518 break 2 4519 ;; 4520 *) 4521 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4522 */dev/null*) 4523 lt_cv_path_NM="$tmp_nm -p" 4524 break 2 4525 ;; 4526 *) 4527 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4528 continue # so that we can try to find one that supports BSD flags 4529 ;; 4530 esac 4531 ;; 4532 esac 4533 fi 4534 done 4535 IFS=$lt_save_ifs 4536 done 4537 : ${lt_cv_path_NM=no} 4538fi 4539fi 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4541$as_echo "$lt_cv_path_NM" >&6; } 4542if test no != "$lt_cv_path_NM"; then 4543 NM=$lt_cv_path_NM 4544else 4545 # Didn't find any BSD compatible name lister, look for dumpbin. 4546 if test -n "$DUMPBIN"; then : 4547 # Let the user override the test. 4548 else 4549 if test -n "$ac_tool_prefix"; then 4550 for ac_prog in dumpbin "link -dump" 4551 do 4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4553set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4555$as_echo_n "checking for $ac_word... " >&6; } 4556if ${ac_cv_prog_DUMPBIN+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test -n "$DUMPBIN"; then 4560 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4561else 4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4569 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574 done 4575IFS=$as_save_IFS 4576 4577fi 4578fi 4579DUMPBIN=$ac_cv_prog_DUMPBIN 4580if test -n "$DUMPBIN"; then 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4582$as_echo "$DUMPBIN" >&6; } 4583else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586fi 4587 4588 4589 test -n "$DUMPBIN" && break 4590 done 4591fi 4592if test -z "$DUMPBIN"; then 4593 ac_ct_DUMPBIN=$DUMPBIN 4594 for ac_prog in dumpbin "link -dump" 4595do 4596 # Extract the first word of "$ac_prog", so it can be a program name with args. 4597set dummy $ac_prog; ac_word=$2 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4599$as_echo_n "checking for $ac_word... " >&6; } 4600if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 if test -n "$ac_ct_DUMPBIN"; then 4604 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4605else 4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4607for as_dir in $PATH 4608do 4609 IFS=$as_save_IFS 4610 test -z "$as_dir" && as_dir=. 4611 for ac_exec_ext in '' $ac_executable_extensions; do 4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4613 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4615 break 2 4616 fi 4617done 4618 done 4619IFS=$as_save_IFS 4620 4621fi 4622fi 4623ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4624if test -n "$ac_ct_DUMPBIN"; then 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4626$as_echo "$ac_ct_DUMPBIN" >&6; } 4627else 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4629$as_echo "no" >&6; } 4630fi 4631 4632 4633 test -n "$ac_ct_DUMPBIN" && break 4634done 4635 4636 if test "x$ac_ct_DUMPBIN" = x; then 4637 DUMPBIN=":" 4638 else 4639 case $cross_compiling:$ac_tool_warned in 4640yes:) 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4643ac_tool_warned=yes ;; 4644esac 4645 DUMPBIN=$ac_ct_DUMPBIN 4646 fi 4647fi 4648 4649 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4650 *COFF*) 4651 DUMPBIN="$DUMPBIN -symbols -headers" 4652 ;; 4653 *) 4654 DUMPBIN=: 4655 ;; 4656 esac 4657 fi 4658 4659 if test : != "$DUMPBIN"; then 4660 NM=$DUMPBIN 4661 fi 4662fi 4663test -z "$NM" && NM=nm 4664 4665 4666 4667 4668 4669 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4671$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4672if ${lt_cv_nm_interface+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 lt_cv_nm_interface="BSD nm" 4676 echo "int some_variable = 0;" > conftest.$ac_ext 4677 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4678 (eval "$ac_compile" 2>conftest.err) 4679 cat conftest.err >&5 4680 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4681 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4682 cat conftest.err >&5 4683 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4684 cat conftest.out >&5 4685 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4686 lt_cv_nm_interface="MS dumpbin" 4687 fi 4688 rm -f conftest* 4689fi 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4691$as_echo "$lt_cv_nm_interface" >&6; } 4692 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4694$as_echo_n "checking whether ln -s works... " >&6; } 4695LN_S=$as_ln_s 4696if test "$LN_S" = "ln -s"; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4698$as_echo "yes" >&6; } 4699else 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4701$as_echo "no, using $LN_S" >&6; } 4702fi 4703 4704# find the maximum length of command line arguments 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4706$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4707if ${lt_cv_sys_max_cmd_len+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 i=0 4711 teststring=ABCD 4712 4713 case $build_os in 4714 msdosdjgpp*) 4715 # On DJGPP, this test can blow up pretty badly due to problems in libc 4716 # (any single argument exceeding 2000 bytes causes a buffer overrun 4717 # during glob expansion). Even if it were fixed, the result of this 4718 # check would be larger than it should be. 4719 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4720 ;; 4721 4722 gnu*) 4723 # Under GNU Hurd, this test is not required because there is 4724 # no limit to the length of command line arguments. 4725 # Libtool will interpret -1 as no limit whatsoever 4726 lt_cv_sys_max_cmd_len=-1; 4727 ;; 4728 4729 cygwin* | mingw* | cegcc*) 4730 # On Win9x/ME, this test blows up -- it succeeds, but takes 4731 # about 5 minutes as the teststring grows exponentially. 4732 # Worse, since 9x/ME are not pre-emptively multitasking, 4733 # you end up with a "frozen" computer, even though with patience 4734 # the test eventually succeeds (with a max line length of 256k). 4735 # Instead, let's just punt: use the minimum linelength reported by 4736 # all of the supported platforms: 8192 (on NT/2K/XP). 4737 lt_cv_sys_max_cmd_len=8192; 4738 ;; 4739 4740 mint*) 4741 # On MiNT this can take a long time and run out of memory. 4742 lt_cv_sys_max_cmd_len=8192; 4743 ;; 4744 4745 amigaos*) 4746 # On AmigaOS with pdksh, this test takes hours, literally. 4747 # So we just punt and use a minimum line length of 8192. 4748 lt_cv_sys_max_cmd_len=8192; 4749 ;; 4750 4751 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4752 # This has been around since 386BSD, at least. Likely further. 4753 if test -x /sbin/sysctl; then 4754 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4755 elif test -x /usr/sbin/sysctl; then 4756 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4757 else 4758 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4759 fi 4760 # And add a safety zone 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4763 ;; 4764 4765 interix*) 4766 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4767 lt_cv_sys_max_cmd_len=196608 4768 ;; 4769 4770 os2*) 4771 # The test takes a long time on OS/2. 4772 lt_cv_sys_max_cmd_len=8192 4773 ;; 4774 4775 osf*) 4776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4778 # nice to cause kernel panics so lets avoid the loop below. 4779 # First set a reasonable default. 4780 lt_cv_sys_max_cmd_len=16384 4781 # 4782 if test -x /sbin/sysconfig; then 4783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4784 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4785 esac 4786 fi 4787 ;; 4788 sco3.2v5*) 4789 lt_cv_sys_max_cmd_len=102400 4790 ;; 4791 sysv5* | sco5v6* | sysv4.2uw2*) 4792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4793 if test -n "$kargmax"; then 4794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4795 else 4796 lt_cv_sys_max_cmd_len=32768 4797 fi 4798 ;; 4799 *) 4800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4801 if test -n "$lt_cv_sys_max_cmd_len" && \ 4802 test undefined != "$lt_cv_sys_max_cmd_len"; then 4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4805 else 4806 # Make teststring a little bigger before we do anything with it. 4807 # a 1K string should be a reasonable start. 4808 for i in 1 2 3 4 5 6 7 8; do 4809 teststring=$teststring$teststring 4810 done 4811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4812 # If test is not a shell built-in, we'll probably end up computing a 4813 # maximum length that is only half of the actual maximum length, but 4814 # we can't tell. 4815 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4816 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4817 test 17 != "$i" # 1/2 MB should be enough 4818 do 4819 i=`expr $i + 1` 4820 teststring=$teststring$teststring 4821 done 4822 # Only check the string length outside the loop. 4823 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4824 teststring= 4825 # Add a significant safety factor because C++ compilers can tack on 4826 # massive amounts of additional arguments before passing them to the 4827 # linker. It appears as though 1/2 is a usable value. 4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4829 fi 4830 ;; 4831 esac 4832 4833fi 4834 4835if test -n "$lt_cv_sys_max_cmd_len"; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4837$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4840$as_echo "none" >&6; } 4841fi 4842max_cmd_len=$lt_cv_sys_max_cmd_len 4843 4844 4845 4846 4847 4848 4849: ${CP="cp -f"} 4850: ${MV="mv -f"} 4851: ${RM="rm -f"} 4852 4853if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4854 lt_unset=unset 4855else 4856 lt_unset=false 4857fi 4858 4859 4860 4861 4862 4863# test EBCDIC or ASCII 4864case `echo X|tr X '\101'` in 4865 A) # ASCII based system 4866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4867 lt_SP2NL='tr \040 \012' 4868 lt_NL2SP='tr \015\012 \040\040' 4869 ;; 4870 *) # EBCDIC based system 4871 lt_SP2NL='tr \100 \n' 4872 lt_NL2SP='tr \r\n \100\100' 4873 ;; 4874esac 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4885$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4886if ${lt_cv_to_host_file_cmd+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 case $host in 4890 *-*-mingw* ) 4891 case $build in 4892 *-*-mingw* ) # actually msys 4893 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4894 ;; 4895 *-*-cygwin* ) 4896 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4897 ;; 4898 * ) # otherwise, assume *nix 4899 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4900 ;; 4901 esac 4902 ;; 4903 *-*-cygwin* ) 4904 case $build in 4905 *-*-mingw* ) # actually msys 4906 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4907 ;; 4908 *-*-cygwin* ) 4909 lt_cv_to_host_file_cmd=func_convert_file_noop 4910 ;; 4911 * ) # otherwise, assume *nix 4912 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4913 ;; 4914 esac 4915 ;; 4916 * ) # unhandled hosts (and "normal" native builds) 4917 lt_cv_to_host_file_cmd=func_convert_file_noop 4918 ;; 4919esac 4920 4921fi 4922 4923to_host_file_cmd=$lt_cv_to_host_file_cmd 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4925$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4926 4927 4928 4929 4930 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4932$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4933if ${lt_cv_to_tool_file_cmd+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 #assume ordinary cross tools, or native build. 4937lt_cv_to_tool_file_cmd=func_convert_file_noop 4938case $host in 4939 *-*-mingw* ) 4940 case $build in 4941 *-*-mingw* ) # actually msys 4942 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4943 ;; 4944 esac 4945 ;; 4946esac 4947 4948fi 4949 4950to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4952$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4953 4954 4955 4956 4957 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4959$as_echo_n "checking for $LD option to reload object files... " >&6; } 4960if ${lt_cv_ld_reload_flag+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 lt_cv_ld_reload_flag='-r' 4964fi 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4966$as_echo "$lt_cv_ld_reload_flag" >&6; } 4967reload_flag=$lt_cv_ld_reload_flag 4968case $reload_flag in 4969"" | " "*) ;; 4970*) reload_flag=" $reload_flag" ;; 4971esac 4972reload_cmds='$LD$reload_flag -o $output$reload_objs' 4973case $host_os in 4974 cygwin* | mingw* | pw32* | cegcc*) 4975 if test yes != "$GCC"; then 4976 reload_cmds=false 4977 fi 4978 ;; 4979 darwin*) 4980 if test yes = "$GCC"; then 4981 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4982 else 4983 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4984 fi 4985 ;; 4986esac 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996if test -n "$ac_tool_prefix"; then 4997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4998set dummy ${ac_tool_prefix}objdump; ac_word=$2 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5000$as_echo_n "checking for $ac_word... " >&6; } 5001if ${ac_cv_prog_OBJDUMP+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -n "$OBJDUMP"; then 5005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5006else 5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5008for as_dir in $PATH 5009do 5010 IFS=$as_save_IFS 5011 test -z "$as_dir" && as_dir=. 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5016 break 2 5017 fi 5018done 5019 done 5020IFS=$as_save_IFS 5021 5022fi 5023fi 5024OBJDUMP=$ac_cv_prog_OBJDUMP 5025if test -n "$OBJDUMP"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5027$as_echo "$OBJDUMP" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 5034fi 5035if test -z "$ac_cv_prog_OBJDUMP"; then 5036 ac_ct_OBJDUMP=$OBJDUMP 5037 # Extract the first word of "objdump", so it can be a program name with args. 5038set dummy objdump; ac_word=$2 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$ac_ct_OBJDUMP"; then 5045 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5046else 5047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5048for as_dir in $PATH 5049do 5050 IFS=$as_save_IFS 5051 test -z "$as_dir" && as_dir=. 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5065if test -n "$ac_ct_OBJDUMP"; then 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5067$as_echo "$ac_ct_OBJDUMP" >&6; } 5068else 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070$as_echo "no" >&6; } 5071fi 5072 5073 if test "x$ac_ct_OBJDUMP" = x; then 5074 OBJDUMP="false" 5075 else 5076 case $cross_compiling:$ac_tool_warned in 5077yes:) 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5080ac_tool_warned=yes ;; 5081esac 5082 OBJDUMP=$ac_ct_OBJDUMP 5083 fi 5084else 5085 OBJDUMP="$ac_cv_prog_OBJDUMP" 5086fi 5087 5088test -z "$OBJDUMP" && OBJDUMP=objdump 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5099$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5100if ${lt_cv_deplibs_check_method+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 lt_cv_file_magic_cmd='$MAGIC_CMD' 5104lt_cv_file_magic_test_file= 5105lt_cv_deplibs_check_method='unknown' 5106# Need to set the preceding variable on all platforms that support 5107# interlibrary dependencies. 5108# 'none' -- dependencies not supported. 5109# 'unknown' -- same as none, but documents that we really don't know. 5110# 'pass_all' -- all dependencies passed with no checks. 5111# 'test_compile' -- check by making test program. 5112# 'file_magic [[regex]]' -- check by looking for files in library path 5113# that responds to the $file_magic_cmd with a given extended regex. 5114# If you have 'file' or equivalent on your system and you're not sure 5115# whether 'pass_all' will *always* work, you probably want this one. 5116 5117case $host_os in 5118aix[4-9]*) 5119 lt_cv_deplibs_check_method=pass_all 5120 ;; 5121 5122beos*) 5123 lt_cv_deplibs_check_method=pass_all 5124 ;; 5125 5126bsdi[45]*) 5127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5128 lt_cv_file_magic_cmd='/usr/bin/file -L' 5129 lt_cv_file_magic_test_file=/shlib/libc.so 5130 ;; 5131 5132cygwin*) 5133 # func_win32_libid is a shell function defined in ltmain.sh 5134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5135 lt_cv_file_magic_cmd='func_win32_libid' 5136 ;; 5137 5138mingw* | pw32*) 5139 # Base MSYS/MinGW do not provide the 'file' command needed by 5140 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5141 # unless we find 'file', for example because we are cross-compiling. 5142 if ( file / ) >/dev/null 2>&1; then 5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5144 lt_cv_file_magic_cmd='func_win32_libid' 5145 else 5146 # Keep this pattern in sync with the one in func_win32_libid. 5147 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5148 lt_cv_file_magic_cmd='$OBJDUMP -f' 5149 fi 5150 ;; 5151 5152cegcc*) 5153 # use the weaker test based on 'objdump'. See mingw*. 5154 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5155 lt_cv_file_magic_cmd='$OBJDUMP -f' 5156 ;; 5157 5158darwin* | rhapsody*) 5159 lt_cv_deplibs_check_method=pass_all 5160 ;; 5161 5162freebsd* | dragonfly*) 5163 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5164 case $host_cpu in 5165 i*86 ) 5166 # Not sure whether the presence of OpenBSD here was a mistake. 5167 # Let's accept both of them until this is cleared up. 5168 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5169 lt_cv_file_magic_cmd=/usr/bin/file 5170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5171 ;; 5172 esac 5173 else 5174 lt_cv_deplibs_check_method=pass_all 5175 fi 5176 ;; 5177 5178haiku*) 5179 lt_cv_deplibs_check_method=pass_all 5180 ;; 5181 5182hpux10.20* | hpux11*) 5183 lt_cv_file_magic_cmd=/usr/bin/file 5184 case $host_cpu in 5185 ia64*) 5186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5187 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5188 ;; 5189 hppa*64*) 5190 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]' 5191 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5192 ;; 5193 *) 5194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5195 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5196 ;; 5197 esac 5198 ;; 5199 5200interix[3-9]*) 5201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5203 ;; 5204 5205irix5* | irix6* | nonstopux*) 5206 case $LD in 5207 *-32|*"-32 ") libmagic=32-bit;; 5208 *-n32|*"-n32 ") libmagic=N32;; 5209 *-64|*"-64 ") libmagic=64-bit;; 5210 *) libmagic=never-match;; 5211 esac 5212 lt_cv_deplibs_check_method=pass_all 5213 ;; 5214 5215# This must be glibc/ELF. 5216linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5217 lt_cv_deplibs_check_method=pass_all 5218 ;; 5219 5220netbsd*) 5221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5223 else 5224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5225 fi 5226 ;; 5227 5228newos6*) 5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5230 lt_cv_file_magic_cmd=/usr/bin/file 5231 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5232 ;; 5233 5234*nto* | *qnx*) 5235 lt_cv_deplibs_check_method=pass_all 5236 ;; 5237 5238openbsd* | bitrig*) 5239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5241 else 5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5243 fi 5244 ;; 5245 5246osf3* | osf4* | osf5*) 5247 lt_cv_deplibs_check_method=pass_all 5248 ;; 5249 5250rdos*) 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253 5254solaris*) 5255 lt_cv_deplibs_check_method=pass_all 5256 ;; 5257 5258sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5259 lt_cv_deplibs_check_method=pass_all 5260 ;; 5261 5262sysv4 | sysv4.3*) 5263 case $host_vendor in 5264 motorola) 5265 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]' 5266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5267 ;; 5268 ncr) 5269 lt_cv_deplibs_check_method=pass_all 5270 ;; 5271 sequent) 5272 lt_cv_file_magic_cmd='/bin/file' 5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5274 ;; 5275 sni) 5276 lt_cv_file_magic_cmd='/bin/file' 5277 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5278 lt_cv_file_magic_test_file=/lib/libc.so 5279 ;; 5280 siemens) 5281 lt_cv_deplibs_check_method=pass_all 5282 ;; 5283 pc) 5284 lt_cv_deplibs_check_method=pass_all 5285 ;; 5286 esac 5287 ;; 5288 5289tpf*) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292os2*) 5293 lt_cv_deplibs_check_method=pass_all 5294 ;; 5295esac 5296 5297fi 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5299$as_echo "$lt_cv_deplibs_check_method" >&6; } 5300 5301file_magic_glob= 5302want_nocaseglob=no 5303if test "$build" = "$host"; then 5304 case $host_os in 5305 mingw* | pw32*) 5306 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5307 want_nocaseglob=yes 5308 else 5309 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5310 fi 5311 ;; 5312 esac 5313fi 5314 5315file_magic_cmd=$lt_cv_file_magic_cmd 5316deplibs_check_method=$lt_cv_deplibs_check_method 5317test -z "$deplibs_check_method" && deplibs_check_method=unknown 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340if test -n "$ac_tool_prefix"; then 5341 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5342set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5344$as_echo_n "checking for $ac_word... " >&6; } 5345if ${ac_cv_prog_DLLTOOL+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 if test -n "$DLLTOOL"; then 5349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5350else 5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5352for as_dir in $PATH 5353do 5354 IFS=$as_save_IFS 5355 test -z "$as_dir" && as_dir=. 5356 for ac_exec_ext in '' $ac_executable_extensions; do 5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5358 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5360 break 2 5361 fi 5362done 5363 done 5364IFS=$as_save_IFS 5365 5366fi 5367fi 5368DLLTOOL=$ac_cv_prog_DLLTOOL 5369if test -n "$DLLTOOL"; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5371$as_echo "$DLLTOOL" >&6; } 5372else 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5374$as_echo "no" >&6; } 5375fi 5376 5377 5378fi 5379if test -z "$ac_cv_prog_DLLTOOL"; then 5380 ac_ct_DLLTOOL=$DLLTOOL 5381 # Extract the first word of "dlltool", so it can be a program name with args. 5382set dummy dlltool; ac_word=$2 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5384$as_echo_n "checking for $ac_word... " >&6; } 5385if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 if test -n "$ac_ct_DLLTOOL"; then 5389 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5390else 5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5392for as_dir in $PATH 5393do 5394 IFS=$as_save_IFS 5395 test -z "$as_dir" && as_dir=. 5396 for ac_exec_ext in '' $ac_executable_extensions; do 5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5398 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5400 break 2 5401 fi 5402done 5403 done 5404IFS=$as_save_IFS 5405 5406fi 5407fi 5408ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5409if test -n "$ac_ct_DLLTOOL"; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5411$as_echo "$ac_ct_DLLTOOL" >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5414$as_echo "no" >&6; } 5415fi 5416 5417 if test "x$ac_ct_DLLTOOL" = x; then 5418 DLLTOOL="false" 5419 else 5420 case $cross_compiling:$ac_tool_warned in 5421yes:) 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5424ac_tool_warned=yes ;; 5425esac 5426 DLLTOOL=$ac_ct_DLLTOOL 5427 fi 5428else 5429 DLLTOOL="$ac_cv_prog_DLLTOOL" 5430fi 5431 5432test -z "$DLLTOOL" && DLLTOOL=dlltool 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5444$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5445if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 lt_cv_sharedlib_from_linklib_cmd='unknown' 5449 5450case $host_os in 5451cygwin* | mingw* | pw32* | cegcc*) 5452 # two different shell functions defined in ltmain.sh; 5453 # decide which one to use based on capabilities of $DLLTOOL 5454 case `$DLLTOOL --help 2>&1` in 5455 *--identify-strict*) 5456 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5457 ;; 5458 *) 5459 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5460 ;; 5461 esac 5462 ;; 5463*) 5464 # fallback: assume linklib IS sharedlib 5465 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5466 ;; 5467esac 5468 5469fi 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5471$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5472sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5473test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5474 5475 5476 5477 5478 5479 5480 5481 5482if test -n "$ac_tool_prefix"; then 5483 for ac_prog in ar 5484 do 5485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5486set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5488$as_echo_n "checking for $ac_word... " >&6; } 5489if ${ac_cv_prog_AR+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 if test -n "$AR"; then 5493 ac_cv_prog_AR="$AR" # Let the user override the test. 5494else 5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496for as_dir in $PATH 5497do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5502 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506done 5507 done 5508IFS=$as_save_IFS 5509 5510fi 5511fi 5512AR=$ac_cv_prog_AR 5513if test -n "$AR"; then 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5515$as_echo "$AR" >&6; } 5516else 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5518$as_echo "no" >&6; } 5519fi 5520 5521 5522 test -n "$AR" && break 5523 done 5524fi 5525if test -z "$AR"; then 5526 ac_ct_AR=$AR 5527 for ac_prog in ar 5528do 5529 # Extract the first word of "$ac_prog", so it can be a program name with args. 5530set dummy $ac_prog; ac_word=$2 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5532$as_echo_n "checking for $ac_word... " >&6; } 5533if ${ac_cv_prog_ac_ct_AR+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 if test -n "$ac_ct_AR"; then 5537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5546 ac_cv_prog_ac_ct_AR="$ac_prog" 5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551 done 5552IFS=$as_save_IFS 5553 5554fi 5555fi 5556ac_ct_AR=$ac_cv_prog_ac_ct_AR 5557if test -n "$ac_ct_AR"; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5559$as_echo "$ac_ct_AR" >&6; } 5560else 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5562$as_echo "no" >&6; } 5563fi 5564 5565 5566 test -n "$ac_ct_AR" && break 5567done 5568 5569 if test "x$ac_ct_AR" = x; then 5570 AR="false" 5571 else 5572 case $cross_compiling:$ac_tool_warned in 5573yes:) 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5576ac_tool_warned=yes ;; 5577esac 5578 AR=$ac_ct_AR 5579 fi 5580fi 5581 5582: ${AR=ar} 5583: ${AR_FLAGS=cru} 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5596$as_echo_n "checking for archiver @FILE support... " >&6; } 5597if ${lt_cv_ar_at_file+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 lt_cv_ar_at_file=no 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603 5604int 5605main () 5606{ 5607 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612if ac_fn_c_try_compile "$LINENO"; then : 5613 echo conftest.$ac_objext > conftest.lst 5614 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5616 (eval $lt_ar_try) 2>&5 5617 ac_status=$? 5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5619 test $ac_status = 0; } 5620 if test 0 -eq "$ac_status"; then 5621 # Ensure the archiver fails upon bogus file names. 5622 rm -f conftest.$ac_objext libconftest.a 5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5624 (eval $lt_ar_try) 2>&5 5625 ac_status=$? 5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5627 test $ac_status = 0; } 5628 if test 0 -ne "$ac_status"; then 5629 lt_cv_ar_at_file=@ 5630 fi 5631 fi 5632 rm -f conftest.* libconftest.a 5633 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5636 5637fi 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5639$as_echo "$lt_cv_ar_at_file" >&6; } 5640 5641if test no = "$lt_cv_ar_at_file"; then 5642 archiver_list_spec= 5643else 5644 archiver_list_spec=$lt_cv_ar_at_file 5645fi 5646 5647 5648 5649 5650 5651 5652 5653if test -n "$ac_tool_prefix"; then 5654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5655set dummy ${ac_tool_prefix}strip; ac_word=$2 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657$as_echo_n "checking for $ac_word... " >&6; } 5658if ${ac_cv_prog_STRIP+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 if test -n "$STRIP"; then 5662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5663else 5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5665for as_dir in $PATH 5666do 5667 IFS=$as_save_IFS 5668 test -z "$as_dir" && as_dir=. 5669 for ac_exec_ext in '' $ac_executable_extensions; do 5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5671 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5673 break 2 5674 fi 5675done 5676 done 5677IFS=$as_save_IFS 5678 5679fi 5680fi 5681STRIP=$ac_cv_prog_STRIP 5682if test -n "$STRIP"; then 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5684$as_echo "$STRIP" >&6; } 5685else 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687$as_echo "no" >&6; } 5688fi 5689 5690 5691fi 5692if test -z "$ac_cv_prog_STRIP"; then 5693 ac_ct_STRIP=$STRIP 5694 # Extract the first word of "strip", so it can be a program name with args. 5695set dummy strip; ac_word=$2 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5697$as_echo_n "checking for $ac_word... " >&6; } 5698if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 if test -n "$ac_ct_STRIP"; then 5702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5703else 5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705for as_dir in $PATH 5706do 5707 IFS=$as_save_IFS 5708 test -z "$as_dir" && as_dir=. 5709 for ac_exec_ext in '' $ac_executable_extensions; do 5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5711 ac_cv_prog_ac_ct_STRIP="strip" 5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5713 break 2 5714 fi 5715done 5716 done 5717IFS=$as_save_IFS 5718 5719fi 5720fi 5721ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5722if test -n "$ac_ct_STRIP"; then 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5724$as_echo "$ac_ct_STRIP" >&6; } 5725else 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5727$as_echo "no" >&6; } 5728fi 5729 5730 if test "x$ac_ct_STRIP" = x; then 5731 STRIP=":" 5732 else 5733 case $cross_compiling:$ac_tool_warned in 5734yes:) 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5737ac_tool_warned=yes ;; 5738esac 5739 STRIP=$ac_ct_STRIP 5740 fi 5741else 5742 STRIP="$ac_cv_prog_STRIP" 5743fi 5744 5745test -z "$STRIP" && STRIP=: 5746 5747 5748 5749 5750 5751 5752if test -n "$ac_tool_prefix"; then 5753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5754set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5756$as_echo_n "checking for $ac_word... " >&6; } 5757if ${ac_cv_prog_RANLIB+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test -n "$RANLIB"; then 5761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5762else 5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 test -z "$as_dir" && as_dir=. 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5772 break 2 5773 fi 5774done 5775 done 5776IFS=$as_save_IFS 5777 5778fi 5779fi 5780RANLIB=$ac_cv_prog_RANLIB 5781if test -n "$RANLIB"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5783$as_echo "$RANLIB" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786$as_echo "no" >&6; } 5787fi 5788 5789 5790fi 5791if test -z "$ac_cv_prog_RANLIB"; then 5792 ac_ct_RANLIB=$RANLIB 5793 # Extract the first word of "ranlib", so it can be a program name with args. 5794set dummy ranlib; ac_word=$2 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5796$as_echo_n "checking for $ac_word... " >&6; } 5797if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 if test -n "$ac_ct_RANLIB"; then 5801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5802else 5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5804for as_dir in $PATH 5805do 5806 IFS=$as_save_IFS 5807 test -z "$as_dir" && as_dir=. 5808 for ac_exec_ext in '' $ac_executable_extensions; do 5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5810 ac_cv_prog_ac_ct_RANLIB="ranlib" 5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5812 break 2 5813 fi 5814done 5815 done 5816IFS=$as_save_IFS 5817 5818fi 5819fi 5820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5821if test -n "$ac_ct_RANLIB"; then 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5823$as_echo "$ac_ct_RANLIB" >&6; } 5824else 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5826$as_echo "no" >&6; } 5827fi 5828 5829 if test "x$ac_ct_RANLIB" = x; then 5830 RANLIB=":" 5831 else 5832 case $cross_compiling:$ac_tool_warned in 5833yes:) 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5836ac_tool_warned=yes ;; 5837esac 5838 RANLIB=$ac_ct_RANLIB 5839 fi 5840else 5841 RANLIB="$ac_cv_prog_RANLIB" 5842fi 5843 5844test -z "$RANLIB" && RANLIB=: 5845 5846 5847 5848 5849 5850 5851# Determine commands to create old-style static archives. 5852old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5853old_postinstall_cmds='chmod 644 $oldlib' 5854old_postuninstall_cmds= 5855 5856if test -n "$RANLIB"; then 5857 case $host_os in 5858 bitrig* | openbsd*) 5859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5860 ;; 5861 *) 5862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5863 ;; 5864 esac 5865 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5866fi 5867 5868case $host_os in 5869 darwin*) 5870 lock_old_archive_extraction=yes ;; 5871 *) 5872 lock_old_archive_extraction=no ;; 5873esac 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913# If no C compiler was specified, use CC. 5914LTCC=${LTCC-"$CC"} 5915 5916# If no C compiler flags were specified, use CFLAGS. 5917LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5918 5919# Allow CC to be a program name with arguments. 5920compiler=$CC 5921 5922 5923# Check for command to grab the raw symbol name followed by C symbol from nm. 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5925$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5926if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 5930# These are sane defaults that work on at least a few old systems. 5931# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5932 5933# Character class describing NM global symbol codes. 5934symcode='[BCDEGRST]' 5935 5936# Regexp to match symbols that can be accessed directly from C. 5937sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5938 5939# Define system-specific variables. 5940case $host_os in 5941aix*) 5942 symcode='[BCDT]' 5943 ;; 5944cygwin* | mingw* | pw32* | cegcc*) 5945 symcode='[ABCDGISTW]' 5946 ;; 5947hpux*) 5948 if test ia64 = "$host_cpu"; then 5949 symcode='[ABCDEGRST]' 5950 fi 5951 ;; 5952irix* | nonstopux*) 5953 symcode='[BCDEGRST]' 5954 ;; 5955osf*) 5956 symcode='[BCDEGQRST]' 5957 ;; 5958solaris*) 5959 symcode='[BDRT]' 5960 ;; 5961sco3.2v5*) 5962 symcode='[DT]' 5963 ;; 5964sysv4.2uw2*) 5965 symcode='[DT]' 5966 ;; 5967sysv5* | sco5v6* | unixware* | OpenUNIX*) 5968 symcode='[ABDT]' 5969 ;; 5970sysv4) 5971 symcode='[DFNSTU]' 5972 ;; 5973esac 5974 5975# If we're using GNU nm, then use its standard symbol codes. 5976case `$NM -V 2>&1` in 5977*GNU* | *'with BFD'*) 5978 symcode='[ABCDGIRSTW]' ;; 5979esac 5980 5981if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5982 # Gets list of data symbols to import. 5983 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5984 # Adjust the below global symbol transforms to fixup imported variables. 5985 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5986 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5987 lt_c_name_lib_hook="\ 5988 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5989 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5990else 5991 # Disable hooks by default. 5992 lt_cv_sys_global_symbol_to_import= 5993 lt_cdecl_hook= 5994 lt_c_name_hook= 5995 lt_c_name_lib_hook= 5996fi 5997 5998# Transform an extracted symbol line into a proper C declaration. 5999# Some systems (esp. on ia64) link data and code symbols differently, 6000# so use this general approach. 6001lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6002$lt_cdecl_hook\ 6003" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6004" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6005 6006# Transform an extracted symbol line into symbol name and symbol address 6007lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6008$lt_c_name_hook\ 6009" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6010" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6011 6012# Transform an extracted symbol line into symbol name with lib prefix and 6013# symbol address. 6014lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6015$lt_c_name_lib_hook\ 6016" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6017" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6018" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6019 6020# Handle CRLF in mingw tool chain 6021opt_cr= 6022case $build_os in 6023mingw*) 6024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6025 ;; 6026esac 6027 6028# Try without a prefix underscore, then with it. 6029for ac_symprfx in "" "_"; do 6030 6031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6032 symxfrm="\\1 $ac_symprfx\\2 \\2" 6033 6034 # Write the raw and C identifiers. 6035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6036 # Fake it for dumpbin and say T for any non-static function, 6037 # D for any global variable and I for any imported variable. 6038 # Also find C++ and __fastcall symbols from MSVC++, 6039 # which start with @ or ?. 6040 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6041" {last_section=section; section=\$ 3};"\ 6042" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6043" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6044" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6045" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6046" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6047" \$ 0!~/External *\|/{next};"\ 6048" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6049" {if(hide[section]) next};"\ 6050" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6051" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6052" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6053" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6054" ' prfx=^$ac_symprfx" 6055 else 6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6057 fi 6058 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6059 6060 # Check to see that the pipe works correctly. 6061 pipe_works=no 6062 6063 rm -f conftest* 6064 cat > conftest.$ac_ext <<_LT_EOF 6065#ifdef __cplusplus 6066extern "C" { 6067#endif 6068char nm_test_var; 6069void nm_test_func(void); 6070void nm_test_func(void){} 6071#ifdef __cplusplus 6072} 6073#endif 6074int main(){nm_test_var='a';nm_test_func();return(0);} 6075_LT_EOF 6076 6077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6078 (eval $ac_compile) 2>&5 6079 ac_status=$? 6080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6081 test $ac_status = 0; }; then 6082 # Now try to grab the symbols. 6083 nlist=conftest.nm 6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6085 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6086 ac_status=$? 6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6088 test $ac_status = 0; } && test -s "$nlist"; then 6089 # Try sorting and uniquifying the output. 6090 if sort "$nlist" | uniq > "$nlist"T; then 6091 mv -f "$nlist"T "$nlist" 6092 else 6093 rm -f "$nlist"T 6094 fi 6095 6096 # Make sure that we snagged all the symbols we need. 6097 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6098 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6099 cat <<_LT_EOF > conftest.$ac_ext 6100/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6101#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6102/* DATA imports from DLLs on WIN32 can't be const, because runtime 6103 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6104# define LT@&t@_DLSYM_CONST 6105#elif defined __osf__ 6106/* This system does not cope well with relocations in const data. */ 6107# define LT@&t@_DLSYM_CONST 6108#else 6109# define LT@&t@_DLSYM_CONST const 6110#endif 6111 6112#ifdef __cplusplus 6113extern "C" { 6114#endif 6115 6116_LT_EOF 6117 # Now generate the symbol file. 6118 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6119 6120 cat <<_LT_EOF >> conftest.$ac_ext 6121 6122/* The mapping between symbol names and symbols. */ 6123LT@&t@_DLSYM_CONST struct { 6124 const char *name; 6125 void *address; 6126} 6127lt__PROGRAM__LTX_preloaded_symbols[] = 6128{ 6129 { "@PROGRAM@", (void *) 0 }, 6130_LT_EOF 6131 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6132 cat <<\_LT_EOF >> conftest.$ac_ext 6133 {0, (void *) 0} 6134}; 6135 6136/* This works around a problem in FreeBSD linker */ 6137#ifdef FREEBSD_WORKAROUND 6138static const void *lt_preloaded_setup() { 6139 return lt__PROGRAM__LTX_preloaded_symbols; 6140} 6141#endif 6142 6143#ifdef __cplusplus 6144} 6145#endif 6146_LT_EOF 6147 # Now try linking the two files. 6148 mv conftest.$ac_objext conftstm.$ac_objext 6149 lt_globsym_save_LIBS=$LIBS 6150 lt_globsym_save_CFLAGS=$CFLAGS 6151 LIBS=conftstm.$ac_objext 6152 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6154 (eval $ac_link) 2>&5 6155 ac_status=$? 6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6157 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6158 pipe_works=yes 6159 fi 6160 LIBS=$lt_globsym_save_LIBS 6161 CFLAGS=$lt_globsym_save_CFLAGS 6162 else 6163 echo "cannot find nm_test_func in $nlist" >&5 6164 fi 6165 else 6166 echo "cannot find nm_test_var in $nlist" >&5 6167 fi 6168 else 6169 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6170 fi 6171 else 6172 echo "$progname: failed program was:" >&5 6173 cat conftest.$ac_ext >&5 6174 fi 6175 rm -rf conftest* conftst* 6176 6177 # Do not use the global_symbol_pipe unless it works. 6178 if test yes = "$pipe_works"; then 6179 break 6180 else 6181 lt_cv_sys_global_symbol_pipe= 6182 fi 6183done 6184 6185fi 6186 6187if test -z "$lt_cv_sys_global_symbol_pipe"; then 6188 lt_cv_sys_global_symbol_to_cdecl= 6189fi 6190if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6192$as_echo "failed" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6195$as_echo "ok" >&6; } 6196fi 6197 6198# Response file support. 6199if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6200 nm_file_list_spec='@' 6201elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6202 nm_file_list_spec='@' 6203fi 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6242$as_echo_n "checking for sysroot... " >&6; } 6243 6244@%:@ Check whether --with-sysroot was given. 6245if test "${with_sysroot+set}" = set; then : 6246 withval=$with_sysroot; 6247else 6248 with_sysroot=no 6249fi 6250 6251 6252lt_sysroot= 6253case $with_sysroot in #( 6254 yes) 6255 if test yes = "$GCC"; then 6256 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6257 fi 6258 ;; #( 6259 /*) 6260 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6261 ;; #( 6262 no|'') 6263 ;; #( 6264 *) 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6266$as_echo "$with_sysroot" >&6; } 6267 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6268 ;; 6269esac 6270 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6272$as_echo "${lt_sysroot:-no}" >&6; } 6273 6274 6275 6276 6277 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6279$as_echo_n "checking for a working dd... " >&6; } 6280if ${ac_cv_path_lt_DD+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282else 6283 printf 0123456789abcdef0123456789abcdef >conftest.i 6284cat conftest.i conftest.i >conftest2.i 6285: ${lt_DD:=$DD} 6286if test -z "$lt_DD"; then 6287 ac_path_lt_DD_found=false 6288 # Loop through the user's path and test for each of PROGNAME-LIST 6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6290for as_dir in $PATH 6291do 6292 IFS=$as_save_IFS 6293 test -z "$as_dir" && as_dir=. 6294 for ac_prog in dd; do 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6297 as_fn_executable_p "$ac_path_lt_DD" || continue 6298if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6299 cmp -s conftest.i conftest.out \ 6300 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6301fi 6302 $ac_path_lt_DD_found && break 3 6303 done 6304 done 6305 done 6306IFS=$as_save_IFS 6307 if test -z "$ac_cv_path_lt_DD"; then 6308 : 6309 fi 6310else 6311 ac_cv_path_lt_DD=$lt_DD 6312fi 6313 6314rm -f conftest.i conftest2.i conftest.out 6315fi 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6317$as_echo "$ac_cv_path_lt_DD" >&6; } 6318 6319 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6321$as_echo_n "checking how to truncate binary pipes... " >&6; } 6322if ${lt_cv_truncate_bin+:} false; then : 6323 $as_echo_n "(cached) " >&6 6324else 6325 printf 0123456789abcdef0123456789abcdef >conftest.i 6326cat conftest.i conftest.i >conftest2.i 6327lt_cv_truncate_bin= 6328if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6329 cmp -s conftest.i conftest.out \ 6330 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6331fi 6332rm -f conftest.i conftest2.i conftest.out 6333test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6334fi 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6336$as_echo "$lt_cv_truncate_bin" >&6; } 6337 6338 6339 6340 6341 6342 6343 6344# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6345func_cc_basename () 6346{ 6347 for cc_temp in @S|@*""; do 6348 case $cc_temp in 6349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6351 \-*) ;; 6352 *) break;; 6353 esac 6354 done 6355 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6356} 6357 6358@%:@ Check whether --enable-libtool-lock was given. 6359if test "${enable_libtool_lock+set}" = set; then : 6360 enableval=$enable_libtool_lock; 6361fi 6362 6363test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6364 6365# Some flags need to be propagated to the compiler or linker for good 6366# libtool support. 6367case $host in 6368ia64-*-hpux*) 6369 # Find out what ABI is being produced by ac_compile, and set mode 6370 # options accordingly. 6371 echo 'int i;' > conftest.$ac_ext 6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6373 (eval $ac_compile) 2>&5 6374 ac_status=$? 6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6376 test $ac_status = 0; }; then 6377 case `/usr/bin/file conftest.$ac_objext` in 6378 *ELF-32*) 6379 HPUX_IA64_MODE=32 6380 ;; 6381 *ELF-64*) 6382 HPUX_IA64_MODE=64 6383 ;; 6384 esac 6385 fi 6386 rm -rf conftest* 6387 ;; 6388*-*-irix6*) 6389 # Find out what ABI is being produced by ac_compile, and set linker 6390 # options accordingly. 6391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6393 (eval $ac_compile) 2>&5 6394 ac_status=$? 6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6396 test $ac_status = 0; }; then 6397 if test yes = "$lt_cv_prog_gnu_ld"; then 6398 case `/usr/bin/file conftest.$ac_objext` in 6399 *32-bit*) 6400 LD="${LD-ld} -melf32bsmip" 6401 ;; 6402 *N32*) 6403 LD="${LD-ld} -melf32bmipn32" 6404 ;; 6405 *64-bit*) 6406 LD="${LD-ld} -melf64bmip" 6407 ;; 6408 esac 6409 else 6410 case `/usr/bin/file conftest.$ac_objext` in 6411 *32-bit*) 6412 LD="${LD-ld} -32" 6413 ;; 6414 *N32*) 6415 LD="${LD-ld} -n32" 6416 ;; 6417 *64-bit*) 6418 LD="${LD-ld} -64" 6419 ;; 6420 esac 6421 fi 6422 fi 6423 rm -rf conftest* 6424 ;; 6425 6426mips64*-*linux*) 6427 # Find out what ABI is being produced by ac_compile, and set linker 6428 # options accordingly. 6429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6431 (eval $ac_compile) 2>&5 6432 ac_status=$? 6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6434 test $ac_status = 0; }; then 6435 emul=elf 6436 case `/usr/bin/file conftest.$ac_objext` in 6437 *32-bit*) 6438 emul="${emul}32" 6439 ;; 6440 *64-bit*) 6441 emul="${emul}64" 6442 ;; 6443 esac 6444 case `/usr/bin/file conftest.$ac_objext` in 6445 *MSB*) 6446 emul="${emul}btsmip" 6447 ;; 6448 *LSB*) 6449 emul="${emul}ltsmip" 6450 ;; 6451 esac 6452 case `/usr/bin/file conftest.$ac_objext` in 6453 *N32*) 6454 emul="${emul}n32" 6455 ;; 6456 esac 6457 LD="${LD-ld} -m $emul" 6458 fi 6459 rm -rf conftest* 6460 ;; 6461 6462x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6463s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6464 # Find out what ABI is being produced by ac_compile, and set linker 6465 # options accordingly. Note that the listed cases only cover the 6466 # situations where additional linker options are needed (such as when 6467 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6468 # vice versa); the common cases where no linker options are needed do 6469 # not appear in the list. 6470 echo 'int i;' > conftest.$ac_ext 6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6472 (eval $ac_compile) 2>&5 6473 ac_status=$? 6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6475 test $ac_status = 0; }; then 6476 case `/usr/bin/file conftest.o` in 6477 *32-bit*) 6478 case $host in 6479 x86_64-*kfreebsd*-gnu) 6480 LD="${LD-ld} -m elf_i386_fbsd" 6481 ;; 6482 x86_64-*linux*) 6483 case `/usr/bin/file conftest.o` in 6484 *x86-64*) 6485 LD="${LD-ld} -m elf32_x86_64" 6486 ;; 6487 *) 6488 LD="${LD-ld} -m elf_i386" 6489 ;; 6490 esac 6491 ;; 6492 powerpc64le-*linux*) 6493 LD="${LD-ld} -m elf32lppclinux" 6494 ;; 6495 powerpc64-*linux*) 6496 LD="${LD-ld} -m elf32ppclinux" 6497 ;; 6498 s390x-*linux*) 6499 LD="${LD-ld} -m elf_s390" 6500 ;; 6501 sparc64-*linux*) 6502 LD="${LD-ld} -m elf32_sparc" 6503 ;; 6504 esac 6505 ;; 6506 *64-bit*) 6507 case $host in 6508 x86_64-*kfreebsd*-gnu) 6509 LD="${LD-ld} -m elf_x86_64_fbsd" 6510 ;; 6511 x86_64-*linux*) 6512 LD="${LD-ld} -m elf_x86_64" 6513 ;; 6514 powerpcle-*linux*) 6515 LD="${LD-ld} -m elf64lppc" 6516 ;; 6517 powerpc-*linux*) 6518 LD="${LD-ld} -m elf64ppc" 6519 ;; 6520 s390*-*linux*|s390*-*tpf*) 6521 LD="${LD-ld} -m elf64_s390" 6522 ;; 6523 sparc*-*linux*) 6524 LD="${LD-ld} -m elf64_sparc" 6525 ;; 6526 esac 6527 ;; 6528 esac 6529 fi 6530 rm -rf conftest* 6531 ;; 6532 6533*-*-sco3.2v5*) 6534 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6535 SAVE_CFLAGS=$CFLAGS 6536 CFLAGS="$CFLAGS -belf" 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6538$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6539if ${lt_cv_cc_needs_belf+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 ac_ext=c 6543ac_cpp='$CPP $CPPFLAGS' 6544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6546ac_compiler_gnu=$ac_cv_c_compiler_gnu 6547 6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6549/* end confdefs.h. */ 6550 6551int 6552main () 6553{ 6554 6555 ; 6556 return 0; 6557} 6558_ACEOF 6559if ac_fn_c_try_link "$LINENO"; then : 6560 lt_cv_cc_needs_belf=yes 6561else 6562 lt_cv_cc_needs_belf=no 6563fi 6564rm -f core conftest.err conftest.$ac_objext \ 6565 conftest$ac_exeext conftest.$ac_ext 6566 ac_ext=c 6567ac_cpp='$CPP $CPPFLAGS' 6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6570ac_compiler_gnu=$ac_cv_c_compiler_gnu 6571 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6574$as_echo "$lt_cv_cc_needs_belf" >&6; } 6575 if test yes != "$lt_cv_cc_needs_belf"; then 6576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6577 CFLAGS=$SAVE_CFLAGS 6578 fi 6579 ;; 6580*-*solaris*) 6581 # Find out what ABI is being produced by ac_compile, and set linker 6582 # options accordingly. 6583 echo 'int i;' > conftest.$ac_ext 6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6585 (eval $ac_compile) 2>&5 6586 ac_status=$? 6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6588 test $ac_status = 0; }; then 6589 case `/usr/bin/file conftest.o` in 6590 *64-bit*) 6591 case $lt_cv_prog_gnu_ld in 6592 yes*) 6593 case $host in 6594 i?86-*-solaris*|x86_64-*-solaris*) 6595 LD="${LD-ld} -m elf_x86_64" 6596 ;; 6597 sparc*-*-solaris*) 6598 LD="${LD-ld} -m elf64_sparc" 6599 ;; 6600 esac 6601 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6602 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6603 LD=${LD-ld}_sol2 6604 fi 6605 ;; 6606 *) 6607 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6608 LD="${LD-ld} -64" 6609 fi 6610 ;; 6611 esac 6612 ;; 6613 esac 6614 fi 6615 rm -rf conftest* 6616 ;; 6617esac 6618 6619need_locks=$enable_libtool_lock 6620 6621if test -n "$ac_tool_prefix"; then 6622 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6623set dummy ${ac_tool_prefix}mt; ac_word=$2 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6625$as_echo_n "checking for $ac_word... " >&6; } 6626if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628else 6629 if test -n "$MANIFEST_TOOL"; then 6630 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6631else 6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633for as_dir in $PATH 6634do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6639 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643done 6644 done 6645IFS=$as_save_IFS 6646 6647fi 6648fi 6649MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6650if test -n "$MANIFEST_TOOL"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6652$as_echo "$MANIFEST_TOOL" >&6; } 6653else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655$as_echo "no" >&6; } 6656fi 6657 6658 6659fi 6660if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6661 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6662 # Extract the first word of "mt", so it can be a program name with args. 6663set dummy mt; ac_word=$2 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6665$as_echo_n "checking for $ac_word... " >&6; } 6666if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 if test -n "$ac_ct_MANIFEST_TOOL"; then 6670 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6671else 6672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6673for as_dir in $PATH 6674do 6675 IFS=$as_save_IFS 6676 test -z "$as_dir" && as_dir=. 6677 for ac_exec_ext in '' $ac_executable_extensions; do 6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6679 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6681 break 2 6682 fi 6683done 6684 done 6685IFS=$as_save_IFS 6686 6687fi 6688fi 6689ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6690if test -n "$ac_ct_MANIFEST_TOOL"; then 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6692$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6693else 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6695$as_echo "no" >&6; } 6696fi 6697 6698 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6699 MANIFEST_TOOL=":" 6700 else 6701 case $cross_compiling:$ac_tool_warned in 6702yes:) 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6705ac_tool_warned=yes ;; 6706esac 6707 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6708 fi 6709else 6710 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6711fi 6712 6713test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6715$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6716if ${lt_cv_path_mainfest_tool+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 lt_cv_path_mainfest_tool=no 6720 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6721 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6722 cat conftest.err >&5 6723 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6724 lt_cv_path_mainfest_tool=yes 6725 fi 6726 rm -f conftest* 6727fi 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6729$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6730if test yes != "$lt_cv_path_mainfest_tool"; then 6731 MANIFEST_TOOL=: 6732fi 6733 6734 6735 6736 6737 6738 6739 case $host_os in 6740 rhapsody* | darwin*) 6741 if test -n "$ac_tool_prefix"; then 6742 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6743set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745$as_echo_n "checking for $ac_word... " >&6; } 6746if ${ac_cv_prog_DSYMUTIL+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 if test -n "$DSYMUTIL"; then 6750 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 test -z "$as_dir" && as_dir=. 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763done 6764 done 6765IFS=$as_save_IFS 6766 6767fi 6768fi 6769DSYMUTIL=$ac_cv_prog_DSYMUTIL 6770if test -n "$DSYMUTIL"; then 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6772$as_echo "$DSYMUTIL" >&6; } 6773else 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6775$as_echo "no" >&6; } 6776fi 6777 6778 6779fi 6780if test -z "$ac_cv_prog_DSYMUTIL"; then 6781 ac_ct_DSYMUTIL=$DSYMUTIL 6782 # Extract the first word of "dsymutil", so it can be a program name with args. 6783set dummy dsymutil; ac_word=$2 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6785$as_echo_n "checking for $ac_word... " >&6; } 6786if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 if test -n "$ac_ct_DSYMUTIL"; then 6790 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6791else 6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6799 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804 done 6805IFS=$as_save_IFS 6806 6807fi 6808fi 6809ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6810if test -n "$ac_ct_DSYMUTIL"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6812$as_echo "$ac_ct_DSYMUTIL" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815$as_echo "no" >&6; } 6816fi 6817 6818 if test "x$ac_ct_DSYMUTIL" = x; then 6819 DSYMUTIL=":" 6820 else 6821 case $cross_compiling:$ac_tool_warned in 6822yes:) 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6825ac_tool_warned=yes ;; 6826esac 6827 DSYMUTIL=$ac_ct_DSYMUTIL 6828 fi 6829else 6830 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6831fi 6832 6833 if test -n "$ac_tool_prefix"; then 6834 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6835set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6837$as_echo_n "checking for $ac_word... " >&6; } 6838if ${ac_cv_prog_NMEDIT+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 if test -n "$NMEDIT"; then 6842 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6843else 6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6845for as_dir in $PATH 6846do 6847 IFS=$as_save_IFS 6848 test -z "$as_dir" && as_dir=. 6849 for ac_exec_ext in '' $ac_executable_extensions; do 6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6851 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6853 break 2 6854 fi 6855done 6856 done 6857IFS=$as_save_IFS 6858 6859fi 6860fi 6861NMEDIT=$ac_cv_prog_NMEDIT 6862if test -n "$NMEDIT"; then 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6864$as_echo "$NMEDIT" >&6; } 6865else 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6867$as_echo "no" >&6; } 6868fi 6869 6870 6871fi 6872if test -z "$ac_cv_prog_NMEDIT"; then 6873 ac_ct_NMEDIT=$NMEDIT 6874 # Extract the first word of "nmedit", so it can be a program name with args. 6875set dummy nmedit; ac_word=$2 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6877$as_echo_n "checking for $ac_word... " >&6; } 6878if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 if test -n "$ac_ct_NMEDIT"; then 6882 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6883else 6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6885for as_dir in $PATH 6886do 6887 IFS=$as_save_IFS 6888 test -z "$as_dir" && as_dir=. 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6902if test -n "$ac_ct_NMEDIT"; then 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6904$as_echo "$ac_ct_NMEDIT" >&6; } 6905else 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907$as_echo "no" >&6; } 6908fi 6909 6910 if test "x$ac_ct_NMEDIT" = x; then 6911 NMEDIT=":" 6912 else 6913 case $cross_compiling:$ac_tool_warned in 6914yes:) 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6917ac_tool_warned=yes ;; 6918esac 6919 NMEDIT=$ac_ct_NMEDIT 6920 fi 6921else 6922 NMEDIT="$ac_cv_prog_NMEDIT" 6923fi 6924 6925 if test -n "$ac_tool_prefix"; then 6926 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6927set dummy ${ac_tool_prefix}lipo; ac_word=$2 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6929$as_echo_n "checking for $ac_word... " >&6; } 6930if ${ac_cv_prog_LIPO+:} false; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 if test -n "$LIPO"; then 6934 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6935else 6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6937for as_dir in $PATH 6938do 6939 IFS=$as_save_IFS 6940 test -z "$as_dir" && as_dir=. 6941 for ac_exec_ext in '' $ac_executable_extensions; do 6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6943 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6945 break 2 6946 fi 6947done 6948 done 6949IFS=$as_save_IFS 6950 6951fi 6952fi 6953LIPO=$ac_cv_prog_LIPO 6954if test -n "$LIPO"; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6956$as_echo "$LIPO" >&6; } 6957else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6959$as_echo "no" >&6; } 6960fi 6961 6962 6963fi 6964if test -z "$ac_cv_prog_LIPO"; then 6965 ac_ct_LIPO=$LIPO 6966 # Extract the first word of "lipo", so it can be a program name with args. 6967set dummy lipo; ac_word=$2 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6969$as_echo_n "checking for $ac_word... " >&6; } 6970if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 if test -n "$ac_ct_LIPO"; then 6974 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6975else 6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_exec_ext in '' $ac_executable_extensions; do 6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6983 ac_cv_prog_ac_ct_LIPO="lipo" 6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6985 break 2 6986 fi 6987done 6988 done 6989IFS=$as_save_IFS 6990 6991fi 6992fi 6993ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6994if test -n "$ac_ct_LIPO"; then 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6996$as_echo "$ac_ct_LIPO" >&6; } 6997else 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6999$as_echo "no" >&6; } 7000fi 7001 7002 if test "x$ac_ct_LIPO" = x; then 7003 LIPO=":" 7004 else 7005 case $cross_compiling:$ac_tool_warned in 7006yes:) 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7009ac_tool_warned=yes ;; 7010esac 7011 LIPO=$ac_ct_LIPO 7012 fi 7013else 7014 LIPO="$ac_cv_prog_LIPO" 7015fi 7016 7017 if test -n "$ac_tool_prefix"; then 7018 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7019set dummy ${ac_tool_prefix}otool; ac_word=$2 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7021$as_echo_n "checking for $ac_word... " >&6; } 7022if ${ac_cv_prog_OTOOL+:} false; then : 7023 $as_echo_n "(cached) " >&6 7024else 7025 if test -n "$OTOOL"; then 7026 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7027else 7028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7029for as_dir in $PATH 7030do 7031 IFS=$as_save_IFS 7032 test -z "$as_dir" && as_dir=. 7033 for ac_exec_ext in '' $ac_executable_extensions; do 7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7035 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7037 break 2 7038 fi 7039done 7040 done 7041IFS=$as_save_IFS 7042 7043fi 7044fi 7045OTOOL=$ac_cv_prog_OTOOL 7046if test -n "$OTOOL"; then 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7048$as_echo "$OTOOL" >&6; } 7049else 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7051$as_echo "no" >&6; } 7052fi 7053 7054 7055fi 7056if test -z "$ac_cv_prog_OTOOL"; then 7057 ac_ct_OTOOL=$OTOOL 7058 # Extract the first word of "otool", so it can be a program name with args. 7059set dummy otool; ac_word=$2 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7061$as_echo_n "checking for $ac_word... " >&6; } 7062if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064else 7065 if test -n "$ac_ct_OTOOL"; then 7066 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7067else 7068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7069for as_dir in $PATH 7070do 7071 IFS=$as_save_IFS 7072 test -z "$as_dir" && as_dir=. 7073 for ac_exec_ext in '' $ac_executable_extensions; do 7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7075 ac_cv_prog_ac_ct_OTOOL="otool" 7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7077 break 2 7078 fi 7079done 7080 done 7081IFS=$as_save_IFS 7082 7083fi 7084fi 7085ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7086if test -n "$ac_ct_OTOOL"; then 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7088$as_echo "$ac_ct_OTOOL" >&6; } 7089else 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7091$as_echo "no" >&6; } 7092fi 7093 7094 if test "x$ac_ct_OTOOL" = x; then 7095 OTOOL=":" 7096 else 7097 case $cross_compiling:$ac_tool_warned in 7098yes:) 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7101ac_tool_warned=yes ;; 7102esac 7103 OTOOL=$ac_ct_OTOOL 7104 fi 7105else 7106 OTOOL="$ac_cv_prog_OTOOL" 7107fi 7108 7109 if test -n "$ac_tool_prefix"; then 7110 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7111set dummy ${ac_tool_prefix}otool64; ac_word=$2 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7113$as_echo_n "checking for $ac_word... " >&6; } 7114if ${ac_cv_prog_OTOOL64+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 if test -n "$OTOOL64"; then 7118 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7119else 7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7121for as_dir in $PATH 7122do 7123 IFS=$as_save_IFS 7124 test -z "$as_dir" && as_dir=. 7125 for ac_exec_ext in '' $ac_executable_extensions; do 7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7127 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7129 break 2 7130 fi 7131done 7132 done 7133IFS=$as_save_IFS 7134 7135fi 7136fi 7137OTOOL64=$ac_cv_prog_OTOOL64 7138if test -n "$OTOOL64"; then 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7140$as_echo "$OTOOL64" >&6; } 7141else 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7143$as_echo "no" >&6; } 7144fi 7145 7146 7147fi 7148if test -z "$ac_cv_prog_OTOOL64"; then 7149 ac_ct_OTOOL64=$OTOOL64 7150 # Extract the first word of "otool64", so it can be a program name with args. 7151set dummy otool64; ac_word=$2 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7153$as_echo_n "checking for $ac_word... " >&6; } 7154if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7155 $as_echo_n "(cached) " >&6 7156else 7157 if test -n "$ac_ct_OTOOL64"; then 7158 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7159else 7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7161for as_dir in $PATH 7162do 7163 IFS=$as_save_IFS 7164 test -z "$as_dir" && as_dir=. 7165 for ac_exec_ext in '' $ac_executable_extensions; do 7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7167 ac_cv_prog_ac_ct_OTOOL64="otool64" 7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7169 break 2 7170 fi 7171done 7172 done 7173IFS=$as_save_IFS 7174 7175fi 7176fi 7177ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7178if test -n "$ac_ct_OTOOL64"; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7180$as_echo "$ac_ct_OTOOL64" >&6; } 7181else 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7183$as_echo "no" >&6; } 7184fi 7185 7186 if test "x$ac_ct_OTOOL64" = x; then 7187 OTOOL64=":" 7188 else 7189 case $cross_compiling:$ac_tool_warned in 7190yes:) 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7193ac_tool_warned=yes ;; 7194esac 7195 OTOOL64=$ac_ct_OTOOL64 7196 fi 7197else 7198 OTOOL64="$ac_cv_prog_OTOOL64" 7199fi 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7228$as_echo_n "checking for -single_module linker flag... " >&6; } 7229if ${lt_cv_apple_cc_single_mod+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 lt_cv_apple_cc_single_mod=no 7233 if test -z "$LT_MULTI_MODULE"; then 7234 # By default we will add the -single_module flag. You can override 7235 # by either setting the environment variable LT_MULTI_MODULE 7236 # non-empty at configure time, or by adding -multi_module to the 7237 # link flags. 7238 rm -rf libconftest.dylib* 7239 echo "int foo(void){return 1;}" > conftest.c 7240 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7241-dynamiclib -Wl,-single_module conftest.c" >&5 7242 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7243 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7244 _lt_result=$? 7245 # If there is a non-empty error log, and "single_module" 7246 # appears in it, assume the flag caused a linker warning 7247 if test -s conftest.err && $GREP single_module conftest.err; then 7248 cat conftest.err >&5 7249 # Otherwise, if the output was created with a 0 exit code from 7250 # the compiler, it worked. 7251 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7252 lt_cv_apple_cc_single_mod=yes 7253 else 7254 cat conftest.err >&5 7255 fi 7256 rm -rf libconftest.dylib* 7257 rm -f conftest.* 7258 fi 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7261$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7262 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7264$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7265if ${lt_cv_ld_exported_symbols_list+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 lt_cv_ld_exported_symbols_list=no 7269 save_LDFLAGS=$LDFLAGS 7270 echo "_main" > conftest.sym 7271 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274 7275int 7276main () 7277{ 7278 7279 ; 7280 return 0; 7281} 7282_ACEOF 7283if ac_fn_c_try_link "$LINENO"; then : 7284 lt_cv_ld_exported_symbols_list=yes 7285else 7286 lt_cv_ld_exported_symbols_list=no 7287fi 7288rm -f core conftest.err conftest.$ac_objext \ 7289 conftest$ac_exeext conftest.$ac_ext 7290 LDFLAGS=$save_LDFLAGS 7291 7292fi 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7294$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7295 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7297$as_echo_n "checking for -force_load linker flag... " >&6; } 7298if ${lt_cv_ld_force_load+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 lt_cv_ld_force_load=no 7302 cat > conftest.c << _LT_EOF 7303int forced_loaded() { return 2;} 7304_LT_EOF 7305 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7306 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7307 echo "$AR cru libconftest.a conftest.o" >&5 7308 $AR cru libconftest.a conftest.o 2>&5 7309 echo "$RANLIB libconftest.a" >&5 7310 $RANLIB libconftest.a 2>&5 7311 cat > conftest.c << _LT_EOF 7312int main() { return 0;} 7313_LT_EOF 7314 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7315 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7316 _lt_result=$? 7317 if test -s conftest.err && $GREP force_load conftest.err; then 7318 cat conftest.err >&5 7319 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7320 lt_cv_ld_force_load=yes 7321 else 7322 cat conftest.err >&5 7323 fi 7324 rm -f conftest.err libconftest.a conftest conftest.c 7325 rm -rf conftest.dSYM 7326 7327fi 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7329$as_echo "$lt_cv_ld_force_load" >&6; } 7330 case $host_os in 7331 rhapsody* | darwin1.[012]) 7332 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7333 darwin1.*) 7334 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7335 darwin*) # darwin 5.x on 7336 # if running on 10.5 or later, the deployment target defaults 7337 # to the OS version, if on x86, and 10.4, the deployment 7338 # target defaults to 10.4. Don't you love it? 7339 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7340 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7341 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7342 10.[012][,.]*) 7343 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7344 10.*) 7345 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7346 esac 7347 ;; 7348 esac 7349 if test yes = "$lt_cv_apple_cc_single_mod"; then 7350 _lt_dar_single_mod='$single_module' 7351 fi 7352 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7353 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7354 else 7355 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7356 fi 7357 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7358 _lt_dsymutil='~$DSYMUTIL $lib || :' 7359 else 7360 _lt_dsymutil= 7361 fi 7362 ;; 7363 esac 7364 7365# func_munge_path_list VARIABLE PATH 7366# ----------------------------------- 7367# VARIABLE is name of variable containing _space_ separated list of 7368# directories to be munged by the contents of PATH, which is string 7369# having a format: 7370# "DIR[:DIR]:" 7371# string "DIR[ DIR]" will be prepended to VARIABLE 7372# ":DIR[:DIR]" 7373# string "DIR[ DIR]" will be appended to VARIABLE 7374# "DIRP[:DIRP]::[DIRA:]DIRA" 7375# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7376# "DIRA[ DIRA]" will be appended to VARIABLE 7377# "DIR[:DIR]" 7378# VARIABLE will be replaced by "DIR[ DIR]" 7379func_munge_path_list () 7380{ 7381 case x@S|@2 in 7382 x) 7383 ;; 7384 *:) 7385 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 7386 ;; 7387 x:*) 7388 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 7389 ;; 7390 *::*) 7391 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7392 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 7393 ;; 7394 *) 7395 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 7396 ;; 7397 esac 7398} 7399 7400ac_ext=c 7401ac_cpp='$CPP $CPPFLAGS' 7402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7404ac_compiler_gnu=$ac_cv_c_compiler_gnu 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7406$as_echo_n "checking how to run the C preprocessor... " >&6; } 7407# On Suns, sometimes $CPP names a directory. 7408if test -n "$CPP" && test -d "$CPP"; then 7409 CPP= 7410fi 7411if test -z "$CPP"; then 7412 if ${ac_cv_prog_CPP+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 # Double quotes because CPP needs to be expanded 7416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7417 do 7418 ac_preproc_ok=false 7419for ac_c_preproc_warn_flag in '' yes 7420do 7421 # Use a header file that comes with gcc, so configuring glibc 7422 # with a fresh cross-compiler works. 7423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7424 # <limits.h> exists even on freestanding compilers. 7425 # On the NeXT, cc -E runs the code through the compiler's parser, 7426 # not just through cpp. "Syntax error" is here to catch this case. 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429@%:@ifdef __STDC__ 7430@%:@ include <limits.h> 7431@%:@else 7432@%:@ include <assert.h> 7433@%:@endif 7434 Syntax error 7435_ACEOF 7436if ac_fn_c_try_cpp "$LINENO"; then : 7437 7438else 7439 # Broken: fails on valid input. 7440continue 7441fi 7442rm -f conftest.err conftest.i conftest.$ac_ext 7443 7444 # OK, works on sane cases. Now check whether nonexistent headers 7445 # can be detected and how. 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448@%:@include <ac_nonexistent.h> 7449_ACEOF 7450if ac_fn_c_try_cpp "$LINENO"; then : 7451 # Broken: success on invalid input. 7452continue 7453else 7454 # Passes both tests. 7455ac_preproc_ok=: 7456break 7457fi 7458rm -f conftest.err conftest.i conftest.$ac_ext 7459 7460done 7461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7462rm -f conftest.i conftest.err conftest.$ac_ext 7463if $ac_preproc_ok; then : 7464 break 7465fi 7466 7467 done 7468 ac_cv_prog_CPP=$CPP 7469 7470fi 7471 CPP=$ac_cv_prog_CPP 7472else 7473 ac_cv_prog_CPP=$CPP 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7476$as_echo "$CPP" >&6; } 7477ac_preproc_ok=false 7478for ac_c_preproc_warn_flag in '' yes 7479do 7480 # Use a header file that comes with gcc, so configuring glibc 7481 # with a fresh cross-compiler works. 7482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7483 # <limits.h> exists even on freestanding compilers. 7484 # On the NeXT, cc -E runs the code through the compiler's parser, 7485 # not just through cpp. "Syntax error" is here to catch this case. 7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7487/* end confdefs.h. */ 7488@%:@ifdef __STDC__ 7489@%:@ include <limits.h> 7490@%:@else 7491@%:@ include <assert.h> 7492@%:@endif 7493 Syntax error 7494_ACEOF 7495if ac_fn_c_try_cpp "$LINENO"; then : 7496 7497else 7498 # Broken: fails on valid input. 7499continue 7500fi 7501rm -f conftest.err conftest.i conftest.$ac_ext 7502 7503 # OK, works on sane cases. Now check whether nonexistent headers 7504 # can be detected and how. 7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7506/* end confdefs.h. */ 7507@%:@include <ac_nonexistent.h> 7508_ACEOF 7509if ac_fn_c_try_cpp "$LINENO"; then : 7510 # Broken: success on invalid input. 7511continue 7512else 7513 # Passes both tests. 7514ac_preproc_ok=: 7515break 7516fi 7517rm -f conftest.err conftest.i conftest.$ac_ext 7518 7519done 7520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7521rm -f conftest.i conftest.err conftest.$ac_ext 7522if $ac_preproc_ok; then : 7523 7524else 7525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7527as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7528See \`config.log' for more details" "$LINENO" 5; } 7529fi 7530 7531ac_ext=c 7532ac_cpp='$CPP $CPPFLAGS' 7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7535ac_compiler_gnu=$ac_cv_c_compiler_gnu 7536 7537 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7539$as_echo_n "checking for ANSI C header files... " >&6; } 7540if ${ac_cv_header_stdc+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545#include <stdlib.h> 7546#include <stdarg.h> 7547#include <string.h> 7548#include <float.h> 7549 7550int 7551main () 7552{ 7553 7554 ; 7555 return 0; 7556} 7557_ACEOF 7558if ac_fn_c_try_compile "$LINENO"; then : 7559 ac_cv_header_stdc=yes 7560else 7561 ac_cv_header_stdc=no 7562fi 7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7564 7565if test $ac_cv_header_stdc = yes; then 7566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568/* end confdefs.h. */ 7569#include <string.h> 7570 7571_ACEOF 7572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7573 $EGREP "memchr" >/dev/null 2>&1; then : 7574 7575else 7576 ac_cv_header_stdc=no 7577fi 7578rm -f conftest* 7579 7580fi 7581 7582if test $ac_cv_header_stdc = yes; then 7583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586#include <stdlib.h> 7587 7588_ACEOF 7589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7590 $EGREP "free" >/dev/null 2>&1; then : 7591 7592else 7593 ac_cv_header_stdc=no 7594fi 7595rm -f conftest* 7596 7597fi 7598 7599if test $ac_cv_header_stdc = yes; then 7600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7601 if test "$cross_compiling" = yes; then : 7602 : 7603else 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606#include <ctype.h> 7607#include <stdlib.h> 7608#if ((' ' & 0x0FF) == 0x020) 7609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7611#else 7612# define ISLOWER(c) \ 7613 (('a' <= (c) && (c) <= 'i') \ 7614 || ('j' <= (c) && (c) <= 'r') \ 7615 || ('s' <= (c) && (c) <= 'z')) 7616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7617#endif 7618 7619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7620int 7621main () 7622{ 7623 int i; 7624 for (i = 0; i < 256; i++) 7625 if (XOR (islower (i), ISLOWER (i)) 7626 || toupper (i) != TOUPPER (i)) 7627 return 2; 7628 return 0; 7629} 7630_ACEOF 7631if ac_fn_c_try_run "$LINENO"; then : 7632 7633else 7634 ac_cv_header_stdc=no 7635fi 7636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7637 conftest.$ac_objext conftest.beam conftest.$ac_ext 7638fi 7639 7640fi 7641fi 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7643$as_echo "$ac_cv_header_stdc" >&6; } 7644if test $ac_cv_header_stdc = yes; then 7645 7646$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 7647 7648fi 7649 7650# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7651for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7652 inttypes.h stdint.h unistd.h 7653do : 7654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7655ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7656" 7657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7658 cat >>confdefs.h <<_ACEOF 7659@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7660_ACEOF 7661 7662fi 7663 7664done 7665 7666 7667for ac_header in dlfcn.h 7668do : 7669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7670" 7671if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7672 cat >>confdefs.h <<_ACEOF 7673@%:@define HAVE_DLFCN_H 1 7674_ACEOF 7675 7676fi 7677 7678done 7679 7680 7681 7682 7683 7684# Set options 7685 7686 7687 7688 enable_dlopen=no 7689 7690 7691 enable_win32_dll=no 7692 7693 7694 @%:@ Check whether --enable-shared was given. 7695if test "${enable_shared+set}" = set; then : 7696 enableval=$enable_shared; p=${PACKAGE-default} 7697 case $enableval in 7698 yes) enable_shared=yes ;; 7699 no) enable_shared=no ;; 7700 *) 7701 enable_shared=no 7702 # Look at the argument we got. We use all the common list separators. 7703 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7704 for pkg in $enableval; do 7705 IFS=$lt_save_ifs 7706 if test "X$pkg" = "X$p"; then 7707 enable_shared=yes 7708 fi 7709 done 7710 IFS=$lt_save_ifs 7711 ;; 7712 esac 7713else 7714 enable_shared=yes 7715fi 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 @%:@ Check whether --enable-static was given. 7726if test "${enable_static+set}" = set; then : 7727 enableval=$enable_static; p=${PACKAGE-default} 7728 case $enableval in 7729 yes) enable_static=yes ;; 7730 no) enable_static=no ;; 7731 *) 7732 enable_static=no 7733 # Look at the argument we got. We use all the common list separators. 7734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7735 for pkg in $enableval; do 7736 IFS=$lt_save_ifs 7737 if test "X$pkg" = "X$p"; then 7738 enable_static=yes 7739 fi 7740 done 7741 IFS=$lt_save_ifs 7742 ;; 7743 esac 7744else 7745 enable_static=yes 7746fi 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757@%:@ Check whether --with-pic was given. 7758if test "${with_pic+set}" = set; then : 7759 withval=$with_pic; lt_p=${PACKAGE-default} 7760 case $withval in 7761 yes|no) pic_mode=$withval ;; 7762 *) 7763 pic_mode=default 7764 # Look at the argument we got. We use all the common list separators. 7765 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7766 for lt_pkg in $withval; do 7767 IFS=$lt_save_ifs 7768 if test "X$lt_pkg" = "X$lt_p"; then 7769 pic_mode=yes 7770 fi 7771 done 7772 IFS=$lt_save_ifs 7773 ;; 7774 esac 7775else 7776 pic_mode=default 7777fi 7778 7779 7780 7781 7782 7783 7784 7785 7786 @%:@ Check whether --enable-fast-install was given. 7787if test "${enable_fast_install+set}" = set; then : 7788 enableval=$enable_fast_install; p=${PACKAGE-default} 7789 case $enableval in 7790 yes) enable_fast_install=yes ;; 7791 no) enable_fast_install=no ;; 7792 *) 7793 enable_fast_install=no 7794 # Look at the argument we got. We use all the common list separators. 7795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7796 for pkg in $enableval; do 7797 IFS=$lt_save_ifs 7798 if test "X$pkg" = "X$p"; then 7799 enable_fast_install=yes 7800 fi 7801 done 7802 IFS=$lt_save_ifs 7803 ;; 7804 esac 7805else 7806 enable_fast_install=yes 7807fi 7808 7809 7810 7811 7812 7813 7814 7815 7816 shared_archive_member_spec= 7817case $host,$enable_shared in 7818power*-*-aix[5-9]*,yes) 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7820$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7821 7822@%:@ Check whether --with-aix-soname was given. 7823if test "${with_aix_soname+set}" = set; then : 7824 withval=$with_aix_soname; case $withval in 7825 aix|svr4|both) 7826 ;; 7827 *) 7828 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7829 ;; 7830 esac 7831 lt_cv_with_aix_soname=$with_aix_soname 7832else 7833 if ${lt_cv_with_aix_soname+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 lt_cv_with_aix_soname=aix 7837fi 7838 7839 with_aix_soname=$lt_cv_with_aix_soname 7840fi 7841 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7843$as_echo "$with_aix_soname" >&6; } 7844 if test aix != "$with_aix_soname"; then 7845 # For the AIX way of multilib, we name the shared archive member 7846 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7847 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7848 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7849 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7850 if test 64 = "${OBJECT_MODE-32}"; then 7851 shared_archive_member_spec=shr_64 7852 else 7853 shared_archive_member_spec=shr 7854 fi 7855 fi 7856 ;; 7857*) 7858 with_aix_soname=aix 7859 ;; 7860esac 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871# This can be used to rebuild libtool when needed 7872LIBTOOL_DEPS=$ltmain 7873 7874# Always use our own libtool. 7875LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906test -z "$LN_S" && LN_S="ln -s" 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921if test -n "${ZSH_VERSION+set}"; then 7922 setopt NO_GLOB_SUBST 7923fi 7924 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7926$as_echo_n "checking for objdir... " >&6; } 7927if ${lt_cv_objdir+:} false; then : 7928 $as_echo_n "(cached) " >&6 7929else 7930 rm -f .libs 2>/dev/null 7931mkdir .libs 2>/dev/null 7932if test -d .libs; then 7933 lt_cv_objdir=.libs 7934else 7935 # MS-DOS does not allow filenames that begin with a dot. 7936 lt_cv_objdir=_libs 7937fi 7938rmdir .libs 2>/dev/null 7939fi 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7941$as_echo "$lt_cv_objdir" >&6; } 7942objdir=$lt_cv_objdir 7943 7944 7945 7946 7947 7948cat >>confdefs.h <<_ACEOF 7949@%:@define LT_OBJDIR "$lt_cv_objdir/" 7950_ACEOF 7951 7952 7953 7954 7955case $host_os in 7956aix3*) 7957 # AIX sometimes has problems with the GCC collect2 program. For some 7958 # reason, if we set the COLLECT_NAMES environment variable, the problems 7959 # vanish in a puff of smoke. 7960 if test set != "${COLLECT_NAMES+set}"; then 7961 COLLECT_NAMES= 7962 export COLLECT_NAMES 7963 fi 7964 ;; 7965esac 7966 7967# Global variables: 7968ofile=libtool 7969can_build_shared=yes 7970 7971# All known linkers require a '.a' archive for static linking (except MSVC, 7972# which needs '.lib'). 7973libext=a 7974 7975with_gnu_ld=$lt_cv_prog_gnu_ld 7976 7977old_CC=$CC 7978old_CFLAGS=$CFLAGS 7979 7980# Set sane defaults for various variables 7981test -z "$CC" && CC=cc 7982test -z "$LTCC" && LTCC=$CC 7983test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7984test -z "$LD" && LD=ld 7985test -z "$ac_objext" && ac_objext=o 7986 7987func_cc_basename $compiler 7988cc_basename=$func_cc_basename_result 7989 7990 7991# Only perform the check for file, if the check method requires it 7992test -z "$MAGIC_CMD" && MAGIC_CMD=file 7993case $deplibs_check_method in 7994file_magic*) 7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7997$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7998if ${lt_cv_path_MAGIC_CMD+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000else 8001 case $MAGIC_CMD in 8002[\\/*] | ?:[\\/]*) 8003 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8004 ;; 8005*) 8006 lt_save_MAGIC_CMD=$MAGIC_CMD 8007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8009 for ac_dir in $ac_dummy; do 8010 IFS=$lt_save_ifs 8011 test -z "$ac_dir" && ac_dir=. 8012 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8013 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8014 if test -n "$file_magic_test_file"; then 8015 case $deplibs_check_method in 8016 "file_magic "*) 8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8020 $EGREP "$file_magic_regex" > /dev/null; then 8021 : 8022 else 8023 cat <<_LT_EOF 1>&2 8024 8025*** Warning: the command libtool uses to detect shared libraries, 8026*** $file_magic_cmd, produces output that libtool cannot recognize. 8027*** The result is that libtool may fail to recognize shared libraries 8028*** as such. This will affect the creation of libtool libraries that 8029*** depend on shared libraries, but programs linked with such libtool 8030*** libraries will work regardless of this problem. Nevertheless, you 8031*** may want to report the problem to your system manager and/or to 8032*** bug-libtool@gnu.org 8033 8034_LT_EOF 8035 fi ;; 8036 esac 8037 fi 8038 break 8039 fi 8040 done 8041 IFS=$lt_save_ifs 8042 MAGIC_CMD=$lt_save_MAGIC_CMD 8043 ;; 8044esac 8045fi 8046 8047MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8048if test -n "$MAGIC_CMD"; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8050$as_echo "$MAGIC_CMD" >&6; } 8051else 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8053$as_echo "no" >&6; } 8054fi 8055 8056 8057 8058 8059 8060if test -z "$lt_cv_path_MAGIC_CMD"; then 8061 if test -n "$ac_tool_prefix"; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8063$as_echo_n "checking for file... " >&6; } 8064if ${lt_cv_path_MAGIC_CMD+:} false; then : 8065 $as_echo_n "(cached) " >&6 8066else 8067 case $MAGIC_CMD in 8068[\\/*] | ?:[\\/]*) 8069 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8070 ;; 8071*) 8072 lt_save_MAGIC_CMD=$MAGIC_CMD 8073 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8075 for ac_dir in $ac_dummy; do 8076 IFS=$lt_save_ifs 8077 test -z "$ac_dir" && ac_dir=. 8078 if test -f "$ac_dir/file"; then 8079 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8080 if test -n "$file_magic_test_file"; then 8081 case $deplibs_check_method in 8082 "file_magic "*) 8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8086 $EGREP "$file_magic_regex" > /dev/null; then 8087 : 8088 else 8089 cat <<_LT_EOF 1>&2 8090 8091*** Warning: the command libtool uses to detect shared libraries, 8092*** $file_magic_cmd, produces output that libtool cannot recognize. 8093*** The result is that libtool may fail to recognize shared libraries 8094*** as such. This will affect the creation of libtool libraries that 8095*** depend on shared libraries, but programs linked with such libtool 8096*** libraries will work regardless of this problem. Nevertheless, you 8097*** may want to report the problem to your system manager and/or to 8098*** bug-libtool@gnu.org 8099 8100_LT_EOF 8101 fi ;; 8102 esac 8103 fi 8104 break 8105 fi 8106 done 8107 IFS=$lt_save_ifs 8108 MAGIC_CMD=$lt_save_MAGIC_CMD 8109 ;; 8110esac 8111fi 8112 8113MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8114if test -n "$MAGIC_CMD"; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8116$as_echo "$MAGIC_CMD" >&6; } 8117else 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8119$as_echo "no" >&6; } 8120fi 8121 8122 8123 else 8124 MAGIC_CMD=: 8125 fi 8126fi 8127 8128 fi 8129 ;; 8130esac 8131 8132# Use C for the default configuration in the libtool script 8133 8134lt_save_CC=$CC 8135ac_ext=c 8136ac_cpp='$CPP $CPPFLAGS' 8137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8139ac_compiler_gnu=$ac_cv_c_compiler_gnu 8140 8141 8142# Source file extension for C test sources. 8143ac_ext=c 8144 8145# Object file extension for compiled C test sources. 8146objext=o 8147objext=$objext 8148 8149# Code to be used in simple compile tests 8150lt_simple_compile_test_code="int some_variable = 0;" 8151 8152# Code to be used in simple link tests 8153lt_simple_link_test_code='int main(){return(0);}' 8154 8155 8156 8157 8158 8159 8160 8161# If no C compiler was specified, use CC. 8162LTCC=${LTCC-"$CC"} 8163 8164# If no C compiler flags were specified, use CFLAGS. 8165LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8166 8167# Allow CC to be a program name with arguments. 8168compiler=$CC 8169 8170# Save the default compiler, since it gets overwritten when the other 8171# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8172compiler_DEFAULT=$CC 8173 8174# save warnings/boilerplate of simple test code 8175ac_outfile=conftest.$ac_objext 8176echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8178_lt_compiler_boilerplate=`cat conftest.err` 8179$RM conftest* 8180 8181ac_outfile=conftest.$ac_objext 8182echo "$lt_simple_link_test_code" >conftest.$ac_ext 8183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8184_lt_linker_boilerplate=`cat conftest.err` 8185$RM -r conftest* 8186 8187 8188## CAVEAT EMPTOR: 8189## There is no encapsulation within the following macros, do not change 8190## the running order or otherwise move them around unless you know exactly 8191## what you are doing... 8192if test -n "$compiler"; then 8193 8194lt_prog_compiler_no_builtin_flag= 8195 8196if test yes = "$GCC"; then 8197 case $cc_basename in 8198 nvcc*) 8199 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8200 *) 8201 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8202 esac 8203 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8205$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8206if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 lt_cv_prog_compiler_rtti_exceptions=no 8210 ac_outfile=conftest.$ac_objext 8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8212 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8213 # Insert the option either (1) after the last *FLAGS variable, or 8214 # (2) before a word containing "conftest.", or (3) at the end. 8215 # Note that $ac_compile itself does not contain backslashes and begins 8216 # with a dollar sign (not a hyphen), so the echo should work correctly. 8217 # The option is referenced via a variable to avoid confusing sed. 8218 lt_compile=`echo "$ac_compile" | $SED \ 8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8221 -e 's:$: $lt_compiler_flag:'` 8222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8223 (eval "$lt_compile" 2>conftest.err) 8224 ac_status=$? 8225 cat conftest.err >&5 8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8227 if (exit $ac_status) && test -s "$ac_outfile"; then 8228 # The compiler can only warn and ignore the option if not recognized 8229 # So say no if there are warnings other than the usual output. 8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8233 lt_cv_prog_compiler_rtti_exceptions=yes 8234 fi 8235 fi 8236 $RM conftest* 8237 8238fi 8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8240$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8241 8242if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8244else 8245 : 8246fi 8247 8248fi 8249 8250 8251 8252 8253 8254 8255 lt_prog_compiler_wl= 8256lt_prog_compiler_pic= 8257lt_prog_compiler_static= 8258 8259 8260 if test yes = "$GCC"; then 8261 lt_prog_compiler_wl='-Wl,' 8262 lt_prog_compiler_static='-static' 8263 8264 case $host_os in 8265 aix*) 8266 # All AIX code is PIC. 8267 if test ia64 = "$host_cpu"; then 8268 # AIX 5 now supports IA64 processor 8269 lt_prog_compiler_static='-Bstatic' 8270 fi 8271 lt_prog_compiler_pic='-fPIC' 8272 ;; 8273 8274 amigaos*) 8275 case $host_cpu in 8276 powerpc) 8277 # see comment about AmigaOS4 .so support 8278 lt_prog_compiler_pic='-fPIC' 8279 ;; 8280 m68k) 8281 # FIXME: we need at least 68020 code to build shared libraries, but 8282 # adding the '-m68020' flag to GCC prevents building anything better, 8283 # like '-m68040'. 8284 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8285 ;; 8286 esac 8287 ;; 8288 8289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8290 # PIC is the default for these OSes. 8291 ;; 8292 8293 mingw* | cygwin* | pw32* | os2* | cegcc*) 8294 # This hack is so that the source file can tell whether it is being 8295 # built for inclusion in a dll (and should export symbols for example). 8296 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8297 # (--disable-auto-import) libraries 8298 lt_prog_compiler_pic='-DDLL_EXPORT' 8299 case $host_os in 8300 os2*) 8301 lt_prog_compiler_static='$wl-static' 8302 ;; 8303 esac 8304 ;; 8305 8306 darwin* | rhapsody*) 8307 # PIC is the default on this platform 8308 # Common symbols not allowed in MH_DYLIB files 8309 lt_prog_compiler_pic='-fno-common' 8310 ;; 8311 8312 haiku*) 8313 # PIC is the default for Haiku. 8314 # The "-static" flag exists, but is broken. 8315 lt_prog_compiler_static= 8316 ;; 8317 8318 hpux*) 8319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8321 # sets the default TLS model and affects inlining. 8322 case $host_cpu in 8323 hppa*64*) 8324 # +Z the default 8325 ;; 8326 *) 8327 lt_prog_compiler_pic='-fPIC' 8328 ;; 8329 esac 8330 ;; 8331 8332 interix[3-9]*) 8333 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8334 # Instead, we relocate shared libraries at runtime. 8335 ;; 8336 8337 msdosdjgpp*) 8338 # Just because we use GCC doesn't mean we suddenly get shared libraries 8339 # on systems that don't support them. 8340 lt_prog_compiler_can_build_shared=no 8341 enable_shared=no 8342 ;; 8343 8344 *nto* | *qnx*) 8345 # QNX uses GNU C++, but need to define -shared option too, otherwise 8346 # it will coredump. 8347 lt_prog_compiler_pic='-fPIC -shared' 8348 ;; 8349 8350 sysv4*MP*) 8351 if test -d /usr/nec; then 8352 lt_prog_compiler_pic=-Kconform_pic 8353 fi 8354 ;; 8355 8356 *) 8357 lt_prog_compiler_pic='-fPIC' 8358 ;; 8359 esac 8360 8361 case $cc_basename in 8362 nvcc*) # Cuda Compiler Driver 2.2 8363 lt_prog_compiler_wl='-Xlinker ' 8364 if test -n "$lt_prog_compiler_pic"; then 8365 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8366 fi 8367 ;; 8368 esac 8369 else 8370 # PORTME Check for flag to pass linker flags through the system compiler. 8371 case $host_os in 8372 aix*) 8373 lt_prog_compiler_wl='-Wl,' 8374 if test ia64 = "$host_cpu"; then 8375 # AIX 5 now supports IA64 processor 8376 lt_prog_compiler_static='-Bstatic' 8377 else 8378 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8379 fi 8380 ;; 8381 8382 darwin* | rhapsody*) 8383 # PIC is the default on this platform 8384 # Common symbols not allowed in MH_DYLIB files 8385 lt_prog_compiler_pic='-fno-common' 8386 case $cc_basename in 8387 nagfor*) 8388 # NAG Fortran compiler 8389 lt_prog_compiler_wl='-Wl,-Wl,,' 8390 lt_prog_compiler_pic='-PIC' 8391 lt_prog_compiler_static='-Bstatic' 8392 ;; 8393 esac 8394 ;; 8395 8396 mingw* | cygwin* | pw32* | os2* | cegcc*) 8397 # This hack is so that the source file can tell whether it is being 8398 # built for inclusion in a dll (and should export symbols for example). 8399 lt_prog_compiler_pic='-DDLL_EXPORT' 8400 case $host_os in 8401 os2*) 8402 lt_prog_compiler_static='$wl-static' 8403 ;; 8404 esac 8405 ;; 8406 8407 hpux9* | hpux10* | hpux11*) 8408 lt_prog_compiler_wl='-Wl,' 8409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8410 # not for PA HP-UX. 8411 case $host_cpu in 8412 hppa*64*|ia64*) 8413 # +Z the default 8414 ;; 8415 *) 8416 lt_prog_compiler_pic='+Z' 8417 ;; 8418 esac 8419 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8420 lt_prog_compiler_static='$wl-a ${wl}archive' 8421 ;; 8422 8423 irix5* | irix6* | nonstopux*) 8424 lt_prog_compiler_wl='-Wl,' 8425 # PIC (with -KPIC) is the default. 8426 lt_prog_compiler_static='-non_shared' 8427 ;; 8428 8429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8430 case $cc_basename in 8431 # old Intel for x86_64, which still supported -KPIC. 8432 ecc*) 8433 lt_prog_compiler_wl='-Wl,' 8434 lt_prog_compiler_pic='-KPIC' 8435 lt_prog_compiler_static='-static' 8436 ;; 8437 # icc used to be incompatible with GCC. 8438 # ICC 10 doesn't accept -KPIC any more. 8439 icc* | ifort*) 8440 lt_prog_compiler_wl='-Wl,' 8441 lt_prog_compiler_pic='-fPIC' 8442 lt_prog_compiler_static='-static' 8443 ;; 8444 # Lahey Fortran 8.1. 8445 lf95*) 8446 lt_prog_compiler_wl='-Wl,' 8447 lt_prog_compiler_pic='--shared' 8448 lt_prog_compiler_static='--static' 8449 ;; 8450 nagfor*) 8451 # NAG Fortran compiler 8452 lt_prog_compiler_wl='-Wl,-Wl,,' 8453 lt_prog_compiler_pic='-PIC' 8454 lt_prog_compiler_static='-Bstatic' 8455 ;; 8456 tcc*) 8457 # Fabrice Bellard et al's Tiny C Compiler 8458 lt_prog_compiler_wl='-Wl,' 8459 lt_prog_compiler_pic='-fPIC' 8460 lt_prog_compiler_static='-static' 8461 ;; 8462 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8463 # Portland Group compilers (*not* the Pentium gcc compiler, 8464 # which looks to be a dead project) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-fpic' 8467 lt_prog_compiler_static='-Bstatic' 8468 ;; 8469 ccc*) 8470 lt_prog_compiler_wl='-Wl,' 8471 # All Alpha code is PIC. 8472 lt_prog_compiler_static='-non_shared' 8473 ;; 8474 xl* | bgxl* | bgf* | mpixl*) 8475 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_pic='-qpic' 8478 lt_prog_compiler_static='-qstaticlink' 8479 ;; 8480 *) 8481 case `$CC -V 2>&1 | sed 5q` in 8482 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8483 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8484 lt_prog_compiler_pic='-KPIC' 8485 lt_prog_compiler_static='-Bstatic' 8486 lt_prog_compiler_wl='' 8487 ;; 8488 *Sun\ F* | *Sun*Fortran*) 8489 lt_prog_compiler_pic='-KPIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 lt_prog_compiler_wl='-Qoption ld ' 8492 ;; 8493 *Sun\ C*) 8494 # Sun C 5.9 8495 lt_prog_compiler_pic='-KPIC' 8496 lt_prog_compiler_static='-Bstatic' 8497 lt_prog_compiler_wl='-Wl,' 8498 ;; 8499 *Intel*\ [CF]*Compiler*) 8500 lt_prog_compiler_wl='-Wl,' 8501 lt_prog_compiler_pic='-fPIC' 8502 lt_prog_compiler_static='-static' 8503 ;; 8504 *Portland\ Group*) 8505 lt_prog_compiler_wl='-Wl,' 8506 lt_prog_compiler_pic='-fpic' 8507 lt_prog_compiler_static='-Bstatic' 8508 ;; 8509 esac 8510 ;; 8511 esac 8512 ;; 8513 8514 newsos6) 8515 lt_prog_compiler_pic='-KPIC' 8516 lt_prog_compiler_static='-Bstatic' 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 osf3* | osf4* | osf5*) 8526 lt_prog_compiler_wl='-Wl,' 8527 # All OSF/1 code is PIC. 8528 lt_prog_compiler_static='-non_shared' 8529 ;; 8530 8531 rdos*) 8532 lt_prog_compiler_static='-non_shared' 8533 ;; 8534 8535 solaris*) 8536 lt_prog_compiler_pic='-KPIC' 8537 lt_prog_compiler_static='-Bstatic' 8538 case $cc_basename in 8539 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8540 lt_prog_compiler_wl='-Qoption ld ';; 8541 *) 8542 lt_prog_compiler_wl='-Wl,';; 8543 esac 8544 ;; 8545 8546 sunos4*) 8547 lt_prog_compiler_wl='-Qoption ld ' 8548 lt_prog_compiler_pic='-PIC' 8549 lt_prog_compiler_static='-Bstatic' 8550 ;; 8551 8552 sysv4 | sysv4.2uw2* | sysv4.3*) 8553 lt_prog_compiler_wl='-Wl,' 8554 lt_prog_compiler_pic='-KPIC' 8555 lt_prog_compiler_static='-Bstatic' 8556 ;; 8557 8558 sysv4*MP*) 8559 if test -d /usr/nec; then 8560 lt_prog_compiler_pic='-Kconform_pic' 8561 lt_prog_compiler_static='-Bstatic' 8562 fi 8563 ;; 8564 8565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8566 lt_prog_compiler_wl='-Wl,' 8567 lt_prog_compiler_pic='-KPIC' 8568 lt_prog_compiler_static='-Bstatic' 8569 ;; 8570 8571 unicos*) 8572 lt_prog_compiler_wl='-Wl,' 8573 lt_prog_compiler_can_build_shared=no 8574 ;; 8575 8576 uts4*) 8577 lt_prog_compiler_pic='-pic' 8578 lt_prog_compiler_static='-Bstatic' 8579 ;; 8580 8581 *) 8582 lt_prog_compiler_can_build_shared=no 8583 ;; 8584 esac 8585 fi 8586 8587case $host_os in 8588 # For platforms that do not support PIC, -DPIC is meaningless: 8589 *djgpp*) 8590 lt_prog_compiler_pic= 8591 ;; 8592 *) 8593 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 8594 ;; 8595esac 8596 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8598$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8599if ${lt_cv_prog_compiler_pic+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8605$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8606lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8607 8608# 8609# Check to make sure the PIC flag actually works. 8610# 8611if test -n "$lt_prog_compiler_pic"; then 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8613$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8614if ${lt_cv_prog_compiler_pic_works+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 lt_cv_prog_compiler_pic_works=no 8618 ac_outfile=conftest.$ac_objext 8619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8620 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 8621 # Insert the option either (1) after the last *FLAGS variable, or 8622 # (2) before a word containing "conftest.", or (3) at the end. 8623 # Note that $ac_compile itself does not contain backslashes and begins 8624 # with a dollar sign (not a hyphen), so the echo should work correctly. 8625 # The option is referenced via a variable to avoid confusing sed. 8626 lt_compile=`echo "$ac_compile" | $SED \ 8627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8629 -e 's:$: $lt_compiler_flag:'` 8630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8631 (eval "$lt_compile" 2>conftest.err) 8632 ac_status=$? 8633 cat conftest.err >&5 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 if (exit $ac_status) && test -s "$ac_outfile"; then 8636 # The compiler can only warn and ignore the option if not recognized 8637 # So say no if there are warnings other than the usual output. 8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8641 lt_cv_prog_compiler_pic_works=yes 8642 fi 8643 fi 8644 $RM conftest* 8645 8646fi 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8648$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8649 8650if test yes = "$lt_cv_prog_compiler_pic_works"; then 8651 case $lt_prog_compiler_pic in 8652 "" | " "*) ;; 8653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8654 esac 8655else 8656 lt_prog_compiler_pic= 8657 lt_prog_compiler_can_build_shared=no 8658fi 8659 8660fi 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672# 8673# Check to make sure the static flag actually works. 8674# 8675wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8677$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8678if ${lt_cv_prog_compiler_static_works+:} false; then : 8679 $as_echo_n "(cached) " >&6 8680else 8681 lt_cv_prog_compiler_static_works=no 8682 save_LDFLAGS=$LDFLAGS 8683 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8684 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8685 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8686 # The linker can only warn and ignore the option if not recognized 8687 # So say no if there are warnings 8688 if test -s conftest.err; then 8689 # Append any errors to the config.log. 8690 cat conftest.err 1>&5 8691 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8693 if diff conftest.exp conftest.er2 >/dev/null; then 8694 lt_cv_prog_compiler_static_works=yes 8695 fi 8696 else 8697 lt_cv_prog_compiler_static_works=yes 8698 fi 8699 fi 8700 $RM -r conftest* 8701 LDFLAGS=$save_LDFLAGS 8702 8703fi 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8705$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8706 8707if test yes = "$lt_cv_prog_compiler_static_works"; then 8708 : 8709else 8710 lt_prog_compiler_static= 8711fi 8712 8713 8714 8715 8716 8717 8718 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8720$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8721if ${lt_cv_prog_compiler_c_o+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 lt_cv_prog_compiler_c_o=no 8725 $RM -r conftest 2>/dev/null 8726 mkdir conftest 8727 cd conftest 8728 mkdir out 8729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8730 8731 lt_compiler_flag="-o out/conftest2.$ac_objext" 8732 # Insert the option either (1) after the last *FLAGS variable, or 8733 # (2) before a word containing "conftest.", or (3) at the end. 8734 # Note that $ac_compile itself does not contain backslashes and begins 8735 # with a dollar sign (not a hyphen), so the echo should work correctly. 8736 lt_compile=`echo "$ac_compile" | $SED \ 8737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8739 -e 's:$: $lt_compiler_flag:'` 8740 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8741 (eval "$lt_compile" 2>out/conftest.err) 8742 ac_status=$? 8743 cat out/conftest.err >&5 8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8745 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8746 then 8747 # The compiler can only warn and ignore the option if not recognized 8748 # So say no if there are warnings 8749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8752 lt_cv_prog_compiler_c_o=yes 8753 fi 8754 fi 8755 chmod u+w . 2>&5 8756 $RM conftest* 8757 # SGI C++ compiler will create directory out/ii_files/ for 8758 # template instantiation 8759 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8760 $RM out/* && rmdir out 8761 cd .. 8762 $RM -r conftest 8763 $RM conftest* 8764 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8767$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8768 8769 8770 8771 8772 8773 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8775$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8776if ${lt_cv_prog_compiler_c_o+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778else 8779 lt_cv_prog_compiler_c_o=no 8780 $RM -r conftest 2>/dev/null 8781 mkdir conftest 8782 cd conftest 8783 mkdir out 8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8785 8786 lt_compiler_flag="-o out/conftest2.$ac_objext" 8787 # Insert the option either (1) after the last *FLAGS variable, or 8788 # (2) before a word containing "conftest.", or (3) at the end. 8789 # Note that $ac_compile itself does not contain backslashes and begins 8790 # with a dollar sign (not a hyphen), so the echo should work correctly. 8791 lt_compile=`echo "$ac_compile" | $SED \ 8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8794 -e 's:$: $lt_compiler_flag:'` 8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8796 (eval "$lt_compile" 2>out/conftest.err) 8797 ac_status=$? 8798 cat out/conftest.err >&5 8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8800 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8801 then 8802 # The compiler can only warn and ignore the option if not recognized 8803 # So say no if there are warnings 8804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8807 lt_cv_prog_compiler_c_o=yes 8808 fi 8809 fi 8810 chmod u+w . 2>&5 8811 $RM conftest* 8812 # SGI C++ compiler will create directory out/ii_files/ for 8813 # template instantiation 8814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8815 $RM out/* && rmdir out 8816 cd .. 8817 $RM -r conftest 8818 $RM conftest* 8819 8820fi 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8822$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8823 8824 8825 8826 8827hard_links=nottested 8828if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8829 # do not overwrite the value of need_locks provided by the user 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8831$as_echo_n "checking if we can lock with hard links... " >&6; } 8832 hard_links=yes 8833 $RM conftest* 8834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8835 touch conftest.a 8836 ln conftest.a conftest.b 2>&5 || hard_links=no 8837 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8839$as_echo "$hard_links" >&6; } 8840 if test no = "$hard_links"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8842$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8843 need_locks=warn 8844 fi 8845else 8846 need_locks=no 8847fi 8848 8849 8850 8851 8852 8853 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8855$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8856 8857 runpath_var= 8858 allow_undefined_flag= 8859 always_export_symbols=no 8860 archive_cmds= 8861 archive_expsym_cmds= 8862 compiler_needs_object=no 8863 enable_shared_with_static_runtimes=no 8864 export_dynamic_flag_spec= 8865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8866 hardcode_automatic=no 8867 hardcode_direct=no 8868 hardcode_direct_absolute=no 8869 hardcode_libdir_flag_spec= 8870 hardcode_libdir_separator= 8871 hardcode_minus_L=no 8872 hardcode_shlibpath_var=unsupported 8873 inherit_rpath=no 8874 link_all_deplibs=unknown 8875 module_cmds= 8876 module_expsym_cmds= 8877 old_archive_from_new_cmds= 8878 old_archive_from_expsyms_cmds= 8879 thread_safe_flag_spec= 8880 whole_archive_flag_spec= 8881 # include_expsyms should be a list of space-separated symbols to be *always* 8882 # included in the symbol list 8883 include_expsyms= 8884 # exclude_expsyms can be an extended regexp of symbols to exclude 8885 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8886 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8887 # as well as any symbol that contains 'd'. 8888 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8889 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8890 # platforms (ab)use it in PIC code, but their linkers get confused if 8891 # the symbol is explicitly referenced. Since portable code cannot 8892 # rely on this symbol name, it's probably fine to never include it in 8893 # preloaded symbol tables. 8894 # Exclude shared library initialization/finalization symbols. 8895 extract_expsyms_cmds= 8896 8897 case $host_os in 8898 cygwin* | mingw* | pw32* | cegcc*) 8899 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8900 # When not using gcc, we currently assume that we are using 8901 # Microsoft Visual C++. 8902 if test yes != "$GCC"; then 8903 with_gnu_ld=no 8904 fi 8905 ;; 8906 interix*) 8907 # we just hope/assume this is gcc and not c89 (= MSVC++) 8908 with_gnu_ld=yes 8909 ;; 8910 openbsd* | bitrig*) 8911 with_gnu_ld=no 8912 ;; 8913 esac 8914 8915 ld_shlibs=yes 8916 8917 # On some targets, GNU ld is compatible enough with the native linker 8918 # that we're better off using the native interface for both. 8919 lt_use_gnu_ld_interface=no 8920 if test yes = "$with_gnu_ld"; then 8921 case $host_os in 8922 aix*) 8923 # The AIX port of GNU ld has always aspired to compatibility 8924 # with the native linker. However, as the warning in the GNU ld 8925 # block says, versions before 2.19.5* couldn't really create working 8926 # shared libraries, regardless of the interface used. 8927 case `$LD -v 2>&1` in 8928 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8929 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8930 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8931 *) 8932 lt_use_gnu_ld_interface=yes 8933 ;; 8934 esac 8935 ;; 8936 *) 8937 lt_use_gnu_ld_interface=yes 8938 ;; 8939 esac 8940 fi 8941 8942 if test yes = "$lt_use_gnu_ld_interface"; then 8943 # If archive_cmds runs LD, not CC, wlarc should be empty 8944 wlarc='$wl' 8945 8946 # Set some defaults for GNU ld with shared library support. These 8947 # are reset later if shared libraries are not supported. Putting them 8948 # here allows them to be overridden if necessary. 8949 runpath_var=LD_RUN_PATH 8950 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8951 export_dynamic_flag_spec='$wl--export-dynamic' 8952 # ancient GNU ld didn't support --whole-archive et. al. 8953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8954 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8955 else 8956 whole_archive_flag_spec= 8957 fi 8958 supports_anon_versioning=no 8959 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8960 *GNU\ gold*) supports_anon_versioning=yes ;; 8961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8964 *\ 2.11.*) ;; # other 2.11 versions 8965 *) supports_anon_versioning=yes ;; 8966 esac 8967 8968 # See if GNU ld supports shared libraries. 8969 case $host_os in 8970 aix[3-9]*) 8971 # On AIX/PPC, the GNU linker is very broken 8972 if test ia64 != "$host_cpu"; then 8973 ld_shlibs=no 8974 cat <<_LT_EOF 1>&2 8975 8976*** Warning: the GNU linker, at least up to release 2.19, is reported 8977*** to be unable to reliably create shared libraries on AIX. 8978*** Therefore, libtool is disabling shared libraries support. If you 8979*** really care for shared libraries, you may want to install binutils 8980*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8981*** You will then need to restart the configuration process. 8982 8983_LT_EOF 8984 fi 8985 ;; 8986 8987 amigaos*) 8988 case $host_cpu in 8989 powerpc) 8990 # see comment about AmigaOS4 .so support 8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8992 archive_expsym_cmds='' 8993 ;; 8994 m68k) 8995 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)' 8996 hardcode_libdir_flag_spec='-L$libdir' 8997 hardcode_minus_L=yes 8998 ;; 8999 esac 9000 ;; 9001 9002 beos*) 9003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9004 allow_undefined_flag=unsupported 9005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9006 # support --undefined. This deserves some investigation. FIXME 9007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9008 else 9009 ld_shlibs=no 9010 fi 9011 ;; 9012 9013 cygwin* | mingw* | pw32* | cegcc*) 9014 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9015 # as there is no search path for DLLs. 9016 hardcode_libdir_flag_spec='-L$libdir' 9017 export_dynamic_flag_spec='$wl--export-all-symbols' 9018 allow_undefined_flag=unsupported 9019 always_export_symbols=no 9020 enable_shared_with_static_runtimes=yes 9021 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' 9022 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9023 9024 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9026 # If the export-symbols file already is a .def file, use it as 9027 # is; otherwise, prepend EXPORTS... 9028 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9029 cp $export_symbols $output_objdir/$soname.def; 9030 else 9031 echo EXPORTS > $output_objdir/$soname.def; 9032 cat $export_symbols >> $output_objdir/$soname.def; 9033 fi~ 9034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9035 else 9036 ld_shlibs=no 9037 fi 9038 ;; 9039 9040 haiku*) 9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9042 link_all_deplibs=yes 9043 ;; 9044 9045 os2*) 9046 hardcode_libdir_flag_spec='-L$libdir' 9047 hardcode_minus_L=yes 9048 allow_undefined_flag=unsupported 9049 shrext_cmds=.dll 9050 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9053 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9054 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9055 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9056 emximp -o $lib $output_objdir/$libname.def' 9057 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9058 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9059 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9060 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9061 prefix_cmds="$SED"~ 9062 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9063 prefix_cmds="$prefix_cmds -e 1d"; 9064 fi~ 9065 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9066 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9068 emximp -o $lib $output_objdir/$libname.def' 9069 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9070 enable_shared_with_static_runtimes=yes 9071 ;; 9072 9073 interix[3-9]*) 9074 hardcode_direct=no 9075 hardcode_shlibpath_var=no 9076 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9077 export_dynamic_flag_spec='$wl-E' 9078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9079 # Instead, shared libraries are loaded at an image base (0x10000000 by 9080 # default) and relocated if they conflict, which is a slow very memory 9081 # consuming and fragmenting process. To avoid this, we pick a random, 9082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9083 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9085 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' 9086 ;; 9087 9088 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9089 tmp_diet=no 9090 if test linux-dietlibc = "$host_os"; then 9091 case $cc_basename in 9092 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9093 esac 9094 fi 9095 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9096 && test no = "$tmp_diet" 9097 then 9098 tmp_addflag=' $pic_flag' 9099 tmp_sharedflag='-shared' 9100 case $cc_basename,$host_cpu in 9101 pgcc*) # Portland Group C compiler 9102 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' 9103 tmp_addflag=' $pic_flag' 9104 ;; 9105 pgf77* | pgf90* | pgf95* | pgfortran*) 9106 # Portland Group f77 and f90 compilers 9107 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' 9108 tmp_addflag=' $pic_flag -Mnomain' ;; 9109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9110 tmp_addflag=' -i_dynamic' ;; 9111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9112 tmp_addflag=' -i_dynamic -nofor_main' ;; 9113 ifc* | ifort*) # Intel Fortran compiler 9114 tmp_addflag=' -nofor_main' ;; 9115 lf95*) # Lahey Fortran 8.1 9116 whole_archive_flag_spec= 9117 tmp_sharedflag='--shared' ;; 9118 nagfor*) # NAGFOR 5.3 9119 tmp_sharedflag='-Wl,-shared' ;; 9120 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9121 tmp_sharedflag='-qmkshrobj' 9122 tmp_addflag= ;; 9123 nvcc*) # Cuda Compiler Driver 2.2 9124 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' 9125 compiler_needs_object=yes 9126 ;; 9127 esac 9128 case `$CC -V 2>&1 | sed 5q` in 9129 *Sun\ C*) # Sun C 5.9 9130 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' 9131 compiler_needs_object=yes 9132 tmp_sharedflag='-G' ;; 9133 *Sun\ F*) # Sun Fortran 8.3 9134 tmp_sharedflag='-G' ;; 9135 esac 9136 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9137 9138 if test yes = "$supports_anon_versioning"; then 9139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9141 echo "local: *; };" >> $output_objdir/$libname.ver~ 9142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9143 fi 9144 9145 case $cc_basename in 9146 tcc*) 9147 export_dynamic_flag_spec='-rdynamic' 9148 ;; 9149 xlf* | bgf* | bgxlf* | mpixlf*) 9150 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9151 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9153 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9154 if test yes = "$supports_anon_versioning"; then 9155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9157 echo "local: *; };" >> $output_objdir/$libname.ver~ 9158 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9159 fi 9160 ;; 9161 esac 9162 else 9163 ld_shlibs=no 9164 fi 9165 ;; 9166 9167 netbsd*) 9168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9169 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9170 wlarc= 9171 else 9172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9173 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9174 fi 9175 ;; 9176 9177 solaris*) 9178 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9179 ld_shlibs=no 9180 cat <<_LT_EOF 1>&2 9181 9182*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9183*** create shared libraries on Solaris systems. Therefore, libtool 9184*** is disabling shared libraries support. We urge you to upgrade GNU 9185*** binutils to release 2.9.1 or newer. Another option is to modify 9186*** your PATH or compiler configuration so that the native linker is 9187*** used, and then restart. 9188 9189_LT_EOF 9190 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9192 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9193 else 9194 ld_shlibs=no 9195 fi 9196 ;; 9197 9198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9199 case `$LD -v 2>&1` in 9200 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9201 ld_shlibs=no 9202 cat <<_LT_EOF 1>&2 9203 9204*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9205*** reliably create shared libraries on SCO systems. Therefore, libtool 9206*** is disabling shared libraries support. We urge you to upgrade GNU 9207*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9208*** your PATH or compiler configuration so that the native linker is 9209*** used, and then restart. 9210 9211_LT_EOF 9212 ;; 9213 *) 9214 # For security reasons, it is highly recommended that you always 9215 # use absolute paths for naming shared libraries, and exclude the 9216 # DT_RUNPATH tag from executables and libraries. But doing so 9217 # requires that you compile everything twice, which is a pain. 9218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9222 else 9223 ld_shlibs=no 9224 fi 9225 ;; 9226 esac 9227 ;; 9228 9229 sunos4*) 9230 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9231 wlarc= 9232 hardcode_direct=yes 9233 hardcode_shlibpath_var=no 9234 ;; 9235 9236 *) 9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9240 else 9241 ld_shlibs=no 9242 fi 9243 ;; 9244 esac 9245 9246 if test no = "$ld_shlibs"; then 9247 runpath_var= 9248 hardcode_libdir_flag_spec= 9249 export_dynamic_flag_spec= 9250 whole_archive_flag_spec= 9251 fi 9252 else 9253 # PORTME fill in a description of your system's linker (not GNU ld) 9254 case $host_os in 9255 aix3*) 9256 allow_undefined_flag=unsupported 9257 always_export_symbols=yes 9258 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' 9259 # Note: this linker hardcodes the directories in LIBPATH if there 9260 # are no directories specified by -L. 9261 hardcode_minus_L=yes 9262 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9263 # Neither direct hardcoding nor static linking is supported with a 9264 # broken collect2. 9265 hardcode_direct=unsupported 9266 fi 9267 ;; 9268 9269 aix[4-9]*) 9270 if test ia64 = "$host_cpu"; then 9271 # On IA64, the linker does run time linking by default, so we don't 9272 # have to do anything special. 9273 aix_use_runtimelinking=no 9274 exp_sym_flag='-Bexport' 9275 no_entry_flag= 9276 else 9277 # If we're using GNU nm, then we don't want the "-C" option. 9278 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9279 # Without the "-l" option, or with the "-B" option, AIX nm treats 9280 # weak defined symbols like other global defined symbols, whereas 9281 # GNU nm marks them as "W". 9282 # While the 'weak' keyword is ignored in the Export File, we need 9283 # it in the Import File for the 'aix-soname' feature, so we have 9284 # to replace the "-B" option with "-P" for AIX nm. 9285 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9286 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9287 else 9288 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9289 fi 9290 aix_use_runtimelinking=no 9291 9292 # Test if we are trying to use run time linking or normal 9293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9294 # have runtime linking enabled, and use it for executables. 9295 # For shared libraries, we enable/disable runtime linking 9296 # depending on the kind of the shared library created - 9297 # when "with_aix_soname,aix_use_runtimelinking" is: 9298 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9299 # "aix,yes" lib.so shared, rtl:yes, for executables 9300 # lib.a static archive 9301 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9302 # lib.a(lib.so.V) shared, rtl:no, for executables 9303 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9304 # lib.a(lib.so.V) shared, rtl:no 9305 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9306 # lib.a static archive 9307 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9308 for ld_flag in $LDFLAGS; do 9309 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9310 aix_use_runtimelinking=yes 9311 break 9312 fi 9313 done 9314 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9315 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9316 # so we don't have lib.a shared libs to link our executables. 9317 # We have to force runtime linking in this case. 9318 aix_use_runtimelinking=yes 9319 LDFLAGS="$LDFLAGS -Wl,-brtl" 9320 fi 9321 ;; 9322 esac 9323 9324 exp_sym_flag='-bexport' 9325 no_entry_flag='-bnoentry' 9326 fi 9327 9328 # When large executables or shared objects are built, AIX ld can 9329 # have problems creating the table of contents. If linking a library 9330 # or program results in "error TOC overflow" add -mminimal-toc to 9331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9333 9334 archive_cmds='' 9335 hardcode_direct=yes 9336 hardcode_direct_absolute=yes 9337 hardcode_libdir_separator=':' 9338 link_all_deplibs=yes 9339 file_list_spec='$wl-f,' 9340 case $with_aix_soname,$aix_use_runtimelinking in 9341 aix,*) ;; # traditional, no import file 9342 svr4,* | *,yes) # use import file 9343 # The Import File defines what to hardcode. 9344 hardcode_direct=no 9345 hardcode_direct_absolute=no 9346 ;; 9347 esac 9348 9349 if test yes = "$GCC"; then 9350 case $host_os in aix4.[012]|aix4.[012].*) 9351 # We only want to do this on AIX 4.2 and lower, the check 9352 # below for broken collect2 doesn't work under 4.3+ 9353 collect2name=`$CC -print-prog-name=collect2` 9354 if test -f "$collect2name" && 9355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9356 then 9357 # We have reworked collect2 9358 : 9359 else 9360 # We have old collect2 9361 hardcode_direct=unsupported 9362 # It fails to find uninstalled libraries when the uninstalled 9363 # path is not listed in the libpath. Setting hardcode_minus_L 9364 # to unsupported forces relinking 9365 hardcode_minus_L=yes 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_libdir_separator= 9368 fi 9369 ;; 9370 esac 9371 shared_flag='-shared' 9372 if test yes = "$aix_use_runtimelinking"; then 9373 shared_flag="$shared_flag "'$wl-G' 9374 fi 9375 # Need to ensure runtime linking is disabled for the traditional 9376 # shared library, or the linker may eventually find shared libraries 9377 # /with/ Import File - we do not want to mix them. 9378 shared_flag_aix='-shared' 9379 shared_flag_svr4='-shared $wl-G' 9380 else 9381 # not using gcc 9382 if test ia64 = "$host_cpu"; then 9383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9384 # chokes on -Wl,-G. The following line is correct: 9385 shared_flag='-G' 9386 else 9387 if test yes = "$aix_use_runtimelinking"; then 9388 shared_flag='$wl-G' 9389 else 9390 shared_flag='$wl-bM:SRE' 9391 fi 9392 shared_flag_aix='$wl-bM:SRE' 9393 shared_flag_svr4='$wl-G' 9394 fi 9395 fi 9396 9397 export_dynamic_flag_spec='$wl-bexpall' 9398 # It seems that -bexpall does not export symbols beginning with 9399 # underscore (_), so it is better to generate a list of symbols to export. 9400 always_export_symbols=yes 9401 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9402 # Warning - without using the other runtime loading flags (-brtl), 9403 # -berok will link without error, but may produce a broken library. 9404 allow_undefined_flag='-berok' 9405 # Determine the default libpath from the value encoded in an 9406 # empty executable. 9407 if test set = "${lt_cv_aix_libpath+set}"; then 9408 aix_libpath=$lt_cv_aix_libpath 9409else 9410 if ${lt_cv_aix_libpath_+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412else 9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9414/* end confdefs.h. */ 9415 9416int 9417main () 9418{ 9419 9420 ; 9421 return 0; 9422} 9423_ACEOF 9424if ac_fn_c_try_link "$LINENO"; then : 9425 9426 lt_aix_libpath_sed=' 9427 /Import File Strings/,/^$/ { 9428 /^0/ { 9429 s/^0 *\([^ ]*\) *$/\1/ 9430 p 9431 } 9432 }' 9433 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9434 # Check for a 64-bit object if we didn't find anything. 9435 if test -z "$lt_cv_aix_libpath_"; then 9436 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9437 fi 9438fi 9439rm -f core conftest.err conftest.$ac_objext \ 9440 conftest$ac_exeext conftest.$ac_ext 9441 if test -z "$lt_cv_aix_libpath_"; then 9442 lt_cv_aix_libpath_=/usr/lib:/lib 9443 fi 9444 9445fi 9446 9447 aix_libpath=$lt_cv_aix_libpath_ 9448fi 9449 9450 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9451 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9452 else 9453 if test ia64 = "$host_cpu"; then 9454 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9455 allow_undefined_flag="-z nodefs" 9456 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" 9457 else 9458 # Determine the default libpath from the value encoded in an 9459 # empty executable. 9460 if test set = "${lt_cv_aix_libpath+set}"; then 9461 aix_libpath=$lt_cv_aix_libpath 9462else 9463 if ${lt_cv_aix_libpath_+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467/* end confdefs.h. */ 9468 9469int 9470main () 9471{ 9472 9473 ; 9474 return 0; 9475} 9476_ACEOF 9477if ac_fn_c_try_link "$LINENO"; then : 9478 9479 lt_aix_libpath_sed=' 9480 /Import File Strings/,/^$/ { 9481 /^0/ { 9482 s/^0 *\([^ ]*\) *$/\1/ 9483 p 9484 } 9485 }' 9486 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9487 # Check for a 64-bit object if we didn't find anything. 9488 if test -z "$lt_cv_aix_libpath_"; then 9489 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9490 fi 9491fi 9492rm -f core conftest.err conftest.$ac_objext \ 9493 conftest$ac_exeext conftest.$ac_ext 9494 if test -z "$lt_cv_aix_libpath_"; then 9495 lt_cv_aix_libpath_=/usr/lib:/lib 9496 fi 9497 9498fi 9499 9500 aix_libpath=$lt_cv_aix_libpath_ 9501fi 9502 9503 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9504 # Warning - without using the other run time loading flags, 9505 # -berok will link without error, but may produce a broken library. 9506 no_undefined_flag=' $wl-bernotok' 9507 allow_undefined_flag=' $wl-berok' 9508 if test yes = "$with_gnu_ld"; then 9509 # We only use this code for GNU lds that support --whole-archive. 9510 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9511 else 9512 # Exported symbols can be pulled into shared objects from archives 9513 whole_archive_flag_spec='$convenience' 9514 fi 9515 archive_cmds_need_lc=yes 9516 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9517 # -brtl affects multiple linker settings, -berok does not and is overridden later 9518 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9519 if test svr4 != "$with_aix_soname"; then 9520 # This is similar to how AIX traditionally builds its shared libraries. 9521 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9522 fi 9523 if test aix != "$with_aix_soname"; then 9524 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9525 else 9526 # used by -dlpreopen to get the symbols 9527 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9528 fi 9529 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9530 fi 9531 fi 9532 ;; 9533 9534 amigaos*) 9535 case $host_cpu in 9536 powerpc) 9537 # see comment about AmigaOS4 .so support 9538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9539 archive_expsym_cmds='' 9540 ;; 9541 m68k) 9542 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)' 9543 hardcode_libdir_flag_spec='-L$libdir' 9544 hardcode_minus_L=yes 9545 ;; 9546 esac 9547 ;; 9548 9549 bsdi[45]*) 9550 export_dynamic_flag_spec=-rdynamic 9551 ;; 9552 9553 cygwin* | mingw* | pw32* | cegcc*) 9554 # When not using gcc, we currently assume that we are using 9555 # Microsoft Visual C++. 9556 # hardcode_libdir_flag_spec is actually meaningless, as there is 9557 # no search path for DLLs. 9558 case $cc_basename in 9559 cl*) 9560 # Native MSVC 9561 hardcode_libdir_flag_spec=' ' 9562 allow_undefined_flag=unsupported 9563 always_export_symbols=yes 9564 file_list_spec='@' 9565 # Tell ltmain to make .lib files, not .a files. 9566 libext=lib 9567 # Tell ltmain to make .dll files, not .so files. 9568 shrext_cmds=.dll 9569 # FIXME: Setting linknames here is a bad hack. 9570 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9571 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9572 cp "$export_symbols" "$output_objdir/$soname.def"; 9573 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9574 else 9575 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9576 fi~ 9577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9578 linknames=' 9579 # The linker will not automatically build a static lib if we build a DLL. 9580 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9581 enable_shared_with_static_runtimes=yes 9582 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9584 # Don't use ranlib 9585 old_postinstall_cmds='chmod 644 $oldlib' 9586 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9587 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9588 case $lt_outputfile in 9589 *.exe|*.EXE) ;; 9590 *) 9591 lt_outputfile=$lt_outputfile.exe 9592 lt_tool_outputfile=$lt_tool_outputfile.exe 9593 ;; 9594 esac~ 9595 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9596 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9597 $RM "$lt_outputfile.manifest"; 9598 fi' 9599 ;; 9600 *) 9601 # Assume MSVC wrapper 9602 hardcode_libdir_flag_spec=' ' 9603 allow_undefined_flag=unsupported 9604 # Tell ltmain to make .lib files, not .a files. 9605 libext=lib 9606 # Tell ltmain to make .dll files, not .so files. 9607 shrext_cmds=.dll 9608 # FIXME: Setting linknames here is a bad hack. 9609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9610 # The linker will automatically build a .lib file if we build a DLL. 9611 old_archive_from_new_cmds='true' 9612 # FIXME: Should let the user specify the lib program. 9613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9614 enable_shared_with_static_runtimes=yes 9615 ;; 9616 esac 9617 ;; 9618 9619 darwin* | rhapsody*) 9620 9621 9622 archive_cmds_need_lc=no 9623 hardcode_direct=no 9624 hardcode_automatic=yes 9625 hardcode_shlibpath_var=unsupported 9626 if test yes = "$lt_cv_ld_force_load"; then 9627 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\"`' 9628 9629 else 9630 whole_archive_flag_spec='' 9631 fi 9632 link_all_deplibs=yes 9633 allow_undefined_flag=$_lt_dar_allow_undefined 9634 case $cc_basename in 9635 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9636 *) _lt_dar_can_shared=$GCC ;; 9637 esac 9638 if test yes = "$_lt_dar_can_shared"; then 9639 output_verbose_link_cmd=func_echo_all 9640 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9641 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9642 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" 9643 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" 9644 9645 else 9646 ld_shlibs=no 9647 fi 9648 9649 ;; 9650 9651 dgux*) 9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9653 hardcode_libdir_flag_spec='-L$libdir' 9654 hardcode_shlibpath_var=no 9655 ;; 9656 9657 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9658 # support. Future versions do this automatically, but an explicit c++rt0.o 9659 # does not break anything, and helps significantly (at the cost of a little 9660 # extra space). 9661 freebsd2.2*) 9662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9663 hardcode_libdir_flag_spec='-R$libdir' 9664 hardcode_direct=yes 9665 hardcode_shlibpath_var=no 9666 ;; 9667 9668 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9669 freebsd2.*) 9670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9671 hardcode_direct=yes 9672 hardcode_minus_L=yes 9673 hardcode_shlibpath_var=no 9674 ;; 9675 9676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9677 freebsd* | dragonfly*) 9678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9679 hardcode_libdir_flag_spec='-R$libdir' 9680 hardcode_direct=yes 9681 hardcode_shlibpath_var=no 9682 ;; 9683 9684 hpux9*) 9685 if test yes = "$GCC"; then 9686 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9687 else 9688 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9689 fi 9690 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9691 hardcode_libdir_separator=: 9692 hardcode_direct=yes 9693 9694 # hardcode_minus_L: Not really in the search PATH, 9695 # but as the default location of the library. 9696 hardcode_minus_L=yes 9697 export_dynamic_flag_spec='$wl-E' 9698 ;; 9699 9700 hpux10*) 9701 if test yes,no = "$GCC,$with_gnu_ld"; then 9702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9703 else 9704 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9705 fi 9706 if test no = "$with_gnu_ld"; then 9707 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9708 hardcode_libdir_separator=: 9709 hardcode_direct=yes 9710 hardcode_direct_absolute=yes 9711 export_dynamic_flag_spec='$wl-E' 9712 # hardcode_minus_L: Not really in the search PATH, 9713 # but as the default location of the library. 9714 hardcode_minus_L=yes 9715 fi 9716 ;; 9717 9718 hpux11*) 9719 if test yes,no = "$GCC,$with_gnu_ld"; then 9720 case $host_cpu in 9721 hppa*64*) 9722 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9723 ;; 9724 ia64*) 9725 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9726 ;; 9727 *) 9728 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9729 ;; 9730 esac 9731 else 9732 case $host_cpu in 9733 hppa*64*) 9734 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 ;; 9736 ia64*) 9737 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9738 ;; 9739 *) 9740 9741 # Older versions of the 11.00 compiler do not understand -b yet 9742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9744$as_echo_n "checking if $CC understands -b... " >&6; } 9745if ${lt_cv_prog_compiler__b+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 lt_cv_prog_compiler__b=no 9749 save_LDFLAGS=$LDFLAGS 9750 LDFLAGS="$LDFLAGS -b" 9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9753 # The linker can only warn and ignore the option if not recognized 9754 # So say no if there are warnings 9755 if test -s conftest.err; then 9756 # Append any errors to the config.log. 9757 cat conftest.err 1>&5 9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9760 if diff conftest.exp conftest.er2 >/dev/null; then 9761 lt_cv_prog_compiler__b=yes 9762 fi 9763 else 9764 lt_cv_prog_compiler__b=yes 9765 fi 9766 fi 9767 $RM -r conftest* 9768 LDFLAGS=$save_LDFLAGS 9769 9770fi 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9772$as_echo "$lt_cv_prog_compiler__b" >&6; } 9773 9774if test yes = "$lt_cv_prog_compiler__b"; then 9775 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9776else 9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9778fi 9779 9780 ;; 9781 esac 9782 fi 9783 if test no = "$with_gnu_ld"; then 9784 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9785 hardcode_libdir_separator=: 9786 9787 case $host_cpu in 9788 hppa*64*|ia64*) 9789 hardcode_direct=no 9790 hardcode_shlibpath_var=no 9791 ;; 9792 *) 9793 hardcode_direct=yes 9794 hardcode_direct_absolute=yes 9795 export_dynamic_flag_spec='$wl-E' 9796 9797 # hardcode_minus_L: Not really in the search PATH, 9798 # but as the default location of the library. 9799 hardcode_minus_L=yes 9800 ;; 9801 esac 9802 fi 9803 ;; 9804 9805 irix5* | irix6* | nonstopux*) 9806 if test yes = "$GCC"; then 9807 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' 9808 # Try to use the -exported_symbol ld option, if it does not 9809 # work, assume that -exports_file does not work either and 9810 # implicitly export all symbols. 9811 # This should be the same for all languages, so no per-tag cache variable. 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9813$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9814if ${lt_cv_irix_exported_symbol+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 save_LDFLAGS=$LDFLAGS 9818 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int foo (void) { return 0; } 9822_ACEOF 9823if ac_fn_c_try_link "$LINENO"; then : 9824 lt_cv_irix_exported_symbol=yes 9825else 9826 lt_cv_irix_exported_symbol=no 9827fi 9828rm -f core conftest.err conftest.$ac_objext \ 9829 conftest$ac_exeext conftest.$ac_ext 9830 LDFLAGS=$save_LDFLAGS 9831fi 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9833$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9834 if test yes = "$lt_cv_irix_exported_symbol"; then 9835 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' 9836 fi 9837 else 9838 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' 9839 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' 9840 fi 9841 archive_cmds_need_lc='no' 9842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9843 hardcode_libdir_separator=: 9844 inherit_rpath=yes 9845 link_all_deplibs=yes 9846 ;; 9847 9848 linux*) 9849 case $cc_basename in 9850 tcc*) 9851 # Fabrice Bellard et al's Tiny C Compiler 9852 ld_shlibs=yes 9853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9854 ;; 9855 esac 9856 ;; 9857 9858 netbsd*) 9859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9861 else 9862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9863 fi 9864 hardcode_libdir_flag_spec='-R$libdir' 9865 hardcode_direct=yes 9866 hardcode_shlibpath_var=no 9867 ;; 9868 9869 newsos6) 9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9871 hardcode_direct=yes 9872 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9873 hardcode_libdir_separator=: 9874 hardcode_shlibpath_var=no 9875 ;; 9876 9877 *nto* | *qnx*) 9878 ;; 9879 9880 openbsd* | bitrig*) 9881 if test -f /usr/libexec/ld.so; then 9882 hardcode_direct=yes 9883 hardcode_shlibpath_var=no 9884 hardcode_direct_absolute=yes 9885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9888 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9889 export_dynamic_flag_spec='$wl-E' 9890 else 9891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9892 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9893 fi 9894 else 9895 ld_shlibs=no 9896 fi 9897 ;; 9898 9899 os2*) 9900 hardcode_libdir_flag_spec='-L$libdir' 9901 hardcode_minus_L=yes 9902 allow_undefined_flag=unsupported 9903 shrext_cmds=.dll 9904 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9907 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9908 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9909 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9910 emximp -o $lib $output_objdir/$libname.def' 9911 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9912 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9913 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9914 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9915 prefix_cmds="$SED"~ 9916 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9917 prefix_cmds="$prefix_cmds -e 1d"; 9918 fi~ 9919 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9920 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9922 emximp -o $lib $output_objdir/$libname.def' 9923 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9924 enable_shared_with_static_runtimes=yes 9925 ;; 9926 9927 osf3*) 9928 if test yes = "$GCC"; then 9929 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9930 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' 9931 else 9932 allow_undefined_flag=' -expect_unresolved \*' 9933 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' 9934 fi 9935 archive_cmds_need_lc='no' 9936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9937 hardcode_libdir_separator=: 9938 ;; 9939 9940 osf4* | osf5*) # as osf3* with the addition of -msym flag 9941 if test yes = "$GCC"; then 9942 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9943 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' 9944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9945 else 9946 allow_undefined_flag=' -expect_unresolved \*' 9947 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' 9948 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~ 9949 $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' 9950 9951 # Both c and cxx compiler support -rpath directly 9952 hardcode_libdir_flag_spec='-rpath $libdir' 9953 fi 9954 archive_cmds_need_lc='no' 9955 hardcode_libdir_separator=: 9956 ;; 9957 9958 solaris*) 9959 no_undefined_flag=' -z defs' 9960 if test yes = "$GCC"; then 9961 wlarc='$wl' 9962 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9963 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9964 $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' 9965 else 9966 case `$CC -V 2>&1` in 9967 *"Compilers 5.0"*) 9968 wlarc='' 9969 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9971 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9972 ;; 9973 *) 9974 wlarc='$wl' 9975 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9976 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9977 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9978 ;; 9979 esac 9980 fi 9981 hardcode_libdir_flag_spec='-R$libdir' 9982 hardcode_shlibpath_var=no 9983 case $host_os in 9984 solaris2.[0-5] | solaris2.[0-5].*) ;; 9985 *) 9986 # The compiler driver will combine and reorder linker options, 9987 # but understands '-z linker_flag'. GCC discards it without '$wl', 9988 # but is careful enough not to reorder. 9989 # Supported since Solaris 2.6 (maybe 2.5.1?) 9990 if test yes = "$GCC"; then 9991 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9992 else 9993 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9994 fi 9995 ;; 9996 esac 9997 link_all_deplibs=yes 9998 ;; 9999 10000 sunos4*) 10001 if test sequent = "$host_vendor"; then 10002 # Use $CC to link under sequent, because it throws in some extra .o 10003 # files that make .init and .fini sections work. 10004 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10005 else 10006 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10007 fi 10008 hardcode_libdir_flag_spec='-L$libdir' 10009 hardcode_direct=yes 10010 hardcode_minus_L=yes 10011 hardcode_shlibpath_var=no 10012 ;; 10013 10014 sysv4) 10015 case $host_vendor in 10016 sni) 10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10018 hardcode_direct=yes # is this really true??? 10019 ;; 10020 siemens) 10021 ## LD is ld it makes a PLAMLIB 10022 ## CC just makes a GrossModule. 10023 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10024 reload_cmds='$CC -r -o $output$reload_objs' 10025 hardcode_direct=no 10026 ;; 10027 motorola) 10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10029 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10030 ;; 10031 esac 10032 runpath_var='LD_RUN_PATH' 10033 hardcode_shlibpath_var=no 10034 ;; 10035 10036 sysv4.3*) 10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10038 hardcode_shlibpath_var=no 10039 export_dynamic_flag_spec='-Bexport' 10040 ;; 10041 10042 sysv4*MP*) 10043 if test -d /usr/nec; then 10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10045 hardcode_shlibpath_var=no 10046 runpath_var=LD_RUN_PATH 10047 hardcode_runpath_var=yes 10048 ld_shlibs=yes 10049 fi 10050 ;; 10051 10052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10053 no_undefined_flag='$wl-z,text' 10054 archive_cmds_need_lc=no 10055 hardcode_shlibpath_var=no 10056 runpath_var='LD_RUN_PATH' 10057 10058 if test yes = "$GCC"; then 10059 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10060 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10061 else 10062 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10063 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10064 fi 10065 ;; 10066 10067 sysv5* | sco3.2v5* | sco5v6*) 10068 # Note: We CANNOT use -z defs as we might desire, because we do not 10069 # link with -lc, and that would cause any symbols used from libc to 10070 # always be unresolved, which means just about no library would 10071 # ever link correctly. If we're not using GNU ld we use -z text 10072 # though, which does catch some bad symbols but isn't as heavy-handed 10073 # as -z defs. 10074 no_undefined_flag='$wl-z,text' 10075 allow_undefined_flag='$wl-z,nodefs' 10076 archive_cmds_need_lc=no 10077 hardcode_shlibpath_var=no 10078 hardcode_libdir_flag_spec='$wl-R,$libdir' 10079 hardcode_libdir_separator=':' 10080 link_all_deplibs=yes 10081 export_dynamic_flag_spec='$wl-Bexport' 10082 runpath_var='LD_RUN_PATH' 10083 10084 if test yes = "$GCC"; then 10085 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10086 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10087 else 10088 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10089 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 fi 10091 ;; 10092 10093 uts4*) 10094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10095 hardcode_libdir_flag_spec='-L$libdir' 10096 hardcode_shlibpath_var=no 10097 ;; 10098 10099 *) 10100 ld_shlibs=no 10101 ;; 10102 esac 10103 10104 if test sni = "$host_vendor"; then 10105 case $host in 10106 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10107 export_dynamic_flag_spec='$wl-Blargedynsym' 10108 ;; 10109 esac 10110 fi 10111 fi 10112 10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10114$as_echo "$ld_shlibs" >&6; } 10115test no = "$ld_shlibs" && can_build_shared=no 10116 10117with_gnu_ld=$with_gnu_ld 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133# 10134# Do we need to explicitly link libc? 10135# 10136case "x$archive_cmds_need_lc" in 10137x|xyes) 10138 # Assume -lc should be added 10139 archive_cmds_need_lc=yes 10140 10141 if test yes,yes = "$GCC,$enable_shared"; then 10142 case $archive_cmds in 10143 *'~'*) 10144 # FIXME: we may have to deal with multi-command sequences. 10145 ;; 10146 '$CC '*) 10147 # Test whether the compiler implicitly links with -lc since on some 10148 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10149 # to ld, don't add -lc before -lgcc. 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10151$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10152if ${lt_cv_archive_cmds_need_lc+:} false; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 $RM conftest* 10156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10157 10158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10159 (eval $ac_compile) 2>&5 10160 ac_status=$? 10161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10162 test $ac_status = 0; } 2>conftest.err; then 10163 soname=conftest 10164 lib=conftest 10165 libobjs=conftest.$ac_objext 10166 deplibs= 10167 wl=$lt_prog_compiler_wl 10168 pic_flag=$lt_prog_compiler_pic 10169 compiler_flags=-v 10170 linker_flags=-v 10171 verstring= 10172 output_objdir=. 10173 libname=conftest 10174 lt_save_allow_undefined_flag=$allow_undefined_flag 10175 allow_undefined_flag= 10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10177 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10178 ac_status=$? 10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10180 test $ac_status = 0; } 10181 then 10182 lt_cv_archive_cmds_need_lc=no 10183 else 10184 lt_cv_archive_cmds_need_lc=yes 10185 fi 10186 allow_undefined_flag=$lt_save_allow_undefined_flag 10187 else 10188 cat conftest.err 1>&5 10189 fi 10190 $RM conftest* 10191 10192fi 10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10194$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10195 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10196 ;; 10197 esac 10198 fi 10199 ;; 10200esac 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10354$as_echo_n "checking dynamic linker characteristics... " >&6; } 10355 10356if test yes = "$GCC"; then 10357 case $host_os in 10358 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10359 *) lt_awk_arg='/^libraries:/' ;; 10360 esac 10361 case $host_os in 10362 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10363 *) lt_sed_strip_eq='s|=/|/|g' ;; 10364 esac 10365 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10366 case $lt_search_path_spec in 10367 *\;*) 10368 # if the path contains ";" then we assume it to be the separator 10369 # otherwise default to the standard path separator (i.e. ":") - it is 10370 # assumed that no part of a normal pathname contains ";" but that should 10371 # okay in the real world where ";" in dirpaths is itself problematic. 10372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10373 ;; 10374 *) 10375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10376 ;; 10377 esac 10378 # Ok, now we have the path, separated by spaces, we can step through it 10379 # and add multilib dir if necessary... 10380 lt_tmp_lt_search_path_spec= 10381 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10382 # ...but if some path component already ends with the multilib dir we assume 10383 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10384 case "$lt_multi_os_dir; $lt_search_path_spec " in 10385 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10386 lt_multi_os_dir= 10387 ;; 10388 esac 10389 for lt_sys_path in $lt_search_path_spec; do 10390 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10392 elif test -n "$lt_multi_os_dir"; then 10393 test -d "$lt_sys_path" && \ 10394 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10395 fi 10396 done 10397 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10398BEGIN {RS = " "; FS = "/|\n";} { 10399 lt_foo = ""; 10400 lt_count = 0; 10401 for (lt_i = NF; lt_i > 0; lt_i--) { 10402 if ($lt_i != "" && $lt_i != ".") { 10403 if ($lt_i == "..") { 10404 lt_count++; 10405 } else { 10406 if (lt_count == 0) { 10407 lt_foo = "/" $lt_i lt_foo; 10408 } else { 10409 lt_count--; 10410 } 10411 } 10412 } 10413 } 10414 if (lt_foo != "") { lt_freq[lt_foo]++; } 10415 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10416}'` 10417 # AWK program above erroneously prepends '/' to C:/dos/paths 10418 # for these hosts. 10419 case $host_os in 10420 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10421 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10422 esac 10423 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10424else 10425 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10426fi 10427library_names_spec= 10428libname_spec='lib$name' 10429soname_spec= 10430shrext_cmds=.so 10431postinstall_cmds= 10432postuninstall_cmds= 10433finish_cmds= 10434finish_eval= 10435shlibpath_var= 10436shlibpath_overrides_runpath=unknown 10437version_type=none 10438dynamic_linker="$host_os ld.so" 10439sys_lib_dlsearch_path_spec="/lib /usr/lib" 10440need_lib_prefix=unknown 10441hardcode_into_libs=no 10442 10443# when you set need_version to no, make sure it does not cause -set_version 10444# flags to be left without arguments 10445need_version=unknown 10446 10447 10448 10449case $host_os in 10450aix3*) 10451 version_type=linux # correct to gnu/linux during the next big refactor 10452 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10453 shlibpath_var=LIBPATH 10454 10455 # AIX 3 has no versioning support, so we append a major version to the name. 10456 soname_spec='$libname$release$shared_ext$major' 10457 ;; 10458 10459aix[4-9]*) 10460 version_type=linux # correct to gnu/linux during the next big refactor 10461 need_lib_prefix=no 10462 need_version=no 10463 hardcode_into_libs=yes 10464 if test ia64 = "$host_cpu"; then 10465 # AIX 5 supports IA64 10466 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10467 shlibpath_var=LD_LIBRARY_PATH 10468 else 10469 # With GCC up to 2.95.x, collect2 would create an import file 10470 # for dependence libraries. The import file would start with 10471 # the line '#! .'. This would cause the generated library to 10472 # depend on '.', always an invalid library. This was fixed in 10473 # development snapshots of GCC prior to 3.0. 10474 case $host_os in 10475 aix4 | aix4.[01] | aix4.[01].*) 10476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10477 echo ' yes ' 10478 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10479 : 10480 else 10481 can_build_shared=no 10482 fi 10483 ;; 10484 esac 10485 # Using Import Files as archive members, it is possible to support 10486 # filename-based versioning of shared library archives on AIX. While 10487 # this would work for both with and without runtime linking, it will 10488 # prevent static linking of such archives. So we do filename-based 10489 # shared library versioning with .so extension only, which is used 10490 # when both runtime linking and shared linking is enabled. 10491 # Unfortunately, runtime linking may impact performance, so we do 10492 # not want this to be the default eventually. Also, we use the 10493 # versioned .so libs for executables only if there is the -brtl 10494 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10495 # To allow for filename-based versioning support, we need to create 10496 # libNAME.so.V as an archive file, containing: 10497 # *) an Import File, referring to the versioned filename of the 10498 # archive as well as the shared archive member, telling the 10499 # bitwidth (32 or 64) of that shared object, and providing the 10500 # list of exported symbols of that shared object, eventually 10501 # decorated with the 'weak' keyword 10502 # *) the shared object with the F_LOADONLY flag set, to really avoid 10503 # it being seen by the linker. 10504 # At run time we better use the real file rather than another symlink, 10505 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10506 10507 case $with_aix_soname,$aix_use_runtimelinking in 10508 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10509 # soname into executable. Probably we can add versioning support to 10510 # collect2, so additional links can be useful in future. 10511 aix,yes) # traditional libtool 10512 dynamic_linker='AIX unversionable lib.so' 10513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10514 # instead of lib<name>.a to let people know that these are not 10515 # typical AIX shared libraries. 10516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10517 ;; 10518 aix,no) # traditional AIX only 10519 dynamic_linker='AIX lib.a(lib.so.V)' 10520 # We preserve .a as extension for shared libraries through AIX4.2 10521 # and later when we are not doing run time linking. 10522 library_names_spec='$libname$release.a $libname.a' 10523 soname_spec='$libname$release$shared_ext$major' 10524 ;; 10525 svr4,*) # full svr4 only 10526 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10527 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10528 # We do not specify a path in Import Files, so LIBPATH fires. 10529 shlibpath_overrides_runpath=yes 10530 ;; 10531 *,yes) # both, prefer svr4 10532 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10533 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10534 # unpreferred sharedlib libNAME.a needs extra handling 10535 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10536 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10537 # We do not specify a path in Import Files, so LIBPATH fires. 10538 shlibpath_overrides_runpath=yes 10539 ;; 10540 *,no) # both, prefer aix 10541 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10542 library_names_spec='$libname$release.a $libname.a' 10543 soname_spec='$libname$release$shared_ext$major' 10544 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10545 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10546 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10547 ;; 10548 esac 10549 shlibpath_var=LIBPATH 10550 fi 10551 ;; 10552 10553amigaos*) 10554 case $host_cpu in 10555 powerpc) 10556 # Since July 2007 AmigaOS4 officially supports .so libraries. 10557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10559 ;; 10560 m68k) 10561 library_names_spec='$libname.ixlibrary $libname.a' 10562 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10563 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10564 ;; 10565 esac 10566 ;; 10567 10568beos*) 10569 library_names_spec='$libname$shared_ext' 10570 dynamic_linker="$host_os ld.so" 10571 shlibpath_var=LIBRARY_PATH 10572 ;; 10573 10574bsdi[45]*) 10575 version_type=linux # correct to gnu/linux during the next big refactor 10576 need_version=no 10577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10578 soname_spec='$libname$release$shared_ext$major' 10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10580 shlibpath_var=LD_LIBRARY_PATH 10581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10583 # the default ld.so.conf also contains /usr/contrib/lib and 10584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10585 # libtool to hard-code these into programs 10586 ;; 10587 10588cygwin* | mingw* | pw32* | cegcc*) 10589 version_type=windows 10590 shrext_cmds=.dll 10591 need_version=no 10592 need_lib_prefix=no 10593 10594 case $GCC,$cc_basename in 10595 yes,*) 10596 # gcc 10597 library_names_spec='$libname.dll.a' 10598 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10599 postinstall_cmds='base_file=`basename \$file`~ 10600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10601 dldir=$destdir/`dirname \$dlpath`~ 10602 test -d \$dldir || mkdir -p \$dldir~ 10603 $install_prog $dir/$dlname \$dldir/$dlname~ 10604 chmod a+x \$dldir/$dlname~ 10605 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10606 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10607 fi' 10608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10609 dlpath=$dir/\$dldll~ 10610 $RM \$dlpath' 10611 shlibpath_overrides_runpath=yes 10612 10613 case $host_os in 10614 cygwin*) 10615 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10616 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10617 10618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10619 ;; 10620 mingw* | cegcc*) 10621 # MinGW DLLs use traditional 'lib' prefix 10622 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10623 ;; 10624 pw32*) 10625 # pw32 DLLs use 'pw' prefix rather than 'lib' 10626 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10627 ;; 10628 esac 10629 dynamic_linker='Win32 ld.exe' 10630 ;; 10631 10632 *,cl*) 10633 # Native MSVC 10634 libname_spec='$name' 10635 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10636 library_names_spec='$libname.dll.lib' 10637 10638 case $build_os in 10639 mingw*) 10640 sys_lib_search_path_spec= 10641 lt_save_ifs=$IFS 10642 IFS=';' 10643 for lt_path in $LIB 10644 do 10645 IFS=$lt_save_ifs 10646 # Let DOS variable expansion print the short 8.3 style file name. 10647 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10648 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10649 done 10650 IFS=$lt_save_ifs 10651 # Convert to MSYS style. 10652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10653 ;; 10654 cygwin*) 10655 # Convert to unix form, then to dos form, then back to unix form 10656 # but this time dos style (no spaces!) so that the unix form looks 10657 # like /cygdrive/c/PROGRA~1:/cygdr... 10658 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10659 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10660 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10661 ;; 10662 *) 10663 sys_lib_search_path_spec=$LIB 10664 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10665 # It is most probably a Windows format PATH. 10666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10667 else 10668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10669 fi 10670 # FIXME: find the short name or the path components, as spaces are 10671 # common. (e.g. "Program Files" -> "PROGRA~1") 10672 ;; 10673 esac 10674 10675 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10676 postinstall_cmds='base_file=`basename \$file`~ 10677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10678 dldir=$destdir/`dirname \$dlpath`~ 10679 test -d \$dldir || mkdir -p \$dldir~ 10680 $install_prog $dir/$dlname \$dldir/$dlname' 10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10682 dlpath=$dir/\$dldll~ 10683 $RM \$dlpath' 10684 shlibpath_overrides_runpath=yes 10685 dynamic_linker='Win32 link.exe' 10686 ;; 10687 10688 *) 10689 # Assume MSVC wrapper 10690 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10691 dynamic_linker='Win32 ld.exe' 10692 ;; 10693 esac 10694 # FIXME: first we should search . and the directory the executable is in 10695 shlibpath_var=PATH 10696 ;; 10697 10698darwin* | rhapsody*) 10699 dynamic_linker="$host_os dyld" 10700 version_type=darwin 10701 need_lib_prefix=no 10702 need_version=no 10703 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10704 soname_spec='$libname$release$major$shared_ext' 10705 shlibpath_overrides_runpath=yes 10706 shlibpath_var=DYLD_LIBRARY_PATH 10707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10708 10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10711 ;; 10712 10713dgux*) 10714 version_type=linux # correct to gnu/linux during the next big refactor 10715 need_lib_prefix=no 10716 need_version=no 10717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10718 soname_spec='$libname$release$shared_ext$major' 10719 shlibpath_var=LD_LIBRARY_PATH 10720 ;; 10721 10722freebsd* | dragonfly*) 10723 # DragonFly does not have aout. When/if they implement a new 10724 # versioning mechanism, adjust this. 10725 if test -x /usr/bin/objformat; then 10726 objformat=`/usr/bin/objformat` 10727 else 10728 case $host_os in 10729 freebsd[23].*) objformat=aout ;; 10730 *) objformat=elf ;; 10731 esac 10732 fi 10733 version_type=freebsd-$objformat 10734 case $version_type in 10735 freebsd-elf*) 10736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10737 soname_spec='$libname$release$shared_ext$major' 10738 need_version=no 10739 need_lib_prefix=no 10740 ;; 10741 freebsd-*) 10742 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10743 need_version=yes 10744 ;; 10745 esac 10746 shlibpath_var=LD_LIBRARY_PATH 10747 case $host_os in 10748 freebsd2.*) 10749 shlibpath_overrides_runpath=yes 10750 ;; 10751 freebsd3.[01]* | freebsdelf3.[01]*) 10752 shlibpath_overrides_runpath=yes 10753 hardcode_into_libs=yes 10754 ;; 10755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10757 shlibpath_overrides_runpath=no 10758 hardcode_into_libs=yes 10759 ;; 10760 *) # from 4.6 on, and DragonFly 10761 shlibpath_overrides_runpath=yes 10762 hardcode_into_libs=yes 10763 ;; 10764 esac 10765 ;; 10766 10767haiku*) 10768 version_type=linux # correct to gnu/linux during the next big refactor 10769 need_lib_prefix=no 10770 need_version=no 10771 dynamic_linker="$host_os runtime_loader" 10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10773 soname_spec='$libname$release$shared_ext$major' 10774 shlibpath_var=LIBRARY_PATH 10775 shlibpath_overrides_runpath=no 10776 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10777 hardcode_into_libs=yes 10778 ;; 10779 10780hpux9* | hpux10* | hpux11*) 10781 # Give a soname corresponding to the major version so that dld.sl refuses to 10782 # link against other versions. 10783 version_type=sunos 10784 need_lib_prefix=no 10785 need_version=no 10786 case $host_cpu in 10787 ia64*) 10788 shrext_cmds='.so' 10789 hardcode_into_libs=yes 10790 dynamic_linker="$host_os dld.so" 10791 shlibpath_var=LD_LIBRARY_PATH 10792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10794 soname_spec='$libname$release$shared_ext$major' 10795 if test 32 = "$HPUX_IA64_MODE"; then 10796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10797 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10798 else 10799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10800 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10801 fi 10802 ;; 10803 hppa*64*) 10804 shrext_cmds='.sl' 10805 hardcode_into_libs=yes 10806 dynamic_linker="$host_os dld.sl" 10807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10810 soname_spec='$libname$release$shared_ext$major' 10811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10813 ;; 10814 *) 10815 shrext_cmds='.sl' 10816 dynamic_linker="$host_os dld.sl" 10817 shlibpath_var=SHLIB_PATH 10818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10820 soname_spec='$libname$release$shared_ext$major' 10821 ;; 10822 esac 10823 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10824 postinstall_cmds='chmod 555 $lib' 10825 # or fails outright, so override atomically: 10826 install_override_mode=555 10827 ;; 10828 10829interix[3-9]*) 10830 version_type=linux # correct to gnu/linux during the next big refactor 10831 need_lib_prefix=no 10832 need_version=no 10833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10834 soname_spec='$libname$release$shared_ext$major' 10835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10836 shlibpath_var=LD_LIBRARY_PATH 10837 shlibpath_overrides_runpath=no 10838 hardcode_into_libs=yes 10839 ;; 10840 10841irix5* | irix6* | nonstopux*) 10842 case $host_os in 10843 nonstopux*) version_type=nonstopux ;; 10844 *) 10845 if test yes = "$lt_cv_prog_gnu_ld"; then 10846 version_type=linux # correct to gnu/linux during the next big refactor 10847 else 10848 version_type=irix 10849 fi ;; 10850 esac 10851 need_lib_prefix=no 10852 need_version=no 10853 soname_spec='$libname$release$shared_ext$major' 10854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10855 case $host_os in 10856 irix5* | nonstopux*) 10857 libsuff= shlibsuff= 10858 ;; 10859 *) 10860 case $LD in # libtool.m4 will add one of these switches to LD 10861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10862 libsuff= shlibsuff= libmagic=32-bit;; 10863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10864 libsuff=32 shlibsuff=N32 libmagic=N32;; 10865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10866 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10867 *) libsuff= shlibsuff= libmagic=never-match;; 10868 esac 10869 ;; 10870 esac 10871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10872 shlibpath_overrides_runpath=no 10873 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10874 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10875 hardcode_into_libs=yes 10876 ;; 10877 10878# No shared lib support for Linux oldld, aout, or coff. 10879linux*oldld* | linux*aout* | linux*coff*) 10880 dynamic_linker=no 10881 ;; 10882 10883linux*android*) 10884 version_type=none # Android doesn't support versioned libraries. 10885 need_lib_prefix=no 10886 need_version=no 10887 library_names_spec='$libname$release$shared_ext' 10888 soname_spec='$libname$release$shared_ext' 10889 finish_cmds= 10890 shlibpath_var=LD_LIBRARY_PATH 10891 shlibpath_overrides_runpath=yes 10892 10893 # This implies no fast_install, which is unacceptable. 10894 # Some rework will be needed to allow for fast_install 10895 # before this can be enabled. 10896 hardcode_into_libs=yes 10897 10898 dynamic_linker='Android linker' 10899 # Don't embed -rpath directories since the linker doesn't support them. 10900 hardcode_libdir_flag_spec='-L$libdir' 10901 ;; 10902 10903# This must be glibc/ELF. 10904linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10905 version_type=linux # correct to gnu/linux during the next big refactor 10906 need_lib_prefix=no 10907 need_version=no 10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10909 soname_spec='$libname$release$shared_ext$major' 10910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10911 shlibpath_var=LD_LIBRARY_PATH 10912 shlibpath_overrides_runpath=no 10913 10914 # Some binutils ld are patched to set DT_RUNPATH 10915 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 lt_cv_shlibpath_overrides_runpath=no 10919 save_LDFLAGS=$LDFLAGS 10920 save_libdir=$libdir 10921 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10922 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10924/* end confdefs.h. */ 10925 10926int 10927main () 10928{ 10929 10930 ; 10931 return 0; 10932} 10933_ACEOF 10934if ac_fn_c_try_link "$LINENO"; then : 10935 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10936 lt_cv_shlibpath_overrides_runpath=yes 10937fi 10938fi 10939rm -f core conftest.err conftest.$ac_objext \ 10940 conftest$ac_exeext conftest.$ac_ext 10941 LDFLAGS=$save_LDFLAGS 10942 libdir=$save_libdir 10943 10944fi 10945 10946 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10947 10948 # This implies no fast_install, which is unacceptable. 10949 # Some rework will be needed to allow for fast_install 10950 # before this can be enabled. 10951 hardcode_into_libs=yes 10952 10953 # Ideally, we could use ldconfig to report *all* directores which are 10954 # searched for libraries, however this is still not possible. Aside from not 10955 # being certain /sbin/ldconfig is available, command 10956 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10957 # even though it is searched at run-time. Try to do the best guess by 10958 # appending ld.so.conf contents (and includes) to the search path. 10959 if test -f /etc/ld.so.conf; then 10960 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' ' '` 10961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10962 fi 10963 10964 # We used to test for /lib/ld.so.1 and disable shared libraries on 10965 # powerpc, because MkLinux only supported shared libraries with the 10966 # GNU dynamic linker. Since this was broken with cross compilers, 10967 # most powerpc-linux boxes support dynamic linking these days and 10968 # people can always --disable-shared, the test was removed, and we 10969 # assume the GNU/Linux dynamic linker is in use. 10970 dynamic_linker='GNU/Linux ld.so' 10971 ;; 10972 10973netbsd*) 10974 version_type=sunos 10975 need_lib_prefix=no 10976 need_version=no 10977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10980 dynamic_linker='NetBSD (a.out) ld.so' 10981 else 10982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10983 soname_spec='$libname$release$shared_ext$major' 10984 dynamic_linker='NetBSD ld.elf_so' 10985 fi 10986 shlibpath_var=LD_LIBRARY_PATH 10987 shlibpath_overrides_runpath=yes 10988 hardcode_into_libs=yes 10989 ;; 10990 10991newsos6) 10992 version_type=linux # correct to gnu/linux during the next big refactor 10993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10994 shlibpath_var=LD_LIBRARY_PATH 10995 shlibpath_overrides_runpath=yes 10996 ;; 10997 10998*nto* | *qnx*) 10999 version_type=qnx 11000 need_lib_prefix=no 11001 need_version=no 11002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11003 soname_spec='$libname$release$shared_ext$major' 11004 shlibpath_var=LD_LIBRARY_PATH 11005 shlibpath_overrides_runpath=no 11006 hardcode_into_libs=yes 11007 dynamic_linker='ldqnx.so' 11008 ;; 11009 11010openbsd* | bitrig*) 11011 version_type=sunos 11012 sys_lib_dlsearch_path_spec=/usr/lib 11013 need_lib_prefix=no 11014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11015 need_version=no 11016 else 11017 need_version=yes 11018 fi 11019 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11021 shlibpath_var=LD_LIBRARY_PATH 11022 shlibpath_overrides_runpath=yes 11023 ;; 11024 11025os2*) 11026 libname_spec='$name' 11027 version_type=windows 11028 shrext_cmds=.dll 11029 need_version=no 11030 need_lib_prefix=no 11031 # OS/2 can only load a DLL with a base name of 8 characters or less. 11032 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11033 v=$($ECHO $release$versuffix | tr -d .-); 11034 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11035 $ECHO $n$v`$shared_ext' 11036 library_names_spec='${libname}_dll.$libext' 11037 dynamic_linker='OS/2 ld.exe' 11038 shlibpath_var=BEGINLIBPATH 11039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11041 postinstall_cmds='base_file=`basename \$file`~ 11042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11043 dldir=$destdir/`dirname \$dlpath`~ 11044 test -d \$dldir || mkdir -p \$dldir~ 11045 $install_prog $dir/$dlname \$dldir/$dlname~ 11046 chmod a+x \$dldir/$dlname~ 11047 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11048 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11049 fi' 11050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11051 dlpath=$dir/\$dldll~ 11052 $RM \$dlpath' 11053 ;; 11054 11055osf3* | osf4* | osf5*) 11056 version_type=osf 11057 need_lib_prefix=no 11058 need_version=no 11059 soname_spec='$libname$release$shared_ext$major' 11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11061 shlibpath_var=LD_LIBRARY_PATH 11062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11064 ;; 11065 11066rdos*) 11067 dynamic_linker=no 11068 ;; 11069 11070solaris*) 11071 version_type=linux # correct to gnu/linux during the next big refactor 11072 need_lib_prefix=no 11073 need_version=no 11074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11075 soname_spec='$libname$release$shared_ext$major' 11076 shlibpath_var=LD_LIBRARY_PATH 11077 shlibpath_overrides_runpath=yes 11078 hardcode_into_libs=yes 11079 # ldd complains unless libraries are executable 11080 postinstall_cmds='chmod +x $lib' 11081 ;; 11082 11083sunos4*) 11084 version_type=sunos 11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11087 shlibpath_var=LD_LIBRARY_PATH 11088 shlibpath_overrides_runpath=yes 11089 if test yes = "$with_gnu_ld"; then 11090 need_lib_prefix=no 11091 fi 11092 need_version=yes 11093 ;; 11094 11095sysv4 | sysv4.3*) 11096 version_type=linux # correct to gnu/linux during the next big refactor 11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11098 soname_spec='$libname$release$shared_ext$major' 11099 shlibpath_var=LD_LIBRARY_PATH 11100 case $host_vendor in 11101 sni) 11102 shlibpath_overrides_runpath=no 11103 need_lib_prefix=no 11104 runpath_var=LD_RUN_PATH 11105 ;; 11106 siemens) 11107 need_lib_prefix=no 11108 ;; 11109 motorola) 11110 need_lib_prefix=no 11111 need_version=no 11112 shlibpath_overrides_runpath=no 11113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11114 ;; 11115 esac 11116 ;; 11117 11118sysv4*MP*) 11119 if test -d /usr/nec; then 11120 version_type=linux # correct to gnu/linux during the next big refactor 11121 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11122 soname_spec='$libname$shared_ext.$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 fi 11125 ;; 11126 11127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11128 version_type=sco 11129 need_lib_prefix=no 11130 need_version=no 11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11132 soname_spec='$libname$release$shared_ext$major' 11133 shlibpath_var=LD_LIBRARY_PATH 11134 shlibpath_overrides_runpath=yes 11135 hardcode_into_libs=yes 11136 if test yes = "$with_gnu_ld"; then 11137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11138 else 11139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11140 case $host_os in 11141 sco3.2v5*) 11142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11143 ;; 11144 esac 11145 fi 11146 sys_lib_dlsearch_path_spec='/usr/lib' 11147 ;; 11148 11149tpf*) 11150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11151 version_type=linux # correct to gnu/linux during the next big refactor 11152 need_lib_prefix=no 11153 need_version=no 11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11155 shlibpath_var=LD_LIBRARY_PATH 11156 shlibpath_overrides_runpath=no 11157 hardcode_into_libs=yes 11158 ;; 11159 11160uts4*) 11161 version_type=linux # correct to gnu/linux during the next big refactor 11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11163 soname_spec='$libname$release$shared_ext$major' 11164 shlibpath_var=LD_LIBRARY_PATH 11165 ;; 11166 11167*) 11168 dynamic_linker=no 11169 ;; 11170esac 11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11172$as_echo "$dynamic_linker" >&6; } 11173test no = "$dynamic_linker" && can_build_shared=no 11174 11175variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11176if test yes = "$GCC"; then 11177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11178fi 11179 11180if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11181 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11182fi 11183 11184if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11185 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11186fi 11187 11188# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11189configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11190 11191# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11192func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11193 11194# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11195configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11294$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11295hardcode_action= 11296if test -n "$hardcode_libdir_flag_spec" || 11297 test -n "$runpath_var" || 11298 test yes = "$hardcode_automatic"; then 11299 11300 # We can hardcode non-existent directories. 11301 if test no != "$hardcode_direct" && 11302 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11303 # have to relink, otherwise we might link with an installed library 11304 # when we should be linking with a yet-to-be-installed one 11305 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11306 test no != "$hardcode_minus_L"; then 11307 # Linking always hardcodes the temporary library directory. 11308 hardcode_action=relink 11309 else 11310 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11311 hardcode_action=immediate 11312 fi 11313else 11314 # We cannot hardcode anything, or else we can only hardcode existing 11315 # directories. 11316 hardcode_action=unsupported 11317fi 11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11319$as_echo "$hardcode_action" >&6; } 11320 11321if test relink = "$hardcode_action" || 11322 test yes = "$inherit_rpath"; then 11323 # Fast installation is not supported 11324 enable_fast_install=no 11325elif test yes = "$shlibpath_overrides_runpath" || 11326 test no = "$enable_shared"; then 11327 # Fast installation is not necessary 11328 enable_fast_install=needless 11329fi 11330 11331 11332 11333 11334 11335 11336 if test yes != "$enable_dlopen"; then 11337 enable_dlopen=unknown 11338 enable_dlopen_self=unknown 11339 enable_dlopen_self_static=unknown 11340else 11341 lt_cv_dlopen=no 11342 lt_cv_dlopen_libs= 11343 11344 case $host_os in 11345 beos*) 11346 lt_cv_dlopen=load_add_on 11347 lt_cv_dlopen_libs= 11348 lt_cv_dlopen_self=yes 11349 ;; 11350 11351 mingw* | pw32* | cegcc*) 11352 lt_cv_dlopen=LoadLibrary 11353 lt_cv_dlopen_libs= 11354 ;; 11355 11356 cygwin*) 11357 lt_cv_dlopen=dlopen 11358 lt_cv_dlopen_libs= 11359 ;; 11360 11361 darwin*) 11362 # if libdl is installed we need to link against it 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11364$as_echo_n "checking for dlopen in -ldl... " >&6; } 11365if ${ac_cv_lib_dl_dlopen+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 ac_check_lib_save_LIBS=$LIBS 11369LIBS="-ldl $LIBS" 11370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11371/* end confdefs.h. */ 11372 11373/* Override any GCC internal prototype to avoid an error. 11374 Use char because int might match the return type of a GCC 11375 builtin and then its argument prototype would still apply. */ 11376#ifdef __cplusplus 11377extern "C" 11378#endif 11379char dlopen (); 11380int 11381main () 11382{ 11383return dlopen (); 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388if ac_fn_c_try_link "$LINENO"; then : 11389 ac_cv_lib_dl_dlopen=yes 11390else 11391 ac_cv_lib_dl_dlopen=no 11392fi 11393rm -f core conftest.err conftest.$ac_objext \ 11394 conftest$ac_exeext conftest.$ac_ext 11395LIBS=$ac_check_lib_save_LIBS 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11398$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11399if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11400 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11401else 11402 11403 lt_cv_dlopen=dyld 11404 lt_cv_dlopen_libs= 11405 lt_cv_dlopen_self=yes 11406 11407fi 11408 11409 ;; 11410 11411 tpf*) 11412 # Don't try to run any link tests for TPF. We know it's impossible 11413 # because TPF is a cross-compiler, and we know how we open DSOs. 11414 lt_cv_dlopen=dlopen 11415 lt_cv_dlopen_libs= 11416 lt_cv_dlopen_self=no 11417 ;; 11418 11419 *) 11420 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11421if test "x$ac_cv_func_shl_load" = xyes; then : 11422 lt_cv_dlopen=shl_load 11423else 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11425$as_echo_n "checking for shl_load in -ldld... " >&6; } 11426if ${ac_cv_lib_dld_shl_load+:} false; then : 11427 $as_echo_n "(cached) " >&6 11428else 11429 ac_check_lib_save_LIBS=$LIBS 11430LIBS="-ldld $LIBS" 11431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11432/* end confdefs.h. */ 11433 11434/* Override any GCC internal prototype to avoid an error. 11435 Use char because int might match the return type of a GCC 11436 builtin and then its argument prototype would still apply. */ 11437#ifdef __cplusplus 11438extern "C" 11439#endif 11440char shl_load (); 11441int 11442main () 11443{ 11444return shl_load (); 11445 ; 11446 return 0; 11447} 11448_ACEOF 11449if ac_fn_c_try_link "$LINENO"; then : 11450 ac_cv_lib_dld_shl_load=yes 11451else 11452 ac_cv_lib_dld_shl_load=no 11453fi 11454rm -f core conftest.err conftest.$ac_objext \ 11455 conftest$ac_exeext conftest.$ac_ext 11456LIBS=$ac_check_lib_save_LIBS 11457fi 11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11459$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11460if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11461 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11462else 11463 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11464if test "x$ac_cv_func_dlopen" = xyes; then : 11465 lt_cv_dlopen=dlopen 11466else 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11468$as_echo_n "checking for dlopen in -ldl... " >&6; } 11469if ${ac_cv_lib_dl_dlopen+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471else 11472 ac_check_lib_save_LIBS=$LIBS 11473LIBS="-ldl $LIBS" 11474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11475/* end confdefs.h. */ 11476 11477/* Override any GCC internal prototype to avoid an error. 11478 Use char because int might match the return type of a GCC 11479 builtin and then its argument prototype would still apply. */ 11480#ifdef __cplusplus 11481extern "C" 11482#endif 11483char dlopen (); 11484int 11485main () 11486{ 11487return dlopen (); 11488 ; 11489 return 0; 11490} 11491_ACEOF 11492if ac_fn_c_try_link "$LINENO"; then : 11493 ac_cv_lib_dl_dlopen=yes 11494else 11495 ac_cv_lib_dl_dlopen=no 11496fi 11497rm -f core conftest.err conftest.$ac_objext \ 11498 conftest$ac_exeext conftest.$ac_ext 11499LIBS=$ac_check_lib_save_LIBS 11500fi 11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11502$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11503if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11504 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11505else 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11507$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11508if ${ac_cv_lib_svld_dlopen+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 ac_check_lib_save_LIBS=$LIBS 11512LIBS="-lsvld $LIBS" 11513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11514/* end confdefs.h. */ 11515 11516/* Override any GCC internal prototype to avoid an error. 11517 Use char because int might match the return type of a GCC 11518 builtin and then its argument prototype would still apply. */ 11519#ifdef __cplusplus 11520extern "C" 11521#endif 11522char dlopen (); 11523int 11524main () 11525{ 11526return dlopen (); 11527 ; 11528 return 0; 11529} 11530_ACEOF 11531if ac_fn_c_try_link "$LINENO"; then : 11532 ac_cv_lib_svld_dlopen=yes 11533else 11534 ac_cv_lib_svld_dlopen=no 11535fi 11536rm -f core conftest.err conftest.$ac_objext \ 11537 conftest$ac_exeext conftest.$ac_ext 11538LIBS=$ac_check_lib_save_LIBS 11539fi 11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11541$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11542if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11543 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11544else 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11546$as_echo_n "checking for dld_link in -ldld... " >&6; } 11547if ${ac_cv_lib_dld_dld_link+:} false; then : 11548 $as_echo_n "(cached) " >&6 11549else 11550 ac_check_lib_save_LIBS=$LIBS 11551LIBS="-ldld $LIBS" 11552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553/* end confdefs.h. */ 11554 11555/* Override any GCC internal prototype to avoid an error. 11556 Use char because int might match the return type of a GCC 11557 builtin and then its argument prototype would still apply. */ 11558#ifdef __cplusplus 11559extern "C" 11560#endif 11561char dld_link (); 11562int 11563main () 11564{ 11565return dld_link (); 11566 ; 11567 return 0; 11568} 11569_ACEOF 11570if ac_fn_c_try_link "$LINENO"; then : 11571 ac_cv_lib_dld_dld_link=yes 11572else 11573 ac_cv_lib_dld_dld_link=no 11574fi 11575rm -f core conftest.err conftest.$ac_objext \ 11576 conftest$ac_exeext conftest.$ac_ext 11577LIBS=$ac_check_lib_save_LIBS 11578fi 11579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11580$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11581if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11582 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11583fi 11584 11585 11586fi 11587 11588 11589fi 11590 11591 11592fi 11593 11594 11595fi 11596 11597 11598fi 11599 11600 ;; 11601 esac 11602 11603 if test no = "$lt_cv_dlopen"; then 11604 enable_dlopen=no 11605 else 11606 enable_dlopen=yes 11607 fi 11608 11609 case $lt_cv_dlopen in 11610 dlopen) 11611 save_CPPFLAGS=$CPPFLAGS 11612 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11613 11614 save_LDFLAGS=$LDFLAGS 11615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11616 11617 save_LIBS=$LIBS 11618 LIBS="$lt_cv_dlopen_libs $LIBS" 11619 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11621$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11622if ${lt_cv_dlopen_self+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 if test yes = "$cross_compiling"; then : 11626 lt_cv_dlopen_self=cross 11627else 11628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11629 lt_status=$lt_dlunknown 11630 cat > conftest.$ac_ext <<_LT_EOF 11631#line $LINENO "configure" 11632#include "confdefs.h" 11633 11634#if HAVE_DLFCN_H 11635#include <dlfcn.h> 11636#endif 11637 11638#include <stdio.h> 11639 11640#ifdef RTLD_GLOBAL 11641# define LT_DLGLOBAL RTLD_GLOBAL 11642#else 11643# ifdef DL_GLOBAL 11644# define LT_DLGLOBAL DL_GLOBAL 11645# else 11646# define LT_DLGLOBAL 0 11647# endif 11648#endif 11649 11650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11651 find out it does not work in some platform. */ 11652#ifndef LT_DLLAZY_OR_NOW 11653# ifdef RTLD_LAZY 11654# define LT_DLLAZY_OR_NOW RTLD_LAZY 11655# else 11656# ifdef DL_LAZY 11657# define LT_DLLAZY_OR_NOW DL_LAZY 11658# else 11659# ifdef RTLD_NOW 11660# define LT_DLLAZY_OR_NOW RTLD_NOW 11661# else 11662# ifdef DL_NOW 11663# define LT_DLLAZY_OR_NOW DL_NOW 11664# else 11665# define LT_DLLAZY_OR_NOW 0 11666# endif 11667# endif 11668# endif 11669# endif 11670#endif 11671 11672/* When -fvisibility=hidden is used, assume the code has been annotated 11673 correspondingly for the symbols needed. */ 11674#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11675int fnord () __attribute__((visibility("default"))); 11676#endif 11677 11678int fnord () { return 42; } 11679int main () 11680{ 11681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11682 int status = $lt_dlunknown; 11683 11684 if (self) 11685 { 11686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11687 else 11688 { 11689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11690 else puts (dlerror ()); 11691 } 11692 /* dlclose (self); */ 11693 } 11694 else 11695 puts (dlerror ()); 11696 11697 return status; 11698} 11699_LT_EOF 11700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11701 (eval $ac_link) 2>&5 11702 ac_status=$? 11703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11705 (./conftest; exit; ) >&5 2>/dev/null 11706 lt_status=$? 11707 case x$lt_status in 11708 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11709 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11710 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11711 esac 11712 else : 11713 # compilation failed 11714 lt_cv_dlopen_self=no 11715 fi 11716fi 11717rm -fr conftest* 11718 11719 11720fi 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11722$as_echo "$lt_cv_dlopen_self" >&6; } 11723 11724 if test yes = "$lt_cv_dlopen_self"; then 11725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11727$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11728if ${lt_cv_dlopen_self_static+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730else 11731 if test yes = "$cross_compiling"; then : 11732 lt_cv_dlopen_self_static=cross 11733else 11734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11735 lt_status=$lt_dlunknown 11736 cat > conftest.$ac_ext <<_LT_EOF 11737#line $LINENO "configure" 11738#include "confdefs.h" 11739 11740#if HAVE_DLFCN_H 11741#include <dlfcn.h> 11742#endif 11743 11744#include <stdio.h> 11745 11746#ifdef RTLD_GLOBAL 11747# define LT_DLGLOBAL RTLD_GLOBAL 11748#else 11749# ifdef DL_GLOBAL 11750# define LT_DLGLOBAL DL_GLOBAL 11751# else 11752# define LT_DLGLOBAL 0 11753# endif 11754#endif 11755 11756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11757 find out it does not work in some platform. */ 11758#ifndef LT_DLLAZY_OR_NOW 11759# ifdef RTLD_LAZY 11760# define LT_DLLAZY_OR_NOW RTLD_LAZY 11761# else 11762# ifdef DL_LAZY 11763# define LT_DLLAZY_OR_NOW DL_LAZY 11764# else 11765# ifdef RTLD_NOW 11766# define LT_DLLAZY_OR_NOW RTLD_NOW 11767# else 11768# ifdef DL_NOW 11769# define LT_DLLAZY_OR_NOW DL_NOW 11770# else 11771# define LT_DLLAZY_OR_NOW 0 11772# endif 11773# endif 11774# endif 11775# endif 11776#endif 11777 11778/* When -fvisibility=hidden is used, assume the code has been annotated 11779 correspondingly for the symbols needed. */ 11780#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11781int fnord () __attribute__((visibility("default"))); 11782#endif 11783 11784int fnord () { return 42; } 11785int main () 11786{ 11787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11788 int status = $lt_dlunknown; 11789 11790 if (self) 11791 { 11792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11793 else 11794 { 11795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11796 else puts (dlerror ()); 11797 } 11798 /* dlclose (self); */ 11799 } 11800 else 11801 puts (dlerror ()); 11802 11803 return status; 11804} 11805_LT_EOF 11806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11807 (eval $ac_link) 2>&5 11808 ac_status=$? 11809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11810 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11811 (./conftest; exit; ) >&5 2>/dev/null 11812 lt_status=$? 11813 case x$lt_status in 11814 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11815 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11816 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11817 esac 11818 else : 11819 # compilation failed 11820 lt_cv_dlopen_self_static=no 11821 fi 11822fi 11823rm -fr conftest* 11824 11825 11826fi 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11828$as_echo "$lt_cv_dlopen_self_static" >&6; } 11829 fi 11830 11831 CPPFLAGS=$save_CPPFLAGS 11832 LDFLAGS=$save_LDFLAGS 11833 LIBS=$save_LIBS 11834 ;; 11835 esac 11836 11837 case $lt_cv_dlopen_self in 11838 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11839 *) enable_dlopen_self=unknown ;; 11840 esac 11841 11842 case $lt_cv_dlopen_self_static in 11843 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11844 *) enable_dlopen_self_static=unknown ;; 11845 esac 11846fi 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864striplib= 11865old_striplib= 11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11867$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11868if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11869 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11870 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11872$as_echo "yes" >&6; } 11873else 11874# FIXME - insert some real tests, host_os isn't really good enough 11875 case $host_os in 11876 darwin*) 11877 if test -n "$STRIP"; then 11878 striplib="$STRIP -x" 11879 old_striplib="$STRIP -S" 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11881$as_echo "yes" >&6; } 11882 else 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11884$as_echo "no" >&6; } 11885 fi 11886 ;; 11887 *) 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889$as_echo "no" >&6; } 11890 ;; 11891 esac 11892fi 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 # Report what library types will actually be built 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11907$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11909$as_echo "$can_build_shared" >&6; } 11910 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11912$as_echo_n "checking whether to build shared libraries... " >&6; } 11913 test no = "$can_build_shared" && enable_shared=no 11914 11915 # On AIX, shared libraries and static libraries use the same namespace, and 11916 # are all built from PIC. 11917 case $host_os in 11918 aix3*) 11919 test yes = "$enable_shared" && enable_static=no 11920 if test -n "$RANLIB"; then 11921 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11922 postinstall_cmds='$RANLIB $lib' 11923 fi 11924 ;; 11925 11926 aix[4-9]*) 11927 if test ia64 != "$host_cpu"; then 11928 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11929 yes,aix,yes) ;; # shared object as lib.so file only 11930 yes,svr4,*) ;; # shared object as lib.so archive member only 11931 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11932 esac 11933 fi 11934 ;; 11935 esac 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11937$as_echo "$enable_shared" >&6; } 11938 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11940$as_echo_n "checking whether to build static libraries... " >&6; } 11941 # Make sure either enable_shared or enable_static is yes. 11942 test yes = "$enable_shared" || enable_static=yes 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11944$as_echo "$enable_static" >&6; } 11945 11946 11947 11948 11949fi 11950ac_ext=c 11951ac_cpp='$CPP $CPPFLAGS' 11952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11954ac_compiler_gnu=$ac_cv_c_compiler_gnu 11955 11956CC=$lt_save_CC 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 ac_config_commands="$ac_config_commands libtool" 11973 11974 11975 11976 11977# Only expand once: 11978 11979 11980 11981ac_ext=cpp 11982ac_cpp='$CXXCPP $CPPFLAGS' 11983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11986if test -z "$CXX"; then 11987 if test -n "$CCC"; then 11988 CXX=$CCC 11989 else 11990 if test -n "$ac_tool_prefix"; then 11991 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11992 do 11993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11994set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11996$as_echo_n "checking for $ac_word... " >&6; } 11997if ${ac_cv_prog_CXX+:} false; then : 11998 $as_echo_n "(cached) " >&6 11999else 12000 if test -n "$CXX"; then 12001 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12002else 12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12004for as_dir in $PATH 12005do 12006 IFS=$as_save_IFS 12007 test -z "$as_dir" && as_dir=. 12008 for ac_exec_ext in '' $ac_executable_extensions; do 12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12010 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12012 break 2 12013 fi 12014done 12015 done 12016IFS=$as_save_IFS 12017 12018fi 12019fi 12020CXX=$ac_cv_prog_CXX 12021if test -n "$CXX"; then 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12023$as_echo "$CXX" >&6; } 12024else 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12026$as_echo "no" >&6; } 12027fi 12028 12029 12030 test -n "$CXX" && break 12031 done 12032fi 12033if test -z "$CXX"; then 12034 ac_ct_CXX=$CXX 12035 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12036do 12037 # Extract the first word of "$ac_prog", so it can be a program name with args. 12038set dummy $ac_prog; ac_word=$2 12039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12040$as_echo_n "checking for $ac_word... " >&6; } 12041if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12042 $as_echo_n "(cached) " >&6 12043else 12044 if test -n "$ac_ct_CXX"; then 12045 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12046else 12047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12048for as_dir in $PATH 12049do 12050 IFS=$as_save_IFS 12051 test -z "$as_dir" && as_dir=. 12052 for ac_exec_ext in '' $ac_executable_extensions; do 12053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12054 ac_cv_prog_ac_ct_CXX="$ac_prog" 12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12056 break 2 12057 fi 12058done 12059 done 12060IFS=$as_save_IFS 12061 12062fi 12063fi 12064ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12065if test -n "$ac_ct_CXX"; then 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12067$as_echo "$ac_ct_CXX" >&6; } 12068else 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12070$as_echo "no" >&6; } 12071fi 12072 12073 12074 test -n "$ac_ct_CXX" && break 12075done 12076 12077 if test "x$ac_ct_CXX" = x; then 12078 CXX="g++" 12079 else 12080 case $cross_compiling:$ac_tool_warned in 12081yes:) 12082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12084ac_tool_warned=yes ;; 12085esac 12086 CXX=$ac_ct_CXX 12087 fi 12088fi 12089 12090 fi 12091fi 12092# Provide some information about the compiler. 12093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12094set X $ac_compile 12095ac_compiler=$2 12096for ac_option in --version -v -V -qversion; do 12097 { { ac_try="$ac_compiler $ac_option >&5" 12098case "(($ac_try" in 12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12100 *) ac_try_echo=$ac_try;; 12101esac 12102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12103$as_echo "$ac_try_echo"; } >&5 12104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12105 ac_status=$? 12106 if test -s conftest.err; then 12107 sed '10a\ 12108... rest of stderr output deleted ... 12109 10q' conftest.err >conftest.er1 12110 cat conftest.er1 >&5 12111 fi 12112 rm -f conftest.er1 conftest.err 12113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12114 test $ac_status = 0; } 12115done 12116 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12118$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12119if ${ac_cv_cxx_compiler_gnu+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123/* end confdefs.h. */ 12124 12125int 12126main () 12127{ 12128#ifndef __GNUC__ 12129 choke me 12130#endif 12131 12132 ; 12133 return 0; 12134} 12135_ACEOF 12136if ac_fn_cxx_try_compile "$LINENO"; then : 12137 ac_compiler_gnu=yes 12138else 12139 ac_compiler_gnu=no 12140fi 12141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12142ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12143 12144fi 12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12146$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12147if test $ac_compiler_gnu = yes; then 12148 GXX=yes 12149else 12150 GXX= 12151fi 12152ac_test_CXXFLAGS=${CXXFLAGS+set} 12153ac_save_CXXFLAGS=$CXXFLAGS 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12155$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12156if ${ac_cv_prog_cxx_g+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12160 ac_cxx_werror_flag=yes 12161 ac_cv_prog_cxx_g=no 12162 CXXFLAGS="-g" 12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164/* end confdefs.h. */ 12165 12166int 12167main () 12168{ 12169 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174if ac_fn_cxx_try_compile "$LINENO"; then : 12175 ac_cv_prog_cxx_g=yes 12176else 12177 CXXFLAGS="" 12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12179/* end confdefs.h. */ 12180 12181int 12182main () 12183{ 12184 12185 ; 12186 return 0; 12187} 12188_ACEOF 12189if ac_fn_cxx_try_compile "$LINENO"; then : 12190 12191else 12192 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12193 CXXFLAGS="-g" 12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12195/* end confdefs.h. */ 12196 12197int 12198main () 12199{ 12200 12201 ; 12202 return 0; 12203} 12204_ACEOF 12205if ac_fn_cxx_try_compile "$LINENO"; then : 12206 ac_cv_prog_cxx_g=yes 12207fi 12208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12209fi 12210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12211fi 12212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12213 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12214fi 12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12216$as_echo "$ac_cv_prog_cxx_g" >&6; } 12217if test "$ac_test_CXXFLAGS" = set; then 12218 CXXFLAGS=$ac_save_CXXFLAGS 12219elif test $ac_cv_prog_cxx_g = yes; then 12220 if test "$GXX" = yes; then 12221 CXXFLAGS="-g -O2" 12222 else 12223 CXXFLAGS="-g" 12224 fi 12225else 12226 if test "$GXX" = yes; then 12227 CXXFLAGS="-O2" 12228 else 12229 CXXFLAGS= 12230 fi 12231fi 12232ac_ext=c 12233ac_cpp='$CPP $CPPFLAGS' 12234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12236ac_compiler_gnu=$ac_cv_c_compiler_gnu 12237 12238depcc="$CXX" am_compiler_list= 12239 12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12241$as_echo_n "checking dependency style of $depcc... " >&6; } 12242if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12246 # We make a subdir and do the tests there. Otherwise we can end up 12247 # making bogus files that we don't know about and never remove. For 12248 # instance it was reported that on HP-UX the gcc test will end up 12249 # making a dummy file named 'D' -- because '-MD' means "put the output 12250 # in D". 12251 rm -rf conftest.dir 12252 mkdir conftest.dir 12253 # Copy depcomp to subdir because otherwise we won't find it if we're 12254 # using a relative directory. 12255 cp "$am_depcomp" conftest.dir 12256 cd conftest.dir 12257 # We will build objects and dependencies in a subdirectory because 12258 # it helps to detect inapplicable dependency modes. For instance 12259 # both Tru64's cc and ICC support -MD to output dependencies as a 12260 # side effect of compilation, but ICC will put the dependencies in 12261 # the current directory while Tru64 will put them in the object 12262 # directory. 12263 mkdir sub 12264 12265 am_cv_CXX_dependencies_compiler_type=none 12266 if test "$am_compiler_list" = ""; then 12267 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12268 fi 12269 am__universal=false 12270 case " $depcc " in #( 12271 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12272 esac 12273 12274 for depmode in $am_compiler_list; do 12275 # Setup a source with many dependencies, because some compilers 12276 # like to wrap large dependency lists on column 80 (with \), and 12277 # we should not choose a depcomp mode which is confused by this. 12278 # 12279 # We need to recreate these files for each test, as the compiler may 12280 # overwrite some of them when testing with obscure command lines. 12281 # This happens at least with the AIX C compiler. 12282 : > sub/conftest.c 12283 for i in 1 2 3 4 5 6; do 12284 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12285 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12286 # Solaris 10 /bin/sh. 12287 echo '/* dummy */' > sub/conftst$i.h 12288 done 12289 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12290 12291 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12292 # mode. It turns out that the SunPro C++ compiler does not properly 12293 # handle '-M -o', and we need to detect this. Also, some Intel 12294 # versions had trouble with output in subdirs. 12295 am__obj=sub/conftest.${OBJEXT-o} 12296 am__minus_obj="-o $am__obj" 12297 case $depmode in 12298 gcc) 12299 # This depmode causes a compiler race in universal mode. 12300 test "$am__universal" = false || continue 12301 ;; 12302 nosideeffect) 12303 # After this tag, mechanisms are not by side-effect, so they'll 12304 # only be used when explicitly requested. 12305 if test "x$enable_dependency_tracking" = xyes; then 12306 continue 12307 else 12308 break 12309 fi 12310 ;; 12311 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12312 # This compiler won't grok '-c -o', but also, the minuso test has 12313 # not run yet. These depmodes are late enough in the game, and 12314 # so weak that their functioning should not be impacted. 12315 am__obj=conftest.${OBJEXT-o} 12316 am__minus_obj= 12317 ;; 12318 none) break ;; 12319 esac 12320 if depmode=$depmode \ 12321 source=sub/conftest.c object=$am__obj \ 12322 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12323 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12324 >/dev/null 2>conftest.err && 12325 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12326 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12327 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12328 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12329 # icc doesn't choke on unknown options, it will just issue warnings 12330 # or remarks (even with -Werror). So we grep stderr for any message 12331 # that says an option was ignored or not supported. 12332 # When given -MP, icc 7.0 and 7.1 complain thusly: 12333 # icc: Command line warning: ignoring option '-M'; no argument required 12334 # The diagnosis changed in icc 8.0: 12335 # icc: Command line remark: option '-MP' not supported 12336 if (grep 'ignoring option' conftest.err || 12337 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12338 am_cv_CXX_dependencies_compiler_type=$depmode 12339 break 12340 fi 12341 fi 12342 done 12343 12344 cd .. 12345 rm -rf conftest.dir 12346else 12347 am_cv_CXX_dependencies_compiler_type=none 12348fi 12349 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12352$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12353CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12354 12355 if 12356 test "x$enable_dependency_tracking" != xno \ 12357 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12358 am__fastdepCXX_TRUE= 12359 am__fastdepCXX_FALSE='#' 12360else 12361 am__fastdepCXX_TRUE='#' 12362 am__fastdepCXX_FALSE= 12363fi 12364 12365 12366 12367 12368func_stripname_cnf () 12369{ 12370 case @S|@2 in 12371 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 12372 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 12373 esac 12374} # func_stripname_cnf 12375 12376 if test -n "$CXX" && ( test no != "$CXX" && 12377 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12378 (test g++ != "$CXX"))); then 12379 ac_ext=cpp 12380ac_cpp='$CXXCPP $CPPFLAGS' 12381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12385$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12386if test -z "$CXXCPP"; then 12387 if ${ac_cv_prog_CXXCPP+:} false; then : 12388 $as_echo_n "(cached) " >&6 12389else 12390 # Double quotes because CXXCPP needs to be expanded 12391 for CXXCPP in "$CXX -E" "/lib/cpp" 12392 do 12393 ac_preproc_ok=false 12394for ac_cxx_preproc_warn_flag in '' yes 12395do 12396 # Use a header file that comes with gcc, so configuring glibc 12397 # with a fresh cross-compiler works. 12398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12399 # <limits.h> exists even on freestanding compilers. 12400 # On the NeXT, cc -E runs the code through the compiler's parser, 12401 # not just through cpp. "Syntax error" is here to catch this case. 12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12403/* end confdefs.h. */ 12404@%:@ifdef __STDC__ 12405@%:@ include <limits.h> 12406@%:@else 12407@%:@ include <assert.h> 12408@%:@endif 12409 Syntax error 12410_ACEOF 12411if ac_fn_cxx_try_cpp "$LINENO"; then : 12412 12413else 12414 # Broken: fails on valid input. 12415continue 12416fi 12417rm -f conftest.err conftest.i conftest.$ac_ext 12418 12419 # OK, works on sane cases. Now check whether nonexistent headers 12420 # can be detected and how. 12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12422/* end confdefs.h. */ 12423@%:@include <ac_nonexistent.h> 12424_ACEOF 12425if ac_fn_cxx_try_cpp "$LINENO"; then : 12426 # Broken: success on invalid input. 12427continue 12428else 12429 # Passes both tests. 12430ac_preproc_ok=: 12431break 12432fi 12433rm -f conftest.err conftest.i conftest.$ac_ext 12434 12435done 12436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12437rm -f conftest.i conftest.err conftest.$ac_ext 12438if $ac_preproc_ok; then : 12439 break 12440fi 12441 12442 done 12443 ac_cv_prog_CXXCPP=$CXXCPP 12444 12445fi 12446 CXXCPP=$ac_cv_prog_CXXCPP 12447else 12448 ac_cv_prog_CXXCPP=$CXXCPP 12449fi 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12451$as_echo "$CXXCPP" >&6; } 12452ac_preproc_ok=false 12453for ac_cxx_preproc_warn_flag in '' yes 12454do 12455 # Use a header file that comes with gcc, so configuring glibc 12456 # with a fresh cross-compiler works. 12457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12458 # <limits.h> exists even on freestanding compilers. 12459 # On the NeXT, cc -E runs the code through the compiler's parser, 12460 # not just through cpp. "Syntax error" is here to catch this case. 12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463@%:@ifdef __STDC__ 12464@%:@ include <limits.h> 12465@%:@else 12466@%:@ include <assert.h> 12467@%:@endif 12468 Syntax error 12469_ACEOF 12470if ac_fn_cxx_try_cpp "$LINENO"; then : 12471 12472else 12473 # Broken: fails on valid input. 12474continue 12475fi 12476rm -f conftest.err conftest.i conftest.$ac_ext 12477 12478 # OK, works on sane cases. Now check whether nonexistent headers 12479 # can be detected and how. 12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12481/* end confdefs.h. */ 12482@%:@include <ac_nonexistent.h> 12483_ACEOF 12484if ac_fn_cxx_try_cpp "$LINENO"; then : 12485 # Broken: success on invalid input. 12486continue 12487else 12488 # Passes both tests. 12489ac_preproc_ok=: 12490break 12491fi 12492rm -f conftest.err conftest.i conftest.$ac_ext 12493 12494done 12495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12496rm -f conftest.i conftest.err conftest.$ac_ext 12497if $ac_preproc_ok; then : 12498 12499else 12500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12502as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12503See \`config.log' for more details" "$LINENO" 5; } 12504fi 12505 12506ac_ext=c 12507ac_cpp='$CPP $CPPFLAGS' 12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12510ac_compiler_gnu=$ac_cv_c_compiler_gnu 12511 12512else 12513 _lt_caught_CXX_error=yes 12514fi 12515 12516ac_ext=cpp 12517ac_cpp='$CXXCPP $CPPFLAGS' 12518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12521 12522archive_cmds_need_lc_CXX=no 12523allow_undefined_flag_CXX= 12524always_export_symbols_CXX=no 12525archive_expsym_cmds_CXX= 12526compiler_needs_object_CXX=no 12527export_dynamic_flag_spec_CXX= 12528hardcode_direct_CXX=no 12529hardcode_direct_absolute_CXX=no 12530hardcode_libdir_flag_spec_CXX= 12531hardcode_libdir_separator_CXX= 12532hardcode_minus_L_CXX=no 12533hardcode_shlibpath_var_CXX=unsupported 12534hardcode_automatic_CXX=no 12535inherit_rpath_CXX=no 12536module_cmds_CXX= 12537module_expsym_cmds_CXX= 12538link_all_deplibs_CXX=unknown 12539old_archive_cmds_CXX=$old_archive_cmds 12540reload_flag_CXX=$reload_flag 12541reload_cmds_CXX=$reload_cmds 12542no_undefined_flag_CXX= 12543whole_archive_flag_spec_CXX= 12544enable_shared_with_static_runtimes_CXX=no 12545 12546# Source file extension for C++ test sources. 12547ac_ext=cpp 12548 12549# Object file extension for compiled C++ test sources. 12550objext=o 12551objext_CXX=$objext 12552 12553# No sense in running all these tests if we already determined that 12554# the CXX compiler isn't working. Some variables (like enable_shared) 12555# are currently assumed to apply to all compilers on this platform, 12556# and will be corrupted by setting them based on a non-working compiler. 12557if test yes != "$_lt_caught_CXX_error"; then 12558 # Code to be used in simple compile tests 12559 lt_simple_compile_test_code="int some_variable = 0;" 12560 12561 # Code to be used in simple link tests 12562 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12563 12564 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12565 12566 12567 12568 12569 12570 12571# If no C compiler was specified, use CC. 12572LTCC=${LTCC-"$CC"} 12573 12574# If no C compiler flags were specified, use CFLAGS. 12575LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12576 12577# Allow CC to be a program name with arguments. 12578compiler=$CC 12579 12580 12581 # save warnings/boilerplate of simple test code 12582 ac_outfile=conftest.$ac_objext 12583echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12584eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12585_lt_compiler_boilerplate=`cat conftest.err` 12586$RM conftest* 12587 12588 ac_outfile=conftest.$ac_objext 12589echo "$lt_simple_link_test_code" >conftest.$ac_ext 12590eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12591_lt_linker_boilerplate=`cat conftest.err` 12592$RM -r conftest* 12593 12594 12595 # Allow CC to be a program name with arguments. 12596 lt_save_CC=$CC 12597 lt_save_CFLAGS=$CFLAGS 12598 lt_save_LD=$LD 12599 lt_save_GCC=$GCC 12600 GCC=$GXX 12601 lt_save_with_gnu_ld=$with_gnu_ld 12602 lt_save_path_LD=$lt_cv_path_LD 12603 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12604 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12605 else 12606 $as_unset lt_cv_prog_gnu_ld 12607 fi 12608 if test -n "${lt_cv_path_LDCXX+set}"; then 12609 lt_cv_path_LD=$lt_cv_path_LDCXX 12610 else 12611 $as_unset lt_cv_path_LD 12612 fi 12613 test -z "${LDCXX+set}" || LD=$LDCXX 12614 CC=${CXX-"c++"} 12615 CFLAGS=$CXXFLAGS 12616 compiler=$CC 12617 compiler_CXX=$CC 12618 func_cc_basename $compiler 12619cc_basename=$func_cc_basename_result 12620 12621 12622 if test -n "$compiler"; then 12623 # We don't want -fno-exception when compiling C++ code, so set the 12624 # no_builtin_flag separately 12625 if test yes = "$GXX"; then 12626 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12627 else 12628 lt_prog_compiler_no_builtin_flag_CXX= 12629 fi 12630 12631 if test yes = "$GXX"; then 12632 # Set up default GNU C++ configuration 12633 12634 12635 12636@%:@ Check whether --with-gnu-ld was given. 12637if test "${with_gnu_ld+set}" = set; then : 12638 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12639else 12640 with_gnu_ld=no 12641fi 12642 12643ac_prog=ld 12644if test yes = "$GCC"; then 12645 # Check if gcc -print-prog-name=ld gives a path. 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12647$as_echo_n "checking for ld used by $CC... " >&6; } 12648 case $host in 12649 *-*-mingw*) 12650 # gcc leaves a trailing carriage return, which upsets mingw 12651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12652 *) 12653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12654 esac 12655 case $ac_prog in 12656 # Accept absolute paths. 12657 [\\/]* | ?:[\\/]*) 12658 re_direlt='/[^/][^/]*/\.\./' 12659 # Canonicalize the pathname of ld 12660 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12661 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12662 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12663 done 12664 test -z "$LD" && LD=$ac_prog 12665 ;; 12666 "") 12667 # If it fails, then pretend we aren't using GCC. 12668 ac_prog=ld 12669 ;; 12670 *) 12671 # If it is relative, then search for the first ld in PATH. 12672 with_gnu_ld=unknown 12673 ;; 12674 esac 12675elif test yes = "$with_gnu_ld"; then 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12677$as_echo_n "checking for GNU ld... " >&6; } 12678else 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12680$as_echo_n "checking for non-GNU ld... " >&6; } 12681fi 12682if ${lt_cv_path_LD+:} false; then : 12683 $as_echo_n "(cached) " >&6 12684else 12685 if test -z "$LD"; then 12686 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12687 for ac_dir in $PATH; do 12688 IFS=$lt_save_ifs 12689 test -z "$ac_dir" && ac_dir=. 12690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12691 lt_cv_path_LD=$ac_dir/$ac_prog 12692 # Check to see if the program is GNU ld. I'd rather use --version, 12693 # but apparently some variants of GNU ld only accept -v. 12694 # Break only if it was the GNU/non-GNU ld that we prefer. 12695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12696 *GNU* | *'with BFD'*) 12697 test no != "$with_gnu_ld" && break 12698 ;; 12699 *) 12700 test yes != "$with_gnu_ld" && break 12701 ;; 12702 esac 12703 fi 12704 done 12705 IFS=$lt_save_ifs 12706else 12707 lt_cv_path_LD=$LD # Let the user override the test with a path. 12708fi 12709fi 12710 12711LD=$lt_cv_path_LD 12712if test -n "$LD"; then 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12714$as_echo "$LD" >&6; } 12715else 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12717$as_echo "no" >&6; } 12718fi 12719test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12721$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12722if ${lt_cv_prog_gnu_ld+:} false; then : 12723 $as_echo_n "(cached) " >&6 12724else 12725 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12726case `$LD -v 2>&1 </dev/null` in 12727*GNU* | *'with BFD'*) 12728 lt_cv_prog_gnu_ld=yes 12729 ;; 12730*) 12731 lt_cv_prog_gnu_ld=no 12732 ;; 12733esac 12734fi 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12736$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12737with_gnu_ld=$lt_cv_prog_gnu_ld 12738 12739 12740 12741 12742 12743 12744 12745 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12746 # archiving commands below assume that GNU ld is being used. 12747 if test yes = "$with_gnu_ld"; then 12748 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12749 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' 12750 12751 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12752 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12753 12754 # If archive_cmds runs LD, not CC, wlarc should be empty 12755 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12756 # investigate it a little bit more. (MM) 12757 wlarc='$wl' 12758 12759 # ancient GNU ld didn't support --whole-archive et. al. 12760 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12761 $GREP 'no-whole-archive' > /dev/null; then 12762 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12763 else 12764 whole_archive_flag_spec_CXX= 12765 fi 12766 else 12767 with_gnu_ld=no 12768 wlarc= 12769 12770 # A generic and very simple default shared library creation 12771 # command for GNU C++ for the case where it uses the native 12772 # linker, instead of GNU ld. If possible, this setting should 12773 # overridden to take advantage of the native linker features on 12774 # the platform it is being used on. 12775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12776 fi 12777 12778 # Commands to make compiler produce verbose output that lists 12779 # what "hidden" libraries, object files and flags are used when 12780 # linking a shared library. 12781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12782 12783 else 12784 GXX=no 12785 with_gnu_ld=no 12786 wlarc= 12787 fi 12788 12789 # PORTME: fill in a description of your system's C++ link characteristics 12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12791$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12792 ld_shlibs_CXX=yes 12793 case $host_os in 12794 aix3*) 12795 # FIXME: insert proper C++ library support 12796 ld_shlibs_CXX=no 12797 ;; 12798 aix[4-9]*) 12799 if test ia64 = "$host_cpu"; then 12800 # On IA64, the linker does run time linking by default, so we don't 12801 # have to do anything special. 12802 aix_use_runtimelinking=no 12803 exp_sym_flag='-Bexport' 12804 no_entry_flag= 12805 else 12806 aix_use_runtimelinking=no 12807 12808 # Test if we are trying to use run time linking or normal 12809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12810 # have runtime linking enabled, and use it for executables. 12811 # For shared libraries, we enable/disable runtime linking 12812 # depending on the kind of the shared library created - 12813 # when "with_aix_soname,aix_use_runtimelinking" is: 12814 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12815 # "aix,yes" lib.so shared, rtl:yes, for executables 12816 # lib.a static archive 12817 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12818 # lib.a(lib.so.V) shared, rtl:no, for executables 12819 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12820 # lib.a(lib.so.V) shared, rtl:no 12821 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12822 # lib.a static archive 12823 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12824 for ld_flag in $LDFLAGS; do 12825 case $ld_flag in 12826 *-brtl*) 12827 aix_use_runtimelinking=yes 12828 break 12829 ;; 12830 esac 12831 done 12832 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12833 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12834 # so we don't have lib.a shared libs to link our executables. 12835 # We have to force runtime linking in this case. 12836 aix_use_runtimelinking=yes 12837 LDFLAGS="$LDFLAGS -Wl,-brtl" 12838 fi 12839 ;; 12840 esac 12841 12842 exp_sym_flag='-bexport' 12843 no_entry_flag='-bnoentry' 12844 fi 12845 12846 # When large executables or shared objects are built, AIX ld can 12847 # have problems creating the table of contents. If linking a library 12848 # or program results in "error TOC overflow" add -mminimal-toc to 12849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12851 12852 archive_cmds_CXX='' 12853 hardcode_direct_CXX=yes 12854 hardcode_direct_absolute_CXX=yes 12855 hardcode_libdir_separator_CXX=':' 12856 link_all_deplibs_CXX=yes 12857 file_list_spec_CXX='$wl-f,' 12858 case $with_aix_soname,$aix_use_runtimelinking in 12859 aix,*) ;; # no import file 12860 svr4,* | *,yes) # use import file 12861 # The Import File defines what to hardcode. 12862 hardcode_direct_CXX=no 12863 hardcode_direct_absolute_CXX=no 12864 ;; 12865 esac 12866 12867 if test yes = "$GXX"; then 12868 case $host_os in aix4.[012]|aix4.[012].*) 12869 # We only want to do this on AIX 4.2 and lower, the check 12870 # below for broken collect2 doesn't work under 4.3+ 12871 collect2name=`$CC -print-prog-name=collect2` 12872 if test -f "$collect2name" && 12873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12874 then 12875 # We have reworked collect2 12876 : 12877 else 12878 # We have old collect2 12879 hardcode_direct_CXX=unsupported 12880 # It fails to find uninstalled libraries when the uninstalled 12881 # path is not listed in the libpath. Setting hardcode_minus_L 12882 # to unsupported forces relinking 12883 hardcode_minus_L_CXX=yes 12884 hardcode_libdir_flag_spec_CXX='-L$libdir' 12885 hardcode_libdir_separator_CXX= 12886 fi 12887 esac 12888 shared_flag='-shared' 12889 if test yes = "$aix_use_runtimelinking"; then 12890 shared_flag=$shared_flag' $wl-G' 12891 fi 12892 # Need to ensure runtime linking is disabled for the traditional 12893 # shared library, or the linker may eventually find shared libraries 12894 # /with/ Import File - we do not want to mix them. 12895 shared_flag_aix='-shared' 12896 shared_flag_svr4='-shared $wl-G' 12897 else 12898 # not using gcc 12899 if test ia64 = "$host_cpu"; then 12900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12901 # chokes on -Wl,-G. The following line is correct: 12902 shared_flag='-G' 12903 else 12904 if test yes = "$aix_use_runtimelinking"; then 12905 shared_flag='$wl-G' 12906 else 12907 shared_flag='$wl-bM:SRE' 12908 fi 12909 shared_flag_aix='$wl-bM:SRE' 12910 shared_flag_svr4='$wl-G' 12911 fi 12912 fi 12913 12914 export_dynamic_flag_spec_CXX='$wl-bexpall' 12915 # It seems that -bexpall does not export symbols beginning with 12916 # underscore (_), so it is better to generate a list of symbols to 12917 # export. 12918 always_export_symbols_CXX=yes 12919 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12920 # Warning - without using the other runtime loading flags (-brtl), 12921 # -berok will link without error, but may produce a broken library. 12922 # The "-G" linker flag allows undefined symbols. 12923 no_undefined_flag_CXX='-bernotok' 12924 # Determine the default libpath from the value encoded in an empty 12925 # executable. 12926 if test set = "${lt_cv_aix_libpath+set}"; then 12927 aix_libpath=$lt_cv_aix_libpath 12928else 12929 if ${lt_cv_aix_libpath__CXX+:} false; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12933/* end confdefs.h. */ 12934 12935int 12936main () 12937{ 12938 12939 ; 12940 return 0; 12941} 12942_ACEOF 12943if ac_fn_cxx_try_link "$LINENO"; then : 12944 12945 lt_aix_libpath_sed=' 12946 /Import File Strings/,/^$/ { 12947 /^0/ { 12948 s/^0 *\([^ ]*\) *$/\1/ 12949 p 12950 } 12951 }' 12952 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12953 # Check for a 64-bit object if we didn't find anything. 12954 if test -z "$lt_cv_aix_libpath__CXX"; then 12955 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12956 fi 12957fi 12958rm -f core conftest.err conftest.$ac_objext \ 12959 conftest$ac_exeext conftest.$ac_ext 12960 if test -z "$lt_cv_aix_libpath__CXX"; then 12961 lt_cv_aix_libpath__CXX=/usr/lib:/lib 12962 fi 12963 12964fi 12965 12966 aix_libpath=$lt_cv_aix_libpath__CXX 12967fi 12968 12969 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 12970 12971 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12972 else 12973 if test ia64 = "$host_cpu"; then 12974 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 12975 allow_undefined_flag_CXX="-z nodefs" 12976 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" 12977 else 12978 # Determine the default libpath from the value encoded in an 12979 # empty executable. 12980 if test set = "${lt_cv_aix_libpath+set}"; then 12981 aix_libpath=$lt_cv_aix_libpath 12982else 12983 if ${lt_cv_aix_libpath__CXX+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985else 12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12987/* end confdefs.h. */ 12988 12989int 12990main () 12991{ 12992 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997if ac_fn_cxx_try_link "$LINENO"; then : 12998 12999 lt_aix_libpath_sed=' 13000 /Import File Strings/,/^$/ { 13001 /^0/ { 13002 s/^0 *\([^ ]*\) *$/\1/ 13003 p 13004 } 13005 }' 13006 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13007 # Check for a 64-bit object if we didn't find anything. 13008 if test -z "$lt_cv_aix_libpath__CXX"; then 13009 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13010 fi 13011fi 13012rm -f core conftest.err conftest.$ac_objext \ 13013 conftest$ac_exeext conftest.$ac_ext 13014 if test -z "$lt_cv_aix_libpath__CXX"; then 13015 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13016 fi 13017 13018fi 13019 13020 aix_libpath=$lt_cv_aix_libpath__CXX 13021fi 13022 13023 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13024 # Warning - without using the other run time loading flags, 13025 # -berok will link without error, but may produce a broken library. 13026 no_undefined_flag_CXX=' $wl-bernotok' 13027 allow_undefined_flag_CXX=' $wl-berok' 13028 if test yes = "$with_gnu_ld"; then 13029 # We only use this code for GNU lds that support --whole-archive. 13030 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13031 else 13032 # Exported symbols can be pulled into shared objects from archives 13033 whole_archive_flag_spec_CXX='$convenience' 13034 fi 13035 archive_cmds_need_lc_CXX=yes 13036 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13037 # -brtl affects multiple linker settings, -berok does not and is overridden later 13038 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13039 if test svr4 != "$with_aix_soname"; then 13040 # This is similar to how AIX traditionally builds its shared 13041 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13042 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13043 fi 13044 if test aix != "$with_aix_soname"; then 13045 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13046 else 13047 # used by -dlpreopen to get the symbols 13048 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13049 fi 13050 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13051 fi 13052 fi 13053 ;; 13054 13055 beos*) 13056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13057 allow_undefined_flag_CXX=unsupported 13058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13059 # support --undefined. This deserves some investigation. FIXME 13060 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13061 else 13062 ld_shlibs_CXX=no 13063 fi 13064 ;; 13065 13066 chorus*) 13067 case $cc_basename in 13068 *) 13069 # FIXME: insert proper C++ library support 13070 ld_shlibs_CXX=no 13071 ;; 13072 esac 13073 ;; 13074 13075 cygwin* | mingw* | pw32* | cegcc*) 13076 case $GXX,$cc_basename in 13077 ,cl* | no,cl*) 13078 # Native MSVC 13079 # hardcode_libdir_flag_spec is actually meaningless, as there is 13080 # no search path for DLLs. 13081 hardcode_libdir_flag_spec_CXX=' ' 13082 allow_undefined_flag_CXX=unsupported 13083 always_export_symbols_CXX=yes 13084 file_list_spec_CXX='@' 13085 # Tell ltmain to make .lib files, not .a files. 13086 libext=lib 13087 # Tell ltmain to make .dll files, not .so files. 13088 shrext_cmds=.dll 13089 # FIXME: Setting linknames here is a bad hack. 13090 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13091 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13092 cp "$export_symbols" "$output_objdir/$soname.def"; 13093 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13094 else 13095 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13096 fi~ 13097 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13098 linknames=' 13099 # The linker will not automatically build a static lib if we build a DLL. 13100 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13101 enable_shared_with_static_runtimes_CXX=yes 13102 # Don't use ranlib 13103 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13104 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13105 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13106 case $lt_outputfile in 13107 *.exe|*.EXE) ;; 13108 *) 13109 lt_outputfile=$lt_outputfile.exe 13110 lt_tool_outputfile=$lt_tool_outputfile.exe 13111 ;; 13112 esac~ 13113 func_to_tool_file "$lt_outputfile"~ 13114 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13115 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13116 $RM "$lt_outputfile.manifest"; 13117 fi' 13118 ;; 13119 *) 13120 # g++ 13121 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13122 # as there is no search path for DLLs. 13123 hardcode_libdir_flag_spec_CXX='-L$libdir' 13124 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13125 allow_undefined_flag_CXX=unsupported 13126 always_export_symbols_CXX=no 13127 enable_shared_with_static_runtimes_CXX=yes 13128 13129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13130 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' 13131 # If the export-symbols file already is a .def file, use it as 13132 # is; otherwise, prepend EXPORTS... 13133 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13134 cp $export_symbols $output_objdir/$soname.def; 13135 else 13136 echo EXPORTS > $output_objdir/$soname.def; 13137 cat $export_symbols >> $output_objdir/$soname.def; 13138 fi~ 13139 $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' 13140 else 13141 ld_shlibs_CXX=no 13142 fi 13143 ;; 13144 esac 13145 ;; 13146 darwin* | rhapsody*) 13147 13148 13149 archive_cmds_need_lc_CXX=no 13150 hardcode_direct_CXX=no 13151 hardcode_automatic_CXX=yes 13152 hardcode_shlibpath_var_CXX=unsupported 13153 if test yes = "$lt_cv_ld_force_load"; then 13154 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\"`' 13155 13156 else 13157 whole_archive_flag_spec_CXX='' 13158 fi 13159 link_all_deplibs_CXX=yes 13160 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13161 case $cc_basename in 13162 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13163 *) _lt_dar_can_shared=$GCC ;; 13164 esac 13165 if test yes = "$_lt_dar_can_shared"; then 13166 output_verbose_link_cmd=func_echo_all 13167 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" 13168 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13169 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" 13170 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" 13171 if test yes != "$lt_cv_apple_cc_single_mod"; then 13172 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" 13173 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" 13174 fi 13175 13176 else 13177 ld_shlibs_CXX=no 13178 fi 13179 13180 ;; 13181 13182 os2*) 13183 hardcode_libdir_flag_spec_CXX='-L$libdir' 13184 hardcode_minus_L_CXX=yes 13185 allow_undefined_flag_CXX=unsupported 13186 shrext_cmds=.dll 13187 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13188 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13189 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13190 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13191 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13192 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13193 emximp -o $lib $output_objdir/$libname.def' 13194 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13195 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13196 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13197 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13198 prefix_cmds="$SED"~ 13199 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13200 prefix_cmds="$prefix_cmds -e 1d"; 13201 fi~ 13202 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13203 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13204 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13205 emximp -o $lib $output_objdir/$libname.def' 13206 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13207 enable_shared_with_static_runtimes_CXX=yes 13208 ;; 13209 13210 dgux*) 13211 case $cc_basename in 13212 ec++*) 13213 # FIXME: insert proper C++ library support 13214 ld_shlibs_CXX=no 13215 ;; 13216 ghcx*) 13217 # Green Hills C++ Compiler 13218 # FIXME: insert proper C++ library support 13219 ld_shlibs_CXX=no 13220 ;; 13221 *) 13222 # FIXME: insert proper C++ library support 13223 ld_shlibs_CXX=no 13224 ;; 13225 esac 13226 ;; 13227 13228 freebsd2.*) 13229 # C++ shared libraries reported to be fairly broken before 13230 # switch to ELF 13231 ld_shlibs_CXX=no 13232 ;; 13233 13234 freebsd-elf*) 13235 archive_cmds_need_lc_CXX=no 13236 ;; 13237 13238 freebsd* | dragonfly*) 13239 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13240 # conventions 13241 ld_shlibs_CXX=yes 13242 ;; 13243 13244 haiku*) 13245 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13246 link_all_deplibs_CXX=yes 13247 ;; 13248 13249 hpux9*) 13250 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13251 hardcode_libdir_separator_CXX=: 13252 export_dynamic_flag_spec_CXX='$wl-E' 13253 hardcode_direct_CXX=yes 13254 hardcode_minus_L_CXX=yes # Not in the search PATH, 13255 # but as the default 13256 # location of the library. 13257 13258 case $cc_basename in 13259 CC*) 13260 # FIXME: insert proper C++ library support 13261 ld_shlibs_CXX=no 13262 ;; 13263 aCC*) 13264 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13265 # Commands to make compiler produce verbose output that lists 13266 # what "hidden" libraries, object files and flags are used when 13267 # linking a shared library. 13268 # 13269 # There doesn't appear to be a way to prevent this compiler from 13270 # explicitly linking system object files so we need to strip them 13271 # from the output so that they don't get included in the library 13272 # dependencies. 13273 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"' 13274 ;; 13275 *) 13276 if test yes = "$GXX"; then 13277 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13278 else 13279 # FIXME: insert proper C++ library support 13280 ld_shlibs_CXX=no 13281 fi 13282 ;; 13283 esac 13284 ;; 13285 13286 hpux10*|hpux11*) 13287 if test no = "$with_gnu_ld"; then 13288 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13289 hardcode_libdir_separator_CXX=: 13290 13291 case $host_cpu in 13292 hppa*64*|ia64*) 13293 ;; 13294 *) 13295 export_dynamic_flag_spec_CXX='$wl-E' 13296 ;; 13297 esac 13298 fi 13299 case $host_cpu in 13300 hppa*64*|ia64*) 13301 hardcode_direct_CXX=no 13302 hardcode_shlibpath_var_CXX=no 13303 ;; 13304 *) 13305 hardcode_direct_CXX=yes 13306 hardcode_direct_absolute_CXX=yes 13307 hardcode_minus_L_CXX=yes # Not in the search PATH, 13308 # but as the default 13309 # location of the library. 13310 ;; 13311 esac 13312 13313 case $cc_basename in 13314 CC*) 13315 # FIXME: insert proper C++ library support 13316 ld_shlibs_CXX=no 13317 ;; 13318 aCC*) 13319 case $host_cpu in 13320 hppa*64*) 13321 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13322 ;; 13323 ia64*) 13324 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13325 ;; 13326 *) 13327 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13328 ;; 13329 esac 13330 # Commands to make compiler produce verbose output that lists 13331 # what "hidden" libraries, object files and flags are used when 13332 # linking a shared library. 13333 # 13334 # There doesn't appear to be a way to prevent this compiler from 13335 # explicitly linking system object files so we need to strip them 13336 # from the output so that they don't get included in the library 13337 # dependencies. 13338 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"' 13339 ;; 13340 *) 13341 if test yes = "$GXX"; then 13342 if test no = "$with_gnu_ld"; then 13343 case $host_cpu in 13344 hppa*64*) 13345 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13346 ;; 13347 ia64*) 13348 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13349 ;; 13350 *) 13351 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' 13352 ;; 13353 esac 13354 fi 13355 else 13356 # FIXME: insert proper C++ library support 13357 ld_shlibs_CXX=no 13358 fi 13359 ;; 13360 esac 13361 ;; 13362 13363 interix[3-9]*) 13364 hardcode_direct_CXX=no 13365 hardcode_shlibpath_var_CXX=no 13366 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13367 export_dynamic_flag_spec_CXX='$wl-E' 13368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13369 # Instead, shared libraries are loaded at an image base (0x10000000 by 13370 # default) and relocated if they conflict, which is a slow very memory 13371 # consuming and fragmenting process. To avoid this, we pick a random, 13372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13373 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13374 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' 13375 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' 13376 ;; 13377 irix5* | irix6*) 13378 case $cc_basename in 13379 CC*) 13380 # SGI C++ 13381 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' 13382 13383 # Archives containing C++ object files must be created using 13384 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13385 # necessary to make sure instantiated templates are included 13386 # in the archive. 13387 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13388 ;; 13389 *) 13390 if test yes = "$GXX"; then 13391 if test no = "$with_gnu_ld"; then 13392 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' 13393 else 13394 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' 13395 fi 13396 fi 13397 link_all_deplibs_CXX=yes 13398 ;; 13399 esac 13400 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13401 hardcode_libdir_separator_CXX=: 13402 inherit_rpath_CXX=yes 13403 ;; 13404 13405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13406 case $cc_basename in 13407 KCC*) 13408 # Kuck and Associates, Inc. (KAI) C++ Compiler 13409 13410 # KCC will only create a shared library if the output file 13411 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13412 # to its proper name (with version) after linking. 13413 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' 13414 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' 13415 # Commands to make compiler produce verbose output that lists 13416 # what "hidden" libraries, object files and flags are used when 13417 # linking a shared library. 13418 # 13419 # There doesn't appear to be a way to prevent this compiler from 13420 # explicitly linking system object files so we need to strip them 13421 # from the output so that they don't get included in the library 13422 # dependencies. 13423 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"' 13424 13425 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13426 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13427 13428 # Archives containing C++ object files must be created using 13429 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13430 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13431 ;; 13432 icpc* | ecpc* ) 13433 # Intel C++ 13434 with_gnu_ld=yes 13435 # version 8.0 and above of icpc choke on multiply defined symbols 13436 # if we add $predep_objects and $postdep_objects, however 7.1 and 13437 # earlier do not add the objects themselves. 13438 case `$CC -V 2>&1` in 13439 *"Version 7."*) 13440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13441 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' 13442 ;; 13443 *) # Version 8.0 or newer 13444 tmp_idyn= 13445 case $host_cpu in 13446 ia64*) tmp_idyn=' -i_dynamic';; 13447 esac 13448 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13449 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' 13450 ;; 13451 esac 13452 archive_cmds_need_lc_CXX=no 13453 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13454 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13455 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13456 ;; 13457 pgCC* | pgcpp*) 13458 # Portland Group C++ compiler 13459 case `$CC -V` in 13460 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13461 prelink_cmds_CXX='tpldir=Template.dir~ 13462 rm -rf $tpldir~ 13463 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13464 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13465 old_archive_cmds_CXX='tpldir=Template.dir~ 13466 rm -rf $tpldir~ 13467 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13468 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13469 $RANLIB $oldlib' 13470 archive_cmds_CXX='tpldir=Template.dir~ 13471 rm -rf $tpldir~ 13472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13473 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13474 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13475 rm -rf $tpldir~ 13476 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13477 $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' 13478 ;; 13479 *) # Version 6 and above use weak symbols 13480 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13481 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' 13482 ;; 13483 esac 13484 13485 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13486 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13487 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' 13488 ;; 13489 cxx*) 13490 # Compaq C++ 13491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13492 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' 13493 13494 runpath_var=LD_RUN_PATH 13495 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13496 hardcode_libdir_separator_CXX=: 13497 13498 # Commands to make compiler produce verbose output that lists 13499 # what "hidden" libraries, object files and flags are used when 13500 # linking a shared library. 13501 # 13502 # There doesn't appear to be a way to prevent this compiler from 13503 # explicitly linking system object files so we need to strip them 13504 # from the output so that they don't get included in the library 13505 # dependencies. 13506 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' 13507 ;; 13508 xl* | mpixl* | bgxl*) 13509 # IBM XL 8.0 on PPC, with GNU ld 13510 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13511 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13512 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13513 if test yes = "$supports_anon_versioning"; then 13514 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13516 echo "local: *; };" >> $output_objdir/$libname.ver~ 13517 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13518 fi 13519 ;; 13520 *) 13521 case `$CC -V 2>&1 | sed 5q` in 13522 *Sun\ C*) 13523 # Sun C++ 5.9 13524 no_undefined_flag_CXX=' -zdefs' 13525 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13526 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' 13527 hardcode_libdir_flag_spec_CXX='-R$libdir' 13528 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' 13529 compiler_needs_object_CXX=yes 13530 13531 # Not sure whether something based on 13532 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13533 # would be better. 13534 output_verbose_link_cmd='func_echo_all' 13535 13536 # Archives containing C++ object files must be created using 13537 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13538 # necessary to make sure instantiated templates are included 13539 # in the archive. 13540 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13541 ;; 13542 esac 13543 ;; 13544 esac 13545 ;; 13546 13547 lynxos*) 13548 # FIXME: insert proper C++ library support 13549 ld_shlibs_CXX=no 13550 ;; 13551 13552 m88k*) 13553 # FIXME: insert proper C++ library support 13554 ld_shlibs_CXX=no 13555 ;; 13556 13557 mvs*) 13558 case $cc_basename in 13559 cxx*) 13560 # FIXME: insert proper C++ library support 13561 ld_shlibs_CXX=no 13562 ;; 13563 *) 13564 # FIXME: insert proper C++ library support 13565 ld_shlibs_CXX=no 13566 ;; 13567 esac 13568 ;; 13569 13570 netbsd*) 13571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13572 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13573 wlarc= 13574 hardcode_libdir_flag_spec_CXX='-R$libdir' 13575 hardcode_direct_CXX=yes 13576 hardcode_shlibpath_var_CXX=no 13577 fi 13578 # Workaround some broken pre-1.5 toolchains 13579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13580 ;; 13581 13582 *nto* | *qnx*) 13583 ld_shlibs_CXX=yes 13584 ;; 13585 13586 openbsd* | bitrig*) 13587 if test -f /usr/libexec/ld.so; then 13588 hardcode_direct_CXX=yes 13589 hardcode_shlibpath_var_CXX=no 13590 hardcode_direct_absolute_CXX=yes 13591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13592 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13594 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13595 export_dynamic_flag_spec_CXX='$wl-E' 13596 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13597 fi 13598 output_verbose_link_cmd=func_echo_all 13599 else 13600 ld_shlibs_CXX=no 13601 fi 13602 ;; 13603 13604 osf3* | osf4* | osf5*) 13605 case $cc_basename in 13606 KCC*) 13607 # Kuck and Associates, Inc. (KAI) C++ Compiler 13608 13609 # KCC will only create a shared library if the output file 13610 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13611 # to its proper name (with version) after linking. 13612 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' 13613 13614 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13615 hardcode_libdir_separator_CXX=: 13616 13617 # Archives containing C++ object files must be created using 13618 # the KAI C++ compiler. 13619 case $host in 13620 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13621 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13622 esac 13623 ;; 13624 RCC*) 13625 # Rational C++ 2.4.1 13626 # FIXME: insert proper C++ library support 13627 ld_shlibs_CXX=no 13628 ;; 13629 cxx*) 13630 case $host in 13631 osf3*) 13632 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13633 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' 13634 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13635 ;; 13636 *) 13637 allow_undefined_flag_CXX=' -expect_unresolved \*' 13638 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' 13639 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13640 echo "-hidden">> $lib.exp~ 13641 $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~ 13642 $RM $lib.exp' 13643 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13644 ;; 13645 esac 13646 13647 hardcode_libdir_separator_CXX=: 13648 13649 # Commands to make compiler produce verbose output that lists 13650 # what "hidden" libraries, object files and flags are used when 13651 # linking a shared library. 13652 # 13653 # There doesn't appear to be a way to prevent this compiler from 13654 # explicitly linking system object files so we need to strip them 13655 # from the output so that they don't get included in the library 13656 # dependencies. 13657 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"' 13658 ;; 13659 *) 13660 if test yes,no = "$GXX,$with_gnu_ld"; then 13661 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13662 case $host in 13663 osf3*) 13664 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' 13665 ;; 13666 *) 13667 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' 13668 ;; 13669 esac 13670 13671 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13672 hardcode_libdir_separator_CXX=: 13673 13674 # Commands to make compiler produce verbose output that lists 13675 # what "hidden" libraries, object files and flags are used when 13676 # linking a shared library. 13677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13678 13679 else 13680 # FIXME: insert proper C++ library support 13681 ld_shlibs_CXX=no 13682 fi 13683 ;; 13684 esac 13685 ;; 13686 13687 psos*) 13688 # FIXME: insert proper C++ library support 13689 ld_shlibs_CXX=no 13690 ;; 13691 13692 sunos4*) 13693 case $cc_basename in 13694 CC*) 13695 # Sun C++ 4.x 13696 # FIXME: insert proper C++ library support 13697 ld_shlibs_CXX=no 13698 ;; 13699 lcc*) 13700 # Lucid 13701 # FIXME: insert proper C++ library support 13702 ld_shlibs_CXX=no 13703 ;; 13704 *) 13705 # FIXME: insert proper C++ library support 13706 ld_shlibs_CXX=no 13707 ;; 13708 esac 13709 ;; 13710 13711 solaris*) 13712 case $cc_basename in 13713 CC* | sunCC*) 13714 # Sun C++ 4.2, 5.x and Centerline C++ 13715 archive_cmds_need_lc_CXX=yes 13716 no_undefined_flag_CXX=' -zdefs' 13717 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13719 $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' 13720 13721 hardcode_libdir_flag_spec_CXX='-R$libdir' 13722 hardcode_shlibpath_var_CXX=no 13723 case $host_os in 13724 solaris2.[0-5] | solaris2.[0-5].*) ;; 13725 *) 13726 # The compiler driver will combine and reorder linker options, 13727 # but understands '-z linker_flag'. 13728 # Supported since Solaris 2.6 (maybe 2.5.1?) 13729 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13730 ;; 13731 esac 13732 link_all_deplibs_CXX=yes 13733 13734 output_verbose_link_cmd='func_echo_all' 13735 13736 # Archives containing C++ object files must be created using 13737 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13738 # necessary to make sure instantiated templates are included 13739 # in the archive. 13740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13741 ;; 13742 gcx*) 13743 # Green Hills C++ Compiler 13744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13745 13746 # The C++ compiler must be used to create the archive. 13747 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13748 ;; 13749 *) 13750 # GNU C++ compiler with Solaris linker 13751 if test yes,no = "$GXX,$with_gnu_ld"; then 13752 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13753 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13754 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13756 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13757 13758 # Commands to make compiler produce verbose output that lists 13759 # what "hidden" libraries, object files and flags are used when 13760 # linking a shared library. 13761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13762 else 13763 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13764 # platform. 13765 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13766 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13767 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13768 13769 # Commands to make compiler produce verbose output that lists 13770 # what "hidden" libraries, object files and flags are used when 13771 # linking a shared library. 13772 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13773 fi 13774 13775 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13776 case $host_os in 13777 solaris2.[0-5] | solaris2.[0-5].*) ;; 13778 *) 13779 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13780 ;; 13781 esac 13782 fi 13783 ;; 13784 esac 13785 ;; 13786 13787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13788 no_undefined_flag_CXX='$wl-z,text' 13789 archive_cmds_need_lc_CXX=no 13790 hardcode_shlibpath_var_CXX=no 13791 runpath_var='LD_RUN_PATH' 13792 13793 case $cc_basename in 13794 CC*) 13795 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13796 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13797 ;; 13798 *) 13799 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13800 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13801 ;; 13802 esac 13803 ;; 13804 13805 sysv5* | sco3.2v5* | sco5v6*) 13806 # Note: We CANNOT use -z defs as we might desire, because we do not 13807 # link with -lc, and that would cause any symbols used from libc to 13808 # always be unresolved, which means just about no library would 13809 # ever link correctly. If we're not using GNU ld we use -z text 13810 # though, which does catch some bad symbols but isn't as heavy-handed 13811 # as -z defs. 13812 no_undefined_flag_CXX='$wl-z,text' 13813 allow_undefined_flag_CXX='$wl-z,nodefs' 13814 archive_cmds_need_lc_CXX=no 13815 hardcode_shlibpath_var_CXX=no 13816 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 13817 hardcode_libdir_separator_CXX=':' 13818 link_all_deplibs_CXX=yes 13819 export_dynamic_flag_spec_CXX='$wl-Bexport' 13820 runpath_var='LD_RUN_PATH' 13821 13822 case $cc_basename in 13823 CC*) 13824 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13825 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13826 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13827 '"$old_archive_cmds_CXX" 13828 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13829 '"$reload_cmds_CXX" 13830 ;; 13831 *) 13832 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13833 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13834 ;; 13835 esac 13836 ;; 13837 13838 tandem*) 13839 case $cc_basename in 13840 NCC*) 13841 # NonStop-UX NCC 3.20 13842 # FIXME: insert proper C++ library support 13843 ld_shlibs_CXX=no 13844 ;; 13845 *) 13846 # FIXME: insert proper C++ library support 13847 ld_shlibs_CXX=no 13848 ;; 13849 esac 13850 ;; 13851 13852 vxworks*) 13853 # FIXME: insert proper C++ library support 13854 ld_shlibs_CXX=no 13855 ;; 13856 13857 *) 13858 # FIXME: insert proper C++ library support 13859 ld_shlibs_CXX=no 13860 ;; 13861 esac 13862 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13864$as_echo "$ld_shlibs_CXX" >&6; } 13865 test no = "$ld_shlibs_CXX" && can_build_shared=no 13866 13867 GCC_CXX=$GXX 13868 LD_CXX=$LD 13869 13870 ## CAVEAT EMPTOR: 13871 ## There is no encapsulation within the following macros, do not change 13872 ## the running order or otherwise move them around unless you know exactly 13873 ## what you are doing... 13874 # Dependencies to place before and after the object being linked: 13875predep_objects_CXX= 13876postdep_objects_CXX= 13877predeps_CXX= 13878postdeps_CXX= 13879compiler_lib_search_path_CXX= 13880 13881cat > conftest.$ac_ext <<_LT_EOF 13882class Foo 13883{ 13884public: 13885 Foo (void) { a = 0; } 13886private: 13887 int a; 13888}; 13889_LT_EOF 13890 13891 13892_lt_libdeps_save_CFLAGS=$CFLAGS 13893case "$CC $CFLAGS " in #( 13894*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13895*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13896*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13897esac 13898 13899if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13900 (eval $ac_compile) 2>&5 13901 ac_status=$? 13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13903 test $ac_status = 0; }; then 13904 # Parse the compiler output and extract the necessary 13905 # objects, libraries and library flags. 13906 13907 # Sentinel used to keep track of whether or not we are before 13908 # the conftest object file. 13909 pre_test_object_deps_done=no 13910 13911 for p in `eval "$output_verbose_link_cmd"`; do 13912 case $prev$p in 13913 13914 -L* | -R* | -l*) 13915 # Some compilers place space between "-{L,R}" and the path. 13916 # Remove the space. 13917 if test x-L = "$p" || 13918 test x-R = "$p"; then 13919 prev=$p 13920 continue 13921 fi 13922 13923 # Expand the sysroot to ease extracting the directories later. 13924 if test -z "$prev"; then 13925 case $p in 13926 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13927 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13928 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13929 esac 13930 fi 13931 case $p in 13932 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13933 esac 13934 if test no = "$pre_test_object_deps_done"; then 13935 case $prev in 13936 -L | -R) 13937 # Internal compiler library paths should come after those 13938 # provided the user. The postdeps already come after the 13939 # user supplied libs so there is no need to process them. 13940 if test -z "$compiler_lib_search_path_CXX"; then 13941 compiler_lib_search_path_CXX=$prev$p 13942 else 13943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 13944 fi 13945 ;; 13946 # The "-l" case would never come before the object being 13947 # linked, so don't bother handling this case. 13948 esac 13949 else 13950 if test -z "$postdeps_CXX"; then 13951 postdeps_CXX=$prev$p 13952 else 13953 postdeps_CXX="${postdeps_CXX} $prev$p" 13954 fi 13955 fi 13956 prev= 13957 ;; 13958 13959 *.lto.$objext) ;; # Ignore GCC LTO objects 13960 *.$objext) 13961 # This assumes that the test object file only shows up 13962 # once in the compiler output. 13963 if test "$p" = "conftest.$objext"; then 13964 pre_test_object_deps_done=yes 13965 continue 13966 fi 13967 13968 if test no = "$pre_test_object_deps_done"; then 13969 if test -z "$predep_objects_CXX"; then 13970 predep_objects_CXX=$p 13971 else 13972 predep_objects_CXX="$predep_objects_CXX $p" 13973 fi 13974 else 13975 if test -z "$postdep_objects_CXX"; then 13976 postdep_objects_CXX=$p 13977 else 13978 postdep_objects_CXX="$postdep_objects_CXX $p" 13979 fi 13980 fi 13981 ;; 13982 13983 *) ;; # Ignore the rest. 13984 13985 esac 13986 done 13987 13988 # Clean up. 13989 rm -f a.out a.exe 13990else 13991 echo "libtool.m4: error: problem compiling CXX test program" 13992fi 13993 13994$RM -f confest.$objext 13995CFLAGS=$_lt_libdeps_save_CFLAGS 13996 13997# PORTME: override above test on systems where it is broken 13998case $host_os in 13999interix[3-9]*) 14000 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14001 # hack all around it, let's just trust "g++" to DTRT. 14002 predep_objects_CXX= 14003 postdep_objects_CXX= 14004 postdeps_CXX= 14005 ;; 14006esac 14007 14008 14009case " $postdeps_CXX " in 14010*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14011esac 14012 compiler_lib_search_dirs_CXX= 14013if test -n "${compiler_lib_search_path_CXX}"; then 14014 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14015fi 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 lt_prog_compiler_wl_CXX= 14048lt_prog_compiler_pic_CXX= 14049lt_prog_compiler_static_CXX= 14050 14051 14052 # C++ specific cases for pic, static, wl, etc. 14053 if test yes = "$GXX"; then 14054 lt_prog_compiler_wl_CXX='-Wl,' 14055 lt_prog_compiler_static_CXX='-static' 14056 14057 case $host_os in 14058 aix*) 14059 # All AIX code is PIC. 14060 if test ia64 = "$host_cpu"; then 14061 # AIX 5 now supports IA64 processor 14062 lt_prog_compiler_static_CXX='-Bstatic' 14063 fi 14064 lt_prog_compiler_pic_CXX='-fPIC' 14065 ;; 14066 14067 amigaos*) 14068 case $host_cpu in 14069 powerpc) 14070 # see comment about AmigaOS4 .so support 14071 lt_prog_compiler_pic_CXX='-fPIC' 14072 ;; 14073 m68k) 14074 # FIXME: we need at least 68020 code to build shared libraries, but 14075 # adding the '-m68020' flag to GCC prevents building anything better, 14076 # like '-m68040'. 14077 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14078 ;; 14079 esac 14080 ;; 14081 14082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14083 # PIC is the default for these OSes. 14084 ;; 14085 mingw* | cygwin* | os2* | pw32* | cegcc*) 14086 # This hack is so that the source file can tell whether it is being 14087 # built for inclusion in a dll (and should export symbols for example). 14088 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14089 # (--disable-auto-import) libraries 14090 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14091 case $host_os in 14092 os2*) 14093 lt_prog_compiler_static_CXX='$wl-static' 14094 ;; 14095 esac 14096 ;; 14097 darwin* | rhapsody*) 14098 # PIC is the default on this platform 14099 # Common symbols not allowed in MH_DYLIB files 14100 lt_prog_compiler_pic_CXX='-fno-common' 14101 ;; 14102 *djgpp*) 14103 # DJGPP does not support shared libraries at all 14104 lt_prog_compiler_pic_CXX= 14105 ;; 14106 haiku*) 14107 # PIC is the default for Haiku. 14108 # The "-static" flag exists, but is broken. 14109 lt_prog_compiler_static_CXX= 14110 ;; 14111 interix[3-9]*) 14112 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14113 # Instead, we relocate shared libraries at runtime. 14114 ;; 14115 sysv4*MP*) 14116 if test -d /usr/nec; then 14117 lt_prog_compiler_pic_CXX=-Kconform_pic 14118 fi 14119 ;; 14120 hpux*) 14121 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14122 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14123 # sets the default TLS model and affects inlining. 14124 case $host_cpu in 14125 hppa*64*) 14126 ;; 14127 *) 14128 lt_prog_compiler_pic_CXX='-fPIC' 14129 ;; 14130 esac 14131 ;; 14132 *qnx* | *nto*) 14133 # QNX uses GNU C++, but need to define -shared option too, otherwise 14134 # it will coredump. 14135 lt_prog_compiler_pic_CXX='-fPIC -shared' 14136 ;; 14137 *) 14138 lt_prog_compiler_pic_CXX='-fPIC' 14139 ;; 14140 esac 14141 else 14142 case $host_os in 14143 aix[4-9]*) 14144 # All AIX code is PIC. 14145 if test ia64 = "$host_cpu"; then 14146 # AIX 5 now supports IA64 processor 14147 lt_prog_compiler_static_CXX='-Bstatic' 14148 else 14149 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14150 fi 14151 ;; 14152 chorus*) 14153 case $cc_basename in 14154 cxch68*) 14155 # Green Hills C++ Compiler 14156 # _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" 14157 ;; 14158 esac 14159 ;; 14160 mingw* | cygwin* | os2* | pw32* | cegcc*) 14161 # This hack is so that the source file can tell whether it is being 14162 # built for inclusion in a dll (and should export symbols for example). 14163 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14164 ;; 14165 dgux*) 14166 case $cc_basename in 14167 ec++*) 14168 lt_prog_compiler_pic_CXX='-KPIC' 14169 ;; 14170 ghcx*) 14171 # Green Hills C++ Compiler 14172 lt_prog_compiler_pic_CXX='-pic' 14173 ;; 14174 *) 14175 ;; 14176 esac 14177 ;; 14178 freebsd* | dragonfly*) 14179 # FreeBSD uses GNU C++ 14180 ;; 14181 hpux9* | hpux10* | hpux11*) 14182 case $cc_basename in 14183 CC*) 14184 lt_prog_compiler_wl_CXX='-Wl,' 14185 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14186 if test ia64 != "$host_cpu"; then 14187 lt_prog_compiler_pic_CXX='+Z' 14188 fi 14189 ;; 14190 aCC*) 14191 lt_prog_compiler_wl_CXX='-Wl,' 14192 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14193 case $host_cpu in 14194 hppa*64*|ia64*) 14195 # +Z the default 14196 ;; 14197 *) 14198 lt_prog_compiler_pic_CXX='+Z' 14199 ;; 14200 esac 14201 ;; 14202 *) 14203 ;; 14204 esac 14205 ;; 14206 interix*) 14207 # This is c89, which is MS Visual C++ (no shared libs) 14208 # Anyone wants to do a port? 14209 ;; 14210 irix5* | irix6* | nonstopux*) 14211 case $cc_basename in 14212 CC*) 14213 lt_prog_compiler_wl_CXX='-Wl,' 14214 lt_prog_compiler_static_CXX='-non_shared' 14215 # CC pic flag -KPIC is the default. 14216 ;; 14217 *) 14218 ;; 14219 esac 14220 ;; 14221 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14222 case $cc_basename in 14223 KCC*) 14224 # KAI C++ Compiler 14225 lt_prog_compiler_wl_CXX='--backend -Wl,' 14226 lt_prog_compiler_pic_CXX='-fPIC' 14227 ;; 14228 ecpc* ) 14229 # old Intel C++ for x86_64, which still supported -KPIC. 14230 lt_prog_compiler_wl_CXX='-Wl,' 14231 lt_prog_compiler_pic_CXX='-KPIC' 14232 lt_prog_compiler_static_CXX='-static' 14233 ;; 14234 icpc* ) 14235 # Intel C++, used to be incompatible with GCC. 14236 # ICC 10 doesn't accept -KPIC any more. 14237 lt_prog_compiler_wl_CXX='-Wl,' 14238 lt_prog_compiler_pic_CXX='-fPIC' 14239 lt_prog_compiler_static_CXX='-static' 14240 ;; 14241 pgCC* | pgcpp*) 14242 # Portland Group C++ compiler 14243 lt_prog_compiler_wl_CXX='-Wl,' 14244 lt_prog_compiler_pic_CXX='-fpic' 14245 lt_prog_compiler_static_CXX='-Bstatic' 14246 ;; 14247 cxx*) 14248 # Compaq C++ 14249 # Make sure the PIC flag is empty. It appears that all Alpha 14250 # Linux and Compaq Tru64 Unix objects are PIC. 14251 lt_prog_compiler_pic_CXX= 14252 lt_prog_compiler_static_CXX='-non_shared' 14253 ;; 14254 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14255 # IBM XL 8.0, 9.0 on PPC and BlueGene 14256 lt_prog_compiler_wl_CXX='-Wl,' 14257 lt_prog_compiler_pic_CXX='-qpic' 14258 lt_prog_compiler_static_CXX='-qstaticlink' 14259 ;; 14260 *) 14261 case `$CC -V 2>&1 | sed 5q` in 14262 *Sun\ C*) 14263 # Sun C++ 5.9 14264 lt_prog_compiler_pic_CXX='-KPIC' 14265 lt_prog_compiler_static_CXX='-Bstatic' 14266 lt_prog_compiler_wl_CXX='-Qoption ld ' 14267 ;; 14268 esac 14269 ;; 14270 esac 14271 ;; 14272 lynxos*) 14273 ;; 14274 m88k*) 14275 ;; 14276 mvs*) 14277 case $cc_basename in 14278 cxx*) 14279 lt_prog_compiler_pic_CXX='-W c,exportall' 14280 ;; 14281 *) 14282 ;; 14283 esac 14284 ;; 14285 netbsd*) 14286 ;; 14287 *qnx* | *nto*) 14288 # QNX uses GNU C++, but need to define -shared option too, otherwise 14289 # it will coredump. 14290 lt_prog_compiler_pic_CXX='-fPIC -shared' 14291 ;; 14292 osf3* | osf4* | osf5*) 14293 case $cc_basename in 14294 KCC*) 14295 lt_prog_compiler_wl_CXX='--backend -Wl,' 14296 ;; 14297 RCC*) 14298 # Rational C++ 2.4.1 14299 lt_prog_compiler_pic_CXX='-pic' 14300 ;; 14301 cxx*) 14302 # Digital/Compaq C++ 14303 lt_prog_compiler_wl_CXX='-Wl,' 14304 # Make sure the PIC flag is empty. It appears that all Alpha 14305 # Linux and Compaq Tru64 Unix objects are PIC. 14306 lt_prog_compiler_pic_CXX= 14307 lt_prog_compiler_static_CXX='-non_shared' 14308 ;; 14309 *) 14310 ;; 14311 esac 14312 ;; 14313 psos*) 14314 ;; 14315 solaris*) 14316 case $cc_basename in 14317 CC* | sunCC*) 14318 # Sun C++ 4.2, 5.x and Centerline C++ 14319 lt_prog_compiler_pic_CXX='-KPIC' 14320 lt_prog_compiler_static_CXX='-Bstatic' 14321 lt_prog_compiler_wl_CXX='-Qoption ld ' 14322 ;; 14323 gcx*) 14324 # Green Hills C++ Compiler 14325 lt_prog_compiler_pic_CXX='-PIC' 14326 ;; 14327 *) 14328 ;; 14329 esac 14330 ;; 14331 sunos4*) 14332 case $cc_basename in 14333 CC*) 14334 # Sun C++ 4.x 14335 lt_prog_compiler_pic_CXX='-pic' 14336 lt_prog_compiler_static_CXX='-Bstatic' 14337 ;; 14338 lcc*) 14339 # Lucid 14340 lt_prog_compiler_pic_CXX='-pic' 14341 ;; 14342 *) 14343 ;; 14344 esac 14345 ;; 14346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14347 case $cc_basename in 14348 CC*) 14349 lt_prog_compiler_wl_CXX='-Wl,' 14350 lt_prog_compiler_pic_CXX='-KPIC' 14351 lt_prog_compiler_static_CXX='-Bstatic' 14352 ;; 14353 esac 14354 ;; 14355 tandem*) 14356 case $cc_basename in 14357 NCC*) 14358 # NonStop-UX NCC 3.20 14359 lt_prog_compiler_pic_CXX='-KPIC' 14360 ;; 14361 *) 14362 ;; 14363 esac 14364 ;; 14365 vxworks*) 14366 ;; 14367 *) 14368 lt_prog_compiler_can_build_shared_CXX=no 14369 ;; 14370 esac 14371 fi 14372 14373case $host_os in 14374 # For platforms that do not support PIC, -DPIC is meaningless: 14375 *djgpp*) 14376 lt_prog_compiler_pic_CXX= 14377 ;; 14378 *) 14379 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" 14380 ;; 14381esac 14382 14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14384$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14385if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14386 $as_echo_n "(cached) " >&6 14387else 14388 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14389fi 14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14391$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14392lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14393 14394# 14395# Check to make sure the PIC flag actually works. 14396# 14397if test -n "$lt_prog_compiler_pic_CXX"; then 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14399$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14400if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14401 $as_echo_n "(cached) " >&6 14402else 14403 lt_cv_prog_compiler_pic_works_CXX=no 14404 ac_outfile=conftest.$ac_objext 14405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14406 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 14407 # Insert the option either (1) after the last *FLAGS variable, or 14408 # (2) before a word containing "conftest.", or (3) at the end. 14409 # Note that $ac_compile itself does not contain backslashes and begins 14410 # with a dollar sign (not a hyphen), so the echo should work correctly. 14411 # The option is referenced via a variable to avoid confusing sed. 14412 lt_compile=`echo "$ac_compile" | $SED \ 14413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14415 -e 's:$: $lt_compiler_flag:'` 14416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14417 (eval "$lt_compile" 2>conftest.err) 14418 ac_status=$? 14419 cat conftest.err >&5 14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14421 if (exit $ac_status) && test -s "$ac_outfile"; then 14422 # The compiler can only warn and ignore the option if not recognized 14423 # So say no if there are warnings other than the usual output. 14424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14427 lt_cv_prog_compiler_pic_works_CXX=yes 14428 fi 14429 fi 14430 $RM conftest* 14431 14432fi 14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14434$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14435 14436if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14437 case $lt_prog_compiler_pic_CXX in 14438 "" | " "*) ;; 14439 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14440 esac 14441else 14442 lt_prog_compiler_pic_CXX= 14443 lt_prog_compiler_can_build_shared_CXX=no 14444fi 14445 14446fi 14447 14448 14449 14450 14451 14452# 14453# Check to make sure the static flag actually works. 14454# 14455wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14457$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14458if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14459 $as_echo_n "(cached) " >&6 14460else 14461 lt_cv_prog_compiler_static_works_CXX=no 14462 save_LDFLAGS=$LDFLAGS 14463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14464 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14466 # The linker can only warn and ignore the option if not recognized 14467 # So say no if there are warnings 14468 if test -s conftest.err; then 14469 # Append any errors to the config.log. 14470 cat conftest.err 1>&5 14471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14473 if diff conftest.exp conftest.er2 >/dev/null; then 14474 lt_cv_prog_compiler_static_works_CXX=yes 14475 fi 14476 else 14477 lt_cv_prog_compiler_static_works_CXX=yes 14478 fi 14479 fi 14480 $RM -r conftest* 14481 LDFLAGS=$save_LDFLAGS 14482 14483fi 14484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14485$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14486 14487if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14488 : 14489else 14490 lt_prog_compiler_static_CXX= 14491fi 14492 14493 14494 14495 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14497$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14498if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14499 $as_echo_n "(cached) " >&6 14500else 14501 lt_cv_prog_compiler_c_o_CXX=no 14502 $RM -r conftest 2>/dev/null 14503 mkdir conftest 14504 cd conftest 14505 mkdir out 14506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14507 14508 lt_compiler_flag="-o out/conftest2.$ac_objext" 14509 # Insert the option either (1) after the last *FLAGS variable, or 14510 # (2) before a word containing "conftest.", or (3) at the end. 14511 # Note that $ac_compile itself does not contain backslashes and begins 14512 # with a dollar sign (not a hyphen), so the echo should work correctly. 14513 lt_compile=`echo "$ac_compile" | $SED \ 14514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14516 -e 's:$: $lt_compiler_flag:'` 14517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14518 (eval "$lt_compile" 2>out/conftest.err) 14519 ac_status=$? 14520 cat out/conftest.err >&5 14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14522 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14523 then 14524 # The compiler can only warn and ignore the option if not recognized 14525 # So say no if there are warnings 14526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14529 lt_cv_prog_compiler_c_o_CXX=yes 14530 fi 14531 fi 14532 chmod u+w . 2>&5 14533 $RM conftest* 14534 # SGI C++ compiler will create directory out/ii_files/ for 14535 # template instantiation 14536 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14537 $RM out/* && rmdir out 14538 cd .. 14539 $RM -r conftest 14540 $RM conftest* 14541 14542fi 14543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14544$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14545 14546 14547 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14549$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14550if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14551 $as_echo_n "(cached) " >&6 14552else 14553 lt_cv_prog_compiler_c_o_CXX=no 14554 $RM -r conftest 2>/dev/null 14555 mkdir conftest 14556 cd conftest 14557 mkdir out 14558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14559 14560 lt_compiler_flag="-o out/conftest2.$ac_objext" 14561 # Insert the option either (1) after the last *FLAGS variable, or 14562 # (2) before a word containing "conftest.", or (3) at the end. 14563 # Note that $ac_compile itself does not contain backslashes and begins 14564 # with a dollar sign (not a hyphen), so the echo should work correctly. 14565 lt_compile=`echo "$ac_compile" | $SED \ 14566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14568 -e 's:$: $lt_compiler_flag:'` 14569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14570 (eval "$lt_compile" 2>out/conftest.err) 14571 ac_status=$? 14572 cat out/conftest.err >&5 14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14574 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14575 then 14576 # The compiler can only warn and ignore the option if not recognized 14577 # So say no if there are warnings 14578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14581 lt_cv_prog_compiler_c_o_CXX=yes 14582 fi 14583 fi 14584 chmod u+w . 2>&5 14585 $RM conftest* 14586 # SGI C++ compiler will create directory out/ii_files/ for 14587 # template instantiation 14588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14589 $RM out/* && rmdir out 14590 cd .. 14591 $RM -r conftest 14592 $RM conftest* 14593 14594fi 14595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14596$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14597 14598 14599 14600 14601hard_links=nottested 14602if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14603 # do not overwrite the value of need_locks provided by the user 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14605$as_echo_n "checking if we can lock with hard links... " >&6; } 14606 hard_links=yes 14607 $RM conftest* 14608 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14609 touch conftest.a 14610 ln conftest.a conftest.b 2>&5 || hard_links=no 14611 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14613$as_echo "$hard_links" >&6; } 14614 if test no = "$hard_links"; then 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14616$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14617 need_locks=warn 14618 fi 14619else 14620 need_locks=no 14621fi 14622 14623 14624 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14626$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14627 14628 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14629 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14630 case $host_os in 14631 aix[4-9]*) 14632 # If we're using GNU nm, then we don't want the "-C" option. 14633 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14634 # Without the "-l" option, or with the "-B" option, AIX nm treats 14635 # weak defined symbols like other global defined symbols, whereas 14636 # GNU nm marks them as "W". 14637 # While the 'weak' keyword is ignored in the Export File, we need 14638 # it in the Import File for the 'aix-soname' feature, so we have 14639 # to replace the "-B" option with "-P" for AIX nm. 14640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14641 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 14642 else 14643 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14644 fi 14645 ;; 14646 pw32*) 14647 export_symbols_cmds_CXX=$ltdll_cmds 14648 ;; 14649 cygwin* | mingw* | cegcc*) 14650 case $cc_basename in 14651 cl*) 14652 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14653 ;; 14654 *) 14655 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' 14656 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14657 ;; 14658 esac 14659 ;; 14660 *) 14661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14662 ;; 14663 esac 14664 14665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14666$as_echo "$ld_shlibs_CXX" >&6; } 14667test no = "$ld_shlibs_CXX" && can_build_shared=no 14668 14669with_gnu_ld_CXX=$with_gnu_ld 14670 14671 14672 14673 14674 14675 14676# 14677# Do we need to explicitly link libc? 14678# 14679case "x$archive_cmds_need_lc_CXX" in 14680x|xyes) 14681 # Assume -lc should be added 14682 archive_cmds_need_lc_CXX=yes 14683 14684 if test yes,yes = "$GCC,$enable_shared"; then 14685 case $archive_cmds_CXX in 14686 *'~'*) 14687 # FIXME: we may have to deal with multi-command sequences. 14688 ;; 14689 '$CC '*) 14690 # Test whether the compiler implicitly links with -lc since on some 14691 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14692 # to ld, don't add -lc before -lgcc. 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14694$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14695if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 $RM conftest* 14699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14700 14701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14702 (eval $ac_compile) 2>&5 14703 ac_status=$? 14704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14705 test $ac_status = 0; } 2>conftest.err; then 14706 soname=conftest 14707 lib=conftest 14708 libobjs=conftest.$ac_objext 14709 deplibs= 14710 wl=$lt_prog_compiler_wl_CXX 14711 pic_flag=$lt_prog_compiler_pic_CXX 14712 compiler_flags=-v 14713 linker_flags=-v 14714 verstring= 14715 output_objdir=. 14716 libname=conftest 14717 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14718 allow_undefined_flag_CXX= 14719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14720 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14721 ac_status=$? 14722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14723 test $ac_status = 0; } 14724 then 14725 lt_cv_archive_cmds_need_lc_CXX=no 14726 else 14727 lt_cv_archive_cmds_need_lc_CXX=yes 14728 fi 14729 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14730 else 14731 cat conftest.err 1>&5 14732 fi 14733 $RM conftest* 14734 14735fi 14736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14737$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14738 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14739 ;; 14740 esac 14741 fi 14742 ;; 14743esac 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14807$as_echo_n "checking dynamic linker characteristics... " >&6; } 14808 14809library_names_spec= 14810libname_spec='lib$name' 14811soname_spec= 14812shrext_cmds=.so 14813postinstall_cmds= 14814postuninstall_cmds= 14815finish_cmds= 14816finish_eval= 14817shlibpath_var= 14818shlibpath_overrides_runpath=unknown 14819version_type=none 14820dynamic_linker="$host_os ld.so" 14821sys_lib_dlsearch_path_spec="/lib /usr/lib" 14822need_lib_prefix=unknown 14823hardcode_into_libs=no 14824 14825# when you set need_version to no, make sure it does not cause -set_version 14826# flags to be left without arguments 14827need_version=unknown 14828 14829 14830 14831case $host_os in 14832aix3*) 14833 version_type=linux # correct to gnu/linux during the next big refactor 14834 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14835 shlibpath_var=LIBPATH 14836 14837 # AIX 3 has no versioning support, so we append a major version to the name. 14838 soname_spec='$libname$release$shared_ext$major' 14839 ;; 14840 14841aix[4-9]*) 14842 version_type=linux # correct to gnu/linux during the next big refactor 14843 need_lib_prefix=no 14844 need_version=no 14845 hardcode_into_libs=yes 14846 if test ia64 = "$host_cpu"; then 14847 # AIX 5 supports IA64 14848 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14849 shlibpath_var=LD_LIBRARY_PATH 14850 else 14851 # With GCC up to 2.95.x, collect2 would create an import file 14852 # for dependence libraries. The import file would start with 14853 # the line '#! .'. This would cause the generated library to 14854 # depend on '.', always an invalid library. This was fixed in 14855 # development snapshots of GCC prior to 3.0. 14856 case $host_os in 14857 aix4 | aix4.[01] | aix4.[01].*) 14858 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14859 echo ' yes ' 14860 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14861 : 14862 else 14863 can_build_shared=no 14864 fi 14865 ;; 14866 esac 14867 # Using Import Files as archive members, it is possible to support 14868 # filename-based versioning of shared library archives on AIX. While 14869 # this would work for both with and without runtime linking, it will 14870 # prevent static linking of such archives. So we do filename-based 14871 # shared library versioning with .so extension only, which is used 14872 # when both runtime linking and shared linking is enabled. 14873 # Unfortunately, runtime linking may impact performance, so we do 14874 # not want this to be the default eventually. Also, we use the 14875 # versioned .so libs for executables only if there is the -brtl 14876 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14877 # To allow for filename-based versioning support, we need to create 14878 # libNAME.so.V as an archive file, containing: 14879 # *) an Import File, referring to the versioned filename of the 14880 # archive as well as the shared archive member, telling the 14881 # bitwidth (32 or 64) of that shared object, and providing the 14882 # list of exported symbols of that shared object, eventually 14883 # decorated with the 'weak' keyword 14884 # *) the shared object with the F_LOADONLY flag set, to really avoid 14885 # it being seen by the linker. 14886 # At run time we better use the real file rather than another symlink, 14887 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14888 14889 case $with_aix_soname,$aix_use_runtimelinking in 14890 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14891 # soname into executable. Probably we can add versioning support to 14892 # collect2, so additional links can be useful in future. 14893 aix,yes) # traditional libtool 14894 dynamic_linker='AIX unversionable lib.so' 14895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14896 # instead of lib<name>.a to let people know that these are not 14897 # typical AIX shared libraries. 14898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14899 ;; 14900 aix,no) # traditional AIX only 14901 dynamic_linker='AIX lib.a(lib.so.V)' 14902 # We preserve .a as extension for shared libraries through AIX4.2 14903 # and later when we are not doing run time linking. 14904 library_names_spec='$libname$release.a $libname.a' 14905 soname_spec='$libname$release$shared_ext$major' 14906 ;; 14907 svr4,*) # full svr4 only 14908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14910 # We do not specify a path in Import Files, so LIBPATH fires. 14911 shlibpath_overrides_runpath=yes 14912 ;; 14913 *,yes) # both, prefer svr4 14914 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14915 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14916 # unpreferred sharedlib libNAME.a needs extra handling 14917 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14918 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14919 # We do not specify a path in Import Files, so LIBPATH fires. 14920 shlibpath_overrides_runpath=yes 14921 ;; 14922 *,no) # both, prefer aix 14923 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14924 library_names_spec='$libname$release.a $libname.a' 14925 soname_spec='$libname$release$shared_ext$major' 14926 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14927 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 14928 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 14929 ;; 14930 esac 14931 shlibpath_var=LIBPATH 14932 fi 14933 ;; 14934 14935amigaos*) 14936 case $host_cpu in 14937 powerpc) 14938 # Since July 2007 AmigaOS4 officially supports .so libraries. 14939 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14941 ;; 14942 m68k) 14943 library_names_spec='$libname.ixlibrary $libname.a' 14944 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14945 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14946 ;; 14947 esac 14948 ;; 14949 14950beos*) 14951 library_names_spec='$libname$shared_ext' 14952 dynamic_linker="$host_os ld.so" 14953 shlibpath_var=LIBRARY_PATH 14954 ;; 14955 14956bsdi[45]*) 14957 version_type=linux # correct to gnu/linux during the next big refactor 14958 need_version=no 14959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14960 soname_spec='$libname$release$shared_ext$major' 14961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14962 shlibpath_var=LD_LIBRARY_PATH 14963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14965 # the default ld.so.conf also contains /usr/contrib/lib and 14966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14967 # libtool to hard-code these into programs 14968 ;; 14969 14970cygwin* | mingw* | pw32* | cegcc*) 14971 version_type=windows 14972 shrext_cmds=.dll 14973 need_version=no 14974 need_lib_prefix=no 14975 14976 case $GCC,$cc_basename in 14977 yes,*) 14978 # gcc 14979 library_names_spec='$libname.dll.a' 14980 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14981 postinstall_cmds='base_file=`basename \$file`~ 14982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14983 dldir=$destdir/`dirname \$dlpath`~ 14984 test -d \$dldir || mkdir -p \$dldir~ 14985 $install_prog $dir/$dlname \$dldir/$dlname~ 14986 chmod a+x \$dldir/$dlname~ 14987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14989 fi' 14990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14991 dlpath=$dir/\$dldll~ 14992 $RM \$dlpath' 14993 shlibpath_overrides_runpath=yes 14994 14995 case $host_os in 14996 cygwin*) 14997 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14998 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14999 15000 ;; 15001 mingw* | cegcc*) 15002 # MinGW DLLs use traditional 'lib' prefix 15003 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15004 ;; 15005 pw32*) 15006 # pw32 DLLs use 'pw' prefix rather than 'lib' 15007 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15008 ;; 15009 esac 15010 dynamic_linker='Win32 ld.exe' 15011 ;; 15012 15013 *,cl*) 15014 # Native MSVC 15015 libname_spec='$name' 15016 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15017 library_names_spec='$libname.dll.lib' 15018 15019 case $build_os in 15020 mingw*) 15021 sys_lib_search_path_spec= 15022 lt_save_ifs=$IFS 15023 IFS=';' 15024 for lt_path in $LIB 15025 do 15026 IFS=$lt_save_ifs 15027 # Let DOS variable expansion print the short 8.3 style file name. 15028 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15029 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15030 done 15031 IFS=$lt_save_ifs 15032 # Convert to MSYS style. 15033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15034 ;; 15035 cygwin*) 15036 # Convert to unix form, then to dos form, then back to unix form 15037 # but this time dos style (no spaces!) so that the unix form looks 15038 # like /cygdrive/c/PROGRA~1:/cygdr... 15039 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15040 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15041 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15042 ;; 15043 *) 15044 sys_lib_search_path_spec=$LIB 15045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15046 # It is most probably a Windows format PATH. 15047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15048 else 15049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15050 fi 15051 # FIXME: find the short name or the path components, as spaces are 15052 # common. (e.g. "Program Files" -> "PROGRA~1") 15053 ;; 15054 esac 15055 15056 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15057 postinstall_cmds='base_file=`basename \$file`~ 15058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15059 dldir=$destdir/`dirname \$dlpath`~ 15060 test -d \$dldir || mkdir -p \$dldir~ 15061 $install_prog $dir/$dlname \$dldir/$dlname' 15062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15063 dlpath=$dir/\$dldll~ 15064 $RM \$dlpath' 15065 shlibpath_overrides_runpath=yes 15066 dynamic_linker='Win32 link.exe' 15067 ;; 15068 15069 *) 15070 # Assume MSVC wrapper 15071 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15072 dynamic_linker='Win32 ld.exe' 15073 ;; 15074 esac 15075 # FIXME: first we should search . and the directory the executable is in 15076 shlibpath_var=PATH 15077 ;; 15078 15079darwin* | rhapsody*) 15080 dynamic_linker="$host_os dyld" 15081 version_type=darwin 15082 need_lib_prefix=no 15083 need_version=no 15084 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15085 soname_spec='$libname$release$major$shared_ext' 15086 shlibpath_overrides_runpath=yes 15087 shlibpath_var=DYLD_LIBRARY_PATH 15088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15089 15090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15091 ;; 15092 15093dgux*) 15094 version_type=linux # correct to gnu/linux during the next big refactor 15095 need_lib_prefix=no 15096 need_version=no 15097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15098 soname_spec='$libname$release$shared_ext$major' 15099 shlibpath_var=LD_LIBRARY_PATH 15100 ;; 15101 15102freebsd* | dragonfly*) 15103 # DragonFly does not have aout. When/if they implement a new 15104 # versioning mechanism, adjust this. 15105 if test -x /usr/bin/objformat; then 15106 objformat=`/usr/bin/objformat` 15107 else 15108 case $host_os in 15109 freebsd[23].*) objformat=aout ;; 15110 *) objformat=elf ;; 15111 esac 15112 fi 15113 version_type=freebsd-$objformat 15114 case $version_type in 15115 freebsd-elf*) 15116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15117 soname_spec='$libname$release$shared_ext$major' 15118 need_version=no 15119 need_lib_prefix=no 15120 ;; 15121 freebsd-*) 15122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15123 need_version=yes 15124 ;; 15125 esac 15126 shlibpath_var=LD_LIBRARY_PATH 15127 case $host_os in 15128 freebsd2.*) 15129 shlibpath_overrides_runpath=yes 15130 ;; 15131 freebsd3.[01]* | freebsdelf3.[01]*) 15132 shlibpath_overrides_runpath=yes 15133 hardcode_into_libs=yes 15134 ;; 15135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15137 shlibpath_overrides_runpath=no 15138 hardcode_into_libs=yes 15139 ;; 15140 *) # from 4.6 on, and DragonFly 15141 shlibpath_overrides_runpath=yes 15142 hardcode_into_libs=yes 15143 ;; 15144 esac 15145 ;; 15146 15147haiku*) 15148 version_type=linux # correct to gnu/linux during the next big refactor 15149 need_lib_prefix=no 15150 need_version=no 15151 dynamic_linker="$host_os runtime_loader" 15152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15153 soname_spec='$libname$release$shared_ext$major' 15154 shlibpath_var=LIBRARY_PATH 15155 shlibpath_overrides_runpath=no 15156 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15157 hardcode_into_libs=yes 15158 ;; 15159 15160hpux9* | hpux10* | hpux11*) 15161 # Give a soname corresponding to the major version so that dld.sl refuses to 15162 # link against other versions. 15163 version_type=sunos 15164 need_lib_prefix=no 15165 need_version=no 15166 case $host_cpu in 15167 ia64*) 15168 shrext_cmds='.so' 15169 hardcode_into_libs=yes 15170 dynamic_linker="$host_os dld.so" 15171 shlibpath_var=LD_LIBRARY_PATH 15172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15174 soname_spec='$libname$release$shared_ext$major' 15175 if test 32 = "$HPUX_IA64_MODE"; then 15176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15177 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15178 else 15179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15180 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15181 fi 15182 ;; 15183 hppa*64*) 15184 shrext_cmds='.sl' 15185 hardcode_into_libs=yes 15186 dynamic_linker="$host_os dld.sl" 15187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15190 soname_spec='$libname$release$shared_ext$major' 15191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15193 ;; 15194 *) 15195 shrext_cmds='.sl' 15196 dynamic_linker="$host_os dld.sl" 15197 shlibpath_var=SHLIB_PATH 15198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15200 soname_spec='$libname$release$shared_ext$major' 15201 ;; 15202 esac 15203 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15204 postinstall_cmds='chmod 555 $lib' 15205 # or fails outright, so override atomically: 15206 install_override_mode=555 15207 ;; 15208 15209interix[3-9]*) 15210 version_type=linux # correct to gnu/linux during the next big refactor 15211 need_lib_prefix=no 15212 need_version=no 15213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15214 soname_spec='$libname$release$shared_ext$major' 15215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15216 shlibpath_var=LD_LIBRARY_PATH 15217 shlibpath_overrides_runpath=no 15218 hardcode_into_libs=yes 15219 ;; 15220 15221irix5* | irix6* | nonstopux*) 15222 case $host_os in 15223 nonstopux*) version_type=nonstopux ;; 15224 *) 15225 if test yes = "$lt_cv_prog_gnu_ld"; then 15226 version_type=linux # correct to gnu/linux during the next big refactor 15227 else 15228 version_type=irix 15229 fi ;; 15230 esac 15231 need_lib_prefix=no 15232 need_version=no 15233 soname_spec='$libname$release$shared_ext$major' 15234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15235 case $host_os in 15236 irix5* | nonstopux*) 15237 libsuff= shlibsuff= 15238 ;; 15239 *) 15240 case $LD in # libtool.m4 will add one of these switches to LD 15241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15242 libsuff= shlibsuff= libmagic=32-bit;; 15243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15244 libsuff=32 shlibsuff=N32 libmagic=N32;; 15245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15246 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15247 *) libsuff= shlibsuff= libmagic=never-match;; 15248 esac 15249 ;; 15250 esac 15251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15252 shlibpath_overrides_runpath=no 15253 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15254 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15255 hardcode_into_libs=yes 15256 ;; 15257 15258# No shared lib support for Linux oldld, aout, or coff. 15259linux*oldld* | linux*aout* | linux*coff*) 15260 dynamic_linker=no 15261 ;; 15262 15263linux*android*) 15264 version_type=none # Android doesn't support versioned libraries. 15265 need_lib_prefix=no 15266 need_version=no 15267 library_names_spec='$libname$release$shared_ext' 15268 soname_spec='$libname$release$shared_ext' 15269 finish_cmds= 15270 shlibpath_var=LD_LIBRARY_PATH 15271 shlibpath_overrides_runpath=yes 15272 15273 # This implies no fast_install, which is unacceptable. 15274 # Some rework will be needed to allow for fast_install 15275 # before this can be enabled. 15276 hardcode_into_libs=yes 15277 15278 dynamic_linker='Android linker' 15279 # Don't embed -rpath directories since the linker doesn't support them. 15280 hardcode_libdir_flag_spec_CXX='-L$libdir' 15281 ;; 15282 15283# This must be glibc/ELF. 15284linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15285 version_type=linux # correct to gnu/linux during the next big refactor 15286 need_lib_prefix=no 15287 need_version=no 15288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15289 soname_spec='$libname$release$shared_ext$major' 15290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15291 shlibpath_var=LD_LIBRARY_PATH 15292 shlibpath_overrides_runpath=no 15293 15294 # Some binutils ld are patched to set DT_RUNPATH 15295 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15296 $as_echo_n "(cached) " >&6 15297else 15298 lt_cv_shlibpath_overrides_runpath=no 15299 save_LDFLAGS=$LDFLAGS 15300 save_libdir=$libdir 15301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15304/* end confdefs.h. */ 15305 15306int 15307main () 15308{ 15309 15310 ; 15311 return 0; 15312} 15313_ACEOF 15314if ac_fn_cxx_try_link "$LINENO"; then : 15315 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15316 lt_cv_shlibpath_overrides_runpath=yes 15317fi 15318fi 15319rm -f core conftest.err conftest.$ac_objext \ 15320 conftest$ac_exeext conftest.$ac_ext 15321 LDFLAGS=$save_LDFLAGS 15322 libdir=$save_libdir 15323 15324fi 15325 15326 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15327 15328 # This implies no fast_install, which is unacceptable. 15329 # Some rework will be needed to allow for fast_install 15330 # before this can be enabled. 15331 hardcode_into_libs=yes 15332 15333 # Ideally, we could use ldconfig to report *all* directores which are 15334 # searched for libraries, however this is still not possible. Aside from not 15335 # being certain /sbin/ldconfig is available, command 15336 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15337 # even though it is searched at run-time. Try to do the best guess by 15338 # appending ld.so.conf contents (and includes) to the search path. 15339 if test -f /etc/ld.so.conf; then 15340 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' ' '` 15341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15342 fi 15343 15344 # We used to test for /lib/ld.so.1 and disable shared libraries on 15345 # powerpc, because MkLinux only supported shared libraries with the 15346 # GNU dynamic linker. Since this was broken with cross compilers, 15347 # most powerpc-linux boxes support dynamic linking these days and 15348 # people can always --disable-shared, the test was removed, and we 15349 # assume the GNU/Linux dynamic linker is in use. 15350 dynamic_linker='GNU/Linux ld.so' 15351 ;; 15352 15353netbsd*) 15354 version_type=sunos 15355 need_lib_prefix=no 15356 need_version=no 15357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15358 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15360 dynamic_linker='NetBSD (a.out) ld.so' 15361 else 15362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15363 soname_spec='$libname$release$shared_ext$major' 15364 dynamic_linker='NetBSD ld.elf_so' 15365 fi 15366 shlibpath_var=LD_LIBRARY_PATH 15367 shlibpath_overrides_runpath=yes 15368 hardcode_into_libs=yes 15369 ;; 15370 15371newsos6) 15372 version_type=linux # correct to gnu/linux during the next big refactor 15373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15374 shlibpath_var=LD_LIBRARY_PATH 15375 shlibpath_overrides_runpath=yes 15376 ;; 15377 15378*nto* | *qnx*) 15379 version_type=qnx 15380 need_lib_prefix=no 15381 need_version=no 15382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15383 soname_spec='$libname$release$shared_ext$major' 15384 shlibpath_var=LD_LIBRARY_PATH 15385 shlibpath_overrides_runpath=no 15386 hardcode_into_libs=yes 15387 dynamic_linker='ldqnx.so' 15388 ;; 15389 15390openbsd* | bitrig*) 15391 version_type=sunos 15392 sys_lib_dlsearch_path_spec=/usr/lib 15393 need_lib_prefix=no 15394 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15395 need_version=no 15396 else 15397 need_version=yes 15398 fi 15399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15401 shlibpath_var=LD_LIBRARY_PATH 15402 shlibpath_overrides_runpath=yes 15403 ;; 15404 15405os2*) 15406 libname_spec='$name' 15407 version_type=windows 15408 shrext_cmds=.dll 15409 need_version=no 15410 need_lib_prefix=no 15411 # OS/2 can only load a DLL with a base name of 8 characters or less. 15412 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15413 v=$($ECHO $release$versuffix | tr -d .-); 15414 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15415 $ECHO $n$v`$shared_ext' 15416 library_names_spec='${libname}_dll.$libext' 15417 dynamic_linker='OS/2 ld.exe' 15418 shlibpath_var=BEGINLIBPATH 15419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15421 postinstall_cmds='base_file=`basename \$file`~ 15422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15423 dldir=$destdir/`dirname \$dlpath`~ 15424 test -d \$dldir || mkdir -p \$dldir~ 15425 $install_prog $dir/$dlname \$dldir/$dlname~ 15426 chmod a+x \$dldir/$dlname~ 15427 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15428 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15429 fi' 15430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15431 dlpath=$dir/\$dldll~ 15432 $RM \$dlpath' 15433 ;; 15434 15435osf3* | osf4* | osf5*) 15436 version_type=osf 15437 need_lib_prefix=no 15438 need_version=no 15439 soname_spec='$libname$release$shared_ext$major' 15440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15441 shlibpath_var=LD_LIBRARY_PATH 15442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15443 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15444 ;; 15445 15446rdos*) 15447 dynamic_linker=no 15448 ;; 15449 15450solaris*) 15451 version_type=linux # correct to gnu/linux during the next big refactor 15452 need_lib_prefix=no 15453 need_version=no 15454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15455 soname_spec='$libname$release$shared_ext$major' 15456 shlibpath_var=LD_LIBRARY_PATH 15457 shlibpath_overrides_runpath=yes 15458 hardcode_into_libs=yes 15459 # ldd complains unless libraries are executable 15460 postinstall_cmds='chmod +x $lib' 15461 ;; 15462 15463sunos4*) 15464 version_type=sunos 15465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15467 shlibpath_var=LD_LIBRARY_PATH 15468 shlibpath_overrides_runpath=yes 15469 if test yes = "$with_gnu_ld"; then 15470 need_lib_prefix=no 15471 fi 15472 need_version=yes 15473 ;; 15474 15475sysv4 | sysv4.3*) 15476 version_type=linux # correct to gnu/linux during the next big refactor 15477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15478 soname_spec='$libname$release$shared_ext$major' 15479 shlibpath_var=LD_LIBRARY_PATH 15480 case $host_vendor in 15481 sni) 15482 shlibpath_overrides_runpath=no 15483 need_lib_prefix=no 15484 runpath_var=LD_RUN_PATH 15485 ;; 15486 siemens) 15487 need_lib_prefix=no 15488 ;; 15489 motorola) 15490 need_lib_prefix=no 15491 need_version=no 15492 shlibpath_overrides_runpath=no 15493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15494 ;; 15495 esac 15496 ;; 15497 15498sysv4*MP*) 15499 if test -d /usr/nec; then 15500 version_type=linux # correct to gnu/linux during the next big refactor 15501 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15502 soname_spec='$libname$shared_ext.$major' 15503 shlibpath_var=LD_LIBRARY_PATH 15504 fi 15505 ;; 15506 15507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15508 version_type=sco 15509 need_lib_prefix=no 15510 need_version=no 15511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15512 soname_spec='$libname$release$shared_ext$major' 15513 shlibpath_var=LD_LIBRARY_PATH 15514 shlibpath_overrides_runpath=yes 15515 hardcode_into_libs=yes 15516 if test yes = "$with_gnu_ld"; then 15517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15518 else 15519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15520 case $host_os in 15521 sco3.2v5*) 15522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15523 ;; 15524 esac 15525 fi 15526 sys_lib_dlsearch_path_spec='/usr/lib' 15527 ;; 15528 15529tpf*) 15530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15531 version_type=linux # correct to gnu/linux during the next big refactor 15532 need_lib_prefix=no 15533 need_version=no 15534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15535 shlibpath_var=LD_LIBRARY_PATH 15536 shlibpath_overrides_runpath=no 15537 hardcode_into_libs=yes 15538 ;; 15539 15540uts4*) 15541 version_type=linux # correct to gnu/linux during the next big refactor 15542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15543 soname_spec='$libname$release$shared_ext$major' 15544 shlibpath_var=LD_LIBRARY_PATH 15545 ;; 15546 15547*) 15548 dynamic_linker=no 15549 ;; 15550esac 15551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15552$as_echo "$dynamic_linker" >&6; } 15553test no = "$dynamic_linker" && can_build_shared=no 15554 15555variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15556if test yes = "$GCC"; then 15557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15558fi 15559 15560if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15561 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15562fi 15563 15564if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15565 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15566fi 15567 15568# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15569configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15570 15571# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15572func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15573 15574# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15575configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15617$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15618hardcode_action_CXX= 15619if test -n "$hardcode_libdir_flag_spec_CXX" || 15620 test -n "$runpath_var_CXX" || 15621 test yes = "$hardcode_automatic_CXX"; then 15622 15623 # We can hardcode non-existent directories. 15624 if test no != "$hardcode_direct_CXX" && 15625 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15626 # have to relink, otherwise we might link with an installed library 15627 # when we should be linking with a yet-to-be-installed one 15628 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15629 test no != "$hardcode_minus_L_CXX"; then 15630 # Linking always hardcodes the temporary library directory. 15631 hardcode_action_CXX=relink 15632 else 15633 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15634 hardcode_action_CXX=immediate 15635 fi 15636else 15637 # We cannot hardcode anything, or else we can only hardcode existing 15638 # directories. 15639 hardcode_action_CXX=unsupported 15640fi 15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15642$as_echo "$hardcode_action_CXX" >&6; } 15643 15644if test relink = "$hardcode_action_CXX" || 15645 test yes = "$inherit_rpath_CXX"; then 15646 # Fast installation is not supported 15647 enable_fast_install=no 15648elif test yes = "$shlibpath_overrides_runpath" || 15649 test no = "$enable_shared"; then 15650 # Fast installation is not necessary 15651 enable_fast_install=needless 15652fi 15653 15654 15655 15656 15657 15658 15659 15660 fi # test -n "$compiler" 15661 15662 CC=$lt_save_CC 15663 CFLAGS=$lt_save_CFLAGS 15664 LDCXX=$LD 15665 LD=$lt_save_LD 15666 GCC=$lt_save_GCC 15667 with_gnu_ld=$lt_save_with_gnu_ld 15668 lt_cv_path_LDCXX=$lt_cv_path_LD 15669 lt_cv_path_LD=$lt_save_path_LD 15670 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15671 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15672fi # test yes != "$_lt_caught_CXX_error" 15673 15674ac_ext=c 15675ac_cpp='$CPP $CPPFLAGS' 15676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15678ac_compiler_gnu=$ac_cv_c_compiler_gnu 15679 15680 15681 15682 15683 15684if test -n "$ac_tool_prefix"; then 15685 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 15686set dummy ${ac_tool_prefix}ar; ac_word=$2 15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15688$as_echo_n "checking for $ac_word... " >&6; } 15689if ${ac_cv_prog_AR+:} false; then : 15690 $as_echo_n "(cached) " >&6 15691else 15692 if test -n "$AR"; then 15693 ac_cv_prog_AR="$AR" # Let the user override the test. 15694else 15695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15696for as_dir in $PATH 15697do 15698 IFS=$as_save_IFS 15699 test -z "$as_dir" && as_dir=. 15700 for ac_exec_ext in '' $ac_executable_extensions; do 15701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15702 ac_cv_prog_AR="${ac_tool_prefix}ar" 15703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15704 break 2 15705 fi 15706done 15707 done 15708IFS=$as_save_IFS 15709 15710fi 15711fi 15712AR=$ac_cv_prog_AR 15713if test -n "$AR"; then 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 15715$as_echo "$AR" >&6; } 15716else 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15718$as_echo "no" >&6; } 15719fi 15720 15721 15722fi 15723if test -z "$ac_cv_prog_AR"; then 15724 ac_ct_AR=$AR 15725 # Extract the first word of "ar", so it can be a program name with args. 15726set dummy ar; ac_word=$2 15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15728$as_echo_n "checking for $ac_word... " >&6; } 15729if ${ac_cv_prog_ac_ct_AR+:} false; then : 15730 $as_echo_n "(cached) " >&6 15731else 15732 if test -n "$ac_ct_AR"; then 15733 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 15734else 15735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15736for as_dir in $PATH 15737do 15738 IFS=$as_save_IFS 15739 test -z "$as_dir" && as_dir=. 15740 for ac_exec_ext in '' $ac_executable_extensions; do 15741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15742 ac_cv_prog_ac_ct_AR="ar" 15743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15744 break 2 15745 fi 15746done 15747 done 15748IFS=$as_save_IFS 15749 15750fi 15751fi 15752ac_ct_AR=$ac_cv_prog_ac_ct_AR 15753if test -n "$ac_ct_AR"; then 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 15755$as_echo "$ac_ct_AR" >&6; } 15756else 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15758$as_echo "no" >&6; } 15759fi 15760 15761 if test "x$ac_ct_AR" = x; then 15762 AR=":" 15763 else 15764 case $cross_compiling:$ac_tool_warned in 15765yes:) 15766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15768ac_tool_warned=yes ;; 15769esac 15770 AR=$ac_ct_AR 15771 fi 15772else 15773 AR="$ac_cv_prog_AR" 15774fi 15775 15776 15777 15778# Extract the first word of "xml2-config", so it can be a program name with args. 15779set dummy xml2-config; ac_word=$2 15780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15781$as_echo_n "checking for $ac_word... " >&6; } 15782if ${ac_cv_path_XML_CONFIG+:} false; then : 15783 $as_echo_n "(cached) " >&6 15784else 15785 case $XML_CONFIG in 15786 [\\/]* | ?:[\\/]*) 15787 ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path. 15788 ;; 15789 *) 15790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15791for as_dir in $PATH 15792do 15793 IFS=$as_save_IFS 15794 test -z "$as_dir" && as_dir=. 15795 for ac_exec_ext in '' $ac_executable_extensions; do 15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15797 ac_cv_path_XML_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15799 break 2 15800 fi 15801done 15802 done 15803IFS=$as_save_IFS 15804 15805 test -z "$ac_cv_path_XML_CONFIG" && ac_cv_path_XML_CONFIG="no" 15806 ;; 15807esac 15808fi 15809XML_CONFIG=$ac_cv_path_XML_CONFIG 15810if test -n "$XML_CONFIG"; then 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CONFIG" >&5 15812$as_echo "$XML_CONFIG" >&6; } 15813else 15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15815$as_echo "no" >&6; } 15816fi 15817 15818 15819if test "$XML_CONFIG" = "no"; then 15820 as_fn_error $? "Cannot determine configuration of libxml. 15821Perhaps you forgot to install the package libxml2-devel ?" "$LINENO" 5 15822else 15823 XML_CFLAGS=`$XML_CONFIG --cflags` 15824 15825 XML_LIBS=`$XML_CONFIG --libs` 15826 15827fi 15828 15829 15830@%:@ Check whether --with-corba was given. 15831if test "${with_corba+set}" = set; then : 15832 withval=$with_corba; 15833fi 15834 15835if test "$with_corba" != "yes"; then 15836 withcorba=false 15837else 15838 withcorba=true 15839fi 15840 if test x$withcorba = xtrue; then 15841 ENABLE_CORBA_TRUE= 15842 ENABLE_CORBA_FALSE='#' 15843else 15844 ENABLE_CORBA_TRUE='#' 15845 ENABLE_CORBA_FALSE= 15846fi 15847 15848if test x$withcorba = xtrue; then 15849 15850$as_echo "@%:@define ENABLE_CORBA 1" >>confdefs.h 15851 15852fi 15853 15854 15855 15856 15857ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile" 15858 15859cat >confcache <<\_ACEOF 15860# This file is a shell script that caches the results of configure 15861# tests run on this system so they can be shared between configure 15862# scripts and configure runs, see configure's option --config-cache. 15863# It is not useful on other systems. If it contains results you don't 15864# want to keep, you may remove or edit it. 15865# 15866# config.status only pays attention to the cache file if you give it 15867# the --recheck option to rerun configure. 15868# 15869# `ac_cv_env_foo' variables (set or unset) will be overridden when 15870# loading this file, other *unset* `ac_cv_foo' will be assigned the 15871# following values. 15872 15873_ACEOF 15874 15875# The following way of writing the cache mishandles newlines in values, 15876# but we know of no workaround that is simple, portable, and efficient. 15877# So, we kill variables containing newlines. 15878# Ultrix sh set writes to stderr and can't be redirected directly, 15879# and sets the high bit in the cache file unless we assign to the vars. 15880( 15881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15882 eval ac_val=\$$ac_var 15883 case $ac_val in #( 15884 *${as_nl}*) 15885 case $ac_var in #( 15886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15887$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15888 esac 15889 case $ac_var in #( 15890 _ | IFS | as_nl) ;; #( 15891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15892 *) { eval $ac_var=; unset $ac_var;} ;; 15893 esac ;; 15894 esac 15895 done 15896 15897 (set) 2>&1 | 15898 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15899 *${as_nl}ac_space=\ *) 15900 # `set' does not quote correctly, so add quotes: double-quote 15901 # substitution turns \\\\ into \\, and sed turns \\ into \. 15902 sed -n \ 15903 "s/'/'\\\\''/g; 15904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15905 ;; #( 15906 *) 15907 # `set' quotes correctly as required by POSIX, so do not add quotes. 15908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15909 ;; 15910 esac | 15911 sort 15912) | 15913 sed ' 15914 /^ac_cv_env_/b end 15915 t clear 15916 :clear 15917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15918 t end 15919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15920 :end' >>confcache 15921if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15922 if test -w "$cache_file"; then 15923 if test "x$cache_file" != "x/dev/null"; then 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15925$as_echo "$as_me: updating cache $cache_file" >&6;} 15926 if test ! -f "$cache_file" || test -h "$cache_file"; then 15927 cat confcache >"$cache_file" 15928 else 15929 case $cache_file in #( 15930 */* | ?:*) 15931 mv -f confcache "$cache_file"$$ && 15932 mv -f "$cache_file"$$ "$cache_file" ;; #( 15933 *) 15934 mv -f confcache "$cache_file" ;; 15935 esac 15936 fi 15937 fi 15938 else 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15940$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15941 fi 15942fi 15943rm -f confcache 15944 15945test "x$prefix" = xNONE && prefix=$ac_default_prefix 15946# Let make expand exec_prefix. 15947test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15948 15949DEFS=-DHAVE_CONFIG_H 15950 15951ac_libobjs= 15952ac_ltlibobjs= 15953U= 15954for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 15955 # 1. Remove the extension, and $U if already installed. 15956 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15957 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15959 # will be set to the directory where LIBOBJS objects are built. 15960 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15961 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15962done 15963LIB@&t@OBJS=$ac_libobjs 15964 15965LTLIBOBJS=$ac_ltlibobjs 15966 15967 15968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15969$as_echo_n "checking that generated files are newer than configure... " >&6; } 15970 if test -n "$am_sleep_pid"; then 15971 # Hide warnings about reused PIDs. 15972 wait $am_sleep_pid 2>/dev/null 15973 fi 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15975$as_echo "done" >&6; } 15976 if test -n "$EXEEXT"; then 15977 am__EXEEXT_TRUE= 15978 am__EXEEXT_FALSE='#' 15979else 15980 am__EXEEXT_TRUE='#' 15981 am__EXEEXT_FALSE= 15982fi 15983 15984if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15985 as_fn_error $? "conditional \"AMDEP\" was never defined. 15986Usually this means the macro was only invoked conditionally." "$LINENO" 5 15987fi 15988if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15989 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15990Usually this means the macro was only invoked conditionally." "$LINENO" 5 15991fi 15992if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15993 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15994Usually this means the macro was only invoked conditionally." "$LINENO" 5 15995fi 15996if test -z "${ENABLE_CORBA_TRUE}" && test -z "${ENABLE_CORBA_FALSE}"; then 15997 as_fn_error $? "conditional \"ENABLE_CORBA\" was never defined. 15998Usually this means the macro was only invoked conditionally." "$LINENO" 5 15999fi 16000 16001: "${CONFIG_STATUS=./config.status}" 16002ac_write_fail=0 16003ac_clean_files_save=$ac_clean_files 16004ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16005{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16006$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16007as_write_fail=0 16008cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16009#! $SHELL 16010# Generated by $as_me. 16011# Run this file to recreate the current configuration. 16012# Compiler output produced by configure, useful for debugging 16013# configure, is in config.log if it exists. 16014 16015debug=false 16016ac_cs_recheck=false 16017ac_cs_silent=false 16018 16019SHELL=\${CONFIG_SHELL-$SHELL} 16020export SHELL 16021_ASEOF 16022cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16023## -------------------- ## 16024## M4sh Initialization. ## 16025## -------------------- ## 16026 16027# Be more Bourne compatible 16028DUALCASE=1; export DUALCASE # for MKS sh 16029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16030 emulate sh 16031 NULLCMD=: 16032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16033 # is contrary to our usage. Disable this feature. 16034 alias -g '${1+"$@"}'='"$@"' 16035 setopt NO_GLOB_SUBST 16036else 16037 case `(set -o) 2>/dev/null` in @%:@( 16038 *posix*) : 16039 set -o posix ;; @%:@( 16040 *) : 16041 ;; 16042esac 16043fi 16044 16045 16046as_nl=' 16047' 16048export as_nl 16049# Printing a long string crashes Solaris 7 /usr/bin/printf. 16050as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16053# Prefer a ksh shell builtin over an external printf program on Solaris, 16054# but without wasting forks for bash or zsh. 16055if test -z "$BASH_VERSION$ZSH_VERSION" \ 16056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16057 as_echo='print -r --' 16058 as_echo_n='print -rn --' 16059elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16060 as_echo='printf %s\n' 16061 as_echo_n='printf %s' 16062else 16063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16065 as_echo_n='/usr/ucb/echo -n' 16066 else 16067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16068 as_echo_n_body='eval 16069 arg=$1; 16070 case $arg in @%:@( 16071 *"$as_nl"*) 16072 expr "X$arg" : "X\\(.*\\)$as_nl"; 16073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16074 esac; 16075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16076 ' 16077 export as_echo_n_body 16078 as_echo_n='sh -c $as_echo_n_body as_echo' 16079 fi 16080 export as_echo_body 16081 as_echo='sh -c $as_echo_body as_echo' 16082fi 16083 16084# The user is always right. 16085if test "${PATH_SEPARATOR+set}" != set; then 16086 PATH_SEPARATOR=: 16087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16089 PATH_SEPARATOR=';' 16090 } 16091fi 16092 16093 16094# IFS 16095# We need space, tab and new line, in precisely that order. Quoting is 16096# there to prevent editors from complaining about space-tab. 16097# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16098# splitting by setting IFS to empty value.) 16099IFS=" "" $as_nl" 16100 16101# Find who we are. Look in the path if we contain no directory separator. 16102as_myself= 16103case $0 in @%:@(( 16104 *[\\/]* ) as_myself=$0 ;; 16105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16106for as_dir in $PATH 16107do 16108 IFS=$as_save_IFS 16109 test -z "$as_dir" && as_dir=. 16110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16111 done 16112IFS=$as_save_IFS 16113 16114 ;; 16115esac 16116# We did not find ourselves, most probably we were run as `sh COMMAND' 16117# in which case we are not to be found in the path. 16118if test "x$as_myself" = x; then 16119 as_myself=$0 16120fi 16121if test ! -f "$as_myself"; then 16122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16123 exit 1 16124fi 16125 16126# Unset variables that we do not need and which cause bugs (e.g. in 16127# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16128# suppresses any "Segmentation fault" message there. '((' could 16129# trigger a bug in pdksh 5.2.14. 16130for as_var in BASH_ENV ENV MAIL MAILPATH 16131do eval test x\${$as_var+set} = xset \ 16132 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16133done 16134PS1='$ ' 16135PS2='> ' 16136PS4='+ ' 16137 16138# NLS nuisances. 16139LC_ALL=C 16140export LC_ALL 16141LANGUAGE=C 16142export LANGUAGE 16143 16144# CDPATH. 16145(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16146 16147 16148@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16149@%:@ ---------------------------------------- 16150@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16151@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16152@%:@ script with STATUS, using 1 if that was 0. 16153as_fn_error () 16154{ 16155 as_status=$1; test $as_status -eq 0 && as_status=1 16156 if test "$4"; then 16157 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16158 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16159 fi 16160 $as_echo "$as_me: error: $2" >&2 16161 as_fn_exit $as_status 16162} @%:@ as_fn_error 16163 16164 16165@%:@ as_fn_set_status STATUS 16166@%:@ ----------------------- 16167@%:@ Set @S|@? to STATUS, without forking. 16168as_fn_set_status () 16169{ 16170 return $1 16171} @%:@ as_fn_set_status 16172 16173@%:@ as_fn_exit STATUS 16174@%:@ ----------------- 16175@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16176as_fn_exit () 16177{ 16178 set +e 16179 as_fn_set_status $1 16180 exit $1 16181} @%:@ as_fn_exit 16182 16183@%:@ as_fn_unset VAR 16184@%:@ --------------- 16185@%:@ Portably unset VAR. 16186as_fn_unset () 16187{ 16188 { eval $1=; unset $1;} 16189} 16190as_unset=as_fn_unset 16191@%:@ as_fn_append VAR VALUE 16192@%:@ ---------------------- 16193@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16194@%:@ advantage of any shell optimizations that allow amortized linear growth over 16195@%:@ repeated appends, instead of the typical quadratic growth present in naive 16196@%:@ implementations. 16197if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16198 eval 'as_fn_append () 16199 { 16200 eval $1+=\$2 16201 }' 16202else 16203 as_fn_append () 16204 { 16205 eval $1=\$$1\$2 16206 } 16207fi # as_fn_append 16208 16209@%:@ as_fn_arith ARG... 16210@%:@ ------------------ 16211@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16212@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16213@%:@ must be portable across @S|@(()) and expr. 16214if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16215 eval 'as_fn_arith () 16216 { 16217 as_val=$(( $* )) 16218 }' 16219else 16220 as_fn_arith () 16221 { 16222 as_val=`expr "$@" || test $? -eq 1` 16223 } 16224fi # as_fn_arith 16225 16226 16227if expr a : '\(a\)' >/dev/null 2>&1 && 16228 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16229 as_expr=expr 16230else 16231 as_expr=false 16232fi 16233 16234if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16235 as_basename=basename 16236else 16237 as_basename=false 16238fi 16239 16240if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16241 as_dirname=dirname 16242else 16243 as_dirname=false 16244fi 16245 16246as_me=`$as_basename -- "$0" || 16247$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16248 X"$0" : 'X\(//\)$' \| \ 16249 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16250$as_echo X/"$0" | 16251 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16252 s//\1/ 16253 q 16254 } 16255 /^X\/\(\/\/\)$/{ 16256 s//\1/ 16257 q 16258 } 16259 /^X\/\(\/\).*/{ 16260 s//\1/ 16261 q 16262 } 16263 s/.*/./; q'` 16264 16265# Avoid depending upon Character Ranges. 16266as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16267as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16268as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16269as_cr_digits='0123456789' 16270as_cr_alnum=$as_cr_Letters$as_cr_digits 16271 16272ECHO_C= ECHO_N= ECHO_T= 16273case `echo -n x` in @%:@((((( 16274-n*) 16275 case `echo 'xy\c'` in 16276 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16277 xy) ECHO_C='\c';; 16278 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16279 ECHO_T=' ';; 16280 esac;; 16281*) 16282 ECHO_N='-n';; 16283esac 16284 16285rm -f conf$$ conf$$.exe conf$$.file 16286if test -d conf$$.dir; then 16287 rm -f conf$$.dir/conf$$.file 16288else 16289 rm -f conf$$.dir 16290 mkdir conf$$.dir 2>/dev/null 16291fi 16292if (echo >conf$$.file) 2>/dev/null; then 16293 if ln -s conf$$.file conf$$ 2>/dev/null; then 16294 as_ln_s='ln -s' 16295 # ... but there are two gotchas: 16296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16298 # In both cases, we have to default to `cp -pR'. 16299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16300 as_ln_s='cp -pR' 16301 elif ln conf$$.file conf$$ 2>/dev/null; then 16302 as_ln_s=ln 16303 else 16304 as_ln_s='cp -pR' 16305 fi 16306else 16307 as_ln_s='cp -pR' 16308fi 16309rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16310rmdir conf$$.dir 2>/dev/null 16311 16312 16313@%:@ as_fn_mkdir_p 16314@%:@ ------------- 16315@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16316as_fn_mkdir_p () 16317{ 16318 16319 case $as_dir in #( 16320 -*) as_dir=./$as_dir;; 16321 esac 16322 test -d "$as_dir" || eval $as_mkdir_p || { 16323 as_dirs= 16324 while :; do 16325 case $as_dir in #( 16326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16327 *) as_qdir=$as_dir;; 16328 esac 16329 as_dirs="'$as_qdir' $as_dirs" 16330 as_dir=`$as_dirname -- "$as_dir" || 16331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16332 X"$as_dir" : 'X\(//\)[^/]' \| \ 16333 X"$as_dir" : 'X\(//\)$' \| \ 16334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16335$as_echo X"$as_dir" | 16336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16337 s//\1/ 16338 q 16339 } 16340 /^X\(\/\/\)[^/].*/{ 16341 s//\1/ 16342 q 16343 } 16344 /^X\(\/\/\)$/{ 16345 s//\1/ 16346 q 16347 } 16348 /^X\(\/\).*/{ 16349 s//\1/ 16350 q 16351 } 16352 s/.*/./; q'` 16353 test -d "$as_dir" && break 16354 done 16355 test -z "$as_dirs" || eval "mkdir $as_dirs" 16356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16357 16358 16359} @%:@ as_fn_mkdir_p 16360if mkdir -p . 2>/dev/null; then 16361 as_mkdir_p='mkdir -p "$as_dir"' 16362else 16363 test -d ./-p && rmdir ./-p 16364 as_mkdir_p=false 16365fi 16366 16367 16368@%:@ as_fn_executable_p FILE 16369@%:@ ----------------------- 16370@%:@ Test if FILE is an executable regular file. 16371as_fn_executable_p () 16372{ 16373 test -f "$1" && test -x "$1" 16374} @%:@ as_fn_executable_p 16375as_test_x='test -x' 16376as_executable_p=as_fn_executable_p 16377 16378# Sed expression to map a string onto a valid CPP name. 16379as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16380 16381# Sed expression to map a string onto a valid variable name. 16382as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16383 16384 16385exec 6>&1 16386## ----------------------------------- ## 16387## Main body of $CONFIG_STATUS script. ## 16388## ----------------------------------- ## 16389_ASEOF 16390test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16391 16392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16393# Save the log message, to keep $0 and so on meaningful, and to 16394# report actual input values of CONFIG_FILES etc. instead of their 16395# values after options handling. 16396ac_log=" 16397This file was extended by dia2code $as_me 1.0.0, which was 16398generated by GNU Autoconf 2.69. Invocation command line was 16399 16400 CONFIG_FILES = $CONFIG_FILES 16401 CONFIG_HEADERS = $CONFIG_HEADERS 16402 CONFIG_LINKS = $CONFIG_LINKS 16403 CONFIG_COMMANDS = $CONFIG_COMMANDS 16404 $ $0 $@ 16405 16406on `(hostname || uname -n) 2>/dev/null | sed 1q` 16407" 16408 16409_ACEOF 16410 16411case $ac_config_files in *" 16412"*) set x $ac_config_files; shift; ac_config_files=$*;; 16413esac 16414 16415case $ac_config_headers in *" 16416"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16417esac 16418 16419 16420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16421# Files that config.status was made for. 16422config_files="$ac_config_files" 16423config_headers="$ac_config_headers" 16424config_commands="$ac_config_commands" 16425 16426_ACEOF 16427 16428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16429ac_cs_usage="\ 16430\`$as_me' instantiates files and other configuration actions 16431from templates according to the current configuration. Unless the files 16432and actions are specified as TAGs, all are instantiated by default. 16433 16434Usage: $0 [OPTION]... [TAG]... 16435 16436 -h, --help print this help, then exit 16437 -V, --version print version number and configuration settings, then exit 16438 --config print configuration, then exit 16439 -q, --quiet, --silent 16440 do not print progress messages 16441 -d, --debug don't remove temporary files 16442 --recheck update $as_me by reconfiguring in the same conditions 16443 --file=FILE[:TEMPLATE] 16444 instantiate the configuration file FILE 16445 --header=FILE[:TEMPLATE] 16446 instantiate the configuration header FILE 16447 16448Configuration files: 16449$config_files 16450 16451Configuration headers: 16452$config_headers 16453 16454Configuration commands: 16455$config_commands 16456 16457Report bugs to the package provider." 16458 16459_ACEOF 16460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16461ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16462ac_cs_version="\\ 16463dia2code config.status 1.0.0 16464configured by $0, generated by GNU Autoconf 2.69, 16465 with options \\"\$ac_cs_config\\" 16466 16467Copyright (C) 2012 Free Software Foundation, Inc. 16468This config.status script is free software; the Free Software Foundation 16469gives unlimited permission to copy, distribute and modify it." 16470 16471ac_pwd='$ac_pwd' 16472srcdir='$srcdir' 16473INSTALL='$INSTALL' 16474MKDIR_P='$MKDIR_P' 16475AWK='$AWK' 16476test -n "\$AWK" || AWK=awk 16477_ACEOF 16478 16479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16480# The default lists apply if the user does not specify any file. 16481ac_need_defaults=: 16482while test $# != 0 16483do 16484 case $1 in 16485 --*=?*) 16486 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16488 ac_shift=: 16489 ;; 16490 --*=) 16491 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16492 ac_optarg= 16493 ac_shift=: 16494 ;; 16495 *) 16496 ac_option=$1 16497 ac_optarg=$2 16498 ac_shift=shift 16499 ;; 16500 esac 16501 16502 case $ac_option in 16503 # Handling of the options. 16504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16505 ac_cs_recheck=: ;; 16506 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16507 $as_echo "$ac_cs_version"; exit ;; 16508 --config | --confi | --conf | --con | --co | --c ) 16509 $as_echo "$ac_cs_config"; exit ;; 16510 --debug | --debu | --deb | --de | --d | -d ) 16511 debug=: ;; 16512 --file | --fil | --fi | --f ) 16513 $ac_shift 16514 case $ac_optarg in 16515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16516 '') as_fn_error $? "missing file argument" ;; 16517 esac 16518 as_fn_append CONFIG_FILES " '$ac_optarg'" 16519 ac_need_defaults=false;; 16520 --header | --heade | --head | --hea ) 16521 $ac_shift 16522 case $ac_optarg in 16523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16524 esac 16525 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16526 ac_need_defaults=false;; 16527 --he | --h) 16528 # Conflict between --help and --header 16529 as_fn_error $? "ambiguous option: \`$1' 16530Try \`$0 --help' for more information.";; 16531 --help | --hel | -h ) 16532 $as_echo "$ac_cs_usage"; exit ;; 16533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16534 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16535 ac_cs_silent=: ;; 16536 16537 # This is an error. 16538 -*) as_fn_error $? "unrecognized option: \`$1' 16539Try \`$0 --help' for more information." ;; 16540 16541 *) as_fn_append ac_config_targets " $1" 16542 ac_need_defaults=false ;; 16543 16544 esac 16545 shift 16546done 16547 16548ac_configure_extra_args= 16549 16550if $ac_cs_silent; then 16551 exec 6>/dev/null 16552 ac_configure_extra_args="$ac_configure_extra_args --silent" 16553fi 16554 16555_ACEOF 16556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16557if \$ac_cs_recheck; then 16558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16559 shift 16560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16561 CONFIG_SHELL='$SHELL' 16562 export CONFIG_SHELL 16563 exec "\$@" 16564fi 16565 16566_ACEOF 16567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16568exec 5>>config.log 16569{ 16570 echo 16571 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 16572@%:@@%:@ Running $as_me. @%:@@%:@ 16573_ASBOX 16574 $as_echo "$ac_log" 16575} >&5 16576 16577_ACEOF 16578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16579# 16580# INIT-COMMANDS 16581# 16582AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16583 16584 16585# The HP-UX ksh and POSIX shell print the target directory to stdout 16586# if CDPATH is set. 16587(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16588 16589sed_quote_subst='$sed_quote_subst' 16590double_quote_subst='$double_quote_subst' 16591delay_variable_subst='$delay_variable_subst' 16592macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16593macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16594enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16595enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16596pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16597enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16598shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16599SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16600ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16601PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16602host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16603host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16604host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16605build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16606build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16607build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16608SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16609Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16610GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16611EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16612FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16613LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16614NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16615LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16616max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16617ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16618exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16619lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16620lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16621lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16622lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16623lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16624reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16625reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16626OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16627deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16628file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16629file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16630want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16631DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16632sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16633AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16634AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16635archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16636STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16637RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16638old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16639old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16640old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16641lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16642CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16643CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16644compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16645GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16646lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16647lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16648lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16649lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16650lt_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"`' 16651lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16652nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16653lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16654lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16655objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16656MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16657lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16658lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16659lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16660lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16661lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16662need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16663MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16664DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16665NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16666LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16667OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16668OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16669libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16670shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16671extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16672archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16673enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16674export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16675whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16676compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16677old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16678old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16679archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16680archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16681module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16682module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16683with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16684allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16685no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16686hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16687hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16688hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16689hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16690hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16691hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16692hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16693inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16694link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16695always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16696export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16697exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16698include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16699prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16700postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16701file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16702variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16703need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16704need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16705version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16706runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16707shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16708shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16709libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16710library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16711soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16712install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16713postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16714postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16715finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16716finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16717hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16718sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16719configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16720configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16721hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16722enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16723enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16724enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16725old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16726striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16727compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16728predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16729postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16730predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16731postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16732compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16733LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16734reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16735reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16736old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16737compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16738GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16739lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16740lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16741lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16742lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16743lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16744archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16745enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16746export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16747whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16748compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16749old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16750old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16751archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16752archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16753module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16754module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16755with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16756allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16757no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16758hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16759hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16760hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16761hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16762hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16763hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16764hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16765inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16766link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16767always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16768export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16769exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16770include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16771prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16772postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16773file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16774hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16775compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16776predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16777postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16778predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16779postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16780compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16781 16782LTCC='$LTCC' 16783LTCFLAGS='$LTCFLAGS' 16784compiler='$compiler_DEFAULT' 16785 16786# A function that is used when there is no print builtin or printf. 16787func_fallback_echo () 16788{ 16789 eval 'cat <<_LTECHO_EOF 16790\$1 16791_LTECHO_EOF' 16792} 16793 16794# Quote evaled strings. 16795for var in SHELL \ 16796ECHO \ 16797PATH_SEPARATOR \ 16798SED \ 16799GREP \ 16800EGREP \ 16801FGREP \ 16802LD \ 16803NM \ 16804LN_S \ 16805lt_SP2NL \ 16806lt_NL2SP \ 16807reload_flag \ 16808OBJDUMP \ 16809deplibs_check_method \ 16810file_magic_cmd \ 16811file_magic_glob \ 16812want_nocaseglob \ 16813DLLTOOL \ 16814sharedlib_from_linklib_cmd \ 16815AR \ 16816AR_FLAGS \ 16817archiver_list_spec \ 16818STRIP \ 16819RANLIB \ 16820CC \ 16821CFLAGS \ 16822compiler \ 16823lt_cv_sys_global_symbol_pipe \ 16824lt_cv_sys_global_symbol_to_cdecl \ 16825lt_cv_sys_global_symbol_to_import \ 16826lt_cv_sys_global_symbol_to_c_name_address \ 16827lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16828lt_cv_nm_interface \ 16829nm_file_list_spec \ 16830lt_cv_truncate_bin \ 16831lt_prog_compiler_no_builtin_flag \ 16832lt_prog_compiler_pic \ 16833lt_prog_compiler_wl \ 16834lt_prog_compiler_static \ 16835lt_cv_prog_compiler_c_o \ 16836need_locks \ 16837MANIFEST_TOOL \ 16838DSYMUTIL \ 16839NMEDIT \ 16840LIPO \ 16841OTOOL \ 16842OTOOL64 \ 16843shrext_cmds \ 16844export_dynamic_flag_spec \ 16845whole_archive_flag_spec \ 16846compiler_needs_object \ 16847with_gnu_ld \ 16848allow_undefined_flag \ 16849no_undefined_flag \ 16850hardcode_libdir_flag_spec \ 16851hardcode_libdir_separator \ 16852exclude_expsyms \ 16853include_expsyms \ 16854file_list_spec \ 16855variables_saved_for_relink \ 16856libname_spec \ 16857library_names_spec \ 16858soname_spec \ 16859install_override_mode \ 16860finish_eval \ 16861old_striplib \ 16862striplib \ 16863compiler_lib_search_dirs \ 16864predep_objects \ 16865postdep_objects \ 16866predeps \ 16867postdeps \ 16868compiler_lib_search_path \ 16869LD_CXX \ 16870reload_flag_CXX \ 16871compiler_CXX \ 16872lt_prog_compiler_no_builtin_flag_CXX \ 16873lt_prog_compiler_pic_CXX \ 16874lt_prog_compiler_wl_CXX \ 16875lt_prog_compiler_static_CXX \ 16876lt_cv_prog_compiler_c_o_CXX \ 16877export_dynamic_flag_spec_CXX \ 16878whole_archive_flag_spec_CXX \ 16879compiler_needs_object_CXX \ 16880with_gnu_ld_CXX \ 16881allow_undefined_flag_CXX \ 16882no_undefined_flag_CXX \ 16883hardcode_libdir_flag_spec_CXX \ 16884hardcode_libdir_separator_CXX \ 16885exclude_expsyms_CXX \ 16886include_expsyms_CXX \ 16887file_list_spec_CXX \ 16888compiler_lib_search_dirs_CXX \ 16889predep_objects_CXX \ 16890postdep_objects_CXX \ 16891predeps_CXX \ 16892postdeps_CXX \ 16893compiler_lib_search_path_CXX; do 16894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16895 *[\\\\\\\`\\"\\\$]*) 16896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16897 ;; 16898 *) 16899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16900 ;; 16901 esac 16902done 16903 16904# Double-quote double-evaled strings. 16905for var in reload_cmds \ 16906old_postinstall_cmds \ 16907old_postuninstall_cmds \ 16908old_archive_cmds \ 16909extract_expsyms_cmds \ 16910old_archive_from_new_cmds \ 16911old_archive_from_expsyms_cmds \ 16912archive_cmds \ 16913archive_expsym_cmds \ 16914module_cmds \ 16915module_expsym_cmds \ 16916export_symbols_cmds \ 16917prelink_cmds \ 16918postlink_cmds \ 16919postinstall_cmds \ 16920postuninstall_cmds \ 16921finish_cmds \ 16922sys_lib_search_path_spec \ 16923configure_time_dlsearch_path \ 16924configure_time_lt_sys_library_path \ 16925reload_cmds_CXX \ 16926old_archive_cmds_CXX \ 16927old_archive_from_new_cmds_CXX \ 16928old_archive_from_expsyms_cmds_CXX \ 16929archive_cmds_CXX \ 16930archive_expsym_cmds_CXX \ 16931module_cmds_CXX \ 16932module_expsym_cmds_CXX \ 16933export_symbols_cmds_CXX \ 16934prelink_cmds_CXX \ 16935postlink_cmds_CXX; do 16936 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16937 *[\\\\\\\`\\"\\\$]*) 16938 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16939 ;; 16940 *) 16941 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16942 ;; 16943 esac 16944done 16945 16946ac_aux_dir='$ac_aux_dir' 16947 16948# See if we are running on zsh, and set the options that allow our 16949# commands through without removal of \ escapes INIT. 16950if test -n "\${ZSH_VERSION+set}"; then 16951 setopt NO_GLOB_SUBST 16952fi 16953 16954 16955 PACKAGE='$PACKAGE' 16956 VERSION='$VERSION' 16957 RM='$RM' 16958 ofile='$ofile' 16959 16960 16961 16962 16963 16964 16965_ACEOF 16966 16967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16968 16969# Handling of arguments. 16970for ac_config_target in $ac_config_targets 16971do 16972 case $ac_config_target in 16973 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16974 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16975 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16976 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16977 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16978 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 16979 16980 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16981 esac 16982done 16983 16984 16985# If the user did not use the arguments to specify the items to instantiate, 16986# then the envvar interface is used. Set only those that are not. 16987# We use the long form for the default assignment because of an extremely 16988# bizarre bug on SunOS 4.1.3. 16989if $ac_need_defaults; then 16990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16993fi 16994 16995# Have a temporary directory for convenience. Make it in the build tree 16996# simply because there is no reason against having it here, and in addition, 16997# creating and moving files from /tmp can sometimes cause problems. 16998# Hook for its removal unless debugging. 16999# Note that there is a small window in which the directory will not be cleaned: 17000# after its creation but before its name has been assigned to `$tmp'. 17001$debug || 17002{ 17003 tmp= ac_tmp= 17004 trap 'exit_status=$? 17005 : "${ac_tmp:=$tmp}" 17006 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17007' 0 17008 trap 'as_fn_exit 1' 1 2 13 15 17009} 17010# Create a (secure) tmp directory for tmp files. 17011 17012{ 17013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17014 test -d "$tmp" 17015} || 17016{ 17017 tmp=./conf$$-$RANDOM 17018 (umask 077 && mkdir "$tmp") 17019} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17020ac_tmp=$tmp 17021 17022# Set up the scripts for CONFIG_FILES section. 17023# No need to generate them if there are no CONFIG_FILES. 17024# This happens for instance with `./config.status config.h'. 17025if test -n "$CONFIG_FILES"; then 17026 17027 17028ac_cr=`echo X | tr X '\015'` 17029# On cygwin, bash can eat \r inside `` if the user requested igncr. 17030# But we know of no other shell where ac_cr would be empty at this 17031# point, so we can use a bashism as a fallback. 17032if test "x$ac_cr" = x; then 17033 eval ac_cr=\$\'\\r\' 17034fi 17035ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17036if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17037 ac_cs_awk_cr='\\r' 17038else 17039 ac_cs_awk_cr=$ac_cr 17040fi 17041 17042echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17043_ACEOF 17044 17045 17046{ 17047 echo "cat >conf$$subs.awk <<_ACEOF" && 17048 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17049 echo "_ACEOF" 17050} >conf$$subs.sh || 17051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17052ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17053ac_delim='%!_!# ' 17054for ac_last_try in false false false false false :; do 17055 . ./conf$$subs.sh || 17056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17057 17058 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17059 if test $ac_delim_n = $ac_delim_num; then 17060 break 17061 elif $ac_last_try; then 17062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17063 else 17064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17065 fi 17066done 17067rm -f conf$$subs.sh 17068 17069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17070cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17071_ACEOF 17072sed -n ' 17073h 17074s/^/S["/; s/!.*/"]=/ 17075p 17076g 17077s/^[^!]*!// 17078:repl 17079t repl 17080s/'"$ac_delim"'$// 17081t delim 17082:nl 17083h 17084s/\(.\{148\}\)..*/\1/ 17085t more1 17086s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17087p 17088n 17089b repl 17090:more1 17091s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17092p 17093g 17094s/.\{148\}// 17095t nl 17096:delim 17097h 17098s/\(.\{148\}\)..*/\1/ 17099t more2 17100s/["\\]/\\&/g; s/^/"/; s/$/"/ 17101p 17102b 17103:more2 17104s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17105p 17106g 17107s/.\{148\}// 17108t delim 17109' <conf$$subs.awk | sed ' 17110/^[^""]/{ 17111 N 17112 s/\n// 17113} 17114' >>$CONFIG_STATUS || ac_write_fail=1 17115rm -f conf$$subs.awk 17116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17117_ACAWK 17118cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17119 for (key in S) S_is_set[key] = 1 17120 FS = "" 17121 17122} 17123{ 17124 line = $ 0 17125 nfields = split(line, field, "@") 17126 substed = 0 17127 len = length(field[1]) 17128 for (i = 2; i < nfields; i++) { 17129 key = field[i] 17130 keylen = length(key) 17131 if (S_is_set[key]) { 17132 value = S[key] 17133 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17134 len += length(value) + length(field[++i]) 17135 substed = 1 17136 } else 17137 len += 1 + keylen 17138 } 17139 17140 print line 17141} 17142 17143_ACAWK 17144_ACEOF 17145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17146if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17147 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17148else 17149 cat 17150fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17151 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17152_ACEOF 17153 17154# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17155# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17156# trailing colons and then remove the whole line if VPATH becomes empty 17157# (actually we leave an empty line to preserve line numbers). 17158if test "x$srcdir" = x.; then 17159 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17160h 17161s/// 17162s/^/:/ 17163s/[ ]*$/:/ 17164s/:\$(srcdir):/:/g 17165s/:\${srcdir}:/:/g 17166s/:@srcdir@:/:/g 17167s/^:*// 17168s/:*$// 17169x 17170s/\(=[ ]*\).*/\1/ 17171G 17172s/\n// 17173s/^[^=]*=[ ]*$// 17174}' 17175fi 17176 17177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17178fi # test -n "$CONFIG_FILES" 17179 17180# Set up the scripts for CONFIG_HEADERS section. 17181# No need to generate them if there are no CONFIG_HEADERS. 17182# This happens for instance with `./config.status Makefile'. 17183if test -n "$CONFIG_HEADERS"; then 17184cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17185BEGIN { 17186_ACEOF 17187 17188# Transform confdefs.h into an awk script `defines.awk', embedded as 17189# here-document in config.status, that substitutes the proper values into 17190# config.h.in to produce config.h. 17191 17192# Create a delimiter string that does not exist in confdefs.h, to ease 17193# handling of long lines. 17194ac_delim='%!_!# ' 17195for ac_last_try in false false :; do 17196 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17197 if test -z "$ac_tt"; then 17198 break 17199 elif $ac_last_try; then 17200 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17201 else 17202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17203 fi 17204done 17205 17206# For the awk script, D is an array of macro values keyed by name, 17207# likewise P contains macro parameters if any. Preserve backslash 17208# newline sequences. 17209 17210ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17211sed -n ' 17212s/.\{148\}/&'"$ac_delim"'/g 17213t rset 17214:rset 17215s/^[ ]*#[ ]*define[ ][ ]*/ / 17216t def 17217d 17218:def 17219s/\\$// 17220t bsnl 17221s/["\\]/\\&/g 17222s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17223D["\1"]=" \3"/p 17224s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17225d 17226:bsnl 17227s/["\\]/\\&/g 17228s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17229D["\1"]=" \3\\\\\\n"\\/p 17230t cont 17231s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17232t cont 17233d 17234:cont 17235n 17236s/.\{148\}/&'"$ac_delim"'/g 17237t clear 17238:clear 17239s/\\$// 17240t bsnlc 17241s/["\\]/\\&/g; s/^/"/; s/$/"/p 17242d 17243:bsnlc 17244s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17245b cont 17246' <confdefs.h | sed ' 17247s/'"$ac_delim"'/"\\\ 17248"/g' >>$CONFIG_STATUS || ac_write_fail=1 17249 17250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17251 for (key in D) D_is_set[key] = 1 17252 FS = "" 17253} 17254/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17255 line = \$ 0 17256 split(line, arg, " ") 17257 if (arg[1] == "#") { 17258 defundef = arg[2] 17259 mac1 = arg[3] 17260 } else { 17261 defundef = substr(arg[1], 2) 17262 mac1 = arg[2] 17263 } 17264 split(mac1, mac2, "(") #) 17265 macro = mac2[1] 17266 prefix = substr(line, 1, index(line, defundef) - 1) 17267 if (D_is_set[macro]) { 17268 # Preserve the white space surrounding the "#". 17269 print prefix "define", macro P[macro] D[macro] 17270 next 17271 } else { 17272 # Replace #undef with comments. This is necessary, for example, 17273 # in the case of _POSIX_SOURCE, which is predefined and required 17274 # on some systems where configure will not decide to define it. 17275 if (defundef == "undef") { 17276 print "/*", prefix defundef, macro, "*/" 17277 next 17278 } 17279 } 17280} 17281{ print } 17282_ACAWK 17283_ACEOF 17284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17285 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17286fi # test -n "$CONFIG_HEADERS" 17287 17288 17289eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17290shift 17291for ac_tag 17292do 17293 case $ac_tag in 17294 :[FHLC]) ac_mode=$ac_tag; continue;; 17295 esac 17296 case $ac_mode$ac_tag in 17297 :[FHL]*:*);; 17298 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17299 :[FH]-) ac_tag=-:-;; 17300 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17301 esac 17302 ac_save_IFS=$IFS 17303 IFS=: 17304 set x $ac_tag 17305 IFS=$ac_save_IFS 17306 shift 17307 ac_file=$1 17308 shift 17309 17310 case $ac_mode in 17311 :L) ac_source=$1;; 17312 :[FH]) 17313 ac_file_inputs= 17314 for ac_f 17315 do 17316 case $ac_f in 17317 -) ac_f="$ac_tmp/stdin";; 17318 *) # Look for the file first in the build tree, then in the source tree 17319 # (if the path is not absolute). The absolute path cannot be DOS-style, 17320 # because $ac_f cannot contain `:'. 17321 test -f "$ac_f" || 17322 case $ac_f in 17323 [\\/$]*) false;; 17324 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17325 esac || 17326 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17327 esac 17328 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17329 as_fn_append ac_file_inputs " '$ac_f'" 17330 done 17331 17332 # Let's still pretend it is `configure' which instantiates (i.e., don't 17333 # use $as_me), people would be surprised to read: 17334 # /* config.h. Generated by config.status. */ 17335 configure_input='Generated from '` 17336 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17337 `' by configure.' 17338 if test x"$ac_file" != x-; then 17339 configure_input="$ac_file. $configure_input" 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17341$as_echo "$as_me: creating $ac_file" >&6;} 17342 fi 17343 # Neutralize special characters interpreted by sed in replacement strings. 17344 case $configure_input in #( 17345 *\&* | *\|* | *\\* ) 17346 ac_sed_conf_input=`$as_echo "$configure_input" | 17347 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17348 *) ac_sed_conf_input=$configure_input;; 17349 esac 17350 17351 case $ac_tag in 17352 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17354 esac 17355 ;; 17356 esac 17357 17358 ac_dir=`$as_dirname -- "$ac_file" || 17359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17360 X"$ac_file" : 'X\(//\)[^/]' \| \ 17361 X"$ac_file" : 'X\(//\)$' \| \ 17362 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17363$as_echo X"$ac_file" | 17364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17365 s//\1/ 17366 q 17367 } 17368 /^X\(\/\/\)[^/].*/{ 17369 s//\1/ 17370 q 17371 } 17372 /^X\(\/\/\)$/{ 17373 s//\1/ 17374 q 17375 } 17376 /^X\(\/\).*/{ 17377 s//\1/ 17378 q 17379 } 17380 s/.*/./; q'` 17381 as_dir="$ac_dir"; as_fn_mkdir_p 17382 ac_builddir=. 17383 17384case "$ac_dir" in 17385.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17386*) 17387 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17388 # A ".." for each directory in $ac_dir_suffix. 17389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17390 case $ac_top_builddir_sub in 17391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17393 esac ;; 17394esac 17395ac_abs_top_builddir=$ac_pwd 17396ac_abs_builddir=$ac_pwd$ac_dir_suffix 17397# for backward compatibility: 17398ac_top_builddir=$ac_top_build_prefix 17399 17400case $srcdir in 17401 .) # We are building in place. 17402 ac_srcdir=. 17403 ac_top_srcdir=$ac_top_builddir_sub 17404 ac_abs_top_srcdir=$ac_pwd ;; 17405 [\\/]* | ?:[\\/]* ) # Absolute name. 17406 ac_srcdir=$srcdir$ac_dir_suffix; 17407 ac_top_srcdir=$srcdir 17408 ac_abs_top_srcdir=$srcdir ;; 17409 *) # Relative name. 17410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17411 ac_top_srcdir=$ac_top_build_prefix$srcdir 17412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17413esac 17414ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17415 17416 17417 case $ac_mode in 17418 :F) 17419 # 17420 # CONFIG_FILE 17421 # 17422 17423 case $INSTALL in 17424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17426 esac 17427 ac_MKDIR_P=$MKDIR_P 17428 case $MKDIR_P in 17429 [\\/$]* | ?:[\\/]* ) ;; 17430 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17431 esac 17432_ACEOF 17433 17434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17435# If the template does not know about datarootdir, expand it. 17436# FIXME: This hack should be removed a few years after 2.60. 17437ac_datarootdir_hack=; ac_datarootdir_seen= 17438ac_sed_dataroot=' 17439/datarootdir/ { 17440 p 17441 q 17442} 17443/@datadir@/p 17444/@docdir@/p 17445/@infodir@/p 17446/@localedir@/p 17447/@mandir@/p' 17448case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17449*datarootdir*) ac_datarootdir_seen=yes;; 17450*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17452$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17453_ACEOF 17454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17455 ac_datarootdir_hack=' 17456 s&@datadir@&$datadir&g 17457 s&@docdir@&$docdir&g 17458 s&@infodir@&$infodir&g 17459 s&@localedir@&$localedir&g 17460 s&@mandir@&$mandir&g 17461 s&\\\${datarootdir}&$datarootdir&g' ;; 17462esac 17463_ACEOF 17464 17465# Neutralize VPATH when `$srcdir' = `.'. 17466# Shell code in configure.ac might set extrasub. 17467# FIXME: do we really want to maintain this feature? 17468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17469ac_sed_extra="$ac_vpsub 17470$extrasub 17471_ACEOF 17472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17473:t 17474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17475s|@configure_input@|$ac_sed_conf_input|;t t 17476s&@top_builddir@&$ac_top_builddir_sub&;t t 17477s&@top_build_prefix@&$ac_top_build_prefix&;t t 17478s&@srcdir@&$ac_srcdir&;t t 17479s&@abs_srcdir@&$ac_abs_srcdir&;t t 17480s&@top_srcdir@&$ac_top_srcdir&;t t 17481s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17482s&@builddir@&$ac_builddir&;t t 17483s&@abs_builddir@&$ac_abs_builddir&;t t 17484s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17485s&@INSTALL@&$ac_INSTALL&;t t 17486s&@MKDIR_P@&$ac_MKDIR_P&;t t 17487$ac_datarootdir_hack 17488" 17489eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17491 17492test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17495 "$ac_tmp/out"`; test -z "$ac_out"; } && 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17497which seems to be undefined. Please make sure it is defined" >&5 17498$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17499which seems to be undefined. Please make sure it is defined" >&2;} 17500 17501 rm -f "$ac_tmp/stdin" 17502 case $ac_file in 17503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17505 esac \ 17506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17507 ;; 17508 :H) 17509 # 17510 # CONFIG_HEADER 17511 # 17512 if test x"$ac_file" != x-; then 17513 { 17514 $as_echo "/* $configure_input */" \ 17515 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17516 } >"$ac_tmp/config.h" \ 17517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17518 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17520$as_echo "$as_me: $ac_file is unchanged" >&6;} 17521 else 17522 rm -f "$ac_file" 17523 mv "$ac_tmp/config.h" "$ac_file" \ 17524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17525 fi 17526 else 17527 $as_echo "/* $configure_input */" \ 17528 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17529 || as_fn_error $? "could not create -" "$LINENO" 5 17530 fi 17531# Compute "$ac_file"'s index in $config_headers. 17532_am_arg="$ac_file" 17533_am_stamp_count=1 17534for _am_header in $config_headers :; do 17535 case $_am_header in 17536 $_am_arg | $_am_arg:* ) 17537 break ;; 17538 * ) 17539 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17540 esac 17541done 17542echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17543$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17544 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17545 X"$_am_arg" : 'X\(//\)$' \| \ 17546 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17547$as_echo X"$_am_arg" | 17548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17549 s//\1/ 17550 q 17551 } 17552 /^X\(\/\/\)[^/].*/{ 17553 s//\1/ 17554 q 17555 } 17556 /^X\(\/\/\)$/{ 17557 s//\1/ 17558 q 17559 } 17560 /^X\(\/\).*/{ 17561 s//\1/ 17562 q 17563 } 17564 s/.*/./; q'`/stamp-h$_am_stamp_count 17565 ;; 17566 17567 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17568$as_echo "$as_me: executing $ac_file commands" >&6;} 17569 ;; 17570 esac 17571 17572 17573 case $ac_file$ac_mode in 17574 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17575 # Older Autoconf quotes --file arguments for eval, but not when files 17576 # are listed without --file. Let's play safe and only enable the eval 17577 # if we detect the quoting. 17578 case $CONFIG_FILES in 17579 *\'*) eval set x "$CONFIG_FILES" ;; 17580 *) set x $CONFIG_FILES ;; 17581 esac 17582 shift 17583 for mf 17584 do 17585 # Strip MF so we end up with the name of the file. 17586 mf=`echo "$mf" | sed -e 's/:.*$//'` 17587 # Check whether this is an Automake generated Makefile or not. 17588 # We used to match only the files named 'Makefile.in', but 17589 # some people rename them; so instead we look at the file content. 17590 # Grep'ing the first line is not enough: some people post-process 17591 # each Makefile.in and add a new line on top of each file to say so. 17592 # Grep'ing the whole file is not good either: AIX grep has a line 17593 # limit of 2048, but all sed's we know have understand at least 4000. 17594 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17595 dirpart=`$as_dirname -- "$mf" || 17596$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17597 X"$mf" : 'X\(//\)[^/]' \| \ 17598 X"$mf" : 'X\(//\)$' \| \ 17599 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17600$as_echo X"$mf" | 17601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17602 s//\1/ 17603 q 17604 } 17605 /^X\(\/\/\)[^/].*/{ 17606 s//\1/ 17607 q 17608 } 17609 /^X\(\/\/\)$/{ 17610 s//\1/ 17611 q 17612 } 17613 /^X\(\/\).*/{ 17614 s//\1/ 17615 q 17616 } 17617 s/.*/./; q'` 17618 else 17619 continue 17620 fi 17621 # Extract the definition of DEPDIR, am__include, and am__quote 17622 # from the Makefile without running 'make'. 17623 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17624 test -z "$DEPDIR" && continue 17625 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17626 test -z "$am__include" && continue 17627 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17628 # Find all dependency output files, they are included files with 17629 # $(DEPDIR) in their names. We invoke sed twice because it is the 17630 # simplest approach to changing $(DEPDIR) to its actual value in the 17631 # expansion. 17632 for file in `sed -n " 17633 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17634 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17635 # Make sure the directory exists. 17636 test -f "$dirpart/$file" && continue 17637 fdir=`$as_dirname -- "$file" || 17638$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17639 X"$file" : 'X\(//\)[^/]' \| \ 17640 X"$file" : 'X\(//\)$' \| \ 17641 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17642$as_echo X"$file" | 17643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17644 s//\1/ 17645 q 17646 } 17647 /^X\(\/\/\)[^/].*/{ 17648 s//\1/ 17649 q 17650 } 17651 /^X\(\/\/\)$/{ 17652 s//\1/ 17653 q 17654 } 17655 /^X\(\/\).*/{ 17656 s//\1/ 17657 q 17658 } 17659 s/.*/./; q'` 17660 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17661 # echo "creating $dirpart/$file" 17662 echo '# dummy' > "$dirpart/$file" 17663 done 17664 done 17665} 17666 ;; 17667 "libtool":C) 17668 17669 # See if we are running on zsh, and set the options that allow our 17670 # commands through without removal of \ escapes. 17671 if test -n "${ZSH_VERSION+set}"; then 17672 setopt NO_GLOB_SUBST 17673 fi 17674 17675 cfgfile=${ofile}T 17676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17677 $RM "$cfgfile" 17678 17679 cat <<_LT_EOF >> "$cfgfile" 17680#! $SHELL 17681# Generated automatically by $as_me ($PACKAGE) $VERSION 17682# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17683 17684# Provide generalized library-building support services. 17685# Written by Gordon Matzigkeit, 1996 17686 17687# Copyright (C) 2014 Free Software Foundation, Inc. 17688# This is free software; see the source for copying conditions. There is NO 17689# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17690 17691# GNU Libtool is free software; you can redistribute it and/or modify 17692# it under the terms of the GNU General Public License as published by 17693# the Free Software Foundation; either version 2 of of the License, or 17694# (at your option) any later version. 17695# 17696# As a special exception to the GNU General Public License, if you 17697# distribute this file as part of a program or library that is built 17698# using GNU Libtool, you may include this file under the same 17699# distribution terms that you use for the rest of that program. 17700# 17701# GNU Libtool is distributed in the hope that it will be useful, but 17702# WITHOUT ANY WARRANTY; without even the implied warranty of 17703# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17704# GNU General Public License for more details. 17705# 17706# You should have received a copy of the GNU General Public License 17707# along with this program. If not, see <http://www.gnu.org/licenses/>. 17708 17709 17710# The names of the tagged configurations supported by this script. 17711available_tags='CXX ' 17712 17713# Configured defaults for sys_lib_dlsearch_path munging. 17714: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17715 17716# ### BEGIN LIBTOOL CONFIG 17717 17718# Which release of libtool.m4 was used? 17719macro_version=$macro_version 17720macro_revision=$macro_revision 17721 17722# Whether or not to build shared libraries. 17723build_libtool_libs=$enable_shared 17724 17725# Whether or not to build static libraries. 17726build_old_libs=$enable_static 17727 17728# What type of objects to build. 17729pic_mode=$pic_mode 17730 17731# Whether or not to optimize for fast installation. 17732fast_install=$enable_fast_install 17733 17734# Shared archive member basename,for filename based shared library versioning on AIX. 17735shared_archive_member_spec=$shared_archive_member_spec 17736 17737# Shell to use when invoking shell scripts. 17738SHELL=$lt_SHELL 17739 17740# An echo program that protects backslashes. 17741ECHO=$lt_ECHO 17742 17743# The PATH separator for the build system. 17744PATH_SEPARATOR=$lt_PATH_SEPARATOR 17745 17746# The host system. 17747host_alias=$host_alias 17748host=$host 17749host_os=$host_os 17750 17751# The build system. 17752build_alias=$build_alias 17753build=$build 17754build_os=$build_os 17755 17756# A sed program that does not truncate output. 17757SED=$lt_SED 17758 17759# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17760Xsed="\$SED -e 1s/^X//" 17761 17762# A grep program that handles long lines. 17763GREP=$lt_GREP 17764 17765# An ERE matcher. 17766EGREP=$lt_EGREP 17767 17768# A literal string matcher. 17769FGREP=$lt_FGREP 17770 17771# A BSD- or MS-compatible name lister. 17772NM=$lt_NM 17773 17774# Whether we need soft or hard links. 17775LN_S=$lt_LN_S 17776 17777# What is the maximum length of a command? 17778max_cmd_len=$max_cmd_len 17779 17780# Object file suffix (normally "o"). 17781objext=$ac_objext 17782 17783# Executable file suffix (normally ""). 17784exeext=$exeext 17785 17786# whether the shell understands "unset". 17787lt_unset=$lt_unset 17788 17789# turn spaces into newlines. 17790SP2NL=$lt_lt_SP2NL 17791 17792# turn newlines into spaces. 17793NL2SP=$lt_lt_NL2SP 17794 17795# convert \$build file names to \$host format. 17796to_host_file_cmd=$lt_cv_to_host_file_cmd 17797 17798# convert \$build files to toolchain format. 17799to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17800 17801# An object symbol dumper. 17802OBJDUMP=$lt_OBJDUMP 17803 17804# Method to check whether dependent libraries are shared objects. 17805deplibs_check_method=$lt_deplibs_check_method 17806 17807# Command to use when deplibs_check_method = "file_magic". 17808file_magic_cmd=$lt_file_magic_cmd 17809 17810# How to find potential files when deplibs_check_method = "file_magic". 17811file_magic_glob=$lt_file_magic_glob 17812 17813# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17814want_nocaseglob=$lt_want_nocaseglob 17815 17816# DLL creation program. 17817DLLTOOL=$lt_DLLTOOL 17818 17819# Command to associate shared and link libraries. 17820sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17821 17822# The archiver. 17823AR=$lt_AR 17824 17825# Flags to create an archive. 17826AR_FLAGS=$lt_AR_FLAGS 17827 17828# How to feed a file listing to the archiver. 17829archiver_list_spec=$lt_archiver_list_spec 17830 17831# A symbol stripping program. 17832STRIP=$lt_STRIP 17833 17834# Commands used to install an old-style archive. 17835RANLIB=$lt_RANLIB 17836old_postinstall_cmds=$lt_old_postinstall_cmds 17837old_postuninstall_cmds=$lt_old_postuninstall_cmds 17838 17839# Whether to use a lock for old archive extraction. 17840lock_old_archive_extraction=$lock_old_archive_extraction 17841 17842# A C compiler. 17843LTCC=$lt_CC 17844 17845# LTCC compiler flags. 17846LTCFLAGS=$lt_CFLAGS 17847 17848# Take the output of nm and produce a listing of raw symbols and C names. 17849global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17850 17851# Transform the output of nm in a proper C declaration. 17852global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17853 17854# Transform the output of nm into a list of symbols to manually relocate. 17855global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17856 17857# Transform the output of nm in a C name address pair. 17858global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17859 17860# Transform the output of nm in a C name address pair when lib prefix is needed. 17861global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17862 17863# The name lister interface. 17864nm_interface=$lt_lt_cv_nm_interface 17865 17866# Specify filename containing input files for \$NM. 17867nm_file_list_spec=$lt_nm_file_list_spec 17868 17869# The root where to search for dependent libraries,and where our libraries should be installed. 17870lt_sysroot=$lt_sysroot 17871 17872# Command to truncate a binary pipe. 17873lt_truncate_bin=$lt_lt_cv_truncate_bin 17874 17875# The name of the directory that contains temporary libtool files. 17876objdir=$objdir 17877 17878# Used to examine libraries when file_magic_cmd begins with "file". 17879MAGIC_CMD=$MAGIC_CMD 17880 17881# Must we lock files when doing compilation? 17882need_locks=$lt_need_locks 17883 17884# Manifest tool. 17885MANIFEST_TOOL=$lt_MANIFEST_TOOL 17886 17887# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17888DSYMUTIL=$lt_DSYMUTIL 17889 17890# Tool to change global to local symbols on Mac OS X. 17891NMEDIT=$lt_NMEDIT 17892 17893# Tool to manipulate fat objects and archives on Mac OS X. 17894LIPO=$lt_LIPO 17895 17896# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17897OTOOL=$lt_OTOOL 17898 17899# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17900OTOOL64=$lt_OTOOL64 17901 17902# Old archive suffix (normally "a"). 17903libext=$libext 17904 17905# Shared library suffix (normally ".so"). 17906shrext_cmds=$lt_shrext_cmds 17907 17908# The commands to extract the exported symbol list from a shared archive. 17909extract_expsyms_cmds=$lt_extract_expsyms_cmds 17910 17911# Variables whose values should be saved in libtool wrapper scripts and 17912# restored at link time. 17913variables_saved_for_relink=$lt_variables_saved_for_relink 17914 17915# Do we need the "lib" prefix for modules? 17916need_lib_prefix=$need_lib_prefix 17917 17918# Do we need a version for libraries? 17919need_version=$need_version 17920 17921# Library versioning type. 17922version_type=$version_type 17923 17924# Shared library runtime path variable. 17925runpath_var=$runpath_var 17926 17927# Shared library path variable. 17928shlibpath_var=$shlibpath_var 17929 17930# Is shlibpath searched before the hard-coded library search path? 17931shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17932 17933# Format of library name prefix. 17934libname_spec=$lt_libname_spec 17935 17936# List of archive names. First name is the real one, the rest are links. 17937# The last name is the one that the linker finds with -lNAME 17938library_names_spec=$lt_library_names_spec 17939 17940# The coded name of the library, if different from the real name. 17941soname_spec=$lt_soname_spec 17942 17943# Permission mode override for installation of shared libraries. 17944install_override_mode=$lt_install_override_mode 17945 17946# Command to use after installation of a shared archive. 17947postinstall_cmds=$lt_postinstall_cmds 17948 17949# Command to use after uninstallation of a shared archive. 17950postuninstall_cmds=$lt_postuninstall_cmds 17951 17952# Commands used to finish a libtool library installation in a directory. 17953finish_cmds=$lt_finish_cmds 17954 17955# As "finish_cmds", except a single script fragment to be evaled but 17956# not shown. 17957finish_eval=$lt_finish_eval 17958 17959# Whether we should hardcode library paths into libraries. 17960hardcode_into_libs=$hardcode_into_libs 17961 17962# Compile-time system search path for libraries. 17963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17964 17965# Detected run-time system search path for libraries. 17966sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17967 17968# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17969configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17970 17971# Whether dlopen is supported. 17972dlopen_support=$enable_dlopen 17973 17974# Whether dlopen of programs is supported. 17975dlopen_self=$enable_dlopen_self 17976 17977# Whether dlopen of statically linked programs is supported. 17978dlopen_self_static=$enable_dlopen_self_static 17979 17980# Commands to strip libraries. 17981old_striplib=$lt_old_striplib 17982striplib=$lt_striplib 17983 17984 17985# The linker used to build libraries. 17986LD=$lt_LD 17987 17988# How to create reloadable object files. 17989reload_flag=$lt_reload_flag 17990reload_cmds=$lt_reload_cmds 17991 17992# Commands used to build an old-style archive. 17993old_archive_cmds=$lt_old_archive_cmds 17994 17995# A language specific compiler. 17996CC=$lt_compiler 17997 17998# Is the compiler the GNU compiler? 17999with_gcc=$GCC 18000 18001# Compiler flag to turn off builtin functions. 18002no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18003 18004# Additional compiler flags for building library objects. 18005pic_flag=$lt_lt_prog_compiler_pic 18006 18007# How to pass a linker flag through the compiler. 18008wl=$lt_lt_prog_compiler_wl 18009 18010# Compiler flag to prevent dynamic linking. 18011link_static_flag=$lt_lt_prog_compiler_static 18012 18013# Does compiler simultaneously support -c and -o options? 18014compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18015 18016# Whether or not to add -lc for building shared libraries. 18017build_libtool_need_lc=$archive_cmds_need_lc 18018 18019# Whether or not to disallow shared libs when runtime libs are static. 18020allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18021 18022# Compiler flag to allow reflexive dlopens. 18023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18024 18025# Compiler flag to generate shared objects directly from archives. 18026whole_archive_flag_spec=$lt_whole_archive_flag_spec 18027 18028# Whether the compiler copes with passing no objects directly. 18029compiler_needs_object=$lt_compiler_needs_object 18030 18031# Create an old-style archive from a shared archive. 18032old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18033 18034# Create a temporary old-style archive to link instead of a shared archive. 18035old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18036 18037# Commands used to build a shared archive. 18038archive_cmds=$lt_archive_cmds 18039archive_expsym_cmds=$lt_archive_expsym_cmds 18040 18041# Commands used to build a loadable module if different from building 18042# a shared archive. 18043module_cmds=$lt_module_cmds 18044module_expsym_cmds=$lt_module_expsym_cmds 18045 18046# Whether we are building with GNU ld or not. 18047with_gnu_ld=$lt_with_gnu_ld 18048 18049# Flag that allows shared libraries with undefined symbols to be built. 18050allow_undefined_flag=$lt_allow_undefined_flag 18051 18052# Flag that enforces no undefined symbols. 18053no_undefined_flag=$lt_no_undefined_flag 18054 18055# Flag to hardcode \$libdir into a binary during linking. 18056# This must work even if \$libdir does not exist 18057hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18058 18059# Whether we need a single "-rpath" flag with a separated argument. 18060hardcode_libdir_separator=$lt_hardcode_libdir_separator 18061 18062# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18063# DIR into the resulting binary. 18064hardcode_direct=$hardcode_direct 18065 18066# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18067# DIR into the resulting binary and the resulting library dependency is 18068# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18069# library is relocated. 18070hardcode_direct_absolute=$hardcode_direct_absolute 18071 18072# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18073# into the resulting binary. 18074hardcode_minus_L=$hardcode_minus_L 18075 18076# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18077# into the resulting binary. 18078hardcode_shlibpath_var=$hardcode_shlibpath_var 18079 18080# Set to "yes" if building a shared library automatically hardcodes DIR 18081# into the library and all subsequent libraries and executables linked 18082# against it. 18083hardcode_automatic=$hardcode_automatic 18084 18085# Set to yes if linker adds runtime paths of dependent libraries 18086# to runtime path list. 18087inherit_rpath=$inherit_rpath 18088 18089# Whether libtool must link a program against all its dependency libraries. 18090link_all_deplibs=$link_all_deplibs 18091 18092# Set to "yes" if exported symbols are required. 18093always_export_symbols=$always_export_symbols 18094 18095# The commands to list exported symbols. 18096export_symbols_cmds=$lt_export_symbols_cmds 18097 18098# Symbols that should not be listed in the preloaded symbols. 18099exclude_expsyms=$lt_exclude_expsyms 18100 18101# Symbols that must always be exported. 18102include_expsyms=$lt_include_expsyms 18103 18104# Commands necessary for linking programs (against libraries) with templates. 18105prelink_cmds=$lt_prelink_cmds 18106 18107# Commands necessary for finishing linking programs. 18108postlink_cmds=$lt_postlink_cmds 18109 18110# Specify filename containing input files. 18111file_list_spec=$lt_file_list_spec 18112 18113# How to hardcode a shared library path into an executable. 18114hardcode_action=$hardcode_action 18115 18116# The directories searched by this compiler when creating a shared library. 18117compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18118 18119# Dependencies to place before and after the objects being linked to 18120# create a shared library. 18121predep_objects=$lt_predep_objects 18122postdep_objects=$lt_postdep_objects 18123predeps=$lt_predeps 18124postdeps=$lt_postdeps 18125 18126# The library search path used internally by the compiler when linking 18127# a shared library. 18128compiler_lib_search_path=$lt_compiler_lib_search_path 18129 18130# ### END LIBTOOL CONFIG 18131 18132_LT_EOF 18133 18134 cat <<'_LT_EOF' >> "$cfgfile" 18135 18136# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18137 18138# func_munge_path_list VARIABLE PATH 18139# ----------------------------------- 18140# VARIABLE is name of variable containing _space_ separated list of 18141# directories to be munged by the contents of PATH, which is string 18142# having a format: 18143# "DIR[:DIR]:" 18144# string "DIR[ DIR]" will be prepended to VARIABLE 18145# ":DIR[:DIR]" 18146# string "DIR[ DIR]" will be appended to VARIABLE 18147# "DIRP[:DIRP]::[DIRA:]DIRA" 18148# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18149# "DIRA[ DIRA]" will be appended to VARIABLE 18150# "DIR[:DIR]" 18151# VARIABLE will be replaced by "DIR[ DIR]" 18152func_munge_path_list () 18153{ 18154 case x@S|@2 in 18155 x) 18156 ;; 18157 *:) 18158 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 18159 ;; 18160 x:*) 18161 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 18162 ;; 18163 *::*) 18164 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18165 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 18166 ;; 18167 *) 18168 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 18169 ;; 18170 esac 18171} 18172 18173 18174# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18175func_cc_basename () 18176{ 18177 for cc_temp in @S|@*""; do 18178 case $cc_temp in 18179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18181 \-*) ;; 18182 *) break;; 18183 esac 18184 done 18185 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18186} 18187 18188 18189# ### END FUNCTIONS SHARED WITH CONFIGURE 18190 18191_LT_EOF 18192 18193 case $host_os in 18194 aix3*) 18195 cat <<\_LT_EOF >> "$cfgfile" 18196# AIX sometimes has problems with the GCC collect2 program. For some 18197# reason, if we set the COLLECT_NAMES environment variable, the problems 18198# vanish in a puff of smoke. 18199if test set != "${COLLECT_NAMES+set}"; then 18200 COLLECT_NAMES= 18201 export COLLECT_NAMES 18202fi 18203_LT_EOF 18204 ;; 18205 esac 18206 18207 18208ltmain=$ac_aux_dir/ltmain.sh 18209 18210 18211 # We use sed instead of cat because bash on DJGPP gets confused if 18212 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18213 # text mode, it properly converts lines to CR/LF. This bash problem 18214 # is reportedly fixed, but why not run on old versions too? 18215 sed '$q' "$ltmain" >> "$cfgfile" \ 18216 || (rm -f "$cfgfile"; exit 1) 18217 18218 mv -f "$cfgfile" "$ofile" || 18219 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18220 chmod +x "$ofile" 18221 18222 18223 cat <<_LT_EOF >> "$ofile" 18224 18225# ### BEGIN LIBTOOL TAG CONFIG: CXX 18226 18227# The linker used to build libraries. 18228LD=$lt_LD_CXX 18229 18230# How to create reloadable object files. 18231reload_flag=$lt_reload_flag_CXX 18232reload_cmds=$lt_reload_cmds_CXX 18233 18234# Commands used to build an old-style archive. 18235old_archive_cmds=$lt_old_archive_cmds_CXX 18236 18237# A language specific compiler. 18238CC=$lt_compiler_CXX 18239 18240# Is the compiler the GNU compiler? 18241with_gcc=$GCC_CXX 18242 18243# Compiler flag to turn off builtin functions. 18244no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18245 18246# Additional compiler flags for building library objects. 18247pic_flag=$lt_lt_prog_compiler_pic_CXX 18248 18249# How to pass a linker flag through the compiler. 18250wl=$lt_lt_prog_compiler_wl_CXX 18251 18252# Compiler flag to prevent dynamic linking. 18253link_static_flag=$lt_lt_prog_compiler_static_CXX 18254 18255# Does compiler simultaneously support -c and -o options? 18256compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18257 18258# Whether or not to add -lc for building shared libraries. 18259build_libtool_need_lc=$archive_cmds_need_lc_CXX 18260 18261# Whether or not to disallow shared libs when runtime libs are static. 18262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18263 18264# Compiler flag to allow reflexive dlopens. 18265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18266 18267# Compiler flag to generate shared objects directly from archives. 18268whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18269 18270# Whether the compiler copes with passing no objects directly. 18271compiler_needs_object=$lt_compiler_needs_object_CXX 18272 18273# Create an old-style archive from a shared archive. 18274old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18275 18276# Create a temporary old-style archive to link instead of a shared archive. 18277old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18278 18279# Commands used to build a shared archive. 18280archive_cmds=$lt_archive_cmds_CXX 18281archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18282 18283# Commands used to build a loadable module if different from building 18284# a shared archive. 18285module_cmds=$lt_module_cmds_CXX 18286module_expsym_cmds=$lt_module_expsym_cmds_CXX 18287 18288# Whether we are building with GNU ld or not. 18289with_gnu_ld=$lt_with_gnu_ld_CXX 18290 18291# Flag that allows shared libraries with undefined symbols to be built. 18292allow_undefined_flag=$lt_allow_undefined_flag_CXX 18293 18294# Flag that enforces no undefined symbols. 18295no_undefined_flag=$lt_no_undefined_flag_CXX 18296 18297# Flag to hardcode \$libdir into a binary during linking. 18298# This must work even if \$libdir does not exist 18299hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18300 18301# Whether we need a single "-rpath" flag with a separated argument. 18302hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18303 18304# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18305# DIR into the resulting binary. 18306hardcode_direct=$hardcode_direct_CXX 18307 18308# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18309# DIR into the resulting binary and the resulting library dependency is 18310# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18311# library is relocated. 18312hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18313 18314# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18315# into the resulting binary. 18316hardcode_minus_L=$hardcode_minus_L_CXX 18317 18318# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18319# into the resulting binary. 18320hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18321 18322# Set to "yes" if building a shared library automatically hardcodes DIR 18323# into the library and all subsequent libraries and executables linked 18324# against it. 18325hardcode_automatic=$hardcode_automatic_CXX 18326 18327# Set to yes if linker adds runtime paths of dependent libraries 18328# to runtime path list. 18329inherit_rpath=$inherit_rpath_CXX 18330 18331# Whether libtool must link a program against all its dependency libraries. 18332link_all_deplibs=$link_all_deplibs_CXX 18333 18334# Set to "yes" if exported symbols are required. 18335always_export_symbols=$always_export_symbols_CXX 18336 18337# The commands to list exported symbols. 18338export_symbols_cmds=$lt_export_symbols_cmds_CXX 18339 18340# Symbols that should not be listed in the preloaded symbols. 18341exclude_expsyms=$lt_exclude_expsyms_CXX 18342 18343# Symbols that must always be exported. 18344include_expsyms=$lt_include_expsyms_CXX 18345 18346# Commands necessary for linking programs (against libraries) with templates. 18347prelink_cmds=$lt_prelink_cmds_CXX 18348 18349# Commands necessary for finishing linking programs. 18350postlink_cmds=$lt_postlink_cmds_CXX 18351 18352# Specify filename containing input files. 18353file_list_spec=$lt_file_list_spec_CXX 18354 18355# How to hardcode a shared library path into an executable. 18356hardcode_action=$hardcode_action_CXX 18357 18358# The directories searched by this compiler when creating a shared library. 18359compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18360 18361# Dependencies to place before and after the objects being linked to 18362# create a shared library. 18363predep_objects=$lt_predep_objects_CXX 18364postdep_objects=$lt_postdep_objects_CXX 18365predeps=$lt_predeps_CXX 18366postdeps=$lt_postdeps_CXX 18367 18368# The library search path used internally by the compiler when linking 18369# a shared library. 18370compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18371 18372# ### END LIBTOOL TAG CONFIG: CXX 18373_LT_EOF 18374 18375 ;; 18376 18377 esac 18378done # for ac_tag 18379 18380 18381as_fn_exit 0 18382_ACEOF 18383ac_clean_files=$ac_clean_files_save 18384 18385test $ac_write_fail = 0 || 18386 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18387 18388 18389# configure is writing to config.log, and then calls config.status. 18390# config.status does its own redirection, appending to config.log. 18391# Unfortunately, on DOS this fails, as config.log is still kept open 18392# by configure, so config.status won't be able to write to it; its 18393# output is simply discarded. So we exec the FD to /dev/null, 18394# effectively closing config.log, so it can be properly (re)opened and 18395# appended to by config.status. When coming back to configure, we 18396# need to make the FD available again. 18397if test "$no_create" != yes; then 18398 ac_cs_success=: 18399 ac_config_status_args= 18400 test "$silent" = yes && 18401 ac_config_status_args="$ac_config_status_args --quiet" 18402 exec 5>/dev/null 18403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18404 exec 5>>config.log 18405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18406 # would make configure fail if this is the last instruction. 18407 $ac_cs_success || as_fn_exit 1 18408fi 18409if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18411$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18412fi 18413 18414