1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for expat 2.2.6. 4 # 5 # Report bugs to <expat-bugs (at] libexpat.org>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 278 $0: expat-bugs (at] libexpat.org about your system, including 279 $0: any error possibly output before this message. Then 280 $0: install a modern shell, or manually run the script 281 $0: under such a shell if you do have one." 282 fi 283 exit 1 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_fn_set_status () 309 { 310 return $1 311 } # as_fn_set_status 312 313 # as_fn_exit STATUS 314 # ----------------- 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316 as_fn_exit () 317 { 318 set +e 319 as_fn_set_status $1 320 exit $1 321 } # as_fn_exit 322 323 # as_fn_mkdir_p 324 # ------------- 325 # Create "$as_dir" as a directory, including parents if necessary. 326 as_fn_mkdir_p () 327 { 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 378 # as_fn_append VAR VALUE 379 # ---------------------- 380 # Append the text in VALUE to the end of the definition contained in VAR. Take 381 # advantage of any shell optimizations that allow amortized linear growth over 382 # repeated appends, instead of the typical quadratic growth present in naive 383 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # as_fn_arith 412 413 414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 415 # ---------------------------------------- 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418 # script with STATUS, using 1 if that was 0. 419 as_fn_error () 420 { 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428 } # as_fn_error 429 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_me=`$as_basename -- "$0" || 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468 # Avoid depending upon Character Ranges. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509 } 510 511 ECHO_C= ECHO_N= ECHO_T= 512 case `echo -n x` in #((((( 513 -n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520 *) 521 ECHO_N='-n';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 6>&1 572 573 # Name of the host. 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575 # so uname gets run too. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='expat' 592 PACKAGE_TARNAME='expat' 593 PACKAGE_VERSION='2.2.6' 594 PACKAGE_STRING='expat 2.2.6' 595 PACKAGE_BUGREPORT='expat-bugs (at] libexpat.org' 596 PACKAGE_URL='' 597 598 ac_unique_file="Makefile.in" 599 # Factoring default headers for most tests. 600 ac_includes_default="\ 601 #include <stdio.h> 602 #ifdef HAVE_SYS_TYPES_H 603 # include <sys/types.h> 604 #endif 605 #ifdef HAVE_SYS_STAT_H 606 # include <sys/stat.h> 607 #endif 608 #ifdef STDC_HEADERS 609 # include <stdlib.h> 610 # include <stddef.h> 611 #else 612 # ifdef HAVE_STDLIB_H 613 # include <stdlib.h> 614 # endif 615 #endif 616 #ifdef HAVE_STRING_H 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618 # include <memory.h> 619 # endif 620 # include <string.h> 621 #endif 622 #ifdef HAVE_STRINGS_H 623 # include <strings.h> 624 #endif 625 #ifdef HAVE_INTTYPES_H 626 # include <inttypes.h> 627 #endif 628 #ifdef HAVE_STDINT_H 629 # include <stdint.h> 630 #endif 631 #ifdef HAVE_UNISTD_H 632 # include <unistd.h> 633 #endif" 634 635 ac_header_list= 636 ac_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 LIBOBJS 640 WITH_DOCBOOK_FALSE 641 WITH_DOCBOOK_TRUE 642 DOCBOOK_TO_MAN 643 FILEMAP 644 UNICODE_FALSE 645 UNICODE_TRUE 646 MINGW_FALSE 647 MINGW_TRUE 648 WITH_XMLWF_FALSE 649 WITH_XMLWF_TRUE 650 CXXCPP 651 am__fastdepCXX_FALSE 652 am__fastdepCXX_TRUE 653 CXXDEPMODE 654 ac_ct_CXX 655 CXXFLAGS 656 CXX 657 LIBAGE 658 LIBREVISION 659 LIBCURRENT 660 CPP 661 LT_SYS_LIBRARY_PATH 662 OTOOL64 663 OTOOL 664 LIPO 665 NMEDIT 666 DSYMUTIL 667 MANIFEST_TOOL 668 RANLIB 669 ac_ct_AR 670 AR 671 LN_S 672 NM 673 ac_ct_DUMPBIN 674 DUMPBIN 675 LD 676 FGREP 677 EGREP 678 GREP 679 SED 680 am__fastdepCC_FALSE 681 am__fastdepCC_TRUE 682 CCDEPMODE 683 am__nodep 684 AMDEPBACKSLASH 685 AMDEP_FALSE 686 AMDEP_TRUE 687 am__quote 688 am__include 689 DEPDIR 690 OBJEXT 691 EXEEXT 692 ac_ct_CC 693 CPPFLAGS 694 LDFLAGS 695 CFLAGS 696 CC 697 LIBTOOL 698 OBJDUMP 699 DLLTOOL 700 AS 701 host_os 702 host_vendor 703 host_cpu 704 host 705 build_os 706 build_vendor 707 build_cpu 708 build 709 AM_BACKSLASH 710 AM_DEFAULT_VERBOSITY 711 AM_DEFAULT_V 712 AM_V 713 am__untar 714 am__tar 715 AMTAR 716 am__leading_dot 717 SET_MAKE 718 AWK 719 mkdir_p 720 MKDIR_P 721 INSTALL_STRIP_PROGRAM 722 STRIP 723 install_sh 724 MAKEINFO 725 AUTOHEADER 726 AUTOMAKE 727 AUTOCONF 728 ACLOCAL 729 VERSION 730 PACKAGE 731 CYGPATH_W 732 am__isrc 733 INSTALL_DATA 734 INSTALL_SCRIPT 735 INSTALL_PROGRAM 736 target_alias 737 host_alias 738 build_alias 739 LIBS 740 ECHO_T 741 ECHO_N 742 ECHO_C 743 DEFS 744 mandir 745 localedir 746 libdir 747 psdir 748 pdfdir 749 dvidir 750 htmldir 751 infodir 752 docdir 753 oldincludedir 754 includedir 755 localstatedir 756 sharedstatedir 757 sysconfdir 758 datadir 759 datarootdir 760 libexecdir 761 sbindir 762 bindir 763 program_transform_name 764 prefix 765 exec_prefix 766 PACKAGE_URL 767 PACKAGE_BUGREPORT 768 PACKAGE_STRING 769 PACKAGE_VERSION 770 PACKAGE_TARNAME 771 PACKAGE_NAME 772 PATH_SEPARATOR 773 SHELL' 774 ac_subst_files='' 775 ac_user_opts=' 776 enable_option_checking 777 enable_silent_rules 778 enable_shared 779 enable_static 780 with_pic 781 enable_fast_install 782 with_aix_soname 783 enable_dependency_tracking 784 with_gnu_ld 785 with_sysroot 786 enable_libtool_lock 787 with_xmlwf 788 with_libbsd 789 enable_xml_context 790 with_docbook 791 ' 792 ac_precious_vars='build_alias 793 host_alias 794 target_alias 795 CC 796 CFLAGS 797 LDFLAGS 798 LIBS 799 CPPFLAGS 800 LT_SYS_LIBRARY_PATH 801 CPP 802 CXX 803 CXXFLAGS 804 CCC 805 CXXCPP 806 DOCBOOK_TO_MAN' 807 808 809 # Initialize some variables set by options. 810 ac_init_help= 811 ac_init_version=false 812 ac_unrecognized_opts= 813 ac_unrecognized_sep= 814 # The variables have the same names as the options, with 815 # dashes changed to underlines. 816 cache_file=/dev/null 817 exec_prefix=NONE 818 no_create= 819 no_recursion= 820 prefix=NONE 821 program_prefix=NONE 822 program_suffix=NONE 823 program_transform_name=s,x,x, 824 silent= 825 site= 826 srcdir= 827 verbose= 828 x_includes=NONE 829 x_libraries=NONE 830 831 # Installation directory options. 832 # These are left unexpanded so users can "make install exec_prefix=/foo" 833 # and all the variables that are supposed to be based on exec_prefix 834 # by default will actually change. 835 # Use braces instead of parens because sh, perl, etc. also accept them. 836 # (The list follows the same order as the GNU Coding Standards.) 837 bindir='${exec_prefix}/bin' 838 sbindir='${exec_prefix}/sbin' 839 libexecdir='${exec_prefix}/libexec' 840 datarootdir='${prefix}/share' 841 datadir='${datarootdir}' 842 sysconfdir='${prefix}/etc' 843 sharedstatedir='${prefix}/com' 844 localstatedir='${prefix}/var' 845 includedir='${prefix}/include' 846 oldincludedir='/usr/include' 847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 848 infodir='${datarootdir}/info' 849 htmldir='${docdir}' 850 dvidir='${docdir}' 851 pdfdir='${docdir}' 852 psdir='${docdir}' 853 libdir='${exec_prefix}/lib' 854 localedir='${datarootdir}/locale' 855 mandir='${datarootdir}/man' 856 857 ac_prev= 858 ac_dashdash= 859 for ac_option 860 do 861 # If the previous option needs an argument, assign it. 862 if test -n "$ac_prev"; then 863 eval $ac_prev=\$ac_option 864 ac_prev= 865 continue 866 fi 867 868 case $ac_option in 869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 870 *=) ac_optarg= ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 # Accept the important Cygnus configure options, so we can diagnose typos. 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921 "enable_$ac_useropt" 922 "*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=no ;; 927 928 -docdir | --docdir | --docdi | --doc | --do) 929 ac_prev=docdir ;; 930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931 docdir=$ac_optarg ;; 932 933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934 ac_prev=dvidir ;; 935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936 dvidir=$ac_optarg ;; 937 938 -enable-* | --enable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error $? "invalid feature name: $ac_useropt" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947 "enable_$ac_useropt" 948 "*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=\$ac_optarg ;; 953 954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956 | --exec | --exe | --ex) 957 ac_prev=exec_prefix ;; 958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960 | --exec=* | --exe=* | --ex=*) 961 exec_prefix=$ac_optarg ;; 962 963 -gas | --gas | --ga | --g) 964 # Obsolete; use --with-gas. 965 with_gas=yes ;; 966 967 -help | --help | --hel | --he | -h) 968 ac_init_help=long ;; 969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970 ac_init_help=recursive ;; 971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972 ac_init_help=short ;; 973 974 -host | --host | --hos | --ho) 975 ac_prev=host_alias ;; 976 -host=* | --host=* | --hos=* | --ho=*) 977 host_alias=$ac_optarg ;; 978 979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980 ac_prev=htmldir ;; 981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982 | --ht=*) 983 htmldir=$ac_optarg ;; 984 985 -includedir | --includedir | --includedi | --included | --include \ 986 | --includ | --inclu | --incl | --inc) 987 ac_prev=includedir ;; 988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989 | --includ=* | --inclu=* | --incl=* | --inc=*) 990 includedir=$ac_optarg ;; 991 992 -infodir | --infodir | --infodi | --infod | --info | --inf) 993 ac_prev=infodir ;; 994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995 infodir=$ac_optarg ;; 996 997 -libdir | --libdir | --libdi | --libd) 998 ac_prev=libdir ;; 999 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000 libdir=$ac_optarg ;; 1001 1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003 | --libexe | --libex | --libe) 1004 ac_prev=libexecdir ;; 1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006 | --libexe=* | --libex=* | --libe=*) 1007 libexecdir=$ac_optarg ;; 1008 1009 -localedir | --localedir | --localedi | --localed | --locale) 1010 ac_prev=localedir ;; 1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012 localedir=$ac_optarg ;; 1013 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015 | --localstate | --localstat | --localsta | --localst | --locals) 1016 ac_prev=localstatedir ;; 1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019 localstatedir=$ac_optarg ;; 1020 1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022 ac_prev=mandir ;; 1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024 mandir=$ac_optarg ;; 1025 1026 -nfp | --nfp | --nf) 1027 # Obsolete; use --without-fp. 1028 with_fp=no ;; 1029 1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031 | --no-cr | --no-c | -n) 1032 no_create=yes ;; 1033 1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036 no_recursion=yes ;; 1037 1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040 | --oldin | --oldi | --old | --ol | --o) 1041 ac_prev=oldincludedir ;; 1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045 oldincludedir=$ac_optarg ;; 1046 1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048 ac_prev=prefix ;; 1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050 prefix=$ac_optarg ;; 1051 1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053 | --program-pre | --program-pr | --program-p) 1054 ac_prev=program_prefix ;; 1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057 program_prefix=$ac_optarg ;; 1058 1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060 | --program-suf | --program-su | --program-s) 1061 ac_prev=program_suffix ;; 1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064 program_suffix=$ac_optarg ;; 1065 1066 -program-transform-name | --program-transform-name \ 1067 | --program-transform-nam | --program-transform-na \ 1068 | --program-transform-n | --program-transform- \ 1069 | --program-transform | --program-transfor \ 1070 | --program-transfo | --program-transf \ 1071 | --program-trans | --program-tran \ 1072 | --progr-tra | --program-tr | --program-t) 1073 ac_prev=program_transform_name ;; 1074 -program-transform-name=* | --program-transform-name=* \ 1075 | --program-transform-nam=* | --program-transform-na=* \ 1076 | --program-transform-n=* | --program-transform-=* \ 1077 | --program-transform=* | --program-transfor=* \ 1078 | --program-transfo=* | --program-transf=* \ 1079 | --program-trans=* | --program-tran=* \ 1080 | --progr-tra=* | --program-tr=* | --program-t=*) 1081 program_transform_name=$ac_optarg ;; 1082 1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084 ac_prev=pdfdir ;; 1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086 pdfdir=$ac_optarg ;; 1087 1088 -psdir | --psdir | --psdi | --psd | --ps) 1089 ac_prev=psdir ;; 1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091 psdir=$ac_optarg ;; 1092 1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094 | -silent | --silent | --silen | --sile | --sil) 1095 silent=yes ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151 "with_$ac_useropt" 1152 "*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167 "with_$ac_useropt" 1168 "*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193 Try \`$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215 done 1216 1217 if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220 fi 1221 1222 if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228 fi 1229 1230 # Check all directory arguments for consistency. 1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir 1235 do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249 done 1250 1251 # There might be people who depend on the old broken behavior: `$host' 1252 # used to hold the argument of --host etc. 1253 # FIXME: To remove some day. 1254 build=$build_alias 1255 host=$host_alias 1256 target=$target_alias 1257 1258 # FIXME: To remove some day. 1259 if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265 fi 1266 1267 ac_tool_prefix= 1268 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270 test "$silent" = yes && exec 6>/dev/null 1271 1272 1273 ac_pwd=`pwd` && test -n "$ac_pwd" && 1274 ac_ls_di=`ls -di .` && 1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281 # Find the source files, if location was not specified. 1282 if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290 $as_echo X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312 else 1313 ac_srcdir_defaulted=no 1314 fi 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318 fi 1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320 ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323 # When building in place, set srcdir=. 1324 if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326 fi 1327 # Remove unnecessary trailing slashes from srcdir. 1328 # Double slashes in file names in object file debugging info 1329 # mess up M-x gdb in Emacs. 1330 case $srcdir in 1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332 esac 1333 for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338 done 1339 1340 # 1341 # Report the --help message. 1342 # 1343 if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347 \`configure' configures expat 2.2.6 to adapt to many kinds of systems. 1348 1349 Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352 VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354 Defaults for the options are specified in brackets. 1355 1356 Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print \`checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for \`--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1366 1367 Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373 By default, \`make install' will install all the files in 1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1376 for instance \`--prefix=\$HOME'. 1377 1378 For better control, use the options below. 1379 1380 Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/expat] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400 _ACEOF 1401 1402 cat <<\_ACEOF 1403 1404 Program names: 1405 --program-prefix=PREFIX prepend PREFIX to installed program names 1406 --program-suffix=SUFFIX append SUFFIX to installed program names 1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408 1409 System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412 _ACEOF 1413 fi 1414 1415 if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of expat 2.2.6:";; 1418 esac 1419 cat <<\_ACEOF 1420 1421 Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-silent-rules less verbose build output (undo: "make V=1") 1426 --disable-silent-rules verbose build output (undo: "make V=0") 1427 --enable-shared[=PKGS] build shared libraries [default=yes] 1428 --enable-static[=PKGS] build static libraries [default=yes] 1429 --enable-fast-install[=PKGS] 1430 optimize for fast installation [default=yes] 1431 --enable-dependency-tracking 1432 do not reject slow dependency extractors 1433 --disable-dependency-tracking 1434 speeds up one-time build 1435 --disable-libtool-lock avoid locking (might break parallel builds) 1436 --enable-xml-context [COUNT] 1437 Retain context around the current parse point; 1438 default is enabled and a size of 1024 bytes 1439 --disable-xml-context Do not retain context around the current parse point 1440 1441 Optional Packages: 1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1444 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1445 both] 1446 --with-aix-soname=aix|svr4|both 1447 shared library versioning (aka "SONAME") variant to 1448 provide on AIX, [default=aix]. 1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1450 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1451 compiler's sysroot if not specified). 1452 1453 --without-xmlwf do not build xmlwf 1454 1455 --with-libbsd utilize libbsd (for arc4random_buf) 1456 1457 --with-docbook enforce XML to man page compilation [default=check] 1458 --without-docbook skip XML to man page compilation [default=check] 1459 1460 Some influential environment variables: 1461 CC C compiler command 1462 CFLAGS C compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 LIBS libraries to pass to the linker, e.g. -l<library> 1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467 you have headers in a nonstandard directory <include dir> 1468 LT_SYS_LIBRARY_PATH 1469 User-defined run-time library search path. 1470 CPP C preprocessor 1471 CXX C++ compiler command 1472 CXXFLAGS C++ compiler flags 1473 CXXCPP C++ preprocessor 1474 DOCBOOK_TO_MAN 1475 docbook2x-man command 1476 1477 Use these variables to override the choices made by `configure' or to help 1478 it to find libraries and programs with nonstandard names/locations. 1479 1480 Report bugs to <expat-bugs (at] libexpat.org>. 1481 _ACEOF 1482 ac_status=$? 1483 fi 1484 1485 if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493 case "$ac_dir" in 1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495 *) 1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503 esac 1504 ac_abs_top_builddir=$ac_pwd 1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506 # for backward compatibility: 1507 ac_top_builddir=$ac_top_build_prefix 1508 1509 case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522 esac 1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for guested configure. 1527 if test -f "$ac_srcdir/configure.gnu"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1530 elif test -f "$ac_srcdir/configure"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure" --help=recursive 1533 else 1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1535 fi || ac_status=$? 1536 cd "$ac_pwd" || { ac_status=$?; break; } 1537 done 1538 fi 1539 1540 test -n "$ac_init_help" && exit $ac_status 1541 if $ac_init_version; then 1542 cat <<\_ACEOF 1543 expat configure 2.2.6 1544 generated by GNU Autoconf 2.69 1545 1546 Copyright (C) 2012 Free Software Foundation, Inc. 1547 This configure script is free software; the Free Software Foundation 1548 gives unlimited permission to copy, distribute and modify it. 1549 _ACEOF 1550 exit 1551 fi 1552 1553 ## ------------------------ ## 1554 ## Autoconf initialization. ## 1555 ## ------------------------ ## 1556 1557 # ac_fn_c_try_compile LINENO 1558 # -------------------------- 1559 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1560 ac_fn_c_try_compile () 1561 { 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 rm -f conftest.$ac_objext 1564 if { { ac_try="$ac_compile" 1565 case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568 esac 1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570 $as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_compile") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } && { 1580 test -z "$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 } && test -s conftest.$ac_objext; then : 1583 ac_retval=0 1584 else 1585 $as_echo "$as_me: failed program was:" >&5 1586 sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589 fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593 } # ac_fn_c_try_compile 1594 1595 # ac_fn_c_try_link LINENO 1596 # ----------------------- 1597 # Try to link conftest.$ac_ext, and return whether this succeeded. 1598 ac_fn_c_try_link () 1599 { 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext conftest$ac_exeext 1602 if { { ac_try="$ac_link" 1603 case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606 esac 1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608 $as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_link") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest$ac_exeext && { 1621 test "$cross_compiling" = yes || 1622 test -x conftest$ac_exeext 1623 }; then : 1624 ac_retval=0 1625 else 1626 $as_echo "$as_me: failed program was:" >&5 1627 sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630 fi 1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1633 # interfere with the next link command; also delete a directory that is 1634 # left behind by Apple's compiler. We do this before executing the actions. 1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639 } # ac_fn_c_try_link 1640 1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1642 # ------------------------------------------------------- 1643 # Tests whether HEADER exists and can be compiled using the include files in 1644 # INCLUDES, setting the cache variable VAR accordingly. 1645 ac_fn_c_check_header_compile () 1646 { 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1649 $as_echo_n "checking for $2... " >&6; } 1650 if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652 else 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654 /* end confdefs.h. */ 1655 $4 1656 #include <$2> 1657 _ACEOF 1658 if ac_fn_c_try_compile "$LINENO"; then : 1659 eval "$3=yes" 1660 else 1661 eval "$3=no" 1662 fi 1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664 fi 1665 eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667 $as_echo "$ac_res" >&6; } 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 1670 } # ac_fn_c_check_header_compile 1671 1672 # ac_fn_c_try_cpp LINENO 1673 # ---------------------- 1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675 ac_fn_c_try_cpp () 1676 { 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679 case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682 esac 1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684 $as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698 else 1699 $as_echo "$as_me: failed program was:" >&5 1700 sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703 fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707 } # ac_fn_c_try_cpp 1708 1709 # ac_fn_c_try_run LINENO 1710 # ---------------------- 1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1712 # that executables *can* be run. 1713 ac_fn_c_try_run () 1714 { 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_link" 1717 case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720 esac 1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722 $as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1727 { { case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730 esac 1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732 $as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_try") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; }; }; then : 1737 ac_retval=0 1738 else 1739 $as_echo "$as_me: program exited with status $ac_status" >&5 1740 $as_echo "$as_me: failed program was:" >&5 1741 sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=$ac_status 1744 fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749 } # ac_fn_c_try_run 1750 1751 # ac_fn_c_check_func LINENO FUNC VAR 1752 # ---------------------------------- 1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1754 ac_fn_c_check_func () 1755 { 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758 $as_echo_n "checking for $2... " >&6; } 1759 if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761 else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763 /* end confdefs.h. */ 1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1766 #define $2 innocuous_$2 1767 1768 /* System header to define __stub macros and hopefully few prototypes, 1769 which can conflict with char $2 (); below. 1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1771 <limits.h> exists even on freestanding compilers. */ 1772 1773 #ifdef __STDC__ 1774 # include <limits.h> 1775 #else 1776 # include <assert.h> 1777 #endif 1778 1779 #undef $2 1780 1781 /* Override any GCC internal prototype to avoid an error. 1782 Use char because int might match the return type of a GCC 1783 builtin and then its argument prototype would still apply. */ 1784 #ifdef __cplusplus 1785 extern "C" 1786 #endif 1787 char $2 (); 1788 /* The GNU C library defines this for functions which it implements 1789 to always fail with ENOSYS. Some functions are actually named 1790 something starting with __ and the normal name is an alias. */ 1791 #if defined __stub_$2 || defined __stub___$2 1792 choke me 1793 #endif 1794 1795 int 1796 main () 1797 { 1798 return $2 (); 1799 ; 1800 return 0; 1801 } 1802 _ACEOF 1803 if ac_fn_c_try_link "$LINENO"; then : 1804 eval "$3=yes" 1805 else 1806 eval "$3=no" 1807 fi 1808 rm -f core conftest.err conftest.$ac_objext \ 1809 conftest$ac_exeext conftest.$ac_ext 1810 fi 1811 eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813 $as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816 } # ac_fn_c_check_func 1817 1818 # ac_fn_cxx_try_compile LINENO 1819 # ---------------------------- 1820 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1821 ac_fn_cxx_try_compile () 1822 { 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 rm -f conftest.$ac_objext 1825 if { { ac_try="$ac_compile" 1826 case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829 esac 1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831 $as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_compile") 2>conftest.err 1833 ac_status=$? 1834 if test -s conftest.err; then 1835 grep -v '^ *+' conftest.err >conftest.er1 1836 cat conftest.er1 >&5 1837 mv -f conftest.er1 conftest.err 1838 fi 1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1840 test $ac_status = 0; } && { 1841 test -z "$ac_cxx_werror_flag" || 1842 test ! -s conftest.err 1843 } && test -s conftest.$ac_objext; then : 1844 ac_retval=0 1845 else 1846 $as_echo "$as_me: failed program was:" >&5 1847 sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=1 1850 fi 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 as_fn_set_status $ac_retval 1853 1854 } # ac_fn_cxx_try_compile 1855 1856 # ac_fn_cxx_try_cpp LINENO 1857 # ------------------------ 1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1859 ac_fn_cxx_try_cpp () 1860 { 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 if { { ac_try="$ac_cpp conftest.$ac_ext" 1863 case "(($ac_try" in 1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1865 *) ac_try_echo=$ac_try;; 1866 esac 1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1868 $as_echo "$ac_try_echo"; } >&5 1869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1870 ac_status=$? 1871 if test -s conftest.err; then 1872 grep -v '^ *+' conftest.err >conftest.er1 1873 cat conftest.er1 >&5 1874 mv -f conftest.er1 conftest.err 1875 fi 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; } > conftest.i && { 1878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1879 test ! -s conftest.err 1880 }; then : 1881 ac_retval=0 1882 else 1883 $as_echo "$as_me: failed program was:" >&5 1884 sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=1 1887 fi 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 as_fn_set_status $ac_retval 1890 1891 } # ac_fn_cxx_try_cpp 1892 1893 # ac_fn_cxx_try_link LINENO 1894 # ------------------------- 1895 # Try to link conftest.$ac_ext, and return whether this succeeded. 1896 ac_fn_cxx_try_link () 1897 { 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 rm -f conftest.$ac_objext conftest$ac_exeext 1900 if { { ac_try="$ac_link" 1901 case "(($ac_try" in 1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1903 *) ac_try_echo=$ac_try;; 1904 esac 1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1906 $as_echo "$ac_try_echo"; } >&5 1907 (eval "$ac_link") 2>conftest.err 1908 ac_status=$? 1909 if test -s conftest.err; then 1910 grep -v '^ *+' conftest.err >conftest.er1 1911 cat conftest.er1 >&5 1912 mv -f conftest.er1 conftest.err 1913 fi 1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1915 test $ac_status = 0; } && { 1916 test -z "$ac_cxx_werror_flag" || 1917 test ! -s conftest.err 1918 } && test -s conftest$ac_exeext && { 1919 test "$cross_compiling" = yes || 1920 test -x conftest$ac_exeext 1921 }; then : 1922 ac_retval=0 1923 else 1924 $as_echo "$as_me: failed program was:" >&5 1925 sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=1 1928 fi 1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1931 # interfere with the next link command; also delete a directory that is 1932 # left behind by Apple's compiler. We do this before executing the actions. 1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 as_fn_set_status $ac_retval 1936 1937 } # ac_fn_cxx_try_link 1938 1939 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1940 # ------------------------------------------- 1941 # Tests whether TYPE exists after having included INCLUDES, setting cache 1942 # variable VAR accordingly. 1943 ac_fn_c_check_type () 1944 { 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1947 $as_echo_n "checking for $2... " >&6; } 1948 if eval \${$3+:} false; then : 1949 $as_echo_n "(cached) " >&6 1950 else 1951 eval "$3=no" 1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953 /* end confdefs.h. */ 1954 $4 1955 int 1956 main () 1957 { 1958 if (sizeof ($2)) 1959 return 0; 1960 ; 1961 return 0; 1962 } 1963 _ACEOF 1964 if ac_fn_c_try_compile "$LINENO"; then : 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966 /* end confdefs.h. */ 1967 $4 1968 int 1969 main () 1970 { 1971 if (sizeof (($2))) 1972 return 0; 1973 ; 1974 return 0; 1975 } 1976 _ACEOF 1977 if ac_fn_c_try_compile "$LINENO"; then : 1978 1979 else 1980 eval "$3=yes" 1981 fi 1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1983 fi 1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1985 fi 1986 eval ac_res=\$$3 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1988 $as_echo "$ac_res" >&6; } 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 1991 } # ac_fn_c_check_type 1992 1993 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1994 # ------------------------------------------------------- 1995 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1996 # the include files in INCLUDES and setting the cache variable VAR 1997 # accordingly. 1998 ac_fn_c_check_header_mongrel () 1999 { 2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 if eval \${$3+:} false; then : 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2003 $as_echo_n "checking for $2... " >&6; } 2004 if eval \${$3+:} false; then : 2005 $as_echo_n "(cached) " >&6 2006 fi 2007 eval ac_res=\$$3 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2009 $as_echo "$ac_res" >&6; } 2010 else 2011 # Is the header compilable? 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2013 $as_echo_n "checking $2 usability... " >&6; } 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015 /* end confdefs.h. */ 2016 $4 2017 #include <$2> 2018 _ACEOF 2019 if ac_fn_c_try_compile "$LINENO"; then : 2020 ac_header_compiler=yes 2021 else 2022 ac_header_compiler=no 2023 fi 2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2026 $as_echo "$ac_header_compiler" >&6; } 2027 2028 # Is the header present? 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2030 $as_echo_n "checking $2 presence... " >&6; } 2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032 /* end confdefs.h. */ 2033 #include <$2> 2034 _ACEOF 2035 if ac_fn_c_try_cpp "$LINENO"; then : 2036 ac_header_preproc=yes 2037 else 2038 ac_header_preproc=no 2039 fi 2040 rm -f conftest.err conftest.i conftest.$ac_ext 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2042 $as_echo "$ac_header_preproc" >&6; } 2043 2044 # So? What about this header? 2045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2046 yes:no: ) 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2048 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2051 ;; 2052 no:yes:* ) 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2054 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2056 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2058 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2060 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2063 ( $as_echo "## -------------------------------------- ## 2064 ## Report this to expat-bugs (at] libexpat.org ## 2065 ## -------------------------------------- ##" 2066 ) | sed "s/^/$as_me: WARNING: /" >&2 2067 ;; 2068 esac 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2070 $as_echo_n "checking for $2... " >&6; } 2071 if eval \${$3+:} false; then : 2072 $as_echo_n "(cached) " >&6 2073 else 2074 eval "$3=\$ac_header_compiler" 2075 fi 2076 eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078 $as_echo "$ac_res" >&6; } 2079 fi 2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2081 2082 } # ac_fn_c_check_header_mongrel 2083 cat >config.log <<_ACEOF 2084 This file contains any messages produced by compilers while 2085 running configure, to aid debugging if configure makes a mistake. 2086 2087 It was created by expat $as_me 2.2.6, which was 2088 generated by GNU Autoconf 2.69. Invocation command line was 2089 2090 $ $0 $@ 2091 2092 _ACEOF 2093 exec 5>>config.log 2094 { 2095 cat <<_ASUNAME 2096 ## --------- ## 2097 ## Platform. ## 2098 ## --------- ## 2099 2100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2101 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2102 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2103 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2104 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2105 2106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2108 2109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2116 2117 _ASUNAME 2118 2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2120 for as_dir in $PATH 2121 do 2122 IFS=$as_save_IFS 2123 test -z "$as_dir" && as_dir=. 2124 $as_echo "PATH: $as_dir" 2125 done 2126 IFS=$as_save_IFS 2127 2128 } >&5 2129 2130 cat >&5 <<_ACEOF 2131 2132 2133 ## ----------- ## 2134 ## Core tests. ## 2135 ## ----------- ## 2136 2137 _ACEOF 2138 2139 2140 # Keep a trace of the command line. 2141 # Strip out --no-create and --no-recursion so they do not pile up. 2142 # Strip out --silent because we don't want to record it for future runs. 2143 # Also quote any args containing shell meta-characters. 2144 # Make two passes to allow for proper duplicate-argument suppression. 2145 ac_configure_args= 2146 ac_configure_args0= 2147 ac_configure_args1= 2148 ac_must_keep_next=false 2149 for ac_pass in 1 2 2150 do 2151 for ac_arg 2152 do 2153 case $ac_arg in 2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2156 | -silent | --silent | --silen | --sile | --sil) 2157 continue ;; 2158 *\'*) 2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2160 esac 2161 case $ac_pass in 2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2163 2) 2164 as_fn_append ac_configure_args1 " '$ac_arg'" 2165 if test $ac_must_keep_next = true; then 2166 ac_must_keep_next=false # Got value, back to normal. 2167 else 2168 case $ac_arg in 2169 *=* | --config-cache | -C | -disable-* | --disable-* \ 2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2172 | -with-* | --with-* | -without-* | --without-* | --x) 2173 case "$ac_configure_args0 " in 2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2175 esac 2176 ;; 2177 -* ) ac_must_keep_next=true ;; 2178 esac 2179 fi 2180 as_fn_append ac_configure_args " '$ac_arg'" 2181 ;; 2182 esac 2183 done 2184 done 2185 { ac_configure_args0=; unset ac_configure_args0;} 2186 { ac_configure_args1=; unset ac_configure_args1;} 2187 2188 # When interrupted or exit'd, cleanup temporary files, and complete 2189 # config.log. We remove comments because anyway the quotes in there 2190 # would cause problems or look ugly. 2191 # WARNING: Use '\'' to represent an apostrophe within the trap. 2192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2193 trap 'exit_status=$? 2194 # Save into config.log some information that might help in debugging. 2195 { 2196 echo 2197 2198 $as_echo "## ---------------- ## 2199 ## Cache variables. ## 2200 ## ---------------- ##" 2201 echo 2202 # The following way of writing the cache mishandles newlines in values, 2203 ( 2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2205 eval ac_val=\$$ac_var 2206 case $ac_val in #( 2207 *${as_nl}*) 2208 case $ac_var in #( 2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2211 esac 2212 case $ac_var in #( 2213 _ | IFS | as_nl) ;; #( 2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2215 *) { eval $ac_var=; unset $ac_var;} ;; 2216 esac ;; 2217 esac 2218 done 2219 (set) 2>&1 | 2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2221 *${as_nl}ac_space=\ *) 2222 sed -n \ 2223 "s/'\''/'\''\\\\'\'''\''/g; 2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2225 ;; #( 2226 *) 2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2228 ;; 2229 esac | 2230 sort 2231 ) 2232 echo 2233 2234 $as_echo "## ----------------- ## 2235 ## Output variables. ## 2236 ## ----------------- ##" 2237 echo 2238 for ac_var in $ac_subst_vars 2239 do 2240 eval ac_val=\$$ac_var 2241 case $ac_val in 2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2243 esac 2244 $as_echo "$ac_var='\''$ac_val'\''" 2245 done | sort 2246 echo 2247 2248 if test -n "$ac_subst_files"; then 2249 $as_echo "## ------------------- ## 2250 ## File substitutions. ## 2251 ## ------------------- ##" 2252 echo 2253 for ac_var in $ac_subst_files 2254 do 2255 eval ac_val=\$$ac_var 2256 case $ac_val in 2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2258 esac 2259 $as_echo "$ac_var='\''$ac_val'\''" 2260 done | sort 2261 echo 2262 fi 2263 2264 if test -s confdefs.h; then 2265 $as_echo "## ----------- ## 2266 ## confdefs.h. ## 2267 ## ----------- ##" 2268 echo 2269 cat confdefs.h 2270 echo 2271 fi 2272 test "$ac_signal" != 0 && 2273 $as_echo "$as_me: caught signal $ac_signal" 2274 $as_echo "$as_me: exit $exit_status" 2275 } >&5 2276 rm -f core *.core core.conftest.* && 2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2278 exit $exit_status 2279 ' 0 2280 for ac_signal in 1 2 13 15; do 2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2282 done 2283 ac_signal=0 2284 2285 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2286 rm -f -r conftest* confdefs.h 2287 2288 $as_echo "/* confdefs.h */" > confdefs.h 2289 2290 # Predefined preprocessor variables. 2291 2292 cat >>confdefs.h <<_ACEOF 2293 #define PACKAGE_NAME "$PACKAGE_NAME" 2294 _ACEOF 2295 2296 cat >>confdefs.h <<_ACEOF 2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2298 _ACEOF 2299 2300 cat >>confdefs.h <<_ACEOF 2301 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2302 _ACEOF 2303 2304 cat >>confdefs.h <<_ACEOF 2305 #define PACKAGE_STRING "$PACKAGE_STRING" 2306 _ACEOF 2307 2308 cat >>confdefs.h <<_ACEOF 2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2310 _ACEOF 2311 2312 cat >>confdefs.h <<_ACEOF 2313 #define PACKAGE_URL "$PACKAGE_URL" 2314 _ACEOF 2315 2316 2317 # Let the site file select an alternate cache file if it wants to. 2318 # Prefer an explicitly selected file to automatically selected ones. 2319 ac_site_file1=NONE 2320 ac_site_file2=NONE 2321 if test -n "$CONFIG_SITE"; then 2322 # We do not want a PATH search for config.site. 2323 case $CONFIG_SITE in #(( 2324 -*) ac_site_file1=./$CONFIG_SITE;; 2325 */*) ac_site_file1=$CONFIG_SITE;; 2326 *) ac_site_file1=./$CONFIG_SITE;; 2327 esac 2328 elif test "x$prefix" != xNONE; then 2329 ac_site_file1=$prefix/share/config.site 2330 ac_site_file2=$prefix/etc/config.site 2331 else 2332 ac_site_file1=$ac_default_prefix/share/config.site 2333 ac_site_file2=$ac_default_prefix/etc/config.site 2334 fi 2335 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2336 do 2337 test "x$ac_site_file" = xNONE && continue 2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2340 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2341 sed 's/^/| /' "$ac_site_file" >&5 2342 . "$ac_site_file" \ 2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2345 as_fn_error $? "failed to load site script $ac_site_file 2346 See \`config.log' for more details" "$LINENO" 5; } 2347 fi 2348 done 2349 2350 if test -r "$cache_file"; then 2351 # Some versions of bash will fail to source /dev/null (special files 2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2355 $as_echo "$as_me: loading cache $cache_file" >&6;} 2356 case $cache_file in 2357 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2358 *) . "./$cache_file";; 2359 esac 2360 fi 2361 else 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2363 $as_echo "$as_me: creating cache $cache_file" >&6;} 2364 >$cache_file 2365 fi 2366 2367 as_fn_append ac_header_list " stdlib.h" 2368 as_fn_append ac_header_list " unistd.h" 2369 as_fn_append ac_header_list " sys/param.h" 2370 # Check that the precious variables saved in the cache have kept the same 2371 # value. 2372 ac_cache_corrupted=false 2373 for ac_var in $ac_precious_vars; do 2374 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2375 eval ac_new_set=\$ac_env_${ac_var}_set 2376 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2377 eval ac_new_val=\$ac_env_${ac_var}_value 2378 case $ac_old_set,$ac_new_set in 2379 set,) 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2381 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2382 ac_cache_corrupted=: ;; 2383 ,set) 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2385 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2386 ac_cache_corrupted=: ;; 2387 ,);; 2388 *) 2389 if test "x$ac_old_val" != "x$ac_new_val"; then 2390 # differences in whitespace do not lead to failure. 2391 ac_old_val_w=`echo x $ac_old_val` 2392 ac_new_val_w=`echo x $ac_new_val` 2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2395 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2396 ac_cache_corrupted=: 2397 else 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2399 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2400 eval $ac_var=\$ac_old_val 2401 fi 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2403 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2405 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2406 fi;; 2407 esac 2408 # Pass precious variables to config.status. 2409 if test "$ac_new_set" = set; then 2410 case $ac_new_val in 2411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2412 *) ac_arg=$ac_var=$ac_new_val ;; 2413 esac 2414 case " $ac_configure_args " in 2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2416 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2417 esac 2418 fi 2419 done 2420 if $ac_cache_corrupted; then 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2424 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2425 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2426 fi 2427 ## -------------------- ## 2428 ## Main body of script. ## 2429 ## -------------------- ## 2430 2431 ac_ext=c 2432 ac_cpp='$CPP $CPPFLAGS' 2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2436 2437 2438 2439 2440 2441 ac_aux_dir= 2442 for ac_dir in conftools "$srcdir"/conftools; do 2443 if test -f "$ac_dir/install-sh"; then 2444 ac_aux_dir=$ac_dir 2445 ac_install_sh="$ac_aux_dir/install-sh -c" 2446 break 2447 elif test -f "$ac_dir/install.sh"; then 2448 ac_aux_dir=$ac_dir 2449 ac_install_sh="$ac_aux_dir/install.sh -c" 2450 break 2451 elif test -f "$ac_dir/shtool"; then 2452 ac_aux_dir=$ac_dir 2453 ac_install_sh="$ac_aux_dir/shtool install -c" 2454 break 2455 fi 2456 done 2457 if test -z "$ac_aux_dir"; then 2458 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5 2459 fi 2460 2461 # These three variables are undocumented and unsupported, 2462 # and are intended to be withdrawn in a future Autoconf release. 2463 # They can cause serious problems if a builder's source tree is in a directory 2464 # whose full name contains unusual characters. 2465 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2466 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2467 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2468 2469 2470 am__api_version='1.15' 2471 2472 # Find a good install program. We prefer a C program (faster), 2473 # so one script is as good as another. But avoid the broken or 2474 # incompatible versions: 2475 # SysV /etc/install, /usr/sbin/install 2476 # SunOS /usr/etc/install 2477 # IRIX /sbin/install 2478 # AIX /bin/install 2479 # AmigaOS /C/install, which installs bootblocks on floppy discs 2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2483 # OS/2's system install, which has a completely different semantic 2484 # ./install, which can be erroneously created by make from ./install.sh. 2485 # Reject install programs that cannot install multiple files. 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2487 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2488 if test -z "$INSTALL"; then 2489 if ${ac_cv_path_install+:} false; then : 2490 $as_echo_n "(cached) " >&6 2491 else 2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493 for as_dir in $PATH 2494 do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 # Account for people who put trailing slashes in PATH elements. 2498 case $as_dir/ in #(( 2499 ./ | .// | /[cC]/* | \ 2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2502 /usr/ucb/* ) ;; 2503 *) 2504 # OSF1 and SCO ODT 3.0 have their own names for install. 2505 # Don't use installbsd from OSF since it installs stuff as root 2506 # by default. 2507 for ac_prog in ginstall scoinst install; do 2508 for ac_exec_ext in '' $ac_executable_extensions; do 2509 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2510 if test $ac_prog = install && 2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2512 # AIX install. It has an incompatible calling convention. 2513 : 2514 elif test $ac_prog = install && 2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2516 # program-specific install script used by HP pwplus--don't use. 2517 : 2518 else 2519 rm -rf conftest.one conftest.two conftest.dir 2520 echo one > conftest.one 2521 echo two > conftest.two 2522 mkdir conftest.dir 2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2524 test -s conftest.one && test -s conftest.two && 2525 test -s conftest.dir/conftest.one && 2526 test -s conftest.dir/conftest.two 2527 then 2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2529 break 3 2530 fi 2531 fi 2532 fi 2533 done 2534 done 2535 ;; 2536 esac 2537 2538 done 2539 IFS=$as_save_IFS 2540 2541 rm -rf conftest.one conftest.two conftest.dir 2542 2543 fi 2544 if test "${ac_cv_path_install+set}" = set; then 2545 INSTALL=$ac_cv_path_install 2546 else 2547 # As a last resort, use the slow shell script. Don't cache a 2548 # value for INSTALL within a source directory, because that will 2549 # break other packages using the cache if that directory is 2550 # removed, or if the value is a relative name. 2551 INSTALL=$ac_install_sh 2552 fi 2553 fi 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2555 $as_echo "$INSTALL" >&6; } 2556 2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2558 # It thinks the first close brace ends the variable substitution. 2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2560 2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2562 2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2564 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2566 $as_echo_n "checking whether build environment is sane... " >&6; } 2567 # Reject unsafe characters in $srcdir or the absolute working directory 2568 # name. Accept space and tab only in the latter. 2569 am_lf=' 2570 ' 2571 case `pwd` in 2572 *[\\\"\#\$\&\'\`$am_lf]*) 2573 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2574 esac 2575 case $srcdir in 2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2577 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2578 esac 2579 2580 # Do 'set' in a subshell so we don't clobber the current shell's 2581 # arguments. Must try -L first in case configure is actually a 2582 # symlink; some systems play weird games with the mod time of symlinks 2583 # (eg FreeBSD returns the mod time of the symlink's containing 2584 # directory). 2585 if ( 2586 am_has_slept=no 2587 for am_try in 1 2; do 2588 echo "timestamp, slept: $am_has_slept" > conftest.file 2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2590 if test "$*" = "X"; then 2591 # -L didn't work. 2592 set X `ls -t "$srcdir/configure" conftest.file` 2593 fi 2594 if test "$*" != "X $srcdir/configure conftest.file" \ 2595 && test "$*" != "X conftest.file $srcdir/configure"; then 2596 2597 # If neither matched, then we have a broken ls. This can happen 2598 # if, for instance, CONFIG_SHELL is bash and it inherits a 2599 # broken ls alias from the environment. This has actually 2600 # happened. Such a system could not be considered "sane". 2601 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2602 alias in your environment" "$LINENO" 5 2603 fi 2604 if test "$2" = conftest.file || test $am_try -eq 2; then 2605 break 2606 fi 2607 # Just in case. 2608 sleep 1 2609 am_has_slept=yes 2610 done 2611 test "$2" = conftest.file 2612 ) 2613 then 2614 # Ok. 2615 : 2616 else 2617 as_fn_error $? "newly created file is older than distributed files! 2618 Check your system clock" "$LINENO" 5 2619 fi 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2621 $as_echo "yes" >&6; } 2622 # If we didn't sleep, we still need to ensure time stamps of config.status and 2623 # generated files are strictly newer. 2624 am_sleep_pid= 2625 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2626 ( sleep 1 ) & 2627 am_sleep_pid=$! 2628 fi 2629 2630 rm -f conftest.file 2631 2632 test "$program_prefix" != NONE && 2633 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2634 # Use a double $ so make ignores it. 2635 test "$program_suffix" != NONE && 2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2637 # Double any \ or $. 2638 # By default was `s,x,x', remove it if useless. 2639 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2640 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2641 2642 # Expand $ac_aux_dir to an absolute path. 2643 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2644 2645 if test x"${MISSING+set}" != xset; then 2646 case $am_aux_dir in 2647 *\ * | *\ *) 2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2649 *) 2650 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2651 esac 2652 fi 2653 # Use eval to expand $SHELL 2654 if eval "$MISSING --is-lightweight"; then 2655 am_missing_run="$MISSING " 2656 else 2657 am_missing_run= 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2659 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2660 fi 2661 2662 if test x"${install_sh+set}" != xset; then 2663 case $am_aux_dir in 2664 *\ * | *\ *) 2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2666 *) 2667 install_sh="\${SHELL} $am_aux_dir/install-sh" 2668 esac 2669 fi 2670 2671 # Installed binaries are usually stripped using 'strip' when the user 2672 # run "make install-strip". However 'strip' might not be the right 2673 # tool to use in cross-compilation environments, therefore Automake 2674 # will honor the 'STRIP' environment variable to overrule this program. 2675 if test "$cross_compiling" != no; then 2676 if test -n "$ac_tool_prefix"; then 2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2678 set dummy ${ac_tool_prefix}strip; ac_word=$2 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680 $as_echo_n "checking for $ac_word... " >&6; } 2681 if ${ac_cv_prog_STRIP+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683 else 2684 if test -n "$STRIP"; then 2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2686 else 2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688 for as_dir in $PATH 2689 do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698 done 2699 done 2700 IFS=$as_save_IFS 2701 2702 fi 2703 fi 2704 STRIP=$ac_cv_prog_STRIP 2705 if test -n "$STRIP"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2707 $as_echo "$STRIP" >&6; } 2708 else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710 $as_echo "no" >&6; } 2711 fi 2712 2713 2714 fi 2715 if test -z "$ac_cv_prog_STRIP"; then 2716 ac_ct_STRIP=$STRIP 2717 # Extract the first word of "strip", so it can be a program name with args. 2718 set dummy strip; ac_word=$2 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2720 $as_echo_n "checking for $ac_word... " >&6; } 2721 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723 else 2724 if test -n "$ac_ct_STRIP"; then 2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2726 else 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728 for as_dir in $PATH 2729 do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2734 ac_cv_prog_ac_ct_STRIP="strip" 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738 done 2739 done 2740 IFS=$as_save_IFS 2741 2742 fi 2743 fi 2744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2745 if test -n "$ac_ct_STRIP"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2747 $as_echo "$ac_ct_STRIP" >&6; } 2748 else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750 $as_echo "no" >&6; } 2751 fi 2752 2753 if test "x$ac_ct_STRIP" = x; then 2754 STRIP=":" 2755 else 2756 case $cross_compiling:$ac_tool_warned in 2757 yes:) 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2760 ac_tool_warned=yes ;; 2761 esac 2762 STRIP=$ac_ct_STRIP 2763 fi 2764 else 2765 STRIP="$ac_cv_prog_STRIP" 2766 fi 2767 2768 fi 2769 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2770 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2772 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2773 if test -z "$MKDIR_P"; then 2774 if ${ac_cv_path_mkdir+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776 else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2779 do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_prog in mkdir gmkdir; do 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2786 'mkdir (GNU coreutils) '* | \ 2787 'mkdir (coreutils) '* | \ 2788 'mkdir (fileutils) '4.1*) 2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2790 break 3;; 2791 esac 2792 done 2793 done 2794 done 2795 IFS=$as_save_IFS 2796 2797 fi 2798 2799 test -d ./--version && rmdir ./--version 2800 if test "${ac_cv_path_mkdir+set}" = set; then 2801 MKDIR_P="$ac_cv_path_mkdir -p" 2802 else 2803 # As a last resort, use the slow shell script. Don't cache a 2804 # value for MKDIR_P within a source directory, because that will 2805 # break other packages using the cache if that directory is 2806 # removed, or if the value is a relative name. 2807 MKDIR_P="$ac_install_sh -d" 2808 fi 2809 fi 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2811 $as_echo "$MKDIR_P" >&6; } 2812 2813 for ac_prog in gawk mawk nawk awk 2814 do 2815 # Extract the first word of "$ac_prog", so it can be a program name with args. 2816 set dummy $ac_prog; ac_word=$2 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2818 $as_echo_n "checking for $ac_word... " >&6; } 2819 if ${ac_cv_prog_AWK+:} false; then : 2820 $as_echo_n "(cached) " >&6 2821 else 2822 if test -n "$AWK"; then 2823 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2824 else 2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826 for as_dir in $PATH 2827 do 2828 IFS=$as_save_IFS 2829 test -z "$as_dir" && as_dir=. 2830 for ac_exec_ext in '' $ac_executable_extensions; do 2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2832 ac_cv_prog_AWK="$ac_prog" 2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2834 break 2 2835 fi 2836 done 2837 done 2838 IFS=$as_save_IFS 2839 2840 fi 2841 fi 2842 AWK=$ac_cv_prog_AWK 2843 if test -n "$AWK"; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2845 $as_echo "$AWK" >&6; } 2846 else 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848 $as_echo "no" >&6; } 2849 fi 2850 2851 2852 test -n "$AWK" && break 2853 done 2854 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2857 set x ${MAKE-make} 2858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2859 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2860 $as_echo_n "(cached) " >&6 2861 else 2862 cat >conftest.make <<\_ACEOF 2863 SHELL = /bin/sh 2864 all: 2865 @echo '@@@%%%=$(MAKE)=@@@%%%' 2866 _ACEOF 2867 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2868 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2869 *@@@%%%=?*=@@@%%%*) 2870 eval ac_cv_prog_make_${ac_make}_set=yes;; 2871 *) 2872 eval ac_cv_prog_make_${ac_make}_set=no;; 2873 esac 2874 rm -f conftest.make 2875 fi 2876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2878 $as_echo "yes" >&6; } 2879 SET_MAKE= 2880 else 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2882 $as_echo "no" >&6; } 2883 SET_MAKE="MAKE=${MAKE-make}" 2884 fi 2885 2886 rm -rf .tst 2>/dev/null 2887 mkdir .tst 2>/dev/null 2888 if test -d .tst; then 2889 am__leading_dot=. 2890 else 2891 am__leading_dot=_ 2892 fi 2893 rmdir .tst 2>/dev/null 2894 2895 # Check whether --enable-silent-rules was given. 2896 if test "${enable_silent_rules+set}" = set; then : 2897 enableval=$enable_silent_rules; 2898 fi 2899 2900 case $enable_silent_rules in # ((( 2901 yes) AM_DEFAULT_VERBOSITY=0;; 2902 no) AM_DEFAULT_VERBOSITY=1;; 2903 *) AM_DEFAULT_VERBOSITY=1;; 2904 esac 2905 am_make=${MAKE-make} 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2907 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2908 if ${am_cv_make_support_nested_variables+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910 else 2911 if $as_echo 'TRUE=$(BAR$(V)) 2912 BAR0=false 2913 BAR1=true 2914 V=1 2915 am__doit: 2916 @$(TRUE) 2917 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2918 am_cv_make_support_nested_variables=yes 2919 else 2920 am_cv_make_support_nested_variables=no 2921 fi 2922 fi 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2924 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2925 if test $am_cv_make_support_nested_variables = yes; then 2926 AM_V='$(V)' 2927 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2928 else 2929 AM_V=$AM_DEFAULT_VERBOSITY 2930 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2931 fi 2932 AM_BACKSLASH='\' 2933 2934 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2935 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2936 # is not polluted with repeated "-I." 2937 am__isrc=' -I$(srcdir)' 2938 # test to see if srcdir already configured 2939 if test -f $srcdir/config.status; then 2940 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2941 fi 2942 fi 2943 2944 # test whether we have cygpath 2945 if test -z "$CYGPATH_W"; then 2946 if (cygpath --version) >/dev/null 2>/dev/null; then 2947 CYGPATH_W='cygpath -w' 2948 else 2949 CYGPATH_W=echo 2950 fi 2951 fi 2952 2953 2954 # Define the identity of the package. 2955 PACKAGE='expat' 2956 VERSION='2.2.6' 2957 2958 2959 cat >>confdefs.h <<_ACEOF 2960 #define PACKAGE "$PACKAGE" 2961 _ACEOF 2962 2963 2964 cat >>confdefs.h <<_ACEOF 2965 #define VERSION "$VERSION" 2966 _ACEOF 2967 2968 # Some tools Automake needs. 2969 2970 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2971 2972 2973 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2974 2975 2976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2977 2978 2979 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2980 2981 2982 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2983 2984 # For better backward compatibility. To be removed once Automake 1.9.x 2985 # dies out for good. For more background, see: 2986 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2987 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2988 mkdir_p='$(MKDIR_P)' 2989 2990 # We need awk for the "check" target (and possibly the TAP driver). The 2991 # system "awk" is bad on some platforms. 2992 # Always define AMTAR for backward compatibility. Yes, it's still used 2993 # in the wild :-( We should find a proper way to deprecate it ... 2994 AMTAR='$${TAR-tar}' 2995 2996 2997 # We'll loop over all known methods to create a tar archive until one works. 2998 _am_tools='gnutar pax cpio none' 2999 3000 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3001 3002 3003 3004 3005 3006 3007 # POSIX will say in a future version that running "rm -f" with no argument 3008 # is OK; and we want to be able to make that assumption in our Makefile 3009 # recipes. So use an aggressive probe to check that the usage we want is 3010 # actually supported "in the wild" to an acceptable degree. 3011 # See automake bug#10828. 3012 # To make any issue more visible, cause the running configure to be aborted 3013 # by default if the 'rm' program in use doesn't match our expectations; the 3014 # user can still override this though. 3015 if rm -f && rm -fr && rm -rf; then : OK; else 3016 cat >&2 <<'END' 3017 Oops! 3018 3019 Your 'rm' program seems unable to run without file operands specified 3020 on the command line, even when the '-f' option is present. This is contrary 3021 to the behaviour of most rm programs out there, and not conforming with 3022 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3023 3024 Please tell bug-automake@gnu.org about your system, including the value 3025 of your $PATH and any error possibly output before this message. This 3026 can help us improve future automake versions. 3027 3028 END 3029 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3030 echo 'Configuration will proceed anyway, since you have set the' >&2 3031 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3032 echo >&2 3033 else 3034 cat >&2 <<'END' 3035 Aborting the configuration process, to ensure you take notice of the issue. 3036 3037 You can download and install GNU coreutils to get an 'rm' implementation 3038 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3039 3040 If you want to complete the configuration process using your problematic 3041 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3042 to "yes", and re-run configure. 3043 3044 END 3045 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3046 fi 3047 fi 3048 3049 3050 3051 3052 3053 LIBCURRENT=7 # sync 3054 LIBREVISION=8 # with 3055 LIBAGE=6 # CMakeLists.txt! 3056 3057 CPPFLAGS="${CPPFLAGS} -DHAVE_EXPAT_CONFIG_H" 3058 ac_config_headers="$ac_config_headers expat_config.h" 3059 3060 3061 3062 3063 3064 # Make sure we can run config.sub. 3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3066 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3067 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3069 $as_echo_n "checking build system type... " >&6; } 3070 if ${ac_cv_build+:} false; then : 3071 $as_echo_n "(cached) " >&6 3072 else 3073 ac_build_alias=$build_alias 3074 test "x$ac_build_alias" = x && 3075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3076 test "x$ac_build_alias" = x && 3077 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3079 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3080 3081 fi 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3083 $as_echo "$ac_cv_build" >&6; } 3084 case $ac_cv_build in 3085 *-*-*) ;; 3086 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3087 esac 3088 build=$ac_cv_build 3089 ac_save_IFS=$IFS; IFS='-' 3090 set x $ac_cv_build 3091 shift 3092 build_cpu=$1 3093 build_vendor=$2 3094 shift; shift 3095 # Remember, the first character of IFS is used to create $*, 3096 # except with old shells: 3097 build_os=$* 3098 IFS=$ac_save_IFS 3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3100 3101 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3103 $as_echo_n "checking host system type... " >&6; } 3104 if ${ac_cv_host+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106 else 3107 if test "x$host_alias" = x; then 3108 ac_cv_host=$ac_cv_build 3109 else 3110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3111 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3112 fi 3113 3114 fi 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3116 $as_echo "$ac_cv_host" >&6; } 3117 case $ac_cv_host in 3118 *-*-*) ;; 3119 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3120 esac 3121 host=$ac_cv_host 3122 ac_save_IFS=$IFS; IFS='-' 3123 set x $ac_cv_host 3124 shift 3125 host_cpu=$1 3126 host_vendor=$2 3127 shift; shift 3128 # Remember, the first character of IFS is used to create $*, 3129 # except with old shells: 3130 host_os=$* 3131 IFS=$ac_save_IFS 3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3133 3134 3135 enable_win32_dll=yes 3136 3137 case $host in 3138 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 3139 if test -n "$ac_tool_prefix"; then 3140 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3141 set dummy ${ac_tool_prefix}as; ac_word=$2 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143 $as_echo_n "checking for $ac_word... " >&6; } 3144 if ${ac_cv_prog_AS+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146 else 3147 if test -n "$AS"; then 3148 ac_cv_prog_AS="$AS" # Let the user override the test. 3149 else 3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3151 for as_dir in $PATH 3152 do 3153 IFS=$as_save_IFS 3154 test -z "$as_dir" && as_dir=. 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3157 ac_cv_prog_AS="${ac_tool_prefix}as" 3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3159 break 2 3160 fi 3161 done 3162 done 3163 IFS=$as_save_IFS 3164 3165 fi 3166 fi 3167 AS=$ac_cv_prog_AS 3168 if test -n "$AS"; then 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3170 $as_echo "$AS" >&6; } 3171 else 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3173 $as_echo "no" >&6; } 3174 fi 3175 3176 3177 fi 3178 if test -z "$ac_cv_prog_AS"; then 3179 ac_ct_AS=$AS 3180 # Extract the first word of "as", so it can be a program name with args. 3181 set dummy as; ac_word=$2 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183 $as_echo_n "checking for $ac_word... " >&6; } 3184 if ${ac_cv_prog_ac_ct_AS+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186 else 3187 if test -n "$ac_ct_AS"; then 3188 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3189 else 3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191 for as_dir in $PATH 3192 do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3197 ac_cv_prog_ac_ct_AS="as" 3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3199 break 2 3200 fi 3201 done 3202 done 3203 IFS=$as_save_IFS 3204 3205 fi 3206 fi 3207 ac_ct_AS=$ac_cv_prog_ac_ct_AS 3208 if test -n "$ac_ct_AS"; then 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3210 $as_echo "$ac_ct_AS" >&6; } 3211 else 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213 $as_echo "no" >&6; } 3214 fi 3215 3216 if test "x$ac_ct_AS" = x; then 3217 AS="false" 3218 else 3219 case $cross_compiling:$ac_tool_warned in 3220 yes:) 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3223 ac_tool_warned=yes ;; 3224 esac 3225 AS=$ac_ct_AS 3226 fi 3227 else 3228 AS="$ac_cv_prog_AS" 3229 fi 3230 3231 if test -n "$ac_tool_prefix"; then 3232 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3233 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3235 $as_echo_n "checking for $ac_word... " >&6; } 3236 if ${ac_cv_prog_DLLTOOL+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238 else 3239 if test -n "$DLLTOOL"; then 3240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3241 else 3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243 for as_dir in $PATH 3244 do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3249 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253 done 3254 done 3255 IFS=$as_save_IFS 3256 3257 fi 3258 fi 3259 DLLTOOL=$ac_cv_prog_DLLTOOL 3260 if test -n "$DLLTOOL"; then 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 3262 $as_echo "$DLLTOOL" >&6; } 3263 else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3265 $as_echo "no" >&6; } 3266 fi 3267 3268 3269 fi 3270 if test -z "$ac_cv_prog_DLLTOOL"; then 3271 ac_ct_DLLTOOL=$DLLTOOL 3272 # Extract the first word of "dlltool", so it can be a program name with args. 3273 set dummy dlltool; ac_word=$2 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3275 $as_echo_n "checking for $ac_word... " >&6; } 3276 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278 else 3279 if test -n "$ac_ct_DLLTOOL"; then 3280 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3281 else 3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283 for as_dir in $PATH 3284 do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3289 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293 done 3294 done 3295 IFS=$as_save_IFS 3296 3297 fi 3298 fi 3299 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3300 if test -n "$ac_ct_DLLTOOL"; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 3302 $as_echo "$ac_ct_DLLTOOL" >&6; } 3303 else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305 $as_echo "no" >&6; } 3306 fi 3307 3308 if test "x$ac_ct_DLLTOOL" = x; then 3309 DLLTOOL="false" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312 yes:) 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3315 ac_tool_warned=yes ;; 3316 esac 3317 DLLTOOL=$ac_ct_DLLTOOL 3318 fi 3319 else 3320 DLLTOOL="$ac_cv_prog_DLLTOOL" 3321 fi 3322 3323 if test -n "$ac_tool_prefix"; then 3324 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3325 set dummy ${ac_tool_prefix}objdump; ac_word=$2 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327 $as_echo_n "checking for $ac_word... " >&6; } 3328 if ${ac_cv_prog_OBJDUMP+:} false; then : 3329 $as_echo_n "(cached) " >&6 3330 else 3331 if test -n "$OBJDUMP"; then 3332 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3333 else 3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3335 for as_dir in $PATH 3336 do 3337 IFS=$as_save_IFS 3338 test -z "$as_dir" && as_dir=. 3339 for ac_exec_ext in '' $ac_executable_extensions; do 3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3341 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3343 break 2 3344 fi 3345 done 3346 done 3347 IFS=$as_save_IFS 3348 3349 fi 3350 fi 3351 OBJDUMP=$ac_cv_prog_OBJDUMP 3352 if test -n "$OBJDUMP"; then 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 3354 $as_echo "$OBJDUMP" >&6; } 3355 else 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3357 $as_echo "no" >&6; } 3358 fi 3359 3360 3361 fi 3362 if test -z "$ac_cv_prog_OBJDUMP"; then 3363 ac_ct_OBJDUMP=$OBJDUMP 3364 # Extract the first word of "objdump", so it can be a program name with args. 3365 set dummy objdump; ac_word=$2 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3367 $as_echo_n "checking for $ac_word... " >&6; } 3368 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370 else 3371 if test -n "$ac_ct_OBJDUMP"; then 3372 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 3373 else 3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3375 for as_dir in $PATH 3376 do 3377 IFS=$as_save_IFS 3378 test -z "$as_dir" && as_dir=. 3379 for ac_exec_ext in '' $ac_executable_extensions; do 3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3381 ac_cv_prog_ac_ct_OBJDUMP="objdump" 3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3383 break 2 3384 fi 3385 done 3386 done 3387 IFS=$as_save_IFS 3388 3389 fi 3390 fi 3391 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 3392 if test -n "$ac_ct_OBJDUMP"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 3394 $as_echo "$ac_ct_OBJDUMP" >&6; } 3395 else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397 $as_echo "no" >&6; } 3398 fi 3399 3400 if test "x$ac_ct_OBJDUMP" = x; then 3401 OBJDUMP="false" 3402 else 3403 case $cross_compiling:$ac_tool_warned in 3404 yes:) 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3407 ac_tool_warned=yes ;; 3408 esac 3409 OBJDUMP=$ac_ct_OBJDUMP 3410 fi 3411 else 3412 OBJDUMP="$ac_cv_prog_OBJDUMP" 3413 fi 3414 3415 ;; 3416 esac 3417 3418 test -z "$AS" && AS=as 3419 3420 3421 3422 3423 3424 test -z "$DLLTOOL" && DLLTOOL=dlltool 3425 3426 3427 3428 3429 3430 test -z "$OBJDUMP" && OBJDUMP=objdump 3431 3432 3433 3434 3435 3436 3437 3438 case `pwd` in 3439 *\ * | *\ *) 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3441 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3442 esac 3443 3444 3445 3446 macro_version='2.4.6' 3447 macro_revision='2.4.6' 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 ltmain=$ac_aux_dir/ltmain.sh 3462 3463 # Backslashify metacharacters that are still active within 3464 # double-quoted strings. 3465 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3466 3467 # Same as above, but do not quote variable references. 3468 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3469 3470 # Sed substitution to delay expansion of an escaped shell variable in a 3471 # double_quote_subst'ed string. 3472 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3473 3474 # Sed substitution to delay expansion of an escaped single quote. 3475 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3476 3477 # Sed substitution to avoid accidental globbing in evaled expressions 3478 no_glob_subst='s/\*/\\\*/g' 3479 3480 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3481 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3482 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3483 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3485 $as_echo_n "checking how to print strings... " >&6; } 3486 # Test print first, because it will be a builtin if present. 3487 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3488 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3489 ECHO='print -r --' 3490 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3491 ECHO='printf %s\n' 3492 else 3493 # Use this function as a fallback that always works. 3494 func_fallback_echo () 3495 { 3496 eval 'cat <<_LTECHO_EOF 3497 $1 3498 _LTECHO_EOF' 3499 } 3500 ECHO='func_fallback_echo' 3501 fi 3502 3503 # func_echo_all arg... 3504 # Invoke $ECHO with all args, space-separated. 3505 func_echo_all () 3506 { 3507 $ECHO "" 3508 } 3509 3510 case $ECHO in 3511 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3512 $as_echo "printf" >&6; } ;; 3513 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3514 $as_echo "print -r" >&6; } ;; 3515 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3516 $as_echo "cat" >&6; } ;; 3517 esac 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 DEPDIR="${am__leading_dot}deps" 3533 3534 ac_config_commands="$ac_config_commands depfiles" 3535 3536 3537 am_make=${MAKE-make} 3538 cat > confinc << 'END' 3539 am__doit: 3540 @echo this is the am__doit target 3541 .PHONY: am__doit 3542 END 3543 # If we don't find an include directive, just comment out the code. 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3545 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3546 am__include="#" 3547 am__quote= 3548 _am_result=none 3549 # First try GNU make style include. 3550 echo "include confinc" > confmf 3551 # Ignore all kinds of additional output from 'make'. 3552 case `$am_make -s -f confmf 2> /dev/null` in #( 3553 *the\ am__doit\ target*) 3554 am__include=include 3555 am__quote= 3556 _am_result=GNU 3557 ;; 3558 esac 3559 # Now try BSD make style include. 3560 if test "$am__include" = "#"; then 3561 echo '.include "confinc"' > confmf 3562 case `$am_make -s -f confmf 2> /dev/null` in #( 3563 *the\ am__doit\ target*) 3564 am__include=.include 3565 am__quote="\"" 3566 _am_result=BSD 3567 ;; 3568 esac 3569 fi 3570 3571 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3573 $as_echo "$_am_result" >&6; } 3574 rm -f confinc confmf 3575 3576 # Check whether --enable-dependency-tracking was given. 3577 if test "${enable_dependency_tracking+set}" = set; then : 3578 enableval=$enable_dependency_tracking; 3579 fi 3580 3581 if test "x$enable_dependency_tracking" != xno; then 3582 am_depcomp="$ac_aux_dir/depcomp" 3583 AMDEPBACKSLASH='\' 3584 am__nodep='_no' 3585 fi 3586 if test "x$enable_dependency_tracking" != xno; then 3587 AMDEP_TRUE= 3588 AMDEP_FALSE='#' 3589 else 3590 AMDEP_TRUE='#' 3591 AMDEP_FALSE= 3592 fi 3593 3594 3595 ac_ext=c 3596 ac_cpp='$CPP $CPPFLAGS' 3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3600 if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3602 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604 $as_echo_n "checking for $ac_word... " >&6; } 3605 if ${ac_cv_prog_CC+:} false; then : 3606 $as_echo_n "(cached) " >&6 3607 else 3608 if test -n "$CC"; then 3609 ac_cv_prog_CC="$CC" # Let the user override the test. 3610 else 3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3612 for as_dir in $PATH 3613 do 3614 IFS=$as_save_IFS 3615 test -z "$as_dir" && as_dir=. 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622 done 3623 done 3624 IFS=$as_save_IFS 3625 3626 fi 3627 fi 3628 CC=$ac_cv_prog_CC 3629 if test -n "$CC"; then 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3631 $as_echo "$CC" >&6; } 3632 else 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3634 $as_echo "no" >&6; } 3635 fi 3636 3637 3638 fi 3639 if test -z "$ac_cv_prog_CC"; then 3640 ac_ct_CC=$CC 3641 # Extract the first word of "gcc", so it can be a program name with args. 3642 set dummy gcc; ac_word=$2 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644 $as_echo_n "checking for $ac_word... " >&6; } 3645 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647 else 3648 if test -n "$ac_ct_CC"; then 3649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3650 else 3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652 for as_dir in $PATH 3653 do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 for ac_exec_ext in '' $ac_executable_extensions; do 3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3658 ac_cv_prog_ac_ct_CC="gcc" 3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3660 break 2 3661 fi 3662 done 3663 done 3664 IFS=$as_save_IFS 3665 3666 fi 3667 fi 3668 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3669 if test -n "$ac_ct_CC"; then 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3671 $as_echo "$ac_ct_CC" >&6; } 3672 else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674 $as_echo "no" >&6; } 3675 fi 3676 3677 if test "x$ac_ct_CC" = x; then 3678 CC="" 3679 else 3680 case $cross_compiling:$ac_tool_warned in 3681 yes:) 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3684 ac_tool_warned=yes ;; 3685 esac 3686 CC=$ac_ct_CC 3687 fi 3688 else 3689 CC="$ac_cv_prog_CC" 3690 fi 3691 3692 if test -z "$CC"; then 3693 if test -n "$ac_tool_prefix"; then 3694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3695 set dummy ${ac_tool_prefix}cc; ac_word=$2 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3697 $as_echo_n "checking for $ac_word... " >&6; } 3698 if ${ac_cv_prog_CC+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700 else 3701 if test -n "$CC"; then 3702 ac_cv_prog_CC="$CC" # Let the user override the test. 3703 else 3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705 for as_dir in $PATH 3706 do 3707 IFS=$as_save_IFS 3708 test -z "$as_dir" && as_dir=. 3709 for ac_exec_ext in '' $ac_executable_extensions; do 3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3711 ac_cv_prog_CC="${ac_tool_prefix}cc" 3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3713 break 2 3714 fi 3715 done 3716 done 3717 IFS=$as_save_IFS 3718 3719 fi 3720 fi 3721 CC=$ac_cv_prog_CC 3722 if test -n "$CC"; then 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3724 $as_echo "$CC" >&6; } 3725 else 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3727 $as_echo "no" >&6; } 3728 fi 3729 3730 3731 fi 3732 fi 3733 if test -z "$CC"; then 3734 # Extract the first word of "cc", so it can be a program name with args. 3735 set dummy cc; ac_word=$2 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3737 $as_echo_n "checking for $ac_word... " >&6; } 3738 if ${ac_cv_prog_CC+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740 else 3741 if test -n "$CC"; then 3742 ac_cv_prog_CC="$CC" # Let the user override the test. 3743 else 3744 ac_prog_rejected=no 3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746 for as_dir in $PATH 3747 do 3748 IFS=$as_save_IFS 3749 test -z "$as_dir" && as_dir=. 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3753 ac_prog_rejected=yes 3754 continue 3755 fi 3756 ac_cv_prog_CC="cc" 3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3758 break 2 3759 fi 3760 done 3761 done 3762 IFS=$as_save_IFS 3763 3764 if test $ac_prog_rejected = yes; then 3765 # We found a bogon in the path, so make sure we never use it. 3766 set dummy $ac_cv_prog_CC 3767 shift 3768 if test $# != 0; then 3769 # We chose a different compiler from the bogus one. 3770 # However, it has the same basename, so the bogon will be chosen 3771 # first if we set CC to just the basename; use the full file name. 3772 shift 3773 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3774 fi 3775 fi 3776 fi 3777 fi 3778 CC=$ac_cv_prog_CC 3779 if test -n "$CC"; then 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3781 $as_echo "$CC" >&6; } 3782 else 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3784 $as_echo "no" >&6; } 3785 fi 3786 3787 3788 fi 3789 if test -z "$CC"; then 3790 if test -n "$ac_tool_prefix"; then 3791 for ac_prog in cl.exe 3792 do 3793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3796 $as_echo_n "checking for $ac_word... " >&6; } 3797 if ${ac_cv_prog_CC+:} false; then : 3798 $as_echo_n "(cached) " >&6 3799 else 3800 if test -n "$CC"; then 3801 ac_cv_prog_CC="$CC" # Let the user override the test. 3802 else 3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3804 for as_dir in $PATH 3805 do 3806 IFS=$as_save_IFS 3807 test -z "$as_dir" && as_dir=. 3808 for ac_exec_ext in '' $ac_executable_extensions; do 3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3810 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3812 break 2 3813 fi 3814 done 3815 done 3816 IFS=$as_save_IFS 3817 3818 fi 3819 fi 3820 CC=$ac_cv_prog_CC 3821 if test -n "$CC"; then 3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3823 $as_echo "$CC" >&6; } 3824 else 3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3826 $as_echo "no" >&6; } 3827 fi 3828 3829 3830 test -n "$CC" && break 3831 done 3832 fi 3833 if test -z "$CC"; then 3834 ac_ct_CC=$CC 3835 for ac_prog in cl.exe 3836 do 3837 # Extract the first word of "$ac_prog", so it can be a program name with args. 3838 set dummy $ac_prog; ac_word=$2 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3840 $as_echo_n "checking for $ac_word... " >&6; } 3841 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843 else 3844 if test -n "$ac_ct_CC"; then 3845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3846 else 3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3848 for as_dir in $PATH 3849 do 3850 IFS=$as_save_IFS 3851 test -z "$as_dir" && as_dir=. 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3854 ac_cv_prog_ac_ct_CC="$ac_prog" 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3856 break 2 3857 fi 3858 done 3859 done 3860 IFS=$as_save_IFS 3861 3862 fi 3863 fi 3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3865 if test -n "$ac_ct_CC"; then 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3867 $as_echo "$ac_ct_CC" >&6; } 3868 else 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3870 $as_echo "no" >&6; } 3871 fi 3872 3873 3874 test -n "$ac_ct_CC" && break 3875 done 3876 3877 if test "x$ac_ct_CC" = x; then 3878 CC="" 3879 else 3880 case $cross_compiling:$ac_tool_warned in 3881 yes:) 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3884 ac_tool_warned=yes ;; 3885 esac 3886 CC=$ac_ct_CC 3887 fi 3888 fi 3889 3890 fi 3891 3892 3893 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895 as_fn_error $? "no acceptable C compiler found in \$PATH 3896 See \`config.log' for more details" "$LINENO" 5; } 3897 3898 # Provide some information about the compiler. 3899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3900 set X $ac_compile 3901 ac_compiler=$2 3902 for ac_option in --version -v -V -qversion; do 3903 { { ac_try="$ac_compiler $ac_option >&5" 3904 case "(($ac_try" in 3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3906 *) ac_try_echo=$ac_try;; 3907 esac 3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3909 $as_echo "$ac_try_echo"; } >&5 3910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3911 ac_status=$? 3912 if test -s conftest.err; then 3913 sed '10a\ 3914 ... rest of stderr output deleted ... 3915 10q' conftest.err >conftest.er1 3916 cat conftest.er1 >&5 3917 fi 3918 rm -f conftest.er1 conftest.err 3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3920 test $ac_status = 0; } 3921 done 3922 3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3924 /* end confdefs.h. */ 3925 3926 int 3927 main () 3928 { 3929 3930 ; 3931 return 0; 3932 } 3933 _ACEOF 3934 ac_clean_files_save=$ac_clean_files 3935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3936 # Try to create an executable without -o first, disregard a.out. 3937 # It will help us diagnose broken compilers, and finding out an intuition 3938 # of exeext. 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3940 $as_echo_n "checking whether the C compiler works... " >&6; } 3941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3942 3943 # The possible output files: 3944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3945 3946 ac_rmfiles= 3947 for ac_file in $ac_files 3948 do 3949 case $ac_file in 3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3951 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3952 esac 3953 done 3954 rm -f $ac_rmfiles 3955 3956 if { { ac_try="$ac_link_default" 3957 case "(($ac_try" in 3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3959 *) ac_try_echo=$ac_try;; 3960 esac 3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3962 $as_echo "$ac_try_echo"; } >&5 3963 (eval "$ac_link_default") 2>&5 3964 ac_status=$? 3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3966 test $ac_status = 0; }; then : 3967 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3969 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3970 # so that the user can short-circuit this test for compilers unknown to 3971 # Autoconf. 3972 for ac_file in $ac_files '' 3973 do 3974 test -f "$ac_file" || continue 3975 case $ac_file in 3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3977 ;; 3978 [ab].out ) 3979 # We found the default executable, but exeext='' is most 3980 # certainly right. 3981 break;; 3982 *.* ) 3983 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3984 then :; else 3985 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3986 fi 3987 # We set ac_cv_exeext here because the later test for it is not 3988 # safe: cross compilers may not add the suffix if given an `-o' 3989 # argument, so we may need to know it at that point already. 3990 # Even if this section looks crufty: it has the advantage of 3991 # actually working. 3992 break;; 3993 * ) 3994 break;; 3995 esac 3996 done 3997 test "$ac_cv_exeext" = no && ac_cv_exeext= 3998 3999 else 4000 ac_file='' 4001 fi 4002 if test -z "$ac_file"; then : 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004 $as_echo "no" >&6; } 4005 $as_echo "$as_me: failed program was:" >&5 4006 sed 's/^/| /' conftest.$ac_ext >&5 4007 4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4010 as_fn_error 77 "C compiler cannot create executables 4011 See \`config.log' for more details" "$LINENO" 5; } 4012 else 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4014 $as_echo "yes" >&6; } 4015 fi 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4017 $as_echo_n "checking for C compiler default output file name... " >&6; } 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4019 $as_echo "$ac_file" >&6; } 4020 ac_exeext=$ac_cv_exeext 4021 4022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4023 ac_clean_files=$ac_clean_files_save 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4025 $as_echo_n "checking for suffix of executables... " >&6; } 4026 if { { ac_try="$ac_link" 4027 case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030 esac 4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032 $as_echo "$ac_try_echo"; } >&5 4033 (eval "$ac_link") 2>&5 4034 ac_status=$? 4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4036 test $ac_status = 0; }; then : 4037 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4038 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4039 # work properly (i.e., refer to `conftest.exe'), while it won't with 4040 # `rm'. 4041 for ac_file in conftest.exe conftest conftest.*; do 4042 test -f "$ac_file" || continue 4043 case $ac_file in 4044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4046 break;; 4047 * ) break;; 4048 esac 4049 done 4050 else 4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4054 See \`config.log' for more details" "$LINENO" 5; } 4055 fi 4056 rm -f conftest conftest$ac_cv_exeext 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4058 $as_echo "$ac_cv_exeext" >&6; } 4059 4060 rm -f conftest.$ac_ext 4061 EXEEXT=$ac_cv_exeext 4062 ac_exeext=$EXEEXT 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064 /* end confdefs.h. */ 4065 #include <stdio.h> 4066 int 4067 main () 4068 { 4069 FILE *f = fopen ("conftest.out", "w"); 4070 return ferror (f) || fclose (f) != 0; 4071 4072 ; 4073 return 0; 4074 } 4075 _ACEOF 4076 ac_clean_files="$ac_clean_files conftest.out" 4077 # Check that the compiler produces executables we can run. If not, either 4078 # the compiler is broken, or we cross compile. 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4080 $as_echo_n "checking whether we are cross compiling... " >&6; } 4081 if test "$cross_compiling" != yes; then 4082 { { ac_try="$ac_link" 4083 case "(($ac_try" in 4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4085 *) ac_try_echo=$ac_try;; 4086 esac 4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4088 $as_echo "$ac_try_echo"; } >&5 4089 (eval "$ac_link") 2>&5 4090 ac_status=$? 4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4092 test $ac_status = 0; } 4093 if { ac_try='./conftest$ac_cv_exeext' 4094 { { case "(($ac_try" in 4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4096 *) ac_try_echo=$ac_try;; 4097 esac 4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4099 $as_echo "$ac_try_echo"; } >&5 4100 (eval "$ac_try") 2>&5 4101 ac_status=$? 4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4103 test $ac_status = 0; }; }; then 4104 cross_compiling=no 4105 else 4106 if test "$cross_compiling" = maybe; then 4107 cross_compiling=yes 4108 else 4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4111 as_fn_error $? "cannot run C compiled programs. 4112 If you meant to cross compile, use \`--host'. 4113 See \`config.log' for more details" "$LINENO" 5; } 4114 fi 4115 fi 4116 fi 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4118 $as_echo "$cross_compiling" >&6; } 4119 4120 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4121 ac_clean_files=$ac_clean_files_save 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4123 $as_echo_n "checking for suffix of object files... " >&6; } 4124 if ${ac_cv_objext+:} false; then : 4125 $as_echo_n "(cached) " >&6 4126 else 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128 /* end confdefs.h. */ 4129 4130 int 4131 main () 4132 { 4133 4134 ; 4135 return 0; 4136 } 4137 _ACEOF 4138 rm -f conftest.o conftest.obj 4139 if { { ac_try="$ac_compile" 4140 case "(($ac_try" in 4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4142 *) ac_try_echo=$ac_try;; 4143 esac 4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4145 $as_echo "$ac_try_echo"; } >&5 4146 (eval "$ac_compile") 2>&5 4147 ac_status=$? 4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4149 test $ac_status = 0; }; then : 4150 for ac_file in conftest.o conftest.obj conftest.*; do 4151 test -f "$ac_file" || continue; 4152 case $ac_file in 4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4155 break;; 4156 esac 4157 done 4158 else 4159 $as_echo "$as_me: failed program was:" >&5 4160 sed 's/^/| /' conftest.$ac_ext >&5 4161 4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4164 as_fn_error $? "cannot compute suffix of object files: cannot compile 4165 See \`config.log' for more details" "$LINENO" 5; } 4166 fi 4167 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4168 fi 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4170 $as_echo "$ac_cv_objext" >&6; } 4171 OBJEXT=$ac_cv_objext 4172 ac_objext=$OBJEXT 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4174 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4175 if ${ac_cv_c_compiler_gnu+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177 else 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179 /* end confdefs.h. */ 4180 4181 int 4182 main () 4183 { 4184 #ifndef __GNUC__ 4185 choke me 4186 #endif 4187 4188 ; 4189 return 0; 4190 } 4191 _ACEOF 4192 if ac_fn_c_try_compile "$LINENO"; then : 4193 ac_compiler_gnu=yes 4194 else 4195 ac_compiler_gnu=no 4196 fi 4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4198 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4199 4200 fi 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4202 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4203 if test $ac_compiler_gnu = yes; then 4204 GCC=yes 4205 else 4206 GCC= 4207 fi 4208 ac_test_CFLAGS=${CFLAGS+set} 4209 ac_save_CFLAGS=$CFLAGS 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4211 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4212 if ${ac_cv_prog_cc_g+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214 else 4215 ac_save_c_werror_flag=$ac_c_werror_flag 4216 ac_c_werror_flag=yes 4217 ac_cv_prog_cc_g=no 4218 CFLAGS="-g" 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220 /* end confdefs.h. */ 4221 4222 int 4223 main () 4224 { 4225 4226 ; 4227 return 0; 4228 } 4229 _ACEOF 4230 if ac_fn_c_try_compile "$LINENO"; then : 4231 ac_cv_prog_cc_g=yes 4232 else 4233 CFLAGS="" 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235 /* end confdefs.h. */ 4236 4237 int 4238 main () 4239 { 4240 4241 ; 4242 return 0; 4243 } 4244 _ACEOF 4245 if ac_fn_c_try_compile "$LINENO"; then : 4246 4247 else 4248 ac_c_werror_flag=$ac_save_c_werror_flag 4249 CFLAGS="-g" 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251 /* end confdefs.h. */ 4252 4253 int 4254 main () 4255 { 4256 4257 ; 4258 return 0; 4259 } 4260 _ACEOF 4261 if ac_fn_c_try_compile "$LINENO"; then : 4262 ac_cv_prog_cc_g=yes 4263 fi 4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4265 fi 4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4267 fi 4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4269 ac_c_werror_flag=$ac_save_c_werror_flag 4270 fi 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4272 $as_echo "$ac_cv_prog_cc_g" >&6; } 4273 if test "$ac_test_CFLAGS" = set; then 4274 CFLAGS=$ac_save_CFLAGS 4275 elif test $ac_cv_prog_cc_g = yes; then 4276 if test "$GCC" = yes; then 4277 CFLAGS="-g -O2" 4278 else 4279 CFLAGS="-g" 4280 fi 4281 else 4282 if test "$GCC" = yes; then 4283 CFLAGS="-O2" 4284 else 4285 CFLAGS= 4286 fi 4287 fi 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4290 if ${ac_cv_prog_cc_c89+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292 else 4293 ac_cv_prog_cc_c89=no 4294 ac_save_CC=$CC 4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296 /* end confdefs.h. */ 4297 #include <stdarg.h> 4298 #include <stdio.h> 4299 struct stat; 4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4301 struct buf { int x; }; 4302 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4303 static char *e (p, i) 4304 char **p; 4305 int i; 4306 { 4307 return p[i]; 4308 } 4309 static char *f (char * (*g) (char **, int), char **p, ...) 4310 { 4311 char *s; 4312 va_list v; 4313 va_start (v,p); 4314 s = g (p, va_arg (v,int)); 4315 va_end (v); 4316 return s; 4317 } 4318 4319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4320 function prototypes and stuff, but not '\xHH' hex character constants. 4321 These don't provoke an error unfortunately, instead are silently treated 4322 as 'x'. The following induces an error, until -std is added to get 4323 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4324 array size at least. It's necessary to write '\x00'==0 to get something 4325 that's true only with -std. */ 4326 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4327 4328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4329 inside strings and character constants. */ 4330 #define FOO(x) 'x' 4331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4332 4333 int test (int i, double x); 4334 struct s1 {int (*f) (int a);}; 4335 struct s2 {int (*f) (double a);}; 4336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4337 int argc; 4338 char **argv; 4339 int 4340 main () 4341 { 4342 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4343 ; 4344 return 0; 4345 } 4346 _ACEOF 4347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4348 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4349 do 4350 CC="$ac_save_CC $ac_arg" 4351 if ac_fn_c_try_compile "$LINENO"; then : 4352 ac_cv_prog_cc_c89=$ac_arg 4353 fi 4354 rm -f core conftest.err conftest.$ac_objext 4355 test "x$ac_cv_prog_cc_c89" != "xno" && break 4356 done 4357 rm -f conftest.$ac_ext 4358 CC=$ac_save_CC 4359 4360 fi 4361 # AC_CACHE_VAL 4362 case "x$ac_cv_prog_cc_c89" in 4363 x) 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4365 $as_echo "none needed" >&6; } ;; 4366 xno) 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4368 $as_echo "unsupported" >&6; } ;; 4369 *) 4370 CC="$CC $ac_cv_prog_cc_c89" 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4372 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4373 esac 4374 if test "x$ac_cv_prog_cc_c89" != xno; then : 4375 4376 fi 4377 4378 ac_ext=c 4379 ac_cpp='$CPP $CPPFLAGS' 4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4383 4384 ac_ext=c 4385 ac_cpp='$CPP $CPPFLAGS' 4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4390 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4391 if ${am_cv_prog_cc_c_o+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393 else 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395 /* end confdefs.h. */ 4396 4397 int 4398 main () 4399 { 4400 4401 ; 4402 return 0; 4403 } 4404 _ACEOF 4405 # Make sure it works both with $CC and with simple cc. 4406 # Following AC_PROG_CC_C_O, we do the test twice because some 4407 # compilers refuse to overwrite an existing .o file with -o, 4408 # though they will create one. 4409 am_cv_prog_cc_c_o=yes 4410 for am_i in 1 2; do 4411 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4412 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4413 ac_status=$? 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); } \ 4416 && test -f conftest2.$ac_objext; then 4417 : OK 4418 else 4419 am_cv_prog_cc_c_o=no 4420 break 4421 fi 4422 done 4423 rm -f core conftest* 4424 unset am_i 4425 fi 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4427 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4428 if test "$am_cv_prog_cc_c_o" != yes; then 4429 # Losing compiler, so override with the script. 4430 # FIXME: It is wrong to rewrite CC. 4431 # But if we don't then we get into trouble of one sort or another. 4432 # A longer-term fix would be to have automake use am__CC in this case, 4433 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4434 CC="$am_aux_dir/compile $CC" 4435 fi 4436 ac_ext=c 4437 ac_cpp='$CPP $CPPFLAGS' 4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4441 4442 4443 depcc="$CC" am_compiler_list= 4444 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4446 $as_echo_n "checking dependency style of $depcc... " >&6; } 4447 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449 else 4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4451 # We make a subdir and do the tests there. Otherwise we can end up 4452 # making bogus files that we don't know about and never remove. For 4453 # instance it was reported that on HP-UX the gcc test will end up 4454 # making a dummy file named 'D' -- because '-MD' means "put the output 4455 # in D". 4456 rm -rf conftest.dir 4457 mkdir conftest.dir 4458 # Copy depcomp to subdir because otherwise we won't find it if we're 4459 # using a relative directory. 4460 cp "$am_depcomp" conftest.dir 4461 cd conftest.dir 4462 # We will build objects and dependencies in a subdirectory because 4463 # it helps to detect inapplicable dependency modes. For instance 4464 # both Tru64's cc and ICC support -MD to output dependencies as a 4465 # side effect of compilation, but ICC will put the dependencies in 4466 # the current directory while Tru64 will put them in the object 4467 # directory. 4468 mkdir sub 4469 4470 am_cv_CC_dependencies_compiler_type=none 4471 if test "$am_compiler_list" = ""; then 4472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4473 fi 4474 am__universal=false 4475 case " $depcc " in #( 4476 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4477 esac 4478 4479 for depmode in $am_compiler_list; do 4480 # Setup a source with many dependencies, because some compilers 4481 # like to wrap large dependency lists on column 80 (with \), and 4482 # we should not choose a depcomp mode which is confused by this. 4483 # 4484 # We need to recreate these files for each test, as the compiler may 4485 # overwrite some of them when testing with obscure command lines. 4486 # This happens at least with the AIX C compiler. 4487 : > sub/conftest.c 4488 for i in 1 2 3 4 5 6; do 4489 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4491 # Solaris 10 /bin/sh. 4492 echo '/* dummy */' > sub/conftst$i.h 4493 done 4494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4495 4496 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4497 # mode. It turns out that the SunPro C++ compiler does not properly 4498 # handle '-M -o', and we need to detect this. Also, some Intel 4499 # versions had trouble with output in subdirs. 4500 am__obj=sub/conftest.${OBJEXT-o} 4501 am__minus_obj="-o $am__obj" 4502 case $depmode in 4503 gcc) 4504 # This depmode causes a compiler race in universal mode. 4505 test "$am__universal" = false || continue 4506 ;; 4507 nosideeffect) 4508 # After this tag, mechanisms are not by side-effect, so they'll 4509 # only be used when explicitly requested. 4510 if test "x$enable_dependency_tracking" = xyes; then 4511 continue 4512 else 4513 break 4514 fi 4515 ;; 4516 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4517 # This compiler won't grok '-c -o', but also, the minuso test has 4518 # not run yet. These depmodes are late enough in the game, and 4519 # so weak that their functioning should not be impacted. 4520 am__obj=conftest.${OBJEXT-o} 4521 am__minus_obj= 4522 ;; 4523 none) break ;; 4524 esac 4525 if depmode=$depmode \ 4526 source=sub/conftest.c object=$am__obj \ 4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4529 >/dev/null 2>conftest.err && 4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4534 # icc doesn't choke on unknown options, it will just issue warnings 4535 # or remarks (even with -Werror). So we grep stderr for any message 4536 # that says an option was ignored or not supported. 4537 # When given -MP, icc 7.0 and 7.1 complain thusly: 4538 # icc: Command line warning: ignoring option '-M'; no argument required 4539 # The diagnosis changed in icc 8.0: 4540 # icc: Command line remark: option '-MP' not supported 4541 if (grep 'ignoring option' conftest.err || 4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4543 am_cv_CC_dependencies_compiler_type=$depmode 4544 break 4545 fi 4546 fi 4547 done 4548 4549 cd .. 4550 rm -rf conftest.dir 4551 else 4552 am_cv_CC_dependencies_compiler_type=none 4553 fi 4554 4555 fi 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4559 4560 if 4561 test "x$enable_dependency_tracking" != xno \ 4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4563 am__fastdepCC_TRUE= 4564 am__fastdepCC_FALSE='#' 4565 else 4566 am__fastdepCC_TRUE='#' 4567 am__fastdepCC_FALSE= 4568 fi 4569 4570 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4572 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4573 if ${ac_cv_path_SED+:} false; then : 4574 $as_echo_n "(cached) " >&6 4575 else 4576 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4577 for ac_i in 1 2 3 4 5 6 7; do 4578 ac_script="$ac_script$as_nl$ac_script" 4579 done 4580 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4581 { ac_script=; unset ac_script;} 4582 if test -z "$SED"; then 4583 ac_path_SED_found=false 4584 # Loop through the user's path and test for each of PROGNAME-LIST 4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586 for as_dir in $PATH 4587 do 4588 IFS=$as_save_IFS 4589 test -z "$as_dir" && as_dir=. 4590 for ac_prog in sed gsed; do 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4593 as_fn_executable_p "$ac_path_SED" || continue 4594 # Check for GNU ac_path_SED and select it if it is found. 4595 # Check for GNU $ac_path_SED 4596 case `"$ac_path_SED" --version 2>&1` in 4597 *GNU*) 4598 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4599 *) 4600 ac_count=0 4601 $as_echo_n 0123456789 >"conftest.in" 4602 while : 4603 do 4604 cat "conftest.in" "conftest.in" >"conftest.tmp" 4605 mv "conftest.tmp" "conftest.in" 4606 cp "conftest.in" "conftest.nl" 4607 $as_echo '' >> "conftest.nl" 4608 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4610 as_fn_arith $ac_count + 1 && ac_count=$as_val 4611 if test $ac_count -gt ${ac_path_SED_max-0}; then 4612 # Best one so far, save it but keep looking for a better one 4613 ac_cv_path_SED="$ac_path_SED" 4614 ac_path_SED_max=$ac_count 4615 fi 4616 # 10*(2^10) chars as input seems more than enough 4617 test $ac_count -gt 10 && break 4618 done 4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4620 esac 4621 4622 $ac_path_SED_found && break 3 4623 done 4624 done 4625 done 4626 IFS=$as_save_IFS 4627 if test -z "$ac_cv_path_SED"; then 4628 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4629 fi 4630 else 4631 ac_cv_path_SED=$SED 4632 fi 4633 4634 fi 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4636 $as_echo "$ac_cv_path_SED" >&6; } 4637 SED="$ac_cv_path_SED" 4638 rm -f conftest.sed 4639 4640 test -z "$SED" && SED=sed 4641 Xsed="$SED -e 1s/^X//" 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4654 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4655 if ${ac_cv_path_GREP+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657 else 4658 if test -z "$GREP"; then 4659 ac_path_GREP_found=false 4660 # Loop through the user's path and test for each of PROGNAME-LIST 4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4663 do 4664 IFS=$as_save_IFS 4665 test -z "$as_dir" && as_dir=. 4666 for ac_prog in grep ggrep; do 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4669 as_fn_executable_p "$ac_path_GREP" || continue 4670 # Check for GNU ac_path_GREP and select it if it is found. 4671 # Check for GNU $ac_path_GREP 4672 case `"$ac_path_GREP" --version 2>&1` in 4673 *GNU*) 4674 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4675 *) 4676 ac_count=0 4677 $as_echo_n 0123456789 >"conftest.in" 4678 while : 4679 do 4680 cat "conftest.in" "conftest.in" >"conftest.tmp" 4681 mv "conftest.tmp" "conftest.in" 4682 cp "conftest.in" "conftest.nl" 4683 $as_echo 'GREP' >> "conftest.nl" 4684 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4686 as_fn_arith $ac_count + 1 && ac_count=$as_val 4687 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4688 # Best one so far, save it but keep looking for a better one 4689 ac_cv_path_GREP="$ac_path_GREP" 4690 ac_path_GREP_max=$ac_count 4691 fi 4692 # 10*(2^10) chars as input seems more than enough 4693 test $ac_count -gt 10 && break 4694 done 4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4696 esac 4697 4698 $ac_path_GREP_found && break 3 4699 done 4700 done 4701 done 4702 IFS=$as_save_IFS 4703 if test -z "$ac_cv_path_GREP"; then 4704 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4705 fi 4706 else 4707 ac_cv_path_GREP=$GREP 4708 fi 4709 4710 fi 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4712 $as_echo "$ac_cv_path_GREP" >&6; } 4713 GREP="$ac_cv_path_GREP" 4714 4715 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4717 $as_echo_n "checking for egrep... " >&6; } 4718 if ${ac_cv_path_EGREP+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720 else 4721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4722 then ac_cv_path_EGREP="$GREP -E" 4723 else 4724 if test -z "$EGREP"; then 4725 ac_path_EGREP_found=false 4726 # Loop through the user's path and test for each of PROGNAME-LIST 4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4729 do 4730 IFS=$as_save_IFS 4731 test -z "$as_dir" && as_dir=. 4732 for ac_prog in egrep; do 4733 for ac_exec_ext in '' $ac_executable_extensions; do 4734 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4735 as_fn_executable_p "$ac_path_EGREP" || continue 4736 # Check for GNU ac_path_EGREP and select it if it is found. 4737 # Check for GNU $ac_path_EGREP 4738 case `"$ac_path_EGREP" --version 2>&1` in 4739 *GNU*) 4740 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4741 *) 4742 ac_count=0 4743 $as_echo_n 0123456789 >"conftest.in" 4744 while : 4745 do 4746 cat "conftest.in" "conftest.in" >"conftest.tmp" 4747 mv "conftest.tmp" "conftest.in" 4748 cp "conftest.in" "conftest.nl" 4749 $as_echo 'EGREP' >> "conftest.nl" 4750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4752 as_fn_arith $ac_count + 1 && ac_count=$as_val 4753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4754 # Best one so far, save it but keep looking for a better one 4755 ac_cv_path_EGREP="$ac_path_EGREP" 4756 ac_path_EGREP_max=$ac_count 4757 fi 4758 # 10*(2^10) chars as input seems more than enough 4759 test $ac_count -gt 10 && break 4760 done 4761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4762 esac 4763 4764 $ac_path_EGREP_found && break 3 4765 done 4766 done 4767 done 4768 IFS=$as_save_IFS 4769 if test -z "$ac_cv_path_EGREP"; then 4770 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4771 fi 4772 else 4773 ac_cv_path_EGREP=$EGREP 4774 fi 4775 4776 fi 4777 fi 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4779 $as_echo "$ac_cv_path_EGREP" >&6; } 4780 EGREP="$ac_cv_path_EGREP" 4781 4782 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4784 $as_echo_n "checking for fgrep... " >&6; } 4785 if ${ac_cv_path_FGREP+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787 else 4788 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4789 then ac_cv_path_FGREP="$GREP -F" 4790 else 4791 if test -z "$FGREP"; then 4792 ac_path_FGREP_found=false 4793 # Loop through the user's path and test for each of PROGNAME-LIST 4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4796 do 4797 IFS=$as_save_IFS 4798 test -z "$as_dir" && as_dir=. 4799 for ac_prog in fgrep; do 4800 for ac_exec_ext in '' $ac_executable_extensions; do 4801 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4802 as_fn_executable_p "$ac_path_FGREP" || continue 4803 # Check for GNU ac_path_FGREP and select it if it is found. 4804 # Check for GNU $ac_path_FGREP 4805 case `"$ac_path_FGREP" --version 2>&1` in 4806 *GNU*) 4807 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4808 *) 4809 ac_count=0 4810 $as_echo_n 0123456789 >"conftest.in" 4811 while : 4812 do 4813 cat "conftest.in" "conftest.in" >"conftest.tmp" 4814 mv "conftest.tmp" "conftest.in" 4815 cp "conftest.in" "conftest.nl" 4816 $as_echo 'FGREP' >> "conftest.nl" 4817 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4819 as_fn_arith $ac_count + 1 && ac_count=$as_val 4820 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4821 # Best one so far, save it but keep looking for a better one 4822 ac_cv_path_FGREP="$ac_path_FGREP" 4823 ac_path_FGREP_max=$ac_count 4824 fi 4825 # 10*(2^10) chars as input seems more than enough 4826 test $ac_count -gt 10 && break 4827 done 4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4829 esac 4830 4831 $ac_path_FGREP_found && break 3 4832 done 4833 done 4834 done 4835 IFS=$as_save_IFS 4836 if test -z "$ac_cv_path_FGREP"; then 4837 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4838 fi 4839 else 4840 ac_cv_path_FGREP=$FGREP 4841 fi 4842 4843 fi 4844 fi 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4846 $as_echo "$ac_cv_path_FGREP" >&6; } 4847 FGREP="$ac_cv_path_FGREP" 4848 4849 4850 test -z "$GREP" && GREP=grep 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 # Check whether --with-gnu-ld was given. 4871 if test "${with_gnu_ld+set}" = set; then : 4872 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4873 else 4874 with_gnu_ld=no 4875 fi 4876 4877 ac_prog=ld 4878 if test yes = "$GCC"; then 4879 # Check if gcc -print-prog-name=ld gives a path. 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4881 $as_echo_n "checking for ld used by $CC... " >&6; } 4882 case $host in 4883 *-*-mingw*) 4884 # gcc leaves a trailing carriage return, which upsets mingw 4885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4886 *) 4887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4888 esac 4889 case $ac_prog in 4890 # Accept absolute paths. 4891 [\\/]* | ?:[\\/]*) 4892 re_direlt='/[^/][^/]*/\.\./' 4893 # Canonicalize the pathname of ld 4894 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4895 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4896 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4897 done 4898 test -z "$LD" && LD=$ac_prog 4899 ;; 4900 "") 4901 # If it fails, then pretend we aren't using GCC. 4902 ac_prog=ld 4903 ;; 4904 *) 4905 # If it is relative, then search for the first ld in PATH. 4906 with_gnu_ld=unknown 4907 ;; 4908 esac 4909 elif test yes = "$with_gnu_ld"; then 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4911 $as_echo_n "checking for GNU ld... " >&6; } 4912 else 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4914 $as_echo_n "checking for non-GNU ld... " >&6; } 4915 fi 4916 if ${lt_cv_path_LD+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918 else 4919 if test -z "$LD"; then 4920 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4921 for ac_dir in $PATH; do 4922 IFS=$lt_save_ifs 4923 test -z "$ac_dir" && ac_dir=. 4924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4925 lt_cv_path_LD=$ac_dir/$ac_prog 4926 # Check to see if the program is GNU ld. I'd rather use --version, 4927 # but apparently some variants of GNU ld only accept -v. 4928 # Break only if it was the GNU/non-GNU ld that we prefer. 4929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4930 *GNU* | *'with BFD'*) 4931 test no != "$with_gnu_ld" && break 4932 ;; 4933 *) 4934 test yes != "$with_gnu_ld" && break 4935 ;; 4936 esac 4937 fi 4938 done 4939 IFS=$lt_save_ifs 4940 else 4941 lt_cv_path_LD=$LD # Let the user override the test with a path. 4942 fi 4943 fi 4944 4945 LD=$lt_cv_path_LD 4946 if test -n "$LD"; then 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4948 $as_echo "$LD" >&6; } 4949 else 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4951 $as_echo "no" >&6; } 4952 fi 4953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4956 if ${lt_cv_prog_gnu_ld+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958 else 4959 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4960 case `$LD -v 2>&1 </dev/null` in 4961 *GNU* | *'with BFD'*) 4962 lt_cv_prog_gnu_ld=yes 4963 ;; 4964 *) 4965 lt_cv_prog_gnu_ld=no 4966 ;; 4967 esac 4968 fi 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4970 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4971 with_gnu_ld=$lt_cv_prog_gnu_ld 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4982 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4983 if ${lt_cv_path_NM+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985 else 4986 if test -n "$NM"; then 4987 # Let the user override the test. 4988 lt_cv_path_NM=$NM 4989 else 4990 lt_nm_to_check=${ac_tool_prefix}nm 4991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4992 lt_nm_to_check="$lt_nm_to_check nm" 4993 fi 4994 for lt_tmp_nm in $lt_nm_to_check; do 4995 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4997 IFS=$lt_save_ifs 4998 test -z "$ac_dir" && ac_dir=. 4999 tmp_nm=$ac_dir/$lt_tmp_nm 5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5001 # Check to see if the nm accepts a BSD-compat flag. 5002 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5003 # nm: unknown option "B" ignored 5004 # Tru64's nm complains that /dev/null is an invalid object file 5005 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5006 case $build_os in 5007 mingw*) lt_bad_file=conftest.nm/nofile ;; 5008 *) lt_bad_file=/dev/null ;; 5009 esac 5010 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5011 *$lt_bad_file* | *'Invalid file or object type'*) 5012 lt_cv_path_NM="$tmp_nm -B" 5013 break 2 5014 ;; 5015 *) 5016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5017 */dev/null*) 5018 lt_cv_path_NM="$tmp_nm -p" 5019 break 2 5020 ;; 5021 *) 5022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5023 continue # so that we can try to find one that supports BSD flags 5024 ;; 5025 esac 5026 ;; 5027 esac 5028 fi 5029 done 5030 IFS=$lt_save_ifs 5031 done 5032 : ${lt_cv_path_NM=no} 5033 fi 5034 fi 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5036 $as_echo "$lt_cv_path_NM" >&6; } 5037 if test no != "$lt_cv_path_NM"; then 5038 NM=$lt_cv_path_NM 5039 else 5040 # Didn't find any BSD compatible name lister, look for dumpbin. 5041 if test -n "$DUMPBIN"; then : 5042 # Let the user override the test. 5043 else 5044 if test -n "$ac_tool_prefix"; then 5045 for ac_prog in dumpbin "link -dump" 5046 do 5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5050 $as_echo_n "checking for $ac_word... " >&6; } 5051 if ${ac_cv_prog_DUMPBIN+:} false; then : 5052 $as_echo_n "(cached) " >&6 5053 else 5054 if test -n "$DUMPBIN"; then 5055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5056 else 5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058 for as_dir in $PATH 5059 do 5060 IFS=$as_save_IFS 5061 test -z "$as_dir" && as_dir=. 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5066 break 2 5067 fi 5068 done 5069 done 5070 IFS=$as_save_IFS 5071 5072 fi 5073 fi 5074 DUMPBIN=$ac_cv_prog_DUMPBIN 5075 if test -n "$DUMPBIN"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5077 $as_echo "$DUMPBIN" >&6; } 5078 else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5080 $as_echo "no" >&6; } 5081 fi 5082 5083 5084 test -n "$DUMPBIN" && break 5085 done 5086 fi 5087 if test -z "$DUMPBIN"; then 5088 ac_ct_DUMPBIN=$DUMPBIN 5089 for ac_prog in dumpbin "link -dump" 5090 do 5091 # Extract the first word of "$ac_prog", so it can be a program name with args. 5092 set dummy $ac_prog; ac_word=$2 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5094 $as_echo_n "checking for $ac_word... " >&6; } 5095 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097 else 5098 if test -n "$ac_ct_DUMPBIN"; then 5099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5100 else 5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5102 for as_dir in $PATH 5103 do 5104 IFS=$as_save_IFS 5105 test -z "$as_dir" && as_dir=. 5106 for ac_exec_ext in '' $ac_executable_extensions; do 5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5110 break 2 5111 fi 5112 done 5113 done 5114 IFS=$as_save_IFS 5115 5116 fi 5117 fi 5118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5119 if test -n "$ac_ct_DUMPBIN"; then 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5121 $as_echo "$ac_ct_DUMPBIN" >&6; } 5122 else 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5124 $as_echo "no" >&6; } 5125 fi 5126 5127 5128 test -n "$ac_ct_DUMPBIN" && break 5129 done 5130 5131 if test "x$ac_ct_DUMPBIN" = x; then 5132 DUMPBIN=":" 5133 else 5134 case $cross_compiling:$ac_tool_warned in 5135 yes:) 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5138 ac_tool_warned=yes ;; 5139 esac 5140 DUMPBIN=$ac_ct_DUMPBIN 5141 fi 5142 fi 5143 5144 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5145 *COFF*) 5146 DUMPBIN="$DUMPBIN -symbols -headers" 5147 ;; 5148 *) 5149 DUMPBIN=: 5150 ;; 5151 esac 5152 fi 5153 5154 if test : != "$DUMPBIN"; then 5155 NM=$DUMPBIN 5156 fi 5157 fi 5158 test -z "$NM" && NM=nm 5159 5160 5161 5162 5163 5164 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5166 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5167 if ${lt_cv_nm_interface+:} false; then : 5168 $as_echo_n "(cached) " >&6 5169 else 5170 lt_cv_nm_interface="BSD nm" 5171 echo "int some_variable = 0;" > conftest.$ac_ext 5172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5173 (eval "$ac_compile" 2>conftest.err) 5174 cat conftest.err >&5 5175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5177 cat conftest.err >&5 5178 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5179 cat conftest.out >&5 5180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5181 lt_cv_nm_interface="MS dumpbin" 5182 fi 5183 rm -f conftest* 5184 fi 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5186 $as_echo "$lt_cv_nm_interface" >&6; } 5187 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5189 $as_echo_n "checking whether ln -s works... " >&6; } 5190 LN_S=$as_ln_s 5191 if test "$LN_S" = "ln -s"; then 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5193 $as_echo "yes" >&6; } 5194 else 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5196 $as_echo "no, using $LN_S" >&6; } 5197 fi 5198 5199 # find the maximum length of command line arguments 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5201 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5202 if ${lt_cv_sys_max_cmd_len+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204 else 5205 i=0 5206 teststring=ABCD 5207 5208 case $build_os in 5209 msdosdjgpp*) 5210 # On DJGPP, this test can blow up pretty badly due to problems in libc 5211 # (any single argument exceeding 2000 bytes causes a buffer overrun 5212 # during glob expansion). Even if it were fixed, the result of this 5213 # check would be larger than it should be. 5214 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5215 ;; 5216 5217 gnu*) 5218 # Under GNU Hurd, this test is not required because there is 5219 # no limit to the length of command line arguments. 5220 # Libtool will interpret -1 as no limit whatsoever 5221 lt_cv_sys_max_cmd_len=-1; 5222 ;; 5223 5224 cygwin* | mingw* | cegcc*) 5225 # On Win9x/ME, this test blows up -- it succeeds, but takes 5226 # about 5 minutes as the teststring grows exponentially. 5227 # Worse, since 9x/ME are not pre-emptively multitasking, 5228 # you end up with a "frozen" computer, even though with patience 5229 # the test eventually succeeds (with a max line length of 256k). 5230 # Instead, let's just punt: use the minimum linelength reported by 5231 # all of the supported platforms: 8192 (on NT/2K/XP). 5232 lt_cv_sys_max_cmd_len=8192; 5233 ;; 5234 5235 mint*) 5236 # On MiNT this can take a long time and run out of memory. 5237 lt_cv_sys_max_cmd_len=8192; 5238 ;; 5239 5240 mint*) 5241 # On MiNT this can take a long time and run out of memory. 5242 lt_cv_sys_max_cmd_len=8192; 5243 ;; 5244 5245 amigaos*) 5246 # On AmigaOS with pdksh, this test takes hours, literally. 5247 # So we just punt and use a minimum line length of 8192. 5248 lt_cv_sys_max_cmd_len=8192; 5249 ;; 5250 5251 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5252 # This has been around since 386BSD, at least. Likely further. 5253 if test -x /sbin/sysctl; then 5254 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5255 elif test -x /usr/sbin/sysctl; then 5256 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5257 else 5258 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5259 fi 5260 # And add a safety zone 5261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5263 ;; 5264 5265 interix*) 5266 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5267 lt_cv_sys_max_cmd_len=196608 5268 ;; 5269 5270 os2*) 5271 # The test takes a long time on OS/2. 5272 lt_cv_sys_max_cmd_len=8192 5273 ;; 5274 5275 osf*) 5276 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5277 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5278 # nice to cause kernel panics so lets avoid the loop below. 5279 # First set a reasonable default. 5280 lt_cv_sys_max_cmd_len=16384 5281 # 5282 if test -x /sbin/sysconfig; then 5283 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5284 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5285 esac 5286 fi 5287 ;; 5288 sco3.2v5*) 5289 lt_cv_sys_max_cmd_len=102400 5290 ;; 5291 sysv5* | sco5v6* | sysv4.2uw2*) 5292 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5293 if test -n "$kargmax"; then 5294 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5295 else 5296 lt_cv_sys_max_cmd_len=32768 5297 fi 5298 ;; 5299 *) 5300 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5301 if test -n "$lt_cv_sys_max_cmd_len" && \ 5302 test undefined != "$lt_cv_sys_max_cmd_len"; then 5303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5305 else 5306 # Make teststring a little bigger before we do anything with it. 5307 # a 1K string should be a reasonable start. 5308 for i in 1 2 3 4 5 6 7 8; do 5309 teststring=$teststring$teststring 5310 done 5311 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5312 # If test is not a shell built-in, we'll probably end up computing a 5313 # maximum length that is only half of the actual maximum length, but 5314 # we can't tell. 5315 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5316 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5317 test 17 != "$i" # 1/2 MB should be enough 5318 do 5319 i=`expr $i + 1` 5320 teststring=$teststring$teststring 5321 done 5322 # Only check the string length outside the loop. 5323 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5324 teststring= 5325 # Add a significant safety factor because C++ compilers can tack on 5326 # massive amounts of additional arguments before passing them to the 5327 # linker. It appears as though 1/2 is a usable value. 5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5329 fi 5330 ;; 5331 esac 5332 5333 fi 5334 5335 if test -n "$lt_cv_sys_max_cmd_len"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5337 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5338 else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5340 $as_echo "none" >&6; } 5341 fi 5342 max_cmd_len=$lt_cv_sys_max_cmd_len 5343 5344 5345 5346 5347 5348 5349 : ${CP="cp -f"} 5350 : ${MV="mv -f"} 5351 : ${RM="rm -f"} 5352 5353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5354 lt_unset=unset 5355 else 5356 lt_unset=false 5357 fi 5358 5359 5360 5361 5362 5363 # test EBCDIC or ASCII 5364 case `echo X|tr X '\101'` in 5365 A) # ASCII based system 5366 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5367 lt_SP2NL='tr \040 \012' 5368 lt_NL2SP='tr \015\012 \040\040' 5369 ;; 5370 *) # EBCDIC based system 5371 lt_SP2NL='tr \100 \n' 5372 lt_NL2SP='tr \r\n \100\100' 5373 ;; 5374 esac 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5385 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5386 if ${lt_cv_to_host_file_cmd+:} false; then : 5387 $as_echo_n "(cached) " >&6 5388 else 5389 case $host in 5390 *-*-mingw* ) 5391 case $build in 5392 *-*-mingw* ) # actually msys 5393 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5394 ;; 5395 *-*-cygwin* ) 5396 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5397 ;; 5398 * ) # otherwise, assume *nix 5399 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5400 ;; 5401 esac 5402 ;; 5403 *-*-cygwin* ) 5404 case $build in 5405 *-*-mingw* ) # actually msys 5406 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5407 ;; 5408 *-*-cygwin* ) 5409 lt_cv_to_host_file_cmd=func_convert_file_noop 5410 ;; 5411 * ) # otherwise, assume *nix 5412 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5413 ;; 5414 esac 5415 ;; 5416 * ) # unhandled hosts (and "normal" native builds) 5417 lt_cv_to_host_file_cmd=func_convert_file_noop 5418 ;; 5419 esac 5420 5421 fi 5422 5423 to_host_file_cmd=$lt_cv_to_host_file_cmd 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5425 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5426 5427 5428 5429 5430 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5432 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5433 if ${lt_cv_to_tool_file_cmd+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435 else 5436 #assume ordinary cross tools, or native build. 5437 lt_cv_to_tool_file_cmd=func_convert_file_noop 5438 case $host in 5439 *-*-mingw* ) 5440 case $build in 5441 *-*-mingw* ) # actually msys 5442 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5443 ;; 5444 esac 5445 ;; 5446 esac 5447 5448 fi 5449 5450 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5452 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5453 5454 5455 5456 5457 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5459 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5460 if ${lt_cv_ld_reload_flag+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462 else 5463 lt_cv_ld_reload_flag='-r' 5464 fi 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5466 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5467 reload_flag=$lt_cv_ld_reload_flag 5468 case $reload_flag in 5469 "" | " "*) ;; 5470 *) reload_flag=" $reload_flag" ;; 5471 esac 5472 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5473 case $host_os in 5474 cygwin* | mingw* | pw32* | cegcc*) 5475 if test yes != "$GCC"; then 5476 reload_cmds=false 5477 fi 5478 ;; 5479 darwin*) 5480 if test yes = "$GCC"; then 5481 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5482 else 5483 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5484 fi 5485 ;; 5486 esac 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 if test -n "$ac_tool_prefix"; then 5497 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5498 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5500 $as_echo_n "checking for $ac_word... " >&6; } 5501 if ${ac_cv_prog_OBJDUMP+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503 else 5504 if test -n "$OBJDUMP"; then 5505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5506 else 5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5508 for as_dir in $PATH 5509 do 5510 IFS=$as_save_IFS 5511 test -z "$as_dir" && as_dir=. 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5514 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5516 break 2 5517 fi 5518 done 5519 done 5520 IFS=$as_save_IFS 5521 5522 fi 5523 fi 5524 OBJDUMP=$ac_cv_prog_OBJDUMP 5525 if test -n "$OBJDUMP"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5527 $as_echo "$OBJDUMP" >&6; } 5528 else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530 $as_echo "no" >&6; } 5531 fi 5532 5533 5534 fi 5535 if test -z "$ac_cv_prog_OBJDUMP"; then 5536 ac_ct_OBJDUMP=$OBJDUMP 5537 # Extract the first word of "objdump", so it can be a program name with args. 5538 set dummy objdump; ac_word=$2 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5540 $as_echo_n "checking for $ac_word... " >&6; } 5541 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543 else 5544 if test -n "$ac_ct_OBJDUMP"; then 5545 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5546 else 5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5548 for as_dir in $PATH 5549 do 5550 IFS=$as_save_IFS 5551 test -z "$as_dir" && as_dir=. 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5554 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5556 break 2 5557 fi 5558 done 5559 done 5560 IFS=$as_save_IFS 5561 5562 fi 5563 fi 5564 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5565 if test -n "$ac_ct_OBJDUMP"; then 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5567 $as_echo "$ac_ct_OBJDUMP" >&6; } 5568 else 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5570 $as_echo "no" >&6; } 5571 fi 5572 5573 if test "x$ac_ct_OBJDUMP" = x; then 5574 OBJDUMP="false" 5575 else 5576 case $cross_compiling:$ac_tool_warned in 5577 yes:) 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5580 ac_tool_warned=yes ;; 5581 esac 5582 OBJDUMP=$ac_ct_OBJDUMP 5583 fi 5584 else 5585 OBJDUMP="$ac_cv_prog_OBJDUMP" 5586 fi 5587 5588 test -z "$OBJDUMP" && OBJDUMP=objdump 5589 5590 5591 5592 5593 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5596 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5597 if ${lt_cv_deplibs_check_method+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599 else 5600 lt_cv_file_magic_cmd='$MAGIC_CMD' 5601 lt_cv_file_magic_test_file= 5602 lt_cv_deplibs_check_method='unknown' 5603 # Need to set the preceding variable on all platforms that support 5604 # interlibrary dependencies. 5605 # 'none' -- dependencies not supported. 5606 # 'unknown' -- same as none, but documents that we really don't know. 5607 # 'pass_all' -- all dependencies passed with no checks. 5608 # 'test_compile' -- check by making test program. 5609 # 'file_magic [[regex]]' -- check by looking for files in library path 5610 # that responds to the $file_magic_cmd with a given extended regex. 5611 # If you have 'file' or equivalent on your system and you're not sure 5612 # whether 'pass_all' will *always* work, you probably want this one. 5613 5614 case $host_os in 5615 aix[4-9]*) 5616 lt_cv_deplibs_check_method=pass_all 5617 ;; 5618 5619 beos*) 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622 5623 bsdi[45]*) 5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5625 lt_cv_file_magic_cmd='/usr/bin/file -L' 5626 lt_cv_file_magic_test_file=/shlib/libc.so 5627 ;; 5628 5629 cygwin*) 5630 # func_win32_libid is a shell function defined in ltmain.sh 5631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5632 lt_cv_file_magic_cmd='func_win32_libid' 5633 ;; 5634 5635 mingw* | pw32*) 5636 # Base MSYS/MinGW do not provide the 'file' command needed by 5637 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5638 # unless we find 'file', for example because we are cross-compiling. 5639 if ( file / ) >/dev/null 2>&1; then 5640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5641 lt_cv_file_magic_cmd='func_win32_libid' 5642 else 5643 # Keep this pattern in sync with the one in func_win32_libid. 5644 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5645 lt_cv_file_magic_cmd='$OBJDUMP -f' 5646 fi 5647 ;; 5648 5649 cegcc*) 5650 # use the weaker test based on 'objdump'. See mingw*. 5651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5652 lt_cv_file_magic_cmd='$OBJDUMP -f' 5653 ;; 5654 5655 darwin* | rhapsody*) 5656 lt_cv_deplibs_check_method=pass_all 5657 ;; 5658 5659 freebsd* | dragonfly*) 5660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5661 case $host_cpu in 5662 i*86 ) 5663 # Not sure whether the presence of OpenBSD here was a mistake. 5664 # Let's accept both of them until this is cleared up. 5665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5666 lt_cv_file_magic_cmd=/usr/bin/file 5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5668 ;; 5669 esac 5670 else 5671 lt_cv_deplibs_check_method=pass_all 5672 fi 5673 ;; 5674 5675 haiku*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679 hpux10.20* | hpux11*) 5680 lt_cv_file_magic_cmd=/usr/bin/file 5681 case $host_cpu in 5682 ia64*) 5683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5684 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5685 ;; 5686 hppa*64*) 5687 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]' 5688 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5689 ;; 5690 *) 5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5692 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5693 ;; 5694 esac 5695 ;; 5696 5697 interix[3-9]*) 5698 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5700 ;; 5701 5702 irix5* | irix6* | nonstopux*) 5703 case $LD in 5704 *-32|*"-32 ") libmagic=32-bit;; 5705 *-n32|*"-n32 ") libmagic=N32;; 5706 *-64|*"-64 ") libmagic=64-bit;; 5707 *) libmagic=never-match;; 5708 esac 5709 lt_cv_deplibs_check_method=pass_all 5710 ;; 5711 5712 # This must be glibc/ELF. 5713 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5714 lt_cv_deplibs_check_method=pass_all 5715 ;; 5716 5717 netbsd*) 5718 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5720 else 5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5722 fi 5723 ;; 5724 5725 newos6*) 5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5727 lt_cv_file_magic_cmd=/usr/bin/file 5728 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5729 ;; 5730 5731 *nto* | *qnx*) 5732 lt_cv_deplibs_check_method=pass_all 5733 ;; 5734 5735 openbsd* | bitrig*) 5736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5738 else 5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5740 fi 5741 ;; 5742 5743 osf3* | osf4* | osf5*) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 5747 rdos*) 5748 lt_cv_deplibs_check_method=pass_all 5749 ;; 5750 5751 solaris*) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754 5755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759 sysv4 | sysv4.3*) 5760 case $host_vendor in 5761 motorola) 5762 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]' 5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5764 ;; 5765 ncr) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 sequent) 5769 lt_cv_file_magic_cmd='/bin/file' 5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5771 ;; 5772 sni) 5773 lt_cv_file_magic_cmd='/bin/file' 5774 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5775 lt_cv_file_magic_test_file=/lib/libc.so 5776 ;; 5777 siemens) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 pc) 5781 lt_cv_deplibs_check_method=pass_all 5782 ;; 5783 esac 5784 ;; 5785 5786 tpf*) 5787 lt_cv_deplibs_check_method=pass_all 5788 ;; 5789 os2*) 5790 lt_cv_deplibs_check_method=pass_all 5791 ;; 5792 esac 5793 5794 fi 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5796 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5797 5798 file_magic_glob= 5799 want_nocaseglob=no 5800 if test "$build" = "$host"; then 5801 case $host_os in 5802 mingw* | pw32*) 5803 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5804 want_nocaseglob=yes 5805 else 5806 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5807 fi 5808 ;; 5809 esac 5810 fi 5811 5812 file_magic_cmd=$lt_cv_file_magic_cmd 5813 deplibs_check_method=$lt_cv_deplibs_check_method 5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 if test -n "$ac_tool_prefix"; then 5838 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5839 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5841 $as_echo_n "checking for $ac_word... " >&6; } 5842 if ${ac_cv_prog_DLLTOOL+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844 else 5845 if test -n "$DLLTOOL"; then 5846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5847 else 5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849 for as_dir in $PATH 5850 do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5855 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859 done 5860 done 5861 IFS=$as_save_IFS 5862 5863 fi 5864 fi 5865 DLLTOOL=$ac_cv_prog_DLLTOOL 5866 if test -n "$DLLTOOL"; then 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5868 $as_echo "$DLLTOOL" >&6; } 5869 else 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5871 $as_echo "no" >&6; } 5872 fi 5873 5874 5875 fi 5876 if test -z "$ac_cv_prog_DLLTOOL"; then 5877 ac_ct_DLLTOOL=$DLLTOOL 5878 # Extract the first word of "dlltool", so it can be a program name with args. 5879 set dummy dlltool; ac_word=$2 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5881 $as_echo_n "checking for $ac_word... " >&6; } 5882 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5883 $as_echo_n "(cached) " >&6 5884 else 5885 if test -n "$ac_ct_DLLTOOL"; then 5886 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5887 else 5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889 for as_dir in $PATH 5890 do 5891 IFS=$as_save_IFS 5892 test -z "$as_dir" && as_dir=. 5893 for ac_exec_ext in '' $ac_executable_extensions; do 5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5895 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5897 break 2 5898 fi 5899 done 5900 done 5901 IFS=$as_save_IFS 5902 5903 fi 5904 fi 5905 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5906 if test -n "$ac_ct_DLLTOOL"; then 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5908 $as_echo "$ac_ct_DLLTOOL" >&6; } 5909 else 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5911 $as_echo "no" >&6; } 5912 fi 5913 5914 if test "x$ac_ct_DLLTOOL" = x; then 5915 DLLTOOL="false" 5916 else 5917 case $cross_compiling:$ac_tool_warned in 5918 yes:) 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5921 ac_tool_warned=yes ;; 5922 esac 5923 DLLTOOL=$ac_ct_DLLTOOL 5924 fi 5925 else 5926 DLLTOOL="$ac_cv_prog_DLLTOOL" 5927 fi 5928 5929 test -z "$DLLTOOL" && DLLTOOL=dlltool 5930 5931 5932 5933 5934 5935 5936 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5938 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5939 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941 else 5942 lt_cv_sharedlib_from_linklib_cmd='unknown' 5943 5944 case $host_os in 5945 cygwin* | mingw* | pw32* | cegcc*) 5946 # two different shell functions defined in ltmain.sh; 5947 # decide which one to use based on capabilities of $DLLTOOL 5948 case `$DLLTOOL --help 2>&1` in 5949 *--identify-strict*) 5950 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5951 ;; 5952 *) 5953 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5954 ;; 5955 esac 5956 ;; 5957 *) 5958 # fallback: assume linklib IS sharedlib 5959 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5960 ;; 5961 esac 5962 5963 fi 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5965 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5966 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5967 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5968 5969 5970 5971 5972 5973 5974 5975 5976 if test -n "$ac_tool_prefix"; then 5977 for ac_prog in ar 5978 do 5979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5982 $as_echo_n "checking for $ac_word... " >&6; } 5983 if ${ac_cv_prog_AR+:} false; then : 5984 $as_echo_n "(cached) " >&6 5985 else 5986 if test -n "$AR"; then 5987 ac_cv_prog_AR="$AR" # Let the user override the test. 5988 else 5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5990 for as_dir in $PATH 5991 do 5992 IFS=$as_save_IFS 5993 test -z "$as_dir" && as_dir=. 5994 for ac_exec_ext in '' $ac_executable_extensions; do 5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5996 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5998 break 2 5999 fi 6000 done 6001 done 6002 IFS=$as_save_IFS 6003 6004 fi 6005 fi 6006 AR=$ac_cv_prog_AR 6007 if test -n "$AR"; then 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6009 $as_echo "$AR" >&6; } 6010 else 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6012 $as_echo "no" >&6; } 6013 fi 6014 6015 6016 test -n "$AR" && break 6017 done 6018 fi 6019 if test -z "$AR"; then 6020 ac_ct_AR=$AR 6021 for ac_prog in ar 6022 do 6023 # Extract the first word of "$ac_prog", so it can be a program name with args. 6024 set dummy $ac_prog; ac_word=$2 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026 $as_echo_n "checking for $ac_word... " >&6; } 6027 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029 else 6030 if test -n "$ac_ct_AR"; then 6031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6032 else 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_prog_ac_ct_AR="$ac_prog" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 IFS=$as_save_IFS 6047 6048 fi 6049 fi 6050 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6051 if test -n "$ac_ct_AR"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6053 $as_echo "$ac_ct_AR" >&6; } 6054 else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056 $as_echo "no" >&6; } 6057 fi 6058 6059 6060 test -n "$ac_ct_AR" && break 6061 done 6062 6063 if test "x$ac_ct_AR" = x; then 6064 AR="false" 6065 else 6066 case $cross_compiling:$ac_tool_warned in 6067 yes:) 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6070 ac_tool_warned=yes ;; 6071 esac 6072 AR=$ac_ct_AR 6073 fi 6074 fi 6075 6076 : ${AR=ar} 6077 : ${AR_FLAGS=cru} 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6090 $as_echo_n "checking for archiver @FILE support... " >&6; } 6091 if ${lt_cv_ar_at_file+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093 else 6094 lt_cv_ar_at_file=no 6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096 /* end confdefs.h. */ 6097 6098 int 6099 main () 6100 { 6101 6102 ; 6103 return 0; 6104 } 6105 _ACEOF 6106 if ac_fn_c_try_compile "$LINENO"; then : 6107 echo conftest.$ac_objext > conftest.lst 6108 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6110 (eval $lt_ar_try) 2>&5 6111 ac_status=$? 6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6113 test $ac_status = 0; } 6114 if test 0 -eq "$ac_status"; then 6115 # Ensure the archiver fails upon bogus file names. 6116 rm -f conftest.$ac_objext libconftest.a 6117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6118 (eval $lt_ar_try) 2>&5 6119 ac_status=$? 6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6121 test $ac_status = 0; } 6122 if test 0 -ne "$ac_status"; then 6123 lt_cv_ar_at_file=@ 6124 fi 6125 fi 6126 rm -f conftest.* libconftest.a 6127 6128 fi 6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6130 6131 fi 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6133 $as_echo "$lt_cv_ar_at_file" >&6; } 6134 6135 if test no = "$lt_cv_ar_at_file"; then 6136 archiver_list_spec= 6137 else 6138 archiver_list_spec=$lt_cv_ar_at_file 6139 fi 6140 6141 6142 6143 6144 6145 6146 6147 if test -n "$ac_tool_prefix"; then 6148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6149 set dummy ${ac_tool_prefix}strip; ac_word=$2 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6151 $as_echo_n "checking for $ac_word... " >&6; } 6152 if ${ac_cv_prog_STRIP+:} false; then : 6153 $as_echo_n "(cached) " >&6 6154 else 6155 if test -n "$STRIP"; then 6156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6157 else 6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6159 for as_dir in $PATH 6160 do 6161 IFS=$as_save_IFS 6162 test -z "$as_dir" && as_dir=. 6163 for ac_exec_ext in '' $ac_executable_extensions; do 6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6165 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6167 break 2 6168 fi 6169 done 6170 done 6171 IFS=$as_save_IFS 6172 6173 fi 6174 fi 6175 STRIP=$ac_cv_prog_STRIP 6176 if test -n "$STRIP"; then 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6178 $as_echo "$STRIP" >&6; } 6179 else 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6181 $as_echo "no" >&6; } 6182 fi 6183 6184 6185 fi 6186 if test -z "$ac_cv_prog_STRIP"; then 6187 ac_ct_STRIP=$STRIP 6188 # Extract the first word of "strip", so it can be a program name with args. 6189 set dummy strip; ac_word=$2 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6191 $as_echo_n "checking for $ac_word... " >&6; } 6192 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6193 $as_echo_n "(cached) " >&6 6194 else 6195 if test -n "$ac_ct_STRIP"; then 6196 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6197 else 6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199 for as_dir in $PATH 6200 do 6201 IFS=$as_save_IFS 6202 test -z "$as_dir" && as_dir=. 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6205 ac_cv_prog_ac_ct_STRIP="strip" 6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209 done 6210 done 6211 IFS=$as_save_IFS 6212 6213 fi 6214 fi 6215 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6216 if test -n "$ac_ct_STRIP"; then 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6218 $as_echo "$ac_ct_STRIP" >&6; } 6219 else 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6221 $as_echo "no" >&6; } 6222 fi 6223 6224 if test "x$ac_ct_STRIP" = x; then 6225 STRIP=":" 6226 else 6227 case $cross_compiling:$ac_tool_warned in 6228 yes:) 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6231 ac_tool_warned=yes ;; 6232 esac 6233 STRIP=$ac_ct_STRIP 6234 fi 6235 else 6236 STRIP="$ac_cv_prog_STRIP" 6237 fi 6238 6239 test -z "$STRIP" && STRIP=: 6240 6241 6242 6243 6244 6245 6246 if test -n "$ac_tool_prefix"; then 6247 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250 $as_echo_n "checking for $ac_word... " >&6; } 6251 if ${ac_cv_prog_RANLIB+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253 else 6254 if test -n "$RANLIB"; then 6255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6256 else 6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6258 for as_dir in $PATH 6259 do 6260 IFS=$as_save_IFS 6261 test -z "$as_dir" && as_dir=. 6262 for ac_exec_ext in '' $ac_executable_extensions; do 6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6266 break 2 6267 fi 6268 done 6269 done 6270 IFS=$as_save_IFS 6271 6272 fi 6273 fi 6274 RANLIB=$ac_cv_prog_RANLIB 6275 if test -n "$RANLIB"; then 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6277 $as_echo "$RANLIB" >&6; } 6278 else 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280 $as_echo "no" >&6; } 6281 fi 6282 6283 6284 fi 6285 if test -z "$ac_cv_prog_RANLIB"; then 6286 ac_ct_RANLIB=$RANLIB 6287 # Extract the first word of "ranlib", so it can be a program name with args. 6288 set dummy ranlib; ac_word=$2 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290 $as_echo_n "checking for $ac_word... " >&6; } 6291 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293 else 6294 if test -n "$ac_ct_RANLIB"; then 6295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6296 else 6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298 for as_dir in $PATH 6299 do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6304 ac_cv_prog_ac_ct_RANLIB="ranlib" 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308 done 6309 done 6310 IFS=$as_save_IFS 6311 6312 fi 6313 fi 6314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6315 if test -n "$ac_ct_RANLIB"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6317 $as_echo "$ac_ct_RANLIB" >&6; } 6318 else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320 $as_echo "no" >&6; } 6321 fi 6322 6323 if test "x$ac_ct_RANLIB" = x; then 6324 RANLIB=":" 6325 else 6326 case $cross_compiling:$ac_tool_warned in 6327 yes:) 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6330 ac_tool_warned=yes ;; 6331 esac 6332 RANLIB=$ac_ct_RANLIB 6333 fi 6334 else 6335 RANLIB="$ac_cv_prog_RANLIB" 6336 fi 6337 6338 test -z "$RANLIB" && RANLIB=: 6339 6340 6341 6342 6343 6344 6345 # Determine commands to create old-style static archives. 6346 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6347 old_postinstall_cmds='chmod 644 $oldlib' 6348 old_postuninstall_cmds= 6349 6350 if test -n "$RANLIB"; then 6351 case $host_os in 6352 bitrig* | openbsd*) 6353 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6354 ;; 6355 *) 6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6357 ;; 6358 esac 6359 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6360 fi 6361 6362 case $host_os in 6363 darwin*) 6364 lock_old_archive_extraction=yes ;; 6365 *) 6366 lock_old_archive_extraction=no ;; 6367 esac 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 # If no C compiler was specified, use CC. 6408 LTCC=${LTCC-"$CC"} 6409 6410 # If no C compiler flags were specified, use CFLAGS. 6411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6412 6413 # Allow CC to be a program name with arguments. 6414 compiler=$CC 6415 6416 6417 # Check for command to grab the raw symbol name followed by C symbol from nm. 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6419 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6420 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422 else 6423 6424 # These are sane defaults that work on at least a few old systems. 6425 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6426 6427 # Character class describing NM global symbol codes. 6428 symcode='[BCDEGRST]' 6429 6430 # Regexp to match symbols that can be accessed directly from C. 6431 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6432 6433 # Define system-specific variables. 6434 case $host_os in 6435 aix*) 6436 symcode='[BCDT]' 6437 ;; 6438 cygwin* | mingw* | pw32* | cegcc*) 6439 symcode='[ABCDGISTW]' 6440 ;; 6441 hpux*) 6442 if test ia64 = "$host_cpu"; then 6443 symcode='[ABCDEGRST]' 6444 fi 6445 ;; 6446 irix* | nonstopux*) 6447 symcode='[BCDEGRST]' 6448 ;; 6449 osf*) 6450 symcode='[BCDEGQRST]' 6451 ;; 6452 solaris*) 6453 symcode='[BDRT]' 6454 ;; 6455 sco3.2v5*) 6456 symcode='[DT]' 6457 ;; 6458 sysv4.2uw2*) 6459 symcode='[DT]' 6460 ;; 6461 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6462 symcode='[ABDT]' 6463 ;; 6464 sysv4) 6465 symcode='[DFNSTU]' 6466 ;; 6467 esac 6468 6469 # If we're using GNU nm, then use its standard symbol codes. 6470 case `$NM -V 2>&1` in 6471 *GNU* | *'with BFD'*) 6472 symcode='[ABCDGIRSTW]' ;; 6473 esac 6474 6475 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6476 # Gets list of data symbols to import. 6477 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6478 # Adjust the below global symbol transforms to fixup imported variables. 6479 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6480 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6481 lt_c_name_lib_hook="\ 6482 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6483 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6484 else 6485 # Disable hooks by default. 6486 lt_cv_sys_global_symbol_to_import= 6487 lt_cdecl_hook= 6488 lt_c_name_hook= 6489 lt_c_name_lib_hook= 6490 fi 6491 6492 # Transform an extracted symbol line into a proper C declaration. 6493 # Some systems (esp. on ia64) link data and code symbols differently, 6494 # so use this general approach. 6495 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6496 $lt_cdecl_hook\ 6497 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6498 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6499 6500 # Transform an extracted symbol line into symbol name and symbol address 6501 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6502 $lt_c_name_hook\ 6503 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6504 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6505 6506 # Transform an extracted symbol line into symbol name with lib prefix and 6507 # symbol address. 6508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6509 $lt_c_name_lib_hook\ 6510 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6511 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6512 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6513 6514 # Handle CRLF in mingw tool chain 6515 opt_cr= 6516 case $build_os in 6517 mingw*) 6518 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6519 ;; 6520 esac 6521 6522 # Try without a prefix underscore, then with it. 6523 for ac_symprfx in "" "_"; do 6524 6525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6526 symxfrm="\\1 $ac_symprfx\\2 \\2" 6527 6528 # Write the raw and C identifiers. 6529 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6530 # Fake it for dumpbin and say T for any non-static function, 6531 # D for any global variable and I for any imported variable. 6532 # Also find C++ and __fastcall symbols from MSVC++, 6533 # which start with @ or ?. 6534 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6535 " {last_section=section; section=\$ 3};"\ 6536 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6537 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6538 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6539 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6540 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6541 " \$ 0!~/External *\|/{next};"\ 6542 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6543 " {if(hide[section]) next};"\ 6544 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6545 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6546 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6547 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6548 " ' prfx=^$ac_symprfx" 6549 else 6550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6551 fi 6552 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6553 6554 # Check to see that the pipe works correctly. 6555 pipe_works=no 6556 6557 rm -f conftest* 6558 cat > conftest.$ac_ext <<_LT_EOF 6559 #ifdef __cplusplus 6560 extern "C" { 6561 #endif 6562 char nm_test_var; 6563 void nm_test_func(void); 6564 void nm_test_func(void){} 6565 #ifdef __cplusplus 6566 } 6567 #endif 6568 int main(){nm_test_var='a';nm_test_func();return(0);} 6569 _LT_EOF 6570 6571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6572 (eval $ac_compile) 2>&5 6573 ac_status=$? 6574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6575 test $ac_status = 0; }; then 6576 # Now try to grab the symbols. 6577 nlist=conftest.nm 6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6579 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6580 ac_status=$? 6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6582 test $ac_status = 0; } && test -s "$nlist"; then 6583 # Try sorting and uniquifying the output. 6584 if sort "$nlist" | uniq > "$nlist"T; then 6585 mv -f "$nlist"T "$nlist" 6586 else 6587 rm -f "$nlist"T 6588 fi 6589 6590 # Make sure that we snagged all the symbols we need. 6591 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6592 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6593 cat <<_LT_EOF > conftest.$ac_ext 6594 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6595 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6596 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6597 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6598 # define LT_DLSYM_CONST 6599 #elif defined __osf__ 6600 /* This system does not cope well with relocations in const data. */ 6601 # define LT_DLSYM_CONST 6602 #else 6603 # define LT_DLSYM_CONST const 6604 #endif 6605 6606 #ifdef __cplusplus 6607 extern "C" { 6608 #endif 6609 6610 _LT_EOF 6611 # Now generate the symbol file. 6612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6613 6614 cat <<_LT_EOF >> conftest.$ac_ext 6615 6616 /* The mapping between symbol names and symbols. */ 6617 LT_DLSYM_CONST struct { 6618 const char *name; 6619 void *address; 6620 } 6621 lt__PROGRAM__LTX_preloaded_symbols[] = 6622 { 6623 { "@PROGRAM@", (void *) 0 }, 6624 _LT_EOF 6625 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6626 cat <<\_LT_EOF >> conftest.$ac_ext 6627 {0, (void *) 0} 6628 }; 6629 6630 /* This works around a problem in FreeBSD linker */ 6631 #ifdef FREEBSD_WORKAROUND 6632 static const void *lt_preloaded_setup() { 6633 return lt__PROGRAM__LTX_preloaded_symbols; 6634 } 6635 #endif 6636 6637 #ifdef __cplusplus 6638 } 6639 #endif 6640 _LT_EOF 6641 # Now try linking the two files. 6642 mv conftest.$ac_objext conftstm.$ac_objext 6643 lt_globsym_save_LIBS=$LIBS 6644 lt_globsym_save_CFLAGS=$CFLAGS 6645 LIBS=conftstm.$ac_objext 6646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6648 (eval $ac_link) 2>&5 6649 ac_status=$? 6650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6651 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6652 pipe_works=yes 6653 fi 6654 LIBS=$lt_globsym_save_LIBS 6655 CFLAGS=$lt_globsym_save_CFLAGS 6656 else 6657 echo "cannot find nm_test_func in $nlist" >&5 6658 fi 6659 else 6660 echo "cannot find nm_test_var in $nlist" >&5 6661 fi 6662 else 6663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6664 fi 6665 else 6666 echo "$progname: failed program was:" >&5 6667 cat conftest.$ac_ext >&5 6668 fi 6669 rm -rf conftest* conftst* 6670 6671 # Do not use the global_symbol_pipe unless it works. 6672 if test yes = "$pipe_works"; then 6673 break 6674 else 6675 lt_cv_sys_global_symbol_pipe= 6676 fi 6677 done 6678 6679 fi 6680 6681 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6682 lt_cv_sys_global_symbol_to_cdecl= 6683 fi 6684 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6686 $as_echo "failed" >&6; } 6687 else 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6689 $as_echo "ok" >&6; } 6690 fi 6691 6692 # Response file support. 6693 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6694 nm_file_list_spec='@' 6695 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6696 nm_file_list_spec='@' 6697 fi 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6736 $as_echo_n "checking for sysroot... " >&6; } 6737 6738 # Check whether --with-sysroot was given. 6739 if test "${with_sysroot+set}" = set; then : 6740 withval=$with_sysroot; 6741 else 6742 with_sysroot=no 6743 fi 6744 6745 6746 lt_sysroot= 6747 case $with_sysroot in #( 6748 yes) 6749 if test yes = "$GCC"; then 6750 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6751 fi 6752 ;; #( 6753 /*) 6754 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6755 ;; #( 6756 no|'') 6757 ;; #( 6758 *) 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6760 $as_echo "$with_sysroot" >&6; } 6761 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6762 ;; 6763 esac 6764 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6766 $as_echo "${lt_sysroot:-no}" >&6; } 6767 6768 6769 6770 6771 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6773 $as_echo_n "checking for a working dd... " >&6; } 6774 if ${ac_cv_path_lt_DD+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776 else 6777 printf 0123456789abcdef0123456789abcdef >conftest.i 6778 cat conftest.i conftest.i >conftest2.i 6779 : ${lt_DD:=$DD} 6780 if test -z "$lt_DD"; then 6781 ac_path_lt_DD_found=false 6782 # Loop through the user's path and test for each of PROGNAME-LIST 6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784 for as_dir in $PATH 6785 do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_prog in dd; do 6789 for ac_exec_ext in '' $ac_executable_extensions; do 6790 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6791 as_fn_executable_p "$ac_path_lt_DD" || continue 6792 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6793 cmp -s conftest.i conftest.out \ 6794 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6795 fi 6796 $ac_path_lt_DD_found && break 3 6797 done 6798 done 6799 done 6800 IFS=$as_save_IFS 6801 if test -z "$ac_cv_path_lt_DD"; then 6802 : 6803 fi 6804 else 6805 ac_cv_path_lt_DD=$lt_DD 6806 fi 6807 6808 rm -f conftest.i conftest2.i conftest.out 6809 fi 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6811 $as_echo "$ac_cv_path_lt_DD" >&6; } 6812 6813 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6815 $as_echo_n "checking how to truncate binary pipes... " >&6; } 6816 if ${lt_cv_truncate_bin+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818 else 6819 printf 0123456789abcdef0123456789abcdef >conftest.i 6820 cat conftest.i conftest.i >conftest2.i 6821 lt_cv_truncate_bin= 6822 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6823 cmp -s conftest.i conftest.out \ 6824 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6825 fi 6826 rm -f conftest.i conftest2.i conftest.out 6827 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6828 fi 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6830 $as_echo "$lt_cv_truncate_bin" >&6; } 6831 6832 6833 6834 6835 6836 6837 6838 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6839 func_cc_basename () 6840 { 6841 for cc_temp in $*""; do 6842 case $cc_temp in 6843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6845 \-*) ;; 6846 *) break;; 6847 esac 6848 done 6849 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6850 } 6851 6852 # Check whether --enable-libtool-lock was given. 6853 if test "${enable_libtool_lock+set}" = set; then : 6854 enableval=$enable_libtool_lock; 6855 fi 6856 6857 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6858 6859 # Some flags need to be propagated to the compiler or linker for good 6860 # libtool support. 6861 case $host in 6862 ia64-*-hpux*) 6863 # Find out what ABI is being produced by ac_compile, and set mode 6864 # options accordingly. 6865 echo 'int i;' > conftest.$ac_ext 6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6867 (eval $ac_compile) 2>&5 6868 ac_status=$? 6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6870 test $ac_status = 0; }; then 6871 case `/usr/bin/file conftest.$ac_objext` in 6872 *ELF-32*) 6873 HPUX_IA64_MODE=32 6874 ;; 6875 *ELF-64*) 6876 HPUX_IA64_MODE=64 6877 ;; 6878 esac 6879 fi 6880 rm -rf conftest* 6881 ;; 6882 *-*-irix6*) 6883 # Find out what ABI is being produced by ac_compile, and set linker 6884 # options accordingly. 6885 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6887 (eval $ac_compile) 2>&5 6888 ac_status=$? 6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6890 test $ac_status = 0; }; then 6891 if test yes = "$lt_cv_prog_gnu_ld"; then 6892 case `/usr/bin/file conftest.$ac_objext` in 6893 *32-bit*) 6894 LD="${LD-ld} -melf32bsmip" 6895 ;; 6896 *N32*) 6897 LD="${LD-ld} -melf32bmipn32" 6898 ;; 6899 *64-bit*) 6900 LD="${LD-ld} -melf64bmip" 6901 ;; 6902 esac 6903 else 6904 case `/usr/bin/file conftest.$ac_objext` in 6905 *32-bit*) 6906 LD="${LD-ld} -32" 6907 ;; 6908 *N32*) 6909 LD="${LD-ld} -n32" 6910 ;; 6911 *64-bit*) 6912 LD="${LD-ld} -64" 6913 ;; 6914 esac 6915 fi 6916 fi 6917 rm -rf conftest* 6918 ;; 6919 6920 mips64*-*linux*) 6921 # Find out what ABI is being produced by ac_compile, and set linker 6922 # options accordingly. 6923 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6925 (eval $ac_compile) 2>&5 6926 ac_status=$? 6927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6928 test $ac_status = 0; }; then 6929 emul=elf 6930 case `/usr/bin/file conftest.$ac_objext` in 6931 *32-bit*) 6932 emul="${emul}32" 6933 ;; 6934 *64-bit*) 6935 emul="${emul}64" 6936 ;; 6937 esac 6938 case `/usr/bin/file conftest.$ac_objext` in 6939 *MSB*) 6940 emul="${emul}btsmip" 6941 ;; 6942 *LSB*) 6943 emul="${emul}ltsmip" 6944 ;; 6945 esac 6946 case `/usr/bin/file conftest.$ac_objext` in 6947 *N32*) 6948 emul="${emul}n32" 6949 ;; 6950 esac 6951 LD="${LD-ld} -m $emul" 6952 fi 6953 rm -rf conftest* 6954 ;; 6955 6956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6958 # Find out what ABI is being produced by ac_compile, and set linker 6959 # options accordingly. Note that the listed cases only cover the 6960 # situations where additional linker options are needed (such as when 6961 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6962 # vice versa); the common cases where no linker options are needed do 6963 # not appear in the list. 6964 echo 'int i;' > conftest.$ac_ext 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6966 (eval $ac_compile) 2>&5 6967 ac_status=$? 6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6969 test $ac_status = 0; }; then 6970 case `/usr/bin/file conftest.o` in 6971 *32-bit*) 6972 case $host in 6973 x86_64-*kfreebsd*-gnu) 6974 LD="${LD-ld} -m elf_i386_fbsd" 6975 ;; 6976 x86_64-*linux*) 6977 case `/usr/bin/file conftest.o` in 6978 *x86-64*) 6979 LD="${LD-ld} -m elf32_x86_64" 6980 ;; 6981 *) 6982 LD="${LD-ld} -m elf_i386" 6983 ;; 6984 esac 6985 ;; 6986 powerpc64le-*linux*) 6987 LD="${LD-ld} -m elf32lppclinux" 6988 ;; 6989 powerpc64-*linux*) 6990 LD="${LD-ld} -m elf32ppclinux" 6991 ;; 6992 s390x-*linux*) 6993 LD="${LD-ld} -m elf_s390" 6994 ;; 6995 sparc64-*linux*) 6996 LD="${LD-ld} -m elf32_sparc" 6997 ;; 6998 esac 6999 ;; 7000 *64-bit*) 7001 case $host in 7002 x86_64-*kfreebsd*-gnu) 7003 LD="${LD-ld} -m elf_x86_64_fbsd" 7004 ;; 7005 x86_64-*linux*) 7006 LD="${LD-ld} -m elf_x86_64" 7007 ;; 7008 powerpcle-*linux*|powerpc64le-*linux*) 7009 LD="${LD-ld} -m elf64lppc" 7010 ;; 7011 powerpc-*linux*|powerpc64-*linux*) 7012 LD="${LD-ld} -m elf64ppc" 7013 ;; 7014 s390*-*linux*|s390*-*tpf*) 7015 LD="${LD-ld} -m elf64_s390" 7016 ;; 7017 sparc*-*linux*) 7018 LD="${LD-ld} -m elf64_sparc" 7019 ;; 7020 esac 7021 ;; 7022 esac 7023 fi 7024 rm -rf conftest* 7025 ;; 7026 7027 *-*-sco3.2v5*) 7028 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7029 SAVE_CFLAGS=$CFLAGS 7030 CFLAGS="$CFLAGS -belf" 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7032 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7033 if ${lt_cv_cc_needs_belf+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035 else 7036 ac_ext=c 7037 ac_cpp='$CPP $CPPFLAGS' 7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7041 7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7043 /* end confdefs.h. */ 7044 7045 int 7046 main () 7047 { 7048 7049 ; 7050 return 0; 7051 } 7052 _ACEOF 7053 if ac_fn_c_try_link "$LINENO"; then : 7054 lt_cv_cc_needs_belf=yes 7055 else 7056 lt_cv_cc_needs_belf=no 7057 fi 7058 rm -f core conftest.err conftest.$ac_objext \ 7059 conftest$ac_exeext conftest.$ac_ext 7060 ac_ext=c 7061 ac_cpp='$CPP $CPPFLAGS' 7062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7064 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7065 7066 fi 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7068 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7069 if test yes != "$lt_cv_cc_needs_belf"; then 7070 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7071 CFLAGS=$SAVE_CFLAGS 7072 fi 7073 ;; 7074 *-*solaris*) 7075 # Find out what ABI is being produced by ac_compile, and set linker 7076 # options accordingly. 7077 echo 'int i;' > conftest.$ac_ext 7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7079 (eval $ac_compile) 2>&5 7080 ac_status=$? 7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7082 test $ac_status = 0; }; then 7083 case `/usr/bin/file conftest.o` in 7084 *64-bit*) 7085 case $lt_cv_prog_gnu_ld in 7086 yes*) 7087 case $host in 7088 i?86-*-solaris*|x86_64-*-solaris*) 7089 LD="${LD-ld} -m elf_x86_64" 7090 ;; 7091 sparc*-*-solaris*) 7092 LD="${LD-ld} -m elf64_sparc" 7093 ;; 7094 esac 7095 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7096 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7097 LD=${LD-ld}_sol2 7098 fi 7099 ;; 7100 *) 7101 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7102 LD="${LD-ld} -64" 7103 fi 7104 ;; 7105 esac 7106 ;; 7107 esac 7108 fi 7109 rm -rf conftest* 7110 ;; 7111 esac 7112 7113 need_locks=$enable_libtool_lock 7114 7115 if test -n "$ac_tool_prefix"; then 7116 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7117 set dummy ${ac_tool_prefix}mt; ac_word=$2 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7119 $as_echo_n "checking for $ac_word... " >&6; } 7120 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122 else 7123 if test -n "$MANIFEST_TOOL"; then 7124 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7125 else 7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127 for as_dir in $PATH 7128 do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137 done 7138 done 7139 IFS=$as_save_IFS 7140 7141 fi 7142 fi 7143 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7144 if test -n "$MANIFEST_TOOL"; then 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7146 $as_echo "$MANIFEST_TOOL" >&6; } 7147 else 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149 $as_echo "no" >&6; } 7150 fi 7151 7152 7153 fi 7154 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7155 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7156 # Extract the first word of "mt", so it can be a program name with args. 7157 set dummy mt; ac_word=$2 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7159 $as_echo_n "checking for $ac_word... " >&6; } 7160 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162 else 7163 if test -n "$ac_ct_MANIFEST_TOOL"; then 7164 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7165 else 7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7167 for as_dir in $PATH 7168 do 7169 IFS=$as_save_IFS 7170 test -z "$as_dir" && as_dir=. 7171 for ac_exec_ext in '' $ac_executable_extensions; do 7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7173 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7175 break 2 7176 fi 7177 done 7178 done 7179 IFS=$as_save_IFS 7180 7181 fi 7182 fi 7183 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7184 if test -n "$ac_ct_MANIFEST_TOOL"; then 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7186 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7187 else 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7189 $as_echo "no" >&6; } 7190 fi 7191 7192 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7193 MANIFEST_TOOL=":" 7194 else 7195 case $cross_compiling:$ac_tool_warned in 7196 yes:) 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7199 ac_tool_warned=yes ;; 7200 esac 7201 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7202 fi 7203 else 7204 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7205 fi 7206 7207 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7209 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7210 if ${lt_cv_path_mainfest_tool+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212 else 7213 lt_cv_path_mainfest_tool=no 7214 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7215 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7216 cat conftest.err >&5 7217 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7218 lt_cv_path_mainfest_tool=yes 7219 fi 7220 rm -f conftest* 7221 fi 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7223 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7224 if test yes != "$lt_cv_path_mainfest_tool"; then 7225 MANIFEST_TOOL=: 7226 fi 7227 7228 7229 7230 7231 7232 7233 case $host_os in 7234 rhapsody* | darwin*) 7235 if test -n "$ac_tool_prefix"; then 7236 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7237 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7239 $as_echo_n "checking for $ac_word... " >&6; } 7240 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242 else 7243 if test -n "$DSYMUTIL"; then 7244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7245 else 7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7247 for as_dir in $PATH 7248 do 7249 IFS=$as_save_IFS 7250 test -z "$as_dir" && as_dir=. 7251 for ac_exec_ext in '' $ac_executable_extensions; do 7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7255 break 2 7256 fi 7257 done 7258 done 7259 IFS=$as_save_IFS 7260 7261 fi 7262 fi 7263 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7264 if test -n "$DSYMUTIL"; then 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7266 $as_echo "$DSYMUTIL" >&6; } 7267 else 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7269 $as_echo "no" >&6; } 7270 fi 7271 7272 7273 fi 7274 if test -z "$ac_cv_prog_DSYMUTIL"; then 7275 ac_ct_DSYMUTIL=$DSYMUTIL 7276 # Extract the first word of "dsymutil", so it can be a program name with args. 7277 set dummy dsymutil; ac_word=$2 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7279 $as_echo_n "checking for $ac_word... " >&6; } 7280 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7281 $as_echo_n "(cached) " >&6 7282 else 7283 if test -n "$ac_ct_DSYMUTIL"; then 7284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7285 else 7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287 for as_dir in $PATH 7288 do 7289 IFS=$as_save_IFS 7290 test -z "$as_dir" && as_dir=. 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297 done 7298 done 7299 IFS=$as_save_IFS 7300 7301 fi 7302 fi 7303 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7304 if test -n "$ac_ct_DSYMUTIL"; then 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7306 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7307 else 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7309 $as_echo "no" >&6; } 7310 fi 7311 7312 if test "x$ac_ct_DSYMUTIL" = x; then 7313 DSYMUTIL=":" 7314 else 7315 case $cross_compiling:$ac_tool_warned in 7316 yes:) 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7319 ac_tool_warned=yes ;; 7320 esac 7321 DSYMUTIL=$ac_ct_DSYMUTIL 7322 fi 7323 else 7324 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7325 fi 7326 7327 if test -n "$ac_tool_prefix"; then 7328 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7331 $as_echo_n "checking for $ac_word... " >&6; } 7332 if ${ac_cv_prog_NMEDIT+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334 else 7335 if test -n "$NMEDIT"; then 7336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7337 else 7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7339 for as_dir in $PATH 7340 do 7341 IFS=$as_save_IFS 7342 test -z "$as_dir" && as_dir=. 7343 for ac_exec_ext in '' $ac_executable_extensions; do 7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7347 break 2 7348 fi 7349 done 7350 done 7351 IFS=$as_save_IFS 7352 7353 fi 7354 fi 7355 NMEDIT=$ac_cv_prog_NMEDIT 7356 if test -n "$NMEDIT"; then 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7358 $as_echo "$NMEDIT" >&6; } 7359 else 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7361 $as_echo "no" >&6; } 7362 fi 7363 7364 7365 fi 7366 if test -z "$ac_cv_prog_NMEDIT"; then 7367 ac_ct_NMEDIT=$NMEDIT 7368 # Extract the first word of "nmedit", so it can be a program name with args. 7369 set dummy nmedit; ac_word=$2 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7371 $as_echo_n "checking for $ac_word... " >&6; } 7372 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374 else 7375 if test -n "$ac_ct_NMEDIT"; then 7376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7377 else 7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7379 for as_dir in $PATH 7380 do 7381 IFS=$as_save_IFS 7382 test -z "$as_dir" && as_dir=. 7383 for ac_exec_ext in '' $ac_executable_extensions; do 7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7385 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7387 break 2 7388 fi 7389 done 7390 done 7391 IFS=$as_save_IFS 7392 7393 fi 7394 fi 7395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7396 if test -n "$ac_ct_NMEDIT"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7398 $as_echo "$ac_ct_NMEDIT" >&6; } 7399 else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401 $as_echo "no" >&6; } 7402 fi 7403 7404 if test "x$ac_ct_NMEDIT" = x; then 7405 NMEDIT=":" 7406 else 7407 case $cross_compiling:$ac_tool_warned in 7408 yes:) 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7411 ac_tool_warned=yes ;; 7412 esac 7413 NMEDIT=$ac_ct_NMEDIT 7414 fi 7415 else 7416 NMEDIT="$ac_cv_prog_NMEDIT" 7417 fi 7418 7419 if test -n "$ac_tool_prefix"; then 7420 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7421 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423 $as_echo_n "checking for $ac_word... " >&6; } 7424 if ${ac_cv_prog_LIPO+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426 else 7427 if test -n "$LIPO"; then 7428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7429 else 7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431 for as_dir in $PATH 7432 do 7433 IFS=$as_save_IFS 7434 test -z "$as_dir" && as_dir=. 7435 for ac_exec_ext in '' $ac_executable_extensions; do 7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7439 break 2 7440 fi 7441 done 7442 done 7443 IFS=$as_save_IFS 7444 7445 fi 7446 fi 7447 LIPO=$ac_cv_prog_LIPO 7448 if test -n "$LIPO"; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7450 $as_echo "$LIPO" >&6; } 7451 else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453 $as_echo "no" >&6; } 7454 fi 7455 7456 7457 fi 7458 if test -z "$ac_cv_prog_LIPO"; then 7459 ac_ct_LIPO=$LIPO 7460 # Extract the first word of "lipo", so it can be a program name with args. 7461 set dummy lipo; ac_word=$2 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7463 $as_echo_n "checking for $ac_word... " >&6; } 7464 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466 else 7467 if test -n "$ac_ct_LIPO"; then 7468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7469 else 7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7471 for as_dir in $PATH 7472 do 7473 IFS=$as_save_IFS 7474 test -z "$as_dir" && as_dir=. 7475 for ac_exec_ext in '' $ac_executable_extensions; do 7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7477 ac_cv_prog_ac_ct_LIPO="lipo" 7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7479 break 2 7480 fi 7481 done 7482 done 7483 IFS=$as_save_IFS 7484 7485 fi 7486 fi 7487 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7488 if test -n "$ac_ct_LIPO"; then 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7490 $as_echo "$ac_ct_LIPO" >&6; } 7491 else 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7493 $as_echo "no" >&6; } 7494 fi 7495 7496 if test "x$ac_ct_LIPO" = x; then 7497 LIPO=":" 7498 else 7499 case $cross_compiling:$ac_tool_warned in 7500 yes:) 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7503 ac_tool_warned=yes ;; 7504 esac 7505 LIPO=$ac_ct_LIPO 7506 fi 7507 else 7508 LIPO="$ac_cv_prog_LIPO" 7509 fi 7510 7511 if test -n "$ac_tool_prefix"; then 7512 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7513 set dummy ${ac_tool_prefix}otool; ac_word=$2 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7515 $as_echo_n "checking for $ac_word... " >&6; } 7516 if ${ac_cv_prog_OTOOL+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518 else 7519 if test -n "$OTOOL"; then 7520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7521 else 7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7523 for as_dir in $PATH 7524 do 7525 IFS=$as_save_IFS 7526 test -z "$as_dir" && as_dir=. 7527 for ac_exec_ext in '' $ac_executable_extensions; do 7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7531 break 2 7532 fi 7533 done 7534 done 7535 IFS=$as_save_IFS 7536 7537 fi 7538 fi 7539 OTOOL=$ac_cv_prog_OTOOL 7540 if test -n "$OTOOL"; then 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7542 $as_echo "$OTOOL" >&6; } 7543 else 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7545 $as_echo "no" >&6; } 7546 fi 7547 7548 7549 fi 7550 if test -z "$ac_cv_prog_OTOOL"; then 7551 ac_ct_OTOOL=$OTOOL 7552 # Extract the first word of "otool", so it can be a program name with args. 7553 set dummy otool; ac_word=$2 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7555 $as_echo_n "checking for $ac_word... " >&6; } 7556 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558 else 7559 if test -n "$ac_ct_OTOOL"; then 7560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7561 else 7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7563 for as_dir in $PATH 7564 do 7565 IFS=$as_save_IFS 7566 test -z "$as_dir" && as_dir=. 7567 for ac_exec_ext in '' $ac_executable_extensions; do 7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7569 ac_cv_prog_ac_ct_OTOOL="otool" 7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7571 break 2 7572 fi 7573 done 7574 done 7575 IFS=$as_save_IFS 7576 7577 fi 7578 fi 7579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7580 if test -n "$ac_ct_OTOOL"; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7582 $as_echo "$ac_ct_OTOOL" >&6; } 7583 else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585 $as_echo "no" >&6; } 7586 fi 7587 7588 if test "x$ac_ct_OTOOL" = x; then 7589 OTOOL=":" 7590 else 7591 case $cross_compiling:$ac_tool_warned in 7592 yes:) 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7595 ac_tool_warned=yes ;; 7596 esac 7597 OTOOL=$ac_ct_OTOOL 7598 fi 7599 else 7600 OTOOL="$ac_cv_prog_OTOOL" 7601 fi 7602 7603 if test -n "$ac_tool_prefix"; then 7604 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7605 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7607 $as_echo_n "checking for $ac_word... " >&6; } 7608 if ${ac_cv_prog_OTOOL64+:} false; then : 7609 $as_echo_n "(cached) " >&6 7610 else 7611 if test -n "$OTOOL64"; then 7612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7613 else 7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7615 for as_dir in $PATH 7616 do 7617 IFS=$as_save_IFS 7618 test -z "$as_dir" && as_dir=. 7619 for ac_exec_ext in '' $ac_executable_extensions; do 7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7623 break 2 7624 fi 7625 done 7626 done 7627 IFS=$as_save_IFS 7628 7629 fi 7630 fi 7631 OTOOL64=$ac_cv_prog_OTOOL64 7632 if test -n "$OTOOL64"; then 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7634 $as_echo "$OTOOL64" >&6; } 7635 else 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7637 $as_echo "no" >&6; } 7638 fi 7639 7640 7641 fi 7642 if test -z "$ac_cv_prog_OTOOL64"; then 7643 ac_ct_OTOOL64=$OTOOL64 7644 # Extract the first word of "otool64", so it can be a program name with args. 7645 set dummy otool64; ac_word=$2 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7647 $as_echo_n "checking for $ac_word... " >&6; } 7648 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650 else 7651 if test -n "$ac_ct_OTOOL64"; then 7652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7653 else 7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7655 for as_dir in $PATH 7656 do 7657 IFS=$as_save_IFS 7658 test -z "$as_dir" && as_dir=. 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7661 ac_cv_prog_ac_ct_OTOOL64="otool64" 7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7663 break 2 7664 fi 7665 done 7666 done 7667 IFS=$as_save_IFS 7668 7669 fi 7670 fi 7671 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7672 if test -n "$ac_ct_OTOOL64"; then 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7674 $as_echo "$ac_ct_OTOOL64" >&6; } 7675 else 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7677 $as_echo "no" >&6; } 7678 fi 7679 7680 if test "x$ac_ct_OTOOL64" = x; then 7681 OTOOL64=":" 7682 else 7683 case $cross_compiling:$ac_tool_warned in 7684 yes:) 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7687 ac_tool_warned=yes ;; 7688 esac 7689 OTOOL64=$ac_ct_OTOOL64 7690 fi 7691 else 7692 OTOOL64="$ac_cv_prog_OTOOL64" 7693 fi 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7722 $as_echo_n "checking for -single_module linker flag... " >&6; } 7723 if ${lt_cv_apple_cc_single_mod+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725 else 7726 lt_cv_apple_cc_single_mod=no 7727 if test -z "$LT_MULTI_MODULE"; then 7728 # By default we will add the -single_module flag. You can override 7729 # by either setting the environment variable LT_MULTI_MODULE 7730 # non-empty at configure time, or by adding -multi_module to the 7731 # link flags. 7732 rm -rf libconftest.dylib* 7733 echo "int foo(void){return 1;}" > conftest.c 7734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7735 -dynamiclib -Wl,-single_module conftest.c" >&5 7736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7738 _lt_result=$? 7739 # If there is a non-empty error log, and "single_module" 7740 # appears in it, assume the flag caused a linker warning 7741 if test -s conftest.err && $GREP single_module conftest.err; then 7742 cat conftest.err >&5 7743 # Otherwise, if the output was created with a 0 exit code from 7744 # the compiler, it worked. 7745 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7746 lt_cv_apple_cc_single_mod=yes 7747 else 7748 cat conftest.err >&5 7749 fi 7750 rm -rf libconftest.dylib* 7751 rm -f conftest.* 7752 fi 7753 fi 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7755 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7756 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7758 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7759 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761 else 7762 lt_cv_ld_exported_symbols_list=no 7763 save_LDFLAGS=$LDFLAGS 7764 echo "_main" > conftest.sym 7765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767 /* end confdefs.h. */ 7768 7769 int 7770 main () 7771 { 7772 7773 ; 7774 return 0; 7775 } 7776 _ACEOF 7777 if ac_fn_c_try_link "$LINENO"; then : 7778 lt_cv_ld_exported_symbols_list=yes 7779 else 7780 lt_cv_ld_exported_symbols_list=no 7781 fi 7782 rm -f core conftest.err conftest.$ac_objext \ 7783 conftest$ac_exeext conftest.$ac_ext 7784 LDFLAGS=$save_LDFLAGS 7785 7786 fi 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7788 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7791 $as_echo_n "checking for -force_load linker flag... " >&6; } 7792 if ${lt_cv_ld_force_load+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794 else 7795 lt_cv_ld_force_load=no 7796 cat > conftest.c << _LT_EOF 7797 int forced_loaded() { return 2;} 7798 _LT_EOF 7799 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7800 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7801 echo "$AR cru libconftest.a conftest.o" >&5 7802 $AR cru libconftest.a conftest.o 2>&5 7803 echo "$RANLIB libconftest.a" >&5 7804 $RANLIB libconftest.a 2>&5 7805 cat > conftest.c << _LT_EOF 7806 int main() { return 0;} 7807 _LT_EOF 7808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7810 _lt_result=$? 7811 if test -s conftest.err && $GREP force_load conftest.err; then 7812 cat conftest.err >&5 7813 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7814 lt_cv_ld_force_load=yes 7815 else 7816 cat conftest.err >&5 7817 fi 7818 rm -f conftest.err libconftest.a conftest conftest.c 7819 rm -rf conftest.dSYM 7820 7821 fi 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7823 $as_echo "$lt_cv_ld_force_load" >&6; } 7824 case $host_os in 7825 rhapsody* | darwin1.[012]) 7826 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7827 darwin1.*) 7828 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7829 darwin*) # darwin 5.x on 7830 # if running on 10.5 or later, the deployment target defaults 7831 # to the OS version, if on x86, and 10.4, the deployment 7832 # target defaults to 10.4. Don't you love it? 7833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7834 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7835 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7836 10.[012][,.]*) 7837 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7838 10.*) 7839 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7840 esac 7841 ;; 7842 esac 7843 if test yes = "$lt_cv_apple_cc_single_mod"; then 7844 _lt_dar_single_mod='$single_module' 7845 fi 7846 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7847 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7848 else 7849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7850 fi 7851 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7852 _lt_dsymutil='~$DSYMUTIL $lib || :' 7853 else 7854 _lt_dsymutil= 7855 fi 7856 ;; 7857 esac 7858 7859 # func_munge_path_list VARIABLE PATH 7860 # ----------------------------------- 7861 # VARIABLE is name of variable containing _space_ separated list of 7862 # directories to be munged by the contents of PATH, which is string 7863 # having a format: 7864 # "DIR[:DIR]:" 7865 # string "DIR[ DIR]" will be prepended to VARIABLE 7866 # ":DIR[:DIR]" 7867 # string "DIR[ DIR]" will be appended to VARIABLE 7868 # "DIRP[:DIRP]::[DIRA:]DIRA" 7869 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7870 # "DIRA[ DIRA]" will be appended to VARIABLE 7871 # "DIR[:DIR]" 7872 # VARIABLE will be replaced by "DIR[ DIR]" 7873 func_munge_path_list () 7874 { 7875 case x$2 in 7876 x) 7877 ;; 7878 *:) 7879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7880 ;; 7881 x:*) 7882 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7883 ;; 7884 *::*) 7885 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7886 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7887 ;; 7888 *) 7889 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7890 ;; 7891 esac 7892 } 7893 7894 ac_ext=c 7895 ac_cpp='$CPP $CPPFLAGS' 7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7900 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7901 # On Suns, sometimes $CPP names a directory. 7902 if test -n "$CPP" && test -d "$CPP"; then 7903 CPP= 7904 fi 7905 if test -z "$CPP"; then 7906 if ${ac_cv_prog_CPP+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908 else 7909 # Double quotes because CPP needs to be expanded 7910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7911 do 7912 ac_preproc_ok=false 7913 for ac_c_preproc_warn_flag in '' yes 7914 do 7915 # Use a header file that comes with gcc, so configuring glibc 7916 # with a fresh cross-compiler works. 7917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7918 # <limits.h> exists even on freestanding compilers. 7919 # On the NeXT, cc -E runs the code through the compiler's parser, 7920 # not just through cpp. "Syntax error" is here to catch this case. 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7922 /* end confdefs.h. */ 7923 #ifdef __STDC__ 7924 # include <limits.h> 7925 #else 7926 # include <assert.h> 7927 #endif 7928 Syntax error 7929 _ACEOF 7930 if ac_fn_c_try_cpp "$LINENO"; then : 7931 7932 else 7933 # Broken: fails on valid input. 7934 continue 7935 fi 7936 rm -f conftest.err conftest.i conftest.$ac_ext 7937 7938 # OK, works on sane cases. Now check whether nonexistent headers 7939 # can be detected and how. 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941 /* end confdefs.h. */ 7942 #include <ac_nonexistent.h> 7943 _ACEOF 7944 if ac_fn_c_try_cpp "$LINENO"; then : 7945 # Broken: success on invalid input. 7946 continue 7947 else 7948 # Passes both tests. 7949 ac_preproc_ok=: 7950 break 7951 fi 7952 rm -f conftest.err conftest.i conftest.$ac_ext 7953 7954 done 7955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7956 rm -f conftest.i conftest.err conftest.$ac_ext 7957 if $ac_preproc_ok; then : 7958 break 7959 fi 7960 7961 done 7962 ac_cv_prog_CPP=$CPP 7963 7964 fi 7965 CPP=$ac_cv_prog_CPP 7966 else 7967 ac_cv_prog_CPP=$CPP 7968 fi 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7970 $as_echo "$CPP" >&6; } 7971 ac_preproc_ok=false 7972 for ac_c_preproc_warn_flag in '' yes 7973 do 7974 # Use a header file that comes with gcc, so configuring glibc 7975 # with a fresh cross-compiler works. 7976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7977 # <limits.h> exists even on freestanding compilers. 7978 # On the NeXT, cc -E runs the code through the compiler's parser, 7979 # not just through cpp. "Syntax error" is here to catch this case. 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981 /* end confdefs.h. */ 7982 #ifdef __STDC__ 7983 # include <limits.h> 7984 #else 7985 # include <assert.h> 7986 #endif 7987 Syntax error 7988 _ACEOF 7989 if ac_fn_c_try_cpp "$LINENO"; then : 7990 7991 else 7992 # Broken: fails on valid input. 7993 continue 7994 fi 7995 rm -f conftest.err conftest.i conftest.$ac_ext 7996 7997 # OK, works on sane cases. Now check whether nonexistent headers 7998 # can be detected and how. 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000 /* end confdefs.h. */ 8001 #include <ac_nonexistent.h> 8002 _ACEOF 8003 if ac_fn_c_try_cpp "$LINENO"; then : 8004 # Broken: success on invalid input. 8005 continue 8006 else 8007 # Passes both tests. 8008 ac_preproc_ok=: 8009 break 8010 fi 8011 rm -f conftest.err conftest.i conftest.$ac_ext 8012 8013 done 8014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8015 rm -f conftest.i conftest.err conftest.$ac_ext 8016 if $ac_preproc_ok; then : 8017 8018 else 8019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8021 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8022 See \`config.log' for more details" "$LINENO" 5; } 8023 fi 8024 8025 ac_ext=c 8026 ac_cpp='$CPP $CPPFLAGS' 8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8030 8031 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8033 $as_echo_n "checking for ANSI C header files... " >&6; } 8034 if ${ac_cv_header_stdc+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036 else 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038 /* end confdefs.h. */ 8039 #include <stdlib.h> 8040 #include <stdarg.h> 8041 #include <string.h> 8042 #include <float.h> 8043 8044 int 8045 main () 8046 { 8047 8048 ; 8049 return 0; 8050 } 8051 _ACEOF 8052 if ac_fn_c_try_compile "$LINENO"; then : 8053 ac_cv_header_stdc=yes 8054 else 8055 ac_cv_header_stdc=no 8056 fi 8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8058 8059 if test $ac_cv_header_stdc = yes; then 8060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8062 /* end confdefs.h. */ 8063 #include <string.h> 8064 8065 _ACEOF 8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8067 $EGREP "memchr" >/dev/null 2>&1; then : 8068 8069 else 8070 ac_cv_header_stdc=no 8071 fi 8072 rm -f conftest* 8073 8074 fi 8075 8076 if test $ac_cv_header_stdc = yes; then 8077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079 /* end confdefs.h. */ 8080 #include <stdlib.h> 8081 8082 _ACEOF 8083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8084 $EGREP "free" >/dev/null 2>&1; then : 8085 8086 else 8087 ac_cv_header_stdc=no 8088 fi 8089 rm -f conftest* 8090 8091 fi 8092 8093 if test $ac_cv_header_stdc = yes; then 8094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8095 if test "$cross_compiling" = yes; then : 8096 : 8097 else 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099 /* end confdefs.h. */ 8100 #include <ctype.h> 8101 #include <stdlib.h> 8102 #if ((' ' & 0x0FF) == 0x020) 8103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8105 #else 8106 # define ISLOWER(c) \ 8107 (('a' <= (c) && (c) <= 'i') \ 8108 || ('j' <= (c) && (c) <= 'r') \ 8109 || ('s' <= (c) && (c) <= 'z')) 8110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8111 #endif 8112 8113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8114 int 8115 main () 8116 { 8117 int i; 8118 for (i = 0; i < 256; i++) 8119 if (XOR (islower (i), ISLOWER (i)) 8120 || toupper (i) != TOUPPER (i)) 8121 return 2; 8122 return 0; 8123 } 8124 _ACEOF 8125 if ac_fn_c_try_run "$LINENO"; then : 8126 8127 else 8128 ac_cv_header_stdc=no 8129 fi 8130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8131 conftest.$ac_objext conftest.beam conftest.$ac_ext 8132 fi 8133 8134 fi 8135 fi 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8137 $as_echo "$ac_cv_header_stdc" >&6; } 8138 if test $ac_cv_header_stdc = yes; then 8139 8140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 8141 8142 fi 8143 8144 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 8145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8146 inttypes.h stdint.h unistd.h 8147 do : 8148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8149 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8150 " 8151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8152 cat >>confdefs.h <<_ACEOF 8153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8154 _ACEOF 8155 8156 fi 8157 8158 done 8159 8160 8161 for ac_header in dlfcn.h 8162 do : 8163 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8164 " 8165 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8166 cat >>confdefs.h <<_ACEOF 8167 #define HAVE_DLFCN_H 1 8168 _ACEOF 8169 8170 fi 8171 8172 done 8173 8174 8175 8176 8177 8178 # Set options 8179 8180 8181 8182 enable_dlopen=no 8183 8184 8185 8186 # Check whether --enable-shared was given. 8187 if test "${enable_shared+set}" = set; then : 8188 enableval=$enable_shared; p=${PACKAGE-default} 8189 case $enableval in 8190 yes) enable_shared=yes ;; 8191 no) enable_shared=no ;; 8192 *) 8193 enable_shared=no 8194 # Look at the argument we got. We use all the common list separators. 8195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8196 for pkg in $enableval; do 8197 IFS=$lt_save_ifs 8198 if test "X$pkg" = "X$p"; then 8199 enable_shared=yes 8200 fi 8201 done 8202 IFS=$lt_save_ifs 8203 ;; 8204 esac 8205 else 8206 enable_shared=yes 8207 fi 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 # Check whether --enable-static was given. 8218 if test "${enable_static+set}" = set; then : 8219 enableval=$enable_static; p=${PACKAGE-default} 8220 case $enableval in 8221 yes) enable_static=yes ;; 8222 no) enable_static=no ;; 8223 *) 8224 enable_static=no 8225 # Look at the argument we got. We use all the common list separators. 8226 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8227 for pkg in $enableval; do 8228 IFS=$lt_save_ifs 8229 if test "X$pkg" = "X$p"; then 8230 enable_static=yes 8231 fi 8232 done 8233 IFS=$lt_save_ifs 8234 ;; 8235 esac 8236 else 8237 enable_static=yes 8238 fi 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 # Check whether --with-pic was given. 8250 if test "${with_pic+set}" = set; then : 8251 withval=$with_pic; lt_p=${PACKAGE-default} 8252 case $withval in 8253 yes|no) pic_mode=$withval ;; 8254 *) 8255 pic_mode=default 8256 # Look at the argument we got. We use all the common list separators. 8257 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8258 for lt_pkg in $withval; do 8259 IFS=$lt_save_ifs 8260 if test "X$lt_pkg" = "X$lt_p"; then 8261 pic_mode=yes 8262 fi 8263 done 8264 IFS=$lt_save_ifs 8265 ;; 8266 esac 8267 else 8268 pic_mode=default 8269 fi 8270 8271 8272 8273 8274 8275 8276 8277 8278 # Check whether --enable-fast-install was given. 8279 if test "${enable_fast_install+set}" = set; then : 8280 enableval=$enable_fast_install; p=${PACKAGE-default} 8281 case $enableval in 8282 yes) enable_fast_install=yes ;; 8283 no) enable_fast_install=no ;; 8284 *) 8285 enable_fast_install=no 8286 # Look at the argument we got. We use all the common list separators. 8287 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8288 for pkg in $enableval; do 8289 IFS=$lt_save_ifs 8290 if test "X$pkg" = "X$p"; then 8291 enable_fast_install=yes 8292 fi 8293 done 8294 IFS=$lt_save_ifs 8295 ;; 8296 esac 8297 else 8298 enable_fast_install=yes 8299 fi 8300 8301 8302 8303 8304 8305 8306 8307 8308 shared_archive_member_spec= 8309 case $host,$enable_shared in 8310 power*-*-aix[5-9]*,yes) 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8312 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8313 8314 # Check whether --with-aix-soname was given. 8315 if test "${with_aix_soname+set}" = set; then : 8316 withval=$with_aix_soname; case $withval in 8317 aix|svr4|both) 8318 ;; 8319 *) 8320 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8321 ;; 8322 esac 8323 lt_cv_with_aix_soname=$with_aix_soname 8324 else 8325 if ${lt_cv_with_aix_soname+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327 else 8328 lt_cv_with_aix_soname=aix 8329 fi 8330 8331 with_aix_soname=$lt_cv_with_aix_soname 8332 fi 8333 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8335 $as_echo "$with_aix_soname" >&6; } 8336 if test aix != "$with_aix_soname"; then 8337 # For the AIX way of multilib, we name the shared archive member 8338 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8339 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8340 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8341 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8342 if test 64 = "${OBJECT_MODE-32}"; then 8343 shared_archive_member_spec=shr_64 8344 else 8345 shared_archive_member_spec=shr 8346 fi 8347 fi 8348 ;; 8349 *) 8350 with_aix_soname=aix 8351 ;; 8352 esac 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 # This can be used to rebuild libtool when needed 8364 LIBTOOL_DEPS=$ltmain 8365 8366 # Always use our own libtool. 8367 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 test -z "$LN_S" && LN_S="ln -s" 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 if test -n "${ZSH_VERSION+set}"; then 8414 setopt NO_GLOB_SUBST 8415 fi 8416 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8418 $as_echo_n "checking for objdir... " >&6; } 8419 if ${lt_cv_objdir+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421 else 8422 rm -f .libs 2>/dev/null 8423 mkdir .libs 2>/dev/null 8424 if test -d .libs; then 8425 lt_cv_objdir=.libs 8426 else 8427 # MS-DOS does not allow filenames that begin with a dot. 8428 lt_cv_objdir=_libs 8429 fi 8430 rmdir .libs 2>/dev/null 8431 fi 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8433 $as_echo "$lt_cv_objdir" >&6; } 8434 objdir=$lt_cv_objdir 8435 8436 8437 8438 8439 8440 cat >>confdefs.h <<_ACEOF 8441 #define LT_OBJDIR "$lt_cv_objdir/" 8442 _ACEOF 8443 8444 8445 8446 8447 case $host_os in 8448 aix3*) 8449 # AIX sometimes has problems with the GCC collect2 program. For some 8450 # reason, if we set the COLLECT_NAMES environment variable, the problems 8451 # vanish in a puff of smoke. 8452 if test set != "${COLLECT_NAMES+set}"; then 8453 COLLECT_NAMES= 8454 export COLLECT_NAMES 8455 fi 8456 ;; 8457 esac 8458 8459 # Global variables: 8460 ofile=libtool 8461 can_build_shared=yes 8462 8463 # All known linkers require a '.a' archive for static linking (except MSVC, 8464 # which needs '.lib'). 8465 libext=a 8466 8467 with_gnu_ld=$lt_cv_prog_gnu_ld 8468 8469 old_CC=$CC 8470 old_CFLAGS=$CFLAGS 8471 8472 # Set sane defaults for various variables 8473 test -z "$CC" && CC=cc 8474 test -z "$LTCC" && LTCC=$CC 8475 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8476 test -z "$LD" && LD=ld 8477 test -z "$ac_objext" && ac_objext=o 8478 8479 func_cc_basename $compiler 8480 cc_basename=$func_cc_basename_result 8481 8482 8483 # Only perform the check for file, if the check method requires it 8484 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8485 case $deplibs_check_method in 8486 file_magic*) 8487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8489 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8490 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492 else 8493 case $MAGIC_CMD in 8494 [\\/*] | ?:[\\/]*) 8495 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8496 ;; 8497 *) 8498 lt_save_MAGIC_CMD=$MAGIC_CMD 8499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8501 for ac_dir in $ac_dummy; do 8502 IFS=$lt_save_ifs 8503 test -z "$ac_dir" && ac_dir=. 8504 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8505 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8506 if test -n "$file_magic_test_file"; then 8507 case $deplibs_check_method in 8508 "file_magic "*) 8509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8510 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8512 $EGREP "$file_magic_regex" > /dev/null; then 8513 : 8514 else 8515 cat <<_LT_EOF 1>&2 8516 8517 *** Warning: the command libtool uses to detect shared libraries, 8518 *** $file_magic_cmd, produces output that libtool cannot recognize. 8519 *** The result is that libtool may fail to recognize shared libraries 8520 *** as such. This will affect the creation of libtool libraries that 8521 *** depend on shared libraries, but programs linked with such libtool 8522 *** libraries will work regardless of this problem. Nevertheless, you 8523 *** may want to report the problem to your system manager and/or to 8524 *** bug-libtool (at] gnu.org 8525 8526 _LT_EOF 8527 fi ;; 8528 esac 8529 fi 8530 break 8531 fi 8532 done 8533 IFS=$lt_save_ifs 8534 MAGIC_CMD=$lt_save_MAGIC_CMD 8535 ;; 8536 esac 8537 fi 8538 8539 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8540 if test -n "$MAGIC_CMD"; then 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8542 $as_echo "$MAGIC_CMD" >&6; } 8543 else 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8545 $as_echo "no" >&6; } 8546 fi 8547 8548 8549 8550 8551 8552 if test -z "$lt_cv_path_MAGIC_CMD"; then 8553 if test -n "$ac_tool_prefix"; then 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8555 $as_echo_n "checking for file... " >&6; } 8556 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8557 $as_echo_n "(cached) " >&6 8558 else 8559 case $MAGIC_CMD in 8560 [\\/*] | ?:[\\/]*) 8561 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8562 ;; 8563 *) 8564 lt_save_MAGIC_CMD=$MAGIC_CMD 8565 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8567 for ac_dir in $ac_dummy; do 8568 IFS=$lt_save_ifs 8569 test -z "$ac_dir" && ac_dir=. 8570 if test -f "$ac_dir/file"; then 8571 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8572 if test -n "$file_magic_test_file"; then 8573 case $deplibs_check_method in 8574 "file_magic "*) 8575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8576 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8578 $EGREP "$file_magic_regex" > /dev/null; then 8579 : 8580 else 8581 cat <<_LT_EOF 1>&2 8582 8583 *** Warning: the command libtool uses to detect shared libraries, 8584 *** $file_magic_cmd, produces output that libtool cannot recognize. 8585 *** The result is that libtool may fail to recognize shared libraries 8586 *** as such. This will affect the creation of libtool libraries that 8587 *** depend on shared libraries, but programs linked with such libtool 8588 *** libraries will work regardless of this problem. Nevertheless, you 8589 *** may want to report the problem to your system manager and/or to 8590 *** bug-libtool (at] gnu.org 8591 8592 _LT_EOF 8593 fi ;; 8594 esac 8595 fi 8596 break 8597 fi 8598 done 8599 IFS=$lt_save_ifs 8600 MAGIC_CMD=$lt_save_MAGIC_CMD 8601 ;; 8602 esac 8603 fi 8604 8605 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8606 if test -n "$MAGIC_CMD"; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8608 $as_echo "$MAGIC_CMD" >&6; } 8609 else 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8611 $as_echo "no" >&6; } 8612 fi 8613 8614 8615 else 8616 MAGIC_CMD=: 8617 fi 8618 fi 8619 8620 fi 8621 ;; 8622 esac 8623 8624 # Use C for the default configuration in the libtool script 8625 8626 lt_save_CC=$CC 8627 ac_ext=c 8628 ac_cpp='$CPP $CPPFLAGS' 8629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8631 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8632 8633 8634 # Source file extension for C test sources. 8635 ac_ext=c 8636 8637 # Object file extension for compiled C test sources. 8638 objext=o 8639 objext=$objext 8640 8641 # Code to be used in simple compile tests 8642 lt_simple_compile_test_code="int some_variable = 0;" 8643 8644 # Code to be used in simple link tests 8645 lt_simple_link_test_code='int main(){return(0);}' 8646 8647 8648 8649 8650 8651 8652 8653 # If no C compiler was specified, use CC. 8654 LTCC=${LTCC-"$CC"} 8655 8656 # If no C compiler flags were specified, use CFLAGS. 8657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8658 8659 # Allow CC to be a program name with arguments. 8660 compiler=$CC 8661 8662 # Save the default compiler, since it gets overwritten when the other 8663 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8664 compiler_DEFAULT=$CC 8665 8666 # save warnings/boilerplate of simple test code 8667 ac_outfile=conftest.$ac_objext 8668 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8670 _lt_compiler_boilerplate=`cat conftest.err` 8671 $RM conftest* 8672 8673 ac_outfile=conftest.$ac_objext 8674 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8676 _lt_linker_boilerplate=`cat conftest.err` 8677 $RM -r conftest* 8678 8679 8680 ## CAVEAT EMPTOR: 8681 ## There is no encapsulation within the following macros, do not change 8682 ## the running order or otherwise move them around unless you know exactly 8683 ## what you are doing... 8684 if test -n "$compiler"; then 8685 8686 lt_prog_compiler_no_builtin_flag= 8687 8688 if test yes = "$GCC"; then 8689 case $cc_basename in 8690 nvcc*) 8691 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8692 *) 8693 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8694 esac 8695 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8697 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8698 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700 else 8701 lt_cv_prog_compiler_rtti_exceptions=no 8702 ac_outfile=conftest.$ac_objext 8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8704 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8705 # Insert the option either (1) after the last *FLAGS variable, or 8706 # (2) before a word containing "conftest.", or (3) at the end. 8707 # Note that $ac_compile itself does not contain backslashes and begins 8708 # with a dollar sign (not a hyphen), so the echo should work correctly. 8709 # The option is referenced via a variable to avoid confusing sed. 8710 lt_compile=`echo "$ac_compile" | $SED \ 8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8713 -e 's:$: $lt_compiler_flag:'` 8714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8715 (eval "$lt_compile" 2>conftest.err) 8716 ac_status=$? 8717 cat conftest.err >&5 8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8719 if (exit $ac_status) && test -s "$ac_outfile"; then 8720 # The compiler can only warn and ignore the option if not recognized 8721 # So say no if there are warnings other than the usual output. 8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8725 lt_cv_prog_compiler_rtti_exceptions=yes 8726 fi 8727 fi 8728 $RM conftest* 8729 8730 fi 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8732 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8733 8734 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8736 else 8737 : 8738 fi 8739 8740 fi 8741 8742 8743 8744 8745 8746 8747 lt_prog_compiler_wl= 8748 lt_prog_compiler_pic= 8749 lt_prog_compiler_static= 8750 8751 8752 if test yes = "$GCC"; then 8753 lt_prog_compiler_wl='-Wl,' 8754 lt_prog_compiler_static='-static' 8755 8756 case $host_os in 8757 aix*) 8758 # All AIX code is PIC. 8759 if test ia64 = "$host_cpu"; then 8760 # AIX 5 now supports IA64 processor 8761 lt_prog_compiler_static='-Bstatic' 8762 fi 8763 lt_prog_compiler_pic='-fPIC' 8764 ;; 8765 8766 amigaos*) 8767 case $host_cpu in 8768 powerpc) 8769 # see comment about AmigaOS4 .so support 8770 lt_prog_compiler_pic='-fPIC' 8771 ;; 8772 m68k) 8773 # FIXME: we need at least 68020 code to build shared libraries, but 8774 # adding the '-m68020' flag to GCC prevents building anything better, 8775 # like '-m68040'. 8776 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8777 ;; 8778 esac 8779 ;; 8780 8781 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8782 # PIC is the default for these OSes. 8783 ;; 8784 8785 mingw* | cygwin* | pw32* | os2* | cegcc*) 8786 # This hack is so that the source file can tell whether it is being 8787 # built for inclusion in a dll (and should export symbols for example). 8788 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8789 # (--disable-auto-import) libraries 8790 lt_prog_compiler_pic='-DDLL_EXPORT' 8791 case $host_os in 8792 os2*) 8793 lt_prog_compiler_static='$wl-static' 8794 ;; 8795 esac 8796 ;; 8797 8798 darwin* | rhapsody*) 8799 # PIC is the default on this platform 8800 # Common symbols not allowed in MH_DYLIB files 8801 lt_prog_compiler_pic='-fno-common' 8802 ;; 8803 8804 haiku*) 8805 # PIC is the default for Haiku. 8806 # The "-static" flag exists, but is broken. 8807 lt_prog_compiler_static= 8808 ;; 8809 8810 hpux*) 8811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8813 # sets the default TLS model and affects inlining. 8814 case $host_cpu in 8815 hppa*64*) 8816 # +Z the default 8817 ;; 8818 *) 8819 lt_prog_compiler_pic='-fPIC' 8820 ;; 8821 esac 8822 ;; 8823 8824 interix[3-9]*) 8825 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8826 # Instead, we relocate shared libraries at runtime. 8827 ;; 8828 8829 msdosdjgpp*) 8830 # Just because we use GCC doesn't mean we suddenly get shared libraries 8831 # on systems that don't support them. 8832 lt_prog_compiler_can_build_shared=no 8833 enable_shared=no 8834 ;; 8835 8836 *nto* | *qnx*) 8837 # QNX uses GNU C++, but need to define -shared option too, otherwise 8838 # it will coredump. 8839 lt_prog_compiler_pic='-fPIC -shared' 8840 ;; 8841 8842 sysv4*MP*) 8843 if test -d /usr/nec; then 8844 lt_prog_compiler_pic=-Kconform_pic 8845 fi 8846 ;; 8847 8848 *) 8849 lt_prog_compiler_pic='-fPIC' 8850 ;; 8851 esac 8852 8853 case $cc_basename in 8854 nvcc*) # Cuda Compiler Driver 2.2 8855 lt_prog_compiler_wl='-Xlinker ' 8856 if test -n "$lt_prog_compiler_pic"; then 8857 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8858 fi 8859 ;; 8860 esac 8861 else 8862 # PORTME Check for flag to pass linker flags through the system compiler. 8863 case $host_os in 8864 aix*) 8865 lt_prog_compiler_wl='-Wl,' 8866 if test ia64 = "$host_cpu"; then 8867 # AIX 5 now supports IA64 processor 8868 lt_prog_compiler_static='-Bstatic' 8869 else 8870 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8871 fi 8872 ;; 8873 8874 darwin* | rhapsody*) 8875 # PIC is the default on this platform 8876 # Common symbols not allowed in MH_DYLIB files 8877 lt_prog_compiler_pic='-fno-common' 8878 case $cc_basename in 8879 nagfor*) 8880 # NAG Fortran compiler 8881 lt_prog_compiler_wl='-Wl,-Wl,,' 8882 lt_prog_compiler_pic='-PIC' 8883 lt_prog_compiler_static='-Bstatic' 8884 ;; 8885 esac 8886 ;; 8887 8888 mingw* | cygwin* | pw32* | os2* | cegcc*) 8889 # This hack is so that the source file can tell whether it is being 8890 # built for inclusion in a dll (and should export symbols for example). 8891 lt_prog_compiler_pic='-DDLL_EXPORT' 8892 case $host_os in 8893 os2*) 8894 lt_prog_compiler_static='$wl-static' 8895 ;; 8896 esac 8897 ;; 8898 8899 hpux9* | hpux10* | hpux11*) 8900 lt_prog_compiler_wl='-Wl,' 8901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8902 # not for PA HP-UX. 8903 case $host_cpu in 8904 hppa*64*|ia64*) 8905 # +Z the default 8906 ;; 8907 *) 8908 lt_prog_compiler_pic='+Z' 8909 ;; 8910 esac 8911 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8912 lt_prog_compiler_static='$wl-a ${wl}archive' 8913 ;; 8914 8915 irix5* | irix6* | nonstopux*) 8916 lt_prog_compiler_wl='-Wl,' 8917 # PIC (with -KPIC) is the default. 8918 lt_prog_compiler_static='-non_shared' 8919 ;; 8920 8921 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8922 case $cc_basename in 8923 # old Intel for x86_64, which still supported -KPIC. 8924 ecc*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_pic='-KPIC' 8927 lt_prog_compiler_static='-static' 8928 ;; 8929 # icc used to be incompatible with GCC. 8930 # ICC 10 doesn't accept -KPIC any more. 8931 icc* | ifort*) 8932 lt_prog_compiler_wl='-Wl,' 8933 lt_prog_compiler_pic='-fPIC' 8934 lt_prog_compiler_static='-static' 8935 ;; 8936 # Lahey Fortran 8.1. 8937 lf95*) 8938 lt_prog_compiler_wl='-Wl,' 8939 lt_prog_compiler_pic='--shared' 8940 lt_prog_compiler_static='--static' 8941 ;; 8942 nagfor*) 8943 # NAG Fortran compiler 8944 lt_prog_compiler_wl='-Wl,-Wl,,' 8945 lt_prog_compiler_pic='-PIC' 8946 lt_prog_compiler_static='-Bstatic' 8947 ;; 8948 tcc*) 8949 # Fabrice Bellard et al's Tiny C Compiler 8950 lt_prog_compiler_wl='-Wl,' 8951 lt_prog_compiler_pic='-fPIC' 8952 lt_prog_compiler_static='-static' 8953 ;; 8954 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8955 # Portland Group compilers (*not* the Pentium gcc compiler, 8956 # which looks to be a dead project) 8957 lt_prog_compiler_wl='-Wl,' 8958 lt_prog_compiler_pic='-fpic' 8959 lt_prog_compiler_static='-Bstatic' 8960 ;; 8961 ccc*) 8962 lt_prog_compiler_wl='-Wl,' 8963 # All Alpha code is PIC. 8964 lt_prog_compiler_static='-non_shared' 8965 ;; 8966 xl* | bgxl* | bgf* | mpixl*) 8967 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8968 lt_prog_compiler_wl='-Wl,' 8969 lt_prog_compiler_pic='-qpic' 8970 lt_prog_compiler_static='-qstaticlink' 8971 ;; 8972 *) 8973 case `$CC -V 2>&1 | sed 5q` in 8974 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8975 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8976 lt_prog_compiler_pic='-KPIC' 8977 lt_prog_compiler_static='-Bstatic' 8978 lt_prog_compiler_wl='' 8979 ;; 8980 *Sun\ F* | *Sun*Fortran*) 8981 lt_prog_compiler_pic='-KPIC' 8982 lt_prog_compiler_static='-Bstatic' 8983 lt_prog_compiler_wl='-Qoption ld ' 8984 ;; 8985 *Sun\ C*) 8986 # Sun C 5.9 8987 lt_prog_compiler_pic='-KPIC' 8988 lt_prog_compiler_static='-Bstatic' 8989 lt_prog_compiler_wl='-Wl,' 8990 ;; 8991 *Intel*\ [CF]*Compiler*) 8992 lt_prog_compiler_wl='-Wl,' 8993 lt_prog_compiler_pic='-fPIC' 8994 lt_prog_compiler_static='-static' 8995 ;; 8996 *Portland\ Group*) 8997 lt_prog_compiler_wl='-Wl,' 8998 lt_prog_compiler_pic='-fpic' 8999 lt_prog_compiler_static='-Bstatic' 9000 ;; 9001 esac 9002 ;; 9003 esac 9004 ;; 9005 9006 newsos6) 9007 lt_prog_compiler_pic='-KPIC' 9008 lt_prog_compiler_static='-Bstatic' 9009 ;; 9010 9011 *nto* | *qnx*) 9012 # QNX uses GNU C++, but need to define -shared option too, otherwise 9013 # it will coredump. 9014 lt_prog_compiler_pic='-fPIC -shared' 9015 ;; 9016 9017 osf3* | osf4* | osf5*) 9018 lt_prog_compiler_wl='-Wl,' 9019 # All OSF/1 code is PIC. 9020 lt_prog_compiler_static='-non_shared' 9021 ;; 9022 9023 rdos*) 9024 lt_prog_compiler_static='-non_shared' 9025 ;; 9026 9027 solaris*) 9028 lt_prog_compiler_pic='-KPIC' 9029 lt_prog_compiler_static='-Bstatic' 9030 case $cc_basename in 9031 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9032 lt_prog_compiler_wl='-Qoption ld ';; 9033 *) 9034 lt_prog_compiler_wl='-Wl,';; 9035 esac 9036 ;; 9037 9038 sunos4*) 9039 lt_prog_compiler_wl='-Qoption ld ' 9040 lt_prog_compiler_pic='-PIC' 9041 lt_prog_compiler_static='-Bstatic' 9042 ;; 9043 9044 sysv4 | sysv4.2uw2* | sysv4.3*) 9045 lt_prog_compiler_wl='-Wl,' 9046 lt_prog_compiler_pic='-KPIC' 9047 lt_prog_compiler_static='-Bstatic' 9048 ;; 9049 9050 sysv4*MP*) 9051 if test -d /usr/nec; then 9052 lt_prog_compiler_pic='-Kconform_pic' 9053 lt_prog_compiler_static='-Bstatic' 9054 fi 9055 ;; 9056 9057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_pic='-KPIC' 9060 lt_prog_compiler_static='-Bstatic' 9061 ;; 9062 9063 unicos*) 9064 lt_prog_compiler_wl='-Wl,' 9065 lt_prog_compiler_can_build_shared=no 9066 ;; 9067 9068 uts4*) 9069 lt_prog_compiler_pic='-pic' 9070 lt_prog_compiler_static='-Bstatic' 9071 ;; 9072 9073 *) 9074 lt_prog_compiler_can_build_shared=no 9075 ;; 9076 esac 9077 fi 9078 9079 case $host_os in 9080 # For platforms that do not support PIC, -DPIC is meaningless: 9081 *djgpp*) 9082 lt_prog_compiler_pic= 9083 ;; 9084 *) 9085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9086 ;; 9087 esac 9088 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9091 if ${lt_cv_prog_compiler_pic+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093 else 9094 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9095 fi 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9097 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 9098 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9099 9100 # 9101 # Check to make sure the PIC flag actually works. 9102 # 9103 if test -n "$lt_prog_compiler_pic"; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9106 if ${lt_cv_prog_compiler_pic_works+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108 else 9109 lt_cv_prog_compiler_pic_works=no 9110 ac_outfile=conftest.$ac_objext 9111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9113 # Insert the option either (1) after the last *FLAGS variable, or 9114 # (2) before a word containing "conftest.", or (3) at the end. 9115 # Note that $ac_compile itself does not contain backslashes and begins 9116 # with a dollar sign (not a hyphen), so the echo should work correctly. 9117 # The option is referenced via a variable to avoid confusing sed. 9118 lt_compile=`echo "$ac_compile" | $SED \ 9119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9121 -e 's:$: $lt_compiler_flag:'` 9122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9123 (eval "$lt_compile" 2>conftest.err) 9124 ac_status=$? 9125 cat conftest.err >&5 9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9127 if (exit $ac_status) && test -s "$ac_outfile"; then 9128 # The compiler can only warn and ignore the option if not recognized 9129 # So say no if there are warnings other than the usual output. 9130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9133 lt_cv_prog_compiler_pic_works=yes 9134 fi 9135 fi 9136 $RM conftest* 9137 9138 fi 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9141 9142 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9143 case $lt_prog_compiler_pic in 9144 "" | " "*) ;; 9145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9146 esac 9147 else 9148 lt_prog_compiler_pic= 9149 lt_prog_compiler_can_build_shared=no 9150 fi 9151 9152 fi 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 # 9165 # Check to make sure the static flag actually works. 9166 # 9167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9170 if ${lt_cv_prog_compiler_static_works+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172 else 9173 lt_cv_prog_compiler_static_works=no 9174 save_LDFLAGS=$LDFLAGS 9175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9176 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9178 # The linker can only warn and ignore the option if not recognized 9179 # So say no if there are warnings 9180 if test -s conftest.err; then 9181 # Append any errors to the config.log. 9182 cat conftest.err 1>&5 9183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9185 if diff conftest.exp conftest.er2 >/dev/null; then 9186 lt_cv_prog_compiler_static_works=yes 9187 fi 9188 else 9189 lt_cv_prog_compiler_static_works=yes 9190 fi 9191 fi 9192 $RM -r conftest* 9193 LDFLAGS=$save_LDFLAGS 9194 9195 fi 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9198 9199 if test yes = "$lt_cv_prog_compiler_static_works"; then 9200 : 9201 else 9202 lt_prog_compiler_static= 9203 fi 9204 9205 9206 9207 9208 9209 9210 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9213 if ${lt_cv_prog_compiler_c_o+:} false; then : 9214 $as_echo_n "(cached) " >&6 9215 else 9216 lt_cv_prog_compiler_c_o=no 9217 $RM -r conftest 2>/dev/null 9218 mkdir conftest 9219 cd conftest 9220 mkdir out 9221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9222 9223 lt_compiler_flag="-o out/conftest2.$ac_objext" 9224 # Insert the option either (1) after the last *FLAGS variable, or 9225 # (2) before a word containing "conftest.", or (3) at the end. 9226 # Note that $ac_compile itself does not contain backslashes and begins 9227 # with a dollar sign (not a hyphen), so the echo should work correctly. 9228 lt_compile=`echo "$ac_compile" | $SED \ 9229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9231 -e 's:$: $lt_compiler_flag:'` 9232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9233 (eval "$lt_compile" 2>out/conftest.err) 9234 ac_status=$? 9235 cat out/conftest.err >&5 9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9237 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9238 then 9239 # The compiler can only warn and ignore the option if not recognized 9240 # So say no if there are warnings 9241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9244 lt_cv_prog_compiler_c_o=yes 9245 fi 9246 fi 9247 chmod u+w . 2>&5 9248 $RM conftest* 9249 # SGI C++ compiler will create directory out/ii_files/ for 9250 # template instantiation 9251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9252 $RM out/* && rmdir out 9253 cd .. 9254 $RM -r conftest 9255 $RM conftest* 9256 9257 fi 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9260 9261 9262 9263 9264 9265 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9268 if ${lt_cv_prog_compiler_c_o+:} false; then : 9269 $as_echo_n "(cached) " >&6 9270 else 9271 lt_cv_prog_compiler_c_o=no 9272 $RM -r conftest 2>/dev/null 9273 mkdir conftest 9274 cd conftest 9275 mkdir out 9276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9277 9278 lt_compiler_flag="-o out/conftest2.$ac_objext" 9279 # Insert the option either (1) after the last *FLAGS variable, or 9280 # (2) before a word containing "conftest.", or (3) at the end. 9281 # Note that $ac_compile itself does not contain backslashes and begins 9282 # with a dollar sign (not a hyphen), so the echo should work correctly. 9283 lt_compile=`echo "$ac_compile" | $SED \ 9284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9286 -e 's:$: $lt_compiler_flag:'` 9287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9288 (eval "$lt_compile" 2>out/conftest.err) 9289 ac_status=$? 9290 cat out/conftest.err >&5 9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9292 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9293 then 9294 # The compiler can only warn and ignore the option if not recognized 9295 # So say no if there are warnings 9296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9299 lt_cv_prog_compiler_c_o=yes 9300 fi 9301 fi 9302 chmod u+w . 2>&5 9303 $RM conftest* 9304 # SGI C++ compiler will create directory out/ii_files/ for 9305 # template instantiation 9306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9307 $RM out/* && rmdir out 9308 cd .. 9309 $RM -r conftest 9310 $RM conftest* 9311 9312 fi 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9315 9316 9317 9318 9319 hard_links=nottested 9320 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9321 # do not overwrite the value of need_locks provided by the user 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9323 $as_echo_n "checking if we can lock with hard links... " >&6; } 9324 hard_links=yes 9325 $RM conftest* 9326 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9327 touch conftest.a 9328 ln conftest.a conftest.b 2>&5 || hard_links=no 9329 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9331 $as_echo "$hard_links" >&6; } 9332 if test no = "$hard_links"; then 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9334 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9335 need_locks=warn 9336 fi 9337 else 9338 need_locks=no 9339 fi 9340 9341 9342 9343 9344 9345 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9348 9349 runpath_var= 9350 allow_undefined_flag= 9351 always_export_symbols=no 9352 archive_cmds= 9353 archive_expsym_cmds= 9354 compiler_needs_object=no 9355 enable_shared_with_static_runtimes=no 9356 export_dynamic_flag_spec= 9357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9358 hardcode_automatic=no 9359 hardcode_direct=no 9360 hardcode_direct_absolute=no 9361 hardcode_libdir_flag_spec= 9362 hardcode_libdir_separator= 9363 hardcode_minus_L=no 9364 hardcode_shlibpath_var=unsupported 9365 inherit_rpath=no 9366 link_all_deplibs=unknown 9367 module_cmds= 9368 module_expsym_cmds= 9369 old_archive_from_new_cmds= 9370 old_archive_from_expsyms_cmds= 9371 thread_safe_flag_spec= 9372 whole_archive_flag_spec= 9373 # include_expsyms should be a list of space-separated symbols to be *always* 9374 # included in the symbol list 9375 include_expsyms= 9376 # exclude_expsyms can be an extended regexp of symbols to exclude 9377 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9378 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9379 # as well as any symbol that contains 'd'. 9380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9382 # platforms (ab)use it in PIC code, but their linkers get confused if 9383 # the symbol is explicitly referenced. Since portable code cannot 9384 # rely on this symbol name, it's probably fine to never include it in 9385 # preloaded symbol tables. 9386 # Exclude shared library initialization/finalization symbols. 9387 extract_expsyms_cmds= 9388 9389 case $host_os in 9390 cygwin* | mingw* | pw32* | cegcc*) 9391 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9392 # When not using gcc, we currently assume that we are using 9393 # Microsoft Visual C++. 9394 if test yes != "$GCC"; then 9395 with_gnu_ld=no 9396 fi 9397 ;; 9398 interix*) 9399 # we just hope/assume this is gcc and not c89 (= MSVC++) 9400 with_gnu_ld=yes 9401 ;; 9402 openbsd* | bitrig*) 9403 with_gnu_ld=no 9404 ;; 9405 esac 9406 9407 ld_shlibs=yes 9408 9409 # On some targets, GNU ld is compatible enough with the native linker 9410 # that we're better off using the native interface for both. 9411 lt_use_gnu_ld_interface=no 9412 if test yes = "$with_gnu_ld"; then 9413 case $host_os in 9414 aix*) 9415 # The AIX port of GNU ld has always aspired to compatibility 9416 # with the native linker. However, as the warning in the GNU ld 9417 # block says, versions before 2.19.5* couldn't really create working 9418 # shared libraries, regardless of the interface used. 9419 case `$LD -v 2>&1` in 9420 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9421 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9422 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9423 *) 9424 lt_use_gnu_ld_interface=yes 9425 ;; 9426 esac 9427 ;; 9428 *) 9429 lt_use_gnu_ld_interface=yes 9430 ;; 9431 esac 9432 fi 9433 9434 if test yes = "$lt_use_gnu_ld_interface"; then 9435 # If archive_cmds runs LD, not CC, wlarc should be empty 9436 wlarc='$wl' 9437 9438 # Set some defaults for GNU ld with shared library support. These 9439 # are reset later if shared libraries are not supported. Putting them 9440 # here allows them to be overridden if necessary. 9441 runpath_var=LD_RUN_PATH 9442 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9443 export_dynamic_flag_spec='$wl--export-dynamic' 9444 # ancient GNU ld didn't support --whole-archive et. al. 9445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9446 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9447 else 9448 whole_archive_flag_spec= 9449 fi 9450 supports_anon_versioning=no 9451 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9452 *GNU\ gold*) supports_anon_versioning=yes ;; 9453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9456 *\ 2.11.*) ;; # other 2.11 versions 9457 *) supports_anon_versioning=yes ;; 9458 esac 9459 9460 # See if GNU ld supports shared libraries. 9461 case $host_os in 9462 aix[3-9]*) 9463 # On AIX/PPC, the GNU linker is very broken 9464 if test ia64 != "$host_cpu"; then 9465 ld_shlibs=no 9466 cat <<_LT_EOF 1>&2 9467 9468 *** Warning: the GNU linker, at least up to release 2.19, is reported 9469 *** to be unable to reliably create shared libraries on AIX. 9470 *** Therefore, libtool is disabling shared libraries support. If you 9471 *** really care for shared libraries, you may want to install binutils 9472 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9473 *** You will then need to restart the configuration process. 9474 9475 _LT_EOF 9476 fi 9477 ;; 9478 9479 amigaos*) 9480 case $host_cpu in 9481 powerpc) 9482 # see comment about AmigaOS4 .so support 9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9484 archive_expsym_cmds='' 9485 ;; 9486 m68k) 9487 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)' 9488 hardcode_libdir_flag_spec='-L$libdir' 9489 hardcode_minus_L=yes 9490 ;; 9491 esac 9492 ;; 9493 9494 beos*) 9495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9496 allow_undefined_flag=unsupported 9497 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9498 # support --undefined. This deserves some investigation. FIXME 9499 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9500 else 9501 ld_shlibs=no 9502 fi 9503 ;; 9504 9505 cygwin* | mingw* | pw32* | cegcc*) 9506 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9507 # as there is no search path for DLLs. 9508 hardcode_libdir_flag_spec='-L$libdir' 9509 export_dynamic_flag_spec='$wl--export-all-symbols' 9510 allow_undefined_flag=unsupported 9511 always_export_symbols=no 9512 enable_shared_with_static_runtimes=yes 9513 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' 9514 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9515 9516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9518 # If the export-symbols file already is a .def file, use it as 9519 # is; otherwise, prepend EXPORTS... 9520 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9521 cp $export_symbols $output_objdir/$soname.def; 9522 else 9523 echo EXPORTS > $output_objdir/$soname.def; 9524 cat $export_symbols >> $output_objdir/$soname.def; 9525 fi~ 9526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9527 else 9528 ld_shlibs=no 9529 fi 9530 ;; 9531 9532 haiku*) 9533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9534 link_all_deplibs=yes 9535 ;; 9536 9537 os2*) 9538 hardcode_libdir_flag_spec='-L$libdir' 9539 hardcode_minus_L=yes 9540 allow_undefined_flag=unsupported 9541 shrext_cmds=.dll 9542 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9543 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9544 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9545 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9546 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9548 emximp -o $lib $output_objdir/$libname.def' 9549 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9550 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9551 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9552 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9553 prefix_cmds="$SED"~ 9554 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9555 prefix_cmds="$prefix_cmds -e 1d"; 9556 fi~ 9557 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9558 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9559 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9560 emximp -o $lib $output_objdir/$libname.def' 9561 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9562 enable_shared_with_static_runtimes=yes 9563 ;; 9564 9565 interix[3-9]*) 9566 hardcode_direct=no 9567 hardcode_shlibpath_var=no 9568 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9569 export_dynamic_flag_spec='$wl-E' 9570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9571 # Instead, shared libraries are loaded at an image base (0x10000000 by 9572 # default) and relocated if they conflict, which is a slow very memory 9573 # consuming and fragmenting process. To avoid this, we pick a random, 9574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9575 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9577 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' 9578 ;; 9579 9580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9581 tmp_diet=no 9582 if test linux-dietlibc = "$host_os"; then 9583 case $cc_basename in 9584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9585 esac 9586 fi 9587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9588 && test no = "$tmp_diet" 9589 then 9590 tmp_addflag=' $pic_flag' 9591 tmp_sharedflag='-shared' 9592 case $cc_basename,$host_cpu in 9593 pgcc*) # Portland Group C compiler 9594 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' 9595 tmp_addflag=' $pic_flag' 9596 ;; 9597 pgf77* | pgf90* | pgf95* | pgfortran*) 9598 # Portland Group f77 and f90 compilers 9599 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' 9600 tmp_addflag=' $pic_flag -Mnomain' ;; 9601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9602 tmp_addflag=' -i_dynamic' ;; 9603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9604 tmp_addflag=' -i_dynamic -nofor_main' ;; 9605 ifc* | ifort*) # Intel Fortran compiler 9606 tmp_addflag=' -nofor_main' ;; 9607 lf95*) # Lahey Fortran 8.1 9608 whole_archive_flag_spec= 9609 tmp_sharedflag='--shared' ;; 9610 nagfor*) # NAGFOR 5.3 9611 tmp_sharedflag='-Wl,-shared' ;; 9612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9613 tmp_sharedflag='-qmkshrobj' 9614 tmp_addflag= ;; 9615 nvcc*) # Cuda Compiler Driver 2.2 9616 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' 9617 compiler_needs_object=yes 9618 ;; 9619 esac 9620 case `$CC -V 2>&1 | sed 5q` in 9621 *Sun\ C*) # Sun C 5.9 9622 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' 9623 compiler_needs_object=yes 9624 tmp_sharedflag='-G' ;; 9625 *Sun\ F*) # Sun Fortran 8.3 9626 tmp_sharedflag='-G' ;; 9627 esac 9628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9629 9630 if test yes = "$supports_anon_versioning"; then 9631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9633 echo "local: *; };" >> $output_objdir/$libname.ver~ 9634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9635 fi 9636 9637 case $cc_basename in 9638 tcc*) 9639 export_dynamic_flag_spec='-rdynamic' 9640 ;; 9641 xlf* | bgf* | bgxlf* | mpixlf*) 9642 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9643 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9644 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9645 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9646 if test yes = "$supports_anon_versioning"; then 9647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9649 echo "local: *; };" >> $output_objdir/$libname.ver~ 9650 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9651 fi 9652 ;; 9653 esac 9654 else 9655 ld_shlibs=no 9656 fi 9657 ;; 9658 9659 netbsd*) 9660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9662 wlarc= 9663 else 9664 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9665 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9666 fi 9667 ;; 9668 9669 solaris*) 9670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9671 ld_shlibs=no 9672 cat <<_LT_EOF 1>&2 9673 9674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9675 *** create shared libraries on Solaris systems. Therefore, libtool 9676 *** is disabling shared libraries support. We urge you to upgrade GNU 9677 *** binutils to release 2.9.1 or newer. Another option is to modify 9678 *** your PATH or compiler configuration so that the native linker is 9679 *** used, and then restart. 9680 9681 _LT_EOF 9682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9684 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9685 else 9686 ld_shlibs=no 9687 fi 9688 ;; 9689 9690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9691 case `$LD -v 2>&1` in 9692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9693 ld_shlibs=no 9694 cat <<_LT_EOF 1>&2 9695 9696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9697 *** reliably create shared libraries on SCO systems. Therefore, libtool 9698 *** is disabling shared libraries support. We urge you to upgrade GNU 9699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9700 *** your PATH or compiler configuration so that the native linker is 9701 *** used, and then restart. 9702 9703 _LT_EOF 9704 ;; 9705 *) 9706 # For security reasons, it is highly recommended that you always 9707 # use absolute paths for naming shared libraries, and exclude the 9708 # DT_RUNPATH tag from executables and libraries. But doing so 9709 # requires that you compile everything twice, which is a pain. 9710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9714 else 9715 ld_shlibs=no 9716 fi 9717 ;; 9718 esac 9719 ;; 9720 9721 sunos4*) 9722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9723 wlarc= 9724 hardcode_direct=yes 9725 hardcode_shlibpath_var=no 9726 ;; 9727 9728 *) 9729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9732 else 9733 ld_shlibs=no 9734 fi 9735 ;; 9736 esac 9737 9738 if test no = "$ld_shlibs"; then 9739 runpath_var= 9740 hardcode_libdir_flag_spec= 9741 export_dynamic_flag_spec= 9742 whole_archive_flag_spec= 9743 fi 9744 else 9745 # PORTME fill in a description of your system's linker (not GNU ld) 9746 case $host_os in 9747 aix3*) 9748 allow_undefined_flag=unsupported 9749 always_export_symbols=yes 9750 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' 9751 # Note: this linker hardcodes the directories in LIBPATH if there 9752 # are no directories specified by -L. 9753 hardcode_minus_L=yes 9754 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9755 # Neither direct hardcoding nor static linking is supported with a 9756 # broken collect2. 9757 hardcode_direct=unsupported 9758 fi 9759 ;; 9760 9761 aix[4-9]*) 9762 if test ia64 = "$host_cpu"; then 9763 # On IA64, the linker does run time linking by default, so we don't 9764 # have to do anything special. 9765 aix_use_runtimelinking=no 9766 exp_sym_flag='-Bexport' 9767 no_entry_flag= 9768 else 9769 # If we're using GNU nm, then we don't want the "-C" option. 9770 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9771 # Without the "-l" option, or with the "-B" option, AIX nm treats 9772 # weak defined symbols like other global defined symbols, whereas 9773 # GNU nm marks them as "W". 9774 # While the 'weak' keyword is ignored in the Export File, we need 9775 # it in the Import File for the 'aix-soname' feature, so we have 9776 # to replace the "-B" option with "-P" for AIX nm. 9777 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9778 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' 9779 else 9780 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' 9781 fi 9782 aix_use_runtimelinking=no 9783 9784 # Test if we are trying to use run time linking or normal 9785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9786 # have runtime linking enabled, and use it for executables. 9787 # For shared libraries, we enable/disable runtime linking 9788 # depending on the kind of the shared library created - 9789 # when "with_aix_soname,aix_use_runtimelinking" is: 9790 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9791 # "aix,yes" lib.so shared, rtl:yes, for executables 9792 # lib.a static archive 9793 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9794 # lib.a(lib.so.V) shared, rtl:no, for executables 9795 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9796 # lib.a(lib.so.V) shared, rtl:no 9797 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9798 # lib.a static archive 9799 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9800 for ld_flag in $LDFLAGS; do 9801 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9802 aix_use_runtimelinking=yes 9803 break 9804 fi 9805 done 9806 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9807 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9808 # so we don't have lib.a shared libs to link our executables. 9809 # We have to force runtime linking in this case. 9810 aix_use_runtimelinking=yes 9811 LDFLAGS="$LDFLAGS -Wl,-brtl" 9812 fi 9813 ;; 9814 esac 9815 9816 exp_sym_flag='-bexport' 9817 no_entry_flag='-bnoentry' 9818 fi 9819 9820 # When large executables or shared objects are built, AIX ld can 9821 # have problems creating the table of contents. If linking a library 9822 # or program results in "error TOC overflow" add -mminimal-toc to 9823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9825 9826 archive_cmds='' 9827 hardcode_direct=yes 9828 hardcode_direct_absolute=yes 9829 hardcode_libdir_separator=':' 9830 link_all_deplibs=yes 9831 file_list_spec='$wl-f,' 9832 case $with_aix_soname,$aix_use_runtimelinking in 9833 aix,*) ;; # traditional, no import file 9834 svr4,* | *,yes) # use import file 9835 # The Import File defines what to hardcode. 9836 hardcode_direct=no 9837 hardcode_direct_absolute=no 9838 ;; 9839 esac 9840 9841 if test yes = "$GCC"; then 9842 case $host_os in aix4.[012]|aix4.[012].*) 9843 # We only want to do this on AIX 4.2 and lower, the check 9844 # below for broken collect2 doesn't work under 4.3+ 9845 collect2name=`$CC -print-prog-name=collect2` 9846 if test -f "$collect2name" && 9847 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9848 then 9849 # We have reworked collect2 9850 : 9851 else 9852 # We have old collect2 9853 hardcode_direct=unsupported 9854 # It fails to find uninstalled libraries when the uninstalled 9855 # path is not listed in the libpath. Setting hardcode_minus_L 9856 # to unsupported forces relinking 9857 hardcode_minus_L=yes 9858 hardcode_libdir_flag_spec='-L$libdir' 9859 hardcode_libdir_separator= 9860 fi 9861 ;; 9862 esac 9863 shared_flag='-shared' 9864 if test yes = "$aix_use_runtimelinking"; then 9865 shared_flag="$shared_flag "'$wl-G' 9866 fi 9867 # Need to ensure runtime linking is disabled for the traditional 9868 # shared library, or the linker may eventually find shared libraries 9869 # /with/ Import File - we do not want to mix them. 9870 shared_flag_aix='-shared' 9871 shared_flag_svr4='-shared $wl-G' 9872 else 9873 # not using gcc 9874 if test ia64 = "$host_cpu"; then 9875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9876 # chokes on -Wl,-G. The following line is correct: 9877 shared_flag='-G' 9878 else 9879 if test yes = "$aix_use_runtimelinking"; then 9880 shared_flag='$wl-G' 9881 else 9882 shared_flag='$wl-bM:SRE' 9883 fi 9884 shared_flag_aix='$wl-bM:SRE' 9885 shared_flag_svr4='$wl-G' 9886 fi 9887 fi 9888 9889 export_dynamic_flag_spec='$wl-bexpall' 9890 # It seems that -bexpall does not export symbols beginning with 9891 # underscore (_), so it is better to generate a list of symbols to export. 9892 always_export_symbols=yes 9893 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9894 # Warning - without using the other runtime loading flags (-brtl), 9895 # -berok will link without error, but may produce a broken library. 9896 allow_undefined_flag='-berok' 9897 # Determine the default libpath from the value encoded in an 9898 # empty executable. 9899 if test set = "${lt_cv_aix_libpath+set}"; then 9900 aix_libpath=$lt_cv_aix_libpath 9901 else 9902 if ${lt_cv_aix_libpath_+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904 else 9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9906 /* end confdefs.h. */ 9907 9908 int 9909 main () 9910 { 9911 9912 ; 9913 return 0; 9914 } 9915 _ACEOF 9916 if ac_fn_c_try_link "$LINENO"; then : 9917 9918 lt_aix_libpath_sed=' 9919 /Import File Strings/,/^$/ { 9920 /^0/ { 9921 s/^0 *\([^ ]*\) *$/\1/ 9922 p 9923 } 9924 }' 9925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9926 # Check for a 64-bit object if we didn't find anything. 9927 if test -z "$lt_cv_aix_libpath_"; then 9928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9929 fi 9930 fi 9931 rm -f core conftest.err conftest.$ac_objext \ 9932 conftest$ac_exeext conftest.$ac_ext 9933 if test -z "$lt_cv_aix_libpath_"; then 9934 lt_cv_aix_libpath_=/usr/lib:/lib 9935 fi 9936 9937 fi 9938 9939 aix_libpath=$lt_cv_aix_libpath_ 9940 fi 9941 9942 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9943 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 9944 else 9945 if test ia64 = "$host_cpu"; then 9946 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9947 allow_undefined_flag="-z nodefs" 9948 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" 9949 else 9950 # Determine the default libpath from the value encoded in an 9951 # empty executable. 9952 if test set = "${lt_cv_aix_libpath+set}"; then 9953 aix_libpath=$lt_cv_aix_libpath 9954 else 9955 if ${lt_cv_aix_libpath_+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957 else 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959 /* end confdefs.h. */ 9960 9961 int 9962 main () 9963 { 9964 9965 ; 9966 return 0; 9967 } 9968 _ACEOF 9969 if ac_fn_c_try_link "$LINENO"; then : 9970 9971 lt_aix_libpath_sed=' 9972 /Import File Strings/,/^$/ { 9973 /^0/ { 9974 s/^0 *\([^ ]*\) *$/\1/ 9975 p 9976 } 9977 }' 9978 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9979 # Check for a 64-bit object if we didn't find anything. 9980 if test -z "$lt_cv_aix_libpath_"; then 9981 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9982 fi 9983 fi 9984 rm -f core conftest.err conftest.$ac_objext \ 9985 conftest$ac_exeext conftest.$ac_ext 9986 if test -z "$lt_cv_aix_libpath_"; then 9987 lt_cv_aix_libpath_=/usr/lib:/lib 9988 fi 9989 9990 fi 9991 9992 aix_libpath=$lt_cv_aix_libpath_ 9993 fi 9994 9995 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9996 # Warning - without using the other run time loading flags, 9997 # -berok will link without error, but may produce a broken library. 9998 no_undefined_flag=' $wl-bernotok' 9999 allow_undefined_flag=' $wl-berok' 10000 if test yes = "$with_gnu_ld"; then 10001 # We only use this code for GNU lds that support --whole-archive. 10002 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10003 else 10004 # Exported symbols can be pulled into shared objects from archives 10005 whole_archive_flag_spec='$convenience' 10006 fi 10007 archive_cmds_need_lc=yes 10008 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10009 # -brtl affects multiple linker settings, -berok does not and is overridden later 10010 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10011 if test svr4 != "$with_aix_soname"; then 10012 # This is similar to how AIX traditionally builds its shared libraries. 10013 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' 10014 fi 10015 if test aix != "$with_aix_soname"; then 10016 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' 10017 else 10018 # used by -dlpreopen to get the symbols 10019 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10020 fi 10021 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10022 fi 10023 fi 10024 ;; 10025 10026 amigaos*) 10027 case $host_cpu in 10028 powerpc) 10029 # see comment about AmigaOS4 .so support 10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10031 archive_expsym_cmds='' 10032 ;; 10033 m68k) 10034 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)' 10035 hardcode_libdir_flag_spec='-L$libdir' 10036 hardcode_minus_L=yes 10037 ;; 10038 esac 10039 ;; 10040 10041 bsdi[45]*) 10042 export_dynamic_flag_spec=-rdynamic 10043 ;; 10044 10045 cygwin* | mingw* | pw32* | cegcc*) 10046 # When not using gcc, we currently assume that we are using 10047 # Microsoft Visual C++. 10048 # hardcode_libdir_flag_spec is actually meaningless, as there is 10049 # no search path for DLLs. 10050 case $cc_basename in 10051 cl*) 10052 # Native MSVC 10053 hardcode_libdir_flag_spec=' ' 10054 allow_undefined_flag=unsupported 10055 always_export_symbols=yes 10056 file_list_spec='@' 10057 # Tell ltmain to make .lib files, not .a files. 10058 libext=lib 10059 # Tell ltmain to make .dll files, not .so files. 10060 shrext_cmds=.dll 10061 # FIXME: Setting linknames here is a bad hack. 10062 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10063 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10064 cp "$export_symbols" "$output_objdir/$soname.def"; 10065 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10066 else 10067 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10068 fi~ 10069 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10070 linknames=' 10071 # The linker will not automatically build a static lib if we build a DLL. 10072 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10073 enable_shared_with_static_runtimes=yes 10074 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10076 # Don't use ranlib 10077 old_postinstall_cmds='chmod 644 $oldlib' 10078 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10079 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10080 case $lt_outputfile in 10081 *.exe|*.EXE) ;; 10082 *) 10083 lt_outputfile=$lt_outputfile.exe 10084 lt_tool_outputfile=$lt_tool_outputfile.exe 10085 ;; 10086 esac~ 10087 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10089 $RM "$lt_outputfile.manifest"; 10090 fi' 10091 ;; 10092 *) 10093 # Assume MSVC wrapper 10094 hardcode_libdir_flag_spec=' ' 10095 allow_undefined_flag=unsupported 10096 # Tell ltmain to make .lib files, not .a files. 10097 libext=lib 10098 # Tell ltmain to make .dll files, not .so files. 10099 shrext_cmds=.dll 10100 # FIXME: Setting linknames here is a bad hack. 10101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10102 # The linker will automatically build a .lib file if we build a DLL. 10103 old_archive_from_new_cmds='true' 10104 # FIXME: Should let the user specify the lib program. 10105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10106 enable_shared_with_static_runtimes=yes 10107 ;; 10108 esac 10109 ;; 10110 10111 darwin* | rhapsody*) 10112 10113 10114 archive_cmds_need_lc=no 10115 hardcode_direct=no 10116 hardcode_automatic=yes 10117 hardcode_shlibpath_var=unsupported 10118 if test yes = "$lt_cv_ld_force_load"; then 10119 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\"`' 10120 10121 else 10122 whole_archive_flag_spec='' 10123 fi 10124 link_all_deplibs=yes 10125 allow_undefined_flag=$_lt_dar_allow_undefined 10126 case $cc_basename in 10127 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10128 *) _lt_dar_can_shared=$GCC ;; 10129 esac 10130 if test yes = "$_lt_dar_can_shared"; then 10131 output_verbose_link_cmd=func_echo_all 10132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10134 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" 10135 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" 10136 10137 else 10138 ld_shlibs=no 10139 fi 10140 10141 ;; 10142 10143 dgux*) 10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10145 hardcode_libdir_flag_spec='-L$libdir' 10146 hardcode_shlibpath_var=no 10147 ;; 10148 10149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10150 # support. Future versions do this automatically, but an explicit c++rt0.o 10151 # does not break anything, and helps significantly (at the cost of a little 10152 # extra space). 10153 freebsd2.2*) 10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10155 hardcode_libdir_flag_spec='-R$libdir' 10156 hardcode_direct=yes 10157 hardcode_shlibpath_var=no 10158 ;; 10159 10160 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10161 freebsd2.*) 10162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10163 hardcode_direct=yes 10164 hardcode_minus_L=yes 10165 hardcode_shlibpath_var=no 10166 ;; 10167 10168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10169 freebsd* | dragonfly*) 10170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10171 hardcode_libdir_flag_spec='-R$libdir' 10172 hardcode_direct=yes 10173 hardcode_shlibpath_var=no 10174 ;; 10175 10176 hpux9*) 10177 if test yes = "$GCC"; then 10178 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' 10179 else 10180 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' 10181 fi 10182 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10183 hardcode_libdir_separator=: 10184 hardcode_direct=yes 10185 10186 # hardcode_minus_L: Not really in the search PATH, 10187 # but as the default location of the library. 10188 hardcode_minus_L=yes 10189 export_dynamic_flag_spec='$wl-E' 10190 ;; 10191 10192 hpux10*) 10193 if test yes,no = "$GCC,$with_gnu_ld"; then 10194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10195 else 10196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10197 fi 10198 if test no = "$with_gnu_ld"; then 10199 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10200 hardcode_libdir_separator=: 10201 hardcode_direct=yes 10202 hardcode_direct_absolute=yes 10203 export_dynamic_flag_spec='$wl-E' 10204 # hardcode_minus_L: Not really in the search PATH, 10205 # but as the default location of the library. 10206 hardcode_minus_L=yes 10207 fi 10208 ;; 10209 10210 hpux11*) 10211 if test yes,no = "$GCC,$with_gnu_ld"; then 10212 case $host_cpu in 10213 hppa*64*) 10214 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10215 ;; 10216 ia64*) 10217 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10218 ;; 10219 *) 10220 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10221 ;; 10222 esac 10223 else 10224 case $host_cpu in 10225 hppa*64*) 10226 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10227 ;; 10228 ia64*) 10229 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10230 ;; 10231 *) 10232 10233 # Older versions of the 11.00 compiler do not understand -b yet 10234 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10236 $as_echo_n "checking if $CC understands -b... " >&6; } 10237 if ${lt_cv_prog_compiler__b+:} false; then : 10238 $as_echo_n "(cached) " >&6 10239 else 10240 lt_cv_prog_compiler__b=no 10241 save_LDFLAGS=$LDFLAGS 10242 LDFLAGS="$LDFLAGS -b" 10243 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10245 # The linker can only warn and ignore the option if not recognized 10246 # So say no if there are warnings 10247 if test -s conftest.err; then 10248 # Append any errors to the config.log. 10249 cat conftest.err 1>&5 10250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10252 if diff conftest.exp conftest.er2 >/dev/null; then 10253 lt_cv_prog_compiler__b=yes 10254 fi 10255 else 10256 lt_cv_prog_compiler__b=yes 10257 fi 10258 fi 10259 $RM -r conftest* 10260 LDFLAGS=$save_LDFLAGS 10261 10262 fi 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10264 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10265 10266 if test yes = "$lt_cv_prog_compiler__b"; then 10267 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10268 else 10269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10270 fi 10271 10272 ;; 10273 esac 10274 fi 10275 if test no = "$with_gnu_ld"; then 10276 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10277 hardcode_libdir_separator=: 10278 10279 case $host_cpu in 10280 hppa*64*|ia64*) 10281 hardcode_direct=no 10282 hardcode_shlibpath_var=no 10283 ;; 10284 *) 10285 hardcode_direct=yes 10286 hardcode_direct_absolute=yes 10287 export_dynamic_flag_spec='$wl-E' 10288 10289 # hardcode_minus_L: Not really in the search PATH, 10290 # but as the default location of the library. 10291 hardcode_minus_L=yes 10292 ;; 10293 esac 10294 fi 10295 ;; 10296 10297 irix5* | irix6* | nonstopux*) 10298 if test yes = "$GCC"; then 10299 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' 10300 # Try to use the -exported_symbol ld option, if it does not 10301 # work, assume that -exports_file does not work either and 10302 # implicitly export all symbols. 10303 # This should be the same for all languages, so no per-tag cache variable. 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10305 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10306 if ${lt_cv_irix_exported_symbol+:} false; then : 10307 $as_echo_n "(cached) " >&6 10308 else 10309 save_LDFLAGS=$LDFLAGS 10310 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312 /* end confdefs.h. */ 10313 int foo (void) { return 0; } 10314 _ACEOF 10315 if ac_fn_c_try_link "$LINENO"; then : 10316 lt_cv_irix_exported_symbol=yes 10317 else 10318 lt_cv_irix_exported_symbol=no 10319 fi 10320 rm -f core conftest.err conftest.$ac_objext \ 10321 conftest$ac_exeext conftest.$ac_ext 10322 LDFLAGS=$save_LDFLAGS 10323 fi 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10325 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10326 if test yes = "$lt_cv_irix_exported_symbol"; then 10327 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' 10328 fi 10329 else 10330 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' 10331 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' 10332 fi 10333 archive_cmds_need_lc='no' 10334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10335 hardcode_libdir_separator=: 10336 inherit_rpath=yes 10337 link_all_deplibs=yes 10338 ;; 10339 10340 linux*) 10341 case $cc_basename in 10342 tcc*) 10343 # Fabrice Bellard et al's Tiny C Compiler 10344 ld_shlibs=yes 10345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10346 ;; 10347 esac 10348 ;; 10349 10350 netbsd*) 10351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10353 else 10354 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10355 fi 10356 hardcode_libdir_flag_spec='-R$libdir' 10357 hardcode_direct=yes 10358 hardcode_shlibpath_var=no 10359 ;; 10360 10361 newsos6) 10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10363 hardcode_direct=yes 10364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10365 hardcode_libdir_separator=: 10366 hardcode_shlibpath_var=no 10367 ;; 10368 10369 *nto* | *qnx*) 10370 ;; 10371 10372 openbsd* | bitrig*) 10373 if test -f /usr/libexec/ld.so; then 10374 hardcode_direct=yes 10375 hardcode_shlibpath_var=no 10376 hardcode_direct_absolute=yes 10377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10379 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10380 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10381 export_dynamic_flag_spec='$wl-E' 10382 else 10383 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10384 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10385 fi 10386 else 10387 ld_shlibs=no 10388 fi 10389 ;; 10390 10391 os2*) 10392 hardcode_libdir_flag_spec='-L$libdir' 10393 hardcode_minus_L=yes 10394 allow_undefined_flag=unsupported 10395 shrext_cmds=.dll 10396 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10399 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10400 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10401 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10402 emximp -o $lib $output_objdir/$libname.def' 10403 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10404 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10405 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10406 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10407 prefix_cmds="$SED"~ 10408 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10409 prefix_cmds="$prefix_cmds -e 1d"; 10410 fi~ 10411 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10412 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10413 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10414 emximp -o $lib $output_objdir/$libname.def' 10415 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10416 enable_shared_with_static_runtimes=yes 10417 ;; 10418 10419 osf3*) 10420 if test yes = "$GCC"; then 10421 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10422 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' 10423 else 10424 allow_undefined_flag=' -expect_unresolved \*' 10425 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' 10426 fi 10427 archive_cmds_need_lc='no' 10428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10429 hardcode_libdir_separator=: 10430 ;; 10431 10432 osf4* | osf5*) # as osf3* with the addition of -msym flag 10433 if test yes = "$GCC"; then 10434 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10435 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' 10436 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10437 else 10438 allow_undefined_flag=' -expect_unresolved \*' 10439 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' 10440 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~ 10441 $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' 10442 10443 # Both c and cxx compiler support -rpath directly 10444 hardcode_libdir_flag_spec='-rpath $libdir' 10445 fi 10446 archive_cmds_need_lc='no' 10447 hardcode_libdir_separator=: 10448 ;; 10449 10450 solaris*) 10451 no_undefined_flag=' -z defs' 10452 if test yes = "$GCC"; then 10453 wlarc='$wl' 10454 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10456 $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' 10457 else 10458 case `$CC -V 2>&1` in 10459 *"Compilers 5.0"*) 10460 wlarc='' 10461 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10463 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10464 ;; 10465 *) 10466 wlarc='$wl' 10467 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10469 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10470 ;; 10471 esac 10472 fi 10473 hardcode_libdir_flag_spec='-R$libdir' 10474 hardcode_shlibpath_var=no 10475 case $host_os in 10476 solaris2.[0-5] | solaris2.[0-5].*) ;; 10477 *) 10478 # The compiler driver will combine and reorder linker options, 10479 # but understands '-z linker_flag'. GCC discards it without '$wl', 10480 # but is careful enough not to reorder. 10481 # Supported since Solaris 2.6 (maybe 2.5.1?) 10482 if test yes = "$GCC"; then 10483 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10484 else 10485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10486 fi 10487 ;; 10488 esac 10489 link_all_deplibs=yes 10490 ;; 10491 10492 sunos4*) 10493 if test sequent = "$host_vendor"; then 10494 # Use $CC to link under sequent, because it throws in some extra .o 10495 # files that make .init and .fini sections work. 10496 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10497 else 10498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10499 fi 10500 hardcode_libdir_flag_spec='-L$libdir' 10501 hardcode_direct=yes 10502 hardcode_minus_L=yes 10503 hardcode_shlibpath_var=no 10504 ;; 10505 10506 sysv4) 10507 case $host_vendor in 10508 sni) 10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10510 hardcode_direct=yes # is this really true??? 10511 ;; 10512 siemens) 10513 ## LD is ld it makes a PLAMLIB 10514 ## CC just makes a GrossModule. 10515 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10516 reload_cmds='$CC -r -o $output$reload_objs' 10517 hardcode_direct=no 10518 ;; 10519 motorola) 10520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10521 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10522 ;; 10523 esac 10524 runpath_var='LD_RUN_PATH' 10525 hardcode_shlibpath_var=no 10526 ;; 10527 10528 sysv4.3*) 10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10530 hardcode_shlibpath_var=no 10531 export_dynamic_flag_spec='-Bexport' 10532 ;; 10533 10534 sysv4*MP*) 10535 if test -d /usr/nec; then 10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10537 hardcode_shlibpath_var=no 10538 runpath_var=LD_RUN_PATH 10539 hardcode_runpath_var=yes 10540 ld_shlibs=yes 10541 fi 10542 ;; 10543 10544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10545 no_undefined_flag='$wl-z,text' 10546 archive_cmds_need_lc=no 10547 hardcode_shlibpath_var=no 10548 runpath_var='LD_RUN_PATH' 10549 10550 if test yes = "$GCC"; then 10551 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10552 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10553 else 10554 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10555 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10556 fi 10557 ;; 10558 10559 sysv5* | sco3.2v5* | sco5v6*) 10560 # Note: We CANNOT use -z defs as we might desire, because we do not 10561 # link with -lc, and that would cause any symbols used from libc to 10562 # always be unresolved, which means just about no library would 10563 # ever link correctly. If we're not using GNU ld we use -z text 10564 # though, which does catch some bad symbols but isn't as heavy-handed 10565 # as -z defs. 10566 no_undefined_flag='$wl-z,text' 10567 allow_undefined_flag='$wl-z,nodefs' 10568 archive_cmds_need_lc=no 10569 hardcode_shlibpath_var=no 10570 hardcode_libdir_flag_spec='$wl-R,$libdir' 10571 hardcode_libdir_separator=':' 10572 link_all_deplibs=yes 10573 export_dynamic_flag_spec='$wl-Bexport' 10574 runpath_var='LD_RUN_PATH' 10575 10576 if test yes = "$GCC"; then 10577 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10578 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10579 else 10580 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10581 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10582 fi 10583 ;; 10584 10585 uts4*) 10586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10587 hardcode_libdir_flag_spec='-L$libdir' 10588 hardcode_shlibpath_var=no 10589 ;; 10590 10591 *) 10592 ld_shlibs=no 10593 ;; 10594 esac 10595 10596 if test sni = "$host_vendor"; then 10597 case $host in 10598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10599 export_dynamic_flag_spec='$wl-Blargedynsym' 10600 ;; 10601 esac 10602 fi 10603 fi 10604 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10606 $as_echo "$ld_shlibs" >&6; } 10607 test no = "$ld_shlibs" && can_build_shared=no 10608 10609 with_gnu_ld=$with_gnu_ld 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 # 10626 # Do we need to explicitly link libc? 10627 # 10628 case "x$archive_cmds_need_lc" in 10629 x|xyes) 10630 # Assume -lc should be added 10631 archive_cmds_need_lc=yes 10632 10633 if test yes,yes = "$GCC,$enable_shared"; then 10634 case $archive_cmds in 10635 *'~'*) 10636 # FIXME: we may have to deal with multi-command sequences. 10637 ;; 10638 '$CC '*) 10639 # Test whether the compiler implicitly links with -lc since on some 10640 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10641 # to ld, don't add -lc before -lgcc. 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10644 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646 else 10647 $RM conftest* 10648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10649 10650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10651 (eval $ac_compile) 2>&5 10652 ac_status=$? 10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10654 test $ac_status = 0; } 2>conftest.err; then 10655 soname=conftest 10656 lib=conftest 10657 libobjs=conftest.$ac_objext 10658 deplibs= 10659 wl=$lt_prog_compiler_wl 10660 pic_flag=$lt_prog_compiler_pic 10661 compiler_flags=-v 10662 linker_flags=-v 10663 verstring= 10664 output_objdir=. 10665 libname=conftest 10666 lt_save_allow_undefined_flag=$allow_undefined_flag 10667 allow_undefined_flag= 10668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10670 ac_status=$? 10671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10672 test $ac_status = 0; } 10673 then 10674 lt_cv_archive_cmds_need_lc=no 10675 else 10676 lt_cv_archive_cmds_need_lc=yes 10677 fi 10678 allow_undefined_flag=$lt_save_allow_undefined_flag 10679 else 10680 cat conftest.err 1>&5 10681 fi 10682 $RM conftest* 10683 10684 fi 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10686 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10688 ;; 10689 esac 10690 fi 10691 ;; 10692 esac 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10846 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10847 10848 if test yes = "$GCC"; then 10849 case $host_os in 10850 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10851 *) lt_awk_arg='/^libraries:/' ;; 10852 esac 10853 case $host_os in 10854 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10855 *) lt_sed_strip_eq='s|=/|/|g' ;; 10856 esac 10857 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10858 case $lt_search_path_spec in 10859 *\;*) 10860 # if the path contains ";" then we assume it to be the separator 10861 # otherwise default to the standard path separator (i.e. ":") - it is 10862 # assumed that no part of a normal pathname contains ";" but that should 10863 # okay in the real world where ";" in dirpaths is itself problematic. 10864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10865 ;; 10866 *) 10867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10868 ;; 10869 esac 10870 # Ok, now we have the path, separated by spaces, we can step through it 10871 # and add multilib dir if necessary... 10872 lt_tmp_lt_search_path_spec= 10873 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10874 # ...but if some path component already ends with the multilib dir we assume 10875 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10876 case "$lt_multi_os_dir; $lt_search_path_spec " in 10877 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10878 lt_multi_os_dir= 10879 ;; 10880 esac 10881 for lt_sys_path in $lt_search_path_spec; do 10882 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10884 elif test -n "$lt_multi_os_dir"; then 10885 test -d "$lt_sys_path" && \ 10886 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10887 fi 10888 done 10889 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10890 BEGIN {RS = " "; FS = "/|\n";} { 10891 lt_foo = ""; 10892 lt_count = 0; 10893 for (lt_i = NF; lt_i > 0; lt_i--) { 10894 if ($lt_i != "" && $lt_i != ".") { 10895 if ($lt_i == "..") { 10896 lt_count++; 10897 } else { 10898 if (lt_count == 0) { 10899 lt_foo = "/" $lt_i lt_foo; 10900 } else { 10901 lt_count--; 10902 } 10903 } 10904 } 10905 } 10906 if (lt_foo != "") { lt_freq[lt_foo]++; } 10907 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10908 }'` 10909 # AWK program above erroneously prepends '/' to C:/dos/paths 10910 # for these hosts. 10911 case $host_os in 10912 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10913 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10914 esac 10915 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10916 else 10917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10918 fi 10919 library_names_spec= 10920 libname_spec='lib$name' 10921 soname_spec= 10922 shrext_cmds=.so 10923 postinstall_cmds= 10924 postuninstall_cmds= 10925 finish_cmds= 10926 finish_eval= 10927 shlibpath_var= 10928 shlibpath_overrides_runpath=unknown 10929 version_type=none 10930 dynamic_linker="$host_os ld.so" 10931 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10932 need_lib_prefix=unknown 10933 hardcode_into_libs=no 10934 10935 # when you set need_version to no, make sure it does not cause -set_version 10936 # flags to be left without arguments 10937 need_version=unknown 10938 10939 10940 10941 case $host_os in 10942 aix3*) 10943 version_type=linux # correct to gnu/linux during the next big refactor 10944 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10945 shlibpath_var=LIBPATH 10946 10947 # AIX 3 has no versioning support, so we append a major version to the name. 10948 soname_spec='$libname$release$shared_ext$major' 10949 ;; 10950 10951 aix[4-9]*) 10952 version_type=linux # correct to gnu/linux during the next big refactor 10953 need_lib_prefix=no 10954 need_version=no 10955 hardcode_into_libs=yes 10956 if test ia64 = "$host_cpu"; then 10957 # AIX 5 supports IA64 10958 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10959 shlibpath_var=LD_LIBRARY_PATH 10960 else 10961 # With GCC up to 2.95.x, collect2 would create an import file 10962 # for dependence libraries. The import file would start with 10963 # the line '#! .'. This would cause the generated library to 10964 # depend on '.', always an invalid library. This was fixed in 10965 # development snapshots of GCC prior to 3.0. 10966 case $host_os in 10967 aix4 | aix4.[01] | aix4.[01].*) 10968 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10969 echo ' yes ' 10970 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10971 : 10972 else 10973 can_build_shared=no 10974 fi 10975 ;; 10976 esac 10977 # Using Import Files as archive members, it is possible to support 10978 # filename-based versioning of shared library archives on AIX. While 10979 # this would work for both with and without runtime linking, it will 10980 # prevent static linking of such archives. So we do filename-based 10981 # shared library versioning with .so extension only, which is used 10982 # when both runtime linking and shared linking is enabled. 10983 # Unfortunately, runtime linking may impact performance, so we do 10984 # not want this to be the default eventually. Also, we use the 10985 # versioned .so libs for executables only if there is the -brtl 10986 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10987 # To allow for filename-based versioning support, we need to create 10988 # libNAME.so.V as an archive file, containing: 10989 # *) an Import File, referring to the versioned filename of the 10990 # archive as well as the shared archive member, telling the 10991 # bitwidth (32 or 64) of that shared object, and providing the 10992 # list of exported symbols of that shared object, eventually 10993 # decorated with the 'weak' keyword 10994 # *) the shared object with the F_LOADONLY flag set, to really avoid 10995 # it being seen by the linker. 10996 # At run time we better use the real file rather than another symlink, 10997 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10998 10999 case $with_aix_soname,$aix_use_runtimelinking in 11000 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11001 # soname into executable. Probably we can add versioning support to 11002 # collect2, so additional links can be useful in future. 11003 aix,yes) # traditional libtool 11004 dynamic_linker='AIX unversionable lib.so' 11005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11006 # instead of lib<name>.a to let people know that these are not 11007 # typical AIX shared libraries. 11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11009 ;; 11010 aix,no) # traditional AIX only 11011 dynamic_linker='AIX lib.a(lib.so.V)' 11012 # We preserve .a as extension for shared libraries through AIX4.2 11013 # and later when we are not doing run time linking. 11014 library_names_spec='$libname$release.a $libname.a' 11015 soname_spec='$libname$release$shared_ext$major' 11016 ;; 11017 svr4,*) # full svr4 only 11018 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11019 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11020 # We do not specify a path in Import Files, so LIBPATH fires. 11021 shlibpath_overrides_runpath=yes 11022 ;; 11023 *,yes) # both, prefer svr4 11024 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11025 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11026 # unpreferred sharedlib libNAME.a needs extra handling 11027 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"' 11028 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"' 11029 # We do not specify a path in Import Files, so LIBPATH fires. 11030 shlibpath_overrides_runpath=yes 11031 ;; 11032 *,no) # both, prefer aix 11033 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11034 library_names_spec='$libname$release.a $libname.a' 11035 soname_spec='$libname$release$shared_ext$major' 11036 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11037 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)' 11038 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"' 11039 ;; 11040 esac 11041 shlibpath_var=LIBPATH 11042 fi 11043 ;; 11044 11045 amigaos*) 11046 case $host_cpu in 11047 powerpc) 11048 # Since July 2007 AmigaOS4 officially supports .so libraries. 11049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11051 ;; 11052 m68k) 11053 library_names_spec='$libname.ixlibrary $libname.a' 11054 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11055 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' 11056 ;; 11057 esac 11058 ;; 11059 11060 beos*) 11061 library_names_spec='$libname$shared_ext' 11062 dynamic_linker="$host_os ld.so" 11063 shlibpath_var=LIBRARY_PATH 11064 ;; 11065 11066 bsdi[45]*) 11067 version_type=linux # correct to gnu/linux during the next big refactor 11068 need_version=no 11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11070 soname_spec='$libname$release$shared_ext$major' 11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11072 shlibpath_var=LD_LIBRARY_PATH 11073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11075 # the default ld.so.conf also contains /usr/contrib/lib and 11076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11077 # libtool to hard-code these into programs 11078 ;; 11079 11080 cygwin* | mingw* | pw32* | cegcc*) 11081 version_type=windows 11082 shrext_cmds=.dll 11083 need_version=no 11084 need_lib_prefix=no 11085 11086 case $GCC,$cc_basename in 11087 yes,*) 11088 # gcc 11089 library_names_spec='$libname.dll.a' 11090 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11091 postinstall_cmds='base_file=`basename \$file`~ 11092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11093 dldir=$destdir/`dirname \$dlpath`~ 11094 test -d \$dldir || mkdir -p \$dldir~ 11095 $install_prog $dir/$dlname \$dldir/$dlname~ 11096 chmod a+x \$dldir/$dlname~ 11097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11099 fi' 11100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11101 dlpath=$dir/\$dldll~ 11102 $RM \$dlpath' 11103 shlibpath_overrides_runpath=yes 11104 11105 case $host_os in 11106 cygwin*) 11107 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11108 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11109 11110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11111 ;; 11112 mingw* | cegcc*) 11113 # MinGW DLLs use traditional 'lib' prefix 11114 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11115 ;; 11116 pw32*) 11117 # pw32 DLLs use 'pw' prefix rather than 'lib' 11118 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11119 ;; 11120 esac 11121 dynamic_linker='Win32 ld.exe' 11122 ;; 11123 11124 *,cl*) 11125 # Native MSVC 11126 libname_spec='$name' 11127 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11128 library_names_spec='$libname.dll.lib' 11129 11130 case $build_os in 11131 mingw*) 11132 sys_lib_search_path_spec= 11133 lt_save_ifs=$IFS 11134 IFS=';' 11135 for lt_path in $LIB 11136 do 11137 IFS=$lt_save_ifs 11138 # Let DOS variable expansion print the short 8.3 style file name. 11139 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11140 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11141 done 11142 IFS=$lt_save_ifs 11143 # Convert to MSYS style. 11144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11145 ;; 11146 cygwin*) 11147 # Convert to unix form, then to dos form, then back to unix form 11148 # but this time dos style (no spaces!) so that the unix form looks 11149 # like /cygdrive/c/PROGRA~1:/cygdr... 11150 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11151 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11152 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11153 ;; 11154 *) 11155 sys_lib_search_path_spec=$LIB 11156 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11157 # It is most probably a Windows format PATH. 11158 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11159 else 11160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11161 fi 11162 # FIXME: find the short name or the path components, as spaces are 11163 # common. (e.g. "Program Files" -> "PROGRA~1") 11164 ;; 11165 esac 11166 11167 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11168 postinstall_cmds='base_file=`basename \$file`~ 11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11170 dldir=$destdir/`dirname \$dlpath`~ 11171 test -d \$dldir || mkdir -p \$dldir~ 11172 $install_prog $dir/$dlname \$dldir/$dlname' 11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11174 dlpath=$dir/\$dldll~ 11175 $RM \$dlpath' 11176 shlibpath_overrides_runpath=yes 11177 dynamic_linker='Win32 link.exe' 11178 ;; 11179 11180 *) 11181 # Assume MSVC wrapper 11182 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11183 dynamic_linker='Win32 ld.exe' 11184 ;; 11185 esac 11186 # FIXME: first we should search . and the directory the executable is in 11187 shlibpath_var=PATH 11188 ;; 11189 11190 darwin* | rhapsody*) 11191 dynamic_linker="$host_os dyld" 11192 version_type=darwin 11193 need_lib_prefix=no 11194 need_version=no 11195 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11196 soname_spec='$libname$release$major$shared_ext' 11197 shlibpath_overrides_runpath=yes 11198 shlibpath_var=DYLD_LIBRARY_PATH 11199 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11200 11201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11202 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11203 ;; 11204 11205 dgux*) 11206 version_type=linux # correct to gnu/linux during the next big refactor 11207 need_lib_prefix=no 11208 need_version=no 11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11210 soname_spec='$libname$release$shared_ext$major' 11211 shlibpath_var=LD_LIBRARY_PATH 11212 ;; 11213 11214 freebsd* | dragonfly*) 11215 # DragonFly does not have aout. When/if they implement a new 11216 # versioning mechanism, adjust this. 11217 if test -x /usr/bin/objformat; then 11218 objformat=`/usr/bin/objformat` 11219 else 11220 case $host_os in 11221 freebsd[23].*) objformat=aout ;; 11222 *) objformat=elf ;; 11223 esac 11224 fi 11225 # Handle Gentoo/FreeBSD as it was Linux 11226 case $host_vendor in 11227 gentoo) 11228 version_type=linux ;; 11229 *) 11230 version_type=freebsd-$objformat ;; 11231 esac 11232 11233 case $version_type in 11234 freebsd-elf*) 11235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11236 soname_spec='$libname$release$shared_ext$major' 11237 need_version=no 11238 need_lib_prefix=no 11239 ;; 11240 freebsd-*) 11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11242 need_version=yes 11243 ;; 11244 linux) 11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11246 soname_spec='${libname}${release}${shared_ext}$major' 11247 need_lib_prefix=no 11248 need_version=no 11249 ;; 11250 esac 11251 shlibpath_var=LD_LIBRARY_PATH 11252 case $host_os in 11253 freebsd2.*) 11254 shlibpath_overrides_runpath=yes 11255 ;; 11256 freebsd3.[01]* | freebsdelf3.[01]*) 11257 shlibpath_overrides_runpath=yes 11258 hardcode_into_libs=yes 11259 ;; 11260 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11261 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11262 shlibpath_overrides_runpath=no 11263 hardcode_into_libs=yes 11264 ;; 11265 *) # from 4.6 on, and DragonFly 11266 shlibpath_overrides_runpath=yes 11267 hardcode_into_libs=yes 11268 ;; 11269 esac 11270 ;; 11271 11272 haiku*) 11273 version_type=linux # correct to gnu/linux during the next big refactor 11274 need_lib_prefix=no 11275 need_version=no 11276 dynamic_linker="$host_os runtime_loader" 11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11278 soname_spec='$libname$release$shared_ext$major' 11279 shlibpath_var=LIBRARY_PATH 11280 shlibpath_overrides_runpath=no 11281 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11282 hardcode_into_libs=yes 11283 ;; 11284 11285 hpux9* | hpux10* | hpux11*) 11286 # Give a soname corresponding to the major version so that dld.sl refuses to 11287 # link against other versions. 11288 version_type=sunos 11289 need_lib_prefix=no 11290 need_version=no 11291 case $host_cpu in 11292 ia64*) 11293 shrext_cmds='.so' 11294 hardcode_into_libs=yes 11295 dynamic_linker="$host_os dld.so" 11296 shlibpath_var=LD_LIBRARY_PATH 11297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11299 soname_spec='$libname$release$shared_ext$major' 11300 if test 32 = "$HPUX_IA64_MODE"; then 11301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11302 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11303 else 11304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11305 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11306 fi 11307 ;; 11308 hppa*64*) 11309 shrext_cmds='.sl' 11310 hardcode_into_libs=yes 11311 dynamic_linker="$host_os dld.sl" 11312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11315 soname_spec='$libname$release$shared_ext$major' 11316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11318 ;; 11319 *) 11320 shrext_cmds='.sl' 11321 dynamic_linker="$host_os dld.sl" 11322 shlibpath_var=SHLIB_PATH 11323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11325 soname_spec='$libname$release$shared_ext$major' 11326 ;; 11327 esac 11328 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11329 postinstall_cmds='chmod 555 $lib' 11330 # or fails outright, so override atomically: 11331 install_override_mode=555 11332 ;; 11333 11334 interix[3-9]*) 11335 version_type=linux # correct to gnu/linux during the next big refactor 11336 need_lib_prefix=no 11337 need_version=no 11338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11339 soname_spec='$libname$release$shared_ext$major' 11340 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11341 shlibpath_var=LD_LIBRARY_PATH 11342 shlibpath_overrides_runpath=no 11343 hardcode_into_libs=yes 11344 ;; 11345 11346 irix5* | irix6* | nonstopux*) 11347 case $host_os in 11348 nonstopux*) version_type=nonstopux ;; 11349 *) 11350 if test yes = "$lt_cv_prog_gnu_ld"; then 11351 version_type=linux # correct to gnu/linux during the next big refactor 11352 else 11353 version_type=irix 11354 fi ;; 11355 esac 11356 need_lib_prefix=no 11357 need_version=no 11358 soname_spec='$libname$release$shared_ext$major' 11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11360 case $host_os in 11361 irix5* | nonstopux*) 11362 libsuff= shlibsuff= 11363 ;; 11364 *) 11365 case $LD in # libtool.m4 will add one of these switches to LD 11366 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11367 libsuff= shlibsuff= libmagic=32-bit;; 11368 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11369 libsuff=32 shlibsuff=N32 libmagic=N32;; 11370 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11371 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11372 *) libsuff= shlibsuff= libmagic=never-match;; 11373 esac 11374 ;; 11375 esac 11376 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11377 shlibpath_overrides_runpath=no 11378 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11379 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11380 hardcode_into_libs=yes 11381 ;; 11382 11383 # No shared lib support for Linux oldld, aout, or coff. 11384 linux*oldld* | linux*aout* | linux*coff*) 11385 dynamic_linker=no 11386 ;; 11387 11388 linux*android*) 11389 version_type=none # Android doesn't support versioned libraries. 11390 need_lib_prefix=no 11391 need_version=no 11392 library_names_spec='$libname$release$shared_ext' 11393 soname_spec='$libname$release$shared_ext' 11394 finish_cmds= 11395 shlibpath_var=LD_LIBRARY_PATH 11396 shlibpath_overrides_runpath=yes 11397 11398 # This implies no fast_install, which is unacceptable. 11399 # Some rework will be needed to allow for fast_install 11400 # before this can be enabled. 11401 hardcode_into_libs=yes 11402 11403 dynamic_linker='Android linker' 11404 # Don't embed -rpath directories since the linker doesn't support them. 11405 hardcode_libdir_flag_spec='-L$libdir' 11406 ;; 11407 11408 # This must be glibc/ELF. 11409 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11410 version_type=linux # correct to gnu/linux during the next big refactor 11411 need_lib_prefix=no 11412 need_version=no 11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11414 soname_spec='$libname$release$shared_ext$major' 11415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11416 shlibpath_var=LD_LIBRARY_PATH 11417 shlibpath_overrides_runpath=no 11418 11419 # Some binutils ld are patched to set DT_RUNPATH 11420 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11421 $as_echo_n "(cached) " >&6 11422 else 11423 lt_cv_shlibpath_overrides_runpath=no 11424 save_LDFLAGS=$LDFLAGS 11425 save_libdir=$libdir 11426 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11427 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429 /* end confdefs.h. */ 11430 11431 int 11432 main () 11433 { 11434 11435 ; 11436 return 0; 11437 } 11438 _ACEOF 11439 if ac_fn_c_try_link "$LINENO"; then : 11440 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11441 lt_cv_shlibpath_overrides_runpath=yes 11442 fi 11443 fi 11444 rm -f core conftest.err conftest.$ac_objext \ 11445 conftest$ac_exeext conftest.$ac_ext 11446 LDFLAGS=$save_LDFLAGS 11447 libdir=$save_libdir 11448 11449 fi 11450 11451 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11452 11453 # This implies no fast_install, which is unacceptable. 11454 # Some rework will be needed to allow for fast_install 11455 # before this can be enabled. 11456 hardcode_into_libs=yes 11457 11458 # Ideally, we could use ldconfig to report *all* directores which are 11459 # searched for libraries, however this is still not possible. Aside from not 11460 # being certain /sbin/ldconfig is available, command 11461 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11462 # even though it is searched at run-time. Try to do the best guess by 11463 # appending ld.so.conf contents (and includes) to the search path. 11464 if test -f /etc/ld.so.conf; then 11465 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' ' '` 11466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11467 fi 11468 11469 # We used to test for /lib/ld.so.1 and disable shared libraries on 11470 # powerpc, because MkLinux only supported shared libraries with the 11471 # GNU dynamic linker. Since this was broken with cross compilers, 11472 # most powerpc-linux boxes support dynamic linking these days and 11473 # people can always --disable-shared, the test was removed, and we 11474 # assume the GNU/Linux dynamic linker is in use. 11475 dynamic_linker='GNU/Linux ld.so' 11476 ;; 11477 11478 netbsd*) 11479 version_type=sunos 11480 need_lib_prefix=no 11481 need_version=no 11482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11485 dynamic_linker='NetBSD (a.out) ld.so' 11486 else 11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11488 soname_spec='$libname$release$shared_ext$major' 11489 dynamic_linker='NetBSD ld.elf_so' 11490 fi 11491 shlibpath_var=LD_LIBRARY_PATH 11492 shlibpath_overrides_runpath=yes 11493 hardcode_into_libs=yes 11494 ;; 11495 11496 newsos6) 11497 version_type=linux # correct to gnu/linux during the next big refactor 11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11499 shlibpath_var=LD_LIBRARY_PATH 11500 shlibpath_overrides_runpath=yes 11501 ;; 11502 11503 *nto* | *qnx*) 11504 version_type=qnx 11505 need_lib_prefix=no 11506 need_version=no 11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11508 soname_spec='$libname$release$shared_ext$major' 11509 shlibpath_var=LD_LIBRARY_PATH 11510 shlibpath_overrides_runpath=no 11511 hardcode_into_libs=yes 11512 dynamic_linker='ldqnx.so' 11513 ;; 11514 11515 openbsd* | bitrig*) 11516 version_type=sunos 11517 sys_lib_dlsearch_path_spec=/usr/lib 11518 need_lib_prefix=no 11519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11520 need_version=no 11521 else 11522 need_version=yes 11523 fi 11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11526 shlibpath_var=LD_LIBRARY_PATH 11527 shlibpath_overrides_runpath=yes 11528 ;; 11529 11530 os2*) 11531 libname_spec='$name' 11532 version_type=windows 11533 shrext_cmds=.dll 11534 need_version=no 11535 need_lib_prefix=no 11536 # OS/2 can only load a DLL with a base name of 8 characters or less. 11537 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11538 v=$($ECHO $release$versuffix | tr -d .-); 11539 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11540 $ECHO $n$v`$shared_ext' 11541 library_names_spec='${libname}_dll.$libext' 11542 dynamic_linker='OS/2 ld.exe' 11543 shlibpath_var=BEGINLIBPATH 11544 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11545 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11546 postinstall_cmds='base_file=`basename \$file`~ 11547 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11548 dldir=$destdir/`dirname \$dlpath`~ 11549 test -d \$dldir || mkdir -p \$dldir~ 11550 $install_prog $dir/$dlname \$dldir/$dlname~ 11551 chmod a+x \$dldir/$dlname~ 11552 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11553 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11554 fi' 11555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11556 dlpath=$dir/\$dldll~ 11557 $RM \$dlpath' 11558 ;; 11559 11560 osf3* | osf4* | osf5*) 11561 version_type=osf 11562 need_lib_prefix=no 11563 need_version=no 11564 soname_spec='$libname$release$shared_ext$major' 11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11566 shlibpath_var=LD_LIBRARY_PATH 11567 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11569 ;; 11570 11571 rdos*) 11572 dynamic_linker=no 11573 ;; 11574 11575 solaris*) 11576 version_type=linux # correct to gnu/linux during the next big refactor 11577 need_lib_prefix=no 11578 need_version=no 11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11580 soname_spec='$libname$release$shared_ext$major' 11581 shlibpath_var=LD_LIBRARY_PATH 11582 shlibpath_overrides_runpath=yes 11583 hardcode_into_libs=yes 11584 # ldd complains unless libraries are executable 11585 postinstall_cmds='chmod +x $lib' 11586 ;; 11587 11588 sunos4*) 11589 version_type=sunos 11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11591 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11592 shlibpath_var=LD_LIBRARY_PATH 11593 shlibpath_overrides_runpath=yes 11594 if test yes = "$with_gnu_ld"; then 11595 need_lib_prefix=no 11596 fi 11597 need_version=yes 11598 ;; 11599 11600 sysv4 | sysv4.3*) 11601 version_type=linux # correct to gnu/linux during the next big refactor 11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11603 soname_spec='$libname$release$shared_ext$major' 11604 shlibpath_var=LD_LIBRARY_PATH 11605 case $host_vendor in 11606 sni) 11607 shlibpath_overrides_runpath=no 11608 need_lib_prefix=no 11609 runpath_var=LD_RUN_PATH 11610 ;; 11611 siemens) 11612 need_lib_prefix=no 11613 ;; 11614 motorola) 11615 need_lib_prefix=no 11616 need_version=no 11617 shlibpath_overrides_runpath=no 11618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11619 ;; 11620 esac 11621 ;; 11622 11623 sysv4*MP*) 11624 if test -d /usr/nec; then 11625 version_type=linux # correct to gnu/linux during the next big refactor 11626 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11627 soname_spec='$libname$shared_ext.$major' 11628 shlibpath_var=LD_LIBRARY_PATH 11629 fi 11630 ;; 11631 11632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11633 version_type=sco 11634 need_lib_prefix=no 11635 need_version=no 11636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11637 soname_spec='$libname$release$shared_ext$major' 11638 shlibpath_var=LD_LIBRARY_PATH 11639 shlibpath_overrides_runpath=yes 11640 hardcode_into_libs=yes 11641 if test yes = "$with_gnu_ld"; then 11642 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11643 else 11644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11645 case $host_os in 11646 sco3.2v5*) 11647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11648 ;; 11649 esac 11650 fi 11651 sys_lib_dlsearch_path_spec='/usr/lib' 11652 ;; 11653 11654 tpf*) 11655 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11656 version_type=linux # correct to gnu/linux during the next big refactor 11657 need_lib_prefix=no 11658 need_version=no 11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11660 shlibpath_var=LD_LIBRARY_PATH 11661 shlibpath_overrides_runpath=no 11662 hardcode_into_libs=yes 11663 ;; 11664 11665 uts4*) 11666 version_type=linux # correct to gnu/linux during the next big refactor 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11668 soname_spec='$libname$release$shared_ext$major' 11669 shlibpath_var=LD_LIBRARY_PATH 11670 ;; 11671 11672 *) 11673 dynamic_linker=no 11674 ;; 11675 esac 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11677 $as_echo "$dynamic_linker" >&6; } 11678 test no = "$dynamic_linker" && can_build_shared=no 11679 11680 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11681 if test yes = "$GCC"; then 11682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11683 fi 11684 11685 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11686 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11687 fi 11688 11689 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11690 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11691 fi 11692 11693 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11694 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11695 11696 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11697 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11698 11699 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11700 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11799 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11800 hardcode_action= 11801 if test -n "$hardcode_libdir_flag_spec" || 11802 test -n "$runpath_var" || 11803 test yes = "$hardcode_automatic"; then 11804 11805 # We can hardcode non-existent directories. 11806 if test no != "$hardcode_direct" && 11807 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11808 # have to relink, otherwise we might link with an installed library 11809 # when we should be linking with a yet-to-be-installed one 11810 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11811 test no != "$hardcode_minus_L"; then 11812 # Linking always hardcodes the temporary library directory. 11813 hardcode_action=relink 11814 else 11815 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11816 hardcode_action=immediate 11817 fi 11818 else 11819 # We cannot hardcode anything, or else we can only hardcode existing 11820 # directories. 11821 hardcode_action=unsupported 11822 fi 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11824 $as_echo "$hardcode_action" >&6; } 11825 11826 if test relink = "$hardcode_action" || 11827 test yes = "$inherit_rpath"; then 11828 # Fast installation is not supported 11829 enable_fast_install=no 11830 elif test yes = "$shlibpath_overrides_runpath" || 11831 test no = "$enable_shared"; then 11832 # Fast installation is not necessary 11833 enable_fast_install=needless 11834 fi 11835 11836 11837 11838 11839 11840 11841 if test yes != "$enable_dlopen"; then 11842 enable_dlopen=unknown 11843 enable_dlopen_self=unknown 11844 enable_dlopen_self_static=unknown 11845 else 11846 lt_cv_dlopen=no 11847 lt_cv_dlopen_libs= 11848 11849 case $host_os in 11850 beos*) 11851 lt_cv_dlopen=load_add_on 11852 lt_cv_dlopen_libs= 11853 lt_cv_dlopen_self=yes 11854 ;; 11855 11856 mingw* | pw32* | cegcc*) 11857 lt_cv_dlopen=LoadLibrary 11858 lt_cv_dlopen_libs= 11859 ;; 11860 11861 cygwin*) 11862 lt_cv_dlopen=dlopen 11863 lt_cv_dlopen_libs= 11864 ;; 11865 11866 darwin*) 11867 # if libdl is installed we need to link against it 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11869 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11870 if ${ac_cv_lib_dl_dlopen+:} false; then : 11871 $as_echo_n "(cached) " >&6 11872 else 11873 ac_check_lib_save_LIBS=$LIBS 11874 LIBS="-ldl $LIBS" 11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11876 /* end confdefs.h. */ 11877 11878 /* Override any GCC internal prototype to avoid an error. 11879 Use char because int might match the return type of a GCC 11880 builtin and then its argument prototype would still apply. */ 11881 #ifdef __cplusplus 11882 extern "C" 11883 #endif 11884 char dlopen (); 11885 int 11886 main () 11887 { 11888 return dlopen (); 11889 ; 11890 return 0; 11891 } 11892 _ACEOF 11893 if ac_fn_c_try_link "$LINENO"; then : 11894 ac_cv_lib_dl_dlopen=yes 11895 else 11896 ac_cv_lib_dl_dlopen=no 11897 fi 11898 rm -f core conftest.err conftest.$ac_objext \ 11899 conftest$ac_exeext conftest.$ac_ext 11900 LIBS=$ac_check_lib_save_LIBS 11901 fi 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11904 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11905 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11906 else 11907 11908 lt_cv_dlopen=dyld 11909 lt_cv_dlopen_libs= 11910 lt_cv_dlopen_self=yes 11911 11912 fi 11913 11914 ;; 11915 11916 tpf*) 11917 # Don't try to run any link tests for TPF. We know it's impossible 11918 # because TPF is a cross-compiler, and we know how we open DSOs. 11919 lt_cv_dlopen=dlopen 11920 lt_cv_dlopen_libs= 11921 lt_cv_dlopen_self=no 11922 ;; 11923 11924 *) 11925 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11926 if test "x$ac_cv_func_shl_load" = xyes; then : 11927 lt_cv_dlopen=shl_load 11928 else 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11930 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11931 if ${ac_cv_lib_dld_shl_load+:} false; then : 11932 $as_echo_n "(cached) " >&6 11933 else 11934 ac_check_lib_save_LIBS=$LIBS 11935 LIBS="-ldld $LIBS" 11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11937 /* end confdefs.h. */ 11938 11939 /* Override any GCC internal prototype to avoid an error. 11940 Use char because int might match the return type of a GCC 11941 builtin and then its argument prototype would still apply. */ 11942 #ifdef __cplusplus 11943 extern "C" 11944 #endif 11945 char shl_load (); 11946 int 11947 main () 11948 { 11949 return shl_load (); 11950 ; 11951 return 0; 11952 } 11953 _ACEOF 11954 if ac_fn_c_try_link "$LINENO"; then : 11955 ac_cv_lib_dld_shl_load=yes 11956 else 11957 ac_cv_lib_dld_shl_load=no 11958 fi 11959 rm -f core conftest.err conftest.$ac_objext \ 11960 conftest$ac_exeext conftest.$ac_ext 11961 LIBS=$ac_check_lib_save_LIBS 11962 fi 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11964 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11965 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11966 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11967 else 11968 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11969 if test "x$ac_cv_func_dlopen" = xyes; then : 11970 lt_cv_dlopen=dlopen 11971 else 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11973 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11974 if ${ac_cv_lib_dl_dlopen+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976 else 11977 ac_check_lib_save_LIBS=$LIBS 11978 LIBS="-ldl $LIBS" 11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980 /* end confdefs.h. */ 11981 11982 /* Override any GCC internal prototype to avoid an error. 11983 Use char because int might match the return type of a GCC 11984 builtin and then its argument prototype would still apply. */ 11985 #ifdef __cplusplus 11986 extern "C" 11987 #endif 11988 char dlopen (); 11989 int 11990 main () 11991 { 11992 return dlopen (); 11993 ; 11994 return 0; 11995 } 11996 _ACEOF 11997 if ac_fn_c_try_link "$LINENO"; then : 11998 ac_cv_lib_dl_dlopen=yes 11999 else 12000 ac_cv_lib_dl_dlopen=no 12001 fi 12002 rm -f core conftest.err conftest.$ac_objext \ 12003 conftest$ac_exeext conftest.$ac_ext 12004 LIBS=$ac_check_lib_save_LIBS 12005 fi 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12008 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12009 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12010 else 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12012 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 12013 if ${ac_cv_lib_svld_dlopen+:} false; then : 12014 $as_echo_n "(cached) " >&6 12015 else 12016 ac_check_lib_save_LIBS=$LIBS 12017 LIBS="-lsvld $LIBS" 12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12019 /* end confdefs.h. */ 12020 12021 /* Override any GCC internal prototype to avoid an error. 12022 Use char because int might match the return type of a GCC 12023 builtin and then its argument prototype would still apply. */ 12024 #ifdef __cplusplus 12025 extern "C" 12026 #endif 12027 char dlopen (); 12028 int 12029 main () 12030 { 12031 return dlopen (); 12032 ; 12033 return 0; 12034 } 12035 _ACEOF 12036 if ac_fn_c_try_link "$LINENO"; then : 12037 ac_cv_lib_svld_dlopen=yes 12038 else 12039 ac_cv_lib_svld_dlopen=no 12040 fi 12041 rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043 LIBS=$ac_check_lib_save_LIBS 12044 fi 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12047 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12048 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12049 else 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12051 $as_echo_n "checking for dld_link in -ldld... " >&6; } 12052 if ${ac_cv_lib_dld_dld_link+:} false; then : 12053 $as_echo_n "(cached) " >&6 12054 else 12055 ac_check_lib_save_LIBS=$LIBS 12056 LIBS="-ldld $LIBS" 12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12058 /* end confdefs.h. */ 12059 12060 /* Override any GCC internal prototype to avoid an error. 12061 Use char because int might match the return type of a GCC 12062 builtin and then its argument prototype would still apply. */ 12063 #ifdef __cplusplus 12064 extern "C" 12065 #endif 12066 char dld_link (); 12067 int 12068 main () 12069 { 12070 return dld_link (); 12071 ; 12072 return 0; 12073 } 12074 _ACEOF 12075 if ac_fn_c_try_link "$LINENO"; then : 12076 ac_cv_lib_dld_dld_link=yes 12077 else 12078 ac_cv_lib_dld_dld_link=no 12079 fi 12080 rm -f core conftest.err conftest.$ac_objext \ 12081 conftest$ac_exeext conftest.$ac_ext 12082 LIBS=$ac_check_lib_save_LIBS 12083 fi 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12085 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12086 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12087 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12088 fi 12089 12090 12091 fi 12092 12093 12094 fi 12095 12096 12097 fi 12098 12099 12100 fi 12101 12102 12103 fi 12104 12105 ;; 12106 esac 12107 12108 if test no = "$lt_cv_dlopen"; then 12109 enable_dlopen=no 12110 else 12111 enable_dlopen=yes 12112 fi 12113 12114 case $lt_cv_dlopen in 12115 dlopen) 12116 save_CPPFLAGS=$CPPFLAGS 12117 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12118 12119 save_LDFLAGS=$LDFLAGS 12120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12121 12122 save_LIBS=$LIBS 12123 LIBS="$lt_cv_dlopen_libs $LIBS" 12124 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12126 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 12127 if ${lt_cv_dlopen_self+:} false; then : 12128 $as_echo_n "(cached) " >&6 12129 else 12130 if test yes = "$cross_compiling"; then : 12131 lt_cv_dlopen_self=cross 12132 else 12133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12134 lt_status=$lt_dlunknown 12135 cat > conftest.$ac_ext <<_LT_EOF 12136 #line $LINENO "configure" 12137 #include "confdefs.h" 12138 12139 #if HAVE_DLFCN_H 12140 #include <dlfcn.h> 12141 #endif 12142 12143 #include <stdio.h> 12144 12145 #ifdef RTLD_GLOBAL 12146 # define LT_DLGLOBAL RTLD_GLOBAL 12147 #else 12148 # ifdef DL_GLOBAL 12149 # define LT_DLGLOBAL DL_GLOBAL 12150 # else 12151 # define LT_DLGLOBAL 0 12152 # endif 12153 #endif 12154 12155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12156 find out it does not work in some platform. */ 12157 #ifndef LT_DLLAZY_OR_NOW 12158 # ifdef RTLD_LAZY 12159 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12160 # else 12161 # ifdef DL_LAZY 12162 # define LT_DLLAZY_OR_NOW DL_LAZY 12163 # else 12164 # ifdef RTLD_NOW 12165 # define LT_DLLAZY_OR_NOW RTLD_NOW 12166 # else 12167 # ifdef DL_NOW 12168 # define LT_DLLAZY_OR_NOW DL_NOW 12169 # else 12170 # define LT_DLLAZY_OR_NOW 0 12171 # endif 12172 # endif 12173 # endif 12174 # endif 12175 #endif 12176 12177 /* When -fvisibility=hidden is used, assume the code has been annotated 12178 correspondingly for the symbols needed. */ 12179 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12180 int fnord () __attribute__((visibility("default"))); 12181 #endif 12182 12183 int fnord () { return 42; } 12184 int main () 12185 { 12186 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12187 int status = $lt_dlunknown; 12188 12189 if (self) 12190 { 12191 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12192 else 12193 { 12194 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12195 else puts (dlerror ()); 12196 } 12197 /* dlclose (self); */ 12198 } 12199 else 12200 puts (dlerror ()); 12201 12202 return status; 12203 } 12204 _LT_EOF 12205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12206 (eval $ac_link) 2>&5 12207 ac_status=$? 12208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12209 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12210 (./conftest; exit; ) >&5 2>/dev/null 12211 lt_status=$? 12212 case x$lt_status in 12213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12216 esac 12217 else : 12218 # compilation failed 12219 lt_cv_dlopen_self=no 12220 fi 12221 fi 12222 rm -fr conftest* 12223 12224 12225 fi 12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12227 $as_echo "$lt_cv_dlopen_self" >&6; } 12228 12229 if test yes = "$lt_cv_dlopen_self"; then 12230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12232 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12233 if ${lt_cv_dlopen_self_static+:} false; then : 12234 $as_echo_n "(cached) " >&6 12235 else 12236 if test yes = "$cross_compiling"; then : 12237 lt_cv_dlopen_self_static=cross 12238 else 12239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12240 lt_status=$lt_dlunknown 12241 cat > conftest.$ac_ext <<_LT_EOF 12242 #line $LINENO "configure" 12243 #include "confdefs.h" 12244 12245 #if HAVE_DLFCN_H 12246 #include <dlfcn.h> 12247 #endif 12248 12249 #include <stdio.h> 12250 12251 #ifdef RTLD_GLOBAL 12252 # define LT_DLGLOBAL RTLD_GLOBAL 12253 #else 12254 # ifdef DL_GLOBAL 12255 # define LT_DLGLOBAL DL_GLOBAL 12256 # else 12257 # define LT_DLGLOBAL 0 12258 # endif 12259 #endif 12260 12261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12262 find out it does not work in some platform. */ 12263 #ifndef LT_DLLAZY_OR_NOW 12264 # ifdef RTLD_LAZY 12265 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12266 # else 12267 # ifdef DL_LAZY 12268 # define LT_DLLAZY_OR_NOW DL_LAZY 12269 # else 12270 # ifdef RTLD_NOW 12271 # define LT_DLLAZY_OR_NOW RTLD_NOW 12272 # else 12273 # ifdef DL_NOW 12274 # define LT_DLLAZY_OR_NOW DL_NOW 12275 # else 12276 # define LT_DLLAZY_OR_NOW 0 12277 # endif 12278 # endif 12279 # endif 12280 # endif 12281 #endif 12282 12283 /* When -fvisibility=hidden is used, assume the code has been annotated 12284 correspondingly for the symbols needed. */ 12285 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12286 int fnord () __attribute__((visibility("default"))); 12287 #endif 12288 12289 int fnord () { return 42; } 12290 int main () 12291 { 12292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12293 int status = $lt_dlunknown; 12294 12295 if (self) 12296 { 12297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12298 else 12299 { 12300 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12301 else puts (dlerror ()); 12302 } 12303 /* dlclose (self); */ 12304 } 12305 else 12306 puts (dlerror ()); 12307 12308 return status; 12309 } 12310 _LT_EOF 12311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12312 (eval $ac_link) 2>&5 12313 ac_status=$? 12314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12315 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12316 (./conftest; exit; ) >&5 2>/dev/null 12317 lt_status=$? 12318 case x$lt_status in 12319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12322 esac 12323 else : 12324 # compilation failed 12325 lt_cv_dlopen_self_static=no 12326 fi 12327 fi 12328 rm -fr conftest* 12329 12330 12331 fi 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12333 $as_echo "$lt_cv_dlopen_self_static" >&6; } 12334 fi 12335 12336 CPPFLAGS=$save_CPPFLAGS 12337 LDFLAGS=$save_LDFLAGS 12338 LIBS=$save_LIBS 12339 ;; 12340 esac 12341 12342 case $lt_cv_dlopen_self in 12343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12344 *) enable_dlopen_self=unknown ;; 12345 esac 12346 12347 case $lt_cv_dlopen_self_static in 12348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12349 *) enable_dlopen_self_static=unknown ;; 12350 esac 12351 fi 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 striplib= 12370 old_striplib= 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12372 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12375 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12377 $as_echo "yes" >&6; } 12378 else 12379 # FIXME - insert some real tests, host_os isn't really good enough 12380 case $host_os in 12381 darwin*) 12382 if test -n "$STRIP"; then 12383 striplib="$STRIP -x" 12384 old_striplib="$STRIP -S" 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12386 $as_echo "yes" >&6; } 12387 else 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12389 $as_echo "no" >&6; } 12390 fi 12391 ;; 12392 *) 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12394 $as_echo "no" >&6; } 12395 ;; 12396 esac 12397 fi 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 # Report what library types will actually be built 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12412 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12414 $as_echo "$can_build_shared" >&6; } 12415 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12417 $as_echo_n "checking whether to build shared libraries... " >&6; } 12418 test no = "$can_build_shared" && enable_shared=no 12419 12420 # On AIX, shared libraries and static libraries use the same namespace, and 12421 # are all built from PIC. 12422 case $host_os in 12423 aix3*) 12424 test yes = "$enable_shared" && enable_static=no 12425 if test -n "$RANLIB"; then 12426 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12427 postinstall_cmds='$RANLIB $lib' 12428 fi 12429 ;; 12430 12431 aix[4-9]*) 12432 if test ia64 != "$host_cpu"; then 12433 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12434 yes,aix,yes) ;; # shared object as lib.so file only 12435 yes,svr4,*) ;; # shared object as lib.so archive member only 12436 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12437 esac 12438 fi 12439 ;; 12440 esac 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12442 $as_echo "$enable_shared" >&6; } 12443 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12445 $as_echo_n "checking whether to build static libraries... " >&6; } 12446 # Make sure either enable_shared or enable_static is yes. 12447 test yes = "$enable_shared" || enable_static=yes 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12449 $as_echo "$enable_static" >&6; } 12450 12451 12452 12453 12454 fi 12455 ac_ext=c 12456 ac_cpp='$CPP $CPPFLAGS' 12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12460 12461 CC=$lt_save_CC 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 ac_config_commands="$ac_config_commands libtool" 12478 12479 12480 12481 12482 # Only expand once: 12483 12484 12485 12486 12487 12488 12489 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12491 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12492 if ${ac_cv_prog_cc_c99+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494 else 12495 ac_cv_prog_cc_c99=no 12496 ac_save_CC=$CC 12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12498 /* end confdefs.h. */ 12499 #include <stdarg.h> 12500 #include <stdbool.h> 12501 #include <stdlib.h> 12502 #include <wchar.h> 12503 #include <stdio.h> 12504 12505 // Check varargs macros. These examples are taken from C99 6.10.3.5. 12506 #define debug(...) fprintf (stderr, __VA_ARGS__) 12507 #define showlist(...) puts (#__VA_ARGS__) 12508 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12509 static void 12510 test_varargs_macros (void) 12511 { 12512 int x = 1234; 12513 int y = 5678; 12514 debug ("Flag"); 12515 debug ("X = %d\n", x); 12516 showlist (The first, second, and third items.); 12517 report (x>y, "x is %d but y is %d", x, y); 12518 } 12519 12520 // Check long long types. 12521 #define BIG64 18446744073709551615ull 12522 #define BIG32 4294967295ul 12523 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12524 #if !BIG_OK 12525 your preprocessor is broken; 12526 #endif 12527 #if BIG_OK 12528 #else 12529 your preprocessor is broken; 12530 #endif 12531 static long long int bignum = -9223372036854775807LL; 12532 static unsigned long long int ubignum = BIG64; 12533 12534 struct incomplete_array 12535 { 12536 int datasize; 12537 double data[]; 12538 }; 12539 12540 struct named_init { 12541 int number; 12542 const wchar_t *name; 12543 double average; 12544 }; 12545 12546 typedef const char *ccp; 12547 12548 static inline int 12549 test_restrict (ccp restrict text) 12550 { 12551 // See if C++-style comments work. 12552 // Iterate through items via the restricted pointer. 12553 // Also check for declarations in for loops. 12554 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12555 continue; 12556 return 0; 12557 } 12558 12559 // Check varargs and va_copy. 12560 static void 12561 test_varargs (const char *format, ...) 12562 { 12563 va_list args; 12564 va_start (args, format); 12565 va_list args_copy; 12566 va_copy (args_copy, args); 12567 12568 const char *str; 12569 int number; 12570 float fnumber; 12571 12572 while (*format) 12573 { 12574 switch (*format++) 12575 { 12576 case 's': // string 12577 str = va_arg (args_copy, const char *); 12578 break; 12579 case 'd': // int 12580 number = va_arg (args_copy, int); 12581 break; 12582 case 'f': // float 12583 fnumber = va_arg (args_copy, double); 12584 break; 12585 default: 12586 break; 12587 } 12588 } 12589 va_end (args_copy); 12590 va_end (args); 12591 } 12592 12593 int 12594 main () 12595 { 12596 12597 // Check bool. 12598 _Bool success = false; 12599 12600 // Check restrict. 12601 if (test_restrict ("String literal") == 0) 12602 success = true; 12603 char *restrict newvar = "Another string"; 12604 12605 // Check varargs. 12606 test_varargs ("s, d' f .", "string", 65, 34.234); 12607 test_varargs_macros (); 12608 12609 // Check flexible array members. 12610 struct incomplete_array *ia = 12611 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12612 ia->datasize = 10; 12613 for (int i = 0; i < ia->datasize; ++i) 12614 ia->data[i] = i * 1.234; 12615 12616 // Check named initializers. 12617 struct named_init ni = { 12618 .number = 34, 12619 .name = L"Test wide string", 12620 .average = 543.34343, 12621 }; 12622 12623 ni.number = 58; 12624 12625 int dynamic_array[ni.number]; 12626 dynamic_array[ni.number - 1] = 543; 12627 12628 // work around unused variable warnings 12629 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12630 || dynamic_array[ni.number - 1] != 543); 12631 12632 ; 12633 return 0; 12634 } 12635 _ACEOF 12636 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12637 do 12638 CC="$ac_save_CC $ac_arg" 12639 if ac_fn_c_try_compile "$LINENO"; then : 12640 ac_cv_prog_cc_c99=$ac_arg 12641 fi 12642 rm -f core conftest.err conftest.$ac_objext 12643 test "x$ac_cv_prog_cc_c99" != "xno" && break 12644 done 12645 rm -f conftest.$ac_ext 12646 CC=$ac_save_CC 12647 12648 fi 12649 # AC_CACHE_VAL 12650 case "x$ac_cv_prog_cc_c99" in 12651 x) 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12653 $as_echo "none needed" >&6; } ;; 12654 xno) 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12656 $as_echo "unsupported" >&6; } ;; 12657 *) 12658 CC="$CC $ac_cv_prog_cc_c99" 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12660 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12661 esac 12662 if test "x$ac_cv_prog_cc_c99" != xno; then : 12663 12664 fi 12665 12666 12667 ac_ext=cpp 12668 ac_cpp='$CXXCPP $CPPFLAGS' 12669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12672 if test -z "$CXX"; then 12673 if test -n "$CCC"; then 12674 CXX=$CCC 12675 else 12676 if test -n "$ac_tool_prefix"; then 12677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12678 do 12679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12682 $as_echo_n "checking for $ac_word... " >&6; } 12683 if ${ac_cv_prog_CXX+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685 else 12686 if test -n "$CXX"; then 12687 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12688 else 12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12690 for as_dir in $PATH 12691 do 12692 IFS=$as_save_IFS 12693 test -z "$as_dir" && as_dir=. 12694 for ac_exec_ext in '' $ac_executable_extensions; do 12695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12698 break 2 12699 fi 12700 done 12701 done 12702 IFS=$as_save_IFS 12703 12704 fi 12705 fi 12706 CXX=$ac_cv_prog_CXX 12707 if test -n "$CXX"; then 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12709 $as_echo "$CXX" >&6; } 12710 else 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712 $as_echo "no" >&6; } 12713 fi 12714 12715 12716 test -n "$CXX" && break 12717 done 12718 fi 12719 if test -z "$CXX"; then 12720 ac_ct_CXX=$CXX 12721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12722 do 12723 # Extract the first word of "$ac_prog", so it can be a program name with args. 12724 set dummy $ac_prog; ac_word=$2 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12726 $as_echo_n "checking for $ac_word... " >&6; } 12727 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12728 $as_echo_n "(cached) " >&6 12729 else 12730 if test -n "$ac_ct_CXX"; then 12731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12732 else 12733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12734 for as_dir in $PATH 12735 do 12736 IFS=$as_save_IFS 12737 test -z "$as_dir" && as_dir=. 12738 for ac_exec_ext in '' $ac_executable_extensions; do 12739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12740 ac_cv_prog_ac_ct_CXX="$ac_prog" 12741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12742 break 2 12743 fi 12744 done 12745 done 12746 IFS=$as_save_IFS 12747 12748 fi 12749 fi 12750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12751 if test -n "$ac_ct_CXX"; then 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12753 $as_echo "$ac_ct_CXX" >&6; } 12754 else 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12756 $as_echo "no" >&6; } 12757 fi 12758 12759 12760 test -n "$ac_ct_CXX" && break 12761 done 12762 12763 if test "x$ac_ct_CXX" = x; then 12764 CXX="g++" 12765 else 12766 case $cross_compiling:$ac_tool_warned in 12767 yes:) 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12770 ac_tool_warned=yes ;; 12771 esac 12772 CXX=$ac_ct_CXX 12773 fi 12774 fi 12775 12776 fi 12777 fi 12778 # Provide some information about the compiler. 12779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12780 set X $ac_compile 12781 ac_compiler=$2 12782 for ac_option in --version -v -V -qversion; do 12783 { { ac_try="$ac_compiler $ac_option >&5" 12784 case "(($ac_try" in 12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12786 *) ac_try_echo=$ac_try;; 12787 esac 12788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12789 $as_echo "$ac_try_echo"; } >&5 12790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12791 ac_status=$? 12792 if test -s conftest.err; then 12793 sed '10a\ 12794 ... rest of stderr output deleted ... 12795 10q' conftest.err >conftest.er1 12796 cat conftest.er1 >&5 12797 fi 12798 rm -f conftest.er1 conftest.err 12799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12800 test $ac_status = 0; } 12801 done 12802 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12804 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12805 if ${ac_cv_cxx_compiler_gnu+:} false; then : 12806 $as_echo_n "(cached) " >&6 12807 else 12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12809 /* end confdefs.h. */ 12810 12811 int 12812 main () 12813 { 12814 #ifndef __GNUC__ 12815 choke me 12816 #endif 12817 12818 ; 12819 return 0; 12820 } 12821 _ACEOF 12822 if ac_fn_cxx_try_compile "$LINENO"; then : 12823 ac_compiler_gnu=yes 12824 else 12825 ac_compiler_gnu=no 12826 fi 12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12828 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12829 12830 fi 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12832 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12833 if test $ac_compiler_gnu = yes; then 12834 GXX=yes 12835 else 12836 GXX= 12837 fi 12838 ac_test_CXXFLAGS=${CXXFLAGS+set} 12839 ac_save_CXXFLAGS=$CXXFLAGS 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12841 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 12842 if ${ac_cv_prog_cxx_g+:} false; then : 12843 $as_echo_n "(cached) " >&6 12844 else 12845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12846 ac_cxx_werror_flag=yes 12847 ac_cv_prog_cxx_g=no 12848 CXXFLAGS="-g" 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850 /* end confdefs.h. */ 12851 12852 int 12853 main () 12854 { 12855 12856 ; 12857 return 0; 12858 } 12859 _ACEOF 12860 if ac_fn_cxx_try_compile "$LINENO"; then : 12861 ac_cv_prog_cxx_g=yes 12862 else 12863 CXXFLAGS="" 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865 /* end confdefs.h. */ 12866 12867 int 12868 main () 12869 { 12870 12871 ; 12872 return 0; 12873 } 12874 _ACEOF 12875 if ac_fn_cxx_try_compile "$LINENO"; then : 12876 12877 else 12878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12879 CXXFLAGS="-g" 12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12881 /* end confdefs.h. */ 12882 12883 int 12884 main () 12885 { 12886 12887 ; 12888 return 0; 12889 } 12890 _ACEOF 12891 if ac_fn_cxx_try_compile "$LINENO"; then : 12892 ac_cv_prog_cxx_g=yes 12893 fi 12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12895 fi 12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12897 fi 12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12900 fi 12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12902 $as_echo "$ac_cv_prog_cxx_g" >&6; } 12903 if test "$ac_test_CXXFLAGS" = set; then 12904 CXXFLAGS=$ac_save_CXXFLAGS 12905 elif test $ac_cv_prog_cxx_g = yes; then 12906 if test "$GXX" = yes; then 12907 CXXFLAGS="-g -O2" 12908 else 12909 CXXFLAGS="-g" 12910 fi 12911 else 12912 if test "$GXX" = yes; then 12913 CXXFLAGS="-O2" 12914 else 12915 CXXFLAGS= 12916 fi 12917 fi 12918 ac_ext=c 12919 ac_cpp='$CPP $CPPFLAGS' 12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12923 12924 depcc="$CXX" am_compiler_list= 12925 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12927 $as_echo_n "checking dependency style of $depcc... " >&6; } 12928 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12929 $as_echo_n "(cached) " >&6 12930 else 12931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12932 # We make a subdir and do the tests there. Otherwise we can end up 12933 # making bogus files that we don't know about and never remove. For 12934 # instance it was reported that on HP-UX the gcc test will end up 12935 # making a dummy file named 'D' -- because '-MD' means "put the output 12936 # in D". 12937 rm -rf conftest.dir 12938 mkdir conftest.dir 12939 # Copy depcomp to subdir because otherwise we won't find it if we're 12940 # using a relative directory. 12941 cp "$am_depcomp" conftest.dir 12942 cd conftest.dir 12943 # We will build objects and dependencies in a subdirectory because 12944 # it helps to detect inapplicable dependency modes. For instance 12945 # both Tru64's cc and ICC support -MD to output dependencies as a 12946 # side effect of compilation, but ICC will put the dependencies in 12947 # the current directory while Tru64 will put them in the object 12948 # directory. 12949 mkdir sub 12950 12951 am_cv_CXX_dependencies_compiler_type=none 12952 if test "$am_compiler_list" = ""; then 12953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12954 fi 12955 am__universal=false 12956 case " $depcc " in #( 12957 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12958 esac 12959 12960 for depmode in $am_compiler_list; do 12961 # Setup a source with many dependencies, because some compilers 12962 # like to wrap large dependency lists on column 80 (with \), and 12963 # we should not choose a depcomp mode which is confused by this. 12964 # 12965 # We need to recreate these files for each test, as the compiler may 12966 # overwrite some of them when testing with obscure command lines. 12967 # This happens at least with the AIX C compiler. 12968 : > sub/conftest.c 12969 for i in 1 2 3 4 5 6; do 12970 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12972 # Solaris 10 /bin/sh. 12973 echo '/* dummy */' > sub/conftst$i.h 12974 done 12975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12976 12977 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12978 # mode. It turns out that the SunPro C++ compiler does not properly 12979 # handle '-M -o', and we need to detect this. Also, some Intel 12980 # versions had trouble with output in subdirs. 12981 am__obj=sub/conftest.${OBJEXT-o} 12982 am__minus_obj="-o $am__obj" 12983 case $depmode in 12984 gcc) 12985 # This depmode causes a compiler race in universal mode. 12986 test "$am__universal" = false || continue 12987 ;; 12988 nosideeffect) 12989 # After this tag, mechanisms are not by side-effect, so they'll 12990 # only be used when explicitly requested. 12991 if test "x$enable_dependency_tracking" = xyes; then 12992 continue 12993 else 12994 break 12995 fi 12996 ;; 12997 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12998 # This compiler won't grok '-c -o', but also, the minuso test has 12999 # not run yet. These depmodes are late enough in the game, and 13000 # so weak that their functioning should not be impacted. 13001 am__obj=conftest.${OBJEXT-o} 13002 am__minus_obj= 13003 ;; 13004 none) break ;; 13005 esac 13006 if depmode=$depmode \ 13007 source=sub/conftest.c object=$am__obj \ 13008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13010 >/dev/null 2>conftest.err && 13011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13015 # icc doesn't choke on unknown options, it will just issue warnings 13016 # or remarks (even with -Werror). So we grep stderr for any message 13017 # that says an option was ignored or not supported. 13018 # When given -MP, icc 7.0 and 7.1 complain thusly: 13019 # icc: Command line warning: ignoring option '-M'; no argument required 13020 # The diagnosis changed in icc 8.0: 13021 # icc: Command line remark: option '-MP' not supported 13022 if (grep 'ignoring option' conftest.err || 13023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13024 am_cv_CXX_dependencies_compiler_type=$depmode 13025 break 13026 fi 13027 fi 13028 done 13029 13030 cd .. 13031 rm -rf conftest.dir 13032 else 13033 am_cv_CXX_dependencies_compiler_type=none 13034 fi 13035 13036 fi 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13038 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13039 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13040 13041 if 13042 test "x$enable_dependency_tracking" != xno \ 13043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13044 am__fastdepCXX_TRUE= 13045 am__fastdepCXX_FALSE='#' 13046 else 13047 am__fastdepCXX_TRUE='#' 13048 am__fastdepCXX_FALSE= 13049 fi 13050 13051 13052 13053 13054 func_stripname_cnf () 13055 { 13056 case $2 in 13057 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13058 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13059 esac 13060 } # func_stripname_cnf 13061 13062 if test -n "$CXX" && ( test no != "$CXX" && 13063 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13064 (test g++ != "$CXX"))); then 13065 ac_ext=cpp 13066 ac_cpp='$CXXCPP $CPPFLAGS' 13067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13071 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13072 if test -z "$CXXCPP"; then 13073 if ${ac_cv_prog_CXXCPP+:} false; then : 13074 $as_echo_n "(cached) " >&6 13075 else 13076 # Double quotes because CXXCPP needs to be expanded 13077 for CXXCPP in "$CXX -E" "/lib/cpp" 13078 do 13079 ac_preproc_ok=false 13080 for ac_cxx_preproc_warn_flag in '' yes 13081 do 13082 # Use a header file that comes with gcc, so configuring glibc 13083 # with a fresh cross-compiler works. 13084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13085 # <limits.h> exists even on freestanding compilers. 13086 # On the NeXT, cc -E runs the code through the compiler's parser, 13087 # not just through cpp. "Syntax error" is here to catch this case. 13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089 /* end confdefs.h. */ 13090 #ifdef __STDC__ 13091 # include <limits.h> 13092 #else 13093 # include <assert.h> 13094 #endif 13095 Syntax error 13096 _ACEOF 13097 if ac_fn_cxx_try_cpp "$LINENO"; then : 13098 13099 else 13100 # Broken: fails on valid input. 13101 continue 13102 fi 13103 rm -f conftest.err conftest.i conftest.$ac_ext 13104 13105 # OK, works on sane cases. Now check whether nonexistent headers 13106 # can be detected and how. 13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13108 /* end confdefs.h. */ 13109 #include <ac_nonexistent.h> 13110 _ACEOF 13111 if ac_fn_cxx_try_cpp "$LINENO"; then : 13112 # Broken: success on invalid input. 13113 continue 13114 else 13115 # Passes both tests. 13116 ac_preproc_ok=: 13117 break 13118 fi 13119 rm -f conftest.err conftest.i conftest.$ac_ext 13120 13121 done 13122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13123 rm -f conftest.i conftest.err conftest.$ac_ext 13124 if $ac_preproc_ok; then : 13125 break 13126 fi 13127 13128 done 13129 ac_cv_prog_CXXCPP=$CXXCPP 13130 13131 fi 13132 CXXCPP=$ac_cv_prog_CXXCPP 13133 else 13134 ac_cv_prog_CXXCPP=$CXXCPP 13135 fi 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13137 $as_echo "$CXXCPP" >&6; } 13138 ac_preproc_ok=false 13139 for ac_cxx_preproc_warn_flag in '' yes 13140 do 13141 # Use a header file that comes with gcc, so configuring glibc 13142 # with a fresh cross-compiler works. 13143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13144 # <limits.h> exists even on freestanding compilers. 13145 # On the NeXT, cc -E runs the code through the compiler's parser, 13146 # not just through cpp. "Syntax error" is here to catch this case. 13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13148 /* end confdefs.h. */ 13149 #ifdef __STDC__ 13150 # include <limits.h> 13151 #else 13152 # include <assert.h> 13153 #endif 13154 Syntax error 13155 _ACEOF 13156 if ac_fn_cxx_try_cpp "$LINENO"; then : 13157 13158 else 13159 # Broken: fails on valid input. 13160 continue 13161 fi 13162 rm -f conftest.err conftest.i conftest.$ac_ext 13163 13164 # OK, works on sane cases. Now check whether nonexistent headers 13165 # can be detected and how. 13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13167 /* end confdefs.h. */ 13168 #include <ac_nonexistent.h> 13169 _ACEOF 13170 if ac_fn_cxx_try_cpp "$LINENO"; then : 13171 # Broken: success on invalid input. 13172 continue 13173 else 13174 # Passes both tests. 13175 ac_preproc_ok=: 13176 break 13177 fi 13178 rm -f conftest.err conftest.i conftest.$ac_ext 13179 13180 done 13181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13182 rm -f conftest.i conftest.err conftest.$ac_ext 13183 if $ac_preproc_ok; then : 13184 13185 else 13186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13188 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13189 See \`config.log' for more details" "$LINENO" 5; } 13190 fi 13191 13192 ac_ext=c 13193 ac_cpp='$CPP $CPPFLAGS' 13194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13196 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13197 13198 else 13199 _lt_caught_CXX_error=yes 13200 fi 13201 13202 ac_ext=cpp 13203 ac_cpp='$CXXCPP $CPPFLAGS' 13204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13207 13208 archive_cmds_need_lc_CXX=no 13209 allow_undefined_flag_CXX= 13210 always_export_symbols_CXX=no 13211 archive_expsym_cmds_CXX= 13212 compiler_needs_object_CXX=no 13213 export_dynamic_flag_spec_CXX= 13214 hardcode_direct_CXX=no 13215 hardcode_direct_absolute_CXX=no 13216 hardcode_libdir_flag_spec_CXX= 13217 hardcode_libdir_separator_CXX= 13218 hardcode_minus_L_CXX=no 13219 hardcode_shlibpath_var_CXX=unsupported 13220 hardcode_automatic_CXX=no 13221 inherit_rpath_CXX=no 13222 module_cmds_CXX= 13223 module_expsym_cmds_CXX= 13224 link_all_deplibs_CXX=unknown 13225 old_archive_cmds_CXX=$old_archive_cmds 13226 reload_flag_CXX=$reload_flag 13227 reload_cmds_CXX=$reload_cmds 13228 no_undefined_flag_CXX= 13229 whole_archive_flag_spec_CXX= 13230 enable_shared_with_static_runtimes_CXX=no 13231 13232 # Source file extension for C++ test sources. 13233 ac_ext=cpp 13234 13235 # Object file extension for compiled C++ test sources. 13236 objext=o 13237 objext_CXX=$objext 13238 13239 # No sense in running all these tests if we already determined that 13240 # the CXX compiler isn't working. Some variables (like enable_shared) 13241 # are currently assumed to apply to all compilers on this platform, 13242 # and will be corrupted by setting them based on a non-working compiler. 13243 if test yes != "$_lt_caught_CXX_error"; then 13244 # Code to be used in simple compile tests 13245 lt_simple_compile_test_code="int some_variable = 0;" 13246 13247 # Code to be used in simple link tests 13248 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13249 13250 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13251 13252 13253 13254 13255 13256 13257 # If no C compiler was specified, use CC. 13258 LTCC=${LTCC-"$CC"} 13259 13260 # If no C compiler flags were specified, use CFLAGS. 13261 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13262 13263 # Allow CC to be a program name with arguments. 13264 compiler=$CC 13265 13266 13267 # save warnings/boilerplate of simple test code 13268 ac_outfile=conftest.$ac_objext 13269 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13270 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13271 _lt_compiler_boilerplate=`cat conftest.err` 13272 $RM conftest* 13273 13274 ac_outfile=conftest.$ac_objext 13275 echo "$lt_simple_link_test_code" >conftest.$ac_ext 13276 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13277 _lt_linker_boilerplate=`cat conftest.err` 13278 $RM -r conftest* 13279 13280 13281 # Allow CC to be a program name with arguments. 13282 lt_save_CC=$CC 13283 lt_save_CFLAGS=$CFLAGS 13284 lt_save_LD=$LD 13285 lt_save_GCC=$GCC 13286 GCC=$GXX 13287 lt_save_with_gnu_ld=$with_gnu_ld 13288 lt_save_path_LD=$lt_cv_path_LD 13289 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13290 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13291 else 13292 $as_unset lt_cv_prog_gnu_ld 13293 fi 13294 if test -n "${lt_cv_path_LDCXX+set}"; then 13295 lt_cv_path_LD=$lt_cv_path_LDCXX 13296 else 13297 $as_unset lt_cv_path_LD 13298 fi 13299 test -z "${LDCXX+set}" || LD=$LDCXX 13300 CC=${CXX-"c++"} 13301 CFLAGS=$CXXFLAGS 13302 compiler=$CC 13303 compiler_CXX=$CC 13304 func_cc_basename $compiler 13305 cc_basename=$func_cc_basename_result 13306 13307 13308 if test -n "$compiler"; then 13309 # We don't want -fno-exception when compiling C++ code, so set the 13310 # no_builtin_flag separately 13311 if test yes = "$GXX"; then 13312 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13313 else 13314 lt_prog_compiler_no_builtin_flag_CXX= 13315 fi 13316 13317 if test yes = "$GXX"; then 13318 # Set up default GNU C++ configuration 13319 13320 13321 13322 # Check whether --with-gnu-ld was given. 13323 if test "${with_gnu_ld+set}" = set; then : 13324 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13325 else 13326 with_gnu_ld=no 13327 fi 13328 13329 ac_prog=ld 13330 if test yes = "$GCC"; then 13331 # Check if gcc -print-prog-name=ld gives a path. 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13333 $as_echo_n "checking for ld used by $CC... " >&6; } 13334 case $host in 13335 *-*-mingw*) 13336 # gcc leaves a trailing carriage return, which upsets mingw 13337 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13338 *) 13339 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13340 esac 13341 case $ac_prog in 13342 # Accept absolute paths. 13343 [\\/]* | ?:[\\/]*) 13344 re_direlt='/[^/][^/]*/\.\./' 13345 # Canonicalize the pathname of ld 13346 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13347 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13348 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13349 done 13350 test -z "$LD" && LD=$ac_prog 13351 ;; 13352 "") 13353 # If it fails, then pretend we aren't using GCC. 13354 ac_prog=ld 13355 ;; 13356 *) 13357 # If it is relative, then search for the first ld in PATH. 13358 with_gnu_ld=unknown 13359 ;; 13360 esac 13361 elif test yes = "$with_gnu_ld"; then 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13363 $as_echo_n "checking for GNU ld... " >&6; } 13364 else 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13366 $as_echo_n "checking for non-GNU ld... " >&6; } 13367 fi 13368 if ${lt_cv_path_LD+:} false; then : 13369 $as_echo_n "(cached) " >&6 13370 else 13371 if test -z "$LD"; then 13372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13373 for ac_dir in $PATH; do 13374 IFS=$lt_save_ifs 13375 test -z "$ac_dir" && ac_dir=. 13376 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13377 lt_cv_path_LD=$ac_dir/$ac_prog 13378 # Check to see if the program is GNU ld. I'd rather use --version, 13379 # but apparently some variants of GNU ld only accept -v. 13380 # Break only if it was the GNU/non-GNU ld that we prefer. 13381 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13382 *GNU* | *'with BFD'*) 13383 test no != "$with_gnu_ld" && break 13384 ;; 13385 *) 13386 test yes != "$with_gnu_ld" && break 13387 ;; 13388 esac 13389 fi 13390 done 13391 IFS=$lt_save_ifs 13392 else 13393 lt_cv_path_LD=$LD # Let the user override the test with a path. 13394 fi 13395 fi 13396 13397 LD=$lt_cv_path_LD 13398 if test -n "$LD"; then 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13400 $as_echo "$LD" >&6; } 13401 else 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13403 $as_echo "no" >&6; } 13404 fi 13405 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13408 if ${lt_cv_prog_gnu_ld+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410 else 13411 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13412 case `$LD -v 2>&1 </dev/null` in 13413 *GNU* | *'with BFD'*) 13414 lt_cv_prog_gnu_ld=yes 13415 ;; 13416 *) 13417 lt_cv_prog_gnu_ld=no 13418 ;; 13419 esac 13420 fi 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13422 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 13423 with_gnu_ld=$lt_cv_prog_gnu_ld 13424 13425 13426 13427 13428 13429 13430 13431 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13432 # archiving commands below assume that GNU ld is being used. 13433 if test yes = "$with_gnu_ld"; then 13434 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13435 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' 13436 13437 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13438 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13439 13440 # If archive_cmds runs LD, not CC, wlarc should be empty 13441 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13442 # investigate it a little bit more. (MM) 13443 wlarc='$wl' 13444 13445 # ancient GNU ld didn't support --whole-archive et. al. 13446 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13447 $GREP 'no-whole-archive' > /dev/null; then 13448 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13449 else 13450 whole_archive_flag_spec_CXX= 13451 fi 13452 else 13453 with_gnu_ld=no 13454 wlarc= 13455 13456 # A generic and very simple default shared library creation 13457 # command for GNU C++ for the case where it uses the native 13458 # linker, instead of GNU ld. If possible, this setting should 13459 # overridden to take advantage of the native linker features on 13460 # the platform it is being used on. 13461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13462 fi 13463 13464 # Commands to make compiler produce verbose output that lists 13465 # what "hidden" libraries, object files and flags are used when 13466 # linking a shared library. 13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13468 13469 else 13470 GXX=no 13471 with_gnu_ld=no 13472 wlarc= 13473 fi 13474 13475 # PORTME: fill in a description of your system's C++ link characteristics 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13477 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13478 ld_shlibs_CXX=yes 13479 case $host_os in 13480 aix3*) 13481 # FIXME: insert proper C++ library support 13482 ld_shlibs_CXX=no 13483 ;; 13484 aix[4-9]*) 13485 if test ia64 = "$host_cpu"; then 13486 # On IA64, the linker does run time linking by default, so we don't 13487 # have to do anything special. 13488 aix_use_runtimelinking=no 13489 exp_sym_flag='-Bexport' 13490 no_entry_flag= 13491 else 13492 aix_use_runtimelinking=no 13493 13494 # Test if we are trying to use run time linking or normal 13495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13496 # have runtime linking enabled, and use it for executables. 13497 # For shared libraries, we enable/disable runtime linking 13498 # depending on the kind of the shared library created - 13499 # when "with_aix_soname,aix_use_runtimelinking" is: 13500 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13501 # "aix,yes" lib.so shared, rtl:yes, for executables 13502 # lib.a static archive 13503 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13504 # lib.a(lib.so.V) shared, rtl:no, for executables 13505 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13506 # lib.a(lib.so.V) shared, rtl:no 13507 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13508 # lib.a static archive 13509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13510 for ld_flag in $LDFLAGS; do 13511 case $ld_flag in 13512 *-brtl*) 13513 aix_use_runtimelinking=yes 13514 break 13515 ;; 13516 esac 13517 done 13518 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13519 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13520 # so we don't have lib.a shared libs to link our executables. 13521 # We have to force runtime linking in this case. 13522 aix_use_runtimelinking=yes 13523 LDFLAGS="$LDFLAGS -Wl,-brtl" 13524 fi 13525 ;; 13526 esac 13527 13528 exp_sym_flag='-bexport' 13529 no_entry_flag='-bnoentry' 13530 fi 13531 13532 # When large executables or shared objects are built, AIX ld can 13533 # have problems creating the table of contents. If linking a library 13534 # or program results in "error TOC overflow" add -mminimal-toc to 13535 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13536 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13537 13538 archive_cmds_CXX='' 13539 hardcode_direct_CXX=yes 13540 hardcode_direct_absolute_CXX=yes 13541 hardcode_libdir_separator_CXX=':' 13542 link_all_deplibs_CXX=yes 13543 file_list_spec_CXX='$wl-f,' 13544 case $with_aix_soname,$aix_use_runtimelinking in 13545 aix,*) ;; # no import file 13546 svr4,* | *,yes) # use import file 13547 # The Import File defines what to hardcode. 13548 hardcode_direct_CXX=no 13549 hardcode_direct_absolute_CXX=no 13550 ;; 13551 esac 13552 13553 if test yes = "$GXX"; then 13554 case $host_os in aix4.[012]|aix4.[012].*) 13555 # We only want to do this on AIX 4.2 and lower, the check 13556 # below for broken collect2 doesn't work under 4.3+ 13557 collect2name=`$CC -print-prog-name=collect2` 13558 if test -f "$collect2name" && 13559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13560 then 13561 # We have reworked collect2 13562 : 13563 else 13564 # We have old collect2 13565 hardcode_direct_CXX=unsupported 13566 # It fails to find uninstalled libraries when the uninstalled 13567 # path is not listed in the libpath. Setting hardcode_minus_L 13568 # to unsupported forces relinking 13569 hardcode_minus_L_CXX=yes 13570 hardcode_libdir_flag_spec_CXX='-L$libdir' 13571 hardcode_libdir_separator_CXX= 13572 fi 13573 esac 13574 shared_flag='-shared' 13575 if test yes = "$aix_use_runtimelinking"; then 13576 shared_flag=$shared_flag' $wl-G' 13577 fi 13578 # Need to ensure runtime linking is disabled for the traditional 13579 # shared library, or the linker may eventually find shared libraries 13580 # /with/ Import File - we do not want to mix them. 13581 shared_flag_aix='-shared' 13582 shared_flag_svr4='-shared $wl-G' 13583 else 13584 # not using gcc 13585 if test ia64 = "$host_cpu"; then 13586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13587 # chokes on -Wl,-G. The following line is correct: 13588 shared_flag='-G' 13589 else 13590 if test yes = "$aix_use_runtimelinking"; then 13591 shared_flag='$wl-G' 13592 else 13593 shared_flag='$wl-bM:SRE' 13594 fi 13595 shared_flag_aix='$wl-bM:SRE' 13596 shared_flag_svr4='$wl-G' 13597 fi 13598 fi 13599 13600 export_dynamic_flag_spec_CXX='$wl-bexpall' 13601 # It seems that -bexpall does not export symbols beginning with 13602 # underscore (_), so it is better to generate a list of symbols to 13603 # export. 13604 always_export_symbols_CXX=yes 13605 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13606 # Warning - without using the other runtime loading flags (-brtl), 13607 # -berok will link without error, but may produce a broken library. 13608 # The "-G" linker flag allows undefined symbols. 13609 no_undefined_flag_CXX='-bernotok' 13610 # Determine the default libpath from the value encoded in an empty 13611 # executable. 13612 if test set = "${lt_cv_aix_libpath+set}"; then 13613 aix_libpath=$lt_cv_aix_libpath 13614 else 13615 if ${lt_cv_aix_libpath__CXX+:} false; then : 13616 $as_echo_n "(cached) " >&6 13617 else 13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13619 /* end confdefs.h. */ 13620 13621 int 13622 main () 13623 { 13624 13625 ; 13626 return 0; 13627 } 13628 _ACEOF 13629 if ac_fn_cxx_try_link "$LINENO"; then : 13630 13631 lt_aix_libpath_sed=' 13632 /Import File Strings/,/^$/ { 13633 /^0/ { 13634 s/^0 *\([^ ]*\) *$/\1/ 13635 p 13636 } 13637 }' 13638 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13639 # Check for a 64-bit object if we didn't find anything. 13640 if test -z "$lt_cv_aix_libpath__CXX"; then 13641 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13642 fi 13643 fi 13644 rm -f core conftest.err conftest.$ac_objext \ 13645 conftest$ac_exeext conftest.$ac_ext 13646 if test -z "$lt_cv_aix_libpath__CXX"; then 13647 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13648 fi 13649 13650 fi 13651 13652 aix_libpath=$lt_cv_aix_libpath__CXX 13653 fi 13654 13655 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13656 13657 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 13658 else 13659 if test ia64 = "$host_cpu"; then 13660 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13661 allow_undefined_flag_CXX="-z nodefs" 13662 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" 13663 else 13664 # Determine the default libpath from the value encoded in an 13665 # empty executable. 13666 if test set = "${lt_cv_aix_libpath+set}"; then 13667 aix_libpath=$lt_cv_aix_libpath 13668 else 13669 if ${lt_cv_aix_libpath__CXX+:} false; then : 13670 $as_echo_n "(cached) " >&6 13671 else 13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13673 /* end confdefs.h. */ 13674 13675 int 13676 main () 13677 { 13678 13679 ; 13680 return 0; 13681 } 13682 _ACEOF 13683 if ac_fn_cxx_try_link "$LINENO"; then : 13684 13685 lt_aix_libpath_sed=' 13686 /Import File Strings/,/^$/ { 13687 /^0/ { 13688 s/^0 *\([^ ]*\) *$/\1/ 13689 p 13690 } 13691 }' 13692 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13693 # Check for a 64-bit object if we didn't find anything. 13694 if test -z "$lt_cv_aix_libpath__CXX"; then 13695 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13696 fi 13697 fi 13698 rm -f core conftest.err conftest.$ac_objext \ 13699 conftest$ac_exeext conftest.$ac_ext 13700 if test -z "$lt_cv_aix_libpath__CXX"; then 13701 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13702 fi 13703 13704 fi 13705 13706 aix_libpath=$lt_cv_aix_libpath__CXX 13707 fi 13708 13709 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13710 # Warning - without using the other run time loading flags, 13711 # -berok will link without error, but may produce a broken library. 13712 no_undefined_flag_CXX=' $wl-bernotok' 13713 allow_undefined_flag_CXX=' $wl-berok' 13714 if test yes = "$with_gnu_ld"; then 13715 # We only use this code for GNU lds that support --whole-archive. 13716 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13717 else 13718 # Exported symbols can be pulled into shared objects from archives 13719 whole_archive_flag_spec_CXX='$convenience' 13720 fi 13721 archive_cmds_need_lc_CXX=yes 13722 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13723 # -brtl affects multiple linker settings, -berok does not and is overridden later 13724 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13725 if test svr4 != "$with_aix_soname"; then 13726 # This is similar to how AIX traditionally builds its shared 13727 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13728 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' 13729 fi 13730 if test aix != "$with_aix_soname"; then 13731 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' 13732 else 13733 # used by -dlpreopen to get the symbols 13734 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13735 fi 13736 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13737 fi 13738 fi 13739 ;; 13740 13741 beos*) 13742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13743 allow_undefined_flag_CXX=unsupported 13744 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 13745 # support --undefined. This deserves some investigation. FIXME 13746 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13747 else 13748 ld_shlibs_CXX=no 13749 fi 13750 ;; 13751 13752 chorus*) 13753 case $cc_basename in 13754 *) 13755 # FIXME: insert proper C++ library support 13756 ld_shlibs_CXX=no 13757 ;; 13758 esac 13759 ;; 13760 13761 cygwin* | mingw* | pw32* | cegcc*) 13762 case $GXX,$cc_basename in 13763 ,cl* | no,cl*) 13764 # Native MSVC 13765 # hardcode_libdir_flag_spec is actually meaningless, as there is 13766 # no search path for DLLs. 13767 hardcode_libdir_flag_spec_CXX=' ' 13768 allow_undefined_flag_CXX=unsupported 13769 always_export_symbols_CXX=yes 13770 file_list_spec_CXX='@' 13771 # Tell ltmain to make .lib files, not .a files. 13772 libext=lib 13773 # Tell ltmain to make .dll files, not .so files. 13774 shrext_cmds=.dll 13775 # FIXME: Setting linknames here is a bad hack. 13776 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13777 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13778 cp "$export_symbols" "$output_objdir/$soname.def"; 13779 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13780 else 13781 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13782 fi~ 13783 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13784 linknames=' 13785 # The linker will not automatically build a static lib if we build a DLL. 13786 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13787 enable_shared_with_static_runtimes_CXX=yes 13788 # Don't use ranlib 13789 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13790 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13791 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13792 case $lt_outputfile in 13793 *.exe|*.EXE) ;; 13794 *) 13795 lt_outputfile=$lt_outputfile.exe 13796 lt_tool_outputfile=$lt_tool_outputfile.exe 13797 ;; 13798 esac~ 13799 func_to_tool_file "$lt_outputfile"~ 13800 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13801 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13802 $RM "$lt_outputfile.manifest"; 13803 fi' 13804 ;; 13805 *) 13806 # g++ 13807 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13808 # as there is no search path for DLLs. 13809 hardcode_libdir_flag_spec_CXX='-L$libdir' 13810 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13811 allow_undefined_flag_CXX=unsupported 13812 always_export_symbols_CXX=no 13813 enable_shared_with_static_runtimes_CXX=yes 13814 13815 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13816 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' 13817 # If the export-symbols file already is a .def file, use it as 13818 # is; otherwise, prepend EXPORTS... 13819 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13820 cp $export_symbols $output_objdir/$soname.def; 13821 else 13822 echo EXPORTS > $output_objdir/$soname.def; 13823 cat $export_symbols >> $output_objdir/$soname.def; 13824 fi~ 13825 $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' 13826 else 13827 ld_shlibs_CXX=no 13828 fi 13829 ;; 13830 esac 13831 ;; 13832 darwin* | rhapsody*) 13833 13834 13835 archive_cmds_need_lc_CXX=no 13836 hardcode_direct_CXX=no 13837 hardcode_automatic_CXX=yes 13838 hardcode_shlibpath_var_CXX=unsupported 13839 if test yes = "$lt_cv_ld_force_load"; then 13840 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\"`' 13841 13842 else 13843 whole_archive_flag_spec_CXX='' 13844 fi 13845 link_all_deplibs_CXX=yes 13846 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13847 case $cc_basename in 13848 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13849 *) _lt_dar_can_shared=$GCC ;; 13850 esac 13851 if test yes = "$_lt_dar_can_shared"; then 13852 output_verbose_link_cmd=func_echo_all 13853 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" 13854 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13855 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" 13856 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" 13857 if test yes != "$lt_cv_apple_cc_single_mod"; then 13858 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" 13859 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" 13860 fi 13861 13862 else 13863 ld_shlibs_CXX=no 13864 fi 13865 13866 ;; 13867 13868 os2*) 13869 hardcode_libdir_flag_spec_CXX='-L$libdir' 13870 hardcode_minus_L_CXX=yes 13871 allow_undefined_flag_CXX=unsupported 13872 shrext_cmds=.dll 13873 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13874 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13875 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13876 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13877 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13879 emximp -o $lib $output_objdir/$libname.def' 13880 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13884 prefix_cmds="$SED"~ 13885 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13886 prefix_cmds="$prefix_cmds -e 1d"; 13887 fi~ 13888 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13889 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13890 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13891 emximp -o $lib $output_objdir/$libname.def' 13892 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13893 enable_shared_with_static_runtimes_CXX=yes 13894 ;; 13895 13896 dgux*) 13897 case $cc_basename in 13898 ec++*) 13899 # FIXME: insert proper C++ library support 13900 ld_shlibs_CXX=no 13901 ;; 13902 ghcx*) 13903 # Green Hills C++ Compiler 13904 # FIXME: insert proper C++ library support 13905 ld_shlibs_CXX=no 13906 ;; 13907 *) 13908 # FIXME: insert proper C++ library support 13909 ld_shlibs_CXX=no 13910 ;; 13911 esac 13912 ;; 13913 13914 freebsd2.*) 13915 # C++ shared libraries reported to be fairly broken before 13916 # switch to ELF 13917 ld_shlibs_CXX=no 13918 ;; 13919 13920 freebsd-elf*) 13921 archive_cmds_need_lc_CXX=no 13922 ;; 13923 13924 freebsd* | dragonfly*) 13925 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13926 # conventions 13927 ld_shlibs_CXX=yes 13928 ;; 13929 13930 haiku*) 13931 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13932 link_all_deplibs_CXX=yes 13933 ;; 13934 13935 hpux9*) 13936 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13937 hardcode_libdir_separator_CXX=: 13938 export_dynamic_flag_spec_CXX='$wl-E' 13939 hardcode_direct_CXX=yes 13940 hardcode_minus_L_CXX=yes # Not in the search PATH, 13941 # but as the default 13942 # location of the library. 13943 13944 case $cc_basename in 13945 CC*) 13946 # FIXME: insert proper C++ library support 13947 ld_shlibs_CXX=no 13948 ;; 13949 aCC*) 13950 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' 13951 # Commands to make compiler produce verbose output that lists 13952 # what "hidden" libraries, object files and flags are used when 13953 # linking a shared library. 13954 # 13955 # There doesn't appear to be a way to prevent this compiler from 13956 # explicitly linking system object files so we need to strip them 13957 # from the output so that they don't get included in the library 13958 # dependencies. 13959 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"' 13960 ;; 13961 *) 13962 if test yes = "$GXX"; then 13963 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' 13964 else 13965 # FIXME: insert proper C++ library support 13966 ld_shlibs_CXX=no 13967 fi 13968 ;; 13969 esac 13970 ;; 13971 13972 hpux10*|hpux11*) 13973 if test no = "$with_gnu_ld"; then 13974 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13975 hardcode_libdir_separator_CXX=: 13976 13977 case $host_cpu in 13978 hppa*64*|ia64*) 13979 ;; 13980 *) 13981 export_dynamic_flag_spec_CXX='$wl-E' 13982 ;; 13983 esac 13984 fi 13985 case $host_cpu in 13986 hppa*64*|ia64*) 13987 hardcode_direct_CXX=no 13988 hardcode_shlibpath_var_CXX=no 13989 ;; 13990 *) 13991 hardcode_direct_CXX=yes 13992 hardcode_direct_absolute_CXX=yes 13993 hardcode_minus_L_CXX=yes # Not in the search PATH, 13994 # but as the default 13995 # location of the library. 13996 ;; 13997 esac 13998 13999 case $cc_basename in 14000 CC*) 14001 # FIXME: insert proper C++ library support 14002 ld_shlibs_CXX=no 14003 ;; 14004 aCC*) 14005 case $host_cpu in 14006 hppa*64*) 14007 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14008 ;; 14009 ia64*) 14010 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14011 ;; 14012 *) 14013 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14014 ;; 14015 esac 14016 # Commands to make compiler produce verbose output that lists 14017 # what "hidden" libraries, object files and flags are used when 14018 # linking a shared library. 14019 # 14020 # There doesn't appear to be a way to prevent this compiler from 14021 # explicitly linking system object files so we need to strip them 14022 # from the output so that they don't get included in the library 14023 # dependencies. 14024 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"' 14025 ;; 14026 *) 14027 if test yes = "$GXX"; then 14028 if test no = "$with_gnu_ld"; then 14029 case $host_cpu in 14030 hppa*64*) 14031 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14032 ;; 14033 ia64*) 14034 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14035 ;; 14036 *) 14037 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' 14038 ;; 14039 esac 14040 fi 14041 else 14042 # FIXME: insert proper C++ library support 14043 ld_shlibs_CXX=no 14044 fi 14045 ;; 14046 esac 14047 ;; 14048 14049 interix[3-9]*) 14050 hardcode_direct_CXX=no 14051 hardcode_shlibpath_var_CXX=no 14052 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14053 export_dynamic_flag_spec_CXX='$wl-E' 14054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14055 # Instead, shared libraries are loaded at an image base (0x10000000 by 14056 # default) and relocated if they conflict, which is a slow very memory 14057 # consuming and fragmenting process. To avoid this, we pick a random, 14058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14059 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14060 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' 14061 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' 14062 ;; 14063 irix5* | irix6*) 14064 case $cc_basename in 14065 CC*) 14066 # SGI C++ 14067 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' 14068 14069 # Archives containing C++ object files must be created using 14070 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14071 # necessary to make sure instantiated templates are included 14072 # in the archive. 14073 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14074 ;; 14075 *) 14076 if test yes = "$GXX"; then 14077 if test no = "$with_gnu_ld"; then 14078 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' 14079 else 14080 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' 14081 fi 14082 fi 14083 link_all_deplibs_CXX=yes 14084 ;; 14085 esac 14086 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14087 hardcode_libdir_separator_CXX=: 14088 inherit_rpath_CXX=yes 14089 ;; 14090 14091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14092 case $cc_basename in 14093 KCC*) 14094 # Kuck and Associates, Inc. (KAI) C++ Compiler 14095 14096 # KCC will only create a shared library if the output file 14097 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14098 # to its proper name (with version) after linking. 14099 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' 14100 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' 14101 # Commands to make compiler produce verbose output that lists 14102 # what "hidden" libraries, object files and flags are used when 14103 # linking a shared library. 14104 # 14105 # There doesn't appear to be a way to prevent this compiler from 14106 # explicitly linking system object files so we need to strip them 14107 # from the output so that they don't get included in the library 14108 # dependencies. 14109 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"' 14110 14111 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14112 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14113 14114 # Archives containing C++ object files must be created using 14115 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14116 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14117 ;; 14118 icpc* | ecpc* ) 14119 # Intel C++ 14120 with_gnu_ld=yes 14121 # version 8.0 and above of icpc choke on multiply defined symbols 14122 # if we add $predep_objects and $postdep_objects, however 7.1 and 14123 # earlier do not add the objects themselves. 14124 case `$CC -V 2>&1` in 14125 *"Version 7."*) 14126 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14127 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' 14128 ;; 14129 *) # Version 8.0 or newer 14130 tmp_idyn= 14131 case $host_cpu in 14132 ia64*) tmp_idyn=' -i_dynamic';; 14133 esac 14134 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14135 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' 14136 ;; 14137 esac 14138 archive_cmds_need_lc_CXX=no 14139 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14140 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14141 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14142 ;; 14143 pgCC* | pgcpp*) 14144 # Portland Group C++ compiler 14145 case `$CC -V` in 14146 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14147 prelink_cmds_CXX='tpldir=Template.dir~ 14148 rm -rf $tpldir~ 14149 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14150 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14151 old_archive_cmds_CXX='tpldir=Template.dir~ 14152 rm -rf $tpldir~ 14153 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14154 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14155 $RANLIB $oldlib' 14156 archive_cmds_CXX='tpldir=Template.dir~ 14157 rm -rf $tpldir~ 14158 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14159 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14160 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14161 rm -rf $tpldir~ 14162 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14163 $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' 14164 ;; 14165 *) # Version 6 and above use weak symbols 14166 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14167 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' 14168 ;; 14169 esac 14170 14171 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14172 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14173 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' 14174 ;; 14175 cxx*) 14176 # Compaq C++ 14177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14178 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' 14179 14180 runpath_var=LD_RUN_PATH 14181 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14182 hardcode_libdir_separator_CXX=: 14183 14184 # Commands to make compiler produce verbose output that lists 14185 # what "hidden" libraries, object files and flags are used when 14186 # linking a shared library. 14187 # 14188 # There doesn't appear to be a way to prevent this compiler from 14189 # explicitly linking system object files so we need to strip them 14190 # from the output so that they don't get included in the library 14191 # dependencies. 14192 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' 14193 ;; 14194 xl* | mpixl* | bgxl*) 14195 # IBM XL 8.0 on PPC, with GNU ld 14196 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14197 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14198 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14199 if test yes = "$supports_anon_versioning"; then 14200 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14202 echo "local: *; };" >> $output_objdir/$libname.ver~ 14203 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14204 fi 14205 ;; 14206 *) 14207 case `$CC -V 2>&1 | sed 5q` in 14208 *Sun\ C*) 14209 # Sun C++ 5.9 14210 no_undefined_flag_CXX=' -zdefs' 14211 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14212 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' 14213 hardcode_libdir_flag_spec_CXX='-R$libdir' 14214 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' 14215 compiler_needs_object_CXX=yes 14216 14217 # Not sure whether something based on 14218 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14219 # would be better. 14220 output_verbose_link_cmd='func_echo_all' 14221 14222 # Archives containing C++ object files must be created using 14223 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14224 # necessary to make sure instantiated templates are included 14225 # in the archive. 14226 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14227 ;; 14228 esac 14229 ;; 14230 esac 14231 ;; 14232 14233 lynxos*) 14234 # FIXME: insert proper C++ library support 14235 ld_shlibs_CXX=no 14236 ;; 14237 14238 m88k*) 14239 # FIXME: insert proper C++ library support 14240 ld_shlibs_CXX=no 14241 ;; 14242 14243 mvs*) 14244 case $cc_basename in 14245 cxx*) 14246 # FIXME: insert proper C++ library support 14247 ld_shlibs_CXX=no 14248 ;; 14249 *) 14250 # FIXME: insert proper C++ library support 14251 ld_shlibs_CXX=no 14252 ;; 14253 esac 14254 ;; 14255 14256 netbsd*) 14257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14258 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14259 wlarc= 14260 hardcode_libdir_flag_spec_CXX='-R$libdir' 14261 hardcode_direct_CXX=yes 14262 hardcode_shlibpath_var_CXX=no 14263 fi 14264 # Workaround some broken pre-1.5 toolchains 14265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14266 ;; 14267 14268 *nto* | *qnx*) 14269 ld_shlibs_CXX=yes 14270 ;; 14271 14272 openbsd* | bitrig*) 14273 if test -f /usr/libexec/ld.so; then 14274 hardcode_direct_CXX=yes 14275 hardcode_shlibpath_var_CXX=no 14276 hardcode_direct_absolute_CXX=yes 14277 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14280 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14281 export_dynamic_flag_spec_CXX='$wl-E' 14282 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14283 fi 14284 output_verbose_link_cmd=func_echo_all 14285 else 14286 ld_shlibs_CXX=no 14287 fi 14288 ;; 14289 14290 osf3* | osf4* | osf5*) 14291 case $cc_basename in 14292 KCC*) 14293 # Kuck and Associates, Inc. (KAI) C++ Compiler 14294 14295 # KCC will only create a shared library if the output file 14296 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14297 # to its proper name (with version) after linking. 14298 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' 14299 14300 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14301 hardcode_libdir_separator_CXX=: 14302 14303 # Archives containing C++ object files must be created using 14304 # the KAI C++ compiler. 14305 case $host in 14306 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14307 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14308 esac 14309 ;; 14310 RCC*) 14311 # Rational C++ 2.4.1 14312 # FIXME: insert proper C++ library support 14313 ld_shlibs_CXX=no 14314 ;; 14315 cxx*) 14316 case $host in 14317 osf3*) 14318 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14319 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' 14320 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14321 ;; 14322 *) 14323 allow_undefined_flag_CXX=' -expect_unresolved \*' 14324 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' 14325 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14326 echo "-hidden">> $lib.exp~ 14327 $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~ 14328 $RM $lib.exp' 14329 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14330 ;; 14331 esac 14332 14333 hardcode_libdir_separator_CXX=: 14334 14335 # Commands to make compiler produce verbose output that lists 14336 # what "hidden" libraries, object files and flags are used when 14337 # linking a shared library. 14338 # 14339 # There doesn't appear to be a way to prevent this compiler from 14340 # explicitly linking system object files so we need to strip them 14341 # from the output so that they don't get included in the library 14342 # dependencies. 14343 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"' 14344 ;; 14345 *) 14346 if test yes,no = "$GXX,$with_gnu_ld"; then 14347 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14348 case $host in 14349 osf3*) 14350 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' 14351 ;; 14352 *) 14353 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' 14354 ;; 14355 esac 14356 14357 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14358 hardcode_libdir_separator_CXX=: 14359 14360 # Commands to make compiler produce verbose output that lists 14361 # what "hidden" libraries, object files and flags are used when 14362 # linking a shared library. 14363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14364 14365 else 14366 # FIXME: insert proper C++ library support 14367 ld_shlibs_CXX=no 14368 fi 14369 ;; 14370 esac 14371 ;; 14372 14373 psos*) 14374 # FIXME: insert proper C++ library support 14375 ld_shlibs_CXX=no 14376 ;; 14377 14378 sunos4*) 14379 case $cc_basename in 14380 CC*) 14381 # Sun C++ 4.x 14382 # FIXME: insert proper C++ library support 14383 ld_shlibs_CXX=no 14384 ;; 14385 lcc*) 14386 # Lucid 14387 # FIXME: insert proper C++ library support 14388 ld_shlibs_CXX=no 14389 ;; 14390 *) 14391 # FIXME: insert proper C++ library support 14392 ld_shlibs_CXX=no 14393 ;; 14394 esac 14395 ;; 14396 14397 solaris*) 14398 case $cc_basename in 14399 CC* | sunCC*) 14400 # Sun C++ 4.2, 5.x and Centerline C++ 14401 archive_cmds_need_lc_CXX=yes 14402 no_undefined_flag_CXX=' -zdefs' 14403 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14405 $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' 14406 14407 hardcode_libdir_flag_spec_CXX='-R$libdir' 14408 hardcode_shlibpath_var_CXX=no 14409 case $host_os in 14410 solaris2.[0-5] | solaris2.[0-5].*) ;; 14411 *) 14412 # The compiler driver will combine and reorder linker options, 14413 # but understands '-z linker_flag'. 14414 # Supported since Solaris 2.6 (maybe 2.5.1?) 14415 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14416 ;; 14417 esac 14418 link_all_deplibs_CXX=yes 14419 14420 output_verbose_link_cmd='func_echo_all' 14421 14422 # Archives containing C++ object files must be created using 14423 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14424 # necessary to make sure instantiated templates are included 14425 # in the archive. 14426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14427 ;; 14428 gcx*) 14429 # Green Hills C++ Compiler 14430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14431 14432 # The C++ compiler must be used to create the archive. 14433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14434 ;; 14435 *) 14436 # GNU C++ compiler with Solaris linker 14437 if test yes,no = "$GXX,$with_gnu_ld"; then 14438 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14439 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14440 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14441 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14442 $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' 14443 14444 # Commands to make compiler produce verbose output that lists 14445 # what "hidden" libraries, object files and flags are used when 14446 # linking a shared library. 14447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14448 else 14449 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14450 # platform. 14451 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14452 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14453 $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' 14454 14455 # Commands to make compiler produce verbose output that lists 14456 # what "hidden" libraries, object files and flags are used when 14457 # linking a shared library. 14458 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14459 fi 14460 14461 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14462 case $host_os in 14463 solaris2.[0-5] | solaris2.[0-5].*) ;; 14464 *) 14465 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14466 ;; 14467 esac 14468 fi 14469 ;; 14470 esac 14471 ;; 14472 14473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14474 no_undefined_flag_CXX='$wl-z,text' 14475 archive_cmds_need_lc_CXX=no 14476 hardcode_shlibpath_var_CXX=no 14477 runpath_var='LD_RUN_PATH' 14478 14479 case $cc_basename in 14480 CC*) 14481 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14482 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14483 ;; 14484 *) 14485 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14486 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14487 ;; 14488 esac 14489 ;; 14490 14491 sysv5* | sco3.2v5* | sco5v6*) 14492 # Note: We CANNOT use -z defs as we might desire, because we do not 14493 # link with -lc, and that would cause any symbols used from libc to 14494 # always be unresolved, which means just about no library would 14495 # ever link correctly. If we're not using GNU ld we use -z text 14496 # though, which does catch some bad symbols but isn't as heavy-handed 14497 # as -z defs. 14498 no_undefined_flag_CXX='$wl-z,text' 14499 allow_undefined_flag_CXX='$wl-z,nodefs' 14500 archive_cmds_need_lc_CXX=no 14501 hardcode_shlibpath_var_CXX=no 14502 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14503 hardcode_libdir_separator_CXX=':' 14504 link_all_deplibs_CXX=yes 14505 export_dynamic_flag_spec_CXX='$wl-Bexport' 14506 runpath_var='LD_RUN_PATH' 14507 14508 case $cc_basename in 14509 CC*) 14510 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14511 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14512 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14513 '"$old_archive_cmds_CXX" 14514 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14515 '"$reload_cmds_CXX" 14516 ;; 14517 *) 14518 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14519 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14520 ;; 14521 esac 14522 ;; 14523 14524 tandem*) 14525 case $cc_basename in 14526 NCC*) 14527 # NonStop-UX NCC 3.20 14528 # FIXME: insert proper C++ library support 14529 ld_shlibs_CXX=no 14530 ;; 14531 *) 14532 # FIXME: insert proper C++ library support 14533 ld_shlibs_CXX=no 14534 ;; 14535 esac 14536 ;; 14537 14538 vxworks*) 14539 # FIXME: insert proper C++ library support 14540 ld_shlibs_CXX=no 14541 ;; 14542 14543 *) 14544 # FIXME: insert proper C++ library support 14545 ld_shlibs_CXX=no 14546 ;; 14547 esac 14548 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14550 $as_echo "$ld_shlibs_CXX" >&6; } 14551 test no = "$ld_shlibs_CXX" && can_build_shared=no 14552 14553 GCC_CXX=$GXX 14554 LD_CXX=$LD 14555 14556 ## CAVEAT EMPTOR: 14557 ## There is no encapsulation within the following macros, do not change 14558 ## the running order or otherwise move them around unless you know exactly 14559 ## what you are doing... 14560 # Dependencies to place before and after the object being linked: 14561 predep_objects_CXX= 14562 postdep_objects_CXX= 14563 predeps_CXX= 14564 postdeps_CXX= 14565 compiler_lib_search_path_CXX= 14566 14567 cat > conftest.$ac_ext <<_LT_EOF 14568 class Foo 14569 { 14570 public: 14571 Foo (void) { a = 0; } 14572 private: 14573 int a; 14574 }; 14575 _LT_EOF 14576 14577 14578 _lt_libdeps_save_CFLAGS=$CFLAGS 14579 case "$CC $CFLAGS " in #( 14580 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14581 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14582 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14583 esac 14584 14585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14586 (eval $ac_compile) 2>&5 14587 ac_status=$? 14588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14589 test $ac_status = 0; }; then 14590 # Parse the compiler output and extract the necessary 14591 # objects, libraries and library flags. 14592 14593 # Sentinel used to keep track of whether or not we are before 14594 # the conftest object file. 14595 pre_test_object_deps_done=no 14596 14597 for p in `eval "$output_verbose_link_cmd"`; do 14598 case $prev$p in 14599 14600 -L* | -R* | -l*) 14601 # Some compilers place space between "-{L,R}" and the path. 14602 # Remove the space. 14603 if test x-L = "$p" || 14604 test x-R = "$p"; then 14605 prev=$p 14606 continue 14607 fi 14608 14609 # Expand the sysroot to ease extracting the directories later. 14610 if test -z "$prev"; then 14611 case $p in 14612 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14613 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14614 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14615 esac 14616 fi 14617 case $p in 14618 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14619 esac 14620 if test no = "$pre_test_object_deps_done"; then 14621 case $prev in 14622 -L | -R) 14623 # Internal compiler library paths should come after those 14624 # provided the user. The postdeps already come after the 14625 # user supplied libs so there is no need to process them. 14626 if test -z "$compiler_lib_search_path_CXX"; then 14627 compiler_lib_search_path_CXX=$prev$p 14628 else 14629 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14630 fi 14631 ;; 14632 # The "-l" case would never come before the object being 14633 # linked, so don't bother handling this case. 14634 esac 14635 else 14636 if test -z "$postdeps_CXX"; then 14637 postdeps_CXX=$prev$p 14638 else 14639 postdeps_CXX="${postdeps_CXX} $prev$p" 14640 fi 14641 fi 14642 prev= 14643 ;; 14644 14645 *.lto.$objext) ;; # Ignore GCC LTO objects 14646 *.$objext) 14647 # This assumes that the test object file only shows up 14648 # once in the compiler output. 14649 if test "$p" = "conftest.$objext"; then 14650 pre_test_object_deps_done=yes 14651 continue 14652 fi 14653 14654 if test no = "$pre_test_object_deps_done"; then 14655 if test -z "$predep_objects_CXX"; then 14656 predep_objects_CXX=$p 14657 else 14658 predep_objects_CXX="$predep_objects_CXX $p" 14659 fi 14660 else 14661 if test -z "$postdep_objects_CXX"; then 14662 postdep_objects_CXX=$p 14663 else 14664 postdep_objects_CXX="$postdep_objects_CXX $p" 14665 fi 14666 fi 14667 ;; 14668 14669 *) ;; # Ignore the rest. 14670 14671 esac 14672 done 14673 14674 # Clean up. 14675 rm -f a.out a.exe 14676 else 14677 echo "libtool.m4: error: problem compiling CXX test program" 14678 fi 14679 14680 $RM -f confest.$objext 14681 CFLAGS=$_lt_libdeps_save_CFLAGS 14682 14683 # PORTME: override above test on systems where it is broken 14684 case $host_os in 14685 interix[3-9]*) 14686 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14687 # hack all around it, let's just trust "g++" to DTRT. 14688 predep_objects_CXX= 14689 postdep_objects_CXX= 14690 postdeps_CXX= 14691 ;; 14692 esac 14693 14694 14695 case " $postdeps_CXX " in 14696 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 14697 esac 14698 compiler_lib_search_dirs_CXX= 14699 if test -n "${compiler_lib_search_path_CXX}"; then 14700 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14701 fi 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 lt_prog_compiler_wl_CXX= 14734 lt_prog_compiler_pic_CXX= 14735 lt_prog_compiler_static_CXX= 14736 14737 14738 # C++ specific cases for pic, static, wl, etc. 14739 if test yes = "$GXX"; then 14740 lt_prog_compiler_wl_CXX='-Wl,' 14741 lt_prog_compiler_static_CXX='-static' 14742 14743 case $host_os in 14744 aix*) 14745 # All AIX code is PIC. 14746 if test ia64 = "$host_cpu"; then 14747 # AIX 5 now supports IA64 processor 14748 lt_prog_compiler_static_CXX='-Bstatic' 14749 fi 14750 lt_prog_compiler_pic_CXX='-fPIC' 14751 ;; 14752 14753 amigaos*) 14754 case $host_cpu in 14755 powerpc) 14756 # see comment about AmigaOS4 .so support 14757 lt_prog_compiler_pic_CXX='-fPIC' 14758 ;; 14759 m68k) 14760 # FIXME: we need at least 68020 code to build shared libraries, but 14761 # adding the '-m68020' flag to GCC prevents building anything better, 14762 # like '-m68040'. 14763 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14764 ;; 14765 esac 14766 ;; 14767 14768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14769 # PIC is the default for these OSes. 14770 ;; 14771 mingw* | cygwin* | os2* | pw32* | cegcc*) 14772 # This hack is so that the source file can tell whether it is being 14773 # built for inclusion in a dll (and should export symbols for example). 14774 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14775 # (--disable-auto-import) libraries 14776 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14777 case $host_os in 14778 os2*) 14779 lt_prog_compiler_static_CXX='$wl-static' 14780 ;; 14781 esac 14782 ;; 14783 darwin* | rhapsody*) 14784 # PIC is the default on this platform 14785 # Common symbols not allowed in MH_DYLIB files 14786 lt_prog_compiler_pic_CXX='-fno-common' 14787 ;; 14788 *djgpp*) 14789 # DJGPP does not support shared libraries at all 14790 lt_prog_compiler_pic_CXX= 14791 ;; 14792 haiku*) 14793 # PIC is the default for Haiku. 14794 # The "-static" flag exists, but is broken. 14795 lt_prog_compiler_static_CXX= 14796 ;; 14797 interix[3-9]*) 14798 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14799 # Instead, we relocate shared libraries at runtime. 14800 ;; 14801 sysv4*MP*) 14802 if test -d /usr/nec; then 14803 lt_prog_compiler_pic_CXX=-Kconform_pic 14804 fi 14805 ;; 14806 hpux*) 14807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14809 # sets the default TLS model and affects inlining. 14810 case $host_cpu in 14811 hppa*64*) 14812 ;; 14813 *) 14814 lt_prog_compiler_pic_CXX='-fPIC' 14815 ;; 14816 esac 14817 ;; 14818 *qnx* | *nto*) 14819 # QNX uses GNU C++, but need to define -shared option too, otherwise 14820 # it will coredump. 14821 lt_prog_compiler_pic_CXX='-fPIC -shared' 14822 ;; 14823 *) 14824 lt_prog_compiler_pic_CXX='-fPIC' 14825 ;; 14826 esac 14827 else 14828 case $host_os in 14829 aix[4-9]*) 14830 # All AIX code is PIC. 14831 if test ia64 = "$host_cpu"; then 14832 # AIX 5 now supports IA64 processor 14833 lt_prog_compiler_static_CXX='-Bstatic' 14834 else 14835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14836 fi 14837 ;; 14838 chorus*) 14839 case $cc_basename in 14840 cxch68*) 14841 # Green Hills C++ Compiler 14842 # _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" 14843 ;; 14844 esac 14845 ;; 14846 mingw* | cygwin* | os2* | pw32* | cegcc*) 14847 # This hack is so that the source file can tell whether it is being 14848 # built for inclusion in a dll (and should export symbols for example). 14849 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14850 ;; 14851 dgux*) 14852 case $cc_basename in 14853 ec++*) 14854 lt_prog_compiler_pic_CXX='-KPIC' 14855 ;; 14856 ghcx*) 14857 # Green Hills C++ Compiler 14858 lt_prog_compiler_pic_CXX='-pic' 14859 ;; 14860 *) 14861 ;; 14862 esac 14863 ;; 14864 freebsd* | dragonfly*) 14865 # FreeBSD uses GNU C++ 14866 ;; 14867 hpux9* | hpux10* | hpux11*) 14868 case $cc_basename in 14869 CC*) 14870 lt_prog_compiler_wl_CXX='-Wl,' 14871 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14872 if test ia64 != "$host_cpu"; then 14873 lt_prog_compiler_pic_CXX='+Z' 14874 fi 14875 ;; 14876 aCC*) 14877 lt_prog_compiler_wl_CXX='-Wl,' 14878 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14879 case $host_cpu in 14880 hppa*64*|ia64*) 14881 # +Z the default 14882 ;; 14883 *) 14884 lt_prog_compiler_pic_CXX='+Z' 14885 ;; 14886 esac 14887 ;; 14888 *) 14889 ;; 14890 esac 14891 ;; 14892 interix*) 14893 # This is c89, which is MS Visual C++ (no shared libs) 14894 # Anyone wants to do a port? 14895 ;; 14896 irix5* | irix6* | nonstopux*) 14897 case $cc_basename in 14898 CC*) 14899 lt_prog_compiler_wl_CXX='-Wl,' 14900 lt_prog_compiler_static_CXX='-non_shared' 14901 # CC pic flag -KPIC is the default. 14902 ;; 14903 *) 14904 ;; 14905 esac 14906 ;; 14907 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14908 case $cc_basename in 14909 KCC*) 14910 # KAI C++ Compiler 14911 lt_prog_compiler_wl_CXX='--backend -Wl,' 14912 lt_prog_compiler_pic_CXX='-fPIC' 14913 ;; 14914 ecpc* ) 14915 # old Intel C++ for x86_64, which still supported -KPIC. 14916 lt_prog_compiler_wl_CXX='-Wl,' 14917 lt_prog_compiler_pic_CXX='-KPIC' 14918 lt_prog_compiler_static_CXX='-static' 14919 ;; 14920 icpc* ) 14921 # Intel C++, used to be incompatible with GCC. 14922 # ICC 10 doesn't accept -KPIC any more. 14923 lt_prog_compiler_wl_CXX='-Wl,' 14924 lt_prog_compiler_pic_CXX='-fPIC' 14925 lt_prog_compiler_static_CXX='-static' 14926 ;; 14927 pgCC* | pgcpp*) 14928 # Portland Group C++ compiler 14929 lt_prog_compiler_wl_CXX='-Wl,' 14930 lt_prog_compiler_pic_CXX='-fpic' 14931 lt_prog_compiler_static_CXX='-Bstatic' 14932 ;; 14933 cxx*) 14934 # Compaq C++ 14935 # Make sure the PIC flag is empty. It appears that all Alpha 14936 # Linux and Compaq Tru64 Unix objects are PIC. 14937 lt_prog_compiler_pic_CXX= 14938 lt_prog_compiler_static_CXX='-non_shared' 14939 ;; 14940 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14941 # IBM XL 8.0, 9.0 on PPC and BlueGene 14942 lt_prog_compiler_wl_CXX='-Wl,' 14943 lt_prog_compiler_pic_CXX='-qpic' 14944 lt_prog_compiler_static_CXX='-qstaticlink' 14945 ;; 14946 *) 14947 case `$CC -V 2>&1 | sed 5q` in 14948 *Sun\ C*) 14949 # Sun C++ 5.9 14950 lt_prog_compiler_pic_CXX='-KPIC' 14951 lt_prog_compiler_static_CXX='-Bstatic' 14952 lt_prog_compiler_wl_CXX='-Qoption ld ' 14953 ;; 14954 esac 14955 ;; 14956 esac 14957 ;; 14958 lynxos*) 14959 ;; 14960 m88k*) 14961 ;; 14962 mvs*) 14963 case $cc_basename in 14964 cxx*) 14965 lt_prog_compiler_pic_CXX='-W c,exportall' 14966 ;; 14967 *) 14968 ;; 14969 esac 14970 ;; 14971 netbsd*) 14972 ;; 14973 *qnx* | *nto*) 14974 # QNX uses GNU C++, but need to define -shared option too, otherwise 14975 # it will coredump. 14976 lt_prog_compiler_pic_CXX='-fPIC -shared' 14977 ;; 14978 osf3* | osf4* | osf5*) 14979 case $cc_basename in 14980 KCC*) 14981 lt_prog_compiler_wl_CXX='--backend -Wl,' 14982 ;; 14983 RCC*) 14984 # Rational C++ 2.4.1 14985 lt_prog_compiler_pic_CXX='-pic' 14986 ;; 14987 cxx*) 14988 # Digital/Compaq C++ 14989 lt_prog_compiler_wl_CXX='-Wl,' 14990 # Make sure the PIC flag is empty. It appears that all Alpha 14991 # Linux and Compaq Tru64 Unix objects are PIC. 14992 lt_prog_compiler_pic_CXX= 14993 lt_prog_compiler_static_CXX='-non_shared' 14994 ;; 14995 *) 14996 ;; 14997 esac 14998 ;; 14999 psos*) 15000 ;; 15001 solaris*) 15002 case $cc_basename in 15003 CC* | sunCC*) 15004 # Sun C++ 4.2, 5.x and Centerline C++ 15005 lt_prog_compiler_pic_CXX='-KPIC' 15006 lt_prog_compiler_static_CXX='-Bstatic' 15007 lt_prog_compiler_wl_CXX='-Qoption ld ' 15008 ;; 15009 gcx*) 15010 # Green Hills C++ Compiler 15011 lt_prog_compiler_pic_CXX='-PIC' 15012 ;; 15013 *) 15014 ;; 15015 esac 15016 ;; 15017 sunos4*) 15018 case $cc_basename in 15019 CC*) 15020 # Sun C++ 4.x 15021 lt_prog_compiler_pic_CXX='-pic' 15022 lt_prog_compiler_static_CXX='-Bstatic' 15023 ;; 15024 lcc*) 15025 # Lucid 15026 lt_prog_compiler_pic_CXX='-pic' 15027 ;; 15028 *) 15029 ;; 15030 esac 15031 ;; 15032 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15033 case $cc_basename in 15034 CC*) 15035 lt_prog_compiler_wl_CXX='-Wl,' 15036 lt_prog_compiler_pic_CXX='-KPIC' 15037 lt_prog_compiler_static_CXX='-Bstatic' 15038 ;; 15039 esac 15040 ;; 15041 tandem*) 15042 case $cc_basename in 15043 NCC*) 15044 # NonStop-UX NCC 3.20 15045 lt_prog_compiler_pic_CXX='-KPIC' 15046 ;; 15047 *) 15048 ;; 15049 esac 15050 ;; 15051 vxworks*) 15052 ;; 15053 *) 15054 lt_prog_compiler_can_build_shared_CXX=no 15055 ;; 15056 esac 15057 fi 15058 15059 case $host_os in 15060 # For platforms that do not support PIC, -DPIC is meaningless: 15061 *djgpp*) 15062 lt_prog_compiler_pic_CXX= 15063 ;; 15064 *) 15065 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15066 ;; 15067 esac 15068 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15070 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15071 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073 else 15074 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15075 fi 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15077 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15078 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15079 15080 # 15081 # Check to make sure the PIC flag actually works. 15082 # 15083 if test -n "$lt_prog_compiler_pic_CXX"; then 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15085 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15086 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15087 $as_echo_n "(cached) " >&6 15088 else 15089 lt_cv_prog_compiler_pic_works_CXX=no 15090 ac_outfile=conftest.$ac_objext 15091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15092 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15093 # Insert the option either (1) after the last *FLAGS variable, or 15094 # (2) before a word containing "conftest.", or (3) at the end. 15095 # Note that $ac_compile itself does not contain backslashes and begins 15096 # with a dollar sign (not a hyphen), so the echo should work correctly. 15097 # The option is referenced via a variable to avoid confusing sed. 15098 lt_compile=`echo "$ac_compile" | $SED \ 15099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15101 -e 's:$: $lt_compiler_flag:'` 15102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15103 (eval "$lt_compile" 2>conftest.err) 15104 ac_status=$? 15105 cat conftest.err >&5 15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15107 if (exit $ac_status) && test -s "$ac_outfile"; then 15108 # The compiler can only warn and ignore the option if not recognized 15109 # So say no if there are warnings other than the usual output. 15110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15113 lt_cv_prog_compiler_pic_works_CXX=yes 15114 fi 15115 fi 15116 $RM conftest* 15117 15118 fi 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15120 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15121 15122 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15123 case $lt_prog_compiler_pic_CXX in 15124 "" | " "*) ;; 15125 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15126 esac 15127 else 15128 lt_prog_compiler_pic_CXX= 15129 lt_prog_compiler_can_build_shared_CXX=no 15130 fi 15131 15132 fi 15133 15134 15135 15136 15137 15138 # 15139 # Check to make sure the static flag actually works. 15140 # 15141 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15143 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15144 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15145 $as_echo_n "(cached) " >&6 15146 else 15147 lt_cv_prog_compiler_static_works_CXX=no 15148 save_LDFLAGS=$LDFLAGS 15149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15150 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15152 # The linker can only warn and ignore the option if not recognized 15153 # So say no if there are warnings 15154 if test -s conftest.err; then 15155 # Append any errors to the config.log. 15156 cat conftest.err 1>&5 15157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15159 if diff conftest.exp conftest.er2 >/dev/null; then 15160 lt_cv_prog_compiler_static_works_CXX=yes 15161 fi 15162 else 15163 lt_cv_prog_compiler_static_works_CXX=yes 15164 fi 15165 fi 15166 $RM -r conftest* 15167 LDFLAGS=$save_LDFLAGS 15168 15169 fi 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15171 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15172 15173 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15174 : 15175 else 15176 lt_prog_compiler_static_CXX= 15177 fi 15178 15179 15180 15181 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15184 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15185 $as_echo_n "(cached) " >&6 15186 else 15187 lt_cv_prog_compiler_c_o_CXX=no 15188 $RM -r conftest 2>/dev/null 15189 mkdir conftest 15190 cd conftest 15191 mkdir out 15192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15193 15194 lt_compiler_flag="-o out/conftest2.$ac_objext" 15195 # Insert the option either (1) after the last *FLAGS variable, or 15196 # (2) before a word containing "conftest.", or (3) at the end. 15197 # Note that $ac_compile itself does not contain backslashes and begins 15198 # with a dollar sign (not a hyphen), so the echo should work correctly. 15199 lt_compile=`echo "$ac_compile" | $SED \ 15200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15202 -e 's:$: $lt_compiler_flag:'` 15203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15204 (eval "$lt_compile" 2>out/conftest.err) 15205 ac_status=$? 15206 cat out/conftest.err >&5 15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15208 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15209 then 15210 # The compiler can only warn and ignore the option if not recognized 15211 # So say no if there are warnings 15212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15215 lt_cv_prog_compiler_c_o_CXX=yes 15216 fi 15217 fi 15218 chmod u+w . 2>&5 15219 $RM conftest* 15220 # SGI C++ compiler will create directory out/ii_files/ for 15221 # template instantiation 15222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15223 $RM out/* && rmdir out 15224 cd .. 15225 $RM -r conftest 15226 $RM conftest* 15227 15228 fi 15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15230 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15231 15232 15233 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15236 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15237 $as_echo_n "(cached) " >&6 15238 else 15239 lt_cv_prog_compiler_c_o_CXX=no 15240 $RM -r conftest 2>/dev/null 15241 mkdir conftest 15242 cd conftest 15243 mkdir out 15244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15245 15246 lt_compiler_flag="-o out/conftest2.$ac_objext" 15247 # Insert the option either (1) after the last *FLAGS variable, or 15248 # (2) before a word containing "conftest.", or (3) at the end. 15249 # Note that $ac_compile itself does not contain backslashes and begins 15250 # with a dollar sign (not a hyphen), so the echo should work correctly. 15251 lt_compile=`echo "$ac_compile" | $SED \ 15252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15254 -e 's:$: $lt_compiler_flag:'` 15255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15256 (eval "$lt_compile" 2>out/conftest.err) 15257 ac_status=$? 15258 cat out/conftest.err >&5 15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15260 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15261 then 15262 # The compiler can only warn and ignore the option if not recognized 15263 # So say no if there are warnings 15264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15267 lt_cv_prog_compiler_c_o_CXX=yes 15268 fi 15269 fi 15270 chmod u+w . 2>&5 15271 $RM conftest* 15272 # SGI C++ compiler will create directory out/ii_files/ for 15273 # template instantiation 15274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15275 $RM out/* && rmdir out 15276 cd .. 15277 $RM -r conftest 15278 $RM conftest* 15279 15280 fi 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15282 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15283 15284 15285 15286 15287 hard_links=nottested 15288 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15289 # do not overwrite the value of need_locks provided by the user 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15291 $as_echo_n "checking if we can lock with hard links... " >&6; } 15292 hard_links=yes 15293 $RM conftest* 15294 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15295 touch conftest.a 15296 ln conftest.a conftest.b 2>&5 || hard_links=no 15297 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15299 $as_echo "$hard_links" >&6; } 15300 if test no = "$hard_links"; then 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15302 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15303 need_locks=warn 15304 fi 15305 else 15306 need_locks=no 15307 fi 15308 15309 15310 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15312 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15313 15314 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15315 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15316 case $host_os in 15317 aix[4-9]*) 15318 # If we're using GNU nm, then we don't want the "-C" option. 15319 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15320 # Without the "-l" option, or with the "-B" option, AIX nm treats 15321 # weak defined symbols like other global defined symbols, whereas 15322 # GNU nm marks them as "W". 15323 # While the 'weak' keyword is ignored in the Export File, we need 15324 # it in the Import File for the 'aix-soname' feature, so we have 15325 # to replace the "-B" option with "-P" for AIX nm. 15326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15327 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' 15328 else 15329 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' 15330 fi 15331 ;; 15332 pw32*) 15333 export_symbols_cmds_CXX=$ltdll_cmds 15334 ;; 15335 cygwin* | mingw* | cegcc*) 15336 case $cc_basename in 15337 cl*) 15338 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15339 ;; 15340 *) 15341 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' 15342 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15343 ;; 15344 esac 15345 ;; 15346 *) 15347 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15348 ;; 15349 esac 15350 15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15352 $as_echo "$ld_shlibs_CXX" >&6; } 15353 test no = "$ld_shlibs_CXX" && can_build_shared=no 15354 15355 with_gnu_ld_CXX=$with_gnu_ld 15356 15357 15358 15359 15360 15361 15362 # 15363 # Do we need to explicitly link libc? 15364 # 15365 case "x$archive_cmds_need_lc_CXX" in 15366 x|xyes) 15367 # Assume -lc should be added 15368 archive_cmds_need_lc_CXX=yes 15369 15370 if test yes,yes = "$GCC,$enable_shared"; then 15371 case $archive_cmds_CXX in 15372 *'~'*) 15373 # FIXME: we may have to deal with multi-command sequences. 15374 ;; 15375 '$CC '*) 15376 # Test whether the compiler implicitly links with -lc since on some 15377 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15378 # to ld, don't add -lc before -lgcc. 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15380 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15381 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15382 $as_echo_n "(cached) " >&6 15383 else 15384 $RM conftest* 15385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15386 15387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15388 (eval $ac_compile) 2>&5 15389 ac_status=$? 15390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15391 test $ac_status = 0; } 2>conftest.err; then 15392 soname=conftest 15393 lib=conftest 15394 libobjs=conftest.$ac_objext 15395 deplibs= 15396 wl=$lt_prog_compiler_wl_CXX 15397 pic_flag=$lt_prog_compiler_pic_CXX 15398 compiler_flags=-v 15399 linker_flags=-v 15400 verstring= 15401 output_objdir=. 15402 libname=conftest 15403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15404 allow_undefined_flag_CXX= 15405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15407 ac_status=$? 15408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15409 test $ac_status = 0; } 15410 then 15411 lt_cv_archive_cmds_need_lc_CXX=no 15412 else 15413 lt_cv_archive_cmds_need_lc_CXX=yes 15414 fi 15415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15416 else 15417 cat conftest.err 1>&5 15418 fi 15419 $RM conftest* 15420 15421 fi 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15423 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15424 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15425 ;; 15426 esac 15427 fi 15428 ;; 15429 esac 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15493 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15494 15495 library_names_spec= 15496 libname_spec='lib$name' 15497 soname_spec= 15498 shrext_cmds=.so 15499 postinstall_cmds= 15500 postuninstall_cmds= 15501 finish_cmds= 15502 finish_eval= 15503 shlibpath_var= 15504 shlibpath_overrides_runpath=unknown 15505 version_type=none 15506 dynamic_linker="$host_os ld.so" 15507 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15508 need_lib_prefix=unknown 15509 hardcode_into_libs=no 15510 15511 # when you set need_version to no, make sure it does not cause -set_version 15512 # flags to be left without arguments 15513 need_version=unknown 15514 15515 15516 15517 case $host_os in 15518 aix3*) 15519 version_type=linux # correct to gnu/linux during the next big refactor 15520 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15521 shlibpath_var=LIBPATH 15522 15523 # AIX 3 has no versioning support, so we append a major version to the name. 15524 soname_spec='$libname$release$shared_ext$major' 15525 ;; 15526 15527 aix[4-9]*) 15528 version_type=linux # correct to gnu/linux during the next big refactor 15529 need_lib_prefix=no 15530 need_version=no 15531 hardcode_into_libs=yes 15532 if test ia64 = "$host_cpu"; then 15533 # AIX 5 supports IA64 15534 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15535 shlibpath_var=LD_LIBRARY_PATH 15536 else 15537 # With GCC up to 2.95.x, collect2 would create an import file 15538 # for dependence libraries. The import file would start with 15539 # the line '#! .'. This would cause the generated library to 15540 # depend on '.', always an invalid library. This was fixed in 15541 # development snapshots of GCC prior to 3.0. 15542 case $host_os in 15543 aix4 | aix4.[01] | aix4.[01].*) 15544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15545 echo ' yes ' 15546 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15547 : 15548 else 15549 can_build_shared=no 15550 fi 15551 ;; 15552 esac 15553 # Using Import Files as archive members, it is possible to support 15554 # filename-based versioning of shared library archives on AIX. While 15555 # this would work for both with and without runtime linking, it will 15556 # prevent static linking of such archives. So we do filename-based 15557 # shared library versioning with .so extension only, which is used 15558 # when both runtime linking and shared linking is enabled. 15559 # Unfortunately, runtime linking may impact performance, so we do 15560 # not want this to be the default eventually. Also, we use the 15561 # versioned .so libs for executables only if there is the -brtl 15562 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15563 # To allow for filename-based versioning support, we need to create 15564 # libNAME.so.V as an archive file, containing: 15565 # *) an Import File, referring to the versioned filename of the 15566 # archive as well as the shared archive member, telling the 15567 # bitwidth (32 or 64) of that shared object, and providing the 15568 # list of exported symbols of that shared object, eventually 15569 # decorated with the 'weak' keyword 15570 # *) the shared object with the F_LOADONLY flag set, to really avoid 15571 # it being seen by the linker. 15572 # At run time we better use the real file rather than another symlink, 15573 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15574 15575 case $with_aix_soname,$aix_use_runtimelinking in 15576 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15577 # soname into executable. Probably we can add versioning support to 15578 # collect2, so additional links can be useful in future. 15579 aix,yes) # traditional libtool 15580 dynamic_linker='AIX unversionable lib.so' 15581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15582 # instead of lib<name>.a to let people know that these are not 15583 # typical AIX shared libraries. 15584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15585 ;; 15586 aix,no) # traditional AIX only 15587 dynamic_linker='AIX lib.a(lib.so.V)' 15588 # We preserve .a as extension for shared libraries through AIX4.2 15589 # and later when we are not doing run time linking. 15590 library_names_spec='$libname$release.a $libname.a' 15591 soname_spec='$libname$release$shared_ext$major' 15592 ;; 15593 svr4,*) # full svr4 only 15594 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15595 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15596 # We do not specify a path in Import Files, so LIBPATH fires. 15597 shlibpath_overrides_runpath=yes 15598 ;; 15599 *,yes) # both, prefer svr4 15600 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15601 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15602 # unpreferred sharedlib libNAME.a needs extra handling 15603 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"' 15604 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"' 15605 # We do not specify a path in Import Files, so LIBPATH fires. 15606 shlibpath_overrides_runpath=yes 15607 ;; 15608 *,no) # both, prefer aix 15609 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15610 library_names_spec='$libname$release.a $libname.a' 15611 soname_spec='$libname$release$shared_ext$major' 15612 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15613 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)' 15614 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"' 15615 ;; 15616 esac 15617 shlibpath_var=LIBPATH 15618 fi 15619 ;; 15620 15621 amigaos*) 15622 case $host_cpu in 15623 powerpc) 15624 # Since July 2007 AmigaOS4 officially supports .so libraries. 15625 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15627 ;; 15628 m68k) 15629 library_names_spec='$libname.ixlibrary $libname.a' 15630 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15631 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' 15632 ;; 15633 esac 15634 ;; 15635 15636 beos*) 15637 library_names_spec='$libname$shared_ext' 15638 dynamic_linker="$host_os ld.so" 15639 shlibpath_var=LIBRARY_PATH 15640 ;; 15641 15642 bsdi[45]*) 15643 version_type=linux # correct to gnu/linux during the next big refactor 15644 need_version=no 15645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15646 soname_spec='$libname$release$shared_ext$major' 15647 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15648 shlibpath_var=LD_LIBRARY_PATH 15649 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15650 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15651 # the default ld.so.conf also contains /usr/contrib/lib and 15652 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15653 # libtool to hard-code these into programs 15654 ;; 15655 15656 cygwin* | mingw* | pw32* | cegcc*) 15657 version_type=windows 15658 shrext_cmds=.dll 15659 need_version=no 15660 need_lib_prefix=no 15661 15662 case $GCC,$cc_basename in 15663 yes,*) 15664 # gcc 15665 library_names_spec='$libname.dll.a' 15666 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15667 postinstall_cmds='base_file=`basename \$file`~ 15668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15669 dldir=$destdir/`dirname \$dlpath`~ 15670 test -d \$dldir || mkdir -p \$dldir~ 15671 $install_prog $dir/$dlname \$dldir/$dlname~ 15672 chmod a+x \$dldir/$dlname~ 15673 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15674 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15675 fi' 15676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15677 dlpath=$dir/\$dldll~ 15678 $RM \$dlpath' 15679 shlibpath_overrides_runpath=yes 15680 15681 case $host_os in 15682 cygwin*) 15683 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15684 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15685 15686 ;; 15687 mingw* | cegcc*) 15688 # MinGW DLLs use traditional 'lib' prefix 15689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15690 ;; 15691 pw32*) 15692 # pw32 DLLs use 'pw' prefix rather than 'lib' 15693 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15694 ;; 15695 esac 15696 dynamic_linker='Win32 ld.exe' 15697 ;; 15698 15699 *,cl*) 15700 # Native MSVC 15701 libname_spec='$name' 15702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15703 library_names_spec='$libname.dll.lib' 15704 15705 case $build_os in 15706 mingw*) 15707 sys_lib_search_path_spec= 15708 lt_save_ifs=$IFS 15709 IFS=';' 15710 for lt_path in $LIB 15711 do 15712 IFS=$lt_save_ifs 15713 # Let DOS variable expansion print the short 8.3 style file name. 15714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15716 done 15717 IFS=$lt_save_ifs 15718 # Convert to MSYS style. 15719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15720 ;; 15721 cygwin*) 15722 # Convert to unix form, then to dos form, then back to unix form 15723 # but this time dos style (no spaces!) so that the unix form looks 15724 # like /cygdrive/c/PROGRA~1:/cygdr... 15725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15728 ;; 15729 *) 15730 sys_lib_search_path_spec=$LIB 15731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15732 # It is most probably a Windows format PATH. 15733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15734 else 15735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15736 fi 15737 # FIXME: find the short name or the path components, as spaces are 15738 # common. (e.g. "Program Files" -> "PROGRA~1") 15739 ;; 15740 esac 15741 15742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15743 postinstall_cmds='base_file=`basename \$file`~ 15744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15745 dldir=$destdir/`dirname \$dlpath`~ 15746 test -d \$dldir || mkdir -p \$dldir~ 15747 $install_prog $dir/$dlname \$dldir/$dlname' 15748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15749 dlpath=$dir/\$dldll~ 15750 $RM \$dlpath' 15751 shlibpath_overrides_runpath=yes 15752 dynamic_linker='Win32 link.exe' 15753 ;; 15754 15755 *) 15756 # Assume MSVC wrapper 15757 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15758 dynamic_linker='Win32 ld.exe' 15759 ;; 15760 esac 15761 # FIXME: first we should search . and the directory the executable is in 15762 shlibpath_var=PATH 15763 ;; 15764 15765 darwin* | rhapsody*) 15766 dynamic_linker="$host_os dyld" 15767 version_type=darwin 15768 need_lib_prefix=no 15769 need_version=no 15770 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 15771 soname_spec='$libname$release$major$shared_ext' 15772 shlibpath_overrides_runpath=yes 15773 shlibpath_var=DYLD_LIBRARY_PATH 15774 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 15775 15776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15777 ;; 15778 15779 dgux*) 15780 version_type=linux # correct to gnu/linux during the next big refactor 15781 need_lib_prefix=no 15782 need_version=no 15783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15784 soname_spec='$libname$release$shared_ext$major' 15785 shlibpath_var=LD_LIBRARY_PATH 15786 ;; 15787 15788 freebsd* | dragonfly*) 15789 # DragonFly does not have aout. When/if they implement a new 15790 # versioning mechanism, adjust this. 15791 if test -x /usr/bin/objformat; then 15792 objformat=`/usr/bin/objformat` 15793 else 15794 case $host_os in 15795 freebsd[23].*) objformat=aout ;; 15796 *) objformat=elf ;; 15797 esac 15798 fi 15799 # Handle Gentoo/FreeBSD as it was Linux 15800 case $host_vendor in 15801 gentoo) 15802 version_type=linux ;; 15803 *) 15804 version_type=freebsd-$objformat ;; 15805 esac 15806 15807 case $version_type in 15808 freebsd-elf*) 15809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15810 soname_spec='$libname$release$shared_ext$major' 15811 need_version=no 15812 need_lib_prefix=no 15813 ;; 15814 freebsd-*) 15815 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15816 need_version=yes 15817 ;; 15818 linux) 15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15820 soname_spec='${libname}${release}${shared_ext}$major' 15821 need_lib_prefix=no 15822 need_version=no 15823 ;; 15824 esac 15825 shlibpath_var=LD_LIBRARY_PATH 15826 case $host_os in 15827 freebsd2.*) 15828 shlibpath_overrides_runpath=yes 15829 ;; 15830 freebsd3.[01]* | freebsdelf3.[01]*) 15831 shlibpath_overrides_runpath=yes 15832 hardcode_into_libs=yes 15833 ;; 15834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15836 shlibpath_overrides_runpath=no 15837 hardcode_into_libs=yes 15838 ;; 15839 *) # from 4.6 on, and DragonFly 15840 shlibpath_overrides_runpath=yes 15841 hardcode_into_libs=yes 15842 ;; 15843 esac 15844 ;; 15845 15846 haiku*) 15847 version_type=linux # correct to gnu/linux during the next big refactor 15848 need_lib_prefix=no 15849 need_version=no 15850 dynamic_linker="$host_os runtime_loader" 15851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15852 soname_spec='$libname$release$shared_ext$major' 15853 shlibpath_var=LIBRARY_PATH 15854 shlibpath_overrides_runpath=no 15855 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15856 hardcode_into_libs=yes 15857 ;; 15858 15859 hpux9* | hpux10* | hpux11*) 15860 # Give a soname corresponding to the major version so that dld.sl refuses to 15861 # link against other versions. 15862 version_type=sunos 15863 need_lib_prefix=no 15864 need_version=no 15865 case $host_cpu in 15866 ia64*) 15867 shrext_cmds='.so' 15868 hardcode_into_libs=yes 15869 dynamic_linker="$host_os dld.so" 15870 shlibpath_var=LD_LIBRARY_PATH 15871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15873 soname_spec='$libname$release$shared_ext$major' 15874 if test 32 = "$HPUX_IA64_MODE"; then 15875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15876 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15877 else 15878 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15879 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15880 fi 15881 ;; 15882 hppa*64*) 15883 shrext_cmds='.sl' 15884 hardcode_into_libs=yes 15885 dynamic_linker="$host_os dld.sl" 15886 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15889 soname_spec='$libname$release$shared_ext$major' 15890 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15892 ;; 15893 *) 15894 shrext_cmds='.sl' 15895 dynamic_linker="$host_os dld.sl" 15896 shlibpath_var=SHLIB_PATH 15897 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15899 soname_spec='$libname$release$shared_ext$major' 15900 ;; 15901 esac 15902 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15903 postinstall_cmds='chmod 555 $lib' 15904 # or fails outright, so override atomically: 15905 install_override_mode=555 15906 ;; 15907 15908 interix[3-9]*) 15909 version_type=linux # correct to gnu/linux during the next big refactor 15910 need_lib_prefix=no 15911 need_version=no 15912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15913 soname_spec='$libname$release$shared_ext$major' 15914 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15915 shlibpath_var=LD_LIBRARY_PATH 15916 shlibpath_overrides_runpath=no 15917 hardcode_into_libs=yes 15918 ;; 15919 15920 irix5* | irix6* | nonstopux*) 15921 case $host_os in 15922 nonstopux*) version_type=nonstopux ;; 15923 *) 15924 if test yes = "$lt_cv_prog_gnu_ld"; then 15925 version_type=linux # correct to gnu/linux during the next big refactor 15926 else 15927 version_type=irix 15928 fi ;; 15929 esac 15930 need_lib_prefix=no 15931 need_version=no 15932 soname_spec='$libname$release$shared_ext$major' 15933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15934 case $host_os in 15935 irix5* | nonstopux*) 15936 libsuff= shlibsuff= 15937 ;; 15938 *) 15939 case $LD in # libtool.m4 will add one of these switches to LD 15940 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15941 libsuff= shlibsuff= libmagic=32-bit;; 15942 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15943 libsuff=32 shlibsuff=N32 libmagic=N32;; 15944 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15945 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15946 *) libsuff= shlibsuff= libmagic=never-match;; 15947 esac 15948 ;; 15949 esac 15950 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15951 shlibpath_overrides_runpath=no 15952 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15953 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15954 hardcode_into_libs=yes 15955 ;; 15956 15957 # No shared lib support for Linux oldld, aout, or coff. 15958 linux*oldld* | linux*aout* | linux*coff*) 15959 dynamic_linker=no 15960 ;; 15961 15962 linux*android*) 15963 version_type=none # Android doesn't support versioned libraries. 15964 need_lib_prefix=no 15965 need_version=no 15966 library_names_spec='$libname$release$shared_ext' 15967 soname_spec='$libname$release$shared_ext' 15968 finish_cmds= 15969 shlibpath_var=LD_LIBRARY_PATH 15970 shlibpath_overrides_runpath=yes 15971 15972 # This implies no fast_install, which is unacceptable. 15973 # Some rework will be needed to allow for fast_install 15974 # before this can be enabled. 15975 hardcode_into_libs=yes 15976 15977 dynamic_linker='Android linker' 15978 # Don't embed -rpath directories since the linker doesn't support them. 15979 hardcode_libdir_flag_spec_CXX='-L$libdir' 15980 ;; 15981 15982 # This must be glibc/ELF. 15983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15984 version_type=linux # correct to gnu/linux during the next big refactor 15985 need_lib_prefix=no 15986 need_version=no 15987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15988 soname_spec='$libname$release$shared_ext$major' 15989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15990 shlibpath_var=LD_LIBRARY_PATH 15991 shlibpath_overrides_runpath=no 15992 15993 # Some binutils ld are patched to set DT_RUNPATH 15994 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15995 $as_echo_n "(cached) " >&6 15996 else 15997 lt_cv_shlibpath_overrides_runpath=no 15998 save_LDFLAGS=$LDFLAGS 15999 save_libdir=$libdir 16000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16003 /* end confdefs.h. */ 16004 16005 int 16006 main () 16007 { 16008 16009 ; 16010 return 0; 16011 } 16012 _ACEOF 16013 if ac_fn_cxx_try_link "$LINENO"; then : 16014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16015 lt_cv_shlibpath_overrides_runpath=yes 16016 fi 16017 fi 16018 rm -f core conftest.err conftest.$ac_objext \ 16019 conftest$ac_exeext conftest.$ac_ext 16020 LDFLAGS=$save_LDFLAGS 16021 libdir=$save_libdir 16022 16023 fi 16024 16025 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16026 16027 # This implies no fast_install, which is unacceptable. 16028 # Some rework will be needed to allow for fast_install 16029 # before this can be enabled. 16030 hardcode_into_libs=yes 16031 16032 # Ideally, we could use ldconfig to report *all* directores which are 16033 # searched for libraries, however this is still not possible. Aside from not 16034 # being certain /sbin/ldconfig is available, command 16035 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16036 # even though it is searched at run-time. Try to do the best guess by 16037 # appending ld.so.conf contents (and includes) to the search path. 16038 if test -f /etc/ld.so.conf; then 16039 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' ' '` 16040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16041 fi 16042 16043 # We used to test for /lib/ld.so.1 and disable shared libraries on 16044 # powerpc, because MkLinux only supported shared libraries with the 16045 # GNU dynamic linker. Since this was broken with cross compilers, 16046 # most powerpc-linux boxes support dynamic linking these days and 16047 # people can always --disable-shared, the test was removed, and we 16048 # assume the GNU/Linux dynamic linker is in use. 16049 dynamic_linker='GNU/Linux ld.so' 16050 ;; 16051 16052 netbsd*) 16053 version_type=sunos 16054 need_lib_prefix=no 16055 need_version=no 16056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16057 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16059 dynamic_linker='NetBSD (a.out) ld.so' 16060 else 16061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16062 soname_spec='$libname$release$shared_ext$major' 16063 dynamic_linker='NetBSD ld.elf_so' 16064 fi 16065 shlibpath_var=LD_LIBRARY_PATH 16066 shlibpath_overrides_runpath=yes 16067 hardcode_into_libs=yes 16068 ;; 16069 16070 newsos6) 16071 version_type=linux # correct to gnu/linux during the next big refactor 16072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16073 shlibpath_var=LD_LIBRARY_PATH 16074 shlibpath_overrides_runpath=yes 16075 ;; 16076 16077 *nto* | *qnx*) 16078 version_type=qnx 16079 need_lib_prefix=no 16080 need_version=no 16081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16082 soname_spec='$libname$release$shared_ext$major' 16083 shlibpath_var=LD_LIBRARY_PATH 16084 shlibpath_overrides_runpath=no 16085 hardcode_into_libs=yes 16086 dynamic_linker='ldqnx.so' 16087 ;; 16088 16089 openbsd* | bitrig*) 16090 version_type=sunos 16091 sys_lib_dlsearch_path_spec=/usr/lib 16092 need_lib_prefix=no 16093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16094 need_version=no 16095 else 16096 need_version=yes 16097 fi 16098 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16100 shlibpath_var=LD_LIBRARY_PATH 16101 shlibpath_overrides_runpath=yes 16102 ;; 16103 16104 os2*) 16105 libname_spec='$name' 16106 version_type=windows 16107 shrext_cmds=.dll 16108 need_version=no 16109 need_lib_prefix=no 16110 # OS/2 can only load a DLL with a base name of 8 characters or less. 16111 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16112 v=$($ECHO $release$versuffix | tr -d .-); 16113 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16114 $ECHO $n$v`$shared_ext' 16115 library_names_spec='${libname}_dll.$libext' 16116 dynamic_linker='OS/2 ld.exe' 16117 shlibpath_var=BEGINLIBPATH 16118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16120 postinstall_cmds='base_file=`basename \$file`~ 16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16122 dldir=$destdir/`dirname \$dlpath`~ 16123 test -d \$dldir || mkdir -p \$dldir~ 16124 $install_prog $dir/$dlname \$dldir/$dlname~ 16125 chmod a+x \$dldir/$dlname~ 16126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16128 fi' 16129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16130 dlpath=$dir/\$dldll~ 16131 $RM \$dlpath' 16132 ;; 16133 16134 osf3* | osf4* | osf5*) 16135 version_type=osf 16136 need_lib_prefix=no 16137 need_version=no 16138 soname_spec='$libname$release$shared_ext$major' 16139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16140 shlibpath_var=LD_LIBRARY_PATH 16141 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16143 ;; 16144 16145 rdos*) 16146 dynamic_linker=no 16147 ;; 16148 16149 solaris*) 16150 version_type=linux # correct to gnu/linux during the next big refactor 16151 need_lib_prefix=no 16152 need_version=no 16153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16154 soname_spec='$libname$release$shared_ext$major' 16155 shlibpath_var=LD_LIBRARY_PATH 16156 shlibpath_overrides_runpath=yes 16157 hardcode_into_libs=yes 16158 # ldd complains unless libraries are executable 16159 postinstall_cmds='chmod +x $lib' 16160 ;; 16161 16162 sunos4*) 16163 version_type=sunos 16164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16166 shlibpath_var=LD_LIBRARY_PATH 16167 shlibpath_overrides_runpath=yes 16168 if test yes = "$with_gnu_ld"; then 16169 need_lib_prefix=no 16170 fi 16171 need_version=yes 16172 ;; 16173 16174 sysv4 | sysv4.3*) 16175 version_type=linux # correct to gnu/linux during the next big refactor 16176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16177 soname_spec='$libname$release$shared_ext$major' 16178 shlibpath_var=LD_LIBRARY_PATH 16179 case $host_vendor in 16180 sni) 16181 shlibpath_overrides_runpath=no 16182 need_lib_prefix=no 16183 runpath_var=LD_RUN_PATH 16184 ;; 16185 siemens) 16186 need_lib_prefix=no 16187 ;; 16188 motorola) 16189 need_lib_prefix=no 16190 need_version=no 16191 shlibpath_overrides_runpath=no 16192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16193 ;; 16194 esac 16195 ;; 16196 16197 sysv4*MP*) 16198 if test -d /usr/nec; then 16199 version_type=linux # correct to gnu/linux during the next big refactor 16200 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16201 soname_spec='$libname$shared_ext.$major' 16202 shlibpath_var=LD_LIBRARY_PATH 16203 fi 16204 ;; 16205 16206 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16207 version_type=sco 16208 need_lib_prefix=no 16209 need_version=no 16210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16211 soname_spec='$libname$release$shared_ext$major' 16212 shlibpath_var=LD_LIBRARY_PATH 16213 shlibpath_overrides_runpath=yes 16214 hardcode_into_libs=yes 16215 if test yes = "$with_gnu_ld"; then 16216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16217 else 16218 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16219 case $host_os in 16220 sco3.2v5*) 16221 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16222 ;; 16223 esac 16224 fi 16225 sys_lib_dlsearch_path_spec='/usr/lib' 16226 ;; 16227 16228 tpf*) 16229 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16230 version_type=linux # correct to gnu/linux during the next big refactor 16231 need_lib_prefix=no 16232 need_version=no 16233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16234 shlibpath_var=LD_LIBRARY_PATH 16235 shlibpath_overrides_runpath=no 16236 hardcode_into_libs=yes 16237 ;; 16238 16239 uts4*) 16240 version_type=linux # correct to gnu/linux during the next big refactor 16241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16242 soname_spec='$libname$release$shared_ext$major' 16243 shlibpath_var=LD_LIBRARY_PATH 16244 ;; 16245 16246 *) 16247 dynamic_linker=no 16248 ;; 16249 esac 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16251 $as_echo "$dynamic_linker" >&6; } 16252 test no = "$dynamic_linker" && can_build_shared=no 16253 16254 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16255 if test yes = "$GCC"; then 16256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16257 fi 16258 16259 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16260 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16261 fi 16262 16263 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16264 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16265 fi 16266 16267 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16268 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16269 16270 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16271 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16272 16273 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16274 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16317 hardcode_action_CXX= 16318 if test -n "$hardcode_libdir_flag_spec_CXX" || 16319 test -n "$runpath_var_CXX" || 16320 test yes = "$hardcode_automatic_CXX"; then 16321 16322 # We can hardcode non-existent directories. 16323 if test no != "$hardcode_direct_CXX" && 16324 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16325 # have to relink, otherwise we might link with an installed library 16326 # when we should be linking with a yet-to-be-installed one 16327 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16328 test no != "$hardcode_minus_L_CXX"; then 16329 # Linking always hardcodes the temporary library directory. 16330 hardcode_action_CXX=relink 16331 else 16332 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16333 hardcode_action_CXX=immediate 16334 fi 16335 else 16336 # We cannot hardcode anything, or else we can only hardcode existing 16337 # directories. 16338 hardcode_action_CXX=unsupported 16339 fi 16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16341 $as_echo "$hardcode_action_CXX" >&6; } 16342 16343 if test relink = "$hardcode_action_CXX" || 16344 test yes = "$inherit_rpath_CXX"; then 16345 # Fast installation is not supported 16346 enable_fast_install=no 16347 elif test yes = "$shlibpath_overrides_runpath" || 16348 test no = "$enable_shared"; then 16349 # Fast installation is not necessary 16350 enable_fast_install=needless 16351 fi 16352 16353 16354 16355 16356 16357 16358 16359 fi # test -n "$compiler" 16360 16361 CC=$lt_save_CC 16362 CFLAGS=$lt_save_CFLAGS 16363 LDCXX=$LD 16364 LD=$lt_save_LD 16365 GCC=$lt_save_GCC 16366 with_gnu_ld=$lt_save_with_gnu_ld 16367 lt_cv_path_LDCXX=$lt_cv_path_LD 16368 lt_cv_path_LD=$lt_save_path_LD 16369 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16370 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16371 fi # test yes != "$_lt_caught_CXX_error" 16372 16373 ac_ext=c 16374 ac_cpp='$CPP $CPPFLAGS' 16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16378 16379 16380 16381 16382 if test "$GCC" = yes ; then 16383 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes" 16384 CFLAGS="$OLDCFLAGS -fexceptions" 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5 16386 $as_echo_n "checking whether $CC accepts -fexceptions... " >&6; } 16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16388 /* end confdefs.h. */ 16389 16390 int 16391 main () 16392 { 16393 16394 ; 16395 return 0; 16396 } 16397 _ACEOF 16398 if ac_fn_c_try_link "$LINENO"; then : 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16400 $as_echo "yes" >&6; } 16401 else 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16403 $as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS" 16404 fi 16405 rm -f core conftest.err conftest.$ac_objext \ 16406 conftest$ac_exeext conftest.$ac_ext 16407 if test "x$CXXFLAGS" = x ; then 16408 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'` 16409 fi 16410 16411 CFLAGS="${CFLAGS} -fno-strict-aliasing" 16412 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" 16413 LDFLAGS="${LDFLAGS} -fno-strict-aliasing" 16414 fi 16415 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16417 $as_echo_n "checking for ANSI C header files... " >&6; } 16418 if ${ac_cv_header_stdc+:} false; then : 16419 $as_echo_n "(cached) " >&6 16420 else 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422 /* end confdefs.h. */ 16423 #include <stdlib.h> 16424 #include <stdarg.h> 16425 #include <string.h> 16426 #include <float.h> 16427 16428 int 16429 main () 16430 { 16431 16432 ; 16433 return 0; 16434 } 16435 _ACEOF 16436 if ac_fn_c_try_compile "$LINENO"; then : 16437 ac_cv_header_stdc=yes 16438 else 16439 ac_cv_header_stdc=no 16440 fi 16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16442 16443 if test $ac_cv_header_stdc = yes; then 16444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16446 /* end confdefs.h. */ 16447 #include <string.h> 16448 16449 _ACEOF 16450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16451 $EGREP "memchr" >/dev/null 2>&1; then : 16452 16453 else 16454 ac_cv_header_stdc=no 16455 fi 16456 rm -f conftest* 16457 16458 fi 16459 16460 if test $ac_cv_header_stdc = yes; then 16461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463 /* end confdefs.h. */ 16464 #include <stdlib.h> 16465 16466 _ACEOF 16467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16468 $EGREP "free" >/dev/null 2>&1; then : 16469 16470 else 16471 ac_cv_header_stdc=no 16472 fi 16473 rm -f conftest* 16474 16475 fi 16476 16477 if test $ac_cv_header_stdc = yes; then 16478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16479 if test "$cross_compiling" = yes; then : 16480 : 16481 else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483 /* end confdefs.h. */ 16484 #include <ctype.h> 16485 #include <stdlib.h> 16486 #if ((' ' & 0x0FF) == 0x020) 16487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16489 #else 16490 # define ISLOWER(c) \ 16491 (('a' <= (c) && (c) <= 'i') \ 16492 || ('j' <= (c) && (c) <= 'r') \ 16493 || ('s' <= (c) && (c) <= 'z')) 16494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16495 #endif 16496 16497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16498 int 16499 main () 16500 { 16501 int i; 16502 for (i = 0; i < 256; i++) 16503 if (XOR (islower (i), ISLOWER (i)) 16504 || toupper (i) != TOUPPER (i)) 16505 return 2; 16506 return 0; 16507 } 16508 _ACEOF 16509 if ac_fn_c_try_run "$LINENO"; then : 16510 16511 else 16512 ac_cv_header_stdc=no 16513 fi 16514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16515 conftest.$ac_objext conftest.beam conftest.$ac_ext 16516 fi 16517 16518 fi 16519 fi 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16521 $as_echo "$ac_cv_header_stdc" >&6; } 16522 if test $ac_cv_header_stdc = yes; then 16523 16524 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 16525 16526 fi 16527 16528 16529 16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16531 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16532 if ${ac_cv_c_bigendian+:} false; then : 16533 $as_echo_n "(cached) " >&6 16534 else 16535 ac_cv_c_bigendian=unknown 16536 # See if sys/param.h defines the BYTE_ORDER macro. 16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16538 /* end confdefs.h. */ 16539 #include <sys/types.h> 16540 #include <sys/param.h> 16541 int 16542 main () 16543 { 16544 16545 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 16546 bogus endian macros 16547 #endif 16548 ; 16549 return 0; 16550 } 16551 _ACEOF 16552 if ac_fn_c_try_compile "$LINENO"; then : 16553 # It does; now see whether it defined to BIG_ENDIAN or not. 16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16555 /* end confdefs.h. */ 16556 #include <sys/types.h> 16557 #include <sys/param.h> 16558 int 16559 main () 16560 { 16561 16562 #if BYTE_ORDER != BIG_ENDIAN 16563 not big endian 16564 #endif 16565 ; 16566 return 0; 16567 } 16568 _ACEOF 16569 if ac_fn_c_try_compile "$LINENO"; then : 16570 ac_cv_c_bigendian=yes 16571 else 16572 ac_cv_c_bigendian=no 16573 fi 16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16575 fi 16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16577 if test $ac_cv_c_bigendian = unknown; then 16578 if test "$cross_compiling" = yes; then : 16579 echo $ac_n "cross-compiling... " 2>&6 16580 else 16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582 /* end confdefs.h. */ 16583 main () { 16584 /* Are we little or big endian? From Harbison&Steele. */ 16585 union 16586 { 16587 long l; 16588 char c[sizeof (long)]; 16589 } u; 16590 u.l = 1; 16591 exit (u.c[sizeof (long) - 1] == 1); 16592 } 16593 _ACEOF 16594 if ac_fn_c_try_run "$LINENO"; then : 16595 ac_cv_c_bigendian=no 16596 else 16597 ac_cv_c_bigendian=yes 16598 fi 16599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16600 conftest.$ac_objext conftest.beam conftest.$ac_ext 16601 fi 16602 16603 fi 16604 fi 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16606 $as_echo "$ac_cv_c_bigendian" >&6; } 16607 if test $ac_cv_c_bigendian = unknown; then 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5 16609 $as_echo_n "checking to probe for byte ordering... " >&6; } 16610 16611 cat >conftest.c <<EOF 16612 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16613 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16614 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; } 16615 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16616 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16617 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; } 16618 int main() { _ascii (); _ebcdic (); return 0; } 16619 EOF 16620 if test -f conftest.c ; then 16621 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then 16622 if test `grep -l BIGenDianSyS conftest.o` ; then 16623 echo $ac_n ' big endian probe OK, ' 1>&6 16624 ac_cv_c_bigendian=yes 16625 fi 16626 if test `grep -l LiTTleEnDian conftest.o` ; then 16627 echo $ac_n ' little endian probe OK, ' 1>&6 16628 if test $ac_cv_c_bigendian = yes ; then 16629 ac_cv_c_bigendian=unknown; 16630 else 16631 ac_cv_c_bigendian=no 16632 fi 16633 fi 16634 echo $ac_n 'guessing bigendian ... ' >&6 16635 fi 16636 fi 16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16638 $as_echo "$ac_cv_c_bigendian" >&6; } 16639 fi 16640 if test $ac_cv_c_bigendian = yes; then 16641 16642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16643 16644 BYTEORDER=4321 16645 else 16646 BYTEORDER=1234 16647 fi 16648 16649 cat >>confdefs.h <<_ACEOF 16650 #define BYTEORDER $BYTEORDER 16651 _ACEOF 16652 16653 if test $ac_cv_c_bigendian = unknown; then 16654 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianness - sorry" "$LINENO" 5 16655 fi 16656 16657 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16659 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16660 if ${ac_cv_c_const+:} false; then : 16661 $as_echo_n "(cached) " >&6 16662 else 16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16664 /* end confdefs.h. */ 16665 16666 int 16667 main () 16668 { 16669 16670 #ifndef __cplusplus 16671 /* Ultrix mips cc rejects this sort of thing. */ 16672 typedef int charset[2]; 16673 const charset cs = { 0, 0 }; 16674 /* SunOS 4.1.1 cc rejects this. */ 16675 char const *const *pcpcc; 16676 char **ppc; 16677 /* NEC SVR4.0.2 mips cc rejects this. */ 16678 struct point {int x, y;}; 16679 static struct point const zero = {0,0}; 16680 /* AIX XL C 1.02.0.0 rejects this. 16681 It does not let you subtract one const X* pointer from another in 16682 an arm of an if-expression whose if-part is not a constant 16683 expression */ 16684 const char *g = "string"; 16685 pcpcc = &g + (g ? g-g : 0); 16686 /* HPUX 7.0 cc rejects these. */ 16687 ++pcpcc; 16688 ppc = (char**) pcpcc; 16689 pcpcc = (char const *const *) ppc; 16690 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16691 char tx; 16692 char *t = &tx; 16693 char const *s = 0 ? (char *) 0 : (char const *) 0; 16694 16695 *t++ = 0; 16696 if (s) return 0; 16697 } 16698 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16699 int x[] = {25, 17}; 16700 const int *foo = &x[0]; 16701 ++foo; 16702 } 16703 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16704 typedef const int *iptr; 16705 iptr p = 0; 16706 ++p; 16707 } 16708 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16709 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16710 struct s { int j; const int *ap[3]; } bx; 16711 struct s *b = &bx; b->j = 5; 16712 } 16713 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16714 const int foo = 10; 16715 if (!foo) return 0; 16716 } 16717 return !cs[0] && !zero.x; 16718 #endif 16719 16720 ; 16721 return 0; 16722 } 16723 _ACEOF 16724 if ac_fn_c_try_compile "$LINENO"; then : 16725 ac_cv_c_const=yes 16726 else 16727 ac_cv_c_const=no 16728 fi 16729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16730 fi 16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16732 $as_echo "$ac_cv_c_const" >&6; } 16733 if test $ac_cv_c_const = no; then 16734 16735 $as_echo "#define const /**/" >>confdefs.h 16736 16737 fi 16738 16739 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16740 if test "x$ac_cv_type_size_t" = xyes; then : 16741 16742 else 16743 16744 cat >>confdefs.h <<_ACEOF 16745 #define size_t unsigned int 16746 _ACEOF 16747 16748 fi 16749 16750 for ac_func in memmove bcopy 16751 do : 16752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16755 cat >>confdefs.h <<_ACEOF 16756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16757 _ACEOF 16758 16759 fi 16760 done 16761 16762 16763 16764 16765 # Check whether --with-xmlwf was given. 16766 if test "${with_xmlwf+set}" = set; then : 16767 withval=$with_xmlwf; 16768 else 16769 with_xmlwf=yes 16770 fi 16771 16772 if test x${with_xmlwf} = xyes; then 16773 WITH_XMLWF_TRUE= 16774 WITH_XMLWF_FALSE='#' 16775 else 16776 WITH_XMLWF_TRUE='#' 16777 WITH_XMLWF_FALSE= 16778 fi 16779 16780 16781 if echo -- "${host}" | ${FGREP} mingw >/dev/null; then 16782 MINGW_TRUE= 16783 MINGW_FALSE='#' 16784 else 16785 MINGW_TRUE='#' 16786 MINGW_FALSE= 16787 fi 16788 16789 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then 16790 UNICODE_TRUE= 16791 UNICODE_FALSE='#' 16792 else 16793 UNICODE_TRUE='#' 16794 UNICODE_FALSE= 16795 fi 16796 16797 16798 16799 16800 # Check whether --with-libbsd was given. 16801 if test "${with_libbsd+set}" = set; then : 16802 withval=$with_libbsd; 16803 else 16804 with_libbsd=no 16805 fi 16806 16807 if test "x${with_libbsd}" != xno; then : 16808 16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 16810 $as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } 16811 if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : 16812 $as_echo_n "(cached) " >&6 16813 else 16814 ac_check_lib_save_LIBS=$LIBS 16815 LIBS="-lbsd $LIBS" 16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16817 /* end confdefs.h. */ 16818 16819 /* Override any GCC internal prototype to avoid an error. 16820 Use char because int might match the return type of a GCC 16821 builtin and then its argument prototype would still apply. */ 16822 #ifdef __cplusplus 16823 extern "C" 16824 #endif 16825 char arc4random_buf (); 16826 int 16827 main () 16828 { 16829 return arc4random_buf (); 16830 ; 16831 return 0; 16832 } 16833 _ACEOF 16834 if ac_fn_c_try_link "$LINENO"; then : 16835 ac_cv_lib_bsd_arc4random_buf=yes 16836 else 16837 ac_cv_lib_bsd_arc4random_buf=no 16838 fi 16839 rm -f core conftest.err conftest.$ac_objext \ 16840 conftest$ac_exeext conftest.$ac_ext 16841 LIBS=$ac_check_lib_save_LIBS 16842 fi 16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 16844 $as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } 16845 if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : 16846 cat >>confdefs.h <<_ACEOF 16847 #define HAVE_LIBBSD 1 16848 _ACEOF 16849 16850 LIBS="-lbsd $LIBS" 16851 16852 else 16853 16854 if test "x${with_libbsd}" = xyes; then : 16855 16856 as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5 16857 16858 fi 16859 16860 fi 16861 16862 16863 fi 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5 16865 $as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; } 16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16867 /* end confdefs.h. */ 16868 16869 #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */ 16870 #if defined(HAVE_LIBBSD) 16871 # include <bsd/stdlib.h> 16872 #endif 16873 int main() { 16874 arc4random_buf(NULL, 0U); 16875 return 0; 16876 } 16877 16878 _ACEOF 16879 if ac_fn_c_try_link "$LINENO"; then : 16880 16881 16882 $as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 16883 16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16885 $as_echo "yes" >&6; } 16886 16887 else 16888 16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16890 $as_echo "no" >&6; } 16891 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5 16893 $as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; } 16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895 /* end confdefs.h. */ 16896 16897 #if defined(HAVE_LIBBSD) 16898 # include <bsd/stdlib.h> 16899 #else 16900 # include <stdlib.h> 16901 #endif 16902 int main() { 16903 arc4random(); 16904 return 0; 16905 } 16906 16907 _ACEOF 16908 if ac_fn_c_try_link "$LINENO"; then : 16909 16910 16911 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16914 $as_echo "yes" >&6; } 16915 16916 else 16917 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16919 $as_echo "no" >&6; } 16920 16921 fi 16922 rm -f core conftest.err conftest.$ac_objext \ 16923 conftest$ac_exeext conftest.$ac_ext 16924 16925 fi 16926 rm -f core conftest.err conftest.$ac_objext \ 16927 conftest$ac_exeext conftest.$ac_ext 16928 16929 16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5 16931 $as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; } 16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16933 /* end confdefs.h. */ 16934 16935 #include <stdlib.h> /* for NULL */ 16936 #include <sys/random.h> 16937 int main() { 16938 return getrandom(NULL, 0U, 0U); 16939 } 16940 16941 _ACEOF 16942 if ac_fn_c_try_link "$LINENO"; then : 16943 16944 16945 $as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h 16946 16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16948 $as_echo "yes" >&6; } 16949 16950 else 16951 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16953 $as_echo "no" >&6; } 16954 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5 16956 $as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; } 16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958 /* end confdefs.h. */ 16959 16960 #include <stdlib.h> /* for NULL */ 16961 #include <unistd.h> /* for syscall */ 16962 #include <sys/syscall.h> /* for SYS_getrandom */ 16963 int main() { 16964 syscall(SYS_getrandom, NULL, 0, 0); 16965 return 0; 16966 } 16967 16968 _ACEOF 16969 if ac_fn_c_try_link "$LINENO"; then : 16970 16971 16972 $as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h 16973 16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16975 $as_echo "yes" >&6; } 16976 16977 else 16978 16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16980 $as_echo "no" >&6; } 16981 16982 fi 16983 rm -f core conftest.err conftest.$ac_objext \ 16984 conftest$ac_exeext conftest.$ac_ext 16985 16986 fi 16987 rm -f core conftest.err conftest.$ac_objext \ 16988 conftest$ac_exeext conftest.$ac_ext 16989 16990 16991 for ac_header in fcntl.h unistd.h 16992 do : 16993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16994 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16996 cat >>confdefs.h <<_ACEOF 16997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16998 _ACEOF 16999 17000 fi 17001 17002 done 17003 17004 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17005 if test "x$ac_cv_type_off_t" = xyes; then : 17006 17007 else 17008 17009 cat >>confdefs.h <<_ACEOF 17010 #define off_t long int 17011 _ACEOF 17012 17013 fi 17014 17015 17016 17017 17018 for ac_header in $ac_header_list 17019 do : 17020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17022 " 17023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17024 cat >>confdefs.h <<_ACEOF 17025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17026 _ACEOF 17027 17028 fi 17029 17030 done 17031 17032 17033 17034 17035 17036 17037 17038 17039 for ac_func in getpagesize 17040 do : 17041 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 17042 if test "x$ac_cv_func_getpagesize" = xyes; then : 17043 cat >>confdefs.h <<_ACEOF 17044 #define HAVE_GETPAGESIZE 1 17045 _ACEOF 17046 17047 fi 17048 done 17049 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 17051 $as_echo_n "checking for working mmap... " >&6; } 17052 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 17053 $as_echo_n "(cached) " >&6 17054 else 17055 if test "$cross_compiling" = yes; then : 17056 ac_cv_func_mmap_fixed_mapped=no 17057 else 17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17059 /* end confdefs.h. */ 17060 $ac_includes_default 17061 /* malloc might have been renamed as rpl_malloc. */ 17062 #undef malloc 17063 17064 /* Thanks to Mike Haertel and Jim Avera for this test. 17065 Here is a matrix of mmap possibilities: 17066 mmap private not fixed 17067 mmap private fixed at somewhere currently unmapped 17068 mmap private fixed at somewhere already mapped 17069 mmap shared not fixed 17070 mmap shared fixed at somewhere currently unmapped 17071 mmap shared fixed at somewhere already mapped 17072 For private mappings, we should verify that changes cannot be read() 17073 back from the file, nor mmap's back from the file at a different 17074 address. (There have been systems where private was not correctly 17075 implemented like the infamous i386 svr4.0, and systems where the 17076 VM page cache was not coherent with the file system buffer cache 17077 like early versions of FreeBSD and possibly contemporary NetBSD.) 17078 For shared mappings, we should conversely verify that changes get 17079 propagated back to all the places they're supposed to be. 17080 17081 Grep wants private fixed already mapped. 17082 The main things grep needs to know about mmap are: 17083 * does it exist and is it safe to write into the mmap'd area 17084 * how to use it (BSD variants) */ 17085 17086 #include <fcntl.h> 17087 #include <sys/mman.h> 17088 17089 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 17090 char *malloc (); 17091 #endif 17092 17093 /* This mess was copied from the GNU getpagesize.h. */ 17094 #ifndef HAVE_GETPAGESIZE 17095 # ifdef _SC_PAGESIZE 17096 # define getpagesize() sysconf(_SC_PAGESIZE) 17097 # else /* no _SC_PAGESIZE */ 17098 # ifdef HAVE_SYS_PARAM_H 17099 # include <sys/param.h> 17100 # ifdef EXEC_PAGESIZE 17101 # define getpagesize() EXEC_PAGESIZE 17102 # else /* no EXEC_PAGESIZE */ 17103 # ifdef NBPG 17104 # define getpagesize() NBPG * CLSIZE 17105 # ifndef CLSIZE 17106 # define CLSIZE 1 17107 # endif /* no CLSIZE */ 17108 # else /* no NBPG */ 17109 # ifdef NBPC 17110 # define getpagesize() NBPC 17111 # else /* no NBPC */ 17112 # ifdef PAGESIZE 17113 # define getpagesize() PAGESIZE 17114 # endif /* PAGESIZE */ 17115 # endif /* no NBPC */ 17116 # endif /* no NBPG */ 17117 # endif /* no EXEC_PAGESIZE */ 17118 # else /* no HAVE_SYS_PARAM_H */ 17119 # define getpagesize() 8192 /* punt totally */ 17120 # endif /* no HAVE_SYS_PARAM_H */ 17121 # endif /* no _SC_PAGESIZE */ 17122 17123 #endif /* no HAVE_GETPAGESIZE */ 17124 17125 int 17126 main () 17127 { 17128 char *data, *data2, *data3; 17129 const char *cdata2; 17130 int i, pagesize; 17131 int fd, fd2; 17132 17133 pagesize = getpagesize (); 17134 17135 /* First, make a file with some known garbage in it. */ 17136 data = (char *) malloc (pagesize); 17137 if (!data) 17138 return 1; 17139 for (i = 0; i < pagesize; ++i) 17140 *(data + i) = rand (); 17141 umask (0); 17142 fd = creat ("conftest.mmap", 0600); 17143 if (fd < 0) 17144 return 2; 17145 if (write (fd, data, pagesize) != pagesize) 17146 return 3; 17147 close (fd); 17148 17149 /* Next, check that the tail of a page is zero-filled. File must have 17150 non-zero length, otherwise we risk SIGBUS for entire page. */ 17151 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 17152 if (fd2 < 0) 17153 return 4; 17154 cdata2 = ""; 17155 if (write (fd2, cdata2, 1) != 1) 17156 return 5; 17157 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 17158 if (data2 == MAP_FAILED) 17159 return 6; 17160 for (i = 0; i < pagesize; ++i) 17161 if (*(data2 + i)) 17162 return 7; 17163 close (fd2); 17164 if (munmap (data2, pagesize)) 17165 return 8; 17166 17167 /* Next, try to mmap the file at a fixed address which already has 17168 something else allocated at it. If we can, also make sure that 17169 we see the same garbage. */ 17170 fd = open ("conftest.mmap", O_RDWR); 17171 if (fd < 0) 17172 return 9; 17173 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 17174 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 17175 return 10; 17176 for (i = 0; i < pagesize; ++i) 17177 if (*(data + i) != *(data2 + i)) 17178 return 11; 17179 17180 /* Finally, make sure that changes to the mapped area do not 17181 percolate back to the file as seen by read(). (This is a bug on 17182 some variants of i386 svr4.0.) */ 17183 for (i = 0; i < pagesize; ++i) 17184 *(data2 + i) = *(data2 + i) + 1; 17185 data3 = (char *) malloc (pagesize); 17186 if (!data3) 17187 return 12; 17188 if (read (fd, data3, pagesize) != pagesize) 17189 return 13; 17190 for (i = 0; i < pagesize; ++i) 17191 if (*(data + i) != *(data3 + i)) 17192 return 14; 17193 close (fd); 17194 return 0; 17195 } 17196 _ACEOF 17197 if ac_fn_c_try_run "$LINENO"; then : 17198 ac_cv_func_mmap_fixed_mapped=yes 17199 else 17200 ac_cv_func_mmap_fixed_mapped=no 17201 fi 17202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17203 conftest.$ac_objext conftest.beam conftest.$ac_ext 17204 fi 17205 17206 fi 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 17208 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 17209 if test $ac_cv_func_mmap_fixed_mapped = yes; then 17210 17211 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 17212 17213 fi 17214 rm -f conftest.mmap conftest.txt 17215 17216 17217 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then 17218 FILEMAP=unixfilemap 17219 else 17220 FILEMAP=readfilemap 17221 fi 17222 17223 17224 17225 17226 $as_echo "#define XML_NS 1" >>confdefs.h 17227 17228 17229 $as_echo "#define XML_DTD 1" >>confdefs.h 17230 17231 17232 $as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h 17233 17234 17235 # Check whether --enable-xml-context was given. 17236 if test "${enable_xml_context+set}" = set; then : 17237 enableval=$enable_xml_context; enable_xml_context=${enableval} 17238 fi 17239 17240 if test "x${enable_xml_context}" != "xno"; then : 17241 17242 if test "x${enable_xml_context}" = "xyes" \ 17243 -o "x${enable_xml_context}" = "x"; then : 17244 17245 enable_xml_context=1024 17246 17247 fi 17248 17249 cat >>confdefs.h <<_ACEOF 17250 #define XML_CONTEXT_BYTES ${enable_xml_context} 17251 _ACEOF 17252 17253 17254 fi 17255 17256 17257 # Check whether --with-docbook was given. 17258 if test "${with_docbook+set}" = set; then : 17259 withval=$with_docbook; 17260 else 17261 with_docbook=check 17262 fi 17263 17264 17265 17266 if test "x$with_docbook" != xno; then : 17267 for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man 17268 do 17269 # Extract the first word of "$ac_prog", so it can be a program name with args. 17270 set dummy $ac_prog; ac_word=$2 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17272 $as_echo_n "checking for $ac_word... " >&6; } 17273 if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then : 17274 $as_echo_n "(cached) " >&6 17275 else 17276 if test -n "$DOCBOOK_TO_MAN"; then 17277 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test. 17278 else 17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17280 for as_dir in $PATH 17281 do 17282 IFS=$as_save_IFS 17283 test -z "$as_dir" && as_dir=. 17284 for ac_exec_ext in '' $ac_executable_extensions; do 17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17286 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog" 17287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17288 break 2 17289 fi 17290 done 17291 done 17292 IFS=$as_save_IFS 17293 17294 fi 17295 fi 17296 DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN 17297 if test -n "$DOCBOOK_TO_MAN"; then 17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5 17299 $as_echo "$DOCBOOK_TO_MAN" >&6; } 17300 else 17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17302 $as_echo "no" >&6; } 17303 fi 17304 17305 17306 test -n "$DOCBOOK_TO_MAN" && break 17307 done 17308 17309 fi 17310 if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes; then : 17311 as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5 17312 fi 17313 if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno; then : 17314 if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase; then : 17315 as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather 17316 than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point 17317 configure to command docbook2x-man of docbook2X. 17318 Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around. 17319 You can also configure using --without-docbook if you can do without a man 17320 page for xmlwf." "$LINENO" 5 17321 fi 17322 fi 17323 17324 if test "x${DOCBOOK_TO_MAN}" != x; then 17325 WITH_DOCBOOK_TRUE= 17326 WITH_DOCBOOK_FALSE='#' 17327 else 17328 WITH_DOCBOOK_TRUE='#' 17329 WITH_DOCBOOK_FALSE= 17330 fi 17331 17332 17333 ac_config_files="$ac_config_files Makefile expat.pc" 17334 17335 ac_config_files="$ac_config_files doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile" 17336 17337 ac_config_files="$ac_config_files run.sh" 17338 17339 cat >confcache <<\_ACEOF 17340 # This file is a shell script that caches the results of configure 17341 # tests run on this system so they can be shared between configure 17342 # scripts and configure runs, see configure's option --config-cache. 17343 # It is not useful on other systems. If it contains results you don't 17344 # want to keep, you may remove or edit it. 17345 # 17346 # config.status only pays attention to the cache file if you give it 17347 # the --recheck option to rerun configure. 17348 # 17349 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17350 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17351 # following values. 17352 17353 _ACEOF 17354 17355 # The following way of writing the cache mishandles newlines in values, 17356 # but we know of no workaround that is simple, portable, and efficient. 17357 # So, we kill variables containing newlines. 17358 # Ultrix sh set writes to stderr and can't be redirected directly, 17359 # and sets the high bit in the cache file unless we assign to the vars. 17360 ( 17361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17362 eval ac_val=\$$ac_var 17363 case $ac_val in #( 17364 *${as_nl}*) 17365 case $ac_var in #( 17366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17368 esac 17369 case $ac_var in #( 17370 _ | IFS | as_nl) ;; #( 17371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17372 *) { eval $ac_var=; unset $ac_var;} ;; 17373 esac ;; 17374 esac 17375 done 17376 17377 (set) 2>&1 | 17378 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17379 *${as_nl}ac_space=\ *) 17380 # `set' does not quote correctly, so add quotes: double-quote 17381 # substitution turns \\\\ into \\, and sed turns \\ into \. 17382 sed -n \ 17383 "s/'/'\\\\''/g; 17384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17385 ;; #( 17386 *) 17387 # `set' quotes correctly as required by POSIX, so do not add quotes. 17388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17389 ;; 17390 esac | 17391 sort 17392 ) | 17393 sed ' 17394 /^ac_cv_env_/b end 17395 t clear 17396 :clear 17397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17398 t end 17399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17400 :end' >>confcache 17401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17402 if test -w "$cache_file"; then 17403 if test "x$cache_file" != "x/dev/null"; then 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17405 $as_echo "$as_me: updating cache $cache_file" >&6;} 17406 if test ! -f "$cache_file" || test -h "$cache_file"; then 17407 cat confcache >"$cache_file" 17408 else 17409 case $cache_file in #( 17410 */* | ?:*) 17411 mv -f confcache "$cache_file"$$ && 17412 mv -f "$cache_file"$$ "$cache_file" ;; #( 17413 *) 17414 mv -f confcache "$cache_file" ;; 17415 esac 17416 fi 17417 fi 17418 else 17419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17420 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17421 fi 17422 fi 17423 rm -f confcache 17424 17425 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17426 # Let make expand exec_prefix. 17427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17428 17429 DEFS=-DHAVE_CONFIG_H 17430 17431 ac_libobjs= 17432 ac_ltlibobjs= 17433 U= 17434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17435 # 1. Remove the extension, and $U if already installed. 17436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17439 # will be set to the directory where LIBOBJS objects are built. 17440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17442 done 17443 LIBOBJS=$ac_libobjs 17444 17445 LTLIBOBJS=$ac_ltlibobjs 17446 17447 17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17449 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17450 if test -n "$am_sleep_pid"; then 17451 # Hide warnings about reused PIDs. 17452 wait $am_sleep_pid 2>/dev/null 17453 fi 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17455 $as_echo "done" >&6; } 17456 if test -n "$EXEEXT"; then 17457 am__EXEEXT_TRUE= 17458 am__EXEEXT_FALSE='#' 17459 else 17460 am__EXEEXT_TRUE='#' 17461 am__EXEEXT_FALSE= 17462 fi 17463 17464 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17465 as_fn_error $? "conditional \"AMDEP\" was never defined. 17466 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17467 fi 17468 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17469 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17470 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17471 fi 17472 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17473 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17474 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17475 fi 17476 if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then 17477 as_fn_error $? "conditional \"WITH_XMLWF\" was never defined. 17478 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17479 fi 17480 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 17481 as_fn_error $? "conditional \"MINGW\" was never defined. 17482 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17483 fi 17484 if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then 17485 as_fn_error $? "conditional \"UNICODE\" was never defined. 17486 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17487 fi 17488 if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then 17489 as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined. 17490 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17491 fi 17492 17493 : "${CONFIG_STATUS=./config.status}" 17494 ac_write_fail=0 17495 ac_clean_files_save=$ac_clean_files 17496 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17499 as_write_fail=0 17500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17501 #! $SHELL 17502 # Generated by $as_me. 17503 # Run this file to recreate the current configuration. 17504 # Compiler output produced by configure, useful for debugging 17505 # configure, is in config.log if it exists. 17506 17507 debug=false 17508 ac_cs_recheck=false 17509 ac_cs_silent=false 17510 17511 SHELL=\${CONFIG_SHELL-$SHELL} 17512 export SHELL 17513 _ASEOF 17514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17515 ## -------------------- ## 17516 ## M4sh Initialization. ## 17517 ## -------------------- ## 17518 17519 # Be more Bourne compatible 17520 DUALCASE=1; export DUALCASE # for MKS sh 17521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17522 emulate sh 17523 NULLCMD=: 17524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17525 # is contrary to our usage. Disable this feature. 17526 alias -g '${1+"$@"}'='"$@"' 17527 setopt NO_GLOB_SUBST 17528 else 17529 case `(set -o) 2>/dev/null` in #( 17530 *posix*) : 17531 set -o posix ;; #( 17532 *) : 17533 ;; 17534 esac 17535 fi 17536 17537 17538 as_nl=' 17539 ' 17540 export as_nl 17541 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17545 # Prefer a ksh shell builtin over an external printf program on Solaris, 17546 # but without wasting forks for bash or zsh. 17547 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17549 as_echo='print -r --' 17550 as_echo_n='print -rn --' 17551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17552 as_echo='printf %s\n' 17553 as_echo_n='printf %s' 17554 else 17555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17557 as_echo_n='/usr/ucb/echo -n' 17558 else 17559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17560 as_echo_n_body='eval 17561 arg=$1; 17562 case $arg in #( 17563 *"$as_nl"*) 17564 expr "X$arg" : "X\\(.*\\)$as_nl"; 17565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17566 esac; 17567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17568 ' 17569 export as_echo_n_body 17570 as_echo_n='sh -c $as_echo_n_body as_echo' 17571 fi 17572 export as_echo_body 17573 as_echo='sh -c $as_echo_body as_echo' 17574 fi 17575 17576 # The user is always right. 17577 if test "${PATH_SEPARATOR+set}" != set; then 17578 PATH_SEPARATOR=: 17579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17581 PATH_SEPARATOR=';' 17582 } 17583 fi 17584 17585 17586 # IFS 17587 # We need space, tab and new line, in precisely that order. Quoting is 17588 # there to prevent editors from complaining about space-tab. 17589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17590 # splitting by setting IFS to empty value.) 17591 IFS=" "" $as_nl" 17592 17593 # Find who we are. Look in the path if we contain no directory separator. 17594 as_myself= 17595 case $0 in #(( 17596 *[\\/]* ) as_myself=$0 ;; 17597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17598 for as_dir in $PATH 17599 do 17600 IFS=$as_save_IFS 17601 test -z "$as_dir" && as_dir=. 17602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17603 done 17604 IFS=$as_save_IFS 17605 17606 ;; 17607 esac 17608 # We did not find ourselves, most probably we were run as `sh COMMAND' 17609 # in which case we are not to be found in the path. 17610 if test "x$as_myself" = x; then 17611 as_myself=$0 17612 fi 17613 if test ! -f "$as_myself"; then 17614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17615 exit 1 17616 fi 17617 17618 # Unset variables that we do not need and which cause bugs (e.g. in 17619 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17620 # suppresses any "Segmentation fault" message there. '((' could 17621 # trigger a bug in pdksh 5.2.14. 17622 for as_var in BASH_ENV ENV MAIL MAILPATH 17623 do eval test x\${$as_var+set} = xset \ 17624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17625 done 17626 PS1='$ ' 17627 PS2='> ' 17628 PS4='+ ' 17629 17630 # NLS nuisances. 17631 LC_ALL=C 17632 export LC_ALL 17633 LANGUAGE=C 17634 export LANGUAGE 17635 17636 # CDPATH. 17637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17638 17639 17640 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17641 # ---------------------------------------- 17642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17644 # script with STATUS, using 1 if that was 0. 17645 as_fn_error () 17646 { 17647 as_status=$1; test $as_status -eq 0 && as_status=1 17648 if test "$4"; then 17649 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17651 fi 17652 $as_echo "$as_me: error: $2" >&2 17653 as_fn_exit $as_status 17654 } # as_fn_error 17655 17656 17657 # as_fn_set_status STATUS 17658 # ----------------------- 17659 # Set $? to STATUS, without forking. 17660 as_fn_set_status () 17661 { 17662 return $1 17663 } # as_fn_set_status 17664 17665 # as_fn_exit STATUS 17666 # ----------------- 17667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17668 as_fn_exit () 17669 { 17670 set +e 17671 as_fn_set_status $1 17672 exit $1 17673 } # as_fn_exit 17674 17675 # as_fn_unset VAR 17676 # --------------- 17677 # Portably unset VAR. 17678 as_fn_unset () 17679 { 17680 { eval $1=; unset $1;} 17681 } 17682 as_unset=as_fn_unset 17683 # as_fn_append VAR VALUE 17684 # ---------------------- 17685 # Append the text in VALUE to the end of the definition contained in VAR. Take 17686 # advantage of any shell optimizations that allow amortized linear growth over 17687 # repeated appends, instead of the typical quadratic growth present in naive 17688 # implementations. 17689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17690 eval 'as_fn_append () 17691 { 17692 eval $1+=\$2 17693 }' 17694 else 17695 as_fn_append () 17696 { 17697 eval $1=\$$1\$2 17698 } 17699 fi # as_fn_append 17700 17701 # as_fn_arith ARG... 17702 # ------------------ 17703 # Perform arithmetic evaluation on the ARGs, and store the result in the 17704 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17705 # must be portable across $(()) and expr. 17706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17707 eval 'as_fn_arith () 17708 { 17709 as_val=$(( $* )) 17710 }' 17711 else 17712 as_fn_arith () 17713 { 17714 as_val=`expr "$@" || test $? -eq 1` 17715 } 17716 fi # as_fn_arith 17717 17718 17719 if expr a : '\(a\)' >/dev/null 2>&1 && 17720 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17721 as_expr=expr 17722 else 17723 as_expr=false 17724 fi 17725 17726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17727 as_basename=basename 17728 else 17729 as_basename=false 17730 fi 17731 17732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17733 as_dirname=dirname 17734 else 17735 as_dirname=false 17736 fi 17737 17738 as_me=`$as_basename -- "$0" || 17739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17740 X"$0" : 'X\(//\)$' \| \ 17741 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17742 $as_echo X/"$0" | 17743 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17744 s//\1/ 17745 q 17746 } 17747 /^X\/\(\/\/\)$/{ 17748 s//\1/ 17749 q 17750 } 17751 /^X\/\(\/\).*/{ 17752 s//\1/ 17753 q 17754 } 17755 s/.*/./; q'` 17756 17757 # Avoid depending upon Character Ranges. 17758 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17761 as_cr_digits='0123456789' 17762 as_cr_alnum=$as_cr_Letters$as_cr_digits 17763 17764 ECHO_C= ECHO_N= ECHO_T= 17765 case `echo -n x` in #((((( 17766 -n*) 17767 case `echo 'xy\c'` in 17768 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17769 xy) ECHO_C='\c';; 17770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17771 ECHO_T=' ';; 17772 esac;; 17773 *) 17774 ECHO_N='-n';; 17775 esac 17776 17777 rm -f conf$$ conf$$.exe conf$$.file 17778 if test -d conf$$.dir; then 17779 rm -f conf$$.dir/conf$$.file 17780 else 17781 rm -f conf$$.dir 17782 mkdir conf$$.dir 2>/dev/null 17783 fi 17784 if (echo >conf$$.file) 2>/dev/null; then 17785 if ln -s conf$$.file conf$$ 2>/dev/null; then 17786 as_ln_s='ln -s' 17787 # ... but there are two gotchas: 17788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17790 # In both cases, we have to default to `cp -pR'. 17791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17792 as_ln_s='cp -pR' 17793 elif ln conf$$.file conf$$ 2>/dev/null; then 17794 as_ln_s=ln 17795 else 17796 as_ln_s='cp -pR' 17797 fi 17798 else 17799 as_ln_s='cp -pR' 17800 fi 17801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17802 rmdir conf$$.dir 2>/dev/null 17803 17804 17805 # as_fn_mkdir_p 17806 # ------------- 17807 # Create "$as_dir" as a directory, including parents if necessary. 17808 as_fn_mkdir_p () 17809 { 17810 17811 case $as_dir in #( 17812 -*) as_dir=./$as_dir;; 17813 esac 17814 test -d "$as_dir" || eval $as_mkdir_p || { 17815 as_dirs= 17816 while :; do 17817 case $as_dir in #( 17818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17819 *) as_qdir=$as_dir;; 17820 esac 17821 as_dirs="'$as_qdir' $as_dirs" 17822 as_dir=`$as_dirname -- "$as_dir" || 17823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17824 X"$as_dir" : 'X\(//\)[^/]' \| \ 17825 X"$as_dir" : 'X\(//\)$' \| \ 17826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17827 $as_echo X"$as_dir" | 17828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17829 s//\1/ 17830 q 17831 } 17832 /^X\(\/\/\)[^/].*/{ 17833 s//\1/ 17834 q 17835 } 17836 /^X\(\/\/\)$/{ 17837 s//\1/ 17838 q 17839 } 17840 /^X\(\/\).*/{ 17841 s//\1/ 17842 q 17843 } 17844 s/.*/./; q'` 17845 test -d "$as_dir" && break 17846 done 17847 test -z "$as_dirs" || eval "mkdir $as_dirs" 17848 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17849 17850 17851 } # as_fn_mkdir_p 17852 if mkdir -p . 2>/dev/null; then 17853 as_mkdir_p='mkdir -p "$as_dir"' 17854 else 17855 test -d ./-p && rmdir ./-p 17856 as_mkdir_p=false 17857 fi 17858 17859 17860 # as_fn_executable_p FILE 17861 # ----------------------- 17862 # Test if FILE is an executable regular file. 17863 as_fn_executable_p () 17864 { 17865 test -f "$1" && test -x "$1" 17866 } # as_fn_executable_p 17867 as_test_x='test -x' 17868 as_executable_p=as_fn_executable_p 17869 17870 # Sed expression to map a string onto a valid CPP name. 17871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17872 17873 # Sed expression to map a string onto a valid variable name. 17874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17875 17876 17877 exec 6>&1 17878 ## ----------------------------------- ## 17879 ## Main body of $CONFIG_STATUS script. ## 17880 ## ----------------------------------- ## 17881 _ASEOF 17882 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17883 17884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17885 # Save the log message, to keep $0 and so on meaningful, and to 17886 # report actual input values of CONFIG_FILES etc. instead of their 17887 # values after options handling. 17888 ac_log=" 17889 This file was extended by expat $as_me 2.2.6, which was 17890 generated by GNU Autoconf 2.69. Invocation command line was 17891 17892 CONFIG_FILES = $CONFIG_FILES 17893 CONFIG_HEADERS = $CONFIG_HEADERS 17894 CONFIG_LINKS = $CONFIG_LINKS 17895 CONFIG_COMMANDS = $CONFIG_COMMANDS 17896 $ $0 $@ 17897 17898 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17899 " 17900 17901 _ACEOF 17902 17903 case $ac_config_files in *" 17904 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17905 esac 17906 17907 case $ac_config_headers in *" 17908 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17909 esac 17910 17911 17912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17913 # Files that config.status was made for. 17914 config_files="$ac_config_files" 17915 config_headers="$ac_config_headers" 17916 config_commands="$ac_config_commands" 17917 17918 _ACEOF 17919 17920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17921 ac_cs_usage="\ 17922 \`$as_me' instantiates files and other configuration actions 17923 from templates according to the current configuration. Unless the files 17924 and actions are specified as TAGs, all are instantiated by default. 17925 17926 Usage: $0 [OPTION]... [TAG]... 17927 17928 -h, --help print this help, then exit 17929 -V, --version print version number and configuration settings, then exit 17930 --config print configuration, then exit 17931 -q, --quiet, --silent 17932 do not print progress messages 17933 -d, --debug don't remove temporary files 17934 --recheck update $as_me by reconfiguring in the same conditions 17935 --file=FILE[:TEMPLATE] 17936 instantiate the configuration file FILE 17937 --header=FILE[:TEMPLATE] 17938 instantiate the configuration header FILE 17939 17940 Configuration files: 17941 $config_files 17942 17943 Configuration headers: 17944 $config_headers 17945 17946 Configuration commands: 17947 $config_commands 17948 17949 Report bugs to <expat-bugs@libexpat.org>." 17950 17951 _ACEOF 17952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17954 ac_cs_version="\\ 17955 expat config.status 2.2.6 17956 configured by $0, generated by GNU Autoconf 2.69, 17957 with options \\"\$ac_cs_config\\" 17958 17959 Copyright (C) 2012 Free Software Foundation, Inc. 17960 This config.status script is free software; the Free Software Foundation 17961 gives unlimited permission to copy, distribute and modify it." 17962 17963 ac_pwd='$ac_pwd' 17964 srcdir='$srcdir' 17965 INSTALL='$INSTALL' 17966 MKDIR_P='$MKDIR_P' 17967 AWK='$AWK' 17968 test -n "\$AWK" || AWK=awk 17969 _ACEOF 17970 17971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17972 # The default lists apply if the user does not specify any file. 17973 ac_need_defaults=: 17974 while test $# != 0 17975 do 17976 case $1 in 17977 --*=?*) 17978 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17979 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17980 ac_shift=: 17981 ;; 17982 --*=) 17983 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17984 ac_optarg= 17985 ac_shift=: 17986 ;; 17987 *) 17988 ac_option=$1 17989 ac_optarg=$2 17990 ac_shift=shift 17991 ;; 17992 esac 17993 17994 case $ac_option in 17995 # Handling of the options. 17996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17997 ac_cs_recheck=: ;; 17998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17999 $as_echo "$ac_cs_version"; exit ;; 18000 --config | --confi | --conf | --con | --co | --c ) 18001 $as_echo "$ac_cs_config"; exit ;; 18002 --debug | --debu | --deb | --de | --d | -d ) 18003 debug=: ;; 18004 --file | --fil | --fi | --f ) 18005 $ac_shift 18006 case $ac_optarg in 18007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18008 '') as_fn_error $? "missing file argument" ;; 18009 esac 18010 as_fn_append CONFIG_FILES " '$ac_optarg'" 18011 ac_need_defaults=false;; 18012 --header | --heade | --head | --hea ) 18013 $ac_shift 18014 case $ac_optarg in 18015 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18016 esac 18017 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18018 ac_need_defaults=false;; 18019 --he | --h) 18020 # Conflict between --help and --header 18021 as_fn_error $? "ambiguous option: \`$1' 18022 Try \`$0 --help' for more information.";; 18023 --help | --hel | -h ) 18024 $as_echo "$ac_cs_usage"; exit ;; 18025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18026 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18027 ac_cs_silent=: ;; 18028 18029 # This is an error. 18030 -*) as_fn_error $? "unrecognized option: \`$1' 18031 Try \`$0 --help' for more information." ;; 18032 18033 *) as_fn_append ac_config_targets " $1" 18034 ac_need_defaults=false ;; 18035 18036 esac 18037 shift 18038 done 18039 18040 ac_configure_extra_args= 18041 18042 if $ac_cs_silent; then 18043 exec 6>/dev/null 18044 ac_configure_extra_args="$ac_configure_extra_args --silent" 18045 fi 18046 18047 _ACEOF 18048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18049 if \$ac_cs_recheck; then 18050 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18051 shift 18052 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18053 CONFIG_SHELL='$SHELL' 18054 export CONFIG_SHELL 18055 exec "\$@" 18056 fi 18057 18058 _ACEOF 18059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18060 exec 5>>config.log 18061 { 18062 echo 18063 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18064 ## Running $as_me. ## 18065 _ASBOX 18066 $as_echo "$ac_log" 18067 } >&5 18068 18069 _ACEOF 18070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18071 # 18072 # INIT-COMMANDS 18073 # 18074 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18075 18076 18077 # The HP-UX ksh and POSIX shell print the target directory to stdout 18078 # if CDPATH is set. 18079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18080 18081 sed_quote_subst='$sed_quote_subst' 18082 double_quote_subst='$double_quote_subst' 18083 delay_variable_subst='$delay_variable_subst' 18084 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18085 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18086 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18087 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18088 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18089 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18090 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18091 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18092 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18093 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18094 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18095 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18096 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18097 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18098 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18099 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18100 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18101 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18102 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18103 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18104 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18105 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18106 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18107 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18108 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18109 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18110 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18111 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18112 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18113 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18114 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18115 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18116 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18117 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18118 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18119 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18120 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18121 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18122 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18123 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18124 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18125 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18126 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18127 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18128 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18129 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18130 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18131 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18132 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18133 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18134 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18135 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18136 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18137 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18138 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18139 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18140 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18141 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18142 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 18144 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18145 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18146 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18147 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18148 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18149 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18150 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18151 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18152 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18153 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18154 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18155 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18156 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18157 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18158 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18159 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18160 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18161 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18162 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18163 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18164 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18165 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18166 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18167 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18168 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18169 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18170 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18171 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18172 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18173 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18174 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18175 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18176 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18177 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18178 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18179 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18180 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18181 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18182 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18183 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18184 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18185 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18186 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18187 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18188 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18189 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18190 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18191 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18192 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18193 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18194 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18195 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18196 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18197 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18198 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18199 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18200 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18201 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18202 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18203 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18204 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18205 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18206 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18207 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18208 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18209 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18210 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18211 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18212 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18213 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18214 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18215 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18216 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18217 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18218 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18219 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18220 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18221 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18222 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18223 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18224 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18225 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18226 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18227 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18228 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18229 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18230 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18231 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18232 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18233 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18234 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18235 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18236 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18237 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18238 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18239 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18240 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18241 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18242 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18243 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18244 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18245 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18246 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18247 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18248 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18249 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18250 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18251 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18252 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18253 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18254 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18255 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18256 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18257 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18258 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18259 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18260 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18261 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18262 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18263 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18264 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18265 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18266 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18267 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18268 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18269 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18270 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18271 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18272 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18273 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18274 18275 LTCC='$LTCC' 18276 LTCFLAGS='$LTCFLAGS' 18277 compiler='$compiler_DEFAULT' 18278 18279 # A function that is used when there is no print builtin or printf. 18280 func_fallback_echo () 18281 { 18282 eval 'cat <<_LTECHO_EOF 18283 \$1 18284 _LTECHO_EOF' 18285 } 18286 18287 # Quote evaled strings. 18288 for var in AS \ 18289 DLLTOOL \ 18290 OBJDUMP \ 18291 SHELL \ 18292 ECHO \ 18293 PATH_SEPARATOR \ 18294 SED \ 18295 GREP \ 18296 EGREP \ 18297 FGREP \ 18298 LD \ 18299 NM \ 18300 LN_S \ 18301 lt_SP2NL \ 18302 lt_NL2SP \ 18303 reload_flag \ 18304 deplibs_check_method \ 18305 file_magic_cmd \ 18306 file_magic_glob \ 18307 want_nocaseglob \ 18308 sharedlib_from_linklib_cmd \ 18309 AR \ 18310 AR_FLAGS \ 18311 archiver_list_spec \ 18312 STRIP \ 18313 RANLIB \ 18314 CC \ 18315 CFLAGS \ 18316 compiler \ 18317 lt_cv_sys_global_symbol_pipe \ 18318 lt_cv_sys_global_symbol_to_cdecl \ 18319 lt_cv_sys_global_symbol_to_import \ 18320 lt_cv_sys_global_symbol_to_c_name_address \ 18321 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18322 lt_cv_nm_interface \ 18323 nm_file_list_spec \ 18324 lt_cv_truncate_bin \ 18325 lt_prog_compiler_no_builtin_flag \ 18326 lt_prog_compiler_pic \ 18327 lt_prog_compiler_wl \ 18328 lt_prog_compiler_static \ 18329 lt_cv_prog_compiler_c_o \ 18330 need_locks \ 18331 MANIFEST_TOOL \ 18332 DSYMUTIL \ 18333 NMEDIT \ 18334 LIPO \ 18335 OTOOL \ 18336 OTOOL64 \ 18337 shrext_cmds \ 18338 export_dynamic_flag_spec \ 18339 whole_archive_flag_spec \ 18340 compiler_needs_object \ 18341 with_gnu_ld \ 18342 allow_undefined_flag \ 18343 no_undefined_flag \ 18344 hardcode_libdir_flag_spec \ 18345 hardcode_libdir_separator \ 18346 exclude_expsyms \ 18347 include_expsyms \ 18348 file_list_spec \ 18349 variables_saved_for_relink \ 18350 libname_spec \ 18351 library_names_spec \ 18352 soname_spec \ 18353 install_override_mode \ 18354 finish_eval \ 18355 old_striplib \ 18356 striplib \ 18357 compiler_lib_search_dirs \ 18358 predep_objects \ 18359 postdep_objects \ 18360 predeps \ 18361 postdeps \ 18362 compiler_lib_search_path \ 18363 LD_CXX \ 18364 reload_flag_CXX \ 18365 compiler_CXX \ 18366 lt_prog_compiler_no_builtin_flag_CXX \ 18367 lt_prog_compiler_pic_CXX \ 18368 lt_prog_compiler_wl_CXX \ 18369 lt_prog_compiler_static_CXX \ 18370 lt_cv_prog_compiler_c_o_CXX \ 18371 export_dynamic_flag_spec_CXX \ 18372 whole_archive_flag_spec_CXX \ 18373 compiler_needs_object_CXX \ 18374 with_gnu_ld_CXX \ 18375 allow_undefined_flag_CXX \ 18376 no_undefined_flag_CXX \ 18377 hardcode_libdir_flag_spec_CXX \ 18378 hardcode_libdir_separator_CXX \ 18379 exclude_expsyms_CXX \ 18380 include_expsyms_CXX \ 18381 file_list_spec_CXX \ 18382 compiler_lib_search_dirs_CXX \ 18383 predep_objects_CXX \ 18384 postdep_objects_CXX \ 18385 predeps_CXX \ 18386 postdeps_CXX \ 18387 compiler_lib_search_path_CXX; do 18388 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18389 *[\\\\\\\`\\"\\\$]*) 18390 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18391 ;; 18392 *) 18393 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18394 ;; 18395 esac 18396 done 18397 18398 # Double-quote double-evaled strings. 18399 for var in reload_cmds \ 18400 old_postinstall_cmds \ 18401 old_postuninstall_cmds \ 18402 old_archive_cmds \ 18403 extract_expsyms_cmds \ 18404 old_archive_from_new_cmds \ 18405 old_archive_from_expsyms_cmds \ 18406 archive_cmds \ 18407 archive_expsym_cmds \ 18408 module_cmds \ 18409 module_expsym_cmds \ 18410 export_symbols_cmds \ 18411 prelink_cmds \ 18412 postlink_cmds \ 18413 postinstall_cmds \ 18414 postuninstall_cmds \ 18415 finish_cmds \ 18416 sys_lib_search_path_spec \ 18417 configure_time_dlsearch_path \ 18418 configure_time_lt_sys_library_path \ 18419 reload_cmds_CXX \ 18420 old_archive_cmds_CXX \ 18421 old_archive_from_new_cmds_CXX \ 18422 old_archive_from_expsyms_cmds_CXX \ 18423 archive_cmds_CXX \ 18424 archive_expsym_cmds_CXX \ 18425 module_cmds_CXX \ 18426 module_expsym_cmds_CXX \ 18427 export_symbols_cmds_CXX \ 18428 prelink_cmds_CXX \ 18429 postlink_cmds_CXX; do 18430 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18431 *[\\\\\\\`\\"\\\$]*) 18432 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18433 ;; 18434 *) 18435 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18436 ;; 18437 esac 18438 done 18439 18440 ac_aux_dir='$ac_aux_dir' 18441 18442 # See if we are running on zsh, and set the options that allow our 18443 # commands through without removal of \ escapes INIT. 18444 if test -n "\${ZSH_VERSION+set}"; then 18445 setopt NO_GLOB_SUBST 18446 fi 18447 18448 18449 PACKAGE='$PACKAGE' 18450 VERSION='$VERSION' 18451 RM='$RM' 18452 ofile='$ofile' 18453 18454 18455 18456 18457 18458 18459 _ACEOF 18460 18461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18462 18463 # Handling of arguments. 18464 for ac_config_target in $ac_config_targets 18465 do 18466 case $ac_config_target in 18467 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;; 18468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18469 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18470 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18471 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;; 18472 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18473 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 18474 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 18475 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18476 "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;; 18477 "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;; 18478 "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;; 18479 18480 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18481 esac 18482 done 18483 18484 18485 # If the user did not use the arguments to specify the items to instantiate, 18486 # then the envvar interface is used. Set only those that are not. 18487 # We use the long form for the default assignment because of an extremely 18488 # bizarre bug on SunOS 4.1.3. 18489 if $ac_need_defaults; then 18490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18493 fi 18494 18495 # Have a temporary directory for convenience. Make it in the build tree 18496 # simply because there is no reason against having it here, and in addition, 18497 # creating and moving files from /tmp can sometimes cause problems. 18498 # Hook for its removal unless debugging. 18499 # Note that there is a small window in which the directory will not be cleaned: 18500 # after its creation but before its name has been assigned to `$tmp'. 18501 $debug || 18502 { 18503 tmp= ac_tmp= 18504 trap 'exit_status=$? 18505 : "${ac_tmp:=$tmp}" 18506 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18507 ' 0 18508 trap 'as_fn_exit 1' 1 2 13 15 18509 } 18510 # Create a (secure) tmp directory for tmp files. 18511 18512 { 18513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18514 test -d "$tmp" 18515 } || 18516 { 18517 tmp=./conf$$-$RANDOM 18518 (umask 077 && mkdir "$tmp") 18519 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18520 ac_tmp=$tmp 18521 18522 # Set up the scripts for CONFIG_FILES section. 18523 # No need to generate them if there are no CONFIG_FILES. 18524 # This happens for instance with `./config.status config.h'. 18525 if test -n "$CONFIG_FILES"; then 18526 18527 18528 ac_cr=`echo X | tr X '\015'` 18529 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18530 # But we know of no other shell where ac_cr would be empty at this 18531 # point, so we can use a bashism as a fallback. 18532 if test "x$ac_cr" = x; then 18533 eval ac_cr=\$\'\\r\' 18534 fi 18535 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18536 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18537 ac_cs_awk_cr='\\r' 18538 else 18539 ac_cs_awk_cr=$ac_cr 18540 fi 18541 18542 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18543 _ACEOF 18544 18545 18546 { 18547 echo "cat >conf$$subs.awk <<_ACEOF" && 18548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18549 echo "_ACEOF" 18550 } >conf$$subs.sh || 18551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18553 ac_delim='%!_!# ' 18554 for ac_last_try in false false false false false :; do 18555 . ./conf$$subs.sh || 18556 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18557 18558 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18559 if test $ac_delim_n = $ac_delim_num; then 18560 break 18561 elif $ac_last_try; then 18562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18563 else 18564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18565 fi 18566 done 18567 rm -f conf$$subs.sh 18568 18569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18570 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18571 _ACEOF 18572 sed -n ' 18573 h 18574 s/^/S["/; s/!.*/"]=/ 18575 p 18576 g 18577 s/^[^!]*!// 18578 :repl 18579 t repl 18580 s/'"$ac_delim"'$// 18581 t delim 18582 :nl 18583 h 18584 s/\(.\{148\}\)..*/\1/ 18585 t more1 18586 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18587 p 18588 n 18589 b repl 18590 :more1 18591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18592 p 18593 g 18594 s/.\{148\}// 18595 t nl 18596 :delim 18597 h 18598 s/\(.\{148\}\)..*/\1/ 18599 t more2 18600 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18601 p 18602 b 18603 :more2 18604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18605 p 18606 g 18607 s/.\{148\}// 18608 t delim 18609 ' <conf$$subs.awk | sed ' 18610 /^[^""]/{ 18611 N 18612 s/\n// 18613 } 18614 ' >>$CONFIG_STATUS || ac_write_fail=1 18615 rm -f conf$$subs.awk 18616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18617 _ACAWK 18618 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18619 for (key in S) S_is_set[key] = 1 18620 FS = "" 18621 18622 } 18623 { 18624 line = $ 0 18625 nfields = split(line, field, "@") 18626 substed = 0 18627 len = length(field[1]) 18628 for (i = 2; i < nfields; i++) { 18629 key = field[i] 18630 keylen = length(key) 18631 if (S_is_set[key]) { 18632 value = S[key] 18633 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18634 len += length(value) + length(field[++i]) 18635 substed = 1 18636 } else 18637 len += 1 + keylen 18638 } 18639 18640 print line 18641 } 18642 18643 _ACAWK 18644 _ACEOF 18645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18646 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18647 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18648 else 18649 cat 18650 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18651 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18652 _ACEOF 18653 18654 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18655 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18656 # trailing colons and then remove the whole line if VPATH becomes empty 18657 # (actually we leave an empty line to preserve line numbers). 18658 if test "x$srcdir" = x.; then 18659 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18660 h 18661 s/// 18662 s/^/:/ 18663 s/[ ]*$/:/ 18664 s/:\$(srcdir):/:/g 18665 s/:\${srcdir}:/:/g 18666 s/:@srcdir@:/:/g 18667 s/^:*// 18668 s/:*$// 18669 x 18670 s/\(=[ ]*\).*/\1/ 18671 G 18672 s/\n// 18673 s/^[^=]*=[ ]*$// 18674 }' 18675 fi 18676 18677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18678 fi # test -n "$CONFIG_FILES" 18679 18680 # Set up the scripts for CONFIG_HEADERS section. 18681 # No need to generate them if there are no CONFIG_HEADERS. 18682 # This happens for instance with `./config.status Makefile'. 18683 if test -n "$CONFIG_HEADERS"; then 18684 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18685 BEGIN { 18686 _ACEOF 18687 18688 # Transform confdefs.h into an awk script `defines.awk', embedded as 18689 # here-document in config.status, that substitutes the proper values into 18690 # config.h.in to produce config.h. 18691 18692 # Create a delimiter string that does not exist in confdefs.h, to ease 18693 # handling of long lines. 18694 ac_delim='%!_!# ' 18695 for ac_last_try in false false :; do 18696 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18697 if test -z "$ac_tt"; then 18698 break 18699 elif $ac_last_try; then 18700 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18701 else 18702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18703 fi 18704 done 18705 18706 # For the awk script, D is an array of macro values keyed by name, 18707 # likewise P contains macro parameters if any. Preserve backslash 18708 # newline sequences. 18709 18710 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18711 sed -n ' 18712 s/.\{148\}/&'"$ac_delim"'/g 18713 t rset 18714 :rset 18715 s/^[ ]*#[ ]*define[ ][ ]*/ / 18716 t def 18717 d 18718 :def 18719 s/\\$// 18720 t bsnl 18721 s/["\\]/\\&/g 18722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18723 D["\1"]=" \3"/p 18724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18725 d 18726 :bsnl 18727 s/["\\]/\\&/g 18728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18729 D["\1"]=" \3\\\\\\n"\\/p 18730 t cont 18731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18732 t cont 18733 d 18734 :cont 18735 n 18736 s/.\{148\}/&'"$ac_delim"'/g 18737 t clear 18738 :clear 18739 s/\\$// 18740 t bsnlc 18741 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18742 d 18743 :bsnlc 18744 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18745 b cont 18746 ' <confdefs.h | sed ' 18747 s/'"$ac_delim"'/"\\\ 18748 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18749 18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18751 for (key in D) D_is_set[key] = 1 18752 FS = "" 18753 } 18754 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18755 line = \$ 0 18756 split(line, arg, " ") 18757 if (arg[1] == "#") { 18758 defundef = arg[2] 18759 mac1 = arg[3] 18760 } else { 18761 defundef = substr(arg[1], 2) 18762 mac1 = arg[2] 18763 } 18764 split(mac1, mac2, "(") #) 18765 macro = mac2[1] 18766 prefix = substr(line, 1, index(line, defundef) - 1) 18767 if (D_is_set[macro]) { 18768 # Preserve the white space surrounding the "#". 18769 print prefix "define", macro P[macro] D[macro] 18770 next 18771 } else { 18772 # Replace #undef with comments. This is necessary, for example, 18773 # in the case of _POSIX_SOURCE, which is predefined and required 18774 # on some systems where configure will not decide to define it. 18775 if (defundef == "undef") { 18776 print "/*", prefix defundef, macro, "*/" 18777 next 18778 } 18779 } 18780 } 18781 { print } 18782 _ACAWK 18783 _ACEOF 18784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18785 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18786 fi # test -n "$CONFIG_HEADERS" 18787 18788 18789 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18790 shift 18791 for ac_tag 18792 do 18793 case $ac_tag in 18794 :[FHLC]) ac_mode=$ac_tag; continue;; 18795 esac 18796 case $ac_mode$ac_tag in 18797 :[FHL]*:*);; 18798 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18799 :[FH]-) ac_tag=-:-;; 18800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18801 esac 18802 ac_save_IFS=$IFS 18803 IFS=: 18804 set x $ac_tag 18805 IFS=$ac_save_IFS 18806 shift 18807 ac_file=$1 18808 shift 18809 18810 case $ac_mode in 18811 :L) ac_source=$1;; 18812 :[FH]) 18813 ac_file_inputs= 18814 for ac_f 18815 do 18816 case $ac_f in 18817 -) ac_f="$ac_tmp/stdin";; 18818 *) # Look for the file first in the build tree, then in the source tree 18819 # (if the path is not absolute). The absolute path cannot be DOS-style, 18820 # because $ac_f cannot contain `:'. 18821 test -f "$ac_f" || 18822 case $ac_f in 18823 [\\/$]*) false;; 18824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18825 esac || 18826 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18827 esac 18828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18829 as_fn_append ac_file_inputs " '$ac_f'" 18830 done 18831 18832 # Let's still pretend it is `configure' which instantiates (i.e., don't 18833 # use $as_me), people would be surprised to read: 18834 # /* config.h. Generated by config.status. */ 18835 configure_input='Generated from '` 18836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18837 `' by configure.' 18838 if test x"$ac_file" != x-; then 18839 configure_input="$ac_file. $configure_input" 18840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18841 $as_echo "$as_me: creating $ac_file" >&6;} 18842 fi 18843 # Neutralize special characters interpreted by sed in replacement strings. 18844 case $configure_input in #( 18845 *\&* | *\|* | *\\* ) 18846 ac_sed_conf_input=`$as_echo "$configure_input" | 18847 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18848 *) ac_sed_conf_input=$configure_input;; 18849 esac 18850 18851 case $ac_tag in 18852 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18854 esac 18855 ;; 18856 esac 18857 18858 ac_dir=`$as_dirname -- "$ac_file" || 18859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18860 X"$ac_file" : 'X\(//\)[^/]' \| \ 18861 X"$ac_file" : 'X\(//\)$' \| \ 18862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18863 $as_echo X"$ac_file" | 18864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18865 s//\1/ 18866 q 18867 } 18868 /^X\(\/\/\)[^/].*/{ 18869 s//\1/ 18870 q 18871 } 18872 /^X\(\/\/\)$/{ 18873 s//\1/ 18874 q 18875 } 18876 /^X\(\/\).*/{ 18877 s//\1/ 18878 q 18879 } 18880 s/.*/./; q'` 18881 as_dir="$ac_dir"; as_fn_mkdir_p 18882 ac_builddir=. 18883 18884 case "$ac_dir" in 18885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18886 *) 18887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18888 # A ".." for each directory in $ac_dir_suffix. 18889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18890 case $ac_top_builddir_sub in 18891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18893 esac ;; 18894 esac 18895 ac_abs_top_builddir=$ac_pwd 18896 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18897 # for backward compatibility: 18898 ac_top_builddir=$ac_top_build_prefix 18899 18900 case $srcdir in 18901 .) # We are building in place. 18902 ac_srcdir=. 18903 ac_top_srcdir=$ac_top_builddir_sub 18904 ac_abs_top_srcdir=$ac_pwd ;; 18905 [\\/]* | ?:[\\/]* ) # Absolute name. 18906 ac_srcdir=$srcdir$ac_dir_suffix; 18907 ac_top_srcdir=$srcdir 18908 ac_abs_top_srcdir=$srcdir ;; 18909 *) # Relative name. 18910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18911 ac_top_srcdir=$ac_top_build_prefix$srcdir 18912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18913 esac 18914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18915 18916 18917 case $ac_mode in 18918 :F) 18919 # 18920 # CONFIG_FILE 18921 # 18922 18923 case $INSTALL in 18924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18926 esac 18927 ac_MKDIR_P=$MKDIR_P 18928 case $MKDIR_P in 18929 [\\/$]* | ?:[\\/]* ) ;; 18930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18931 esac 18932 _ACEOF 18933 18934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18935 # If the template does not know about datarootdir, expand it. 18936 # FIXME: This hack should be removed a few years after 2.60. 18937 ac_datarootdir_hack=; ac_datarootdir_seen= 18938 ac_sed_dataroot=' 18939 /datarootdir/ { 18940 p 18941 q 18942 } 18943 /@datadir@/p 18944 /@docdir@/p 18945 /@infodir@/p 18946 /@localedir@/p 18947 /@mandir@/p' 18948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18949 *datarootdir*) ac_datarootdir_seen=yes;; 18950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18953 _ACEOF 18954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18955 ac_datarootdir_hack=' 18956 s&@datadir@&$datadir&g 18957 s&@docdir@&$docdir&g 18958 s&@infodir@&$infodir&g 18959 s&@localedir@&$localedir&g 18960 s&@mandir@&$mandir&g 18961 s&\\\${datarootdir}&$datarootdir&g' ;; 18962 esac 18963 _ACEOF 18964 18965 # Neutralize VPATH when `$srcdir' = `.'. 18966 # Shell code in configure.ac might set extrasub. 18967 # FIXME: do we really want to maintain this feature? 18968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18969 ac_sed_extra="$ac_vpsub 18970 $extrasub 18971 _ACEOF 18972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18973 :t 18974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18975 s|@configure_input@|$ac_sed_conf_input|;t t 18976 s&@top_builddir@&$ac_top_builddir_sub&;t t 18977 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18978 s&@srcdir@&$ac_srcdir&;t t 18979 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18980 s&@top_srcdir@&$ac_top_srcdir&;t t 18981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18982 s&@builddir@&$ac_builddir&;t t 18983 s&@abs_builddir@&$ac_abs_builddir&;t t 18984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18985 s&@INSTALL@&$ac_INSTALL&;t t 18986 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18987 $ac_datarootdir_hack 18988 " 18989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18990 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18991 18992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18993 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18995 "$ac_tmp/out"`; test -z "$ac_out"; } && 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18997 which seems to be undefined. Please make sure it is defined" >&5 18998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18999 which seems to be undefined. Please make sure it is defined" >&2;} 19000 19001 rm -f "$ac_tmp/stdin" 19002 case $ac_file in 19003 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19004 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19005 esac \ 19006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19007 ;; 19008 :H) 19009 # 19010 # CONFIG_HEADER 19011 # 19012 if test x"$ac_file" != x-; then 19013 { 19014 $as_echo "/* $configure_input */" \ 19015 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19016 } >"$ac_tmp/config.h" \ 19017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19018 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19020 $as_echo "$as_me: $ac_file is unchanged" >&6;} 19021 else 19022 rm -f "$ac_file" 19023 mv "$ac_tmp/config.h" "$ac_file" \ 19024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19025 fi 19026 else 19027 $as_echo "/* $configure_input */" \ 19028 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19029 || as_fn_error $? "could not create -" "$LINENO" 5 19030 fi 19031 # Compute "$ac_file"'s index in $config_headers. 19032 _am_arg="$ac_file" 19033 _am_stamp_count=1 19034 for _am_header in $config_headers :; do 19035 case $_am_header in 19036 $_am_arg | $_am_arg:* ) 19037 break ;; 19038 * ) 19039 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19040 esac 19041 done 19042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19044 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19045 X"$_am_arg" : 'X\(//\)$' \| \ 19046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19047 $as_echo X"$_am_arg" | 19048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19049 s//\1/ 19050 q 19051 } 19052 /^X\(\/\/\)[^/].*/{ 19053 s//\1/ 19054 q 19055 } 19056 /^X\(\/\/\)$/{ 19057 s//\1/ 19058 q 19059 } 19060 /^X\(\/\).*/{ 19061 s//\1/ 19062 q 19063 } 19064 s/.*/./; q'`/stamp-h$_am_stamp_count 19065 ;; 19066 19067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19068 $as_echo "$as_me: executing $ac_file commands" >&6;} 19069 ;; 19070 esac 19071 19072 19073 case $ac_file$ac_mode in 19074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19075 # Older Autoconf quotes --file arguments for eval, but not when files 19076 # are listed without --file. Let's play safe and only enable the eval 19077 # if we detect the quoting. 19078 case $CONFIG_FILES in 19079 *\'*) eval set x "$CONFIG_FILES" ;; 19080 *) set x $CONFIG_FILES ;; 19081 esac 19082 shift 19083 for mf 19084 do 19085 # Strip MF so we end up with the name of the file. 19086 mf=`echo "$mf" | sed -e 's/:.*$//'` 19087 # Check whether this is an Automake generated Makefile or not. 19088 # We used to match only the files named 'Makefile.in', but 19089 # some people rename them; so instead we look at the file content. 19090 # Grep'ing the first line is not enough: some people post-process 19091 # each Makefile.in and add a new line on top of each file to say so. 19092 # Grep'ing the whole file is not good either: AIX grep has a line 19093 # limit of 2048, but all sed's we know have understand at least 4000. 19094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19095 dirpart=`$as_dirname -- "$mf" || 19096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19097 X"$mf" : 'X\(//\)[^/]' \| \ 19098 X"$mf" : 'X\(//\)$' \| \ 19099 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19100 $as_echo X"$mf" | 19101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19102 s//\1/ 19103 q 19104 } 19105 /^X\(\/\/\)[^/].*/{ 19106 s//\1/ 19107 q 19108 } 19109 /^X\(\/\/\)$/{ 19110 s//\1/ 19111 q 19112 } 19113 /^X\(\/\).*/{ 19114 s//\1/ 19115 q 19116 } 19117 s/.*/./; q'` 19118 else 19119 continue 19120 fi 19121 # Extract the definition of DEPDIR, am__include, and am__quote 19122 # from the Makefile without running 'make'. 19123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19124 test -z "$DEPDIR" && continue 19125 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19126 test -z "$am__include" && continue 19127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19128 # Find all dependency output files, they are included files with 19129 # $(DEPDIR) in their names. We invoke sed twice because it is the 19130 # simplest approach to changing $(DEPDIR) to its actual value in the 19131 # expansion. 19132 for file in `sed -n " 19133 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19134 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19135 # Make sure the directory exists. 19136 test -f "$dirpart/$file" && continue 19137 fdir=`$as_dirname -- "$file" || 19138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19139 X"$file" : 'X\(//\)[^/]' \| \ 19140 X"$file" : 'X\(//\)$' \| \ 19141 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19142 $as_echo X"$file" | 19143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19144 s//\1/ 19145 q 19146 } 19147 /^X\(\/\/\)[^/].*/{ 19148 s//\1/ 19149 q 19150 } 19151 /^X\(\/\/\)$/{ 19152 s//\1/ 19153 q 19154 } 19155 /^X\(\/\).*/{ 19156 s//\1/ 19157 q 19158 } 19159 s/.*/./; q'` 19160 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19161 # echo "creating $dirpart/$file" 19162 echo '# dummy' > "$dirpart/$file" 19163 done 19164 done 19165 } 19166 ;; 19167 "libtool":C) 19168 19169 # See if we are running on zsh, and set the options that allow our 19170 # commands through without removal of \ escapes. 19171 if test -n "${ZSH_VERSION+set}"; then 19172 setopt NO_GLOB_SUBST 19173 fi 19174 19175 cfgfile=${ofile}T 19176 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19177 $RM "$cfgfile" 19178 19179 cat <<_LT_EOF >> "$cfgfile" 19180 #! $SHELL 19181 # Generated automatically by $as_me ($PACKAGE) $VERSION 19182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19183 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 19184 19185 # Provide generalized library-building support services. 19186 # Written by Gordon Matzigkeit, 1996 19187 19188 # Copyright (C) 2014 Free Software Foundation, Inc. 19189 # This is free software; see the source for copying conditions. There is NO 19190 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19191 19192 # GNU Libtool is free software; you can redistribute it and/or modify 19193 # it under the terms of the GNU General Public License as published by 19194 # the Free Software Foundation; either version 2 of of the License, or 19195 # (at your option) any later version. 19196 # 19197 # As a special exception to the GNU General Public License, if you 19198 # distribute this file as part of a program or library that is built 19199 # using GNU Libtool, you may include this file under the same 19200 # distribution terms that you use for the rest of that program. 19201 # 19202 # GNU Libtool is distributed in the hope that it will be useful, but 19203 # WITHOUT ANY WARRANTY; without even the implied warranty of 19204 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19205 # GNU General Public License for more details. 19206 # 19207 # You should have received a copy of the GNU General Public License 19208 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19209 19210 19211 # The names of the tagged configurations supported by this script. 19212 available_tags='CXX ' 19213 19214 # Configured defaults for sys_lib_dlsearch_path munging. 19215 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19216 19217 # ### BEGIN LIBTOOL CONFIG 19218 19219 # Assembler program. 19220 AS=$lt_AS 19221 19222 # DLL creation program. 19223 DLLTOOL=$lt_DLLTOOL 19224 19225 # Object dumper program. 19226 OBJDUMP=$lt_OBJDUMP 19227 19228 # Which release of libtool.m4 was used? 19229 macro_version=$macro_version 19230 macro_revision=$macro_revision 19231 19232 # Whether or not to build shared libraries. 19233 build_libtool_libs=$enable_shared 19234 19235 # Whether or not to build static libraries. 19236 build_old_libs=$enable_static 19237 19238 # What type of objects to build. 19239 pic_mode=$pic_mode 19240 19241 # Whether or not to optimize for fast installation. 19242 fast_install=$enable_fast_install 19243 19244 # Shared archive member basename,for filename based shared library versioning on AIX. 19245 shared_archive_member_spec=$shared_archive_member_spec 19246 19247 # Shell to use when invoking shell scripts. 19248 SHELL=$lt_SHELL 19249 19250 # An echo program that protects backslashes. 19251 ECHO=$lt_ECHO 19252 19253 # The PATH separator for the build system. 19254 PATH_SEPARATOR=$lt_PATH_SEPARATOR 19255 19256 # The host system. 19257 host_alias=$host_alias 19258 host=$host 19259 host_os=$host_os 19260 19261 # The build system. 19262 build_alias=$build_alias 19263 build=$build 19264 build_os=$build_os 19265 19266 # A sed program that does not truncate output. 19267 SED=$lt_SED 19268 19269 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 19270 Xsed="\$SED -e 1s/^X//" 19271 19272 # A grep program that handles long lines. 19273 GREP=$lt_GREP 19274 19275 # An ERE matcher. 19276 EGREP=$lt_EGREP 19277 19278 # A literal string matcher. 19279 FGREP=$lt_FGREP 19280 19281 # A BSD- or MS-compatible name lister. 19282 NM=$lt_NM 19283 19284 # Whether we need soft or hard links. 19285 LN_S=$lt_LN_S 19286 19287 # What is the maximum length of a command? 19288 max_cmd_len=$max_cmd_len 19289 19290 # Object file suffix (normally "o"). 19291 objext=$ac_objext 19292 19293 # Executable file suffix (normally ""). 19294 exeext=$exeext 19295 19296 # whether the shell understands "unset". 19297 lt_unset=$lt_unset 19298 19299 # turn spaces into newlines. 19300 SP2NL=$lt_lt_SP2NL 19301 19302 # turn newlines into spaces. 19303 NL2SP=$lt_lt_NL2SP 19304 19305 # convert \$build file names to \$host format. 19306 to_host_file_cmd=$lt_cv_to_host_file_cmd 19307 19308 # convert \$build files to toolchain format. 19309 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19310 19311 # Method to check whether dependent libraries are shared objects. 19312 deplibs_check_method=$lt_deplibs_check_method 19313 19314 # Command to use when deplibs_check_method = "file_magic". 19315 file_magic_cmd=$lt_file_magic_cmd 19316 19317 # How to find potential files when deplibs_check_method = "file_magic". 19318 file_magic_glob=$lt_file_magic_glob 19319 19320 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19321 want_nocaseglob=$lt_want_nocaseglob 19322 19323 # Command to associate shared and link libraries. 19324 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19325 19326 # The archiver. 19327 AR=$lt_AR 19328 19329 # Flags to create an archive. 19330 AR_FLAGS=$lt_AR_FLAGS 19331 19332 # How to feed a file listing to the archiver. 19333 archiver_list_spec=$lt_archiver_list_spec 19334 19335 # A symbol stripping program. 19336 STRIP=$lt_STRIP 19337 19338 # Commands used to install an old-style archive. 19339 RANLIB=$lt_RANLIB 19340 old_postinstall_cmds=$lt_old_postinstall_cmds 19341 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19342 19343 # Whether to use a lock for old archive extraction. 19344 lock_old_archive_extraction=$lock_old_archive_extraction 19345 19346 # A C compiler. 19347 LTCC=$lt_CC 19348 19349 # LTCC compiler flags. 19350 LTCFLAGS=$lt_CFLAGS 19351 19352 # Take the output of nm and produce a listing of raw symbols and C names. 19353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19354 19355 # Transform the output of nm in a proper C declaration. 19356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19357 19358 # Transform the output of nm into a list of symbols to manually relocate. 19359 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19360 19361 # Transform the output of nm in a C name address pair. 19362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19363 19364 # Transform the output of nm in a C name address pair when lib prefix is needed. 19365 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19366 19367 # The name lister interface. 19368 nm_interface=$lt_lt_cv_nm_interface 19369 19370 # Specify filename containing input files for \$NM. 19371 nm_file_list_spec=$lt_nm_file_list_spec 19372 19373 # The root where to search for dependent libraries,and where our libraries should be installed. 19374 lt_sysroot=$lt_sysroot 19375 19376 # Command to truncate a binary pipe. 19377 lt_truncate_bin=$lt_lt_cv_truncate_bin 19378 19379 # The name of the directory that contains temporary libtool files. 19380 objdir=$objdir 19381 19382 # Used to examine libraries when file_magic_cmd begins with "file". 19383 MAGIC_CMD=$MAGIC_CMD 19384 19385 # Must we lock files when doing compilation? 19386 need_locks=$lt_need_locks 19387 19388 # Manifest tool. 19389 MANIFEST_TOOL=$lt_MANIFEST_TOOL 19390 19391 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19392 DSYMUTIL=$lt_DSYMUTIL 19393 19394 # Tool to change global to local symbols on Mac OS X. 19395 NMEDIT=$lt_NMEDIT 19396 19397 # Tool to manipulate fat objects and archives on Mac OS X. 19398 LIPO=$lt_LIPO 19399 19400 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19401 OTOOL=$lt_OTOOL 19402 19403 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19404 OTOOL64=$lt_OTOOL64 19405 19406 # Old archive suffix (normally "a"). 19407 libext=$libext 19408 19409 # Shared library suffix (normally ".so"). 19410 shrext_cmds=$lt_shrext_cmds 19411 19412 # The commands to extract the exported symbol list from a shared archive. 19413 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19414 19415 # Variables whose values should be saved in libtool wrapper scripts and 19416 # restored at link time. 19417 variables_saved_for_relink=$lt_variables_saved_for_relink 19418 19419 # Do we need the "lib" prefix for modules? 19420 need_lib_prefix=$need_lib_prefix 19421 19422 # Do we need a version for libraries? 19423 need_version=$need_version 19424 19425 # Library versioning type. 19426 version_type=$version_type 19427 19428 # Shared library runtime path variable. 19429 runpath_var=$runpath_var 19430 19431 # Shared library path variable. 19432 shlibpath_var=$shlibpath_var 19433 19434 # Is shlibpath searched before the hard-coded library search path? 19435 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19436 19437 # Format of library name prefix. 19438 libname_spec=$lt_libname_spec 19439 19440 # List of archive names. First name is the real one, the rest are links. 19441 # The last name is the one that the linker finds with -lNAME 19442 library_names_spec=$lt_library_names_spec 19443 19444 # The coded name of the library, if different from the real name. 19445 soname_spec=$lt_soname_spec 19446 19447 # Permission mode override for installation of shared libraries. 19448 install_override_mode=$lt_install_override_mode 19449 19450 # Command to use after installation of a shared archive. 19451 postinstall_cmds=$lt_postinstall_cmds 19452 19453 # Command to use after uninstallation of a shared archive. 19454 postuninstall_cmds=$lt_postuninstall_cmds 19455 19456 # Commands used to finish a libtool library installation in a directory. 19457 finish_cmds=$lt_finish_cmds 19458 19459 # As "finish_cmds", except a single script fragment to be evaled but 19460 # not shown. 19461 finish_eval=$lt_finish_eval 19462 19463 # Whether we should hardcode library paths into libraries. 19464 hardcode_into_libs=$hardcode_into_libs 19465 19466 # Compile-time system search path for libraries. 19467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19468 19469 # Detected run-time system search path for libraries. 19470 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19471 19472 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19473 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19474 19475 # Whether dlopen is supported. 19476 dlopen_support=$enable_dlopen 19477 19478 # Whether dlopen of programs is supported. 19479 dlopen_self=$enable_dlopen_self 19480 19481 # Whether dlopen of statically linked programs is supported. 19482 dlopen_self_static=$enable_dlopen_self_static 19483 19484 # Commands to strip libraries. 19485 old_striplib=$lt_old_striplib 19486 striplib=$lt_striplib 19487 19488 19489 # The linker used to build libraries. 19490 LD=$lt_LD 19491 19492 # How to create reloadable object files. 19493 reload_flag=$lt_reload_flag 19494 reload_cmds=$lt_reload_cmds 19495 19496 # Commands used to build an old-style archive. 19497 old_archive_cmds=$lt_old_archive_cmds 19498 19499 # A language specific compiler. 19500 CC=$lt_compiler 19501 19502 # Is the compiler the GNU compiler? 19503 with_gcc=$GCC 19504 19505 # Compiler flag to turn off builtin functions. 19506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19507 19508 # Additional compiler flags for building library objects. 19509 pic_flag=$lt_lt_prog_compiler_pic 19510 19511 # How to pass a linker flag through the compiler. 19512 wl=$lt_lt_prog_compiler_wl 19513 19514 # Compiler flag to prevent dynamic linking. 19515 link_static_flag=$lt_lt_prog_compiler_static 19516 19517 # Does compiler simultaneously support -c and -o options? 19518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19519 19520 # Whether or not to add -lc for building shared libraries. 19521 build_libtool_need_lc=$archive_cmds_need_lc 19522 19523 # Whether or not to disallow shared libs when runtime libs are static. 19524 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19525 19526 # Compiler flag to allow reflexive dlopens. 19527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19528 19529 # Compiler flag to generate shared objects directly from archives. 19530 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19531 19532 # Whether the compiler copes with passing no objects directly. 19533 compiler_needs_object=$lt_compiler_needs_object 19534 19535 # Create an old-style archive from a shared archive. 19536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19537 19538 # Create a temporary old-style archive to link instead of a shared archive. 19539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19540 19541 # Commands used to build a shared archive. 19542 archive_cmds=$lt_archive_cmds 19543 archive_expsym_cmds=$lt_archive_expsym_cmds 19544 19545 # Commands used to build a loadable module if different from building 19546 # a shared archive. 19547 module_cmds=$lt_module_cmds 19548 module_expsym_cmds=$lt_module_expsym_cmds 19549 19550 # Whether we are building with GNU ld or not. 19551 with_gnu_ld=$lt_with_gnu_ld 19552 19553 # Flag that allows shared libraries with undefined symbols to be built. 19554 allow_undefined_flag=$lt_allow_undefined_flag 19555 19556 # Flag that enforces no undefined symbols. 19557 no_undefined_flag=$lt_no_undefined_flag 19558 19559 # Flag to hardcode \$libdir into a binary during linking. 19560 # This must work even if \$libdir does not exist 19561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19562 19563 # Whether we need a single "-rpath" flag with a separated argument. 19564 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19565 19566 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19567 # DIR into the resulting binary. 19568 hardcode_direct=$hardcode_direct 19569 19570 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19571 # DIR into the resulting binary and the resulting library dependency is 19572 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 19573 # library is relocated. 19574 hardcode_direct_absolute=$hardcode_direct_absolute 19575 19576 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19577 # into the resulting binary. 19578 hardcode_minus_L=$hardcode_minus_L 19579 19580 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19581 # into the resulting binary. 19582 hardcode_shlibpath_var=$hardcode_shlibpath_var 19583 19584 # Set to "yes" if building a shared library automatically hardcodes DIR 19585 # into the library and all subsequent libraries and executables linked 19586 # against it. 19587 hardcode_automatic=$hardcode_automatic 19588 19589 # Set to yes if linker adds runtime paths of dependent libraries 19590 # to runtime path list. 19591 inherit_rpath=$inherit_rpath 19592 19593 # Whether libtool must link a program against all its dependency libraries. 19594 link_all_deplibs=$link_all_deplibs 19595 19596 # Set to "yes" if exported symbols are required. 19597 always_export_symbols=$always_export_symbols 19598 19599 # The commands to list exported symbols. 19600 export_symbols_cmds=$lt_export_symbols_cmds 19601 19602 # Symbols that should not be listed in the preloaded symbols. 19603 exclude_expsyms=$lt_exclude_expsyms 19604 19605 # Symbols that must always be exported. 19606 include_expsyms=$lt_include_expsyms 19607 19608 # Commands necessary for linking programs (against libraries) with templates. 19609 prelink_cmds=$lt_prelink_cmds 19610 19611 # Commands necessary for finishing linking programs. 19612 postlink_cmds=$lt_postlink_cmds 19613 19614 # Specify filename containing input files. 19615 file_list_spec=$lt_file_list_spec 19616 19617 # How to hardcode a shared library path into an executable. 19618 hardcode_action=$hardcode_action 19619 19620 # The directories searched by this compiler when creating a shared library. 19621 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19622 19623 # Dependencies to place before and after the objects being linked to 19624 # create a shared library. 19625 predep_objects=$lt_predep_objects 19626 postdep_objects=$lt_postdep_objects 19627 predeps=$lt_predeps 19628 postdeps=$lt_postdeps 19629 19630 # The library search path used internally by the compiler when linking 19631 # a shared library. 19632 compiler_lib_search_path=$lt_compiler_lib_search_path 19633 19634 # ### END LIBTOOL CONFIG 19635 19636 _LT_EOF 19637 19638 cat <<'_LT_EOF' >> "$cfgfile" 19639 19640 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19641 19642 # func_munge_path_list VARIABLE PATH 19643 # ----------------------------------- 19644 # VARIABLE is name of variable containing _space_ separated list of 19645 # directories to be munged by the contents of PATH, which is string 19646 # having a format: 19647 # "DIR[:DIR]:" 19648 # string "DIR[ DIR]" will be prepended to VARIABLE 19649 # ":DIR[:DIR]" 19650 # string "DIR[ DIR]" will be appended to VARIABLE 19651 # "DIRP[:DIRP]::[DIRA:]DIRA" 19652 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19653 # "DIRA[ DIRA]" will be appended to VARIABLE 19654 # "DIR[:DIR]" 19655 # VARIABLE will be replaced by "DIR[ DIR]" 19656 func_munge_path_list () 19657 { 19658 case x$2 in 19659 x) 19660 ;; 19661 *:) 19662 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19663 ;; 19664 x:*) 19665 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19666 ;; 19667 *::*) 19668 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19669 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19670 ;; 19671 *) 19672 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19673 ;; 19674 esac 19675 } 19676 19677 19678 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19679 func_cc_basename () 19680 { 19681 for cc_temp in $*""; do 19682 case $cc_temp in 19683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19685 \-*) ;; 19686 *) break;; 19687 esac 19688 done 19689 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19690 } 19691 19692 19693 # ### END FUNCTIONS SHARED WITH CONFIGURE 19694 19695 _LT_EOF 19696 19697 case $host_os in 19698 aix3*) 19699 cat <<\_LT_EOF >> "$cfgfile" 19700 # AIX sometimes has problems with the GCC collect2 program. For some 19701 # reason, if we set the COLLECT_NAMES environment variable, the problems 19702 # vanish in a puff of smoke. 19703 if test set != "${COLLECT_NAMES+set}"; then 19704 COLLECT_NAMES= 19705 export COLLECT_NAMES 19706 fi 19707 _LT_EOF 19708 ;; 19709 esac 19710 19711 19712 ltmain=$ac_aux_dir/ltmain.sh 19713 19714 19715 # We use sed instead of cat because bash on DJGPP gets confused if 19716 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19717 # text mode, it properly converts lines to CR/LF. This bash problem 19718 # is reportedly fixed, but why not run on old versions too? 19719 sed '$q' "$ltmain" >> "$cfgfile" \ 19720 || (rm -f "$cfgfile"; exit 1) 19721 19722 mv -f "$cfgfile" "$ofile" || 19723 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19724 chmod +x "$ofile" 19725 19726 19727 cat <<_LT_EOF >> "$ofile" 19728 19729 # ### BEGIN LIBTOOL TAG CONFIG: CXX 19730 19731 # The linker used to build libraries. 19732 LD=$lt_LD_CXX 19733 19734 # How to create reloadable object files. 19735 reload_flag=$lt_reload_flag_CXX 19736 reload_cmds=$lt_reload_cmds_CXX 19737 19738 # Commands used to build an old-style archive. 19739 old_archive_cmds=$lt_old_archive_cmds_CXX 19740 19741 # A language specific compiler. 19742 CC=$lt_compiler_CXX 19743 19744 # Is the compiler the GNU compiler? 19745 with_gcc=$GCC_CXX 19746 19747 # Compiler flag to turn off builtin functions. 19748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19749 19750 # Additional compiler flags for building library objects. 19751 pic_flag=$lt_lt_prog_compiler_pic_CXX 19752 19753 # How to pass a linker flag through the compiler. 19754 wl=$lt_lt_prog_compiler_wl_CXX 19755 19756 # Compiler flag to prevent dynamic linking. 19757 link_static_flag=$lt_lt_prog_compiler_static_CXX 19758 19759 # Does compiler simultaneously support -c and -o options? 19760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19761 19762 # Whether or not to add -lc for building shared libraries. 19763 build_libtool_need_lc=$archive_cmds_need_lc_CXX 19764 19765 # Whether or not to disallow shared libs when runtime libs are static. 19766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19767 19768 # Compiler flag to allow reflexive dlopens. 19769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19770 19771 # Compiler flag to generate shared objects directly from archives. 19772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19773 19774 # Whether the compiler copes with passing no objects directly. 19775 compiler_needs_object=$lt_compiler_needs_object_CXX 19776 19777 # Create an old-style archive from a shared archive. 19778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19779 19780 # Create a temporary old-style archive to link instead of a shared archive. 19781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19782 19783 # Commands used to build a shared archive. 19784 archive_cmds=$lt_archive_cmds_CXX 19785 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19786 19787 # Commands used to build a loadable module if different from building 19788 # a shared archive. 19789 module_cmds=$lt_module_cmds_CXX 19790 module_expsym_cmds=$lt_module_expsym_cmds_CXX 19791 19792 # Whether we are building with GNU ld or not. 19793 with_gnu_ld=$lt_with_gnu_ld_CXX 19794 19795 # Flag that allows shared libraries with undefined symbols to be built. 19796 allow_undefined_flag=$lt_allow_undefined_flag_CXX 19797 19798 # Flag that enforces no undefined symbols. 19799 no_undefined_flag=$lt_no_undefined_flag_CXX 19800 19801 # Flag to hardcode \$libdir into a binary during linking. 19802 # This must work even if \$libdir does not exist 19803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19804 19805 # Whether we need a single "-rpath" flag with a separated argument. 19806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19807 19808 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19809 # DIR into the resulting binary. 19810 hardcode_direct=$hardcode_direct_CXX 19811 19812 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19813 # DIR into the resulting binary and the resulting library dependency is 19814 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 19815 # library is relocated. 19816 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19817 19818 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19819 # into the resulting binary. 19820 hardcode_minus_L=$hardcode_minus_L_CXX 19821 19822 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19823 # into the resulting binary. 19824 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19825 19826 # Set to "yes" if building a shared library automatically hardcodes DIR 19827 # into the library and all subsequent libraries and executables linked 19828 # against it. 19829 hardcode_automatic=$hardcode_automatic_CXX 19830 19831 # Set to yes if linker adds runtime paths of dependent libraries 19832 # to runtime path list. 19833 inherit_rpath=$inherit_rpath_CXX 19834 19835 # Whether libtool must link a program against all its dependency libraries. 19836 link_all_deplibs=$link_all_deplibs_CXX 19837 19838 # Set to "yes" if exported symbols are required. 19839 always_export_symbols=$always_export_symbols_CXX 19840 19841 # The commands to list exported symbols. 19842 export_symbols_cmds=$lt_export_symbols_cmds_CXX 19843 19844 # Symbols that should not be listed in the preloaded symbols. 19845 exclude_expsyms=$lt_exclude_expsyms_CXX 19846 19847 # Symbols that must always be exported. 19848 include_expsyms=$lt_include_expsyms_CXX 19849 19850 # Commands necessary for linking programs (against libraries) with templates. 19851 prelink_cmds=$lt_prelink_cmds_CXX 19852 19853 # Commands necessary for finishing linking programs. 19854 postlink_cmds=$lt_postlink_cmds_CXX 19855 19856 # Specify filename containing input files. 19857 file_list_spec=$lt_file_list_spec_CXX 19858 19859 # How to hardcode a shared library path into an executable. 19860 hardcode_action=$hardcode_action_CXX 19861 19862 # The directories searched by this compiler when creating a shared library. 19863 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19864 19865 # Dependencies to place before and after the objects being linked to 19866 # create a shared library. 19867 predep_objects=$lt_predep_objects_CXX 19868 postdep_objects=$lt_postdep_objects_CXX 19869 predeps=$lt_predeps_CXX 19870 postdeps=$lt_postdeps_CXX 19871 19872 # The library search path used internally by the compiler when linking 19873 # a shared library. 19874 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19875 19876 # ### END LIBTOOL TAG CONFIG: CXX 19877 _LT_EOF 19878 19879 ;; 19880 "run.sh":F) chmod +x run.sh ;; 19881 19882 esac 19883 done # for ac_tag 19884 19885 19886 as_fn_exit 0 19887 _ACEOF 19888 ac_clean_files=$ac_clean_files_save 19889 19890 test $ac_write_fail = 0 || 19891 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19892 19893 19894 # configure is writing to config.log, and then calls config.status. 19895 # config.status does its own redirection, appending to config.log. 19896 # Unfortunately, on DOS this fails, as config.log is still kept open 19897 # by configure, so config.status won't be able to write to it; its 19898 # output is simply discarded. So we exec the FD to /dev/null, 19899 # effectively closing config.log, so it can be properly (re)opened and 19900 # appended to by config.status. When coming back to configure, we 19901 # need to make the FD available again. 19902 if test "$no_create" != yes; then 19903 ac_cs_success=: 19904 ac_config_status_args= 19905 test "$silent" = yes && 19906 ac_config_status_args="$ac_config_status_args --quiet" 19907 exec 5>/dev/null 19908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19909 exec 5>>config.log 19910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19911 # would make configure fail if this is the last instruction. 19912 $ac_cs_success || as_fn_exit 1 19913 fi 19914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19917 fi 19918 19919