| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.60 (OpenPKG-CURRENT). |
| 4 | # |
| 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
| 20 | setopt NO_GLOB_SUBST |
| 21 | else |
| 22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 23 | fi |
| 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 25 | DUALCASE=1; export DUALCASE # for MKS sh |
| 26 | |
| 27 | |
| 28 | # PATH needs CR |
| 29 | # Avoid depending upon Character Ranges. |
| 30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33 | as_cr_digits='0123456789' |
| 34 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 35 | |
| 36 | # The user is always right. |
| 37 | if test "${PATH_SEPARATOR+set}" != set; then |
| 38 | echo "#! /bin/sh" >conf$$.sh |
| 39 | echo "exit 0" >>conf$$.sh |
| 40 | chmod +x conf$$.sh |
| 41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 42 | PATH_SEPARATOR=';' |
| 43 | else |
| 44 | PATH_SEPARATOR=: |
| 45 | fi |
| 46 | rm -f conf$$.sh |
| 47 | fi |
| 48 | |
| 49 | # Support unset when possible. |
| 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 51 | as_unset=unset |
| 52 | else |
| 53 | as_unset=false |
| 54 | fi |
| 55 | |
| 56 | |
| 57 | # IFS |
| 58 | # We need space, tab and new line, in precisely that order. Quoting is |
| 59 | # there to prevent editors from complaining about space-tab. |
| 60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 61 | # splitting by setting IFS to empty value.) |
| 62 | as_nl=' |
| 63 | ' |
| 64 | IFS=" "" $as_nl" |
| 65 | |
| 66 | # Find who we are. Look in the path if we contain no directory separator. |
| 67 | case $0 in |
| 68 | *[\\/]* ) as_myself=$0 ;; |
| 69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 70 | for as_dir in $PATH |
| 71 | do |
| 72 | IFS=$as_save_IFS |
| 73 | test -z "$as_dir" && as_dir=. |
| 74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 75 | done |
| 76 | IFS=$as_save_IFS |
| 77 | |
| 78 | ;; |
| 79 | esac |
| 80 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 81 | # in which case we are not to be found in the path. |
| 82 | if test "x$as_myself" = x; then |
| 83 | as_myself=$0 |
| 84 | fi |
| 85 | if test ! -f "$as_myself"; then |
| 86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 87 | { (exit 1); exit 1; } |
| 88 | fi |
| 89 | |
| 90 | # Work around bugs in pre-3.0 UWIN ksh. |
| 91 | for as_var in ENV MAIL MAILPATH |
| 92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 93 | done |
| 94 | PS1='$ ' |
| 95 | PS2='> ' |
| 96 | PS4='+ ' |
| 97 | |
| 98 | # NLS nuisances. |
| 99 | for as_var in \ |
| 100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 102 | LC_TELEPHONE LC_TIME |
| 103 | do |
| 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 105 | eval $as_var=C; export $as_var |
| 106 | else |
| 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 108 | fi |
| 109 | done |
| 110 | |
| 111 | # Required to use basename. |
| 112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 114 | as_expr=expr |
| 115 | else |
| 116 | as_expr=false |
| 117 | fi |
| 118 | |
| 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 120 | as_basename=basename |
| 121 | else |
| 122 | as_basename=false |
| 123 | fi |
| 124 | |
| 125 | |
| 126 | # Name of the executable. |
| 127 | as_me=`$as_basename -- "$0" || |
| 128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 129 | X"$0" : 'X\(//\)$' \| \ |
| 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 131 | echo X/"$0" | |
| 132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 133 | s//\1/ |
| 134 | q |
| 135 | } |
| 136 | /^X\/\(\/\/\)$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\).*/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | s/.*/./; q'` |
| 145 | |
| 146 | # CDPATH. |
| 147 | $as_unset CDPATH |
| 148 | |
| 149 | |
| 150 | if test "x$CONFIG_SHELL" = x; then |
| 151 | if (eval ":") 2>/dev/null; then |
| 152 | as_have_required=yes |
| 153 | else |
| 154 | as_have_required=no |
| 155 | fi |
| 156 | |
| 157 | if test $as_have_required = yes && (eval ": |
| 158 | (as_func_return () { |
| 159 | (exit \$1) |
| 160 | } |
| 161 | as_func_success () { |
| 162 | as_func_return 0 |
| 163 | } |
| 164 | as_func_failure () { |
| 165 | as_func_return 1 |
| 166 | } |
| 167 | as_func_ret_success () { |
| 168 | return 0 |
| 169 | } |
| 170 | as_func_ret_failure () { |
| 171 | return 1 |
| 172 | } |
| 173 | |
| 174 | exitcode=0 |
| 175 | if as_func_success; then |
| 176 | : |
| 177 | else |
| 178 | exitcode=1 |
| 179 | echo as_func_success failed. |
| 180 | fi |
| 181 | |
| 182 | if as_func_failure; then |
| 183 | exitcode=1 |
| 184 | echo as_func_failure succeeded. |
| 185 | fi |
| 186 | |
| 187 | if as_func_ret_success; then |
| 188 | : |
| 189 | else |
| 190 | exitcode=1 |
| 191 | echo as_func_ret_success failed. |
| 192 | fi |
| 193 | |
| 194 | if as_func_ret_failure; then |
| 195 | exitcode=1 |
| 196 | echo as_func_ret_failure succeeded. |
| 197 | fi |
| 198 | |
| 199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 200 | : |
| 201 | else |
| 202 | exitcode=1 |
| 203 | echo positional parameters were not saved. |
| 204 | fi |
| 205 | |
| 206 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 207 | |
| 208 | ( |
| 209 | as_lineno_1=\$LINENO |
| 210 | as_lineno_2=\$LINENO |
| 211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 213 | ") 2> /dev/null; then |
| 214 | : |
| 215 | else |
| 216 | as_candidate_shells= |
| 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 219 | do |
| 220 | IFS=$as_save_IFS |
| 221 | test -z "$as_dir" && as_dir=. |
| 222 | case $as_dir in |
| 223 | /*) |
| 224 | for as_base in sh bash ksh sh5; do |
| 225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 226 | done;; |
| 227 | esac |
| 228 | done |
| 229 | IFS=$as_save_IFS |
| 230 | |
| 231 | |
| 232 | for as_shell in $as_candidate_shells $SHELL; do |
| 233 | # Try only shells that exist, to save several forks. |
| 234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 235 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 236 | # Be Bourne compatible |
| 237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 238 | emulate sh |
| 239 | NULLCMD=: |
| 240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 241 | # is contrary to our usage. Disable this feature. |
| 242 | alias -g '${1+"$@"}'='"$@"' |
| 243 | setopt NO_GLOB_SUBST |
| 244 | else |
| 245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 246 | fi |
| 247 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 248 | DUALCASE=1; export DUALCASE # for MKS sh |
| 249 | |
| 250 | : |
| 251 | _ASEOF |
| 252 | }; then |
| 253 | CONFIG_SHELL=$as_shell |
| 254 | as_have_required=yes |
| 255 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 256 | # Be Bourne compatible |
| 257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 258 | emulate sh |
| 259 | NULLCMD=: |
| 260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 261 | # is contrary to our usage. Disable this feature. |
| 262 | alias -g '${1+"$@"}'='"$@"' |
| 263 | setopt NO_GLOB_SUBST |
| 264 | else |
| 265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 266 | fi |
| 267 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 268 | DUALCASE=1; export DUALCASE # for MKS sh |
| 269 | |
| 270 | : |
| 271 | (as_func_return () { |
| 272 | (exit $1) |
| 273 | } |
| 274 | as_func_success () { |
| 275 | as_func_return 0 |
| 276 | } |
| 277 | as_func_failure () { |
| 278 | as_func_return 1 |
| 279 | } |
| 280 | as_func_ret_success () { |
| 281 | return 0 |
| 282 | } |
| 283 | as_func_ret_failure () { |
| 284 | return 1 |
| 285 | } |
| 286 | |
| 287 | exitcode=0 |
| 288 | if as_func_success; then |
| 289 | : |
| 290 | else |
| 291 | exitcode=1 |
| 292 | echo as_func_success failed. |
| 293 | fi |
| 294 | |
| 295 | if as_func_failure; then |
| 296 | exitcode=1 |
| 297 | echo as_func_failure succeeded. |
| 298 | fi |
| 299 | |
| 300 | if as_func_ret_success; then |
| 301 | : |
| 302 | else |
| 303 | exitcode=1 |
| 304 | echo as_func_ret_success failed. |
| 305 | fi |
| 306 | |
| 307 | if as_func_ret_failure; then |
| 308 | exitcode=1 |
| 309 | echo as_func_ret_failure succeeded. |
| 310 | fi |
| 311 | |
| 312 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 313 | : |
| 314 | else |
| 315 | exitcode=1 |
| 316 | echo positional parameters were not saved. |
| 317 | fi |
| 318 | |
| 319 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 320 | |
| 321 | ( |
| 322 | as_lineno_1=$LINENO |
| 323 | as_lineno_2=$LINENO |
| 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 326 | |
| 327 | _ASEOF |
| 328 | }; then |
| 329 | break |
| 330 | fi |
| 331 | |
| 332 | fi |
| 333 | |
| 334 | done |
| 335 | |
| 336 | if test "x$CONFIG_SHELL" != x; then |
| 337 | for as_var in BASH_ENV ENV |
| 338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 339 | done |
| 340 | export CONFIG_SHELL |
| 341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 342 | fi |
| 343 | |
| 344 | |
| 345 | if test $as_have_required = no; then |
| 346 | echo This script requires a shell more modern than all the |
| 347 | echo shells that I found on your system. Please install a |
| 348 | echo modern shell, or manually run the script under such a |
| 349 | echo shell if you do have one. |
| 350 | { (exit 1); exit 1; } |
| 351 | fi |
| 352 | |
| 353 | |
| 354 | fi |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | |
| 359 | |
| 360 | (eval "as_func_return () { |
| 361 | (exit \$1) |
| 362 | } |
| 363 | as_func_success () { |
| 364 | as_func_return 0 |
| 365 | } |
| 366 | as_func_failure () { |
| 367 | as_func_return 1 |
| 368 | } |
| 369 | as_func_ret_success () { |
| 370 | return 0 |
| 371 | } |
| 372 | as_func_ret_failure () { |
| 373 | return 1 |
| 374 | } |
| 375 | |
| 376 | exitcode=0 |
| 377 | if as_func_success; then |
| 378 | : |
| 379 | else |
| 380 | exitcode=1 |
| 381 | echo as_func_success failed. |
| 382 | fi |
| 383 | |
| 384 | if as_func_failure; then |
| 385 | exitcode=1 |
| 386 | echo as_func_failure succeeded. |
| 387 | fi |
| 388 | |
| 389 | if as_func_ret_success; then |
| 390 | : |
| 391 | else |
| 392 | exitcode=1 |
| 393 | echo as_func_ret_success failed. |
| 394 | fi |
| 395 | |
| 396 | if as_func_ret_failure; then |
| 397 | exitcode=1 |
| 398 | echo as_func_ret_failure succeeded. |
| 399 | fi |
| 400 | |
| 401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 402 | : |
| 403 | else |
| 404 | exitcode=1 |
| 405 | echo positional parameters were not saved. |
| 406 | fi |
| 407 | |
| 408 | test \$exitcode = 0") || { |
| 409 | echo No shell found that supports shell functions. |
| 410 | echo Please tell [email protected] about your system, |
| 411 | echo including any error possibly output before this |
| 412 | echo message |
| 413 | } |
| 414 | |
| 415 | |
| 416 | |
| 417 | as_lineno_1=$LINENO |
| 418 | as_lineno_2=$LINENO |
| 419 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 421 | |
| 422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 423 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 424 | # line-number line after each line using $LINENO; the second 'sed' |
| 425 | # does the real work. The second script uses 'N' to pair each |
| 426 | # line-number line with the line containing $LINENO, and appends |
| 427 | # trailing '-' during substitution so that $LINENO is not a special |
| 428 | # case at line end. |
| 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 431 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 432 | sed -n ' |
| 433 | p |
| 434 | /[$]LINENO/= |
| 435 | ' <$as_myself | |
| 436 | sed ' |
| 437 | s/[$]LINENO.*/&-/ |
| 438 | t lineno |
| 439 | b |
| 440 | :lineno |
| 441 | N |
| 442 | :loop |
| 443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 444 | t loop |
| 445 | s/-\n.*// |
| 446 | ' >$as_me.lineno && |
| 447 | chmod +x "$as_me.lineno" || |
| 448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 449 | { (exit 1); exit 1; }; } |
| 450 | |
| 451 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 452 | # (the dirname of $[0] is not the place where we might find the |
| 453 | # original and so on. Autoconf is especially sensitive to this). |
| 454 | . "./$as_me.lineno" |
| 455 | # Exit status is that of the last command. |
| 456 | exit |
| 457 | } |
| 458 | |
| 459 | |
| 460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 461 | as_dirname=dirname |
| 462 | else |
| 463 | as_dirname=false |
| 464 | fi |
| 465 | |
| 466 | ECHO_C= ECHO_N= ECHO_T= |
| 467 | case `echo -n x` in |
| 468 | -n*) |
| 469 | case `echo 'x\c'` in |
| 470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 471 | *) ECHO_C='\c';; |
| 472 | esac;; |
| 473 | *) |
| 474 | ECHO_N='-n';; |
| 475 | esac |
| 476 | |
| 477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 479 | as_expr=expr |
| 480 | else |
| 481 | as_expr=false |
| 482 | fi |
| 483 | |
| 484 | rm -f conf$$ conf$$.exe conf$$.file |
| 485 | if test -d conf$$.dir; then |
| 486 | rm -f conf$$.dir/conf$$.file |
| 487 | else |
| 488 | rm -f conf$$.dir |
| 489 | mkdir conf$$.dir |
| 490 | fi |
| 491 | echo >conf$$.file |
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 493 | as_ln_s='ln -s' |
| 494 | # ... but there are two gotchas: |
| 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 497 | # In both cases, we have to default to `cp -p'. |
| 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 499 | as_ln_s='cp -p' |
| 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 501 | as_ln_s=ln |
| 502 | else |
| 503 | as_ln_s='cp -p' |
| 504 | fi |
| 505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 506 | rmdir conf$$.dir 2>/dev/null |
| 507 | |
| 508 | if mkdir -p . 2>/dev/null; then |
| 509 | as_mkdir_p=: |
| 510 | else |
| 511 | test -d ./-p && rmdir ./-p |
| 512 | as_mkdir_p=false |
| 513 | fi |
| 514 | |
| 515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 516 | # systems may use methods other than mode bits to determine executability. |
| 517 | cat >conf$$.file <<_ASEOF |
| 518 | #! /bin/sh |
| 519 | exit 0 |
| 520 | _ASEOF |
| 521 | chmod +x conf$$.file |
| 522 | if test -x conf$$.file >/dev/null 2>&1; then |
| 523 | as_executable_p="test -x" |
| 524 | else |
| 525 | as_executable_p=: |
| 526 | fi |
| 527 | rm -f conf$$.file |
| 528 | |
| 529 | # Sed expression to map a string onto a valid CPP name. |
| 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 531 | |
| 532 | # Sed expression to map a string onto a valid variable name. |
| 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 534 | |
| 535 | |
| 536 | |
| 537 | |
| 538 | # Check that we are running under the correct shell. |
| 539 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 540 | |
| 541 | case X$ECHO in |
| 542 | X*--fallback-echo) |
| 543 | # Remove one level of quotation (which was required for Make). |
| 544 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 545 | ;; |
| 546 | esac |
| 547 | |
| 548 | echo=${ECHO-echo} |
| 549 | if test "X$1" = X--no-reexec; then |
| 550 | # Discard the --no-reexec flag, and continue. |
| 551 | shift |
| 552 | elif test "X$1" = X--fallback-echo; then |
| 553 | # Avoid inline document here, it may be left over |
| 554 | : |
| 555 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 556 | # Yippee, $echo works! |
| 557 | : |
| 558 | else |
| 559 | # Restart under the correct shell. |
| 560 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 561 | fi |
| 562 | |
| 563 | if test "X$1" = X--fallback-echo; then |
| 564 | # used as fallback echo |
| 565 | shift |
| 566 | cat <<EOF |
| 567 | $* |
| 568 | EOF |
| 569 | exit 0 |
| 570 | fi |
| 571 | |
| 572 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 573 | # if CDPATH is set. |
| 574 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 575 | |
| 576 | if test -z "$ECHO"; then |
| 577 | if test "X${echo_test_string+set}" != Xset; then |
| 578 | # find a string as large as possible, as long as the shell can cope with it |
| 579 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 580 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 581 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 582 | echo_test_string=`eval $cmd` && |
| 583 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 584 | then |
| 585 | break |
| 586 | fi |
| 587 | done |
| 588 | fi |
| 589 | |
| 590 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 591 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 592 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 593 | : |
| 594 | else |
| 595 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 596 | # backslashes. This makes it impossible to quote backslashes using |
| 597 | # echo "$something" | sed 's/\\/\\\\/g' |
| 598 | # |
| 599 | # So, first we look for a working echo in the user's PATH. |
| 600 | |
| 601 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 602 | for dir in $PATH /usr/ucb; do |
| 603 | IFS="$lt_save_ifs" |
| 604 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 605 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 606 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 608 | echo="$dir/echo" |
| 609 | break |
| 610 | fi |
| 611 | done |
| 612 | IFS="$lt_save_ifs" |
| 613 | |
| 614 | if test "X$echo" = Xecho; then |
| 615 | # We didn't find a better echo, so look for alternatives. |
| 616 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 617 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 618 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 619 | # This shell has a builtin print -r that does the trick. |
| 620 | echo='print -r' |
| 621 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 622 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 623 | # If we have ksh, try running configure again with it. |
| 624 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 625 | export ORIGINAL_CONFIG_SHELL |
| 626 | CONFIG_SHELL=/bin/ksh |
| 627 | export CONFIG_SHELL |
| 628 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 629 | else |
| 630 | # Try using printf. |
| 631 | echo='printf %s\n' |
| 632 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 633 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | # Cool, printf works |
| 636 | : |
| 637 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 638 | test "X$echo_testing_string" = 'X\t' && |
| 639 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 640 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 641 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 642 | export CONFIG_SHELL |
| 643 | SHELL="$CONFIG_SHELL" |
| 644 | export SHELL |
| 645 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 646 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 647 | test "X$echo_testing_string" = 'X\t' && |
| 648 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 650 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 651 | else |
| 652 | # maybe with a smaller string... |
| 653 | prev=: |
| 654 | |
| 655 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 656 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 657 | then |
| 658 | break |
| 659 | fi |
| 660 | prev="$cmd" |
| 661 | done |
| 662 | |
| 663 | if test "$prev" != 'sed 50q "$0"'; then |
| 664 | echo_test_string=`eval $prev` |
| 665 | export echo_test_string |
| 666 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 667 | else |
| 668 | # Oops. We lost completely, so just stick with echo. |
| 669 | echo=echo |
| 670 | fi |
| 671 | fi |
| 672 | fi |
| 673 | fi |
| 674 | fi |
| 675 | fi |
| 676 | |
| 677 | # Copy echo and quote the copy suitably for passing to libtool from |
| 678 | # the Makefile, instead of quoting the original, which is used later. |
| 679 | ECHO=$echo |
| 680 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 681 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 682 | fi |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | tagnames=${tagnames+${tagnames},}CXX |
| 688 | |
| 689 | tagnames=${tagnames+${tagnames},}F77 |
| 690 | |
| 691 | exec 7<&0 </dev/null 6>&1 |
| 692 | |
| 693 | # Name of the host. |
| 694 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 695 | # so uname gets run too. |
| 696 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 697 | |
| 698 | # |
| 699 | # Initializations. |
| 700 | # |
| 701 | ac_default_prefix=/usr/local |
| 702 | ac_clean_files= |
| 703 | ac_config_libobj_dir=. |
| 704 | LIBOBJS= |
| 705 | cross_compiling=no |
| 706 | subdirs= |
| 707 | MFLAGS= |
| 708 | MAKEFLAGS= |
| 709 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 710 | |
| 711 | # Identity of this package. |
| 712 | PACKAGE_NAME= |
| 713 | PACKAGE_TARNAME= |
| 714 | PACKAGE_VERSION= |
| 715 | PACKAGE_STRING= |
| 716 | PACKAGE_BUGREPORT= |
| 717 | |
| 718 | ac_unique_file="README" |
| 719 | ac_default_prefix=/usr/local |
| 720 | # Factoring default headers for most tests. |
| 721 | ac_includes_default="\ |
| 722 | #include <stdio.h> |
| 723 | #if HAVE_SYS_TYPES_H |
| 724 | # include <sys/types.h> |
| 725 | #endif |
| 726 | #if HAVE_SYS_STAT_H |
| 727 | # include <sys/stat.h> |
| 728 | #endif |
| 729 | #if STDC_HEADERS |
| 730 | # include <stdlib.h> |
| 731 | # include <stddef.h> |
| 732 | #else |
| 733 | # if HAVE_STDLIB_H |
| 734 | # include <stdlib.h> |
| 735 | # endif |
| 736 | #endif |
| 737 | #if HAVE_STRING_H |
| 738 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 739 | # include <memory.h> |
| 740 | # endif |
| 741 | # include <string.h> |
| 742 | #endif |
| 743 | #if HAVE_STRINGS_H |
| 744 | # include <strings.h> |
| 745 | #endif |
| 746 | #if HAVE_INTTYPES_H |
| 747 | # include <inttypes.h> |
| 748 | #endif |
| 749 | #if HAVE_STDINT_H |
| 750 | # include <stdint.h> |
| 751 | #endif |
| 752 | #if HAVE_UNISTD_H |
| 753 | # include <unistd.h> |
| 754 | #endif" |
| 755 | |
| 756 | ac_subst_vars='SHELL |
| 757 | PATH_SEPARATOR |
| 758 | PACKAGE_NAME |
| 759 | PACKAGE_TARNAME |
| 760 | PACKAGE_VERSION |
| 761 | PACKAGE_STRING |
| 762 | PACKAGE_BUGREPORT |
| 763 | exec_prefix |
| 764 | prefix |
| 765 | program_transform_name |
| 766 | bindir |
| 767 | sbindir |
| 768 | libexecdir |
| 769 | datarootdir |
| 770 | datadir |
| 771 | sysconfdir |
| 772 | sharedstatedir |
| 773 | localstatedir |
| 774 | includedir |
| 775 | oldincludedir |
| 776 | docdir |
| 777 | infodir |
| 778 | htmldir |
| 779 | dvidir |
| 780 | pdfdir |
| 781 | psdir |
| 782 | libdir |
| 783 | localedir |
| 784 | mandir |
| 785 | DEFS |
| 786 | ECHO_C |
| 787 | ECHO_N |
| 788 | ECHO_T |
| 789 | LIBS |
| 790 | build_alias |
| 791 | host_alias |
| 792 | target_alias |
| 793 | SHTOOL |
| 794 | MM_VERSION_STR |
| 795 | CC |
| 796 | CFLAGS |
| 797 | LDFLAGS |
| 798 | CPPFLAGS |
| 799 | ac_ct_CC |
| 800 | EXEEXT |
| 801 | OBJEXT |
| 802 | CPP |
| 803 | SET_MAKE |
| 804 | build |
| 805 | build_cpu |
| 806 | build_vendor |
| 807 | build_os |
| 808 | host |
| 809 | host_cpu |
| 810 | host_vendor |
| 811 | host_os |
| 812 | GREP |
| 813 | EGREP |
| 814 | LN_S |
| 815 | ECHO |
| 816 | AR |
| 817 | RANLIB |
| 818 | STRIP |
| 819 | CXX |
| 820 | CXXFLAGS |
| 821 | ac_ct_CXX |
| 822 | CXXCPP |
| 823 | F77 |
| 824 | FFLAGS |
| 825 | ac_ct_F77 |
| 826 | LIBTOOL |
| 827 | LIBOBJS |
| 828 | LTLIBOBJS' |
| 829 | ac_subst_files='' |
| 830 | ac_precious_vars='build_alias |
| 831 | host_alias |
| 832 | target_alias |
| 833 | CC |
| 834 | CFLAGS |
| 835 | LDFLAGS |
| 836 | CPPFLAGS |
| 837 | CPP |
| 838 | CXX |
| 839 | CXXFLAGS |
| 840 | CCC |
| 841 | CXXCPP |
| 842 | F77 |
| 843 | FFLAGS' |
| 844 | |
| 845 | |
| 846 | # Initialize some variables set by options. |
| 847 | ac_init_help= |
| 848 | ac_init_version=false |
| 849 | # The variables have the same names as the options, with |
| 850 | # dashes changed to underlines. |
| 851 | cache_file=/dev/null |
| 852 | exec_prefix=NONE |
| 853 | no_create= |
| 854 | no_recursion= |
| 855 | prefix=NONE |
| 856 | program_prefix=NONE |
| 857 | program_suffix=NONE |
| 858 | program_transform_name=s,x,x, |
| 859 | silent= |
| 860 | site= |
| 861 | srcdir= |
| 862 | verbose= |
| 863 | x_includes=NONE |
| 864 | x_libraries=NONE |
| 865 | |
| 866 | # Installation directory options. |
| 867 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 868 | # and all the variables that are supposed to be based on exec_prefix |
| 869 | # by default will actually change. |
| 870 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 871 | # (The list follows the same order as the GNU Coding Standards.) |
| 872 | bindir='${exec_prefix}/bin' |
| 873 | sbindir='${exec_prefix}/sbin' |
| 874 | libexecdir='${exec_prefix}/libexec' |
| 875 | datarootdir='${prefix}/share' |
| 876 | datadir='${datarootdir}' |
| 877 | sysconfdir='${prefix}/etc' |
| 878 | sharedstatedir='${prefix}/com' |
| 879 | localstatedir='${prefix}/var' |
| 880 | includedir='${prefix}/include' |
| 881 | oldincludedir='/usr/include' |
| 882 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 883 | infodir='${datarootdir}/info' |
| 884 | htmldir='${docdir}' |
| 885 | dvidir='${docdir}' |
| 886 | pdfdir='${docdir}' |
| 887 | psdir='${docdir}' |
| 888 | libdir='${exec_prefix}/lib' |
| 889 | localedir='${datarootdir}/locale' |
| 890 | mandir='${datarootdir}/man' |
| 891 | |
| 892 | ac_prev= |
| 893 | ac_dashdash= |
| 894 | for ac_option |
| 895 | do |
| 896 | # If the previous option needs an argument, assign it. |
| 897 | if test -n "$ac_prev"; then |
| 898 | eval $ac_prev=\$ac_option |
| 899 | ac_prev= |
| 900 | continue |
| 901 | fi |
| 902 | |
| 903 | case $ac_option in |
| 904 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 905 | *) ac_optarg=yes ;; |
| 906 | esac |
| 907 | |
| 908 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 909 | |
| 910 | case $ac_dashdash$ac_option in |
| 911 | --) |
| 912 | ac_dashdash=yes ;; |
| 913 | |
| 914 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 915 | ac_prev=bindir ;; |
| 916 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 917 | bindir=$ac_optarg ;; |
| 918 | |
| 919 | -build | --build | --buil | --bui | --bu) |
| 920 | ac_prev=build_alias ;; |
| 921 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 922 | build_alias=$ac_optarg ;; |
| 923 | |
| 924 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 925 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 926 | ac_prev=cache_file ;; |
| 927 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 928 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 929 | cache_file=$ac_optarg ;; |
| 930 | |
| 931 | --config-cache | -C) |
| 932 | cache_file=config.cache ;; |
| 933 | |
| 934 | -datadir | --datadir | --datadi | --datad) |
| 935 | ac_prev=datadir ;; |
| 936 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 937 | datadir=$ac_optarg ;; |
| 938 | |
| 939 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 940 | | --dataroo | --dataro | --datar) |
| 941 | ac_prev=datarootdir ;; |
| 942 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 943 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 944 | datarootdir=$ac_optarg ;; |
| 945 | |
| 946 | -disable-* | --disable-*) |
| 947 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 948 | # Reject names that are not valid shell variable names. |
| 949 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 950 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 951 | { (exit 1); exit 1; }; } |
| 952 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 953 | eval enable_$ac_feature=no ;; |
| 954 | |
| 955 | -docdir | --docdir | --docdi | --doc | --do) |
| 956 | ac_prev=docdir ;; |
| 957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 958 | docdir=$ac_optarg ;; |
| 959 | |
| 960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 961 | ac_prev=dvidir ;; |
| 962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 963 | dvidir=$ac_optarg ;; |
| 964 | |
| 965 | -enable-* | --enable-*) |
| 966 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 967 | # Reject names that are not valid shell variable names. |
| 968 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 969 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 970 | { (exit 1); exit 1; }; } |
| 971 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 972 | eval enable_$ac_feature=\$ac_optarg ;; |
| 973 | |
| 974 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 975 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 976 | | --exec | --exe | --ex) |
| 977 | ac_prev=exec_prefix ;; |
| 978 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 979 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 980 | | --exec=* | --exe=* | --ex=*) |
| 981 | exec_prefix=$ac_optarg ;; |
| 982 | |
| 983 | -gas | --gas | --ga | --g) |
| 984 | # Obsolete; use --with-gas. |
| 985 | with_gas=yes ;; |
| 986 | |
| 987 | -help | --help | --hel | --he | -h) |
| 988 | ac_init_help=long ;; |
| 989 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 990 | ac_init_help=recursive ;; |
| 991 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 992 | ac_init_help=short ;; |
| 993 | |
| 994 | -host | --host | --hos | --ho) |
| 995 | ac_prev=host_alias ;; |
| 996 | -host=* | --host=* | --hos=* | --ho=*) |
| 997 | host_alias=$ac_optarg ;; |
| 998 | |
| 999 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1000 | ac_prev=htmldir ;; |
| 1001 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1002 | | --ht=*) |
| 1003 | htmldir=$ac_optarg ;; |
| 1004 | |
| 1005 | -includedir | --includedir | --includedi | --included | --include \ |
| 1006 | | --includ | --inclu | --incl | --inc) |
| 1007 | ac_prev=includedir ;; |
| 1008 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1009 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1010 | includedir=$ac_optarg ;; |
| 1011 | |
| 1012 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1013 | ac_prev=infodir ;; |
| 1014 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1015 | infodir=$ac_optarg ;; |
| 1016 | |
| 1017 | -libdir | --libdir | --libdi | --libd) |
| 1018 | ac_prev=libdir ;; |
| 1019 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1020 | libdir=$ac_optarg ;; |
| 1021 | |
| 1022 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1023 | | --libexe | --libex | --libe) |
| 1024 | ac_prev=libexecdir ;; |
| 1025 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1026 | | --libexe=* | --libex=* | --libe=*) |
| 1027 | libexecdir=$ac_optarg ;; |
| 1028 | |
| 1029 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1030 | ac_prev=localedir ;; |
| 1031 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1032 | localedir=$ac_optarg ;; |
| 1033 | |
| 1034 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1035 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1036 | ac_prev=localstatedir ;; |
| 1037 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1038 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1039 | localstatedir=$ac_optarg ;; |
| 1040 | |
| 1041 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1042 | ac_prev=mandir ;; |
| 1043 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1044 | mandir=$ac_optarg ;; |
| 1045 | |
| 1046 | -nfp | --nfp | --nf) |
| 1047 | # Obsolete; use --without-fp. |
| 1048 | with_fp=no ;; |
| 1049 | |
| 1050 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1051 | | --no-cr | --no-c | -n) |
| 1052 | no_create=yes ;; |
| 1053 | |
| 1054 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1055 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1056 | no_recursion=yes ;; |
| 1057 | |
| 1058 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1059 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1060 | | --oldin | --oldi | --old | --ol | --o) |
| 1061 | ac_prev=oldincludedir ;; |
| 1062 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1063 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1064 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1065 | oldincludedir=$ac_optarg ;; |
| 1066 | |
| 1067 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1068 | ac_prev=prefix ;; |
| 1069 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1070 | prefix=$ac_optarg ;; |
| 1071 | |
| 1072 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1073 | | --program-pre | --program-pr | --program-p) |
| 1074 | ac_prev=program_prefix ;; |
| 1075 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1076 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1077 | program_prefix=$ac_optarg ;; |
| 1078 | |
| 1079 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1080 | | --program-suf | --program-su | --program-s) |
| 1081 | ac_prev=program_suffix ;; |
| 1082 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1083 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1084 | program_suffix=$ac_optarg ;; |
| 1085 | |
| 1086 | -program-transform-name | --program-transform-name \ |
| 1087 | | --program-transform-nam | --program-transform-na \ |
| 1088 | | --program-transform-n | --program-transform- \ |
| 1089 | | --program-transform | --program-transfor \ |
| 1090 | | --program-transfo | --program-transf \ |
| 1091 | | --program-trans | --program-tran \ |
| 1092 | | --progr-tra | --program-tr | --program-t) |
| 1093 | ac_prev=program_transform_name ;; |
| 1094 | -program-transform-name=* | --program-transform-name=* \ |
| 1095 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1096 | | --program-transform-n=* | --program-transform-=* \ |
| 1097 | | --program-transform=* | --program-transfor=* \ |
| 1098 | | --program-transfo=* | --program-transf=* \ |
| 1099 | | --program-trans=* | --program-tran=* \ |
| 1100 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1101 | program_transform_name=$ac_optarg ;; |
| 1102 | |
| 1103 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1104 | ac_prev=pdfdir ;; |
| 1105 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1106 | pdfdir=$ac_optarg ;; |
| 1107 | |
| 1108 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1109 | ac_prev=psdir ;; |
| 1110 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1111 | psdir=$ac_optarg ;; |
| 1112 | |
| 1113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1114 | | -silent | --silent | --silen | --sile | --sil) |
| 1115 | silent=yes ;; |
| 1116 | |
| 1117 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1118 | ac_prev=sbindir ;; |
| 1119 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1120 | | --sbi=* | --sb=*) |
| 1121 | sbindir=$ac_optarg ;; |
| 1122 | |
| 1123 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1124 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1125 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1126 | | --sha | --sh) |
| 1127 | ac_prev=sharedstatedir ;; |
| 1128 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1129 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1130 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1131 | | --sha=* | --sh=*) |
| 1132 | sharedstatedir=$ac_optarg ;; |
| 1133 | |
| 1134 | -site | --site | --sit) |
| 1135 | ac_prev=site ;; |
| 1136 | -site=* | --site=* | --sit=*) |
| 1137 | site=$ac_optarg ;; |
| 1138 | |
| 1139 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1140 | ac_prev=srcdir ;; |
| 1141 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1142 | srcdir=$ac_optarg ;; |
| 1143 | |
| 1144 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1145 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1146 | ac_prev=sysconfdir ;; |
| 1147 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1148 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1149 | sysconfdir=$ac_optarg ;; |
| 1150 | |
| 1151 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1152 | ac_prev=target_alias ;; |
| 1153 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1154 | target_alias=$ac_optarg ;; |
| 1155 | |
| 1156 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1157 | verbose=yes ;; |
| 1158 | |
| 1159 | -version | --version | --versio | --versi | --vers | -V) |
| 1160 | ac_init_version=: ;; |
| 1161 | |
| 1162 | -with-* | --with-*) |
| 1163 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1164 | # Reject names that are not valid shell variable names. |
| 1165 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1166 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1167 | { (exit 1); exit 1; }; } |
| 1168 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1169 | eval with_$ac_package=\$ac_optarg ;; |
| 1170 | |
| 1171 | -without-* | --without-*) |
| 1172 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1173 | # Reject names that are not valid shell variable names. |
| 1174 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1175 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1176 | { (exit 1); exit 1; }; } |
| 1177 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1178 | eval with_$ac_package=no ;; |
| 1179 | |
| 1180 | --x) |
| 1181 | # Obsolete; use --with-x. |
| 1182 | with_x=yes ;; |
| 1183 | |
| 1184 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1185 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1186 | ac_prev=x_includes ;; |
| 1187 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1188 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1189 | x_includes=$ac_optarg ;; |
| 1190 | |
| 1191 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1192 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1193 | ac_prev=x_libraries ;; |
| 1194 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1195 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1196 | x_libraries=$ac_optarg ;; |
| 1197 | |
| 1198 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1199 | Try \`$0 --help' for more information." >&2 |
| 1200 | { (exit 1); exit 1; }; } |
| 1201 | ;; |
| 1202 | |
| 1203 | *=*) |
| 1204 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1205 | # Reject names that are not valid shell variable names. |
| 1206 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1207 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1208 | { (exit 1); exit 1; }; } |
| 1209 | eval $ac_envvar=\$ac_optarg |
| 1210 | export $ac_envvar ;; |
| 1211 | |
| 1212 | *) |
| 1213 | # FIXME: should be removed in autoconf 3.0. |
| 1214 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1215 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1216 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1217 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1218 | ;; |
| 1219 | |
| 1220 | esac |
| 1221 | done |
| 1222 | |
| 1223 | if test -n "$ac_prev"; then |
| 1224 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1225 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1226 | { (exit 1); exit 1; }; } |
| 1227 | fi |
| 1228 | |
| 1229 | # Be sure to have absolute directory names. |
| 1230 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1231 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1232 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1233 | libdir localedir mandir |
| 1234 | do |
| 1235 | eval ac_val=\$$ac_var |
| 1236 | case $ac_val in |
| 1237 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1238 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1239 | esac |
| 1240 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1241 | { (exit 1); exit 1; }; } |
| 1242 | done |
| 1243 | |
| 1244 | # There might be people who depend on the old broken behavior: `$host' |
| 1245 | # used to hold the argument of --host etc. |
| 1246 | # FIXME: To remove some day. |
| 1247 | build=$build_alias |
| 1248 | host=$host_alias |
| 1249 | target=$target_alias |
| 1250 | |
| 1251 | # FIXME: To remove some day. |
| 1252 | if test "x$host_alias" != x; then |
| 1253 | if test "x$build_alias" = x; then |
| 1254 | cross_compiling=maybe |
| 1255 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1256 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1257 | elif test "x$build_alias" != "x$host_alias"; then |
| 1258 | cross_compiling=yes |
| 1259 | fi |
| 1260 | fi |
| 1261 | |
| 1262 | ac_tool_prefix= |
| 1263 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1264 | |
| 1265 | test "$silent" = yes && exec 6>/dev/null |
| 1266 | |
| 1267 | |
| 1268 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1269 | ac_ls_di=`ls -di .` && |
| 1270 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1271 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1272 | { (exit 1); exit 1; }; } |
| 1273 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1274 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1275 | { (exit 1); exit 1; }; } |
| 1276 | |
| 1277 | |
| 1278 | # Find the source files, if location was not specified. |
| 1279 | if test -z "$srcdir"; then |
| 1280 | ac_srcdir_defaulted=yes |
| 1281 | # Try the directory containing this script, then the parent directory. |
| 1282 | ac_confdir=`$as_dirname -- "$0" || |
| 1283 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1284 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1285 | X"$0" : 'X\(//\)$' \| \ |
| 1286 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1287 | echo X"$0" | |
| 1288 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1289 | s//\1/ |
| 1290 | q |
| 1291 | } |
| 1292 | /^X\(\/\/\)[^/].*/{ |
| 1293 | s//\1/ |
| 1294 | q |
| 1295 | } |
| 1296 | /^X\(\/\/\)$/{ |
| 1297 | s//\1/ |
| 1298 | q |
| 1299 | } |
| 1300 | /^X\(\/\).*/{ |
| 1301 | s//\1/ |
| 1302 | q |
| 1303 | } |
| 1304 | s/.*/./; q'` |
| 1305 | srcdir=$ac_confdir |
| 1306 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1307 | srcdir=.. |
| 1308 | fi |
| 1309 | else |
| 1310 | ac_srcdir_defaulted=no |
| 1311 | fi |
| 1312 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1313 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1314 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1315 | { (exit 1); exit 1; }; } |
| 1316 | fi |
| 1317 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1318 | ac_abs_confdir=`( |
| 1319 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1320 | { (exit 1); exit 1; }; } |
| 1321 | pwd)` |
| 1322 | # When building in place, set srcdir=. |
| 1323 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1324 | srcdir=. |
| 1325 | fi |
| 1326 | # Remove unnecessary trailing slashes from srcdir. |
| 1327 | # Double slashes in file names in object file debugging info |
| 1328 | # mess up M-x gdb in Emacs. |
| 1329 | case $srcdir in |
| 1330 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1331 | esac |
| 1332 | for ac_var in $ac_precious_vars; do |
| 1333 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1334 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1335 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1336 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1337 | done |
| 1338 | |
| 1339 | # |
| 1340 | # Report the --help message. |
| 1341 | # |
| 1342 | if test "$ac_init_help" = "long"; then |
| 1343 | # Omit some internal or obsolete options to make the list less imposing. |
| 1344 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1345 | cat <<_ACEOF |
| 1346 | \`configure' configures this package to adapt to many kinds of systems. |
| 1347 | |
| 1348 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1349 | |
| 1350 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1351 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1352 | |
| 1353 | Defaults for the options are specified in brackets. |
| 1354 | |
| 1355 | Configuration: |
| 1356 | -h, --help display this help and exit |
| 1357 | --help=short display options specific to this package |
| 1358 | --help=recursive display the short help of all the included packages |
| 1359 | -V, --version display version information and exit |
| 1360 | -q, --quiet, --silent do not print \`checking...' messages |
| 1361 | --cache-file=FILE cache test results in FILE [disabled] |
| 1362 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1363 | -n, --no-create do not create output files |
| 1364 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1365 | |
| 1366 | Installation directories: |
| 1367 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1368 | [$ac_default_prefix] |
| 1369 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1370 | [PREFIX] |
| 1371 | |
| 1372 | By default, \`make install' will install all the files in |
| 1373 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1374 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1375 | for instance \`--prefix=\$HOME'. |
| 1376 | |
| 1377 | For better control, use the options below. |
| 1378 | |
| 1379 | Fine tuning of the installation directories: |
| 1380 | --bindir=DIR user executables [EPREFIX/bin] |
| 1381 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1382 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1383 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1384 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1385 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1386 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1387 | --includedir=DIR C header files [PREFIX/include] |
| 1388 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1389 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1390 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1391 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1392 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1393 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1394 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1395 | --htmldir=DIR html documentation [DOCDIR] |
| 1396 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1397 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1398 | --psdir=DIR ps documentation [DOCDIR] |
| 1399 | _ACEOF |
| 1400 | |
| 1401 | cat <<\_ACEOF |
| 1402 | |
| 1403 | System types: |
| 1404 | --build=BUILD configure for building on BUILD [guessed] |
| 1405 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1406 | _ACEOF |
| 1407 | fi |
| 1408 | |
| 1409 | if test -n "$ac_init_help"; then |
| 1410 | |
| 1411 | cat <<\_ACEOF |
| 1412 | |
| 1413 | Optional Features: |
| 1414 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1415 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1416 | --enable-debug build for debugging (default=no) |
| 1417 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1418 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1419 | --enable-fast-install[=PKGS] |
| 1420 | optimize for fast installation [default=yes] |
| 1421 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1422 | |
| 1423 | Optional Packages: |
| 1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1426 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1427 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1428 | both] |
| 1429 | --with-tags[=TAGS] include additional configurations [automatic] |
| 1430 | --with-shm=TYPE force shared memory type: MMFILE MMZERO MMPOSX MMANON IPCSHM BEOS |
| 1431 | --with-sem=TYPE force semaphore type: FLOCK FCNTL IPCSEM BEOS |
| 1432 | |
| 1433 | Some influential environment variables: |
| 1434 | CC C compiler command |
| 1435 | CFLAGS C compiler flags |
| 1436 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1437 | nonstandard directory <lib dir> |
| 1438 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1439 | you have headers in a nonstandard directory <include dir> |
| 1440 | CPP C preprocessor |
| 1441 | CXX C++ compiler command |
| 1442 | CXXFLAGS C++ compiler flags |
| 1443 | CXXCPP C++ preprocessor |
| 1444 | F77 Fortran 77 compiler command |
| 1445 | FFLAGS Fortran 77 compiler flags |
| 1446 | |
| 1447 | Use these variables to override the choices made by `configure' or to help |
| 1448 | it to find libraries and programs with nonstandard names/locations. |
| 1449 | |
| 1450 | _ACEOF |
| 1451 | ac_status=$? |
| 1452 | fi |
| 1453 | |
| 1454 | if test "$ac_init_help" = "recursive"; then |
| 1455 | # If there are subdirs, report their specific --help. |
| 1456 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1457 | test -d "$ac_dir" || continue |
| 1458 | ac_builddir=. |
| 1459 | |
| 1460 | case "$ac_dir" in |
| 1461 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1462 | *) |
| 1463 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1464 | # A ".." for each directory in $ac_dir_suffix. |
| 1465 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1466 | case $ac_top_builddir_sub in |
| 1467 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1468 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1469 | esac ;; |
| 1470 | esac |
| 1471 | ac_abs_top_builddir=$ac_pwd |
| 1472 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1473 | # for backward compatibility: |
| 1474 | ac_top_builddir=$ac_top_build_prefix |
| 1475 | |
| 1476 | case $srcdir in |
| 1477 | .) # We are building in place. |
| 1478 | ac_srcdir=. |
| 1479 | ac_top_srcdir=$ac_top_builddir_sub |
| 1480 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1481 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1482 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1483 | ac_top_srcdir=$srcdir |
| 1484 | ac_abs_top_srcdir=$srcdir ;; |
| 1485 | *) # Relative name. |
| 1486 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1487 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1488 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1489 | esac |
| 1490 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1491 | |
| 1492 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1493 | # Check for guested configure. |
| 1494 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1495 | echo && |
| 1496 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1497 | elif test -f "$ac_srcdir/configure"; then |
| 1498 | echo && |
| 1499 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1500 | else |
| 1501 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1502 | fi || ac_status=$? |
| 1503 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1504 | done |
| 1505 | fi |
| 1506 | |
| 1507 | test -n "$ac_init_help" && exit $ac_status |
| 1508 | if $ac_init_version; then |
| 1509 | cat <<\_ACEOF |
| 1510 | configure |
| 1511 | generated by GNU Autoconf 2.60 (OpenPKG-CURRENT) |
| 1512 | |
| 1513 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1514 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
| 1515 | This configure script is free software; the Free Software Foundation |
| 1516 | gives unlimited permission to copy, distribute and modify it. |
| 1517 | _ACEOF |
| 1518 | exit |
| 1519 | fi |
| 1520 | cat >config.log <<_ACEOF |
| 1521 | This file contains any messages produced by compilers while |
| 1522 | running configure, to aid debugging if configure makes a mistake. |
| 1523 | |
| 1524 | It was created by $as_me, which was |
| 1525 | generated by GNU Autoconf 2.60 (OpenPKG-CURRENT). Invocation command line was |
| 1526 | |
| 1527 | $ $0 $@ |
| 1528 | |
| 1529 | _ACEOF |
| 1530 | exec 5>>config.log |
| 1531 | { |
| 1532 | cat <<_ASUNAME |
| 1533 | ## --------- ## |
| 1534 | ## Platform. ## |
| 1535 | ## --------- ## |
| 1536 | |
| 1537 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1538 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1539 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1540 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1541 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1542 | |
| 1543 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1544 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1545 | |
| 1546 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1547 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1548 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1549 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1550 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1551 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1552 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1553 | |
| 1554 | _ASUNAME |
| 1555 | |
| 1556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1557 | for as_dir in $PATH |
| 1558 | do |
| 1559 | IFS=$as_save_IFS |
| 1560 | test -z "$as_dir" && as_dir=. |
| 1561 | echo "PATH: $as_dir" |
| 1562 | done |
| 1563 | IFS=$as_save_IFS |
| 1564 | |
| 1565 | } >&5 |
| 1566 | |
| 1567 | cat >&5 <<_ACEOF |
| 1568 | |
| 1569 | |
| 1570 | ## ----------- ## |
| 1571 | ## Core tests. ## |
| 1572 | ## ----------- ## |
| 1573 | |
| 1574 | _ACEOF |
| 1575 | |
| 1576 | |
| 1577 | # Keep a trace of the command line. |
| 1578 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1579 | # Strip out --silent because we don't want to record it for future runs. |
| 1580 | # Also quote any args containing shell meta-characters. |
| 1581 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1582 | ac_configure_args= |
| 1583 | ac_configure_args0= |
| 1584 | ac_configure_args1= |
| 1585 | ac_must_keep_next=false |
| 1586 | for ac_pass in 1 2 |
| 1587 | do |
| 1588 | for ac_arg |
| 1589 | do |
| 1590 | case $ac_arg in |
| 1591 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1592 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1593 | | -silent | --silent | --silen | --sile | --sil) |
| 1594 | continue ;; |
| 1595 | *\'*) |
| 1596 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1597 | esac |
| 1598 | case $ac_pass in |
| 1599 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1600 | 2) |
| 1601 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1602 | if test $ac_must_keep_next = true; then |
| 1603 | ac_must_keep_next=false # Got value, back to normal. |
| 1604 | else |
| 1605 | case $ac_arg in |
| 1606 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1607 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1608 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1609 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1610 | case "$ac_configure_args0 " in |
| 1611 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1612 | esac |
| 1613 | ;; |
| 1614 | -* ) ac_must_keep_next=true ;; |
| 1615 | esac |
| 1616 | fi |
| 1617 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1618 | ;; |
| 1619 | esac |
| 1620 | done |
| 1621 | done |
| 1622 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1623 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1624 | |
| 1625 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1626 | # config.log. We remove comments because anyway the quotes in there |
| 1627 | # would cause problems or look ugly. |
| 1628 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1629 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1630 | trap 'exit_status=$? |
| 1631 | # Save into config.log some information that might help in debugging. |
| 1632 | { |
| 1633 | echo |
| 1634 | |
| 1635 | cat <<\_ASBOX |
| 1636 | ## ---------------- ## |
| 1637 | ## Cache variables. ## |
| 1638 | ## ---------------- ## |
| 1639 | _ASBOX |
| 1640 | echo |
| 1641 | # The following way of writing the cache mishandles newlines in values, |
| 1642 | ( |
| 1643 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1644 | eval ac_val=\$$ac_var |
| 1645 | case $ac_val in #( |
| 1646 | *${as_nl}*) |
| 1647 | case $ac_var in #( |
| 1648 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1649 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1650 | esac |
| 1651 | case $ac_var in #( |
| 1652 | _ | IFS | as_nl) ;; #( |
| 1653 | *) $as_unset $ac_var ;; |
| 1654 | esac ;; |
| 1655 | esac |
| 1656 | done |
| 1657 | (set) 2>&1 | |
| 1658 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1659 | *${as_nl}ac_space=\ *) |
| 1660 | sed -n \ |
| 1661 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1662 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1663 | ;; #( |
| 1664 | *) |
| 1665 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1666 | ;; |
| 1667 | esac | |
| 1668 | sort |
| 1669 | ) |
| 1670 | echo |
| 1671 | |
| 1672 | cat <<\_ASBOX |
| 1673 | ## ----------------- ## |
| 1674 | ## Output variables. ## |
| 1675 | ## ----------------- ## |
| 1676 | _ASBOX |
| 1677 | echo |
| 1678 | for ac_var in $ac_subst_vars |
| 1679 | do |
| 1680 | eval ac_val=\$$ac_var |
| 1681 | case $ac_val in |
| 1682 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1683 | esac |
| 1684 | echo "$ac_var='\''$ac_val'\''" |
| 1685 | done | sort |
| 1686 | echo |
| 1687 | |
| 1688 | if test -n "$ac_subst_files"; then |
| 1689 | cat <<\_ASBOX |
| 1690 | ## ------------------- ## |
| 1691 | ## File substitutions. ## |
| 1692 | ## ------------------- ## |
| 1693 | _ASBOX |
| 1694 | echo |
| 1695 | for ac_var in $ac_subst_files |
| 1696 | do |
| 1697 | eval ac_val=\$$ac_var |
| 1698 | case $ac_val in |
| 1699 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1700 | esac |
| 1701 | echo "$ac_var='\''$ac_val'\''" |
| 1702 | done | sort |
| 1703 | echo |
| 1704 | fi |
| 1705 | |
| 1706 | if test -s confdefs.h; then |
| 1707 | cat <<\_ASBOX |
| 1708 | ## ----------- ## |
| 1709 | ## confdefs.h. ## |
| 1710 | ## ----------- ## |
| 1711 | _ASBOX |
| 1712 | echo |
| 1713 | cat confdefs.h |
| 1714 | echo |
| 1715 | fi |
| 1716 | test "$ac_signal" != 0 && |
| 1717 | echo "$as_me: caught signal $ac_signal" |
| 1718 | echo "$as_me: exit $exit_status" |
| 1719 | } >&5 |
| 1720 | rm -f core *.core core.conftest.* && |
| 1721 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1722 | exit $exit_status |
| 1723 | ' 0 |
| 1724 | for ac_signal in 1 2 13 15; do |
| 1725 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1726 | done |
| 1727 | ac_signal=0 |
| 1728 | |
| 1729 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1730 | rm -f -r conftest* confdefs.h |
| 1731 | |
| 1732 | # Predefined preprocessor variables. |
| 1733 | |
| 1734 | cat >>confdefs.h <<_ACEOF |
| 1735 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1736 | _ACEOF |
| 1737 | |
| 1738 | |
| 1739 | cat >>confdefs.h <<_ACEOF |
| 1740 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1741 | _ACEOF |
| 1742 | |
| 1743 | |
| 1744 | cat >>confdefs.h <<_ACEOF |
| 1745 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1746 | _ACEOF |
| 1747 | |
| 1748 | |
| 1749 | cat >>confdefs.h <<_ACEOF |
| 1750 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1751 | _ACEOF |
| 1752 | |
| 1753 | |
| 1754 | cat >>confdefs.h <<_ACEOF |
| 1755 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1756 | _ACEOF |
| 1757 | |
| 1758 | |
| 1759 | # Let the site file select an alternate cache file if it wants to. |
| 1760 | # Prefer explicitly selected file to automatically selected ones. |
| 1761 | if test -n "$CONFIG_SITE"; then |
| 1762 | set x "$CONFIG_SITE" |
| 1763 | elif test "x$prefix" != xNONE; then |
| 1764 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1765 | else |
| 1766 | set x "$ac_default_prefix/share/config.site" \ |
| 1767 | "$ac_default_prefix/etc/config.site" |
| 1768 | fi |
| 1769 | shift |
| 1770 | for ac_site_file |
| 1771 | do |
| 1772 | if test -r "$ac_site_file"; then |
| 1773 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1774 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1775 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1776 | . "$ac_site_file" |
| 1777 | fi |
| 1778 | done |
| 1779 | |
| 1780 | if test -r "$cache_file"; then |
| 1781 | # Some versions of bash will fail to source /dev/null (special |
| 1782 | # files actually), so we avoid doing that. |
| 1783 | if test -f "$cache_file"; then |
| 1784 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1785 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1786 | case $cache_file in |
| 1787 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1788 | *) . "./$cache_file";; |
| 1789 | esac |
| 1790 | fi |
| 1791 | else |
| 1792 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1793 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1794 | >$cache_file |
| 1795 | fi |
| 1796 | |
| 1797 | # Check that the precious variables saved in the cache have kept the same |
| 1798 | # value. |
| 1799 | ac_cache_corrupted=false |
| 1800 | for ac_var in $ac_precious_vars; do |
| 1801 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1802 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1803 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1804 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1805 | case $ac_old_set,$ac_new_set in |
| 1806 | set,) |
| 1807 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1808 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1809 | ac_cache_corrupted=: ;; |
| 1810 | ,set) |
| 1811 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1812 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1813 | ac_cache_corrupted=: ;; |
| 1814 | ,);; |
| 1815 | *) |
| 1816 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1817 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1818 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1819 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1820 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1821 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1822 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1823 | ac_cache_corrupted=: |
| 1824 | fi;; |
| 1825 | esac |
| 1826 | # Pass precious variables to config.status. |
| 1827 | if test "$ac_new_set" = set; then |
| 1828 | case $ac_new_val in |
| 1829 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1830 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1831 | esac |
| 1832 | case " $ac_configure_args " in |
| 1833 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1834 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1835 | esac |
| 1836 | fi |
| 1837 | done |
| 1838 | if $ac_cache_corrupted; then |
| 1839 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1840 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1841 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1842 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1843 | { (exit 1); exit 1; }; } |
| 1844 | fi |
| 1845 | |
| 1846 | |
| 1847 | |
| 1848 | |
| 1849 | |
| 1850 | |
| 1851 | |
| 1852 | |
| 1853 | |
| 1854 | |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | ac_ext=c |
| 1863 | ac_cpp='$CPP $CPPFLAGS' |
| 1864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1867 | |
| 1868 | |
| 1869 | |
| 1870 | |
| 1871 | SHTOOL="\$(TOP)/shtool" |
| 1872 | |
| 1873 | ac_shtool="./shtool" |
| 1874 | T_MD=`$ac_shtool echo -n -e %B` |
| 1875 | T_ME=`$ac_shtool echo -n -e %b` |
| 1876 | PLATFORM=`${CONFIG_SHELL-/bin/sh} ./config.guess` |
| 1877 | PLATFORM=`${CONFIG_SHELL-/bin/sh} ./config.sub $PLATFORM` |
| 1878 | MM_VERSION_STR="`$ac_shtool version -l c -d long mm_vers.c`" |
| 1879 | |
| 1880 | |
| 1881 | echo "Configuring ${T_MD}OSSP mm${T_ME} (Shared Memory Allocation), Version ${T_MD}${MM_VERSION_STR}${T_ME}" |
| 1882 | echo "Copyright (c) 1999-2006 Ralf S. Engelschall <[email protected]>" |
| 1883 | echo "Copyright (c) 1999-2006 The OSSP Project <http://www.ossp.org/>" |
| 1884 | echo "Platform: ${T_MD}${PLATFORM}${T_ME}" |
| 1885 | |
| 1886 | |
| 1887 | { echo "$as_me:$LINENO: result: " >&5 |
| 1888 | echo "${ECHO_T}" >&6; } |
| 1889 | { echo "$as_me:$LINENO: result: ${T_MD}Build Tools:${T_ME}" >&5 |
| 1890 | echo "${ECHO_T}${T_MD}Build Tools:${T_ME}" >&6; } |
| 1891 | |
| 1892 | ac_ext=c |
| 1893 | ac_cpp='$CPP $CPPFLAGS' |
| 1894 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1895 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1896 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1897 | if test -n "$ac_tool_prefix"; then |
| 1898 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1899 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1902 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1904 | else |
| 1905 | if test -n "$CC"; then |
| 1906 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1907 | else |
| 1908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1909 | for as_dir in $PATH |
| 1910 | do |
| 1911 | IFS=$as_save_IFS |
| 1912 | test -z "$as_dir" && as_dir=. |
| 1913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1915 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1917 | break 2 |
| 1918 | fi |
| 1919 | done |
| 1920 | done |
| 1921 | IFS=$as_save_IFS |
| 1922 | |
| 1923 | fi |
| 1924 | fi |
| 1925 | CC=$ac_cv_prog_CC |
| 1926 | if test -n "$CC"; then |
| 1927 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 1928 | echo "${ECHO_T}$CC" >&6; } |
| 1929 | else |
| 1930 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1931 | echo "${ECHO_T}no" >&6; } |
| 1932 | fi |
| 1933 | |
| 1934 | |
| 1935 | fi |
| 1936 | if test -z "$ac_cv_prog_CC"; then |
| 1937 | ac_ct_CC=$CC |
| 1938 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1939 | set dummy gcc; ac_word=$2 |
| 1940 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1942 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1944 | else |
| 1945 | if test -n "$ac_ct_CC"; then |
| 1946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1947 | else |
| 1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1949 | for as_dir in $PATH |
| 1950 | do |
| 1951 | IFS=$as_save_IFS |
| 1952 | test -z "$as_dir" && as_dir=. |
| 1953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1955 | ac_cv_prog_ac_ct_CC="gcc" |
| 1956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1957 | break 2 |
| 1958 | fi |
| 1959 | done |
| 1960 | done |
| 1961 | IFS=$as_save_IFS |
| 1962 | |
| 1963 | fi |
| 1964 | fi |
| 1965 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1966 | if test -n "$ac_ct_CC"; then |
| 1967 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1968 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 1969 | else |
| 1970 | { echo "$as_me:$LINENO: result: no" >&5 |
| 1971 | echo "${ECHO_T}no" >&6; } |
| 1972 | fi |
| 1973 | |
| 1974 | if test "x$ac_ct_CC" = x; then |
| 1975 | CC="" |
| 1976 | else |
| 1977 | case $cross_compiling:$ac_tool_warned in |
| 1978 | yes:) |
| 1979 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 1980 | whose name does not start with the host triplet. If you think this |
| 1981 | configuration is useful to you, please write to [email protected]." >&5 |
| 1982 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 1983 | whose name does not start with the host triplet. If you think this |
| 1984 | configuration is useful to you, please write to [email protected]." >&2;} |
| 1985 | ac_tool_warned=yes ;; |
| 1986 | esac |
| 1987 | CC=$ac_ct_CC |
| 1988 | fi |
| 1989 | else |
| 1990 | CC="$ac_cv_prog_CC" |
| 1991 | fi |
| 1992 | |
| 1993 | if test -z "$CC"; then |
| 1994 | if test -n "$ac_tool_prefix"; then |
| 1995 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1996 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1997 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1999 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2001 | else |
| 2002 | if test -n "$CC"; then |
| 2003 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2004 | else |
| 2005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2006 | for as_dir in $PATH |
| 2007 | do |
| 2008 | IFS=$as_save_IFS |
| 2009 | test -z "$as_dir" && as_dir=. |
| 2010 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2012 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2014 | break 2 |
| 2015 | fi |
| 2016 | done |
| 2017 | done |
| 2018 | IFS=$as_save_IFS |
| 2019 | |
| 2020 | fi |
| 2021 | fi |
| 2022 | CC=$ac_cv_prog_CC |
| 2023 | if test -n "$CC"; then |
| 2024 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2025 | echo "${ECHO_T}$CC" >&6; } |
| 2026 | else |
| 2027 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2028 | echo "${ECHO_T}no" >&6; } |
| 2029 | fi |
| 2030 | |
| 2031 | |
| 2032 | fi |
| 2033 | fi |
| 2034 | if test -z "$CC"; then |
| 2035 | # Extract the first word of "cc", so it can be a program name with args. |
| 2036 | set dummy cc; ac_word=$2 |
| 2037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2039 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2041 | else |
| 2042 | if test -n "$CC"; then |
| 2043 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2044 | else |
| 2045 | ac_prog_rejected=no |
| 2046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2047 | for as_dir in $PATH |
| 2048 | do |
| 2049 | IFS=$as_save_IFS |
| 2050 | test -z "$as_dir" && as_dir=. |
| 2051 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2053 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2054 | ac_prog_rejected=yes |
| 2055 | continue |
| 2056 | fi |
| 2057 | ac_cv_prog_CC="cc" |
| 2058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2059 | break 2 |
| 2060 | fi |
| 2061 | done |
| 2062 | done |
| 2063 | IFS=$as_save_IFS |
| 2064 | |
| 2065 | if test $ac_prog_rejected = yes; then |
| 2066 | # We found a bogon in the path, so make sure we never use it. |
| 2067 | set dummy $ac_cv_prog_CC |
| 2068 | shift |
| 2069 | if test $# != 0; then |
| 2070 | # We chose a different compiler from the bogus one. |
| 2071 | # However, it has the same basename, so the bogon will be chosen |
| 2072 | # first if we set CC to just the basename; use the full file name. |
| 2073 | shift |
| 2074 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2075 | fi |
| 2076 | fi |
| 2077 | fi |
| 2078 | fi |
| 2079 | CC=$ac_cv_prog_CC |
| 2080 | if test -n "$CC"; then |
| 2081 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2082 | echo "${ECHO_T}$CC" >&6; } |
| 2083 | else |
| 2084 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2085 | echo "${ECHO_T}no" >&6; } |
| 2086 | fi |
| 2087 | |
| 2088 | |
| 2089 | fi |
| 2090 | if test -z "$CC"; then |
| 2091 | if test -n "$ac_tool_prefix"; then |
| 2092 | for ac_prog in cl.exe |
| 2093 | do |
| 2094 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2095 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2096 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2098 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2100 | else |
| 2101 | if test -n "$CC"; then |
| 2102 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2103 | else |
| 2104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2105 | for as_dir in $PATH |
| 2106 | do |
| 2107 | IFS=$as_save_IFS |
| 2108 | test -z "$as_dir" && as_dir=. |
| 2109 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2111 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2113 | break 2 |
| 2114 | fi |
| 2115 | done |
| 2116 | done |
| 2117 | IFS=$as_save_IFS |
| 2118 | |
| 2119 | fi |
| 2120 | fi |
| 2121 | CC=$ac_cv_prog_CC |
| 2122 | if test -n "$CC"; then |
| 2123 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2124 | echo "${ECHO_T}$CC" >&6; } |
| 2125 | else |
| 2126 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2127 | echo "${ECHO_T}no" >&6; } |
| 2128 | fi |
| 2129 | |
| 2130 | |
| 2131 | test -n "$CC" && break |
| 2132 | done |
| 2133 | fi |
| 2134 | if test -z "$CC"; then |
| 2135 | ac_ct_CC=$CC |
| 2136 | for ac_prog in cl.exe |
| 2137 | do |
| 2138 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2139 | set dummy $ac_prog; ac_word=$2 |
| 2140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2142 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2144 | else |
| 2145 | if test -n "$ac_ct_CC"; then |
| 2146 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2147 | else |
| 2148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2149 | for as_dir in $PATH |
| 2150 | do |
| 2151 | IFS=$as_save_IFS |
| 2152 | test -z "$as_dir" && as_dir=. |
| 2153 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2155 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2157 | break 2 |
| 2158 | fi |
| 2159 | done |
| 2160 | done |
| 2161 | IFS=$as_save_IFS |
| 2162 | |
| 2163 | fi |
| 2164 | fi |
| 2165 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2166 | if test -n "$ac_ct_CC"; then |
| 2167 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2168 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2169 | else |
| 2170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2171 | echo "${ECHO_T}no" >&6; } |
| 2172 | fi |
| 2173 | |
| 2174 | |
| 2175 | test -n "$ac_ct_CC" && break |
| 2176 | done |
| 2177 | |
| 2178 | if test "x$ac_ct_CC" = x; then |
| 2179 | CC="" |
| 2180 | else |
| 2181 | case $cross_compiling:$ac_tool_warned in |
| 2182 | yes:) |
| 2183 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2184 | whose name does not start with the host triplet. If you think this |
| 2185 | configuration is useful to you, please write to [email protected]." >&5 |
| 2186 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2187 | whose name does not start with the host triplet. If you think this |
| 2188 | configuration is useful to you, please write to [email protected]." >&2;} |
| 2189 | ac_tool_warned=yes ;; |
| 2190 | esac |
| 2191 | CC=$ac_ct_CC |
| 2192 | fi |
| 2193 | fi |
| 2194 | |
| 2195 | fi |
| 2196 | |
| 2197 | |
| 2198 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2199 | See \`config.log' for more details." >&5 |
| 2200 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2201 | See \`config.log' for more details." >&2;} |
| 2202 | { (exit 1); exit 1; }; } |
| 2203 | |
| 2204 | # Provide some information about the compiler. |
| 2205 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2206 | ac_compiler=`set X $ac_compile; echo $2` |
| 2207 | { (ac_try="$ac_compiler --version >&5" |
| 2208 | case "(($ac_try" in |
| 2209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2210 | *) ac_try_echo=$ac_try;; |
| 2211 | esac |
| 2212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2213 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2214 | ac_status=$? |
| 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2216 | (exit $ac_status); } |
| 2217 | { (ac_try="$ac_compiler -v >&5" |
| 2218 | case "(($ac_try" in |
| 2219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2220 | *) ac_try_echo=$ac_try;; |
| 2221 | esac |
| 2222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2223 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2224 | ac_status=$? |
| 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); } |
| 2227 | { (ac_try="$ac_compiler -V >&5" |
| 2228 | case "(($ac_try" in |
| 2229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2230 | *) ac_try_echo=$ac_try;; |
| 2231 | esac |
| 2232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2233 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2234 | ac_status=$? |
| 2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2236 | (exit $ac_status); } |
| 2237 | |
| 2238 | cat >conftest.$ac_ext <<_ACEOF |
| 2239 | /* confdefs.h. */ |
| 2240 | _ACEOF |
| 2241 | cat confdefs.h >>conftest.$ac_ext |
| 2242 | cat >>conftest.$ac_ext <<_ACEOF |
| 2243 | /* end confdefs.h. */ |
| 2244 | |
| 2245 | int |
| 2246 | main () |
| 2247 | { |
| 2248 | |
| 2249 | ; |
| 2250 | return 0; |
| 2251 | } |
| 2252 | _ACEOF |
| 2253 | ac_clean_files_save=$ac_clean_files |
| 2254 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2255 | # Try to create an executable without -o first, disregard a.out. |
| 2256 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2257 | # of exeext. |
| 2258 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2259 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2260 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2261 | # |
| 2262 | # List of possible output files, starting from the most likely. |
| 2263 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2264 | # only as a last resort. b.out is created by i960 compilers. |
| 2265 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2266 | # |
| 2267 | # The IRIX 6 linker writes into existing files which may not be |
| 2268 | # executable, retaining their permissions. Remove them first so a |
| 2269 | # subsequent execution test works. |
| 2270 | ac_rmfiles= |
| 2271 | for ac_file in $ac_files |
| 2272 | do |
| 2273 | case $ac_file in |
| 2274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2275 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2276 | esac |
| 2277 | done |
| 2278 | rm -f $ac_rmfiles |
| 2279 | |
| 2280 | if { (ac_try="$ac_link_default" |
| 2281 | case "(($ac_try" in |
| 2282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2283 | *) ac_try_echo=$ac_try;; |
| 2284 | esac |
| 2285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2286 | (eval "$ac_link_default") 2>&5 |
| 2287 | ac_status=$? |
| 2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2289 | (exit $ac_status); }; then |
| 2290 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2291 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2292 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2293 | # so that the user can short-circuit this test for compilers unknown to |
| 2294 | # Autoconf. |
| 2295 | for ac_file in $ac_files |
| 2296 | do |
| 2297 | test -f "$ac_file" || continue |
| 2298 | case $ac_file in |
| 2299 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2300 | ;; |
| 2301 | [ab].out ) |
| 2302 | # We found the default executable, but exeext='' is most |
| 2303 | # certainly right. |
| 2304 | break;; |
| 2305 | *.* ) |
| 2306 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2307 | then :; else |
| 2308 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2309 | fi |
| 2310 | # We set ac_cv_exeext here because the later test for it is not |
| 2311 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2312 | # argument, so we may need to know it at that point already. |
| 2313 | # Even if this section looks crufty: it has the advantage of |
| 2314 | # actually working. |
| 2315 | break;; |
| 2316 | * ) |
| 2317 | break;; |
| 2318 | esac |
| 2319 | done |
| 2320 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2321 | |
| 2322 | else |
| 2323 | echo "$as_me: failed program was:" >&5 |
| 2324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2325 | |
| 2326 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2327 | See \`config.log' for more details." >&5 |
| 2328 | echo "$as_me: error: C compiler cannot create executables |
| 2329 | See \`config.log' for more details." >&2;} |
| 2330 | { (exit 77); exit 77; }; } |
| 2331 | fi |
| 2332 | |
| 2333 | ac_exeext=$ac_cv_exeext |
| 2334 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2335 | echo "${ECHO_T}$ac_file" >&6; } |
| 2336 | |
| 2337 | # Check that the compiler produces executables we can run. If not, either |
| 2338 | # the compiler is broken, or we cross compile. |
| 2339 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2340 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2341 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2342 | # If not cross compiling, check that we can run a simple program. |
| 2343 | if test "$cross_compiling" != yes; then |
| 2344 | if { ac_try='./$ac_file' |
| 2345 | { (case "(($ac_try" in |
| 2346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2347 | *) ac_try_echo=$ac_try;; |
| 2348 | esac |
| 2349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2350 | (eval "$ac_try") 2>&5 |
| 2351 | ac_status=$? |
| 2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2353 | (exit $ac_status); }; }; then |
| 2354 | cross_compiling=no |
| 2355 | else |
| 2356 | if test "$cross_compiling" = maybe; then |
| 2357 | cross_compiling=yes |
| 2358 | else |
| 2359 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2360 | If you meant to cross compile, use \`--host'. |
| 2361 | See \`config.log' for more details." >&5 |
| 2362 | echo "$as_me: error: cannot run C compiled programs. |
| 2363 | If you meant to cross compile, use \`--host'. |
| 2364 | See \`config.log' for more details." >&2;} |
| 2365 | { (exit 1); exit 1; }; } |
| 2366 | fi |
| 2367 | fi |
| 2368 | fi |
| 2369 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2370 | echo "${ECHO_T}yes" >&6; } |
| 2371 | |
| 2372 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2373 | ac_clean_files=$ac_clean_files_save |
| 2374 | # Check that the compiler produces executables we can run. If not, either |
| 2375 | # the compiler is broken, or we cross compile. |
| 2376 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2377 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2378 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2379 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2380 | |
| 2381 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2382 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2383 | if { (ac_try="$ac_link" |
| 2384 | case "(($ac_try" in |
| 2385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2386 | *) ac_try_echo=$ac_try;; |
| 2387 | esac |
| 2388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2389 | (eval "$ac_link") 2>&5 |
| 2390 | ac_status=$? |
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2392 | (exit $ac_status); }; then |
| 2393 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2394 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2395 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2396 | # `rm'. |
| 2397 | for ac_file in conftest.exe conftest conftest.*; do |
| 2398 | test -f "$ac_file" || continue |
| 2399 | case $ac_file in |
| 2400 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2401 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2402 | break;; |
| 2403 | * ) break;; |
| 2404 | esac |
| 2405 | done |
| 2406 | else |
| 2407 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2408 | See \`config.log' for more details." >&5 |
| 2409 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2410 | See \`config.log' for more details." >&2;} |
| 2411 | { (exit 1); exit 1; }; } |
| 2412 | fi |
| 2413 | |
| 2414 | rm -f conftest$ac_cv_exeext |
| 2415 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2416 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
| 2417 | |
| 2418 | rm -f conftest.$ac_ext |
| 2419 | EXEEXT=$ac_cv_exeext |
| 2420 | ac_exeext=$EXEEXT |
| 2421 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2422 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2423 | if test "${ac_cv_objext+set}" = set; then |
| 2424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2425 | else |
| 2426 | cat >conftest.$ac_ext <<_ACEOF |
| 2427 | /* confdefs.h. */ |
| 2428 | _ACEOF |
| 2429 | cat confdefs.h >>conftest.$ac_ext |
| 2430 | cat >>conftest.$ac_ext <<_ACEOF |
| 2431 | /* end confdefs.h. */ |
| 2432 | |
| 2433 | int |
| 2434 | main () |
| 2435 | { |
| 2436 | |
| 2437 | ; |
| 2438 | return 0; |
| 2439 | } |
| 2440 | _ACEOF |
| 2441 | rm -f conftest.o conftest.obj |
| 2442 | if { (ac_try="$ac_compile" |
| 2443 | case "(($ac_try" in |
| 2444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2445 | *) ac_try_echo=$ac_try;; |
| 2446 | esac |
| 2447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2448 | (eval "$ac_compile") 2>&5 |
| 2449 | ac_status=$? |
| 2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2451 | (exit $ac_status); }; then |
| 2452 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2453 | test -f "$ac_file" || continue; |
| 2454 | case $ac_file in |
| 2455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
| 2456 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2457 | break;; |
| 2458 | esac |
| 2459 | done |
| 2460 | else |
| 2461 | echo "$as_me: failed program was:" >&5 |
| 2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2463 | |
| 2464 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2465 | See \`config.log' for more details." >&5 |
| 2466 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2467 | See \`config.log' for more details." >&2;} |
| 2468 | { (exit 1); exit 1; }; } |
| 2469 | fi |
| 2470 | |
| 2471 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2472 | fi |
| 2473 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2474 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
| 2475 | OBJEXT=$ac_cv_objext |
| 2476 | ac_objext=$OBJEXT |
| 2477 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2478 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2479 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
| 2483 | /* confdefs.h. */ |
| 2484 | _ACEOF |
| 2485 | cat confdefs.h >>conftest.$ac_ext |
| 2486 | cat >>conftest.$ac_ext <<_ACEOF |
| 2487 | /* end confdefs.h. */ |
| 2488 | |
| 2489 | int |
| 2490 | main () |
| 2491 | { |
| 2492 | #ifndef __GNUC__ |
| 2493 | choke me |
| 2494 | #endif |
| 2495 | |
| 2496 | ; |
| 2497 | return 0; |
| 2498 | } |
| 2499 | _ACEOF |
| 2500 | rm -f conftest.$ac_objext |
| 2501 | if { (ac_try="$ac_compile" |
| 2502 | case "(($ac_try" in |
| 2503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2504 | *) ac_try_echo=$ac_try;; |
| 2505 | esac |
| 2506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2507 | (eval "$ac_compile") 2>conftest.er1 |
| 2508 | ac_status=$? |
| 2509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2510 | rm -f conftest.er1 |
| 2511 | cat conftest.err >&5 |
| 2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2513 | (exit $ac_status); } && |
| 2514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2515 | { (case "(($ac_try" in |
| 2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2517 | *) ac_try_echo=$ac_try;; |
| 2518 | esac |
| 2519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2520 | (eval "$ac_try") 2>&5 |
| 2521 | ac_status=$? |
| 2522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2523 | (exit $ac_status); }; } && |
| 2524 | { ac_try='test -s conftest.$ac_objext' |
| 2525 | { (case "(($ac_try" in |
| 2526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2527 | *) ac_try_echo=$ac_try;; |
| 2528 | esac |
| 2529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2530 | (eval "$ac_try") 2>&5 |
| 2531 | ac_status=$? |
| 2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2533 | (exit $ac_status); }; }; then |
| 2534 | ac_compiler_gnu=yes |
| 2535 | else |
| 2536 | echo "$as_me: failed program was:" >&5 |
| 2537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2538 | |
| 2539 | ac_compiler_gnu=no |
| 2540 | fi |
| 2541 | |
| 2542 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2543 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2544 | |
| 2545 | fi |
| 2546 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2547 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2548 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2549 | ac_test_CFLAGS=${CFLAGS+set} |
| 2550 | ac_save_CFLAGS=$CFLAGS |
| 2551 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2552 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2553 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2555 | else |
| 2556 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2557 | ac_c_werror_flag=yes |
| 2558 | ac_cv_prog_cc_g=no |
| 2559 | CFLAGS="-g" |
| 2560 | cat >conftest.$ac_ext <<_ACEOF |
| 2561 | /* confdefs.h. */ |
| 2562 | _ACEOF |
| 2563 | cat confdefs.h >>conftest.$ac_ext |
| 2564 | cat >>conftest.$ac_ext <<_ACEOF |
| 2565 | /* end confdefs.h. */ |
| 2566 | |
| 2567 | int |
| 2568 | main () |
| 2569 | { |
| 2570 | |
| 2571 | ; |
| 2572 | return 0; |
| 2573 | } |
| 2574 | _ACEOF |
| 2575 | rm -f conftest.$ac_objext |
| 2576 | if { (ac_try="$ac_compile" |
| 2577 | case "(($ac_try" in |
| 2578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2579 | *) ac_try_echo=$ac_try;; |
| 2580 | esac |
| 2581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2582 | (eval "$ac_compile") 2>conftest.er1 |
| 2583 | ac_status=$? |
| 2584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2585 | rm -f conftest.er1 |
| 2586 | cat conftest.err >&5 |
| 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2588 | (exit $ac_status); } && |
| 2589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2590 | { (case "(($ac_try" in |
| 2591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2592 | *) ac_try_echo=$ac_try;; |
| 2593 | esac |
| 2594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2595 | (eval "$ac_try") 2>&5 |
| 2596 | ac_status=$? |
| 2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2598 | (exit $ac_status); }; } && |
| 2599 | { ac_try='test -s conftest.$ac_objext' |
| 2600 | { (case "(($ac_try" in |
| 2601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2602 | *) ac_try_echo=$ac_try;; |
| 2603 | esac |
| 2604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2605 | (eval "$ac_try") 2>&5 |
| 2606 | ac_status=$? |
| 2607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2608 | (exit $ac_status); }; }; then |
| 2609 | ac_cv_prog_cc_g=yes |
| 2610 | else |
| 2611 | echo "$as_me: failed program was:" >&5 |
| 2612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2613 | |
| 2614 | CFLAGS="" |
| 2615 | cat >conftest.$ac_ext <<_ACEOF |
| 2616 | /* confdefs.h. */ |
| 2617 | _ACEOF |
| 2618 | cat confdefs.h >>conftest.$ac_ext |
| 2619 | cat >>conftest.$ac_ext <<_ACEOF |
| 2620 | /* end confdefs.h. */ |
| 2621 | |
| 2622 | int |
| 2623 | main () |
| 2624 | { |
| 2625 | |
| 2626 | ; |
| 2627 | return 0; |
| 2628 | } |
| 2629 | _ACEOF |
| 2630 | rm -f conftest.$ac_objext |
| 2631 | if { (ac_try="$ac_compile" |
| 2632 | case "(($ac_try" in |
| 2633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2634 | *) ac_try_echo=$ac_try;; |
| 2635 | esac |
| 2636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2637 | (eval "$ac_compile") 2>conftest.er1 |
| 2638 | ac_status=$? |
| 2639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2640 | rm -f conftest.er1 |
| 2641 | cat conftest.err >&5 |
| 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2643 | (exit $ac_status); } && |
| 2644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2645 | { (case "(($ac_try" in |
| 2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2647 | *) ac_try_echo=$ac_try;; |
| 2648 | esac |
| 2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2650 | (eval "$ac_try") 2>&5 |
| 2651 | ac_status=$? |
| 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2653 | (exit $ac_status); }; } && |
| 2654 | { ac_try='test -s conftest.$ac_objext' |
| 2655 | { (case "(($ac_try" in |
| 2656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2657 | *) ac_try_echo=$ac_try;; |
| 2658 | esac |
| 2659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2660 | (eval "$ac_try") 2>&5 |
| 2661 | ac_status=$? |
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2663 | (exit $ac_status); }; }; then |
| 2664 | : |
| 2665 | else |
| 2666 | echo "$as_me: failed program was:" >&5 |
| 2667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2668 | |
| 2669 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2670 | CFLAGS="-g" |
| 2671 | cat >conftest.$ac_ext <<_ACEOF |
| 2672 | /* confdefs.h. */ |
| 2673 | _ACEOF |
| 2674 | cat confdefs.h >>conftest.$ac_ext |
| 2675 | cat >>conftest.$ac_ext <<_ACEOF |
| 2676 | /* end confdefs.h. */ |
| 2677 | |
| 2678 | int |
| 2679 | main () |
| 2680 | { |
| 2681 | |
| 2682 | ; |
| 2683 | return 0; |
| 2684 | } |
| 2685 | _ACEOF |
| 2686 | rm -f conftest.$ac_objext |
| 2687 | if { (ac_try="$ac_compile" |
| 2688 | case "(($ac_try" in |
| 2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2690 | *) ac_try_echo=$ac_try;; |
| 2691 | esac |
| 2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2693 | (eval "$ac_compile") 2>conftest.er1 |
| 2694 | ac_status=$? |
| 2695 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2696 | rm -f conftest.er1 |
| 2697 | cat conftest.err >&5 |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); } && |
| 2700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2701 | { (case "(($ac_try" in |
| 2702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2703 | *) ac_try_echo=$ac_try;; |
| 2704 | esac |
| 2705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2706 | (eval "$ac_try") 2>&5 |
| 2707 | ac_status=$? |
| 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2709 | (exit $ac_status); }; } && |
| 2710 | { ac_try='test -s conftest.$ac_objext' |
| 2711 | { (case "(($ac_try" in |
| 2712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2713 | *) ac_try_echo=$ac_try;; |
| 2714 | esac |
| 2715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2716 | (eval "$ac_try") 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); }; }; then |
| 2720 | ac_cv_prog_cc_g=yes |
| 2721 | else |
| 2722 | echo "$as_me: failed program was:" >&5 |
| 2723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2724 | |
| 2725 | |
| 2726 | fi |
| 2727 | |
| 2728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2729 | fi |
| 2730 | |
| 2731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2732 | fi |
| 2733 | |
| 2734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2735 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2736 | fi |
| 2737 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2738 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 2739 | if test "$ac_test_CFLAGS" = set; then |
| 2740 | CFLAGS=$ac_save_CFLAGS |
| 2741 | elif test $ac_cv_prog_cc_g = yes; then |
| 2742 | if test "$GCC" = yes; then |
| 2743 | CFLAGS="-g -O2" |
| 2744 | else |
| 2745 | CFLAGS="-g" |
| 2746 | fi |
| 2747 | else |
| 2748 | if test "$GCC" = yes; then |
| 2749 | CFLAGS="-O2" |
| 2750 | else |
| 2751 | CFLAGS= |
| 2752 | fi |
| 2753 | fi |
| 2754 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2755 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2756 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2758 | else |
| 2759 | ac_cv_prog_cc_c89=no |
| 2760 | ac_save_CC=$CC |
| 2761 | cat >conftest.$ac_ext <<_ACEOF |
| 2762 | /* confdefs.h. */ |
| 2763 | _ACEOF |
| 2764 | cat confdefs.h >>conftest.$ac_ext |
| 2765 | cat >>conftest.$ac_ext <<_ACEOF |
| 2766 | /* end confdefs.h. */ |
| 2767 | #include <stdarg.h> |
| 2768 | #include <stdio.h> |
| 2769 | #include <sys/types.h> |
| 2770 | #include <sys/stat.h> |
| 2771 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2772 | struct buf { int x; }; |
| 2773 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2774 | static char *e (p, i) |
| 2775 | char **p; |
| 2776 | int i; |
| 2777 | { |
| 2778 | return p[i]; |
| 2779 | } |
| 2780 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2781 | { |
| 2782 | char *s; |
| 2783 | va_list v; |
| 2784 | va_start (v,p); |
| 2785 | s = g (p, va_arg (v,int)); |
| 2786 | va_end (v); |
| 2787 | return s; |
| 2788 | } |
| 2789 | |
| 2790 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2791 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2792 | These don't provoke an error unfortunately, instead are silently treated |
| 2793 | as 'x'. The following induces an error, until -std is added to get |
| 2794 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2795 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2796 | that's true only with -std. */ |
| 2797 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2798 | |
| 2799 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2800 | inside strings and character constants. */ |
| 2801 | #define FOO(x) 'x' |
| 2802 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2803 | |
| 2804 | int test (int i, double x); |
| 2805 | struct s1 {int (*f) (int a);}; |
| 2806 | struct s2 {int (*f) (double a);}; |
| 2807 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2808 | int argc; |
| 2809 | char **argv; |
| 2810 | int |
| 2811 | main () |
| 2812 | { |
| 2813 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2814 | ; |
| 2815 | return 0; |
| 2816 | } |
| 2817 | _ACEOF |
| 2818 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2819 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2820 | do |
| 2821 | CC="$ac_save_CC $ac_arg" |
| 2822 | rm -f conftest.$ac_objext |
| 2823 | if { (ac_try="$ac_compile" |
| 2824 | case "(($ac_try" in |
| 2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2826 | *) ac_try_echo=$ac_try;; |
| 2827 | esac |
| 2828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2829 | (eval "$ac_compile") 2>conftest.er1 |
| 2830 | ac_status=$? |
| 2831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2832 | rm -f conftest.er1 |
| 2833 | cat conftest.err >&5 |
| 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2835 | (exit $ac_status); } && |
| 2836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2837 | { (case "(($ac_try" in |
| 2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2839 | *) ac_try_echo=$ac_try;; |
| 2840 | esac |
| 2841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2842 | (eval "$ac_try") 2>&5 |
| 2843 | ac_status=$? |
| 2844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2845 | (exit $ac_status); }; } && |
| 2846 | { ac_try='test -s conftest.$ac_objext' |
| 2847 | { (case "(($ac_try" in |
| 2848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2849 | *) ac_try_echo=$ac_try;; |
| 2850 | esac |
| 2851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2852 | (eval "$ac_try") 2>&5 |
| 2853 | ac_status=$? |
| 2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2855 | (exit $ac_status); }; }; then |
| 2856 | ac_cv_prog_cc_c89=$ac_arg |
| 2857 | else |
| 2858 | echo "$as_me: failed program was:" >&5 |
| 2859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2860 | |
| 2861 | |
| 2862 | fi |
| 2863 | |
| 2864 | rm -f core conftest.err conftest.$ac_objext |
| 2865 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 2866 | done |
| 2867 | rm -f conftest.$ac_ext |
| 2868 | CC=$ac_save_CC |
| 2869 | |
| 2870 | fi |
| 2871 | # AC_CACHE_VAL |
| 2872 | case "x$ac_cv_prog_cc_c89" in |
| 2873 | x) |
| 2874 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2875 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2876 | xno) |
| 2877 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2878 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 2879 | *) |
| 2880 | CC="$CC $ac_cv_prog_cc_c89" |
| 2881 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2882 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 2883 | esac |
| 2884 | |
| 2885 | |
| 2886 | ac_ext=c |
| 2887 | ac_cpp='$CPP $CPPFLAGS' |
| 2888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2891 | |
| 2892 | ac_ext=c |
| 2893 | ac_cpp='$CPP $CPPFLAGS' |
| 2894 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2895 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2896 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2897 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2898 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 2899 | # On Suns, sometimes $CPP names a directory. |
| 2900 | if test -n "$CPP" && test -d "$CPP"; then |
| 2901 | CPP= |
| 2902 | fi |
| 2903 | if test -z "$CPP"; then |
| 2904 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2906 | else |
| 2907 | # Double quotes because CPP needs to be expanded |
| 2908 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2909 | do |
| 2910 | ac_preproc_ok=false |
| 2911 | for ac_c_preproc_warn_flag in '' yes |
| 2912 | do |
| 2913 | # Use a header file that comes with gcc, so configuring glibc |
| 2914 | # with a fresh cross-compiler works. |
| 2915 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2916 | # <limits.h> exists even on freestanding compilers. |
| 2917 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2918 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2919 | cat >conftest.$ac_ext <<_ACEOF |
| 2920 | /* confdefs.h. */ |
| 2921 | _ACEOF |
| 2922 | cat confdefs.h >>conftest.$ac_ext |
| 2923 | cat >>conftest.$ac_ext <<_ACEOF |
| 2924 | /* end confdefs.h. */ |
| 2925 | #ifdef __STDC__ |
| 2926 | # include <limits.h> |
| 2927 | #else |
| 2928 | # include <assert.h> |
| 2929 | #endif |
| 2930 | Syntax error |
| 2931 | _ACEOF |
| 2932 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2933 | case "(($ac_try" in |
| 2934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2935 | *) ac_try_echo=$ac_try;; |
| 2936 | esac |
| 2937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2938 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 2939 | ac_status=$? |
| 2940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2941 | rm -f conftest.er1 |
| 2942 | cat conftest.err >&5 |
| 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); } >/dev/null; then |
| 2945 | if test -s conftest.err; then |
| 2946 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2947 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2948 | else |
| 2949 | ac_cpp_err= |
| 2950 | fi |
| 2951 | else |
| 2952 | ac_cpp_err=yes |
| 2953 | fi |
| 2954 | if test -z "$ac_cpp_err"; then |
| 2955 | : |
| 2956 | else |
| 2957 | echo "$as_me: failed program was:" >&5 |
| 2958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2959 | |
| 2960 | # Broken: fails on valid input. |
| 2961 | continue |
| 2962 | fi |
| 2963 | |
| 2964 | rm -f conftest.err conftest.$ac_ext |
| 2965 | |
| 2966 | # OK, works on sane cases. Now check whether nonexistent headers |
| 2967 | # can be detected and how. |
| 2968 | cat >conftest.$ac_ext <<_ACEOF |
| 2969 | /* confdefs.h. */ |
| 2970 | _ACEOF |
| 2971 | cat confdefs.h >>conftest.$ac_ext |
| 2972 | cat >>conftest.$ac_ext <<_ACEOF |
| 2973 | /* end confdefs.h. */ |
| 2974 | #include <ac_nonexistent.h> |
| 2975 | _ACEOF |
| 2976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2977 | case "(($ac_try" in |
| 2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2979 | *) ac_try_echo=$ac_try;; |
| 2980 | esac |
| 2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 2983 | ac_status=$? |
| 2984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2985 | rm -f conftest.er1 |
| 2986 | cat conftest.err >&5 |
| 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2988 | (exit $ac_status); } >/dev/null; then |
| 2989 | if test -s conftest.err; then |
| 2990 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2992 | else |
| 2993 | ac_cpp_err= |
| 2994 | fi |
| 2995 | else |
| 2996 | ac_cpp_err=yes |
| 2997 | fi |
| 2998 | if test -z "$ac_cpp_err"; then |
| 2999 | # Broken: success on invalid input. |
| 3000 | continue |
| 3001 | else |
| 3002 | echo "$as_me: failed program was:" >&5 |
| 3003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3004 | |
| 3005 | # Passes both tests. |
| 3006 | ac_preproc_ok=: |
| 3007 | break |
| 3008 | fi |
| 3009 | |
| 3010 | rm -f conftest.err conftest.$ac_ext |
| 3011 | |
| 3012 | done |
| 3013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3014 | rm -f conftest.err conftest.$ac_ext |
| 3015 | if $ac_preproc_ok; then |
| 3016 | break |
| 3017 | fi |
| 3018 | |
| 3019 | done |
| 3020 | ac_cv_prog_CPP=$CPP |
| 3021 | |
| 3022 | fi |
| 3023 | CPP=$ac_cv_prog_CPP |
| 3024 | else |
| 3025 | ac_cv_prog_CPP=$CPP |
| 3026 | fi |
| 3027 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3028 | echo "${ECHO_T}$CPP" >&6; } |
| 3029 | ac_preproc_ok=false |
| 3030 | for ac_c_preproc_warn_flag in '' yes |
| 3031 | do |
| 3032 | # Use a header file that comes with gcc, so configuring glibc |
| 3033 | # with a fresh cross-compiler works. |
| 3034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3035 | # <limits.h> exists even on freestanding compilers. |
| 3036 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3037 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3038 | cat >conftest.$ac_ext <<_ACEOF |
| 3039 | /* confdefs.h. */ |
| 3040 | _ACEOF |
| 3041 | cat confdefs.h >>conftest.$ac_ext |
| 3042 | cat >>conftest.$ac_ext <<_ACEOF |
| 3043 | /* end confdefs.h. */ |
| 3044 | #ifdef __STDC__ |
| 3045 | # include <limits.h> |
| 3046 | #else |
| 3047 | # include <assert.h> |
| 3048 | #endif |
| 3049 | Syntax error |
| 3050 | _ACEOF |
| 3051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3052 | case "(($ac_try" in |
| 3053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3054 | *) ac_try_echo=$ac_try;; |
| 3055 | esac |
| 3056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3058 | ac_status=$? |
| 3059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3060 | rm -f conftest.er1 |
| 3061 | cat conftest.err >&5 |
| 3062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3063 | (exit $ac_status); } >/dev/null; then |
| 3064 | if test -s conftest.err; then |
| 3065 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3067 | else |
| 3068 | ac_cpp_err= |
| 3069 | fi |
| 3070 | else |
| 3071 | ac_cpp_err=yes |
| 3072 | fi |
| 3073 | if test -z "$ac_cpp_err"; then |
| 3074 | : |
| 3075 | else |
| 3076 | echo "$as_me: failed program was:" >&5 |
| 3077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3078 | |
| 3079 | # Broken: fails on valid input. |
| 3080 | continue |
| 3081 | fi |
| 3082 | |
| 3083 | rm -f conftest.err conftest.$ac_ext |
| 3084 | |
| 3085 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3086 | # can be detected and how. |
| 3087 | cat >conftest.$ac_ext <<_ACEOF |
| 3088 | /* confdefs.h. */ |
| 3089 | _ACEOF |
| 3090 | cat confdefs.h >>conftest.$ac_ext |
| 3091 | cat >>conftest.$ac_ext <<_ACEOF |
| 3092 | /* end confdefs.h. */ |
| 3093 | #include <ac_nonexistent.h> |
| 3094 | _ACEOF |
| 3095 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3096 | case "(($ac_try" in |
| 3097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3098 | *) ac_try_echo=$ac_try;; |
| 3099 | esac |
| 3100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3101 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3102 | ac_status=$? |
| 3103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3104 | rm -f conftest.er1 |
| 3105 | cat conftest.err >&5 |
| 3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3107 | (exit $ac_status); } >/dev/null; then |
| 3108 | if test -s conftest.err; then |
| 3109 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3110 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3111 | else |
| 3112 | ac_cpp_err= |
| 3113 | fi |
| 3114 | else |
| 3115 | ac_cpp_err=yes |
| 3116 | fi |
| 3117 | if test -z "$ac_cpp_err"; then |
| 3118 | # Broken: success on invalid input. |
| 3119 | continue |
| 3120 | else |
| 3121 | echo "$as_me: failed program was:" >&5 |
| 3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3123 | |
| 3124 | # Passes both tests. |
| 3125 | ac_preproc_ok=: |
| 3126 | break |
| 3127 | fi |
| 3128 | |
| 3129 | rm -f conftest.err conftest.$ac_ext |
| 3130 | |
| 3131 | done |
| 3132 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3133 | rm -f conftest.err conftest.$ac_ext |
| 3134 | if $ac_preproc_ok; then |
| 3135 | : |
| 3136 | else |
| 3137 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3138 | See \`config.log' for more details." >&5 |
| 3139 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3140 | See \`config.log' for more details." >&2;} |
| 3141 | { (exit 1); exit 1; }; } |
| 3142 | fi |
| 3143 | |
| 3144 | ac_ext=c |
| 3145 | ac_cpp='$CPP $CPPFLAGS' |
| 3146 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3147 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3148 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3149 | |
| 3150 | { echo "$as_me:$LINENO: checking for compilation debug mode" >&5 |
| 3151 | echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6; } |
| 3152 | # Check whether --enable-debug was given. |
| 3153 | if test "${enable_debug+set}" = set; then |
| 3154 | enableval=$enable_debug; if test ".$ac_cv_c_compiler_gnu" = ".yes"; then |
| 3155 | case "$CFLAGS" in |
| 3156 | *-O2* ) ;; |
| 3157 | * ) CFLAGS="$CFLAGS -O2" ;; |
| 3158 | esac |
| 3159 | case "$CFLAGS" in |
| 3160 | *-g* ) ;; |
| 3161 | * ) CFLAGS="$CFLAGS -g" ;; |
| 3162 | esac |
| 3163 | CFLAGS="$CFLAGS -Wall -Wshadow -Wpointer-arith -Wcast-align" |
| 3164 | CFLAGS="$CFLAGS -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" |
| 3165 | else |
| 3166 | case "$CFLAGS" in |
| 3167 | *-g* ) ;; |
| 3168 | * ) CFLAGS="$CFLAGS -g" ;; |
| 3169 | esac |
| 3170 | fi |
| 3171 | msg="enabled" |
| 3172 | |
| 3173 | cat >>confdefs.h <<\_ACEOF |
| 3174 | #define MM_DEBUG 1 |
| 3175 | _ACEOF |
| 3176 | |
| 3177 | |
| 3178 | else |
| 3179 | |
| 3180 | case "$CFLAGS" in |
| 3181 | *-g* ) CFLAGS=`echo "$CFLAGS" |\ |
| 3182 | sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; |
| 3183 | esac |
| 3184 | msg=disabled |
| 3185 | |
| 3186 | fi |
| 3187 | { echo "$as_me:$LINENO: result: $msg" >&5 |
| 3188 | echo "${ECHO_T}$msg" >&6; } |
| 3189 | |
| 3190 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3191 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 3192 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3193 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3195 | else |
| 3196 | cat >conftest.make <<\_ACEOF |
| 3197 | SHELL = /bin/sh |
| 3198 | all: |
| 3199 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3200 | _ACEOF |
| 3201 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3202 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3203 | *@@@%%%=?*=@@@%%%*) |
| 3204 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3205 | *) |
| 3206 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3207 | esac |
| 3208 | rm -f conftest.make |
| 3209 | fi |
| 3210 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3211 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 3212 | echo "${ECHO_T}yes" >&6; } |
| 3213 | SET_MAKE= |
| 3214 | else |
| 3215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3216 | echo "${ECHO_T}no" >&6; } |
| 3217 | SET_MAKE="MAKE=${MAKE-make}" |
| 3218 | fi |
| 3219 | |
| 3220 | |
| 3221 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 3222 | ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 |
| 3223 | ## Free Software Foundation, Inc. |
| 3224 | ## Originally by Gordon Matzigkeit <[email protected]>, 1996 |
| 3225 | ## |
| 3226 | ## This file is free software; the Free Software Foundation gives |
| 3227 | ## unlimited permission to copy and/or distribute it, with or without |
| 3228 | ## modifications, as long as this notice is preserved. |
| 3229 | |
| 3230 | # serial 48 AC_PROG_LIBTOOL |
| 3231 | |
| 3232 | |
| 3233 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| 3234 | # ----------------------------------------------------------- |
| 3235 | # If this macro is not defined by Autoconf, define it here. |
| 3236 | |
| 3237 | |
| 3238 | |
| 3239 | # AC_PROG_LIBTOOL |
| 3240 | # --------------- |
| 3241 | # AC_PROG_LIBTOOL |
| 3242 | |
| 3243 | |
| 3244 | # _AC_PROG_LIBTOOL |
| 3245 | # ---------------- |
| 3246 | # _AC_PROG_LIBTOOL |
| 3247 | |
| 3248 | |
| 3249 | # AC_LIBTOOL_SETUP |
| 3250 | # ---------------- |
| 3251 | # AC_LIBTOOL_SETUP |
| 3252 | |
| 3253 | |
| 3254 | # _LT_AC_SYS_COMPILER |
| 3255 | # ------------------- |
| 3256 | # _LT_AC_SYS_COMPILER |
| 3257 | |
| 3258 | |
| 3259 | # _LT_CC_BASENAME(CC) |
| 3260 | # ------------------- |
| 3261 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 3262 | |
| 3263 | |
| 3264 | |
| 3265 | # _LT_COMPILER_BOILERPLATE |
| 3266 | # ------------------------ |
| 3267 | # Check for compiler boilerplate output or warnings with |
| 3268 | # the simple compiler test code. |
| 3269 | # _LT_COMPILER_BOILERPLATE |
| 3270 | |
| 3271 | |
| 3272 | # _LT_LINKER_BOILERPLATE |
| 3273 | # ---------------------- |
| 3274 | # Check for linker boilerplate output or warnings with |
| 3275 | # the simple link test code. |
| 3276 | # _LT_LINKER_BOILERPLATE |
| 3277 | |
| 3278 | |
| 3279 | # _LT_AC_SYS_LIBPATH_AIX |
| 3280 | # ---------------------- |
| 3281 | # Links a minimal program and checks the executable |
| 3282 | # for the system default hardcoded library path. In most cases, |
| 3283 | # this is /usr/lib:/lib, but when the MPI compilers are used |
| 3284 | # the location of the communication and MPI libs are included too. |
| 3285 | # If we don't find anything, use the default library path according |
| 3286 | # to the aix ld manual. |
| 3287 | # _LT_AC_SYS_LIBPATH_AIX |
| 3288 | |
| 3289 | |
| 3290 | # _LT_AC_SHELL_INIT(ARG) |
| 3291 | # ---------------------- |
| 3292 | # _LT_AC_SHELL_INIT |
| 3293 | |
| 3294 | |
| 3295 | # _LT_AC_PROG_ECHO_BACKSLASH |
| 3296 | # -------------------------- |
| 3297 | # Add some code to the start of the generated configure script which |
| 3298 | # will find an echo command which doesn't interpret backslashes. |
| 3299 | # _LT_AC_PROG_ECHO_BACKSLASH |
| 3300 | |
| 3301 | |
| 3302 | # _LT_AC_LOCK |
| 3303 | # ----------- |
| 3304 | # _LT_AC_LOCK |
| 3305 | |
| 3306 | |
| 3307 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 3308 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 3309 | # ---------------------------------------------------------------- |
| 3310 | # Check whether the given compiler option works |
| 3311 | # AC_LIBTOOL_COMPILER_OPTION |
| 3312 | |
| 3313 | |
| 3314 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 3315 | # [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 3316 | # ------------------------------------------------------------ |
| 3317 | # Check whether the given compiler option works |
| 3318 | # AC_LIBTOOL_LINKER_OPTION |
| 3319 | |
| 3320 | |
| 3321 | # AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 3322 | # -------------------------- |
| 3323 | # AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 3324 | |
| 3325 | |
| 3326 | # _LT_AC_CHECK_DLFCN |
| 3327 | # ------------------ |
| 3328 | # _LT_AC_CHECK_DLFCN |
| 3329 | |
| 3330 | |
| 3331 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 3332 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 3333 | # --------------------------------------------------------------------- |
| 3334 | # _LT_AC_TRY_DLOPEN_SELF |
| 3335 | |
| 3336 | |
| 3337 | # AC_LIBTOOL_DLOPEN_SELF |
| 3338 | # ---------------------- |
| 3339 | # AC_LIBTOOL_DLOPEN_SELF |
| 3340 | |
| 3341 | |
| 3342 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
| 3343 | # --------------------------------- |
| 3344 | # Check to see if options -c and -o are simultaneously supported by compiler |
| 3345 | # AC_LIBTOOL_PROG_CC_C_O |
| 3346 | |
| 3347 | |
| 3348 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
| 3349 | # ----------------------------------------- |
| 3350 | # Check to see if we can do hard links to lock some files if needed |
| 3351 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
| 3352 | |
| 3353 | |
| 3354 | # AC_LIBTOOL_OBJDIR |
| 3355 | # ----------------- |
| 3356 | # AC_LIBTOOL_OBJDIR |
| 3357 | |
| 3358 | |
| 3359 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
| 3360 | # ---------------------------------------------- |
| 3361 | # Check hardcoding attributes. |
| 3362 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
| 3363 | |
| 3364 | |
| 3365 | # AC_LIBTOOL_SYS_LIB_STRIP |
| 3366 | # ------------------------ |
| 3367 | # AC_LIBTOOL_SYS_LIB_STRIP |
| 3368 | |
| 3369 | |
| 3370 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 3371 | # ----------------------------- |
| 3372 | # PORTME Fill in your ld.so characteristics |
| 3373 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 3374 | |
| 3375 | |
| 3376 | # _LT_AC_TAGCONFIG |
| 3377 | # ---------------- |
| 3378 | # _LT_AC_TAGCONFIG |
| 3379 | |
| 3380 | |
| 3381 | # AC_LIBTOOL_DLOPEN |
| 3382 | # ----------------- |
| 3383 | # enable checks for dlopen support |
| 3384 | # AC_LIBTOOL_DLOPEN |
| 3385 | |
| 3386 | |
| 3387 | # AC_LIBTOOL_WIN32_DLL |
| 3388 | # -------------------- |
| 3389 | # declare package support for building win32 DLLs |
| 3390 | # AC_LIBTOOL_WIN32_DLL |
| 3391 | |
| 3392 | |
| 3393 | # AC_ENABLE_SHARED([DEFAULT]) |
| 3394 | # --------------------------- |
| 3395 | # implement the --enable-shared flag |
| 3396 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 3397 | # AC_ENABLE_SHARED |
| 3398 | |
| 3399 | |
| 3400 | # AC_DISABLE_SHARED |
| 3401 | # ----------------- |
| 3402 | # set the default shared flag to --disable-shared |
| 3403 | # AC_DISABLE_SHARED |
| 3404 | |
| 3405 | |
| 3406 | # AC_ENABLE_STATIC([DEFAULT]) |
| 3407 | # --------------------------- |
| 3408 | # implement the --enable-static flag |
| 3409 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 3410 | # AC_ENABLE_STATIC |
| 3411 | |
| 3412 | |
| 3413 | # AC_DISABLE_STATIC |
| 3414 | # ----------------- |
| 3415 | # set the default static flag to --disable-static |
| 3416 | # AC_DISABLE_STATIC |
| 3417 | |
| 3418 | |
| 3419 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) |
| 3420 | # --------------------------------- |
| 3421 | # implement the --enable-fast-install flag |
| 3422 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 3423 | # AC_ENABLE_FAST_INSTALL |
| 3424 | |
| 3425 | |
| 3426 | # AC_DISABLE_FAST_INSTALL |
| 3427 | # ----------------------- |
| 3428 | # set the default to --disable-fast-install |
| 3429 | # AC_DISABLE_FAST_INSTALL |
| 3430 | |
| 3431 | |
| 3432 | # AC_LIBTOOL_PICMODE([MODE]) |
| 3433 | # -------------------------- |
| 3434 | # implement the --with-pic flag |
| 3435 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
| 3436 | # AC_LIBTOOL_PICMODE |
| 3437 | |
| 3438 | |
| 3439 | # AC_PROG_EGREP |
| 3440 | # ------------- |
| 3441 | # This is predefined starting with Autoconf 2.54, so this conditional |
| 3442 | # definition can be removed once we require Autoconf 2.54 or later. |
| 3443 | |
| 3444 | |
| 3445 | |
| 3446 | # AC_PATH_TOOL_PREFIX |
| 3447 | # ------------------- |
| 3448 | # find a file program which can recognise shared library |
| 3449 | # AC_PATH_TOOL_PREFIX |
| 3450 | |
| 3451 | |
| 3452 | # AC_PATH_MAGIC |
| 3453 | # ------------- |
| 3454 | # find a file program which can recognise a shared library |
| 3455 | # AC_PATH_MAGIC |
| 3456 | |
| 3457 | |
| 3458 | # AC_PROG_LD |
| 3459 | # ---------- |
| 3460 | # find the pathname to the GNU or non-GNU linker |
| 3461 | # AC_PROG_LD |
| 3462 | |
| 3463 | |
| 3464 | # AC_PROG_LD_GNU |
| 3465 | # -------------- |
| 3466 | # AC_PROG_LD_GNU |
| 3467 | |
| 3468 | |
| 3469 | # AC_PROG_LD_RELOAD_FLAG |
| 3470 | # ---------------------- |
| 3471 | # find reload flag for linker |
| 3472 | # -- PORTME Some linkers may need a different reload flag. |
| 3473 | # AC_PROG_LD_RELOAD_FLAG |
| 3474 | |
| 3475 | |
| 3476 | # AC_DEPLIBS_CHECK_METHOD |
| 3477 | # ----------------------- |
| 3478 | # how to check for library dependencies |
| 3479 | # -- PORTME fill in with the dynamic library characteristics |
| 3480 | # AC_DEPLIBS_CHECK_METHOD |
| 3481 | |
| 3482 | |
| 3483 | # AC_PROG_NM |
| 3484 | # ---------- |
| 3485 | # find the pathname to a BSD-compatible name lister |
| 3486 | # AC_PROG_NM |
| 3487 | |
| 3488 | |
| 3489 | # AC_CHECK_LIBM |
| 3490 | # ------------- |
| 3491 | # check for math library |
| 3492 | # AC_CHECK_LIBM |
| 3493 | |
| 3494 | |
| 3495 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
| 3496 | # ----------------------------------- |
| 3497 | # sets LIBLTDL to the link flags for the libltdl convenience library and |
| 3498 | # LTDLINCL to the include flags for the libltdl header and adds |
| 3499 | # --enable-ltdl-convenience to the configure arguments. Note that |
| 3500 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 3501 | # it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
| 3502 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
| 3503 | # (note the single quotes!). If your package is not flat and you're not |
| 3504 | # using automake, define top_builddir and top_srcdir appropriately in |
| 3505 | # the Makefiles. |
| 3506 | # AC_LIBLTDL_CONVENIENCE |
| 3507 | |
| 3508 | |
| 3509 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
| 3510 | # ----------------------------------- |
| 3511 | # sets LIBLTDL to the link flags for the libltdl installable library and |
| 3512 | # LTDLINCL to the include flags for the libltdl header and adds |
| 3513 | # --enable-ltdl-install to the configure arguments. Note that |
| 3514 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 3515 | # and an installed libltdl is not found, it is assumed to be `libltdl'. |
| 3516 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
| 3517 | # '${top_srcdir}/' (note the single quotes!). If your package is not |
| 3518 | # flat and you're not using automake, define top_builddir and top_srcdir |
| 3519 | # appropriately in the Makefiles. |
| 3520 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 3521 | # AC_LIBLTDL_INSTALLABLE |
| 3522 | |
| 3523 | |
| 3524 | # AC_LIBTOOL_CXX |
| 3525 | # -------------- |
| 3526 | # enable support for C++ libraries |
| 3527 | # AC_LIBTOOL_CXX |
| 3528 | |
| 3529 | |
| 3530 | # _LT_AC_LANG_CXX |
| 3531 | # --------------- |
| 3532 | # _LT_AC_LANG_CXX |
| 3533 | |
| 3534 | # _LT_AC_PROG_CXXCPP |
| 3535 | # ------------------ |
| 3536 | # _LT_AC_PROG_CXXCPP |
| 3537 | |
| 3538 | # AC_LIBTOOL_F77 |
| 3539 | # -------------- |
| 3540 | # enable support for Fortran 77 libraries |
| 3541 | # AC_LIBTOOL_F77 |
| 3542 | |
| 3543 | |
| 3544 | # _LT_AC_LANG_F77 |
| 3545 | # --------------- |
| 3546 | # _LT_AC_LANG_F77 |
| 3547 | |
| 3548 | |
| 3549 | # AC_LIBTOOL_GCJ |
| 3550 | # -------------- |
| 3551 | # enable support for GCJ libraries |
| 3552 | # AC_LIBTOOL_GCJ |
| 3553 | |
| 3554 | |
| 3555 | # _LT_AC_LANG_GCJ |
| 3556 | # --------------- |
| 3557 | # _LT_AC_LANG_GCJ |
| 3558 | |
| 3559 | |
| 3560 | # AC_LIBTOOL_RC |
| 3561 | # ------------- |
| 3562 | # enable support for Windows resource files |
| 3563 | # AC_LIBTOOL_RC |
| 3564 | |
| 3565 | |
| 3566 | # AC_LIBTOOL_LANG_C_CONFIG |
| 3567 | # ------------------------ |
| 3568 | # Ensure that the configuration vars for the C compiler are |
| 3569 | # suitably defined. Those variables are subsequently used by |
| 3570 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3571 | |
| 3572 | # AC_LIBTOOL_LANG_C_CONFIG |
| 3573 | |
| 3574 | |
| 3575 | # AC_LIBTOOL_LANG_CXX_CONFIG |
| 3576 | # -------------------------- |
| 3577 | # Ensure that the configuration vars for the C compiler are |
| 3578 | # suitably defined. Those variables are subsequently used by |
| 3579 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3580 | |
| 3581 | # AC_LIBTOOL_LANG_CXX_CONFIG |
| 3582 | |
| 3583 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
| 3584 | # ------------------------------------ |
| 3585 | # Figure out "hidden" library dependencies from verbose |
| 3586 | # compiler output when linking a shared library. |
| 3587 | # Parse the compiler output and extract the necessary |
| 3588 | # objects, libraries and library flags. |
| 3589 | # AC_LIBTOOL_POSTDEP_PREDEP |
| 3590 | |
| 3591 | # AC_LIBTOOL_LANG_F77_CONFIG |
| 3592 | # -------------------------- |
| 3593 | # Ensure that the configuration vars for the C compiler are |
| 3594 | # suitably defined. Those variables are subsequently used by |
| 3595 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3596 | |
| 3597 | # AC_LIBTOOL_LANG_F77_CONFIG |
| 3598 | |
| 3599 | |
| 3600 | # AC_LIBTOOL_LANG_GCJ_CONFIG |
| 3601 | # -------------------------- |
| 3602 | # Ensure that the configuration vars for the C compiler are |
| 3603 | # suitably defined. Those variables are subsequently used by |
| 3604 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3605 | |
| 3606 | # AC_LIBTOOL_LANG_GCJ_CONFIG |
| 3607 | |
| 3608 | |
| 3609 | # AC_LIBTOOL_LANG_RC_CONFIG |
| 3610 | # ------------------------- |
| 3611 | # Ensure that the configuration vars for the Windows resource compiler are |
| 3612 | # suitably defined. Those variables are subsequently used by |
| 3613 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 3614 | |
| 3615 | # AC_LIBTOOL_LANG_RC_CONFIG |
| 3616 | |
| 3617 | |
| 3618 | # AC_LIBTOOL_CONFIG([TAGNAME]) |
| 3619 | # ---------------------------- |
| 3620 | # If TAGNAME is not passed, then create an initial libtool script |
| 3621 | # with a default configuration from the untagged config vars. Otherwise |
| 3622 | # add code to config.status for appending the configuration named by |
| 3623 | # TAGNAME from the matching tagged config vars. |
| 3624 | # AC_LIBTOOL_CONFIG |
| 3625 | |
| 3626 | |
| 3627 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
| 3628 | # ------------------------------------------- |
| 3629 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
| 3630 | |
| 3631 | |
| 3632 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 3633 | # --------------------------------- |
| 3634 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 3635 | |
| 3636 | |
| 3637 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
| 3638 | # --------------------------------------- |
| 3639 | |
| 3640 | |
| 3641 | |
| 3642 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
| 3643 | # ------------------------------------ |
| 3644 | # See if the linker supports building shared libraries. |
| 3645 | # AC_LIBTOOL_PROG_LD_SHLIBS |
| 3646 | |
| 3647 | |
| 3648 | # _LT_AC_FILE_LTDLL_C |
| 3649 | # ------------------- |
| 3650 | # Be careful that the start marker always follows a newline. |
| 3651 | # _LT_AC_FILE_LTDLL_C |
| 3652 | |
| 3653 | |
| 3654 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
| 3655 | # --------------------------------- |
| 3656 | |
| 3657 | |
| 3658 | |
| 3659 | # old names |
| 3660 | |
| 3661 | |
| 3662 | |
| 3663 | |
| 3664 | |
| 3665 | |
| 3666 | |
| 3667 | |
| 3668 | # This is just to silence aclocal about the macro not being used |
| 3669 | |
| 3670 | |
| 3671 | |
| 3672 | |
| 3673 | |
| 3674 | |
| 3675 | ############################################################ |
| 3676 | # NOTE: This macro has been submitted for inclusion into # |
| 3677 | # GNU Autoconf as AC_PROG_SED. When it is available in # |
| 3678 | # a released version of Autoconf we should remove this # |
| 3679 | # macro and use it instead. # |
| 3680 | ############################################################ |
| 3681 | # LT_AC_PROG_SED |
| 3682 | # -------------- |
| 3683 | # Check for a fully-functional sed program, that truncates |
| 3684 | # as few characters as possible. Prefer GNU sed if found. |
| 3685 | |
| 3686 | |
| 3687 | # Check whether --enable-shared was given. |
| 3688 | if test "${enable_shared+set}" = set; then |
| 3689 | enableval=$enable_shared; p=${PACKAGE-default} |
| 3690 | case $enableval in |
| 3691 | yes) enable_shared=yes ;; |
| 3692 | no) enable_shared=no ;; |
| 3693 | *) |
| 3694 | enable_shared=no |
| 3695 | # Look at the argument we got. We use all the common list separators. |
| 3696 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3697 | for pkg in $enableval; do |
| 3698 | IFS="$lt_save_ifs" |
| 3699 | if test "X$pkg" = "X$p"; then |
| 3700 | enable_shared=yes |
| 3701 | fi |
| 3702 | done |
| 3703 | IFS="$lt_save_ifs" |
| 3704 | ;; |
| 3705 | esac |
| 3706 | else |
| 3707 | enable_shared=yes |
| 3708 | fi |
| 3709 | |
| 3710 | |
| 3711 | # Check whether --enable-static was given. |
| 3712 | if test "${enable_static+set}" = set; then |
| 3713 | enableval=$enable_static; p=${PACKAGE-default} |
| 3714 | case $enableval in |
| 3715 | yes) enable_static=yes ;; |
| 3716 | no) enable_static=no ;; |
| 3717 | *) |
| 3718 | enable_static=no |
| 3719 | # Look at the argument we got. We use all the common list separators. |
| 3720 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3721 | for pkg in $enableval; do |
| 3722 | IFS="$lt_save_ifs" |
| 3723 | if test "X$pkg" = "X$p"; then |
| 3724 | enable_static=yes |
| 3725 | fi |
| 3726 | done |
| 3727 | IFS="$lt_save_ifs" |
| 3728 | ;; |
| 3729 | esac |
| 3730 | else |
| 3731 | enable_static=yes |
| 3732 | fi |
| 3733 | |
| 3734 | |
| 3735 | # Check whether --enable-fast-install was given. |
| 3736 | if test "${enable_fast_install+set}" = set; then |
| 3737 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 3738 | case $enableval in |
| 3739 | yes) enable_fast_install=yes ;; |
| 3740 | no) enable_fast_install=no ;; |
| 3741 | *) |
| 3742 | enable_fast_install=no |
| 3743 | # Look at the argument we got. We use all the common list separators. |
| 3744 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3745 | for pkg in $enableval; do |
| 3746 | IFS="$lt_save_ifs" |
| 3747 | if test "X$pkg" = "X$p"; then |
| 3748 | enable_fast_install=yes |
| 3749 | fi |
| 3750 | done |
| 3751 | IFS="$lt_save_ifs" |
| 3752 | ;; |
| 3753 | esac |
| 3754 | else |
| 3755 | enable_fast_install=yes |
| 3756 | fi |
| 3757 | |
| 3758 | |
| 3759 | ac_aux_dir= |
| 3760 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3761 | if test -f "$ac_dir/install-sh"; then |
| 3762 | ac_aux_dir=$ac_dir |
| 3763 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3764 | break |
| 3765 | elif test -f "$ac_dir/install.sh"; then |
| 3766 | ac_aux_dir=$ac_dir |
| 3767 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3768 | break |
| 3769 | elif test -f "$ac_dir/shtool"; then |
| 3770 | ac_aux_dir=$ac_dir |
| 3771 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3772 | break |
| 3773 | fi |
| 3774 | done |
| 3775 | if test -z "$ac_aux_dir"; then |
| 3776 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 3777 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 3778 | { (exit 1); exit 1; }; } |
| 3779 | fi |
| 3780 | |
| 3781 | # These three variables are undocumented and unsupported, |
| 3782 | # and are intended to be withdrawn in a future Autoconf release. |
| 3783 | # They can cause serious problems if a builder's source tree is in a directory |
| 3784 | # whose full name contains unusual characters. |
| 3785 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3786 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3787 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3788 | |
| 3789 | |
| 3790 | # Make sure we can run config.sub. |
| 3791 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3792 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3793 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3794 | { (exit 1); exit 1; }; } |
| 3795 | |
| 3796 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3797 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3798 | if test "${ac_cv_build+set}" = set; then |
| 3799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3800 | else |
| 3801 | ac_build_alias=$build_alias |
| 3802 | test "x$ac_build_alias" = x && |
| 3803 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3804 | test "x$ac_build_alias" = x && |
| 3805 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3806 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3807 | { (exit 1); exit 1; }; } |
| 3808 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3809 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3810 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3811 | { (exit 1); exit 1; }; } |
| 3812 | |
| 3813 | fi |
| 3814 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3815 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3816 | case $ac_cv_build in |
| 3817 | *-*-*) ;; |
| 3818 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3819 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3820 | { (exit 1); exit 1; }; };; |
| 3821 | esac |
| 3822 | build=$ac_cv_build |
| 3823 | ac_save_IFS=$IFS; IFS='-' |
| 3824 | set x $ac_cv_build |
| 3825 | shift |
| 3826 | build_cpu=$1 |
| 3827 | build_vendor=$2 |
| 3828 | shift; shift |
| 3829 | # Remember, the first character of IFS is used to create $*, |
| 3830 | # except with old shells: |
| 3831 | build_os=$* |
| 3832 | IFS=$ac_save_IFS |
| 3833 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3834 | |
| 3835 | |
| 3836 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3837 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3838 | if test "${ac_cv_host+set}" = set; then |
| 3839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3840 | else |
| 3841 | if test "x$host_alias" = x; then |
| 3842 | ac_cv_host=$ac_cv_build |
| 3843 | else |
| 3844 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3845 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3846 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3847 | { (exit 1); exit 1; }; } |
| 3848 | fi |
| 3849 | |
| 3850 | fi |
| 3851 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3852 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3853 | case $ac_cv_host in |
| 3854 | *-*-*) ;; |
| 3855 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3856 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3857 | { (exit 1); exit 1; }; };; |
| 3858 | esac |
| 3859 | host=$ac_cv_host |
| 3860 | ac_save_IFS=$IFS; IFS='-' |
| 3861 | set x $ac_cv_host |
| 3862 | shift |
| 3863 | host_cpu=$1 |
| 3864 | host_vendor=$2 |
| 3865 | shift; shift |
| 3866 | # Remember, the first character of IFS is used to create $*, |
| 3867 | # except with old shells: |
| 3868 | host_os=$* |
| 3869 | IFS=$ac_save_IFS |
| 3870 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3871 | |
| 3872 | |
| 3873 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3874 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
| 3875 | if test "${lt_cv_path_SED+set}" = set; then |
| 3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3877 | else |
| 3878 | # Loop through the user's path and test for sed and gsed. |
| 3879 | # Then use that list of sed's as ones to test for truncation. |
| 3880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3881 | for as_dir in $PATH |
| 3882 | do |
| 3883 | IFS=$as_save_IFS |
| 3884 | test -z "$as_dir" && as_dir=. |
| 3885 | for lt_ac_prog in sed gsed; do |
| 3886 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3887 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3888 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3889 | fi |
| 3890 | done |
| 3891 | done |
| 3892 | done |
| 3893 | lt_ac_max=0 |
| 3894 | lt_ac_count=0 |
| 3895 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3896 | # along with /bin/sed that truncates output. |
| 3897 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3898 | test ! -f $lt_ac_sed && continue |
| 3899 | cat /dev/null > conftest.in |
| 3900 | lt_ac_count=0 |
| 3901 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3902 | # Check for GNU sed and select it if it is found. |
| 3903 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3904 | lt_cv_path_SED=$lt_ac_sed |
| 3905 | break |
| 3906 | fi |
| 3907 | while true; do |
| 3908 | cat conftest.in conftest.in >conftest.tmp |
| 3909 | mv conftest.tmp conftest.in |
| 3910 | cp conftest.in conftest.nl |
| 3911 | echo >>conftest.nl |
| 3912 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3913 | cmp -s conftest.out conftest.nl || break |
| 3914 | # 10000 chars as input seems more than enough |
| 3915 | test $lt_ac_count -gt 10 && break |
| 3916 | lt_ac_count=`expr $lt_ac_count + 1` |
| 3917 | if test $lt_ac_count -gt $lt_ac_max; then |
| 3918 | lt_ac_max=$lt_ac_count |
| 3919 | lt_cv_path_SED=$lt_ac_sed |
| 3920 | fi |
| 3921 | done |
| 3922 | done |
| 3923 | |
| 3924 | fi |
| 3925 | |
| 3926 | SED=$lt_cv_path_SED |
| 3927 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 3928 | echo "${ECHO_T}$SED" >&6; } |
| 3929 | |
| 3930 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3931 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3932 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3934 | else |
| 3935 | # Extract the first word of "grep ggrep" to use in msg output |
| 3936 | if test -z "$GREP"; then |
| 3937 | set dummy grep ggrep; ac_prog_name=$2 |
| 3938 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3940 | else |
| 3941 | ac_path_GREP_found=false |
| 3942 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3944 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3945 | do |
| 3946 | IFS=$as_save_IFS |
| 3947 | test -z "$as_dir" && as_dir=. |
| 3948 | for ac_prog in grep ggrep; do |
| 3949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3950 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3951 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3952 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3953 | # Check for GNU $ac_path_GREP |
| 3954 | case `"$ac_path_GREP" --version 2>&1` in |
| 3955 | *GNU*) |
| 3956 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3957 | *) |
| 3958 | ac_count=0 |
| 3959 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3960 | while : |
| 3961 | do |
| 3962 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3963 | mv "conftest.tmp" "conftest.in" |
| 3964 | cp "conftest.in" "conftest.nl" |
| 3965 | echo 'GREP' >> "conftest.nl" |
| 3966 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3967 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3968 | ac_count=`expr $ac_count + 1` |
| 3969 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3970 | # Best one so far, save it but keep looking for a better one |
| 3971 | ac_cv_path_GREP="$ac_path_GREP" |
| 3972 | ac_path_GREP_max=$ac_count |
| 3973 | fi |
| 3974 | # 10*(2^10) chars as input seems more than enough |
| 3975 | test $ac_count -gt 10 && break |
| 3976 | done |
| 3977 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3978 | esac |
| 3979 | |
| 3980 | |
| 3981 | $ac_path_GREP_found && break 3 |
| 3982 | done |
| 3983 | done |
| 3984 | |
| 3985 | done |
| 3986 | IFS=$as_save_IFS |
| 3987 | |
| 3988 | |
| 3989 | fi |
| 3990 | |
| 3991 | GREP="$ac_cv_path_GREP" |
| 3992 | if test -z "$GREP"; then |
| 3993 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3994 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3995 | { (exit 1); exit 1; }; } |
| 3996 | fi |
| 3997 | |
| 3998 | else |
| 3999 | ac_cv_path_GREP=$GREP |
| 4000 | fi |
| 4001 | |
| 4002 | |
| 4003 | fi |
| 4004 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4005 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4006 | GREP="$ac_cv_path_GREP" |
| 4007 | |
| 4008 | |
| 4009 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4010 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4011 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4013 | else |
| 4014 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4015 | then ac_cv_path_EGREP="$GREP -E" |
| 4016 | else |
| 4017 | # Extract the first word of "egrep" to use in msg output |
| 4018 | if test -z "$EGREP"; then |
| 4019 | set dummy egrep; ac_prog_name=$2 |
| 4020 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4022 | else |
| 4023 | ac_path_EGREP_found=false |
| 4024 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4026 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4027 | do |
| 4028 | IFS=$as_save_IFS |
| 4029 | test -z "$as_dir" && as_dir=. |
| 4030 | for ac_prog in egrep; do |
| 4031 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4032 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4033 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4034 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4035 | # Check for GNU $ac_path_EGREP |
| 4036 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4037 | *GNU*) |
| 4038 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4039 | *) |
| 4040 | ac_count=0 |
| 4041 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4042 | while : |
| 4043 | do |
| 4044 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4045 | mv "conftest.tmp" "conftest.in" |
| 4046 | cp "conftest.in" "conftest.nl" |
| 4047 | echo 'EGREP' >> "conftest.nl" |
| 4048 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4049 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4050 | ac_count=`expr $ac_count + 1` |
| 4051 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4052 | # Best one so far, save it but keep looking for a better one |
| 4053 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4054 | ac_path_EGREP_max=$ac_count |
| 4055 | fi |
| 4056 | # 10*(2^10) chars as input seems more than enough |
| 4057 | test $ac_count -gt 10 && break |
| 4058 | done |
| 4059 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4060 | esac |
| 4061 | |
| 4062 | |
| 4063 | $ac_path_EGREP_found && break 3 |
| 4064 | done |
| 4065 | done |
| 4066 | |
| 4067 | done |
| 4068 | IFS=$as_save_IFS |
| 4069 | |
| 4070 | |
| 4071 | fi |
| 4072 | |
| 4073 | EGREP="$ac_cv_path_EGREP" |
| 4074 | if test -z "$EGREP"; then |
| 4075 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4076 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4077 | { (exit 1); exit 1; }; } |
| 4078 | fi |
| 4079 | |
| 4080 | else |
| 4081 | ac_cv_path_EGREP=$EGREP |
| 4082 | fi |
| 4083 | |
| 4084 | |
| 4085 | fi |
| 4086 | fi |
| 4087 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4088 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4089 | EGREP="$ac_cv_path_EGREP" |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | # Check whether --with-gnu-ld was given. |
| 4094 | if test "${with_gnu_ld+set}" = set; then |
| 4095 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4096 | else |
| 4097 | with_gnu_ld=no |
| 4098 | fi |
| 4099 | |
| 4100 | ac_prog=ld |
| 4101 | if test "$GCC" = yes; then |
| 4102 | # Check if gcc -print-prog-name=ld gives a path. |
| 4103 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4104 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
| 4105 | case $host in |
| 4106 | *-*-mingw*) |
| 4107 | # gcc leaves a trailing carriage return which upsets mingw |
| 4108 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4109 | *) |
| 4110 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4111 | esac |
| 4112 | case $ac_prog in |
| 4113 | # Accept absolute paths. |
| 4114 | [\\/]* | ?:[\\/]*) |
| 4115 | re_direlt='/[^/][^/]*/\.\./' |
| 4116 | # Canonicalize the pathname of ld |
| 4117 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 4118 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 4119 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 4120 | done |
| 4121 | test -z "$LD" && LD="$ac_prog" |
| 4122 | ;; |
| 4123 | "") |
| 4124 | # If it fails, then pretend we aren't using GCC. |
| 4125 | ac_prog=ld |
| 4126 | ;; |
| 4127 | *) |
| 4128 | # If it is relative, then search for the first ld in PATH. |
| 4129 | with_gnu_ld=unknown |
| 4130 | ;; |
| 4131 | esac |
| 4132 | elif test "$with_gnu_ld" = yes; then |
| 4133 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4134 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
| 4135 | else |
| 4136 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4137 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
| 4138 | fi |
| 4139 | if test "${lt_cv_path_LD+set}" = set; then |
| 4140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4141 | else |
| 4142 | if test -z "$LD"; then |
| 4143 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4144 | for ac_dir in $PATH; do |
| 4145 | IFS="$lt_save_ifs" |
| 4146 | test -z "$ac_dir" && ac_dir=. |
| 4147 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4148 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4149 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4150 | # but apparently some variants of GNU ld only accept -v. |
| 4151 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4152 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4153 | *GNU* | *'with BFD'*) |
| 4154 | test "$with_gnu_ld" != no && break |
| 4155 | ;; |
| 4156 | *) |
| 4157 | test "$with_gnu_ld" != yes && break |
| 4158 | ;; |
| 4159 | esac |
| 4160 | fi |
| 4161 | done |
| 4162 | IFS="$lt_save_ifs" |
| 4163 | else |
| 4164 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4165 | fi |
| 4166 | fi |
| 4167 | |
| 4168 | LD="$lt_cv_path_LD" |
| 4169 | if test -n "$LD"; then |
| 4170 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4171 | echo "${ECHO_T}$LD" >&6; } |
| 4172 | else |
| 4173 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4174 | echo "${ECHO_T}no" >&6; } |
| 4175 | fi |
| 4176 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4177 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4178 | { (exit 1); exit 1; }; } |
| 4179 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4180 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
| 4181 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4183 | else |
| 4184 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4185 | case `$LD -v 2>&1 </dev/null` in |
| 4186 | *GNU* | *'with BFD'*) |
| 4187 | lt_cv_prog_gnu_ld=yes |
| 4188 | ;; |
| 4189 | *) |
| 4190 | lt_cv_prog_gnu_ld=no |
| 4191 | ;; |
| 4192 | esac |
| 4193 | fi |
| 4194 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4195 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
| 4196 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4197 | |
| 4198 | |
| 4199 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4200 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
| 4201 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4203 | else |
| 4204 | lt_cv_ld_reload_flag='-r' |
| 4205 | fi |
| 4206 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4207 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
| 4208 | reload_flag=$lt_cv_ld_reload_flag |
| 4209 | case $reload_flag in |
| 4210 | "" | " "*) ;; |
| 4211 | *) reload_flag=" $reload_flag" ;; |
| 4212 | esac |
| 4213 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4214 | case $host_os in |
| 4215 | darwin*) |
| 4216 | if test "$GCC" = yes; then |
| 4217 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4218 | else |
| 4219 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4220 | fi |
| 4221 | ;; |
| 4222 | esac |
| 4223 | |
| 4224 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4225 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 4226 | if test "${lt_cv_path_NM+set}" = set; then |
| 4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4228 | else |
| 4229 | if test -n "$NM"; then |
| 4230 | # Let the user override the test. |
| 4231 | lt_cv_path_NM="$NM" |
| 4232 | else |
| 4233 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4234 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4235 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4236 | fi |
| 4237 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4238 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4239 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4240 | IFS="$lt_save_ifs" |
| 4241 | test -z "$ac_dir" && ac_dir=. |
| 4242 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4243 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4244 | # Check to see if the nm accepts a BSD-compat flag. |
| 4245 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4246 | # nm: unknown option "B" ignored |
| 4247 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4248 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4249 | */dev/null* | *'Invalid file or object type'*) |
| 4250 | lt_cv_path_NM="$tmp_nm -B" |
| 4251 | break |
| 4252 | ;; |
| 4253 | *) |
| 4254 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4255 | */dev/null*) |
| 4256 | lt_cv_path_NM="$tmp_nm -p" |
| 4257 | break |
| 4258 | ;; |
| 4259 | *) |
| 4260 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4261 | continue # so that we can try to find one that supports BSD flags |
| 4262 | ;; |
| 4263 | esac |
| 4264 | ;; |
| 4265 | esac |
| 4266 | fi |
| 4267 | done |
| 4268 | IFS="$lt_save_ifs" |
| 4269 | done |
| 4270 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4271 | fi |
| 4272 | fi |
| 4273 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4274 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 4275 | NM="$lt_cv_path_NM" |
| 4276 | |
| 4277 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4278 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 4279 | LN_S=$as_ln_s |
| 4280 | if test "$LN_S" = "ln -s"; then |
| 4281 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4282 | echo "${ECHO_T}yes" >&6; } |
| 4283 | else |
| 4284 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4285 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 4286 | fi |
| 4287 | |
| 4288 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4289 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
| 4290 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4292 | else |
| 4293 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4294 | lt_cv_file_magic_test_file= |
| 4295 | lt_cv_deplibs_check_method='unknown' |
| 4296 | # Need to set the preceding variable on all platforms that support |
| 4297 | # interlibrary dependencies. |
| 4298 | # 'none' -- dependencies not supported. |
| 4299 | # `unknown' -- same as none, but documents that we really don't know. |
| 4300 | # 'pass_all' -- all dependencies passed with no checks. |
| 4301 | # 'test_compile' -- check by making test program. |
| 4302 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4303 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4304 | # If you have `file' or equivalent on your system and you're not sure |
| 4305 | # whether `pass_all' will *always* work, you probably want this one. |
| 4306 | |
| 4307 | case $host_os in |
| 4308 | aix4* | aix5*) |
| 4309 | lt_cv_deplibs_check_method=pass_all |
| 4310 | ;; |
| 4311 | |
| 4312 | beos*) |
| 4313 | lt_cv_deplibs_check_method=pass_all |
| 4314 | ;; |
| 4315 | |
| 4316 | bsdi[45]*) |
| 4317 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4318 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4319 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4320 | ;; |
| 4321 | |
| 4322 | cygwin*) |
| 4323 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4324 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4325 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4326 | ;; |
| 4327 | |
| 4328 | mingw* | pw32*) |
| 4329 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4330 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4331 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4332 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4333 | ;; |
| 4334 | |
| 4335 | darwin* | rhapsody*) |
| 4336 | lt_cv_deplibs_check_method=pass_all |
| 4337 | ;; |
| 4338 | |
| 4339 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 4340 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4341 | case $host_cpu in |
| 4342 | i*86 ) |
| 4343 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4344 | # Let's accept both of them until this is cleared up. |
| 4345 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 4346 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4347 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4348 | ;; |
| 4349 | esac |
| 4350 | else |
| 4351 | lt_cv_deplibs_check_method=pass_all |
| 4352 | fi |
| 4353 | ;; |
| 4354 | |
| 4355 | gnu*) |
| 4356 | lt_cv_deplibs_check_method=pass_all |
| 4357 | ;; |
| 4358 | |
| 4359 | hpux10.20* | hpux11*) |
| 4360 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4361 | case $host_cpu in |
| 4362 | ia64*) |
| 4363 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4364 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4365 | ;; |
| 4366 | hppa*64*) |
| 4367 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 4368 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4369 | ;; |
| 4370 | *) |
| 4371 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4372 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4373 | ;; |
| 4374 | esac |
| 4375 | ;; |
| 4376 | |
| 4377 | interix3*) |
| 4378 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4379 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4380 | ;; |
| 4381 | |
| 4382 | irix5* | irix6* | nonstopux*) |
| 4383 | case $LD in |
| 4384 | *-32|*"-32 ") libmagic=32-bit;; |
| 4385 | *-n32|*"-n32 ") libmagic=N32;; |
| 4386 | *-64|*"-64 ") libmagic=64-bit;; |
| 4387 | *) libmagic=never-match;; |
| 4388 | esac |
| 4389 | lt_cv_deplibs_check_method=pass_all |
| 4390 | ;; |
| 4391 | |
| 4392 | # This must be Linux ELF. |
| 4393 | linux*) |
| 4394 | lt_cv_deplibs_check_method=pass_all |
| 4395 | ;; |
| 4396 | |
| 4397 | netbsd*) |
| 4398 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4399 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4400 | else |
| 4401 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4402 | fi |
| 4403 | ;; |
| 4404 | |
| 4405 | newos6*) |
| 4406 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4407 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4408 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4409 | ;; |
| 4410 | |
| 4411 | nto-qnx*) |
| 4412 | lt_cv_deplibs_check_method=unknown |
| 4413 | ;; |
| 4414 | |
| 4415 | openbsd*) |
| 4416 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4417 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 4418 | else |
| 4419 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4420 | fi |
| 4421 | ;; |
| 4422 | |
| 4423 | osf3* | osf4* | osf5*) |
| 4424 | lt_cv_deplibs_check_method=pass_all |
| 4425 | ;; |
| 4426 | |
| 4427 | solaris*) |
| 4428 | lt_cv_deplibs_check_method=pass_all |
| 4429 | ;; |
| 4430 | |
| 4431 | sysv4 | sysv4.3*) |
| 4432 | case $host_vendor in |
| 4433 | motorola) |
| 4434 | 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]' |
| 4435 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4436 | ;; |
| 4437 | ncr) |
| 4438 | lt_cv_deplibs_check_method=pass_all |
| 4439 | ;; |
| 4440 | sequent) |
| 4441 | lt_cv_file_magic_cmd='/bin/file' |
| 4442 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4443 | ;; |
| 4444 | sni) |
| 4445 | lt_cv_file_magic_cmd='/bin/file' |
| 4446 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4447 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4448 | ;; |
| 4449 | siemens) |
| 4450 | lt_cv_deplibs_check_method=pass_all |
| 4451 | ;; |
| 4452 | pc) |
| 4453 | lt_cv_deplibs_check_method=pass_all |
| 4454 | ;; |
| 4455 | esac |
| 4456 | ;; |
| 4457 | |
| 4458 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4459 | lt_cv_deplibs_check_method=pass_all |
| 4460 | ;; |
| 4461 | esac |
| 4462 | |
| 4463 | fi |
| 4464 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 4465 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
| 4466 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4467 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 4468 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4469 | |
| 4470 | |
| 4471 | |
| 4472 | |
| 4473 | # If no C compiler was specified, use CC. |
| 4474 | LTCC=${LTCC-"$CC"} |
| 4475 | |
| 4476 | # If no C compiler flags were specified, use CFLAGS. |
| 4477 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4478 | |
| 4479 | # Allow CC to be a program name with arguments. |
| 4480 | compiler=$CC |
| 4481 | |
| 4482 | |
| 4483 | # Check whether --enable-libtool-lock was given. |
| 4484 | if test "${enable_libtool_lock+set}" = set; then |
| 4485 | enableval=$enable_libtool_lock; |
| 4486 | fi |
| 4487 | |
| 4488 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4489 | |
| 4490 | # Some flags need to be propagated to the compiler or linker for good |
| 4491 | # libtool support. |
| 4492 | case $host in |
| 4493 | ia64-*-hpux*) |
| 4494 | # Find out which ABI we are using. |
| 4495 | echo 'int i;' > conftest.$ac_ext |
| 4496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4497 | (eval $ac_compile) 2>&5 |
| 4498 | ac_status=$? |
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4500 | (exit $ac_status); }; then |
| 4501 | case `/usr/bin/file conftest.$ac_objext` in |
| 4502 | *ELF-32*) |
| 4503 | HPUX_IA64_MODE="32" |
| 4504 | ;; |
| 4505 | *ELF-64*) |
| 4506 | HPUX_IA64_MODE="64" |
| 4507 | ;; |
| 4508 | esac |
| 4509 | fi |
| 4510 | rm -rf conftest* |
| 4511 | ;; |
| 4512 | *-*-irix6*) |
| 4513 | # Find out which ABI we are using. |
| 4514 | echo '#line 4514 "configure"' > conftest.$ac_ext |
| 4515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4516 | (eval $ac_compile) 2>&5 |
| 4517 | ac_status=$? |
| 4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4519 | (exit $ac_status); }; then |
| 4520 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4521 | case `/usr/bin/file conftest.$ac_objext` in |
| 4522 | *32-bit*) |
| 4523 | LD="${LD-ld} -melf32bsmip" |
| 4524 | ;; |
| 4525 | *N32*) |
| 4526 | LD="${LD-ld} -melf32bmipn32" |
| 4527 | ;; |
| 4528 | *64-bit*) |
| 4529 | LD="${LD-ld} -melf64bmip" |
| 4530 | ;; |
| 4531 | esac |
| 4532 | else |
| 4533 | case `/usr/bin/file conftest.$ac_objext` in |
| 4534 | *32-bit*) |
| 4535 | LD="${LD-ld} -32" |
| 4536 | ;; |
| 4537 | *N32*) |
| 4538 | LD="${LD-ld} -n32" |
| 4539 | ;; |
| 4540 | *64-bit*) |
| 4541 | LD="${LD-ld} -64" |
| 4542 | ;; |
| 4543 | esac |
| 4544 | fi |
| 4545 | fi |
| 4546 | rm -rf conftest* |
| 4547 | ;; |
| 4548 | |
| 4549 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 4550 | # Find out which ABI we are using. |
| 4551 | echo 'int i;' > conftest.$ac_ext |
| 4552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4553 | (eval $ac_compile) 2>&5 |
| 4554 | ac_status=$? |
| 4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4556 | (exit $ac_status); }; then |
| 4557 | case `/usr/bin/file conftest.o` in |
| 4558 | *32-bit*) |
| 4559 | case $host in |
| 4560 | x86_64-*linux*) |
| 4561 | LD="${LD-ld} -m elf_i386" |
| 4562 | ;; |
| 4563 | ppc64-*linux*|powerpc64-*linux*) |
| 4564 | LD="${LD-ld} -m elf32ppclinux" |
| 4565 | ;; |
| 4566 | s390x-*linux*) |
| 4567 | LD="${LD-ld} -m elf_s390" |
| 4568 | ;; |
| 4569 | sparc64-*linux*) |
| 4570 | LD="${LD-ld} -m elf32_sparc" |
| 4571 | ;; |
| 4572 | esac |
| 4573 | ;; |
| 4574 | *64-bit*) |
| 4575 | case $host in |
| 4576 | x86_64-*linux*) |
| 4577 | LD="${LD-ld} -m elf_x86_64" |
| 4578 | ;; |
| 4579 | ppc*-*linux*|powerpc*-*linux*) |
| 4580 | LD="${LD-ld} -m elf64ppc" |
| 4581 | ;; |
| 4582 | s390*-*linux*) |
| 4583 | LD="${LD-ld} -m elf64_s390" |
| 4584 | ;; |
| 4585 | sparc*-*linux*) |
| 4586 | LD="${LD-ld} -m elf64_sparc" |
| 4587 | ;; |
| 4588 | esac |
| 4589 | ;; |
| 4590 | esac |
| 4591 | fi |
| 4592 | rm -rf conftest* |
| 4593 | ;; |
| 4594 | |
| 4595 | *-*-sco3.2v5*) |
| 4596 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4597 | SAVE_CFLAGS="$CFLAGS" |
| 4598 | CFLAGS="$CFLAGS -belf" |
| 4599 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4600 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
| 4601 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4603 | else |
| 4604 | ac_ext=c |
| 4605 | ac_cpp='$CPP $CPPFLAGS' |
| 4606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4609 | |
| 4610 | cat >conftest.$ac_ext <<_ACEOF |
| 4611 | /* confdefs.h. */ |
| 4612 | _ACEOF |
| 4613 | cat confdefs.h >>conftest.$ac_ext |
| 4614 | cat >>conftest.$ac_ext <<_ACEOF |
| 4615 | /* end confdefs.h. */ |
| 4616 | |
| 4617 | int |
| 4618 | main () |
| 4619 | { |
| 4620 | |
| 4621 | ; |
| 4622 | return 0; |
| 4623 | } |
| 4624 | _ACEOF |
| 4625 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4626 | if { (ac_try="$ac_link" |
| 4627 | case "(($ac_try" in |
| 4628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4629 | *) ac_try_echo=$ac_try;; |
| 4630 | esac |
| 4631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4632 | (eval "$ac_link") 2>conftest.er1 |
| 4633 | ac_status=$? |
| 4634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4635 | rm -f conftest.er1 |
| 4636 | cat conftest.err >&5 |
| 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4638 | (exit $ac_status); } && |
| 4639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4640 | { (case "(($ac_try" in |
| 4641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4642 | *) ac_try_echo=$ac_try;; |
| 4643 | esac |
| 4644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4645 | (eval "$ac_try") 2>&5 |
| 4646 | ac_status=$? |
| 4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4648 | (exit $ac_status); }; } && |
| 4649 | { ac_try='test -s conftest$ac_exeext' |
| 4650 | { (case "(($ac_try" in |
| 4651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4652 | *) ac_try_echo=$ac_try;; |
| 4653 | esac |
| 4654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4655 | (eval "$ac_try") 2>&5 |
| 4656 | ac_status=$? |
| 4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4658 | (exit $ac_status); }; }; then |
| 4659 | lt_cv_cc_needs_belf=yes |
| 4660 | else |
| 4661 | echo "$as_me: failed program was:" >&5 |
| 4662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4663 | |
| 4664 | lt_cv_cc_needs_belf=no |
| 4665 | fi |
| 4666 | |
| 4667 | rm -f core conftest.err conftest.$ac_objext \ |
| 4668 | conftest$ac_exeext conftest.$ac_ext |
| 4669 | ac_ext=c |
| 4670 | ac_cpp='$CPP $CPPFLAGS' |
| 4671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4674 | |
| 4675 | fi |
| 4676 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4677 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
| 4678 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4679 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4680 | CFLAGS="$SAVE_CFLAGS" |
| 4681 | fi |
| 4682 | ;; |
| 4683 | sparc*-*solaris*) |
| 4684 | # Find out which ABI we are using. |
| 4685 | echo 'int i;' > conftest.$ac_ext |
| 4686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4687 | (eval $ac_compile) 2>&5 |
| 4688 | ac_status=$? |
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4690 | (exit $ac_status); }; then |
| 4691 | case `/usr/bin/file conftest.o` in |
| 4692 | *64-bit*) |
| 4693 | case $lt_cv_prog_gnu_ld in |
| 4694 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 4695 | *) LD="${LD-ld} -64" ;; |
| 4696 | esac |
| 4697 | ;; |
| 4698 | esac |
| 4699 | fi |
| 4700 | rm -rf conftest* |
| 4701 | ;; |
| 4702 | |
| 4703 | |
| 4704 | esac |
| 4705 | |
| 4706 | need_locks="$enable_libtool_lock" |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4711 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4712 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4714 | else |
| 4715 | cat >conftest.$ac_ext <<_ACEOF |
| 4716 | /* confdefs.h. */ |
| 4717 | _ACEOF |
| 4718 | cat confdefs.h >>conftest.$ac_ext |
| 4719 | cat >>conftest.$ac_ext <<_ACEOF |
| 4720 | /* end confdefs.h. */ |
| 4721 | #include <stdlib.h> |
| 4722 | #include <stdarg.h> |
| 4723 | #include <string.h> |
| 4724 | #include <float.h> |
| 4725 | |
| 4726 | int |
| 4727 | main () |
| 4728 | { |
| 4729 | |
| 4730 | ; |
| 4731 | return 0; |
| 4732 | } |
| 4733 | _ACEOF |
| 4734 | rm -f conftest.$ac_objext |
| 4735 | if { (ac_try="$ac_compile" |
| 4736 | case "(($ac_try" in |
| 4737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4738 | *) ac_try_echo=$ac_try;; |
| 4739 | esac |
| 4740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4741 | (eval "$ac_compile") 2>conftest.er1 |
| 4742 | ac_status=$? |
| 4743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4744 | rm -f conftest.er1 |
| 4745 | cat conftest.err >&5 |
| 4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4747 | (exit $ac_status); } && |
| 4748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4749 | { (case "(($ac_try" in |
| 4750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4751 | *) ac_try_echo=$ac_try;; |
| 4752 | esac |
| 4753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4754 | (eval "$ac_try") 2>&5 |
| 4755 | ac_status=$? |
| 4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4757 | (exit $ac_status); }; } && |
| 4758 | { ac_try='test -s conftest.$ac_objext' |
| 4759 | { (case "(($ac_try" in |
| 4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4761 | *) ac_try_echo=$ac_try;; |
| 4762 | esac |
| 4763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4764 | (eval "$ac_try") 2>&5 |
| 4765 | ac_status=$? |
| 4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4767 | (exit $ac_status); }; }; then |
| 4768 | ac_cv_header_stdc=yes |
| 4769 | else |
| 4770 | echo "$as_me: failed program was:" >&5 |
| 4771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4772 | |
| 4773 | ac_cv_header_stdc=no |
| 4774 | fi |
| 4775 | |
| 4776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4777 | |
| 4778 | if test $ac_cv_header_stdc = yes; then |
| 4779 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4780 | cat >conftest.$ac_ext <<_ACEOF |
| 4781 | /* confdefs.h. */ |
| 4782 | _ACEOF |
| 4783 | cat confdefs.h >>conftest.$ac_ext |
| 4784 | cat >>conftest.$ac_ext <<_ACEOF |
| 4785 | /* end confdefs.h. */ |
| 4786 | #include <string.h> |
| 4787 | |
| 4788 | _ACEOF |
| 4789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4790 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4791 | : |
| 4792 | else |
| 4793 | ac_cv_header_stdc=no |
| 4794 | fi |
| 4795 | rm -f conftest* |
| 4796 | |
| 4797 | fi |
| 4798 | |
| 4799 | if test $ac_cv_header_stdc = yes; then |
| 4800 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4801 | cat >conftest.$ac_ext <<_ACEOF |
| 4802 | /* confdefs.h. */ |
| 4803 | _ACEOF |
| 4804 | cat confdefs.h >>conftest.$ac_ext |
| 4805 | cat >>conftest.$ac_ext <<_ACEOF |
| 4806 | /* end confdefs.h. */ |
| 4807 | #include <stdlib.h> |
| 4808 | |
| 4809 | _ACEOF |
| 4810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4811 | $EGREP "free" >/dev/null 2>&1; then |
| 4812 | : |
| 4813 | else |
| 4814 | ac_cv_header_stdc=no |
| 4815 | fi |
| 4816 | rm -f conftest* |
| 4817 | |
| 4818 | fi |
| 4819 | |
| 4820 | if test $ac_cv_header_stdc = yes; then |
| 4821 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4822 | if test "$cross_compiling" = yes; then |
| 4823 | : |
| 4824 | else |
| 4825 | cat >conftest.$ac_ext <<_ACEOF |
| 4826 | /* confdefs.h. */ |
| 4827 | _ACEOF |
| 4828 | cat confdefs.h >>conftest.$ac_ext |
| 4829 | cat >>conftest.$ac_ext <<_ACEOF |
| 4830 | /* end confdefs.h. */ |
| 4831 | #include <ctype.h> |
| 4832 | #include <stdlib.h> |
| 4833 | #if ((' ' & 0x0FF) == 0x020) |
| 4834 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4835 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4836 | #else |
| 4837 | # define ISLOWER(c) \ |
| 4838 | (('a' <= (c) && (c) <= 'i') \ |
| 4839 | || ('j' <= (c) && (c) <= 'r') \ |
| 4840 | || ('s' <= (c) && (c) <= 'z')) |
| 4841 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4842 | #endif |
| 4843 | |
| 4844 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4845 | int |
| 4846 | main () |
| 4847 | { |
| 4848 | int i; |
| 4849 | for (i = 0; i < 256; i++) |
| 4850 | if (XOR (islower (i), ISLOWER (i)) |
| 4851 | || toupper (i) != TOUPPER (i)) |
| 4852 | return 2; |
| 4853 | return 0; |
| 4854 | } |
| 4855 | _ACEOF |
| 4856 | rm -f conftest$ac_exeext |
| 4857 | if { (ac_try="$ac_link" |
| 4858 | case "(($ac_try" in |
| 4859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4860 | *) ac_try_echo=$ac_try;; |
| 4861 | esac |
| 4862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4863 | (eval "$ac_link") 2>&5 |
| 4864 | ac_status=$? |
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4867 | { (case "(($ac_try" in |
| 4868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4869 | *) ac_try_echo=$ac_try;; |
| 4870 | esac |
| 4871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4872 | (eval "$ac_try") 2>&5 |
| 4873 | ac_status=$? |
| 4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4875 | (exit $ac_status); }; }; then |
| 4876 | : |
| 4877 | else |
| 4878 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4879 | echo "$as_me: failed program was:" >&5 |
| 4880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4881 | |
| 4882 | ( exit $ac_status ) |
| 4883 | ac_cv_header_stdc=no |
| 4884 | fi |
| 4885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4886 | fi |
| 4887 | |
| 4888 | |
| 4889 | fi |
| 4890 | fi |
| 4891 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4892 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 4893 | if test $ac_cv_header_stdc = yes; then |
| 4894 | |
| 4895 | cat >>confdefs.h <<\_ACEOF |
| 4896 | #define STDC_HEADERS 1 |
| 4897 | _ACEOF |
| 4898 | |
| 4899 | fi |
| 4900 | |
| 4901 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4902 | |
| 4903 | |
| 4904 | |
| 4905 | |
| 4906 | |
| 4907 | |
| 4908 | |
| 4909 | |
| 4910 | |
| 4911 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4912 | inttypes.h stdint.h unistd.h |
| 4913 | do |
| 4914 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4915 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4919 | else |
| 4920 | cat >conftest.$ac_ext <<_ACEOF |
| 4921 | /* confdefs.h. */ |
| 4922 | _ACEOF |
| 4923 | cat confdefs.h >>conftest.$ac_ext |
| 4924 | cat >>conftest.$ac_ext <<_ACEOF |
| 4925 | /* end confdefs.h. */ |
| 4926 | $ac_includes_default |
| 4927 | |
| 4928 | #include <$ac_header> |
| 4929 | _ACEOF |
| 4930 | rm -f conftest.$ac_objext |
| 4931 | if { (ac_try="$ac_compile" |
| 4932 | case "(($ac_try" in |
| 4933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4934 | *) ac_try_echo=$ac_try;; |
| 4935 | esac |
| 4936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4937 | (eval "$ac_compile") 2>conftest.er1 |
| 4938 | ac_status=$? |
| 4939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4940 | rm -f conftest.er1 |
| 4941 | cat conftest.err >&5 |
| 4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4943 | (exit $ac_status); } && |
| 4944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4945 | { (case "(($ac_try" in |
| 4946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4947 | *) ac_try_echo=$ac_try;; |
| 4948 | esac |
| 4949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4950 | (eval "$ac_try") 2>&5 |
| 4951 | ac_status=$? |
| 4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4953 | (exit $ac_status); }; } && |
| 4954 | { ac_try='test -s conftest.$ac_objext' |
| 4955 | { (case "(($ac_try" in |
| 4956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4957 | *) ac_try_echo=$ac_try;; |
| 4958 | esac |
| 4959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4960 | (eval "$ac_try") 2>&5 |
| 4961 | ac_status=$? |
| 4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4963 | (exit $ac_status); }; }; then |
| 4964 | eval "$as_ac_Header=yes" |
| 4965 | else |
| 4966 | echo "$as_me: failed program was:" >&5 |
| 4967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4968 | |
| 4969 | eval "$as_ac_Header=no" |
| 4970 | fi |
| 4971 | |
| 4972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4973 | fi |
| 4974 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4975 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4976 | echo "${ECHO_T}$ac_res" >&6; } |
| 4977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4978 | cat >>confdefs.h <<_ACEOF |
| 4979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4980 | _ACEOF |
| 4981 | |
| 4982 | fi |
| 4983 | |
| 4984 | done |
| 4985 | |
| 4986 | |
| 4987 | |
| 4988 | for ac_header in dlfcn.h |
| 4989 | do |
| 4990 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4992 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4993 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4994 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4996 | fi |
| 4997 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4998 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4999 | echo "${ECHO_T}$ac_res" >&6; } |
| 5000 | else |
| 5001 | # Is the header compilable? |
| 5002 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5003 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 5004 | cat >conftest.$ac_ext <<_ACEOF |
| 5005 | /* confdefs.h. */ |
| 5006 | _ACEOF |
| 5007 | cat confdefs.h >>conftest.$ac_ext |
| 5008 | cat >>conftest.$ac_ext <<_ACEOF |
| 5009 | /* end confdefs.h. */ |
| 5010 | $ac_includes_default |
| 5011 | #include <$ac_header> |
| 5012 | _ACEOF |
| 5013 | rm -f conftest.$ac_objext |
| 5014 | if { (ac_try="$ac_compile" |
| 5015 | case "(($ac_try" in |
| 5016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5017 | *) ac_try_echo=$ac_try;; |
| 5018 | esac |
| 5019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5020 | (eval "$ac_compile") 2>conftest.er1 |
| 5021 | ac_status=$? |
| 5022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5023 | rm -f conftest.er1 |
| 5024 | cat conftest.err >&5 |
| 5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5026 | (exit $ac_status); } && |
| 5027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5028 | { (case "(($ac_try" in |
| 5029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5030 | *) ac_try_echo=$ac_try;; |
| 5031 | esac |
| 5032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5033 | (eval "$ac_try") 2>&5 |
| 5034 | ac_status=$? |
| 5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5036 | (exit $ac_status); }; } && |
| 5037 | { ac_try='test -s conftest.$ac_objext' |
| 5038 | { (case "(($ac_try" in |
| 5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5040 | *) ac_try_echo=$ac_try;; |
| 5041 | esac |
| 5042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5043 | (eval "$ac_try") 2>&5 |
| 5044 | ac_status=$? |
| 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5046 | (exit $ac_status); }; }; then |
| 5047 | ac_header_compiler=yes |
| 5048 | else |
| 5049 | echo "$as_me: failed program was:" >&5 |
| 5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5051 | |
| 5052 | ac_header_compiler=no |
| 5053 | fi |
| 5054 | |
| 5055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5056 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5057 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 5058 | |
| 5059 | # Is the header present? |
| 5060 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5061 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 5062 | cat >conftest.$ac_ext <<_ACEOF |
| 5063 | /* confdefs.h. */ |
| 5064 | _ACEOF |
| 5065 | cat confdefs.h >>conftest.$ac_ext |
| 5066 | cat >>conftest.$ac_ext <<_ACEOF |
| 5067 | /* end confdefs.h. */ |
| 5068 | #include <$ac_header> |
| 5069 | _ACEOF |
| 5070 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5071 | case "(($ac_try" in |
| 5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5073 | *) ac_try_echo=$ac_try;; |
| 5074 | esac |
| 5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5077 | ac_status=$? |
| 5078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5079 | rm -f conftest.er1 |
| 5080 | cat conftest.err >&5 |
| 5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5082 | (exit $ac_status); } >/dev/null; then |
| 5083 | if test -s conftest.err; then |
| 5084 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5086 | else |
| 5087 | ac_cpp_err= |
| 5088 | fi |
| 5089 | else |
| 5090 | ac_cpp_err=yes |
| 5091 | fi |
| 5092 | if test -z "$ac_cpp_err"; then |
| 5093 | ac_header_preproc=yes |
| 5094 | else |
| 5095 | echo "$as_me: failed program was:" >&5 |
| 5096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5097 | |
| 5098 | ac_header_preproc=no |
| 5099 | fi |
| 5100 | |
| 5101 | rm -f conftest.err conftest.$ac_ext |
| 5102 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5103 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 5104 | |
| 5105 | # So? What about this header? |
| 5106 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5107 | yes:no: ) |
| 5108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5111 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5112 | ac_header_preproc=yes |
| 5113 | ;; |
| 5114 | no:yes:* ) |
| 5115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5119 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5120 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5122 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5125 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5126 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5127 | |
| 5128 | ;; |
| 5129 | esac |
| 5130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5134 | else |
| 5135 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5136 | fi |
| 5137 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5138 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5139 | echo "${ECHO_T}$ac_res" >&6; } |
| 5140 | |
| 5141 | fi |
| 5142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5143 | cat >>confdefs.h <<_ACEOF |
| 5144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5145 | _ACEOF |
| 5146 | |
| 5147 | fi |
| 5148 | |
| 5149 | done |
| 5150 | |
| 5151 | ac_ext=cpp |
| 5152 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5156 | if test -z "$CXX"; then |
| 5157 | if test -n "$CCC"; then |
| 5158 | CXX=$CCC |
| 5159 | else |
| 5160 | if test -n "$ac_tool_prefix"; then |
| 5161 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5162 | do |
| 5163 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5164 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5165 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5167 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5169 | else |
| 5170 | if test -n "$CXX"; then |
| 5171 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5172 | else |
| 5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5174 | for as_dir in $PATH |
| 5175 | do |
| 5176 | IFS=$as_save_IFS |
| 5177 | test -z "$as_dir" && as_dir=. |
| 5178 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5180 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5182 | break 2 |
| 5183 | fi |
| 5184 | done |
| 5185 | done |
| 5186 | IFS=$as_save_IFS |
| 5187 | |
| 5188 | fi |
| 5189 | fi |
| 5190 | CXX=$ac_cv_prog_CXX |
| 5191 | if test -n "$CXX"; then |
| 5192 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5193 | echo "${ECHO_T}$CXX" >&6; } |
| 5194 | else |
| 5195 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5196 | echo "${ECHO_T}no" >&6; } |
| 5197 | fi |
| 5198 | |
| 5199 | |
| 5200 | test -n "$CXX" && break |
| 5201 | done |
| 5202 | fi |
| 5203 | if test -z "$CXX"; then |
| 5204 | ac_ct_CXX=$CXX |
| 5205 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5206 | do |
| 5207 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5208 | set dummy $ac_prog; ac_word=$2 |
| 5209 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5211 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5213 | else |
| 5214 | if test -n "$ac_ct_CXX"; then |
| 5215 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5216 | else |
| 5217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5218 | for as_dir in $PATH |
| 5219 | do |
| 5220 | IFS=$as_save_IFS |
| 5221 | test -z "$as_dir" && as_dir=. |
| 5222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5224 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5226 | break 2 |
| 5227 | fi |
| 5228 | done |
| 5229 | done |
| 5230 | IFS=$as_save_IFS |
| 5231 | |
| 5232 | fi |
| 5233 | fi |
| 5234 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5235 | if test -n "$ac_ct_CXX"; then |
| 5236 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5237 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5238 | else |
| 5239 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5240 | echo "${ECHO_T}no" >&6; } |
| 5241 | fi |
| 5242 | |
| 5243 | |
| 5244 | test -n "$ac_ct_CXX" && break |
| 5245 | done |
| 5246 | |
| 5247 | if test "x$ac_ct_CXX" = x; then |
| 5248 | CXX="g++" |
| 5249 | else |
| 5250 | case $cross_compiling:$ac_tool_warned in |
| 5251 | yes:) |
| 5252 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5253 | whose name does not start with the host triplet. If you think this |
| 5254 | configuration is useful to you, please write to [email protected]." >&5 |
| 5255 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5256 | whose name does not start with the host triplet. If you think this |
| 5257 | configuration is useful to you, please write to [email protected]." >&2;} |
| 5258 | ac_tool_warned=yes ;; |
| 5259 | esac |
| 5260 | CXX=$ac_ct_CXX |
| 5261 | fi |
| 5262 | fi |
| 5263 | |
| 5264 | fi |
| 5265 | fi |
| 5266 | # Provide some information about the compiler. |
| 5267 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5268 | ac_compiler=`set X $ac_compile; echo $2` |
| 5269 | { (ac_try="$ac_compiler --version >&5" |
| 5270 | case "(($ac_try" in |
| 5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5272 | *) ac_try_echo=$ac_try;; |
| 5273 | esac |
| 5274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5275 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5276 | ac_status=$? |
| 5277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5278 | (exit $ac_status); } |
| 5279 | { (ac_try="$ac_compiler -v >&5" |
| 5280 | case "(($ac_try" in |
| 5281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5282 | *) ac_try_echo=$ac_try;; |
| 5283 | esac |
| 5284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5285 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5286 | ac_status=$? |
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5288 | (exit $ac_status); } |
| 5289 | { (ac_try="$ac_compiler -V >&5" |
| 5290 | case "(($ac_try" in |
| 5291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5292 | *) ac_try_echo=$ac_try;; |
| 5293 | esac |
| 5294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5295 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5296 | ac_status=$? |
| 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5298 | (exit $ac_status); } |
| 5299 | |
| 5300 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5301 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5302 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5304 | else |
| 5305 | cat >conftest.$ac_ext <<_ACEOF |
| 5306 | /* confdefs.h. */ |
| 5307 | _ACEOF |
| 5308 | cat confdefs.h >>conftest.$ac_ext |
| 5309 | cat >>conftest.$ac_ext <<_ACEOF |
| 5310 | /* end confdefs.h. */ |
| 5311 | |
| 5312 | int |
| 5313 | main () |
| 5314 | { |
| 5315 | #ifndef __GNUC__ |
| 5316 | choke me |
| 5317 | #endif |
| 5318 | |
| 5319 | ; |
| 5320 | return 0; |
| 5321 | } |
| 5322 | _ACEOF |
| 5323 | rm -f conftest.$ac_objext |
| 5324 | if { (ac_try="$ac_compile" |
| 5325 | case "(($ac_try" in |
| 5326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5327 | *) ac_try_echo=$ac_try;; |
| 5328 | esac |
| 5329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5330 | (eval "$ac_compile") 2>conftest.er1 |
| 5331 | ac_status=$? |
| 5332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5333 | rm -f conftest.er1 |
| 5334 | cat conftest.err >&5 |
| 5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5336 | (exit $ac_status); } && |
| 5337 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5338 | { (case "(($ac_try" in |
| 5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5340 | *) ac_try_echo=$ac_try;; |
| 5341 | esac |
| 5342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5343 | (eval "$ac_try") 2>&5 |
| 5344 | ac_status=$? |
| 5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5346 | (exit $ac_status); }; } && |
| 5347 | { ac_try='test -s conftest.$ac_objext' |
| 5348 | { (case "(($ac_try" in |
| 5349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5350 | *) ac_try_echo=$ac_try;; |
| 5351 | esac |
| 5352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5353 | (eval "$ac_try") 2>&5 |
| 5354 | ac_status=$? |
| 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5356 | (exit $ac_status); }; }; then |
| 5357 | ac_compiler_gnu=yes |
| 5358 | else |
| 5359 | echo "$as_me: failed program was:" >&5 |
| 5360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5361 | |
| 5362 | ac_compiler_gnu=no |
| 5363 | fi |
| 5364 | |
| 5365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5366 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5367 | |
| 5368 | fi |
| 5369 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5370 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5371 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5372 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5373 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5374 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5375 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5376 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5378 | else |
| 5379 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5380 | ac_cxx_werror_flag=yes |
| 5381 | ac_cv_prog_cxx_g=no |
| 5382 | CXXFLAGS="-g" |
| 5383 | cat >conftest.$ac_ext <<_ACEOF |
| 5384 | /* confdefs.h. */ |
| 5385 | _ACEOF |
| 5386 | cat confdefs.h >>conftest.$ac_ext |
| 5387 | cat >>conftest.$ac_ext <<_ACEOF |
| 5388 | /* end confdefs.h. */ |
| 5389 | |
| 5390 | int |
| 5391 | main () |
| 5392 | { |
| 5393 | |
| 5394 | ; |
| 5395 | return 0; |
| 5396 | } |
| 5397 | _ACEOF |
| 5398 | rm -f conftest.$ac_objext |
| 5399 | if { (ac_try="$ac_compile" |
| 5400 | case "(($ac_try" in |
| 5401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5402 | *) ac_try_echo=$ac_try;; |
| 5403 | esac |
| 5404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5405 | (eval "$ac_compile") 2>conftest.er1 |
| 5406 | ac_status=$? |
| 5407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5408 | rm -f conftest.er1 |
| 5409 | cat conftest.err >&5 |
| 5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5411 | (exit $ac_status); } && |
| 5412 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5413 | { (case "(($ac_try" in |
| 5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5415 | *) ac_try_echo=$ac_try;; |
| 5416 | esac |
| 5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5418 | (eval "$ac_try") 2>&5 |
| 5419 | ac_status=$? |
| 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5421 | (exit $ac_status); }; } && |
| 5422 | { ac_try='test -s conftest.$ac_objext' |
| 5423 | { (case "(($ac_try" in |
| 5424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5425 | *) ac_try_echo=$ac_try;; |
| 5426 | esac |
| 5427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5428 | (eval "$ac_try") 2>&5 |
| 5429 | ac_status=$? |
| 5430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5431 | (exit $ac_status); }; }; then |
| 5432 | ac_cv_prog_cxx_g=yes |
| 5433 | else |
| 5434 | echo "$as_me: failed program was:" >&5 |
| 5435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5436 | |
| 5437 | CXXFLAGS="" |
| 5438 | cat >conftest.$ac_ext <<_ACEOF |
| 5439 | /* confdefs.h. */ |
| 5440 | _ACEOF |
| 5441 | cat confdefs.h >>conftest.$ac_ext |
| 5442 | cat >>conftest.$ac_ext <<_ACEOF |
| 5443 | /* end confdefs.h. */ |
| 5444 | |
| 5445 | int |
| 5446 | main () |
| 5447 | { |
| 5448 | |
| 5449 | ; |
| 5450 | return 0; |
| 5451 | } |
| 5452 | _ACEOF |
| 5453 | rm -f conftest.$ac_objext |
| 5454 | if { (ac_try="$ac_compile" |
| 5455 | case "(($ac_try" in |
| 5456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5457 | *) ac_try_echo=$ac_try;; |
| 5458 | esac |
| 5459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5460 | (eval "$ac_compile") 2>conftest.er1 |
| 5461 | ac_status=$? |
| 5462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5463 | rm -f conftest.er1 |
| 5464 | cat conftest.err >&5 |
| 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5466 | (exit $ac_status); } && |
| 5467 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5468 | { (case "(($ac_try" in |
| 5469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5470 | *) ac_try_echo=$ac_try;; |
| 5471 | esac |
| 5472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5473 | (eval "$ac_try") 2>&5 |
| 5474 | ac_status=$? |
| 5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5476 | (exit $ac_status); }; } && |
| 5477 | { ac_try='test -s conftest.$ac_objext' |
| 5478 | { (case "(($ac_try" in |
| 5479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5480 | *) ac_try_echo=$ac_try;; |
| 5481 | esac |
| 5482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5483 | (eval "$ac_try") 2>&5 |
| 5484 | ac_status=$? |
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5486 | (exit $ac_status); }; }; then |
| 5487 | : |
| 5488 | else |
| 5489 | echo "$as_me: failed program was:" >&5 |
| 5490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5491 | |
| 5492 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5493 | CXXFLAGS="-g" |
| 5494 | cat >conftest.$ac_ext <<_ACEOF |
| 5495 | /* confdefs.h. */ |
| 5496 | _ACEOF |
| 5497 | cat confdefs.h >>conftest.$ac_ext |
| 5498 | cat >>conftest.$ac_ext <<_ACEOF |
| 5499 | /* end confdefs.h. */ |
| 5500 | |
| 5501 | int |
| 5502 | main () |
| 5503 | { |
| 5504 | |
| 5505 | ; |
| 5506 | return 0; |
| 5507 | } |
| 5508 | _ACEOF |
| 5509 | rm -f conftest.$ac_objext |
| 5510 | if { (ac_try="$ac_compile" |
| 5511 | case "(($ac_try" in |
| 5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5513 | *) ac_try_echo=$ac_try;; |
| 5514 | esac |
| 5515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5516 | (eval "$ac_compile") 2>conftest.er1 |
| 5517 | ac_status=$? |
| 5518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5519 | rm -f conftest.er1 |
| 5520 | cat conftest.err >&5 |
| 5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5522 | (exit $ac_status); } && |
| 5523 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5524 | { (case "(($ac_try" in |
| 5525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5526 | *) ac_try_echo=$ac_try;; |
| 5527 | esac |
| 5528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5529 | (eval "$ac_try") 2>&5 |
| 5530 | ac_status=$? |
| 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5532 | (exit $ac_status); }; } && |
| 5533 | { ac_try='test -s conftest.$ac_objext' |
| 5534 | { (case "(($ac_try" in |
| 5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5536 | *) ac_try_echo=$ac_try;; |
| 5537 | esac |
| 5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5539 | (eval "$ac_try") 2>&5 |
| 5540 | ac_status=$? |
| 5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5542 | (exit $ac_status); }; }; then |
| 5543 | ac_cv_prog_cxx_g=yes |
| 5544 | else |
| 5545 | echo "$as_me: failed program was:" >&5 |
| 5546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5547 | |
| 5548 | |
| 5549 | fi |
| 5550 | |
| 5551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5552 | fi |
| 5553 | |
| 5554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5555 | fi |
| 5556 | |
| 5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5558 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5559 | fi |
| 5560 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5561 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 5562 | if test "$ac_test_CXXFLAGS" = set; then |
| 5563 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5564 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5565 | if test "$GXX" = yes; then |
| 5566 | CXXFLAGS="-g -O2" |
| 5567 | else |
| 5568 | CXXFLAGS="-g" |
| 5569 | fi |
| 5570 | else |
| 5571 | if test "$GXX" = yes; then |
| 5572 | CXXFLAGS="-O2" |
| 5573 | else |
| 5574 | CXXFLAGS= |
| 5575 | fi |
| 5576 | fi |
| 5577 | ac_ext=cpp |
| 5578 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5579 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5580 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5581 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5582 | |
| 5583 | |
| 5584 | |
| 5585 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5586 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5587 | (test "X$CXX" != "Xg++"))) ; then |
| 5588 | ac_ext=cpp |
| 5589 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5590 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5591 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5592 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5593 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5594 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
| 5595 | if test -z "$CXXCPP"; then |
| 5596 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5598 | else |
| 5599 | # Double quotes because CXXCPP needs to be expanded |
| 5600 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5601 | do |
| 5602 | ac_preproc_ok=false |
| 5603 | for ac_cxx_preproc_warn_flag in '' yes |
| 5604 | do |
| 5605 | # Use a header file that comes with gcc, so configuring glibc |
| 5606 | # with a fresh cross-compiler works. |
| 5607 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5608 | # <limits.h> exists even on freestanding compilers. |
| 5609 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5610 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5611 | cat >conftest.$ac_ext <<_ACEOF |
| 5612 | /* confdefs.h. */ |
| 5613 | _ACEOF |
| 5614 | cat confdefs.h >>conftest.$ac_ext |
| 5615 | cat >>conftest.$ac_ext <<_ACEOF |
| 5616 | /* end confdefs.h. */ |
| 5617 | #ifdef __STDC__ |
| 5618 | # include <limits.h> |
| 5619 | #else |
| 5620 | # include <assert.h> |
| 5621 | #endif |
| 5622 | Syntax error |
| 5623 | _ACEOF |
| 5624 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5625 | case "(($ac_try" in |
| 5626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5627 | *) ac_try_echo=$ac_try;; |
| 5628 | esac |
| 5629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5631 | ac_status=$? |
| 5632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5633 | rm -f conftest.er1 |
| 5634 | cat conftest.err >&5 |
| 5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5636 | (exit $ac_status); } >/dev/null; then |
| 5637 | if test -s conftest.err; then |
| 5638 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5639 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5640 | else |
| 5641 | ac_cpp_err= |
| 5642 | fi |
| 5643 | else |
| 5644 | ac_cpp_err=yes |
| 5645 | fi |
| 5646 | if test -z "$ac_cpp_err"; then |
| 5647 | : |
| 5648 | else |
| 5649 | echo "$as_me: failed program was:" >&5 |
| 5650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5651 | |
| 5652 | # Broken: fails on valid input. |
| 5653 | continue |
| 5654 | fi |
| 5655 | |
| 5656 | rm -f conftest.err conftest.$ac_ext |
| 5657 | |
| 5658 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5659 | # can be detected and how. |
| 5660 | cat >conftest.$ac_ext <<_ACEOF |
| 5661 | /* confdefs.h. */ |
| 5662 | _ACEOF |
| 5663 | cat confdefs.h >>conftest.$ac_ext |
| 5664 | cat >>conftest.$ac_ext <<_ACEOF |
| 5665 | /* end confdefs.h. */ |
| 5666 | #include <ac_nonexistent.h> |
| 5667 | _ACEOF |
| 5668 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5669 | case "(($ac_try" in |
| 5670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5671 | *) ac_try_echo=$ac_try;; |
| 5672 | esac |
| 5673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5674 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5675 | ac_status=$? |
| 5676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5677 | rm -f conftest.er1 |
| 5678 | cat conftest.err >&5 |
| 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5680 | (exit $ac_status); } >/dev/null; then |
| 5681 | if test -s conftest.err; then |
| 5682 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5683 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5684 | else |
| 5685 | ac_cpp_err= |
| 5686 | fi |
| 5687 | else |
| 5688 | ac_cpp_err=yes |
| 5689 | fi |
| 5690 | if test -z "$ac_cpp_err"; then |
| 5691 | # Broken: success on invalid input. |
| 5692 | continue |
| 5693 | else |
| 5694 | echo "$as_me: failed program was:" >&5 |
| 5695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5696 | |
| 5697 | # Passes both tests. |
| 5698 | ac_preproc_ok=: |
| 5699 | break |
| 5700 | fi |
| 5701 | |
| 5702 | rm -f conftest.err conftest.$ac_ext |
| 5703 | |
| 5704 | done |
| 5705 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5706 | rm -f conftest.err conftest.$ac_ext |
| 5707 | if $ac_preproc_ok; then |
| 5708 | break |
| 5709 | fi |
| 5710 | |
| 5711 | done |
| 5712 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5713 | |
| 5714 | fi |
| 5715 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5716 | else |
| 5717 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5718 | fi |
| 5719 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5720 | echo "${ECHO_T}$CXXCPP" >&6; } |
| 5721 | ac_preproc_ok=false |
| 5722 | for ac_cxx_preproc_warn_flag in '' yes |
| 5723 | do |
| 5724 | # Use a header file that comes with gcc, so configuring glibc |
| 5725 | # with a fresh cross-compiler works. |
| 5726 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5727 | # <limits.h> exists even on freestanding compilers. |
| 5728 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5729 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5730 | cat >conftest.$ac_ext <<_ACEOF |
| 5731 | /* confdefs.h. */ |
| 5732 | _ACEOF |
| 5733 | cat confdefs.h >>conftest.$ac_ext |
| 5734 | cat >>conftest.$ac_ext <<_ACEOF |
| 5735 | /* end confdefs.h. */ |
| 5736 | #ifdef __STDC__ |
| 5737 | # include <limits.h> |
| 5738 | #else |
| 5739 | # include <assert.h> |
| 5740 | #endif |
| 5741 | Syntax error |
| 5742 | _ACEOF |
| 5743 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5744 | case "(($ac_try" in |
| 5745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5746 | *) ac_try_echo=$ac_try;; |
| 5747 | esac |
| 5748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5749 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5750 | ac_status=$? |
| 5751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5752 | rm -f conftest.er1 |
| 5753 | cat conftest.err >&5 |
| 5754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5755 | (exit $ac_status); } >/dev/null; then |
| 5756 | if test -s conftest.err; then |
| 5757 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5758 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5759 | else |
| 5760 | ac_cpp_err= |
| 5761 | fi |
| 5762 | else |
| 5763 | ac_cpp_err=yes |
| 5764 | fi |
| 5765 | if test -z "$ac_cpp_err"; then |
| 5766 | : |
| 5767 | else |
| 5768 | echo "$as_me: failed program was:" >&5 |
| 5769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5770 | |
| 5771 | # Broken: fails on valid input. |
| 5772 | continue |
| 5773 | fi |
| 5774 | |
| 5775 | rm -f conftest.err conftest.$ac_ext |
| 5776 | |
| 5777 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5778 | # can be detected and how. |
| 5779 | cat >conftest.$ac_ext <<_ACEOF |
| 5780 | /* confdefs.h. */ |
| 5781 | _ACEOF |
| 5782 | cat confdefs.h >>conftest.$ac_ext |
| 5783 | cat >>conftest.$ac_ext <<_ACEOF |
| 5784 | /* end confdefs.h. */ |
| 5785 | #include <ac_nonexistent.h> |
| 5786 | _ACEOF |
| 5787 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5788 | case "(($ac_try" in |
| 5789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5790 | *) ac_try_echo=$ac_try;; |
| 5791 | esac |
| 5792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5793 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5794 | ac_status=$? |
| 5795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5796 | rm -f conftest.er1 |
| 5797 | cat conftest.err >&5 |
| 5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5799 | (exit $ac_status); } >/dev/null; then |
| 5800 | if test -s conftest.err; then |
| 5801 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5802 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5803 | else |
| 5804 | ac_cpp_err= |
| 5805 | fi |
| 5806 | else |
| 5807 | ac_cpp_err=yes |
| 5808 | fi |
| 5809 | if test -z "$ac_cpp_err"; then |
| 5810 | # Broken: success on invalid input. |
| 5811 | continue |
| 5812 | else |
| 5813 | echo "$as_me: failed program was:" >&5 |
| 5814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5815 | |
| 5816 | # Passes both tests. |
| 5817 | ac_preproc_ok=: |
| 5818 | break |
| 5819 | fi |
| 5820 | |
| 5821 | rm -f conftest.err conftest.$ac_ext |
| 5822 | |
| 5823 | done |
| 5824 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5825 | rm -f conftest.err conftest.$ac_ext |
| 5826 | if $ac_preproc_ok; then |
| 5827 | : |
| 5828 | else |
| 5829 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5830 | See \`config.log' for more details." >&5 |
| 5831 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5832 | See \`config.log' for more details." >&2;} |
| 5833 | { (exit 1); exit 1; }; } |
| 5834 | fi |
| 5835 | |
| 5836 | ac_ext=cpp |
| 5837 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5838 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5839 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5840 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5841 | |
| 5842 | fi |
| 5843 | |
| 5844 | |
| 5845 | ac_ext=f |
| 5846 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5847 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5848 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5849 | if test -n "$ac_tool_prefix"; then |
| 5850 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
| 5851 | do |
| 5852 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5853 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5854 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5856 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5858 | else |
| 5859 | if test -n "$F77"; then |
| 5860 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5861 | else |
| 5862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5863 | for as_dir in $PATH |
| 5864 | do |
| 5865 | IFS=$as_save_IFS |
| 5866 | test -z "$as_dir" && as_dir=. |
| 5867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5869 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5871 | break 2 |
| 5872 | fi |
| 5873 | done |
| 5874 | done |
| 5875 | IFS=$as_save_IFS |
| 5876 | |
| 5877 | fi |
| 5878 | fi |
| 5879 | F77=$ac_cv_prog_F77 |
| 5880 | if test -n "$F77"; then |
| 5881 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 5882 | echo "${ECHO_T}$F77" >&6; } |
| 5883 | else |
| 5884 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5885 | echo "${ECHO_T}no" >&6; } |
| 5886 | fi |
| 5887 | |
| 5888 | |
| 5889 | test -n "$F77" && break |
| 5890 | done |
| 5891 | fi |
| 5892 | if test -z "$F77"; then |
| 5893 | ac_ct_F77=$F77 |
| 5894 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
| 5895 | do |
| 5896 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5897 | set dummy $ac_prog; ac_word=$2 |
| 5898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5900 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5902 | else |
| 5903 | if test -n "$ac_ct_F77"; then |
| 5904 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5905 | else |
| 5906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5907 | for as_dir in $PATH |
| 5908 | do |
| 5909 | IFS=$as_save_IFS |
| 5910 | test -z "$as_dir" && as_dir=. |
| 5911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5913 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5915 | break 2 |
| 5916 | fi |
| 5917 | done |
| 5918 | done |
| 5919 | IFS=$as_save_IFS |
| 5920 | |
| 5921 | fi |
| 5922 | fi |
| 5923 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5924 | if test -n "$ac_ct_F77"; then |
| 5925 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5926 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
| 5927 | else |
| 5928 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5929 | echo "${ECHO_T}no" >&6; } |
| 5930 | fi |
| 5931 | |
| 5932 | |
| 5933 | test -n "$ac_ct_F77" && break |
| 5934 | done |
| 5935 | |
| 5936 | if test "x$ac_ct_F77" = x; then |
| 5937 | F77="" |
| 5938 | else |
| 5939 | case $cross_compiling:$ac_tool_warned in |
| 5940 | yes:) |
| 5941 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5942 | whose name does not start with the host triplet. If you think this |
| 5943 | configuration is useful to you, please write to [email protected]." >&5 |
| 5944 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5945 | whose name does not start with the host triplet. If you think this |
| 5946 | configuration is useful to you, please write to [email protected]." >&2;} |
| 5947 | ac_tool_warned=yes ;; |
| 5948 | esac |
| 5949 | F77=$ac_ct_F77 |
| 5950 | fi |
| 5951 | fi |
| 5952 | |
| 5953 | |
| 5954 | # Provide some information about the compiler. |
| 5955 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
| 5956 | ac_compiler=`set X $ac_compile; echo $2` |
| 5957 | { (ac_try="$ac_compiler --version >&5" |
| 5958 | case "(($ac_try" in |
| 5959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5960 | *) ac_try_echo=$ac_try;; |
| 5961 | esac |
| 5962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5963 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5964 | ac_status=$? |
| 5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5966 | (exit $ac_status); } |
| 5967 | { (ac_try="$ac_compiler -v >&5" |
| 5968 | case "(($ac_try" in |
| 5969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5970 | *) ac_try_echo=$ac_try;; |
| 5971 | esac |
| 5972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5973 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5974 | ac_status=$? |
| 5975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5976 | (exit $ac_status); } |
| 5977 | { (ac_try="$ac_compiler -V >&5" |
| 5978 | case "(($ac_try" in |
| 5979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5980 | *) ac_try_echo=$ac_try;; |
| 5981 | esac |
| 5982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5983 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5984 | ac_status=$? |
| 5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5986 | (exit $ac_status); } |
| 5987 | rm -f a.out |
| 5988 | |
| 5989 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 5990 | # input file. (Note that this only needs to work for GNU compilers.) |
| 5991 | ac_save_ext=$ac_ext |
| 5992 | ac_ext=F |
| 5993 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 5994 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
| 5995 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 5996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5997 | else |
| 5998 | cat >conftest.$ac_ext <<_ACEOF |
| 5999 | program main |
| 6000 | #ifndef __GNUC__ |
| 6001 | choke me |
| 6002 | #endif |
| 6003 | |
| 6004 | end |
| 6005 | _ACEOF |
| 6006 | rm -f conftest.$ac_objext |
| 6007 | if { (ac_try="$ac_compile" |
| 6008 | case "(($ac_try" in |
| 6009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6010 | *) ac_try_echo=$ac_try;; |
| 6011 | esac |
| 6012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6013 | (eval "$ac_compile") 2>conftest.er1 |
| 6014 | ac_status=$? |
| 6015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6016 | rm -f conftest.er1 |
| 6017 | cat conftest.err >&5 |
| 6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6019 | (exit $ac_status); } && |
| 6020 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6021 | { (case "(($ac_try" in |
| 6022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6023 | *) ac_try_echo=$ac_try;; |
| 6024 | esac |
| 6025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6026 | (eval "$ac_try") 2>&5 |
| 6027 | ac_status=$? |
| 6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6029 | (exit $ac_status); }; } && |
| 6030 | { ac_try='test -s conftest.$ac_objext' |
| 6031 | { (case "(($ac_try" in |
| 6032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6033 | *) ac_try_echo=$ac_try;; |
| 6034 | esac |
| 6035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6036 | (eval "$ac_try") 2>&5 |
| 6037 | ac_status=$? |
| 6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6039 | (exit $ac_status); }; }; then |
| 6040 | ac_compiler_gnu=yes |
| 6041 | else |
| 6042 | echo "$as_me: failed program was:" >&5 |
| 6043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6044 | |
| 6045 | ac_compiler_gnu=no |
| 6046 | fi |
| 6047 | |
| 6048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6049 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6050 | |
| 6051 | fi |
| 6052 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6053 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
| 6054 | ac_ext=$ac_save_ext |
| 6055 | ac_test_FFLAGS=${FFLAGS+set} |
| 6056 | ac_save_FFLAGS=$FFLAGS |
| 6057 | FFLAGS= |
| 6058 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6059 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
| 6060 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6062 | else |
| 6063 | FFLAGS=-g |
| 6064 | cat >conftest.$ac_ext <<_ACEOF |
| 6065 | program main |
| 6066 | |
| 6067 | end |
| 6068 | _ACEOF |
| 6069 | rm -f conftest.$ac_objext |
| 6070 | if { (ac_try="$ac_compile" |
| 6071 | case "(($ac_try" in |
| 6072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6073 | *) ac_try_echo=$ac_try;; |
| 6074 | esac |
| 6075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6076 | (eval "$ac_compile") 2>conftest.er1 |
| 6077 | ac_status=$? |
| 6078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6079 | rm -f conftest.er1 |
| 6080 | cat conftest.err >&5 |
| 6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6082 | (exit $ac_status); } && |
| 6083 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6084 | { (case "(($ac_try" in |
| 6085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6086 | *) ac_try_echo=$ac_try;; |
| 6087 | esac |
| 6088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6089 | (eval "$ac_try") 2>&5 |
| 6090 | ac_status=$? |
| 6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6092 | (exit $ac_status); }; } && |
| 6093 | { ac_try='test -s conftest.$ac_objext' |
| 6094 | { (case "(($ac_try" in |
| 6095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6096 | *) ac_try_echo=$ac_try;; |
| 6097 | esac |
| 6098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6099 | (eval "$ac_try") 2>&5 |
| 6100 | ac_status=$? |
| 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6102 | (exit $ac_status); }; }; then |
| 6103 | ac_cv_prog_f77_g=yes |
| 6104 | else |
| 6105 | echo "$as_me: failed program was:" >&5 |
| 6106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6107 | |
| 6108 | ac_cv_prog_f77_g=no |
| 6109 | fi |
| 6110 | |
| 6111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6112 | |
| 6113 | fi |
| 6114 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6115 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
| 6116 | if test "$ac_test_FFLAGS" = set; then |
| 6117 | FFLAGS=$ac_save_FFLAGS |
| 6118 | elif test $ac_cv_prog_f77_g = yes; then |
| 6119 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6120 | FFLAGS="-g -O2" |
| 6121 | else |
| 6122 | FFLAGS="-g" |
| 6123 | fi |
| 6124 | else |
| 6125 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6126 | FFLAGS="-O2" |
| 6127 | else |
| 6128 | FFLAGS= |
| 6129 | fi |
| 6130 | fi |
| 6131 | |
| 6132 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6133 | ac_ext=c |
| 6134 | ac_cpp='$CPP $CPPFLAGS' |
| 6135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6138 | |
| 6139 | |
| 6140 | |
| 6141 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6142 | |
| 6143 | # find the maximum length of command line arguments |
| 6144 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6145 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
| 6146 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6148 | else |
| 6149 | i=0 |
| 6150 | teststring="ABCD" |
| 6151 | |
| 6152 | case $build_os in |
| 6153 | msdosdjgpp*) |
| 6154 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6155 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6156 | # during glob expansion). Even if it were fixed, the result of this |
| 6157 | # check would be larger than it should be. |
| 6158 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6159 | ;; |
| 6160 | |
| 6161 | gnu*) |
| 6162 | # Under GNU Hurd, this test is not required because there is |
| 6163 | # no limit to the length of command line arguments. |
| 6164 | # Libtool will interpret -1 as no limit whatsoever |
| 6165 | lt_cv_sys_max_cmd_len=-1; |
| 6166 | ;; |
| 6167 | |
| 6168 | cygwin* | mingw*) |
| 6169 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6170 | # about 5 minutes as the teststring grows exponentially. |
| 6171 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6172 | # you end up with a "frozen" computer, even though with patience |
| 6173 | # the test eventually succeeds (with a max line length of 256k). |
| 6174 | # Instead, let's just punt: use the minimum linelength reported by |
| 6175 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6176 | lt_cv_sys_max_cmd_len=8192; |
| 6177 | ;; |
| 6178 | |
| 6179 | amigaos*) |
| 6180 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6181 | # So we just punt and use a minimum line length of 8192. |
| 6182 | lt_cv_sys_max_cmd_len=8192; |
| 6183 | ;; |
| 6184 | |
| 6185 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6186 | # This has been around since 386BSD, at least. Likely further. |
| 6187 | if test -x /sbin/sysctl; then |
| 6188 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6189 | elif test -x /usr/sbin/sysctl; then |
| 6190 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6191 | else |
| 6192 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6193 | fi |
| 6194 | # And add a safety zone |
| 6195 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6196 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6197 | ;; |
| 6198 | |
| 6199 | interix*) |
| 6200 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6201 | lt_cv_sys_max_cmd_len=196608 |
| 6202 | ;; |
| 6203 | |
| 6204 | osf*) |
| 6205 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6206 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6207 | # nice to cause kernel panics so lets avoid the loop below. |
| 6208 | # First set a reasonable default. |
| 6209 | lt_cv_sys_max_cmd_len=16384 |
| 6210 | # |
| 6211 | if test -x /sbin/sysconfig; then |
| 6212 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6213 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6214 | esac |
| 6215 | fi |
| 6216 | ;; |
| 6217 | sco3.2v5*) |
| 6218 | lt_cv_sys_max_cmd_len=102400 |
| 6219 | ;; |
| 6220 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6221 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6222 | if test -n "$kargmax"; then |
| 6223 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6224 | else |
| 6225 | lt_cv_sys_max_cmd_len=32768 |
| 6226 | fi |
| 6227 | ;; |
| 6228 | *) |
| 6229 | # If test is not a shell built-in, we'll probably end up computing a |
| 6230 | # maximum length that is only half of the actual maximum length, but |
| 6231 | # we can't tell. |
| 6232 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6233 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 6234 | = "XX$teststring") >/dev/null 2>&1 && |
| 6235 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6236 | lt_cv_sys_max_cmd_len=$new_result && |
| 6237 | test $i != 17 # 1/2 MB should be enough |
| 6238 | do |
| 6239 | i=`expr $i + 1` |
| 6240 | teststring=$teststring$teststring |
| 6241 | done |
| 6242 | teststring= |
| 6243 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6244 | # amounts of additional arguments before passing them to the linker. |
| 6245 | # It appears as though 1/2 is a usable value. |
| 6246 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6247 | ;; |
| 6248 | esac |
| 6249 | |
| 6250 | fi |
| 6251 | |
| 6252 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 6253 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6254 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
| 6255 | else |
| 6256 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6257 | echo "${ECHO_T}none" >&6; } |
| 6258 | fi |
| 6259 | |
| 6260 | |
| 6261 | |
| 6262 | |
| 6263 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6264 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6265 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 6266 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6268 | else |
| 6269 | |
| 6270 | # These are sane defaults that work on at least a few old systems. |
| 6271 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6272 | |
| 6273 | # Character class describing NM global symbol codes. |
| 6274 | symcode='[BCDEGRST]' |
| 6275 | |
| 6276 | # Regexp to match symbols that can be accessed directly from C. |
| 6277 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6278 | |
| 6279 | # Transform an extracted symbol line into a proper C declaration |
| 6280 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6281 | |
| 6282 | # Transform an extracted symbol line into symbol name and symbol address |
| 6283 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6284 | |
| 6285 | # Define system-specific variables. |
| 6286 | case $host_os in |
| 6287 | aix*) |
| 6288 | symcode='[BCDT]' |
| 6289 | ;; |
| 6290 | cygwin* | mingw* | pw32*) |
| 6291 | symcode='[ABCDGISTW]' |
| 6292 | ;; |
| 6293 | hpux*) # Its linker distinguishes data from code symbols |
| 6294 | if test "$host_cpu" = ia64; then |
| 6295 | symcode='[ABCDEGRST]' |
| 6296 | fi |
| 6297 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6298 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6299 | ;; |
| 6300 | linux*) |
| 6301 | if test "$host_cpu" = ia64; then |
| 6302 | symcode='[ABCDGIRSTW]' |
| 6303 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6304 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6305 | fi |
| 6306 | ;; |
| 6307 | irix* | nonstopux*) |
| 6308 | symcode='[BCDEGRST]' |
| 6309 | ;; |
| 6310 | osf*) |
| 6311 | symcode='[BCDEGQRST]' |
| 6312 | ;; |
| 6313 | solaris*) |
| 6314 | symcode='[BDRT]' |
| 6315 | ;; |
| 6316 | sco3.2v5*) |
| 6317 | symcode='[DT]' |
| 6318 | ;; |
| 6319 | sysv4.2uw2*) |
| 6320 | symcode='[DT]' |
| 6321 | ;; |
| 6322 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6323 | symcode='[ABDT]' |
| 6324 | ;; |
| 6325 | sysv4) |
| 6326 | symcode='[DFNSTU]' |
| 6327 | ;; |
| 6328 | esac |
| 6329 | |
| 6330 | # Handle CRLF in mingw tool chain |
| 6331 | opt_cr= |
| 6332 | case $build_os in |
| 6333 | mingw*) |
| 6334 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6335 | ;; |
| 6336 | esac |
| 6337 | |
| 6338 | # If we're using GNU nm, then use its standard symbol codes. |
| 6339 | case `$NM -V 2>&1` in |
| 6340 | *GNU* | *'with BFD'*) |
| 6341 | symcode='[ABCDGIRSTW]' ;; |
| 6342 | esac |
| 6343 | |
| 6344 | # Try without a prefix undercore, then with it. |
| 6345 | for ac_symprfx in "" "_"; do |
| 6346 | |
| 6347 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6348 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6349 | |
| 6350 | # Write the raw and C identifiers. |
| 6351 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6352 | |
| 6353 | # Check to see that the pipe works correctly. |
| 6354 | pipe_works=no |
| 6355 | |
| 6356 | rm -f conftest* |
| 6357 | cat > conftest.$ac_ext <<EOF |
| 6358 | #ifdef __cplusplus |
| 6359 | extern "C" { |
| 6360 | #endif |
| 6361 | char nm_test_var; |
| 6362 | void nm_test_func(){} |
| 6363 | #ifdef __cplusplus |
| 6364 | } |
| 6365 | #endif |
| 6366 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6367 | EOF |
| 6368 | |
| 6369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6370 | (eval $ac_compile) 2>&5 |
| 6371 | ac_status=$? |
| 6372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6373 | (exit $ac_status); }; then |
| 6374 | # Now try to grab the symbols. |
| 6375 | nlist=conftest.nm |
| 6376 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6377 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6378 | ac_status=$? |
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6380 | (exit $ac_status); } && test -s "$nlist"; then |
| 6381 | # Try sorting and uniquifying the output. |
| 6382 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6383 | mv -f "$nlist"T "$nlist" |
| 6384 | else |
| 6385 | rm -f "$nlist"T |
| 6386 | fi |
| 6387 | |
| 6388 | # Make sure that we snagged all the symbols we need. |
| 6389 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6390 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6391 | cat <<EOF > conftest.$ac_ext |
| 6392 | #ifdef __cplusplus |
| 6393 | extern "C" { |
| 6394 | #endif |
| 6395 | |
| 6396 | EOF |
| 6397 | # Now generate the symbol file. |
| 6398 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6399 | |
| 6400 | cat <<EOF >> conftest.$ac_ext |
| 6401 | #if defined (__STDC__) && __STDC__ |
| 6402 | # define lt_ptr_t void * |
| 6403 | #else |
| 6404 | # define lt_ptr_t char * |
| 6405 | # define const |
| 6406 | #endif |
| 6407 | |
| 6408 | /* The mapping between symbol names and symbols. */ |
| 6409 | const struct { |
| 6410 | const char *name; |
| 6411 | lt_ptr_t address; |
| 6412 | } |
| 6413 | lt_preloaded_symbols[] = |
| 6414 | { |
| 6415 | EOF |
| 6416 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6417 | cat <<\EOF >> conftest.$ac_ext |
| 6418 | {0, (lt_ptr_t) 0} |
| 6419 | }; |
| 6420 | |
| 6421 | #ifdef __cplusplus |
| 6422 | } |
| 6423 | #endif |
| 6424 | EOF |
| 6425 | # Now try linking the two files. |
| 6426 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6427 | lt_save_LIBS="$LIBS" |
| 6428 | lt_save_CFLAGS="$CFLAGS" |
| 6429 | LIBS="conftstm.$ac_objext" |
| 6430 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6432 | (eval $ac_link) 2>&5 |
| 6433 | ac_status=$? |
| 6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6435 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6436 | pipe_works=yes |
| 6437 | fi |
| 6438 | LIBS="$lt_save_LIBS" |
| 6439 | CFLAGS="$lt_save_CFLAGS" |
| 6440 | else |
| 6441 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6442 | fi |
| 6443 | else |
| 6444 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6445 | fi |
| 6446 | else |
| 6447 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6448 | fi |
| 6449 | else |
| 6450 | echo "$progname: failed program was:" >&5 |
| 6451 | cat conftest.$ac_ext >&5 |
| 6452 | fi |
| 6453 | rm -f conftest* conftst* |
| 6454 | |
| 6455 | # Do not use the global_symbol_pipe unless it works. |
| 6456 | if test "$pipe_works" = yes; then |
| 6457 | break |
| 6458 | else |
| 6459 | lt_cv_sys_global_symbol_pipe= |
| 6460 | fi |
| 6461 | done |
| 6462 | |
| 6463 | fi |
| 6464 | |
| 6465 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6466 | lt_cv_sys_global_symbol_to_cdecl= |
| 6467 | fi |
| 6468 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6469 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6470 | echo "${ECHO_T}failed" >&6; } |
| 6471 | else |
| 6472 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6473 | echo "${ECHO_T}ok" >&6; } |
| 6474 | fi |
| 6475 | |
| 6476 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6477 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 6478 | if test "${lt_cv_objdir+set}" = set; then |
| 6479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6480 | else |
| 6481 | rm -f .libs 2>/dev/null |
| 6482 | mkdir .libs 2>/dev/null |
| 6483 | if test -d .libs; then |
| 6484 | lt_cv_objdir=.libs |
| 6485 | else |
| 6486 | # MS-DOS does not allow filenames that begin with a dot. |
| 6487 | lt_cv_objdir=_libs |
| 6488 | fi |
| 6489 | rmdir .libs 2>/dev/null |
| 6490 | fi |
| 6491 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6492 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
| 6493 | objdir=$lt_cv_objdir |
| 6494 | |
| 6495 | |
| 6496 | |
| 6497 | |
| 6498 | |
| 6499 | case $host_os in |
| 6500 | aix3*) |
| 6501 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6502 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6503 | # vanish in a puff of smoke. |
| 6504 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6505 | COLLECT_NAMES= |
| 6506 | export COLLECT_NAMES |
| 6507 | fi |
| 6508 | ;; |
| 6509 | esac |
| 6510 | |
| 6511 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6512 | # metacharacters that are still active within double-quoted strings. |
| 6513 | Xsed='sed -e 1s/^X//' |
| 6514 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6515 | |
| 6516 | # Same as above, but do not quote variable references. |
| 6517 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6518 | |
| 6519 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6520 | # double_quote_subst'ed string. |
| 6521 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6522 | |
| 6523 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6524 | no_glob_subst='s/\*/\\\*/g' |
| 6525 | |
| 6526 | # Constants: |
| 6527 | rm="rm -f" |
| 6528 | |
| 6529 | # Global variables: |
| 6530 | default_ofile=libtool |
| 6531 | can_build_shared=yes |
| 6532 | |
| 6533 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 6534 | # which needs '.lib'). |
| 6535 | libext=a |
| 6536 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6537 | ofile="$default_ofile" |
| 6538 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6539 | |
| 6540 | if test -n "$ac_tool_prefix"; then |
| 6541 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6542 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6545 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6547 | else |
| 6548 | if test -n "$AR"; then |
| 6549 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6550 | else |
| 6551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6552 | for as_dir in $PATH |
| 6553 | do |
| 6554 | IFS=$as_save_IFS |
| 6555 | test -z "$as_dir" && as_dir=. |
| 6556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6558 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6560 | break 2 |
| 6561 | fi |
| 6562 | done |
| 6563 | done |
| 6564 | IFS=$as_save_IFS |
| 6565 | |
| 6566 | fi |
| 6567 | fi |
| 6568 | AR=$ac_cv_prog_AR |
| 6569 | if test -n "$AR"; then |
| 6570 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6571 | echo "${ECHO_T}$AR" >&6; } |
| 6572 | else |
| 6573 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6574 | echo "${ECHO_T}no" >&6; } |
| 6575 | fi |
| 6576 | |
| 6577 | |
| 6578 | fi |
| 6579 | if test -z "$ac_cv_prog_AR"; then |
| 6580 | ac_ct_AR=$AR |
| 6581 | # Extract the first word of "ar", so it can be a program name with args. |
| 6582 | set dummy ar; ac_word=$2 |
| 6583 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6585 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6587 | else |
| 6588 | if test -n "$ac_ct_AR"; then |
| 6589 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6590 | else |
| 6591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6592 | for as_dir in $PATH |
| 6593 | do |
| 6594 | IFS=$as_save_IFS |
| 6595 | test -z "$as_dir" && as_dir=. |
| 6596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6598 | ac_cv_prog_ac_ct_AR="ar" |
| 6599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6600 | break 2 |
| 6601 | fi |
| 6602 | done |
| 6603 | done |
| 6604 | IFS=$as_save_IFS |
| 6605 | |
| 6606 | fi |
| 6607 | fi |
| 6608 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6609 | if test -n "$ac_ct_AR"; then |
| 6610 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6611 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
| 6612 | else |
| 6613 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6614 | echo "${ECHO_T}no" >&6; } |
| 6615 | fi |
| 6616 | |
| 6617 | if test "x$ac_ct_AR" = x; then |
| 6618 | AR="false" |
| 6619 | else |
| 6620 | case $cross_compiling:$ac_tool_warned in |
| 6621 | yes:) |
| 6622 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6623 | whose name does not start with the host triplet. If you think this |
| 6624 | configuration is useful to you, please write to [email protected]." >&5 |
| 6625 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6626 | whose name does not start with the host triplet. If you think this |
| 6627 | configuration is useful to you, please write to [email protected]." >&2;} |
| 6628 | ac_tool_warned=yes ;; |
| 6629 | esac |
| 6630 | AR=$ac_ct_AR |
| 6631 | fi |
| 6632 | else |
| 6633 | AR="$ac_cv_prog_AR" |
| 6634 | fi |
| 6635 | |
| 6636 | if test -n "$ac_tool_prefix"; then |
| 6637 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6638 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6641 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6643 | else |
| 6644 | if test -n "$RANLIB"; then |
| 6645 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6646 | else |
| 6647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6648 | for as_dir in $PATH |
| 6649 | do |
| 6650 | IFS=$as_save_IFS |
| 6651 | test -z "$as_dir" && as_dir=. |
| 6652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6654 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6656 | break 2 |
| 6657 | fi |
| 6658 | done |
| 6659 | done |
| 6660 | IFS=$as_save_IFS |
| 6661 | |
| 6662 | fi |
| 6663 | fi |
| 6664 | RANLIB=$ac_cv_prog_RANLIB |
| 6665 | if test -n "$RANLIB"; then |
| 6666 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6667 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6668 | else |
| 6669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6670 | echo "${ECHO_T}no" >&6; } |
| 6671 | fi |
| 6672 | |
| 6673 | |
| 6674 | fi |
| 6675 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6676 | ac_ct_RANLIB=$RANLIB |
| 6677 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6678 | set dummy ranlib; ac_word=$2 |
| 6679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6681 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6683 | else |
| 6684 | if test -n "$ac_ct_RANLIB"; then |
| 6685 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6686 | else |
| 6687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6688 | for as_dir in $PATH |
| 6689 | do |
| 6690 | IFS=$as_save_IFS |
| 6691 | test -z "$as_dir" && as_dir=. |
| 6692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6694 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6696 | break 2 |
| 6697 | fi |
| 6698 | done |
| 6699 | done |
| 6700 | IFS=$as_save_IFS |
| 6701 | |
| 6702 | fi |
| 6703 | fi |
| 6704 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6705 | if test -n "$ac_ct_RANLIB"; then |
| 6706 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6707 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6708 | else |
| 6709 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6710 | echo "${ECHO_T}no" >&6; } |
| 6711 | fi |
| 6712 | |
| 6713 | if test "x$ac_ct_RANLIB" = x; then |
| 6714 | RANLIB=":" |
| 6715 | else |
| 6716 | case $cross_compiling:$ac_tool_warned in |
| 6717 | yes:) |
| 6718 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6719 | whose name does not start with the host triplet. If you think this |
| 6720 | configuration is useful to you, please write to [email protected]." >&5 |
| 6721 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6722 | whose name does not start with the host triplet. If you think this |
| 6723 | configuration is useful to you, please write to [email protected]." >&2;} |
| 6724 | ac_tool_warned=yes ;; |
| 6725 | esac |
| 6726 | RANLIB=$ac_ct_RANLIB |
| 6727 | fi |
| 6728 | else |
| 6729 | RANLIB="$ac_cv_prog_RANLIB" |
| 6730 | fi |
| 6731 | |
| 6732 | if test -n "$ac_tool_prefix"; then |
| 6733 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6734 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6735 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6737 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6739 | else |
| 6740 | if test -n "$STRIP"; then |
| 6741 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6742 | else |
| 6743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6744 | for as_dir in $PATH |
| 6745 | do |
| 6746 | IFS=$as_save_IFS |
| 6747 | test -z "$as_dir" && as_dir=. |
| 6748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6750 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6752 | break 2 |
| 6753 | fi |
| 6754 | done |
| 6755 | done |
| 6756 | IFS=$as_save_IFS |
| 6757 | |
| 6758 | fi |
| 6759 | fi |
| 6760 | STRIP=$ac_cv_prog_STRIP |
| 6761 | if test -n "$STRIP"; then |
| 6762 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6763 | echo "${ECHO_T}$STRIP" >&6; } |
| 6764 | else |
| 6765 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6766 | echo "${ECHO_T}no" >&6; } |
| 6767 | fi |
| 6768 | |
| 6769 | |
| 6770 | fi |
| 6771 | if test -z "$ac_cv_prog_STRIP"; then |
| 6772 | ac_ct_STRIP=$STRIP |
| 6773 | # Extract the first word of "strip", so it can be a program name with args. |
| 6774 | set dummy strip; ac_word=$2 |
| 6775 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6777 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6779 | else |
| 6780 | if test -n "$ac_ct_STRIP"; then |
| 6781 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6782 | else |
| 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_exec_ext in '' $ac_executable_extensions; do |
| 6789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6790 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6792 | break 2 |
| 6793 | fi |
| 6794 | done |
| 6795 | done |
| 6796 | IFS=$as_save_IFS |
| 6797 | |
| 6798 | fi |
| 6799 | fi |
| 6800 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6801 | if test -n "$ac_ct_STRIP"; then |
| 6802 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6803 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
| 6804 | else |
| 6805 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6806 | echo "${ECHO_T}no" >&6; } |
| 6807 | fi |
| 6808 | |
| 6809 | if test "x$ac_ct_STRIP" = x; then |
| 6810 | STRIP=":" |
| 6811 | else |
| 6812 | case $cross_compiling:$ac_tool_warned in |
| 6813 | yes:) |
| 6814 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6815 | whose name does not start with the host triplet. If you think this |
| 6816 | configuration is useful to you, please write to [email protected]." >&5 |
| 6817 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6818 | whose name does not start with the host triplet. If you think this |
| 6819 | configuration is useful to you, please write to [email protected]." >&2;} |
| 6820 | ac_tool_warned=yes ;; |
| 6821 | esac |
| 6822 | STRIP=$ac_ct_STRIP |
| 6823 | fi |
| 6824 | else |
| 6825 | STRIP="$ac_cv_prog_STRIP" |
| 6826 | fi |
| 6827 | |
| 6828 | |
| 6829 | old_CC="$CC" |
| 6830 | old_CFLAGS="$CFLAGS" |
| 6831 | |
| 6832 | # Set sane defaults for various variables |
| 6833 | test -z "$AR" && AR=ar |
| 6834 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 6835 | test -z "$AS" && AS=as |
| 6836 | test -z "$CC" && CC=cc |
| 6837 | test -z "$LTCC" && LTCC=$CC |
| 6838 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 6839 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6840 | test -z "$LD" && LD=ld |
| 6841 | test -z "$LN_S" && LN_S="ln -s" |
| 6842 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 6843 | test -z "$NM" && NM=nm |
| 6844 | test -z "$SED" && SED=sed |
| 6845 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6846 | test -z "$RANLIB" && RANLIB=: |
| 6847 | test -z "$STRIP" && STRIP=: |
| 6848 | test -z "$ac_objext" && ac_objext=o |
| 6849 | |
| 6850 | # Determine commands to create old-style static archives. |
| 6851 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 6852 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6853 | old_postuninstall_cmds= |
| 6854 | |
| 6855 | if test -n "$RANLIB"; then |
| 6856 | case $host_os in |
| 6857 | openbsd*) |
| 6858 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6859 | ;; |
| 6860 | *) |
| 6861 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6862 | ;; |
| 6863 | esac |
| 6864 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6865 | fi |
| 6866 | |
| 6867 | for cc_temp in $compiler""; do |
| 6868 | case $cc_temp in |
| 6869 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6870 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6871 | \-*) ;; |
| 6872 | *) break;; |
| 6873 | esac |
| 6874 | done |
| 6875 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 6876 | |
| 6877 | |
| 6878 | # Only perform the check for file, if the check method requires it |
| 6879 | case $deplibs_check_method in |
| 6880 | file_magic*) |
| 6881 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 6882 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 6883 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
| 6884 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6886 | else |
| 6887 | case $MAGIC_CMD in |
| 6888 | [\\/*] | ?:[\\/]*) |
| 6889 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6890 | ;; |
| 6891 | *) |
| 6892 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6893 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6894 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6895 | for ac_dir in $ac_dummy; do |
| 6896 | IFS="$lt_save_ifs" |
| 6897 | test -z "$ac_dir" && ac_dir=. |
| 6898 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6899 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6900 | if test -n "$file_magic_test_file"; then |
| 6901 | case $deplibs_check_method in |
| 6902 | "file_magic "*) |
| 6903 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 6904 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6905 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6906 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6907 | : |
| 6908 | else |
| 6909 | cat <<EOF 1>&2 |
| 6910 | |
| 6911 | *** Warning: the command libtool uses to detect shared libraries, |
| 6912 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6913 | *** The result is that libtool may fail to recognize shared libraries |
| 6914 | *** as such. This will affect the creation of libtool libraries that |
| 6915 | *** depend on shared libraries, but programs linked with such libtool |
| 6916 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6917 | *** may want to report the problem to your system manager and/or to |
| 6918 | *** [email protected] |
| 6919 | |
| 6920 | EOF |
| 6921 | fi ;; |
| 6922 | esac |
| 6923 | fi |
| 6924 | break |
| 6925 | fi |
| 6926 | done |
| 6927 | IFS="$lt_save_ifs" |
| 6928 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6929 | ;; |
| 6930 | esac |
| 6931 | fi |
| 6932 | |
| 6933 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6934 | if test -n "$MAGIC_CMD"; then |
| 6935 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6936 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
| 6937 | else |
| 6938 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6939 | echo "${ECHO_T}no" >&6; } |
| 6940 | fi |
| 6941 | |
| 6942 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6943 | if test -n "$ac_tool_prefix"; then |
| 6944 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 6945 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
| 6946 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6948 | else |
| 6949 | case $MAGIC_CMD in |
| 6950 | [\\/*] | ?:[\\/]*) |
| 6951 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6952 | ;; |
| 6953 | *) |
| 6954 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6955 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6956 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6957 | for ac_dir in $ac_dummy; do |
| 6958 | IFS="$lt_save_ifs" |
| 6959 | test -z "$ac_dir" && ac_dir=. |
| 6960 | if test -f $ac_dir/file; then |
| 6961 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6962 | if test -n "$file_magic_test_file"; then |
| 6963 | case $deplibs_check_method in |
| 6964 | "file_magic "*) |
| 6965 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 6966 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6967 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6968 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6969 | : |
| 6970 | else |
| 6971 | cat <<EOF 1>&2 |
| 6972 | |
| 6973 | *** Warning: the command libtool uses to detect shared libraries, |
| 6974 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6975 | *** The result is that libtool may fail to recognize shared libraries |
| 6976 | *** as such. This will affect the creation of libtool libraries that |
| 6977 | *** depend on shared libraries, but programs linked with such libtool |
| 6978 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6979 | *** may want to report the problem to your system manager and/or to |
| 6980 | *** [email protected] |
| 6981 | |
| 6982 | EOF |
| 6983 | fi ;; |
| 6984 | esac |
| 6985 | fi |
| 6986 | break |
| 6987 | fi |
| 6988 | done |
| 6989 | IFS="$lt_save_ifs" |
| 6990 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6991 | ;; |
| 6992 | esac |
| 6993 | fi |
| 6994 | |
| 6995 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6996 | if test -n "$MAGIC_CMD"; then |
| 6997 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6998 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
| 6999 | else |
| 7000 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7001 | echo "${ECHO_T}no" >&6; } |
| 7002 | fi |
| 7003 | |
| 7004 | else |
| 7005 | MAGIC_CMD=: |
| 7006 | fi |
| 7007 | fi |
| 7008 | |
| 7009 | fi |
| 7010 | ;; |
| 7011 | esac |
| 7012 | |
| 7013 | enable_dlopen=no |
| 7014 | enable_win32_dll=no |
| 7015 | |
| 7016 | # Check whether --enable-libtool-lock was given. |
| 7017 | if test "${enable_libtool_lock+set}" = set; then |
| 7018 | enableval=$enable_libtool_lock; |
| 7019 | fi |
| 7020 | |
| 7021 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7022 | |
| 7023 | |
| 7024 | # Check whether --with-pic was given. |
| 7025 | if test "${with_pic+set}" = set; then |
| 7026 | withval=$with_pic; pic_mode="$withval" |
| 7027 | else |
| 7028 | pic_mode=default |
| 7029 | fi |
| 7030 | |
| 7031 | test -z "$pic_mode" && pic_mode=default |
| 7032 | |
| 7033 | # Use C for the default configuration in the libtool script |
| 7034 | tagname= |
| 7035 | lt_save_CC="$CC" |
| 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 | |
| 7043 | # Source file extension for C test sources. |
| 7044 | ac_ext=c |
| 7045 | |
| 7046 | # Object file extension for compiled C test sources. |
| 7047 | objext=o |
| 7048 | objext=$objext |
| 7049 | |
| 7050 | # Code to be used in simple compile tests |
| 7051 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7052 | |
| 7053 | # Code to be used in simple link tests |
| 7054 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7055 | |
| 7056 | |
| 7057 | # If no C compiler was specified, use CC. |
| 7058 | LTCC=${LTCC-"$CC"} |
| 7059 | |
| 7060 | # If no C compiler flags were specified, use CFLAGS. |
| 7061 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7062 | |
| 7063 | # Allow CC to be a program name with arguments. |
| 7064 | compiler=$CC |
| 7065 | |
| 7066 | |
| 7067 | # save warnings/boilerplate of simple test code |
| 7068 | ac_outfile=conftest.$ac_objext |
| 7069 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7070 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7071 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7072 | $rm conftest* |
| 7073 | |
| 7074 | ac_outfile=conftest.$ac_objext |
| 7075 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7076 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7077 | _lt_linker_boilerplate=`cat conftest.err` |
| 7078 | $rm conftest* |
| 7079 | |
| 7080 | |
| 7081 | ## CAVEAT EMPTOR: |
| 7082 | ## There is no encapsulation within the following macros, do not change |
| 7083 | ## the running order or otherwise move them around unless you know exactly |
| 7084 | ## what you are doing... |
| 7085 | |
| 7086 | lt_prog_compiler_no_builtin_flag= |
| 7087 | |
| 7088 | if test "$GCC" = yes; then |
| 7089 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7090 | |
| 7091 | |
| 7092 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7093 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
| 7094 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7096 | else |
| 7097 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7098 | ac_outfile=conftest.$ac_objext |
| 7099 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7100 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7101 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7102 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7103 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7104 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7105 | # The option is referenced via a variable to avoid confusing sed. |
| 7106 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7107 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7108 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7109 | -e 's:$: $lt_compiler_flag:'` |
| 7110 | (eval echo "\"\$as_me:7110: $lt_compile\"" >&5) |
| 7111 | (eval "$lt_compile" 2>conftest.err) |
| 7112 | ac_status=$? |
| 7113 | cat conftest.err >&5 |
| 7114 | echo "$as_me:7114: \$? = $ac_status" >&5 |
| 7115 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7116 | # The compiler can only warn and ignore the option if not recognized |
| 7117 | # So say no if there are warnings other than the usual output. |
| 7118 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7119 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7120 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7121 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7122 | fi |
| 7123 | fi |
| 7124 | $rm conftest* |
| 7125 | |
| 7126 | fi |
| 7127 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7128 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 7129 | |
| 7130 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7131 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7132 | else |
| 7133 | : |
| 7134 | fi |
| 7135 | |
| 7136 | fi |
| 7137 | |
| 7138 | lt_prog_compiler_wl= |
| 7139 | lt_prog_compiler_pic= |
| 7140 | lt_prog_compiler_static= |
| 7141 | |
| 7142 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7143 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
| 7144 | |
| 7145 | if test "$GCC" = yes; then |
| 7146 | lt_prog_compiler_wl='-Wl,' |
| 7147 | lt_prog_compiler_static='-static' |
| 7148 | |
| 7149 | case $host_os in |
| 7150 | aix*) |
| 7151 | # All AIX code is PIC. |
| 7152 | if test "$host_cpu" = ia64; then |
| 7153 | # AIX 5 now supports IA64 processor |
| 7154 | lt_prog_compiler_static='-Bstatic' |
| 7155 | fi |
| 7156 | ;; |
| 7157 | |
| 7158 | amigaos*) |
| 7159 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7160 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7161 | # like `-m68040'. |
| 7162 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7163 | ;; |
| 7164 | |
| 7165 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7166 | # PIC is the default for these OSes. |
| 7167 | ;; |
| 7168 | |
| 7169 | mingw* | pw32* | os2*) |
| 7170 | # This hack is so that the source file can tell whether it is being |
| 7171 | # built for inclusion in a dll (and should export symbols for example). |
| 7172 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7173 | ;; |
| 7174 | |
| 7175 | darwin* | rhapsody*) |
| 7176 | # PIC is the default on this platform |
| 7177 | # Common symbols not allowed in MH_DYLIB files |
| 7178 | lt_prog_compiler_pic='-fno-common' |
| 7179 | ;; |
| 7180 | |
| 7181 | interix3*) |
| 7182 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7183 | # Instead, we relocate shared libraries at runtime. |
| 7184 | ;; |
| 7185 | |
| 7186 | msdosdjgpp*) |
| 7187 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7188 | # on systems that don't support them. |
| 7189 | lt_prog_compiler_can_build_shared=no |
| 7190 | enable_shared=no |
| 7191 | ;; |
| 7192 | |
| 7193 | sysv4*MP*) |
| 7194 | if test -d /usr/nec; then |
| 7195 | lt_prog_compiler_pic=-Kconform_pic |
| 7196 | fi |
| 7197 | ;; |
| 7198 | |
| 7199 | hpux*) |
| 7200 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7201 | # not for PA HP-UX. |
| 7202 | case $host_cpu in |
| 7203 | hppa*64*|ia64*) |
| 7204 | # +Z the default |
| 7205 | ;; |
| 7206 | *) |
| 7207 | lt_prog_compiler_pic='-fPIC' |
| 7208 | ;; |
| 7209 | esac |
| 7210 | ;; |
| 7211 | |
| 7212 | *) |
| 7213 | lt_prog_compiler_pic='-fPIC' |
| 7214 | ;; |
| 7215 | esac |
| 7216 | else |
| 7217 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7218 | case $host_os in |
| 7219 | aix*) |
| 7220 | lt_prog_compiler_wl='-Wl,' |
| 7221 | if test "$host_cpu" = ia64; then |
| 7222 | # AIX 5 now supports IA64 processor |
| 7223 | lt_prog_compiler_static='-Bstatic' |
| 7224 | else |
| 7225 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7226 | fi |
| 7227 | ;; |
| 7228 | darwin*) |
| 7229 | # PIC is the default on this platform |
| 7230 | # Common symbols not allowed in MH_DYLIB files |
| 7231 | case $cc_basename in |
| 7232 | xlc*) |
| 7233 | lt_prog_compiler_pic='-qnocommon' |
| 7234 | lt_prog_compiler_wl='-Wl,' |
| 7235 | ;; |
| 7236 | esac |
| 7237 | ;; |
| 7238 | |
| 7239 | mingw* | pw32* | os2*) |
| 7240 | # This hack is so that the source file can tell whether it is being |
| 7241 | # built for inclusion in a dll (and should export symbols for example). |
| 7242 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7243 | ;; |
| 7244 | |
| 7245 | hpux9* | hpux10* | hpux11*) |
| 7246 | lt_prog_compiler_wl='-Wl,' |
| 7247 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7248 | # not for PA HP-UX. |
| 7249 | case $host_cpu in |
| 7250 | hppa*64*|ia64*) |
| 7251 | # +Z the default |
| 7252 | ;; |
| 7253 | *) |
| 7254 | lt_prog_compiler_pic='+Z' |
| 7255 | ;; |
| 7256 | esac |
| 7257 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7258 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7259 | ;; |
| 7260 | |
| 7261 | irix5* | irix6* | nonstopux*) |
| 7262 | lt_prog_compiler_wl='-Wl,' |
| 7263 | # PIC (with -KPIC) is the default. |
| 7264 | lt_prog_compiler_static='-non_shared' |
| 7265 | ;; |
| 7266 | |
| 7267 | newsos6) |
| 7268 | lt_prog_compiler_pic='-KPIC' |
| 7269 | lt_prog_compiler_static='-Bstatic' |
| 7270 | ;; |
| 7271 | |
| 7272 | linux*) |
| 7273 | case $cc_basename in |
| 7274 | icc* | ecc*) |
| 7275 | lt_prog_compiler_wl='-Wl,' |
| 7276 | lt_prog_compiler_pic='-KPIC' |
| 7277 | lt_prog_compiler_static='-static' |
| 7278 | ;; |
| 7279 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7280 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7281 | # which looks to be a dead project) |
| 7282 | lt_prog_compiler_wl='-Wl,' |
| 7283 | lt_prog_compiler_pic='-fpic' |
| 7284 | lt_prog_compiler_static='-Bstatic' |
| 7285 | ;; |
| 7286 | ccc*) |
| 7287 | lt_prog_compiler_wl='-Wl,' |
| 7288 | # All Alpha code is PIC. |
| 7289 | lt_prog_compiler_static='-non_shared' |
| 7290 | ;; |
| 7291 | esac |
| 7292 | ;; |
| 7293 | |
| 7294 | osf3* | osf4* | osf5*) |
| 7295 | lt_prog_compiler_wl='-Wl,' |
| 7296 | # All OSF/1 code is PIC. |
| 7297 | lt_prog_compiler_static='-non_shared' |
| 7298 | ;; |
| 7299 | |
| 7300 | solaris*) |
| 7301 | lt_prog_compiler_pic='-KPIC' |
| 7302 | lt_prog_compiler_static='-Bstatic' |
| 7303 | case $cc_basename in |
| 7304 | f77* | f90* | f95*) |
| 7305 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7306 | *) |
| 7307 | lt_prog_compiler_wl='-Wl,';; |
| 7308 | esac |
| 7309 | ;; |
| 7310 | |
| 7311 | sunos4*) |
| 7312 | lt_prog_compiler_wl='-Qoption ld ' |
| 7313 | lt_prog_compiler_pic='-PIC' |
| 7314 | lt_prog_compiler_static='-Bstatic' |
| 7315 | ;; |
| 7316 | |
| 7317 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 7318 | lt_prog_compiler_wl='-Wl,' |
| 7319 | lt_prog_compiler_pic='-KPIC' |
| 7320 | lt_prog_compiler_static='-Bstatic' |
| 7321 | ;; |
| 7322 | |
| 7323 | sysv4*MP*) |
| 7324 | if test -d /usr/nec ;then |
| 7325 | lt_prog_compiler_pic='-Kconform_pic' |
| 7326 | lt_prog_compiler_static='-Bstatic' |
| 7327 | fi |
| 7328 | ;; |
| 7329 | |
| 7330 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7331 | lt_prog_compiler_wl='-Wl,' |
| 7332 | lt_prog_compiler_pic='-KPIC' |
| 7333 | lt_prog_compiler_static='-Bstatic' |
| 7334 | ;; |
| 7335 | |
| 7336 | unicos*) |
| 7337 | lt_prog_compiler_wl='-Wl,' |
| 7338 | lt_prog_compiler_can_build_shared=no |
| 7339 | ;; |
| 7340 | |
| 7341 | uts4*) |
| 7342 | lt_prog_compiler_pic='-pic' |
| 7343 | lt_prog_compiler_static='-Bstatic' |
| 7344 | ;; |
| 7345 | |
| 7346 | *) |
| 7347 | lt_prog_compiler_can_build_shared=no |
| 7348 | ;; |
| 7349 | esac |
| 7350 | fi |
| 7351 | |
| 7352 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7353 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
| 7354 | |
| 7355 | # |
| 7356 | # Check to make sure the PIC flag actually works. |
| 7357 | # |
| 7358 | if test -n "$lt_prog_compiler_pic"; then |
| 7359 | |
| 7360 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7361 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
| 7362 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7364 | else |
| 7365 | lt_prog_compiler_pic_works=no |
| 7366 | ac_outfile=conftest.$ac_objext |
| 7367 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7368 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7369 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7370 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7371 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7372 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7373 | # The option is referenced via a variable to avoid confusing sed. |
| 7374 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7375 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7376 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7377 | -e 's:$: $lt_compiler_flag:'` |
| 7378 | (eval echo "\"\$as_me:7378: $lt_compile\"" >&5) |
| 7379 | (eval "$lt_compile" 2>conftest.err) |
| 7380 | ac_status=$? |
| 7381 | cat conftest.err >&5 |
| 7382 | echo "$as_me:7382: \$? = $ac_status" >&5 |
| 7383 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7384 | # The compiler can only warn and ignore the option if not recognized |
| 7385 | # So say no if there are warnings other than the usual output. |
| 7386 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7387 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7388 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7389 | lt_prog_compiler_pic_works=yes |
| 7390 | fi |
| 7391 | fi |
| 7392 | $rm conftest* |
| 7393 | |
| 7394 | fi |
| 7395 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7396 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
| 7397 | |
| 7398 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7399 | case $lt_prog_compiler_pic in |
| 7400 | "" | " "*) ;; |
| 7401 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7402 | esac |
| 7403 | else |
| 7404 | lt_prog_compiler_pic= |
| 7405 | lt_prog_compiler_can_build_shared=no |
| 7406 | fi |
| 7407 | |
| 7408 | fi |
| 7409 | case $host_os in |
| 7410 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7411 | *djgpp*) |
| 7412 | lt_prog_compiler_pic= |
| 7413 | ;; |
| 7414 | *) |
| 7415 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7416 | ;; |
| 7417 | esac |
| 7418 | |
| 7419 | # |
| 7420 | # Check to make sure the static flag actually works. |
| 7421 | # |
| 7422 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7423 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7424 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 7425 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7427 | else |
| 7428 | lt_prog_compiler_static_works=no |
| 7429 | save_LDFLAGS="$LDFLAGS" |
| 7430 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7431 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7432 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7433 | # The linker can only warn and ignore the option if not recognized |
| 7434 | # So say no if there are warnings |
| 7435 | if test -s conftest.err; then |
| 7436 | # Append any errors to the config.log. |
| 7437 | cat conftest.err 1>&5 |
| 7438 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7439 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7440 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7441 | lt_prog_compiler_static_works=yes |
| 7442 | fi |
| 7443 | else |
| 7444 | lt_prog_compiler_static_works=yes |
| 7445 | fi |
| 7446 | fi |
| 7447 | $rm conftest* |
| 7448 | LDFLAGS="$save_LDFLAGS" |
| 7449 | |
| 7450 | fi |
| 7451 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7452 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 7453 | |
| 7454 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7455 | : |
| 7456 | else |
| 7457 | lt_prog_compiler_static= |
| 7458 | fi |
| 7459 | |
| 7460 | |
| 7461 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7462 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 7463 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7465 | else |
| 7466 | lt_cv_prog_compiler_c_o=no |
| 7467 | $rm -r conftest 2>/dev/null |
| 7468 | mkdir conftest |
| 7469 | cd conftest |
| 7470 | mkdir out |
| 7471 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7472 | |
| 7473 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7474 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7475 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7476 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7477 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7478 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7479 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7480 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7481 | -e 's:$: $lt_compiler_flag:'` |
| 7482 | (eval echo "\"\$as_me:7482: $lt_compile\"" >&5) |
| 7483 | (eval "$lt_compile" 2>out/conftest.err) |
| 7484 | ac_status=$? |
| 7485 | cat out/conftest.err >&5 |
| 7486 | echo "$as_me:7486: \$? = $ac_status" >&5 |
| 7487 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7488 | then |
| 7489 | # The compiler can only warn and ignore the option if not recognized |
| 7490 | # So say no if there are warnings |
| 7491 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7492 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7493 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7494 | lt_cv_prog_compiler_c_o=yes |
| 7495 | fi |
| 7496 | fi |
| 7497 | chmod u+w . 2>&5 |
| 7498 | $rm conftest* |
| 7499 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7500 | # template instantiation |
| 7501 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7502 | $rm out/* && rmdir out |
| 7503 | cd .. |
| 7504 | rmdir conftest |
| 7505 | $rm conftest* |
| 7506 | |
| 7507 | fi |
| 7508 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7509 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
| 7510 | |
| 7511 | |
| 7512 | hard_links="nottested" |
| 7513 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7514 | # do not overwrite the value of need_locks provided by the user |
| 7515 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7516 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
| 7517 | hard_links=yes |
| 7518 | $rm conftest* |
| 7519 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7520 | touch conftest.a |
| 7521 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7522 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7523 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7524 | echo "${ECHO_T}$hard_links" >&6; } |
| 7525 | if test "$hard_links" = no; then |
| 7526 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7527 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7528 | need_locks=warn |
| 7529 | fi |
| 7530 | else |
| 7531 | need_locks=no |
| 7532 | fi |
| 7533 | |
| 7534 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7535 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
| 7536 | |
| 7537 | runpath_var= |
| 7538 | allow_undefined_flag= |
| 7539 | enable_shared_with_static_runtimes=no |
| 7540 | archive_cmds= |
| 7541 | archive_expsym_cmds= |
| 7542 | old_archive_From_new_cmds= |
| 7543 | old_archive_from_expsyms_cmds= |
| 7544 | export_dynamic_flag_spec= |
| 7545 | whole_archive_flag_spec= |
| 7546 | thread_safe_flag_spec= |
| 7547 | hardcode_libdir_flag_spec= |
| 7548 | hardcode_libdir_flag_spec_ld= |
| 7549 | hardcode_libdir_separator= |
| 7550 | hardcode_direct=no |
| 7551 | hardcode_minus_L=no |
| 7552 | hardcode_shlibpath_var=unsupported |
| 7553 | link_all_deplibs=unknown |
| 7554 | hardcode_automatic=no |
| 7555 | module_cmds= |
| 7556 | module_expsym_cmds= |
| 7557 | always_export_symbols=no |
| 7558 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7559 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7560 | # included in the symbol list |
| 7561 | include_expsyms= |
| 7562 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7563 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7564 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7565 | # as well as any symbol that contains `d'. |
| 7566 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7567 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7568 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7569 | # the symbol is explicitly referenced. Since portable code cannot |
| 7570 | # rely on this symbol name, it's probably fine to never include it in |
| 7571 | # preloaded symbol tables. |
| 7572 | extract_expsyms_cmds= |
| 7573 | # Just being paranoid about ensuring that cc_basename is set. |
| 7574 | for cc_temp in $compiler""; do |
| 7575 | case $cc_temp in |
| 7576 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7577 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7578 | \-*) ;; |
| 7579 | *) break;; |
| 7580 | esac |
| 7581 | done |
| 7582 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7583 | |
| 7584 | case $host_os in |
| 7585 | cygwin* | mingw* | pw32*) |
| 7586 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7587 | # When not using gcc, we currently assume that we are using |
| 7588 | # Microsoft Visual C++. |
| 7589 | if test "$GCC" != yes; then |
| 7590 | with_gnu_ld=no |
| 7591 | fi |
| 7592 | ;; |
| 7593 | interix*) |
| 7594 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7595 | with_gnu_ld=yes |
| 7596 | ;; |
| 7597 | openbsd*) |
| 7598 | with_gnu_ld=no |
| 7599 | ;; |
| 7600 | esac |
| 7601 | |
| 7602 | ld_shlibs=yes |
| 7603 | if test "$with_gnu_ld" = yes; then |
| 7604 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7605 | wlarc='${wl}' |
| 7606 | |
| 7607 | # Set some defaults for GNU ld with shared library support. These |
| 7608 | # are reset later if shared libraries are not supported. Putting them |
| 7609 | # here allows them to be overridden if necessary. |
| 7610 | runpath_var=LD_RUN_PATH |
| 7611 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7612 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7613 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7614 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7615 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7616 | else |
| 7617 | whole_archive_flag_spec= |
| 7618 | fi |
| 7619 | supports_anon_versioning=no |
| 7620 | case `$LD -v 2>/dev/null` in |
| 7621 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7622 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7623 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7624 | *\ 2.11.*) ;; # other 2.11 versions |
| 7625 | *) supports_anon_versioning=yes ;; |
| 7626 | esac |
| 7627 | |
| 7628 | # See if GNU ld supports shared libraries. |
| 7629 | case $host_os in |
| 7630 | aix3* | aix4* | aix5*) |
| 7631 | # On AIX/PPC, the GNU linker is very broken |
| 7632 | if test "$host_cpu" != ia64; then |
| 7633 | ld_shlibs=no |
| 7634 | cat <<EOF 1>&2 |
| 7635 | |
| 7636 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7637 | *** to be unable to reliably create shared libraries on AIX. |
| 7638 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7639 | *** really care for shared libraries, you may want to modify your PATH |
| 7640 | *** so that a non-GNU linker is found, and then restart. |
| 7641 | |
| 7642 | EOF |
| 7643 | fi |
| 7644 | ;; |
| 7645 | |
| 7646 | amigaos*) |
| 7647 | 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)' |
| 7648 | hardcode_libdir_flag_spec='-L$libdir' |
| 7649 | hardcode_minus_L=yes |
| 7650 | |
| 7651 | # Samuel A. Falvo II <[email protected]> reports |
| 7652 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7653 | # to version 4, is to share data among multiple programs linked |
| 7654 | # with the same dynamic library. Since this doesn't match the |
| 7655 | # behavior of shared libraries on other platforms, we can't use |
| 7656 | # them. |
| 7657 | ld_shlibs=no |
| 7658 | ;; |
| 7659 | |
| 7660 | beos*) |
| 7661 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7662 | allow_undefined_flag=unsupported |
| 7663 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 7664 | # support --undefined. This deserves some investigation. FIXME |
| 7665 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7666 | else |
| 7667 | ld_shlibs=no |
| 7668 | fi |
| 7669 | ;; |
| 7670 | |
| 7671 | cygwin* | mingw* | pw32*) |
| 7672 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7673 | # as there is no search path for DLLs. |
| 7674 | hardcode_libdir_flag_spec='-L$libdir' |
| 7675 | allow_undefined_flag=unsupported |
| 7676 | always_export_symbols=no |
| 7677 | enable_shared_with_static_runtimes=yes |
| 7678 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 7679 | |
| 7680 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 7681 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7682 | # If the export-symbols file already is a .def file (1st line |
| 7683 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7684 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7685 | cp $export_symbols $output_objdir/$soname.def; |
| 7686 | else |
| 7687 | echo EXPORTS > $output_objdir/$soname.def; |
| 7688 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7689 | fi~ |
| 7690 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7691 | else |
| 7692 | ld_shlibs=no |
| 7693 | fi |
| 7694 | ;; |
| 7695 | |
| 7696 | interix3*) |
| 7697 | hardcode_direct=no |
| 7698 | hardcode_shlibpath_var=no |
| 7699 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7700 | export_dynamic_flag_spec='${wl}-E' |
| 7701 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7702 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7703 | # default) and relocated if they conflict, which is a slow very memory |
| 7704 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7705 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7706 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7707 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7708 | 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' |
| 7709 | ;; |
| 7710 | |
| 7711 | linux*) |
| 7712 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7713 | tmp_addflag= |
| 7714 | case $cc_basename,$host_cpu in |
| 7715 | pgcc*) # Portland Group C compiler |
| 7716 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7717 | tmp_addflag=' $pic_flag' |
| 7718 | ;; |
| 7719 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7720 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7721 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 7722 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 7723 | tmp_addflag=' -i_dynamic' ;; |
| 7724 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7725 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7726 | ifc* | ifort*) # Intel Fortran compiler |
| 7727 | tmp_addflag=' -nofor_main' ;; |
| 7728 | esac |
| 7729 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7730 | |
| 7731 | if test $supports_anon_versioning = yes; then |
| 7732 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7733 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7734 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7735 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7736 | fi |
| 7737 | else |
| 7738 | ld_shlibs=no |
| 7739 | fi |
| 7740 | ;; |
| 7741 | |
| 7742 | netbsd*) |
| 7743 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7744 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7745 | wlarc= |
| 7746 | else |
| 7747 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7748 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7749 | fi |
| 7750 | ;; |
| 7751 | |
| 7752 | solaris*) |
| 7753 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7754 | ld_shlibs=no |
| 7755 | cat <<EOF 1>&2 |
| 7756 | |
| 7757 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7758 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7759 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7760 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7761 | *** your PATH or compiler configuration so that the native linker is |
| 7762 | *** used, and then restart. |
| 7763 | |
| 7764 | EOF |
| 7765 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7766 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7767 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7768 | else |
| 7769 | ld_shlibs=no |
| 7770 | fi |
| 7771 | ;; |
| 7772 | |
| 7773 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7774 | case `$LD -v 2>&1` in |
| 7775 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7776 | ld_shlibs=no |
| 7777 | cat <<_LT_EOF 1>&2 |
| 7778 | |
| 7779 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7780 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7781 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7782 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7783 | *** your PATH or compiler configuration so that the native linker is |
| 7784 | *** used, and then restart. |
| 7785 | |
| 7786 | _LT_EOF |
| 7787 | ;; |
| 7788 | *) |
| 7789 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7790 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 7791 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 7792 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 7793 | else |
| 7794 | ld_shlibs=no |
| 7795 | fi |
| 7796 | ;; |
| 7797 | esac |
| 7798 | ;; |
| 7799 | |
| 7800 | sunos4*) |
| 7801 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7802 | wlarc= |
| 7803 | hardcode_direct=yes |
| 7804 | hardcode_shlibpath_var=no |
| 7805 | ;; |
| 7806 | |
| 7807 | *) |
| 7808 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7809 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7810 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7811 | else |
| 7812 | ld_shlibs=no |
| 7813 | fi |
| 7814 | ;; |
| 7815 | esac |
| 7816 | |
| 7817 | if test "$ld_shlibs" = no; then |
| 7818 | runpath_var= |
| 7819 | hardcode_libdir_flag_spec= |
| 7820 | export_dynamic_flag_spec= |
| 7821 | whole_archive_flag_spec= |
| 7822 | fi |
| 7823 | else |
| 7824 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7825 | case $host_os in |
| 7826 | aix3*) |
| 7827 | allow_undefined_flag=unsupported |
| 7828 | always_export_symbols=yes |
| 7829 | 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' |
| 7830 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7831 | # are no directories specified by -L. |
| 7832 | hardcode_minus_L=yes |
| 7833 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 7834 | # Neither direct hardcoding nor static linking is supported with a |
| 7835 | # broken collect2. |
| 7836 | hardcode_direct=unsupported |
| 7837 | fi |
| 7838 | ;; |
| 7839 | |
| 7840 | aix4* | aix5*) |
| 7841 | if test "$host_cpu" = ia64; then |
| 7842 | # On IA64, the linker does run time linking by default, so we don't |
| 7843 | # have to do anything special. |
| 7844 | aix_use_runtimelinking=no |
| 7845 | exp_sym_flag='-Bexport' |
| 7846 | no_entry_flag="" |
| 7847 | else |
| 7848 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7849 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 7850 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 7851 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 7852 | else |
| 7853 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 7854 | fi |
| 7855 | aix_use_runtimelinking=no |
| 7856 | |
| 7857 | # Test if we are trying to use run time linking or normal |
| 7858 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7859 | # need to do runtime linking. |
| 7860 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 7861 | for ld_flag in $LDFLAGS; do |
| 7862 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7863 | aix_use_runtimelinking=yes |
| 7864 | break |
| 7865 | fi |
| 7866 | done |
| 7867 | ;; |
| 7868 | esac |
| 7869 | |
| 7870 | exp_sym_flag='-bexport' |
| 7871 | no_entry_flag='-bnoentry' |
| 7872 | fi |
| 7873 | |
| 7874 | # When large executables or shared objects are built, AIX ld can |
| 7875 | # have problems creating the table of contents. If linking a library |
| 7876 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7877 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7878 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7879 | |
| 7880 | archive_cmds='' |
| 7881 | hardcode_direct=yes |
| 7882 | hardcode_libdir_separator=':' |
| 7883 | link_all_deplibs=yes |
| 7884 | |
| 7885 | if test "$GCC" = yes; then |
| 7886 | case $host_os in aix4.[012]|aix4.[012].*) |
| 7887 | # We only want to do this on AIX 4.2 and lower, the check |
| 7888 | # below for broken collect2 doesn't work under 4.3+ |
| 7889 | collect2name=`${CC} -print-prog-name=collect2` |
| 7890 | if test -f "$collect2name" && \ |
| 7891 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 7892 | then |
| 7893 | # We have reworked collect2 |
| 7894 | hardcode_direct=yes |
| 7895 | else |
| 7896 | # We have old collect2 |
| 7897 | hardcode_direct=unsupported |
| 7898 | # It fails to find uninstalled libraries when the uninstalled |
| 7899 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7900 | # to unsupported forces relinking |
| 7901 | hardcode_minus_L=yes |
| 7902 | hardcode_libdir_flag_spec='-L$libdir' |
| 7903 | hardcode_libdir_separator= |
| 7904 | fi |
| 7905 | ;; |
| 7906 | esac |
| 7907 | shared_flag='-shared' |
| 7908 | if test "$aix_use_runtimelinking" = yes; then |
| 7909 | shared_flag="$shared_flag "'${wl}-G' |
| 7910 | fi |
| 7911 | else |
| 7912 | # not using gcc |
| 7913 | if test "$host_cpu" = ia64; then |
| 7914 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7915 | # chokes on -Wl,-G. The following line is correct: |
| 7916 | shared_flag='-G' |
| 7917 | else |
| 7918 | if test "$aix_use_runtimelinking" = yes; then |
| 7919 | shared_flag='${wl}-G' |
| 7920 | else |
| 7921 | shared_flag='${wl}-bM:SRE' |
| 7922 | fi |
| 7923 | fi |
| 7924 | fi |
| 7925 | |
| 7926 | # It seems that -bexpall does not export symbols beginning with |
| 7927 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7928 | always_export_symbols=yes |
| 7929 | if test "$aix_use_runtimelinking" = yes; then |
| 7930 | # Warning - without using the other runtime loading flags (-brtl), |
| 7931 | # -berok will link without error, but may produce a broken library. |
| 7932 | allow_undefined_flag='-berok' |
| 7933 | # Determine the default libpath from the value encoded in an empty executable. |
| 7934 | cat >conftest.$ac_ext <<_ACEOF |
| 7935 | /* confdefs.h. */ |
| 7936 | _ACEOF |
| 7937 | cat confdefs.h >>conftest.$ac_ext |
| 7938 | cat >>conftest.$ac_ext <<_ACEOF |
| 7939 | /* end confdefs.h. */ |
| 7940 | |
| 7941 | int |
| 7942 | main () |
| 7943 | { |
| 7944 | |
| 7945 | ; |
| 7946 | return 0; |
| 7947 | } |
| 7948 | _ACEOF |
| 7949 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7950 | if { (ac_try="$ac_link" |
| 7951 | case "(($ac_try" in |
| 7952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7953 | *) ac_try_echo=$ac_try;; |
| 7954 | esac |
| 7955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7956 | (eval "$ac_link") 2>conftest.er1 |
| 7957 | ac_status=$? |
| 7958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7959 | rm -f conftest.er1 |
| 7960 | cat conftest.err >&5 |
| 7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7962 | (exit $ac_status); } && |
| 7963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7964 | { (case "(($ac_try" in |
| 7965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7966 | *) ac_try_echo=$ac_try;; |
| 7967 | esac |
| 7968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7969 | (eval "$ac_try") 2>&5 |
| 7970 | ac_status=$? |
| 7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7972 | (exit $ac_status); }; } && |
| 7973 | { ac_try='test -s conftest$ac_exeext' |
| 7974 | { (case "(($ac_try" in |
| 7975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7976 | *) ac_try_echo=$ac_try;; |
| 7977 | esac |
| 7978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7979 | (eval "$ac_try") 2>&5 |
| 7980 | ac_status=$? |
| 7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7982 | (exit $ac_status); }; }; then |
| 7983 | |
| 7984 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7985 | }'` |
| 7986 | # Check for a 64-bit object if we didn't find anything. |
| 7987 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7988 | }'`; fi |
| 7989 | else |
| 7990 | echo "$as_me: failed program was:" >&5 |
| 7991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7992 | |
| 7993 | |
| 7994 | fi |
| 7995 | |
| 7996 | rm -f core conftest.err conftest.$ac_objext \ |
| 7997 | conftest$ac_exeext conftest.$ac_ext |
| 7998 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7999 | |
| 8000 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8001 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 8002 | else |
| 8003 | if test "$host_cpu" = ia64; then |
| 8004 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8005 | allow_undefined_flag="-z nodefs" |
| 8006 | 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" |
| 8007 | else |
| 8008 | # Determine the default libpath from the value encoded in an empty executable. |
| 8009 | cat >conftest.$ac_ext <<_ACEOF |
| 8010 | /* confdefs.h. */ |
| 8011 | _ACEOF |
| 8012 | cat confdefs.h >>conftest.$ac_ext |
| 8013 | cat >>conftest.$ac_ext <<_ACEOF |
| 8014 | /* end confdefs.h. */ |
| 8015 | |
| 8016 | int |
| 8017 | main () |
| 8018 | { |
| 8019 | |
| 8020 | ; |
| 8021 | return 0; |
| 8022 | } |
| 8023 | _ACEOF |
| 8024 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8025 | if { (ac_try="$ac_link" |
| 8026 | case "(($ac_try" in |
| 8027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8028 | *) ac_try_echo=$ac_try;; |
| 8029 | esac |
| 8030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8031 | (eval "$ac_link") 2>conftest.er1 |
| 8032 | ac_status=$? |
| 8033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8034 | rm -f conftest.er1 |
| 8035 | cat conftest.err >&5 |
| 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); } && |
| 8038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8039 | { (case "(($ac_try" in |
| 8040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8041 | *) ac_try_echo=$ac_try;; |
| 8042 | esac |
| 8043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8044 | (eval "$ac_try") 2>&5 |
| 8045 | ac_status=$? |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); }; } && |
| 8048 | { ac_try='test -s conftest$ac_exeext' |
| 8049 | { (case "(($ac_try" in |
| 8050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8051 | *) ac_try_echo=$ac_try;; |
| 8052 | esac |
| 8053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8054 | (eval "$ac_try") 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; }; then |
| 8058 | |
| 8059 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8060 | }'` |
| 8061 | # Check for a 64-bit object if we didn't find anything. |
| 8062 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8063 | }'`; fi |
| 8064 | else |
| 8065 | echo "$as_me: failed program was:" >&5 |
| 8066 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8067 | |
| 8068 | |
| 8069 | fi |
| 8070 | |
| 8071 | rm -f core conftest.err conftest.$ac_objext \ |
| 8072 | conftest$ac_exeext conftest.$ac_ext |
| 8073 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8074 | |
| 8075 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8076 | # Warning - without using the other run time loading flags, |
| 8077 | # -berok will link without error, but may produce a broken library. |
| 8078 | no_undefined_flag=' ${wl}-bernotok' |
| 8079 | allow_undefined_flag=' ${wl}-berok' |
| 8080 | # Exported symbols can be pulled into shared objects from archives |
| 8081 | whole_archive_flag_spec='$convenience' |
| 8082 | archive_cmds_need_lc=yes |
| 8083 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8084 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 8085 | fi |
| 8086 | fi |
| 8087 | ;; |
| 8088 | |
| 8089 | amigaos*) |
| 8090 | 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)' |
| 8091 | hardcode_libdir_flag_spec='-L$libdir' |
| 8092 | hardcode_minus_L=yes |
| 8093 | # see comment about different semantics on the GNU ld section |
| 8094 | ld_shlibs=no |
| 8095 | ;; |
| 8096 | |
| 8097 | bsdi[45]*) |
| 8098 | export_dynamic_flag_spec=-rdynamic |
| 8099 | ;; |
| 8100 | |
| 8101 | cygwin* | mingw* | pw32*) |
| 8102 | # When not using gcc, we currently assume that we are using |
| 8103 | # Microsoft Visual C++. |
| 8104 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8105 | # no search path for DLLs. |
| 8106 | hardcode_libdir_flag_spec=' ' |
| 8107 | allow_undefined_flag=unsupported |
| 8108 | # Tell ltmain to make .lib files, not .a files. |
| 8109 | libext=lib |
| 8110 | # Tell ltmain to make .dll files, not .so files. |
| 8111 | shrext_cmds=".dll" |
| 8112 | # FIXME: Setting linknames here is a bad hack. |
| 8113 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8114 | # The linker will automatically build a .lib file if we build a DLL. |
| 8115 | old_archive_From_new_cmds='true' |
| 8116 | # FIXME: Should let the user specify the lib program. |
| 8117 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8118 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8119 | enable_shared_with_static_runtimes=yes |
| 8120 | ;; |
| 8121 | |
| 8122 | darwin* | rhapsody*) |
| 8123 | case $host_os in |
| 8124 | rhapsody* | darwin1.[012]) |
| 8125 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8126 | ;; |
| 8127 | *) # Darwin 1.3 on |
| 8128 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8129 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8130 | else |
| 8131 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8132 | 10.[012]) |
| 8133 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8134 | ;; |
| 8135 | 10.*) |
| 8136 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8137 | ;; |
| 8138 | esac |
| 8139 | fi |
| 8140 | ;; |
| 8141 | esac |
| 8142 | archive_cmds_need_lc=no |
| 8143 | hardcode_direct=no |
| 8144 | hardcode_automatic=yes |
| 8145 | hardcode_shlibpath_var=unsupported |
| 8146 | whole_archive_flag_spec='' |
| 8147 | link_all_deplibs=yes |
| 8148 | if test "$GCC" = yes ; then |
| 8149 | output_verbose_link_cmd='echo' |
| 8150 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8151 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8152 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8153 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8154 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8155 | else |
| 8156 | case $cc_basename in |
| 8157 | xlc*) |
| 8158 | output_verbose_link_cmd='echo' |
| 8159 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8160 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8161 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8162 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8163 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8164 | ;; |
| 8165 | *) |
| 8166 | ld_shlibs=no |
| 8167 | ;; |
| 8168 | esac |
| 8169 | fi |
| 8170 | ;; |
| 8171 | |
| 8172 | dgux*) |
| 8173 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8174 | hardcode_libdir_flag_spec='-L$libdir' |
| 8175 | hardcode_shlibpath_var=no |
| 8176 | ;; |
| 8177 | |
| 8178 | freebsd1*) |
| 8179 | ld_shlibs=no |
| 8180 | ;; |
| 8181 | |
| 8182 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8183 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8184 | # does not break anything, and helps significantly (at the cost of a little |
| 8185 | # extra space). |
| 8186 | freebsd2.2*) |
| 8187 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8188 | hardcode_libdir_flag_spec='-R$libdir' |
| 8189 | hardcode_direct=yes |
| 8190 | hardcode_shlibpath_var=no |
| 8191 | ;; |
| 8192 | |
| 8193 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8194 | freebsd2*) |
| 8195 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8196 | hardcode_direct=yes |
| 8197 | hardcode_minus_L=yes |
| 8198 | hardcode_shlibpath_var=no |
| 8199 | ;; |
| 8200 | |
| 8201 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 8202 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 8203 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8204 | hardcode_libdir_flag_spec='-R$libdir' |
| 8205 | hardcode_direct=yes |
| 8206 | hardcode_shlibpath_var=no |
| 8207 | ;; |
| 8208 | |
| 8209 | hpux9*) |
| 8210 | if test "$GCC" = yes; then |
| 8211 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 8212 | else |
| 8213 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 8214 | fi |
| 8215 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8216 | hardcode_libdir_separator=: |
| 8217 | hardcode_direct=yes |
| 8218 | |
| 8219 | # hardcode_minus_L: Not really in the search PATH, |
| 8220 | # but as the default location of the library. |
| 8221 | hardcode_minus_L=yes |
| 8222 | export_dynamic_flag_spec='${wl}-E' |
| 8223 | ;; |
| 8224 | |
| 8225 | hpux10*) |
| 8226 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8227 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8228 | else |
| 8229 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8230 | fi |
| 8231 | if test "$with_gnu_ld" = no; then |
| 8232 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8233 | hardcode_libdir_separator=: |
| 8234 | |
| 8235 | hardcode_direct=yes |
| 8236 | export_dynamic_flag_spec='${wl}-E' |
| 8237 | |
| 8238 | # hardcode_minus_L: Not really in the search PATH, |
| 8239 | # but as the default location of the library. |
| 8240 | hardcode_minus_L=yes |
| 8241 | fi |
| 8242 | ;; |
| 8243 | |
| 8244 | hpux11*) |
| 8245 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8246 | case $host_cpu in |
| 8247 | hppa*64*) |
| 8248 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8249 | ;; |
| 8250 | ia64*) |
| 8251 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8252 | ;; |
| 8253 | *) |
| 8254 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8255 | ;; |
| 8256 | esac |
| 8257 | else |
| 8258 | case $host_cpu in |
| 8259 | hppa*64*) |
| 8260 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8261 | ;; |
| 8262 | ia64*) |
| 8263 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8264 | ;; |
| 8265 | *) |
| 8266 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8267 | ;; |
| 8268 | esac |
| 8269 | fi |
| 8270 | if test "$with_gnu_ld" = no; then |
| 8271 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8272 | hardcode_libdir_separator=: |
| 8273 | |
| 8274 | case $host_cpu in |
| 8275 | hppa*64*|ia64*) |
| 8276 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8277 | hardcode_direct=no |
| 8278 | hardcode_shlibpath_var=no |
| 8279 | ;; |
| 8280 | *) |
| 8281 | hardcode_direct=yes |
| 8282 | export_dynamic_flag_spec='${wl}-E' |
| 8283 | |
| 8284 | # hardcode_minus_L: Not really in the search PATH, |
| 8285 | # but as the default location of the library. |
| 8286 | hardcode_minus_L=yes |
| 8287 | ;; |
| 8288 | esac |
| 8289 | fi |
| 8290 | ;; |
| 8291 | |
| 8292 | irix5* | irix6* | nonstopux*) |
| 8293 | if test "$GCC" = yes; then |
| 8294 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8295 | else |
| 8296 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8297 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8298 | fi |
| 8299 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8300 | hardcode_libdir_separator=: |
| 8301 | link_all_deplibs=yes |
| 8302 | ;; |
| 8303 | |
| 8304 | netbsd*) |
| 8305 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8306 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8307 | else |
| 8308 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8309 | fi |
| 8310 | hardcode_libdir_flag_spec='-R$libdir' |
| 8311 | hardcode_direct=yes |
| 8312 | hardcode_shlibpath_var=no |
| 8313 | ;; |
| 8314 | |
| 8315 | newsos6) |
| 8316 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8317 | hardcode_direct=yes |
| 8318 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8319 | hardcode_libdir_separator=: |
| 8320 | hardcode_shlibpath_var=no |
| 8321 | ;; |
| 8322 | |
| 8323 | openbsd*) |
| 8324 | hardcode_direct=yes |
| 8325 | hardcode_shlibpath_var=no |
| 8326 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8327 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8328 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8329 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8330 | export_dynamic_flag_spec='${wl}-E' |
| 8331 | else |
| 8332 | case $host_os in |
| 8333 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8334 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8335 | hardcode_libdir_flag_spec='-R$libdir' |
| 8336 | ;; |
| 8337 | *) |
| 8338 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8339 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8340 | ;; |
| 8341 | esac |
| 8342 | fi |
| 8343 | ;; |
| 8344 | |
| 8345 | os2*) |
| 8346 | hardcode_libdir_flag_spec='-L$libdir' |
| 8347 | hardcode_minus_L=yes |
| 8348 | allow_undefined_flag=unsupported |
| 8349 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 8350 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8351 | ;; |
| 8352 | |
| 8353 | osf3*) |
| 8354 | if test "$GCC" = yes; then |
| 8355 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8356 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8357 | else |
| 8358 | allow_undefined_flag=' -expect_unresolved \*' |
| 8359 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8360 | fi |
| 8361 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8362 | hardcode_libdir_separator=: |
| 8363 | ;; |
| 8364 | |
| 8365 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8366 | if test "$GCC" = yes; then |
| 8367 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8368 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8369 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8370 | else |
| 8371 | allow_undefined_flag=' -expect_unresolved \*' |
| 8372 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8373 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 8374 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 8375 | |
| 8376 | # Both c and cxx compiler support -rpath directly |
| 8377 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8378 | fi |
| 8379 | hardcode_libdir_separator=: |
| 8380 | ;; |
| 8381 | |
| 8382 | solaris*) |
| 8383 | no_undefined_flag=' -z text' |
| 8384 | if test "$GCC" = yes; then |
| 8385 | wlarc='${wl}' |
| 8386 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8387 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8388 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8389 | else |
| 8390 | wlarc='' |
| 8391 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8392 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8393 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8394 | fi |
| 8395 | hardcode_libdir_flag_spec='-R$libdir' |
| 8396 | hardcode_shlibpath_var=no |
| 8397 | case $host_os in |
| 8398 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 8399 | *) |
| 8400 | # The compiler driver will combine linker options so we |
| 8401 | # cannot just pass the convience library names through |
| 8402 | # without $wl, iff we do not link with $LD. |
| 8403 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8404 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8405 | case $wlarc in |
| 8406 | '') |
| 8407 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8408 | *) |
| 8409 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 8410 | esac ;; |
| 8411 | esac |
| 8412 | link_all_deplibs=yes |
| 8413 | ;; |
| 8414 | |
| 8415 | sunos4*) |
| 8416 | if test "x$host_vendor" = xsequent; then |
| 8417 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8418 | # files that make .init and .fini sections work. |
| 8419 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8420 | else |
| 8421 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8422 | fi |
| 8423 | hardcode_libdir_flag_spec='-L$libdir' |
| 8424 | hardcode_direct=yes |
| 8425 | hardcode_minus_L=yes |
| 8426 | hardcode_shlibpath_var=no |
| 8427 | ;; |
| 8428 | |
| 8429 | sysv4) |
| 8430 | case $host_vendor in |
| 8431 | sni) |
| 8432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8433 | hardcode_direct=yes # is this really true??? |
| 8434 | ;; |
| 8435 | siemens) |
| 8436 | ## LD is ld it makes a PLAMLIB |
| 8437 | ## CC just makes a GrossModule. |
| 8438 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8439 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8440 | hardcode_direct=no |
| 8441 | ;; |
| 8442 | motorola) |
| 8443 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8444 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8445 | ;; |
| 8446 | esac |
| 8447 | runpath_var='LD_RUN_PATH' |
| 8448 | hardcode_shlibpath_var=no |
| 8449 | ;; |
| 8450 | |
| 8451 | sysv4.3*) |
| 8452 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8453 | hardcode_shlibpath_var=no |
| 8454 | export_dynamic_flag_spec='-Bexport' |
| 8455 | ;; |
| 8456 | |
| 8457 | sysv4*MP*) |
| 8458 | if test -d /usr/nec; then |
| 8459 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8460 | hardcode_shlibpath_var=no |
| 8461 | runpath_var=LD_RUN_PATH |
| 8462 | hardcode_runpath_var=yes |
| 8463 | ld_shlibs=yes |
| 8464 | fi |
| 8465 | ;; |
| 8466 | |
| 8467 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8468 | no_undefined_flag='${wl}-z,text' |
| 8469 | archive_cmds_need_lc=no |
| 8470 | hardcode_shlibpath_var=no |
| 8471 | runpath_var='LD_RUN_PATH' |
| 8472 | |
| 8473 | if test "$GCC" = yes; then |
| 8474 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8475 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8476 | else |
| 8477 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8478 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8479 | fi |
| 8480 | ;; |
| 8481 | |
| 8482 | sysv5* | sco3.2v5* | sco5v6*) |
| 8483 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8484 | # link with -lc, and that would cause any symbols used from libc to |
| 8485 | # always be unresolved, which means just about no library would |
| 8486 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8487 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8488 | # as -z defs. |
| 8489 | no_undefined_flag='${wl}-z,text' |
| 8490 | allow_undefined_flag='${wl}-z,nodefs' |
| 8491 | archive_cmds_need_lc=no |
| 8492 | hardcode_shlibpath_var=no |
| 8493 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8494 | hardcode_libdir_separator=':' |
| 8495 | link_all_deplibs=yes |
| 8496 | export_dynamic_flag_spec='${wl}-Bexport' |
| 8497 | runpath_var='LD_RUN_PATH' |
| 8498 | |
| 8499 | if test "$GCC" = yes; then |
| 8500 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8501 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8502 | else |
| 8503 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8504 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8505 | fi |
| 8506 | ;; |
| 8507 | |
| 8508 | uts4*) |
| 8509 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8510 | hardcode_libdir_flag_spec='-L$libdir' |
| 8511 | hardcode_shlibpath_var=no |
| 8512 | ;; |
| 8513 | |
| 8514 | *) |
| 8515 | ld_shlibs=no |
| 8516 | ;; |
| 8517 | esac |
| 8518 | fi |
| 8519 | |
| 8520 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8521 | echo "${ECHO_T}$ld_shlibs" >&6; } |
| 8522 | test "$ld_shlibs" = no && can_build_shared=no |
| 8523 | |
| 8524 | # |
| 8525 | # Do we need to explicitly link libc? |
| 8526 | # |
| 8527 | case "x$archive_cmds_need_lc" in |
| 8528 | x|xyes) |
| 8529 | # Assume -lc should be added |
| 8530 | archive_cmds_need_lc=yes |
| 8531 | |
| 8532 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8533 | case $archive_cmds in |
| 8534 | *'~'*) |
| 8535 | # FIXME: we may have to deal with multi-command sequences. |
| 8536 | ;; |
| 8537 | '$CC '*) |
| 8538 | # Test whether the compiler implicitly links with -lc since on some |
| 8539 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8540 | # to ld, don't add -lc before -lgcc. |
| 8541 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8542 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
| 8543 | $rm conftest* |
| 8544 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8545 | |
| 8546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8547 | (eval $ac_compile) 2>&5 |
| 8548 | ac_status=$? |
| 8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8550 | (exit $ac_status); } 2>conftest.err; then |
| 8551 | soname=conftest |
| 8552 | lib=conftest |
| 8553 | libobjs=conftest.$ac_objext |
| 8554 | deplibs= |
| 8555 | wl=$lt_prog_compiler_wl |
| 8556 | pic_flag=$lt_prog_compiler_pic |
| 8557 | compiler_flags=-v |
| 8558 | linker_flags=-v |
| 8559 | verstring= |
| 8560 | output_objdir=. |
| 8561 | libname=conftest |
| 8562 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8563 | allow_undefined_flag= |
| 8564 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8565 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8566 | ac_status=$? |
| 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8568 | (exit $ac_status); } |
| 8569 | then |
| 8570 | archive_cmds_need_lc=no |
| 8571 | else |
| 8572 | archive_cmds_need_lc=yes |
| 8573 | fi |
| 8574 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8575 | else |
| 8576 | cat conftest.err 1>&5 |
| 8577 | fi |
| 8578 | $rm conftest* |
| 8579 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8580 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
| 8581 | ;; |
| 8582 | esac |
| 8583 | fi |
| 8584 | ;; |
| 8585 | esac |
| 8586 | |
| 8587 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8588 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
| 8589 | library_names_spec= |
| 8590 | libname_spec='lib$name' |
| 8591 | soname_spec= |
| 8592 | shrext_cmds=".so" |
| 8593 | postinstall_cmds= |
| 8594 | postuninstall_cmds= |
| 8595 | finish_cmds= |
| 8596 | finish_eval= |
| 8597 | shlibpath_var= |
| 8598 | shlibpath_overrides_runpath=unknown |
| 8599 | version_type=none |
| 8600 | dynamic_linker="$host_os ld.so" |
| 8601 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8602 | if test "$GCC" = yes; then |
| 8603 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8604 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8605 | # if the path contains ";" then we assume it to be the separator |
| 8606 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8607 | # assumed that no part of a normal pathname contains ";" but that should |
| 8608 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8609 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8610 | else |
| 8611 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8612 | fi |
| 8613 | else |
| 8614 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8615 | fi |
| 8616 | need_lib_prefix=unknown |
| 8617 | hardcode_into_libs=no |
| 8618 | |
| 8619 | # when you set need_version to no, make sure it does not cause -set_version |
| 8620 | # flags to be left without arguments |
| 8621 | need_version=unknown |
| 8622 | |
| 8623 | case $host_os in |
| 8624 | aix3*) |
| 8625 | version_type=linux |
| 8626 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8627 | shlibpath_var=LIBPATH |
| 8628 | |
| 8629 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8630 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8631 | ;; |
| 8632 | |
| 8633 | aix4* | aix5*) |
| 8634 | version_type=linux |
| 8635 | need_lib_prefix=no |
| 8636 | need_version=no |
| 8637 | hardcode_into_libs=yes |
| 8638 | if test "$host_cpu" = ia64; then |
| 8639 | # AIX 5 supports IA64 |
| 8640 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8641 | shlibpath_var=LD_LIBRARY_PATH |
| 8642 | else |
| 8643 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8644 | # for dependence libraries. The import file would start with |
| 8645 | # the line `#! .'. This would cause the generated library to |
| 8646 | # depend on `.', always an invalid library. This was fixed in |
| 8647 | # development snapshots of GCC prior to 3.0. |
| 8648 | case $host_os in |
| 8649 | aix4 | aix4.[01] | aix4.[01].*) |
| 8650 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8651 | echo ' yes ' |
| 8652 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8653 | : |
| 8654 | else |
| 8655 | can_build_shared=no |
| 8656 | fi |
| 8657 | ;; |
| 8658 | esac |
| 8659 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8660 | # soname into executable. Probably we can add versioning support to |
| 8661 | # collect2, so additional links can be useful in future. |
| 8662 | if test "$aix_use_runtimelinking" = yes; then |
| 8663 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8664 | # instead of lib<name>.a to let people know that these are not |
| 8665 | # typical AIX shared libraries. |
| 8666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8667 | else |
| 8668 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8669 | # and later when we are not doing run time linking. |
| 8670 | library_names_spec='${libname}${release}.a $libname.a' |
| 8671 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8672 | fi |
| 8673 | shlibpath_var=LIBPATH |
| 8674 | fi |
| 8675 | ;; |
| 8676 | |
| 8677 | amigaos*) |
| 8678 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8679 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8680 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 8681 | ;; |
| 8682 | |
| 8683 | beos*) |
| 8684 | library_names_spec='${libname}${shared_ext}' |
| 8685 | dynamic_linker="$host_os ld.so" |
| 8686 | shlibpath_var=LIBRARY_PATH |
| 8687 | ;; |
| 8688 | |
| 8689 | bsdi[45]*) |
| 8690 | version_type=linux |
| 8691 | need_version=no |
| 8692 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8694 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8695 | shlibpath_var=LD_LIBRARY_PATH |
| 8696 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8697 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8698 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8699 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8700 | # libtool to hard-code these into programs |
| 8701 | ;; |
| 8702 | |
| 8703 | cygwin* | mingw* | pw32*) |
| 8704 | version_type=windows |
| 8705 | shrext_cmds=".dll" |
| 8706 | need_version=no |
| 8707 | need_lib_prefix=no |
| 8708 | |
| 8709 | case $GCC,$host_os in |
| 8710 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8711 | library_names_spec='$libname.dll.a' |
| 8712 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8713 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8714 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8715 | dldir=$destdir/`dirname \$dlpath`~ |
| 8716 | test -d \$dldir || mkdir -p \$dldir~ |
| 8717 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8718 | chmod a+x \$dldir/$dlname' |
| 8719 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8720 | dlpath=$dir/\$dldll~ |
| 8721 | $rm \$dlpath' |
| 8722 | shlibpath_overrides_runpath=yes |
| 8723 | |
| 8724 | case $host_os in |
| 8725 | cygwin*) |
| 8726 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8727 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8728 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8729 | ;; |
| 8730 | mingw*) |
| 8731 | # MinGW DLLs use traditional 'lib' prefix |
| 8732 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8733 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8734 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8735 | # It is most probably a Windows format PATH printed by |
| 8736 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8737 | # path with ; separators, and with drive letters. We can handle the |
| 8738 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8739 | # especially as we might pass files found there to a mingw objdump, |
| 8740 | # which wouldn't understand a cygwinified path. Ahh. |
| 8741 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8742 | else |
| 8743 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8744 | fi |
| 8745 | ;; |
| 8746 | pw32*) |
| 8747 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 8748 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8749 | ;; |
| 8750 | esac |
| 8751 | ;; |
| 8752 | |
| 8753 | *) |
| 8754 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8755 | ;; |
| 8756 | esac |
| 8757 | dynamic_linker='Win32 ld.exe' |
| 8758 | # FIXME: first we should search . and the directory the executable is in |
| 8759 | shlibpath_var=PATH |
| 8760 | ;; |
| 8761 | |
| 8762 | darwin* | rhapsody*) |
| 8763 | dynamic_linker="$host_os dyld" |
| 8764 | version_type=darwin |
| 8765 | need_lib_prefix=no |
| 8766 | need_version=no |
| 8767 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8768 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8769 | shlibpath_overrides_runpath=yes |
| 8770 | shlibpath_var=DYLD_LIBRARY_PATH |
| 8771 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 8772 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8773 | if test "$GCC" = yes; then |
| 8774 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 8775 | else |
| 8776 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8777 | fi |
| 8778 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8779 | ;; |
| 8780 | |
| 8781 | dgux*) |
| 8782 | version_type=linux |
| 8783 | need_lib_prefix=no |
| 8784 | need_version=no |
| 8785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8787 | shlibpath_var=LD_LIBRARY_PATH |
| 8788 | ;; |
| 8789 | |
| 8790 | freebsd1*) |
| 8791 | dynamic_linker=no |
| 8792 | ;; |
| 8793 | |
| 8794 | kfreebsd*-gnu) |
| 8795 | version_type=linux |
| 8796 | need_lib_prefix=no |
| 8797 | need_version=no |
| 8798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8800 | shlibpath_var=LD_LIBRARY_PATH |
| 8801 | shlibpath_overrides_runpath=no |
| 8802 | hardcode_into_libs=yes |
| 8803 | dynamic_linker='GNU ld.so' |
| 8804 | ;; |
| 8805 | |
| 8806 | freebsd* | dragonfly*) |
| 8807 | # DragonFly does not have aout. When/if they implement a new |
| 8808 | # versioning mechanism, adjust this. |
| 8809 | if test -x /usr/bin/objformat; then |
| 8810 | objformat=`/usr/bin/objformat` |
| 8811 | else |
| 8812 | case $host_os in |
| 8813 | freebsd[123]*) objformat=aout ;; |
| 8814 | *) objformat=elf ;; |
| 8815 | esac |
| 8816 | fi |
| 8817 | version_type=freebsd-$objformat |
| 8818 | case $version_type in |
| 8819 | freebsd-elf*) |
| 8820 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8821 | need_version=no |
| 8822 | need_lib_prefix=no |
| 8823 | ;; |
| 8824 | freebsd-*) |
| 8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8826 | need_version=yes |
| 8827 | ;; |
| 8828 | esac |
| 8829 | shlibpath_var=LD_LIBRARY_PATH |
| 8830 | case $host_os in |
| 8831 | freebsd2*) |
| 8832 | shlibpath_overrides_runpath=yes |
| 8833 | ;; |
| 8834 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 8835 | shlibpath_overrides_runpath=yes |
| 8836 | hardcode_into_libs=yes |
| 8837 | ;; |
| 8838 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8839 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 8840 | shlibpath_overrides_runpath=no |
| 8841 | hardcode_into_libs=yes |
| 8842 | ;; |
| 8843 | freebsd*) # from 4.6 on |
| 8844 | shlibpath_overrides_runpath=yes |
| 8845 | hardcode_into_libs=yes |
| 8846 | ;; |
| 8847 | esac |
| 8848 | ;; |
| 8849 | |
| 8850 | gnu*) |
| 8851 | version_type=linux |
| 8852 | need_lib_prefix=no |
| 8853 | need_version=no |
| 8854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8855 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8856 | shlibpath_var=LD_LIBRARY_PATH |
| 8857 | hardcode_into_libs=yes |
| 8858 | ;; |
| 8859 | |
| 8860 | hpux9* | hpux10* | hpux11*) |
| 8861 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8862 | # link against other versions. |
| 8863 | version_type=sunos |
| 8864 | need_lib_prefix=no |
| 8865 | need_version=no |
| 8866 | case $host_cpu in |
| 8867 | ia64*) |
| 8868 | shrext_cmds='.so' |
| 8869 | hardcode_into_libs=yes |
| 8870 | dynamic_linker="$host_os dld.so" |
| 8871 | shlibpath_var=LD_LIBRARY_PATH |
| 8872 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8874 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8875 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8876 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8877 | else |
| 8878 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8879 | fi |
| 8880 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8881 | ;; |
| 8882 | hppa*64*) |
| 8883 | shrext_cmds='.sl' |
| 8884 | hardcode_into_libs=yes |
| 8885 | dynamic_linker="$host_os dld.sl" |
| 8886 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8887 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8889 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8890 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8891 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8892 | ;; |
| 8893 | *) |
| 8894 | shrext_cmds='.sl' |
| 8895 | dynamic_linker="$host_os dld.sl" |
| 8896 | shlibpath_var=SHLIB_PATH |
| 8897 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8899 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8900 | ;; |
| 8901 | esac |
| 8902 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8903 | postinstall_cmds='chmod 555 $lib' |
| 8904 | ;; |
| 8905 | |
| 8906 | interix3*) |
| 8907 | version_type=linux |
| 8908 | need_lib_prefix=no |
| 8909 | need_version=no |
| 8910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8911 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8912 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8913 | shlibpath_var=LD_LIBRARY_PATH |
| 8914 | shlibpath_overrides_runpath=no |
| 8915 | hardcode_into_libs=yes |
| 8916 | ;; |
| 8917 | |
| 8918 | irix5* | irix6* | nonstopux*) |
| 8919 | case $host_os in |
| 8920 | nonstopux*) version_type=nonstopux ;; |
| 8921 | *) |
| 8922 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8923 | version_type=linux |
| 8924 | else |
| 8925 | version_type=irix |
| 8926 | fi ;; |
| 8927 | esac |
| 8928 | need_lib_prefix=no |
| 8929 | need_version=no |
| 8930 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8932 | case $host_os in |
| 8933 | irix5* | nonstopux*) |
| 8934 | libsuff= shlibsuff= |
| 8935 | ;; |
| 8936 | *) |
| 8937 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8938 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8939 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8940 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8941 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8942 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8943 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8944 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8945 | esac |
| 8946 | ;; |
| 8947 | esac |
| 8948 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8949 | shlibpath_overrides_runpath=no |
| 8950 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8951 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8952 | hardcode_into_libs=yes |
| 8953 | ;; |
| 8954 | |
| 8955 | # No shared lib support for Linux oldld, aout, or coff. |
| 8956 | linux*oldld* | linux*aout* | linux*coff*) |
| 8957 | dynamic_linker=no |
| 8958 | ;; |
| 8959 | |
| 8960 | # This must be Linux ELF. |
| 8961 | linux*) |
| 8962 | version_type=linux |
| 8963 | need_lib_prefix=no |
| 8964 | need_version=no |
| 8965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8966 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8967 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8968 | shlibpath_var=LD_LIBRARY_PATH |
| 8969 | shlibpath_overrides_runpath=no |
| 8970 | # This implies no fast_install, which is unacceptable. |
| 8971 | # Some rework will be needed to allow for fast_install |
| 8972 | # before this can be enabled. |
| 8973 | hardcode_into_libs=yes |
| 8974 | |
| 8975 | # Append ld.so.conf contents to the search path |
| 8976 | if test -f /etc/ld.so.conf; then |
| 8977 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 8978 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8979 | fi |
| 8980 | |
| 8981 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8982 | # powerpc, because MkLinux only supported shared libraries with the |
| 8983 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8984 | # most powerpc-linux boxes support dynamic linking these days and |
| 8985 | # people can always --disable-shared, the test was removed, and we |
| 8986 | # assume the GNU/Linux dynamic linker is in use. |
| 8987 | dynamic_linker='GNU/Linux ld.so' |
| 8988 | ;; |
| 8989 | |
| 8990 | knetbsd*-gnu) |
| 8991 | version_type=linux |
| 8992 | need_lib_prefix=no |
| 8993 | need_version=no |
| 8994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8996 | shlibpath_var=LD_LIBRARY_PATH |
| 8997 | shlibpath_overrides_runpath=no |
| 8998 | hardcode_into_libs=yes |
| 8999 | dynamic_linker='GNU ld.so' |
| 9000 | ;; |
| 9001 | |
| 9002 | netbsd*) |
| 9003 | version_type=sunos |
| 9004 | need_lib_prefix=no |
| 9005 | need_version=no |
| 9006 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9009 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9010 | else |
| 9011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9012 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9013 | dynamic_linker='NetBSD ld.elf_so' |
| 9014 | fi |
| 9015 | shlibpath_var=LD_LIBRARY_PATH |
| 9016 | shlibpath_overrides_runpath=yes |
| 9017 | hardcode_into_libs=yes |
| 9018 | ;; |
| 9019 | |
| 9020 | newsos6) |
| 9021 | version_type=linux |
| 9022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9023 | shlibpath_var=LD_LIBRARY_PATH |
| 9024 | shlibpath_overrides_runpath=yes |
| 9025 | ;; |
| 9026 | |
| 9027 | nto-qnx*) |
| 9028 | version_type=linux |
| 9029 | need_lib_prefix=no |
| 9030 | need_version=no |
| 9031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9032 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9033 | shlibpath_var=LD_LIBRARY_PATH |
| 9034 | shlibpath_overrides_runpath=yes |
| 9035 | ;; |
| 9036 | |
| 9037 | openbsd*) |
| 9038 | version_type=sunos |
| 9039 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 9040 | need_lib_prefix=no |
| 9041 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9042 | case $host_os in |
| 9043 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9044 | *) need_version=no ;; |
| 9045 | esac |
| 9046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9047 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9048 | shlibpath_var=LD_LIBRARY_PATH |
| 9049 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9050 | case $host_os in |
| 9051 | openbsd2.[89] | openbsd2.[89].*) |
| 9052 | shlibpath_overrides_runpath=no |
| 9053 | ;; |
| 9054 | *) |
| 9055 | shlibpath_overrides_runpath=yes |
| 9056 | ;; |
| 9057 | esac |
| 9058 | else |
| 9059 | shlibpath_overrides_runpath=yes |
| 9060 | fi |
| 9061 | ;; |
| 9062 | |
| 9063 | os2*) |
| 9064 | libname_spec='$name' |
| 9065 | shrext_cmds=".dll" |
| 9066 | need_lib_prefix=no |
| 9067 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9068 | dynamic_linker='OS/2 ld.exe' |
| 9069 | shlibpath_var=LIBPATH |
| 9070 | ;; |
| 9071 | |
| 9072 | osf3* | osf4* | osf5*) |
| 9073 | version_type=osf |
| 9074 | need_lib_prefix=no |
| 9075 | need_version=no |
| 9076 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9078 | shlibpath_var=LD_LIBRARY_PATH |
| 9079 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9080 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9081 | ;; |
| 9082 | |
| 9083 | solaris*) |
| 9084 | version_type=linux |
| 9085 | need_lib_prefix=no |
| 9086 | need_version=no |
| 9087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9088 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9089 | shlibpath_var=LD_LIBRARY_PATH |
| 9090 | shlibpath_overrides_runpath=yes |
| 9091 | hardcode_into_libs=yes |
| 9092 | # ldd complains unless libraries are executable |
| 9093 | postinstall_cmds='chmod +x $lib' |
| 9094 | ;; |
| 9095 | |
| 9096 | sunos4*) |
| 9097 | version_type=sunos |
| 9098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9099 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9100 | shlibpath_var=LD_LIBRARY_PATH |
| 9101 | shlibpath_overrides_runpath=yes |
| 9102 | if test "$with_gnu_ld" = yes; then |
| 9103 | need_lib_prefix=no |
| 9104 | fi |
| 9105 | need_version=yes |
| 9106 | ;; |
| 9107 | |
| 9108 | sysv4 | sysv4.3*) |
| 9109 | version_type=linux |
| 9110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9112 | shlibpath_var=LD_LIBRARY_PATH |
| 9113 | case $host_vendor in |
| 9114 | sni) |
| 9115 | shlibpath_overrides_runpath=no |
| 9116 | need_lib_prefix=no |
| 9117 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9118 | runpath_var=LD_RUN_PATH |
| 9119 | ;; |
| 9120 | siemens) |
| 9121 | need_lib_prefix=no |
| 9122 | ;; |
| 9123 | motorola) |
| 9124 | need_lib_prefix=no |
| 9125 | need_version=no |
| 9126 | shlibpath_overrides_runpath=no |
| 9127 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9128 | ;; |
| 9129 | esac |
| 9130 | ;; |
| 9131 | |
| 9132 | sysv4*MP*) |
| 9133 | if test -d /usr/nec ;then |
| 9134 | version_type=linux |
| 9135 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9136 | soname_spec='$libname${shared_ext}.$major' |
| 9137 | shlibpath_var=LD_LIBRARY_PATH |
| 9138 | fi |
| 9139 | ;; |
| 9140 | |
| 9141 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9142 | version_type=freebsd-elf |
| 9143 | need_lib_prefix=no |
| 9144 | need_version=no |
| 9145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9146 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9147 | shlibpath_var=LD_LIBRARY_PATH |
| 9148 | hardcode_into_libs=yes |
| 9149 | if test "$with_gnu_ld" = yes; then |
| 9150 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9151 | shlibpath_overrides_runpath=no |
| 9152 | else |
| 9153 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9154 | shlibpath_overrides_runpath=yes |
| 9155 | case $host_os in |
| 9156 | sco3.2v5*) |
| 9157 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9158 | ;; |
| 9159 | esac |
| 9160 | fi |
| 9161 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9162 | ;; |
| 9163 | |
| 9164 | uts4*) |
| 9165 | version_type=linux |
| 9166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9167 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9168 | shlibpath_var=LD_LIBRARY_PATH |
| 9169 | ;; |
| 9170 | |
| 9171 | *) |
| 9172 | dynamic_linker=no |
| 9173 | ;; |
| 9174 | esac |
| 9175 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9176 | echo "${ECHO_T}$dynamic_linker" >&6; } |
| 9177 | test "$dynamic_linker" = no && can_build_shared=no |
| 9178 | |
| 9179 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9180 | if test "$GCC" = yes; then |
| 9181 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9182 | fi |
| 9183 | |
| 9184 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9185 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
| 9186 | hardcode_action= |
| 9187 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 9188 | test -n "$runpath_var" || \ |
| 9189 | test "X$hardcode_automatic" = "Xyes" ; then |
| 9190 | |
| 9191 | # We can hardcode non-existant directories. |
| 9192 | if test "$hardcode_direct" != no && |
| 9193 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9194 | # have to relink, otherwise we might link with an installed library |
| 9195 | # when we should be linking with a yet-to-be-installed one |
| 9196 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9197 | test "$hardcode_minus_L" != no; then |
| 9198 | # Linking always hardcodes the temporary library directory. |
| 9199 | hardcode_action=relink |
| 9200 | else |
| 9201 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9202 | hardcode_action=immediate |
| 9203 | fi |
| 9204 | else |
| 9205 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9206 | # directories. |
| 9207 | hardcode_action=unsupported |
| 9208 | fi |
| 9209 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9210 | echo "${ECHO_T}$hardcode_action" >&6; } |
| 9211 | |
| 9212 | if test "$hardcode_action" = relink; then |
| 9213 | # Fast installation is not supported |
| 9214 | enable_fast_install=no |
| 9215 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9216 | test "$enable_shared" = no; then |
| 9217 | # Fast installation is not necessary |
| 9218 | enable_fast_install=needless |
| 9219 | fi |
| 9220 | |
| 9221 | striplib= |
| 9222 | old_striplib= |
| 9223 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9224 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
| 9225 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9226 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9227 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 9228 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9229 | echo "${ECHO_T}yes" >&6; } |
| 9230 | else |
| 9231 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9232 | case $host_os in |
| 9233 | darwin*) |
| 9234 | if test -n "$STRIP" ; then |
| 9235 | striplib="$STRIP -x" |
| 9236 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9237 | echo "${ECHO_T}yes" >&6; } |
| 9238 | else |
| 9239 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9240 | echo "${ECHO_T}no" >&6; } |
| 9241 | fi |
| 9242 | ;; |
| 9243 | *) |
| 9244 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9245 | echo "${ECHO_T}no" >&6; } |
| 9246 | ;; |
| 9247 | esac |
| 9248 | fi |
| 9249 | |
| 9250 | if test "x$enable_dlopen" != xyes; then |
| 9251 | enable_dlopen=unknown |
| 9252 | enable_dlopen_self=unknown |
| 9253 | enable_dlopen_self_static=unknown |
| 9254 | else |
| 9255 | lt_cv_dlopen=no |
| 9256 | lt_cv_dlopen_libs= |
| 9257 | |
| 9258 | case $host_os in |
| 9259 | beos*) |
| 9260 | lt_cv_dlopen="load_add_on" |
| 9261 | lt_cv_dlopen_libs= |
| 9262 | lt_cv_dlopen_self=yes |
| 9263 | ;; |
| 9264 | |
| 9265 | mingw* | pw32*) |
| 9266 | lt_cv_dlopen="LoadLibrary" |
| 9267 | lt_cv_dlopen_libs= |
| 9268 | ;; |
| 9269 | |
| 9270 | cygwin*) |
| 9271 | lt_cv_dlopen="dlopen" |
| 9272 | lt_cv_dlopen_libs= |
| 9273 | ;; |
| 9274 | |
| 9275 | darwin*) |
| 9276 | # if libdl is installed we need to link against it |
| 9277 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9278 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9279 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9281 | else |
| 9282 | ac_check_lib_save_LIBS=$LIBS |
| 9283 | LIBS="-ldl $LIBS" |
| 9284 | cat >conftest.$ac_ext <<_ACEOF |
| 9285 | /* confdefs.h. */ |
| 9286 | _ACEOF |
| 9287 | cat confdefs.h >>conftest.$ac_ext |
| 9288 | cat >>conftest.$ac_ext <<_ACEOF |
| 9289 | /* end confdefs.h. */ |
| 9290 | |
| 9291 | /* Override any GCC internal prototype to avoid an error. |
| 9292 | Use char because int might match the return type of a GCC |
| 9293 | builtin and then its argument prototype would still apply. */ |
| 9294 | #ifdef __cplusplus |
| 9295 | extern "C" |
| 9296 | #endif |
| 9297 | char dlopen (); |
| 9298 | int |
| 9299 | main () |
| 9300 | { |
| 9301 | return dlopen (); |
| 9302 | ; |
| 9303 | return 0; |
| 9304 | } |
| 9305 | _ACEOF |
| 9306 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9307 | if { (ac_try="$ac_link" |
| 9308 | case "(($ac_try" in |
| 9309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9310 | *) ac_try_echo=$ac_try;; |
| 9311 | esac |
| 9312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9313 | (eval "$ac_link") 2>conftest.er1 |
| 9314 | ac_status=$? |
| 9315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9316 | rm -f conftest.er1 |
| 9317 | cat conftest.err >&5 |
| 9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9319 | (exit $ac_status); } && |
| 9320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9321 | { (case "(($ac_try" in |
| 9322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9323 | *) ac_try_echo=$ac_try;; |
| 9324 | esac |
| 9325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9326 | (eval "$ac_try") 2>&5 |
| 9327 | ac_status=$? |
| 9328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9329 | (exit $ac_status); }; } && |
| 9330 | { ac_try='test -s conftest$ac_exeext' |
| 9331 | { (case "(($ac_try" in |
| 9332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9333 | *) ac_try_echo=$ac_try;; |
| 9334 | esac |
| 9335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9336 | (eval "$ac_try") 2>&5 |
| 9337 | ac_status=$? |
| 9338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9339 | (exit $ac_status); }; }; then |
| 9340 | ac_cv_lib_dl_dlopen=yes |
| 9341 | else |
| 9342 | echo "$as_me: failed program was:" >&5 |
| 9343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9344 | |
| 9345 | ac_cv_lib_dl_dlopen=no |
| 9346 | fi |
| 9347 | |
| 9348 | rm -f core conftest.err conftest.$ac_objext \ |
| 9349 | conftest$ac_exeext conftest.$ac_ext |
| 9350 | LIBS=$ac_check_lib_save_LIBS |
| 9351 | fi |
| 9352 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9353 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9354 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9355 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9356 | else |
| 9357 | |
| 9358 | lt_cv_dlopen="dyld" |
| 9359 | lt_cv_dlopen_libs= |
| 9360 | lt_cv_dlopen_self=yes |
| 9361 | |
| 9362 | fi |
| 9363 | |
| 9364 | ;; |
| 9365 | |
| 9366 | *) |
| 9367 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9368 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9369 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9371 | else |
| 9372 | cat >conftest.$ac_ext <<_ACEOF |
| 9373 | /* confdefs.h. */ |
| 9374 | _ACEOF |
| 9375 | cat confdefs.h >>conftest.$ac_ext |
| 9376 | cat >>conftest.$ac_ext <<_ACEOF |
| 9377 | /* end confdefs.h. */ |
| 9378 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9380 | #define shl_load innocuous_shl_load |
| 9381 | |
| 9382 | /* System header to define __stub macros and hopefully few prototypes, |
| 9383 | which can conflict with char shl_load (); below. |
| 9384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9385 | <limits.h> exists even on freestanding compilers. */ |
| 9386 | |
| 9387 | #ifdef __STDC__ |
| 9388 | # include <limits.h> |
| 9389 | #else |
| 9390 | # include <assert.h> |
| 9391 | #endif |
| 9392 | |
| 9393 | #undef shl_load |
| 9394 | |
| 9395 | /* Override any GCC internal prototype to avoid an error. |
| 9396 | Use char because int might match the return type of a GCC |
| 9397 | builtin and then its argument prototype would still apply. */ |
| 9398 | #ifdef __cplusplus |
| 9399 | extern "C" |
| 9400 | #endif |
| 9401 | char shl_load (); |
| 9402 | /* The GNU C library defines this for functions which it implements |
| 9403 | to always fail with ENOSYS. Some functions are actually named |
| 9404 | something starting with __ and the normal name is an alias. */ |
| 9405 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9406 | choke me |
| 9407 | #endif |
| 9408 | |
| 9409 | int |
| 9410 | main () |
| 9411 | { |
| 9412 | return shl_load (); |
| 9413 | ; |
| 9414 | return 0; |
| 9415 | } |
| 9416 | _ACEOF |
| 9417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9418 | if { (ac_try="$ac_link" |
| 9419 | case "(($ac_try" in |
| 9420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9421 | *) ac_try_echo=$ac_try;; |
| 9422 | esac |
| 9423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9424 | (eval "$ac_link") 2>conftest.er1 |
| 9425 | ac_status=$? |
| 9426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9427 | rm -f conftest.er1 |
| 9428 | cat conftest.err >&5 |
| 9429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9430 | (exit $ac_status); } && |
| 9431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9432 | { (case "(($ac_try" in |
| 9433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9434 | *) ac_try_echo=$ac_try;; |
| 9435 | esac |
| 9436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9437 | (eval "$ac_try") 2>&5 |
| 9438 | ac_status=$? |
| 9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9440 | (exit $ac_status); }; } && |
| 9441 | { ac_try='test -s conftest$ac_exeext' |
| 9442 | { (case "(($ac_try" in |
| 9443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9444 | *) ac_try_echo=$ac_try;; |
| 9445 | esac |
| 9446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9447 | (eval "$ac_try") 2>&5 |
| 9448 | ac_status=$? |
| 9449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9450 | (exit $ac_status); }; }; then |
| 9451 | ac_cv_func_shl_load=yes |
| 9452 | else |
| 9453 | echo "$as_me: failed program was:" >&5 |
| 9454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9455 | |
| 9456 | ac_cv_func_shl_load=no |
| 9457 | fi |
| 9458 | |
| 9459 | rm -f core conftest.err conftest.$ac_objext \ |
| 9460 | conftest$ac_exeext conftest.$ac_ext |
| 9461 | fi |
| 9462 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9463 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9464 | if test $ac_cv_func_shl_load = yes; then |
| 9465 | lt_cv_dlopen="shl_load" |
| 9466 | else |
| 9467 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9468 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9469 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9471 | else |
| 9472 | ac_check_lib_save_LIBS=$LIBS |
| 9473 | LIBS="-ldld $LIBS" |
| 9474 | cat >conftest.$ac_ext <<_ACEOF |
| 9475 | /* confdefs.h. */ |
| 9476 | _ACEOF |
| 9477 | cat confdefs.h >>conftest.$ac_ext |
| 9478 | cat >>conftest.$ac_ext <<_ACEOF |
| 9479 | /* end confdefs.h. */ |
| 9480 | |
| 9481 | /* Override any GCC internal prototype to avoid an error. |
| 9482 | Use char because int might match the return type of a GCC |
| 9483 | builtin and then its argument prototype would still apply. */ |
| 9484 | #ifdef __cplusplus |
| 9485 | extern "C" |
| 9486 | #endif |
| 9487 | char shl_load (); |
| 9488 | int |
| 9489 | main () |
| 9490 | { |
| 9491 | return shl_load (); |
| 9492 | ; |
| 9493 | return 0; |
| 9494 | } |
| 9495 | _ACEOF |
| 9496 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9497 | if { (ac_try="$ac_link" |
| 9498 | case "(($ac_try" in |
| 9499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9500 | *) ac_try_echo=$ac_try;; |
| 9501 | esac |
| 9502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9503 | (eval "$ac_link") 2>conftest.er1 |
| 9504 | ac_status=$? |
| 9505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9506 | rm -f conftest.er1 |
| 9507 | cat conftest.err >&5 |
| 9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9509 | (exit $ac_status); } && |
| 9510 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9511 | { (case "(($ac_try" in |
| 9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9513 | *) ac_try_echo=$ac_try;; |
| 9514 | esac |
| 9515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9516 | (eval "$ac_try") 2>&5 |
| 9517 | ac_status=$? |
| 9518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9519 | (exit $ac_status); }; } && |
| 9520 | { ac_try='test -s conftest$ac_exeext' |
| 9521 | { (case "(($ac_try" in |
| 9522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9523 | *) ac_try_echo=$ac_try;; |
| 9524 | esac |
| 9525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9526 | (eval "$ac_try") 2>&5 |
| 9527 | ac_status=$? |
| 9528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9529 | (exit $ac_status); }; }; then |
| 9530 | ac_cv_lib_dld_shl_load=yes |
| 9531 | else |
| 9532 | echo "$as_me: failed program was:" >&5 |
| 9533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9534 | |
| 9535 | ac_cv_lib_dld_shl_load=no |
| 9536 | fi |
| 9537 | |
| 9538 | rm -f core conftest.err conftest.$ac_objext \ |
| 9539 | conftest$ac_exeext conftest.$ac_ext |
| 9540 | LIBS=$ac_check_lib_save_LIBS |
| 9541 | fi |
| 9542 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9543 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9544 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9545 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9546 | else |
| 9547 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9548 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
| 9549 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9551 | else |
| 9552 | cat >conftest.$ac_ext <<_ACEOF |
| 9553 | /* confdefs.h. */ |
| 9554 | _ACEOF |
| 9555 | cat confdefs.h >>conftest.$ac_ext |
| 9556 | cat >>conftest.$ac_ext <<_ACEOF |
| 9557 | /* end confdefs.h. */ |
| 9558 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9560 | #define dlopen innocuous_dlopen |
| 9561 | |
| 9562 | /* System header to define __stub macros and hopefully few prototypes, |
| 9563 | which can conflict with char dlopen (); below. |
| 9564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9565 | <limits.h> exists even on freestanding compilers. */ |
| 9566 | |
| 9567 | #ifdef __STDC__ |
| 9568 | # include <limits.h> |
| 9569 | #else |
| 9570 | # include <assert.h> |
| 9571 | #endif |
| 9572 | |
| 9573 | #undef dlopen |
| 9574 | |
| 9575 | /* Override any GCC internal prototype to avoid an error. |
| 9576 | Use char because int might match the return type of a GCC |
| 9577 | builtin and then its argument prototype would still apply. */ |
| 9578 | #ifdef __cplusplus |
| 9579 | extern "C" |
| 9580 | #endif |
| 9581 | char dlopen (); |
| 9582 | /* The GNU C library defines this for functions which it implements |
| 9583 | to always fail with ENOSYS. Some functions are actually named |
| 9584 | something starting with __ and the normal name is an alias. */ |
| 9585 | #if defined __stub_dlopen || defined __stub___dlopen |
| 9586 | choke me |
| 9587 | #endif |
| 9588 | |
| 9589 | int |
| 9590 | main () |
| 9591 | { |
| 9592 | return dlopen (); |
| 9593 | ; |
| 9594 | return 0; |
| 9595 | } |
| 9596 | _ACEOF |
| 9597 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9598 | if { (ac_try="$ac_link" |
| 9599 | case "(($ac_try" in |
| 9600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9601 | *) ac_try_echo=$ac_try;; |
| 9602 | esac |
| 9603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9604 | (eval "$ac_link") 2>conftest.er1 |
| 9605 | ac_status=$? |
| 9606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9607 | rm -f conftest.er1 |
| 9608 | cat conftest.err >&5 |
| 9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9610 | (exit $ac_status); } && |
| 9611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9612 | { (case "(($ac_try" in |
| 9613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9614 | *) ac_try_echo=$ac_try;; |
| 9615 | esac |
| 9616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9617 | (eval "$ac_try") 2>&5 |
| 9618 | ac_status=$? |
| 9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9620 | (exit $ac_status); }; } && |
| 9621 | { ac_try='test -s conftest$ac_exeext' |
| 9622 | { (case "(($ac_try" in |
| 9623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9624 | *) ac_try_echo=$ac_try;; |
| 9625 | esac |
| 9626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9627 | (eval "$ac_try") 2>&5 |
| 9628 | ac_status=$? |
| 9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9630 | (exit $ac_status); }; }; then |
| 9631 | ac_cv_func_dlopen=yes |
| 9632 | else |
| 9633 | echo "$as_me: failed program was:" >&5 |
| 9634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9635 | |
| 9636 | ac_cv_func_dlopen=no |
| 9637 | fi |
| 9638 | |
| 9639 | rm -f core conftest.err conftest.$ac_objext \ |
| 9640 | conftest$ac_exeext conftest.$ac_ext |
| 9641 | fi |
| 9642 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9643 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
| 9644 | if test $ac_cv_func_dlopen = yes; then |
| 9645 | lt_cv_dlopen="dlopen" |
| 9646 | else |
| 9647 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9648 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9649 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9651 | else |
| 9652 | ac_check_lib_save_LIBS=$LIBS |
| 9653 | LIBS="-ldl $LIBS" |
| 9654 | cat >conftest.$ac_ext <<_ACEOF |
| 9655 | /* confdefs.h. */ |
| 9656 | _ACEOF |
| 9657 | cat confdefs.h >>conftest.$ac_ext |
| 9658 | cat >>conftest.$ac_ext <<_ACEOF |
| 9659 | /* end confdefs.h. */ |
| 9660 | |
| 9661 | /* Override any GCC internal prototype to avoid an error. |
| 9662 | Use char because int might match the return type of a GCC |
| 9663 | builtin and then its argument prototype would still apply. */ |
| 9664 | #ifdef __cplusplus |
| 9665 | extern "C" |
| 9666 | #endif |
| 9667 | char dlopen (); |
| 9668 | int |
| 9669 | main () |
| 9670 | { |
| 9671 | return dlopen (); |
| 9672 | ; |
| 9673 | return 0; |
| 9674 | } |
| 9675 | _ACEOF |
| 9676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9677 | if { (ac_try="$ac_link" |
| 9678 | case "(($ac_try" in |
| 9679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9680 | *) ac_try_echo=$ac_try;; |
| 9681 | esac |
| 9682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9683 | (eval "$ac_link") 2>conftest.er1 |
| 9684 | ac_status=$? |
| 9685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9686 | rm -f conftest.er1 |
| 9687 | cat conftest.err >&5 |
| 9688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9689 | (exit $ac_status); } && |
| 9690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9691 | { (case "(($ac_try" in |
| 9692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9693 | *) ac_try_echo=$ac_try;; |
| 9694 | esac |
| 9695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9696 | (eval "$ac_try") 2>&5 |
| 9697 | ac_status=$? |
| 9698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9699 | (exit $ac_status); }; } && |
| 9700 | { ac_try='test -s conftest$ac_exeext' |
| 9701 | { (case "(($ac_try" in |
| 9702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9703 | *) ac_try_echo=$ac_try;; |
| 9704 | esac |
| 9705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9706 | (eval "$ac_try") 2>&5 |
| 9707 | ac_status=$? |
| 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9709 | (exit $ac_status); }; }; then |
| 9710 | ac_cv_lib_dl_dlopen=yes |
| 9711 | else |
| 9712 | echo "$as_me: failed program was:" >&5 |
| 9713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9714 | |
| 9715 | ac_cv_lib_dl_dlopen=no |
| 9716 | fi |
| 9717 | |
| 9718 | rm -f core conftest.err conftest.$ac_objext \ |
| 9719 | conftest$ac_exeext conftest.$ac_ext |
| 9720 | LIBS=$ac_check_lib_save_LIBS |
| 9721 | fi |
| 9722 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9723 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9724 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9725 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9726 | else |
| 9727 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9728 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9729 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9731 | else |
| 9732 | ac_check_lib_save_LIBS=$LIBS |
| 9733 | LIBS="-lsvld $LIBS" |
| 9734 | cat >conftest.$ac_ext <<_ACEOF |
| 9735 | /* confdefs.h. */ |
| 9736 | _ACEOF |
| 9737 | cat confdefs.h >>conftest.$ac_ext |
| 9738 | cat >>conftest.$ac_ext <<_ACEOF |
| 9739 | /* end confdefs.h. */ |
| 9740 | |
| 9741 | /* Override any GCC internal prototype to avoid an error. |
| 9742 | Use char because int might match the return type of a GCC |
| 9743 | builtin and then its argument prototype would still apply. */ |
| 9744 | #ifdef __cplusplus |
| 9745 | extern "C" |
| 9746 | #endif |
| 9747 | char dlopen (); |
| 9748 | int |
| 9749 | main () |
| 9750 | { |
| 9751 | return dlopen (); |
| 9752 | ; |
| 9753 | return 0; |
| 9754 | } |
| 9755 | _ACEOF |
| 9756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9757 | if { (ac_try="$ac_link" |
| 9758 | case "(($ac_try" in |
| 9759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9760 | *) ac_try_echo=$ac_try;; |
| 9761 | esac |
| 9762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9763 | (eval "$ac_link") 2>conftest.er1 |
| 9764 | ac_status=$? |
| 9765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9766 | rm -f conftest.er1 |
| 9767 | cat conftest.err >&5 |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); } && |
| 9770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9771 | { (case "(($ac_try" in |
| 9772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9773 | *) ac_try_echo=$ac_try;; |
| 9774 | esac |
| 9775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9776 | (eval "$ac_try") 2>&5 |
| 9777 | ac_status=$? |
| 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); }; } && |
| 9780 | { ac_try='test -s conftest$ac_exeext' |
| 9781 | { (case "(($ac_try" in |
| 9782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9783 | *) ac_try_echo=$ac_try;; |
| 9784 | esac |
| 9785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9786 | (eval "$ac_try") 2>&5 |
| 9787 | ac_status=$? |
| 9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9789 | (exit $ac_status); }; }; then |
| 9790 | ac_cv_lib_svld_dlopen=yes |
| 9791 | else |
| 9792 | echo "$as_me: failed program was:" >&5 |
| 9793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9794 | |
| 9795 | ac_cv_lib_svld_dlopen=no |
| 9796 | fi |
| 9797 | |
| 9798 | rm -f core conftest.err conftest.$ac_objext \ |
| 9799 | conftest$ac_exeext conftest.$ac_ext |
| 9800 | LIBS=$ac_check_lib_save_LIBS |
| 9801 | fi |
| 9802 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9803 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 9804 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9805 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 9806 | else |
| 9807 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9808 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 9809 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9811 | else |
| 9812 | ac_check_lib_save_LIBS=$LIBS |
| 9813 | LIBS="-ldld $LIBS" |
| 9814 | cat >conftest.$ac_ext <<_ACEOF |
| 9815 | /* confdefs.h. */ |
| 9816 | _ACEOF |
| 9817 | cat confdefs.h >>conftest.$ac_ext |
| 9818 | cat >>conftest.$ac_ext <<_ACEOF |
| 9819 | /* end confdefs.h. */ |
| 9820 | |
| 9821 | /* Override any GCC internal prototype to avoid an error. |
| 9822 | Use char because int might match the return type of a GCC |
| 9823 | builtin and then its argument prototype would still apply. */ |
| 9824 | #ifdef __cplusplus |
| 9825 | extern "C" |
| 9826 | #endif |
| 9827 | char dld_link (); |
| 9828 | int |
| 9829 | main () |
| 9830 | { |
| 9831 | return dld_link (); |
| 9832 | ; |
| 9833 | return 0; |
| 9834 | } |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9837 | if { (ac_try="$ac_link" |
| 9838 | case "(($ac_try" in |
| 9839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9840 | *) ac_try_echo=$ac_try;; |
| 9841 | esac |
| 9842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9843 | (eval "$ac_link") 2>conftest.er1 |
| 9844 | ac_status=$? |
| 9845 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9846 | rm -f conftest.er1 |
| 9847 | cat conftest.err >&5 |
| 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9849 | (exit $ac_status); } && |
| 9850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9851 | { (case "(($ac_try" in |
| 9852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9853 | *) ac_try_echo=$ac_try;; |
| 9854 | esac |
| 9855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9856 | (eval "$ac_try") 2>&5 |
| 9857 | ac_status=$? |
| 9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9859 | (exit $ac_status); }; } && |
| 9860 | { ac_try='test -s conftest$ac_exeext' |
| 9861 | { (case "(($ac_try" in |
| 9862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9863 | *) ac_try_echo=$ac_try;; |
| 9864 | esac |
| 9865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9866 | (eval "$ac_try") 2>&5 |
| 9867 | ac_status=$? |
| 9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9869 | (exit $ac_status); }; }; then |
| 9870 | ac_cv_lib_dld_dld_link=yes |
| 9871 | else |
| 9872 | echo "$as_me: failed program was:" >&5 |
| 9873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9874 | |
| 9875 | ac_cv_lib_dld_dld_link=no |
| 9876 | fi |
| 9877 | |
| 9878 | rm -f core conftest.err conftest.$ac_objext \ |
| 9879 | conftest$ac_exeext conftest.$ac_ext |
| 9880 | LIBS=$ac_check_lib_save_LIBS |
| 9881 | fi |
| 9882 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9883 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 9884 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9885 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 9886 | fi |
| 9887 | |
| 9888 | |
| 9889 | fi |
| 9890 | |
| 9891 | |
| 9892 | fi |
| 9893 | |
| 9894 | |
| 9895 | fi |
| 9896 | |
| 9897 | |
| 9898 | fi |
| 9899 | |
| 9900 | |
| 9901 | fi |
| 9902 | |
| 9903 | ;; |
| 9904 | esac |
| 9905 | |
| 9906 | if test "x$lt_cv_dlopen" != xno; then |
| 9907 | enable_dlopen=yes |
| 9908 | else |
| 9909 | enable_dlopen=no |
| 9910 | fi |
| 9911 | |
| 9912 | case $lt_cv_dlopen in |
| 9913 | dlopen) |
| 9914 | save_CPPFLAGS="$CPPFLAGS" |
| 9915 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 9916 | |
| 9917 | save_LDFLAGS="$LDFLAGS" |
| 9918 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 9919 | |
| 9920 | save_LIBS="$LIBS" |
| 9921 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9922 | |
| 9923 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9924 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
| 9925 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 9926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9927 | else |
| 9928 | if test "$cross_compiling" = yes; then : |
| 9929 | lt_cv_dlopen_self=cross |
| 9930 | else |
| 9931 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9932 | lt_status=$lt_dlunknown |
| 9933 | cat > conftest.$ac_ext <<EOF |
| 9934 | #line 9934 "configure" |
| 9935 | #include "confdefs.h" |
| 9936 | |
| 9937 | #if HAVE_DLFCN_H |
| 9938 | #include <dlfcn.h> |
| 9939 | #endif |
| 9940 | |
| 9941 | #include <stdio.h> |
| 9942 | |
| 9943 | #ifdef RTLD_GLOBAL |
| 9944 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9945 | #else |
| 9946 | # ifdef DL_GLOBAL |
| 9947 | # define LT_DLGLOBAL DL_GLOBAL |
| 9948 | # else |
| 9949 | # define LT_DLGLOBAL 0 |
| 9950 | # endif |
| 9951 | #endif |
| 9952 | |
| 9953 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9954 | find out it does not work in some platform. */ |
| 9955 | #ifndef LT_DLLAZY_OR_NOW |
| 9956 | # ifdef RTLD_LAZY |
| 9957 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9958 | # else |
| 9959 | # ifdef DL_LAZY |
| 9960 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9961 | # else |
| 9962 | # ifdef RTLD_NOW |
| 9963 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9964 | # else |
| 9965 | # ifdef DL_NOW |
| 9966 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9967 | # else |
| 9968 | # define LT_DLLAZY_OR_NOW 0 |
| 9969 | # endif |
| 9970 | # endif |
| 9971 | # endif |
| 9972 | # endif |
| 9973 | #endif |
| 9974 | |
| 9975 | #ifdef __cplusplus |
| 9976 | extern "C" void exit (int); |
| 9977 | #endif |
| 9978 | |
| 9979 | void fnord() { int i=42;} |
| 9980 | int main () |
| 9981 | { |
| 9982 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9983 | int status = $lt_dlunknown; |
| 9984 | |
| 9985 | if (self) |
| 9986 | { |
| 9987 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9988 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9989 | /* dlclose (self); */ |
| 9990 | } |
| 9991 | else |
| 9992 | puts (dlerror ()); |
| 9993 | |
| 9994 | exit (status); |
| 9995 | } |
| 9996 | EOF |
| 9997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9998 | (eval $ac_link) 2>&5 |
| 9999 | ac_status=$? |
| 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10001 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10002 | (./conftest; exit; ) >&5 2>/dev/null |
| 10003 | lt_status=$? |
| 10004 | case x$lt_status in |
| 10005 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10006 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 10007 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 10008 | esac |
| 10009 | else : |
| 10010 | # compilation failed |
| 10011 | lt_cv_dlopen_self=no |
| 10012 | fi |
| 10013 | fi |
| 10014 | rm -fr conftest* |
| 10015 | |
| 10016 | |
| 10017 | fi |
| 10018 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10019 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
| 10020 | |
| 10021 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 10022 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10023 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10024 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
| 10025 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10027 | else |
| 10028 | if test "$cross_compiling" = yes; then : |
| 10029 | lt_cv_dlopen_self_static=cross |
| 10030 | else |
| 10031 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10032 | lt_status=$lt_dlunknown |
| 10033 | cat > conftest.$ac_ext <<EOF |
| 10034 | #line 10034 "configure" |
| 10035 | #include "confdefs.h" |
| 10036 | |
| 10037 | #if HAVE_DLFCN_H |
| 10038 | #include <dlfcn.h> |
| 10039 | #endif |
| 10040 | |
| 10041 | #include <stdio.h> |
| 10042 | |
| 10043 | #ifdef RTLD_GLOBAL |
| 10044 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10045 | #else |
| 10046 | # ifdef DL_GLOBAL |
| 10047 | # define LT_DLGLOBAL DL_GLOBAL |
| 10048 | # else |
| 10049 | # define LT_DLGLOBAL 0 |
| 10050 | # endif |
| 10051 | #endif |
| 10052 | |
| 10053 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10054 | find out it does not work in some platform. */ |
| 10055 | #ifndef LT_DLLAZY_OR_NOW |
| 10056 | # ifdef RTLD_LAZY |
| 10057 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10058 | # else |
| 10059 | # ifdef DL_LAZY |
| 10060 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10061 | # else |
| 10062 | # ifdef RTLD_NOW |
| 10063 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10064 | # else |
| 10065 | # ifdef DL_NOW |
| 10066 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10067 | # else |
| 10068 | # define LT_DLLAZY_OR_NOW 0 |
| 10069 | # endif |
| 10070 | # endif |
| 10071 | # endif |
| 10072 | # endif |
| 10073 | #endif |
| 10074 | |
| 10075 | #ifdef __cplusplus |
| 10076 | extern "C" void exit (int); |
| 10077 | #endif |
| 10078 | |
| 10079 | void fnord() { int i=42;} |
| 10080 | int main () |
| 10081 | { |
| 10082 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10083 | int status = $lt_dlunknown; |
| 10084 | |
| 10085 | if (self) |
| 10086 | { |
| 10087 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10088 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10089 | /* dlclose (self); */ |
| 10090 | } |
| 10091 | else |
| 10092 | puts (dlerror ()); |
| 10093 | |
| 10094 | exit (status); |
| 10095 | } |
| 10096 | EOF |
| 10097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10098 | (eval $ac_link) 2>&5 |
| 10099 | ac_status=$? |
| 10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10101 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10102 | (./conftest; exit; ) >&5 2>/dev/null |
| 10103 | lt_status=$? |
| 10104 | case x$lt_status in |
| 10105 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10106 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10107 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 10108 | esac |
| 10109 | else : |
| 10110 | # compilation failed |
| 10111 | lt_cv_dlopen_self_static=no |
| 10112 | fi |
| 10113 | fi |
| 10114 | rm -fr conftest* |
| 10115 | |
| 10116 | |
| 10117 | fi |
| 10118 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10119 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
| 10120 | fi |
| 10121 | |
| 10122 | CPPFLAGS="$save_CPPFLAGS" |
| 10123 | LDFLAGS="$save_LDFLAGS" |
| 10124 | LIBS="$save_LIBS" |
| 10125 | ;; |
| 10126 | esac |
| 10127 | |
| 10128 | case $lt_cv_dlopen_self in |
| 10129 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10130 | *) enable_dlopen_self=unknown ;; |
| 10131 | esac |
| 10132 | |
| 10133 | case $lt_cv_dlopen_self_static in |
| 10134 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10135 | *) enable_dlopen_self_static=unknown ;; |
| 10136 | esac |
| 10137 | fi |
| 10138 | |
| 10139 | |
| 10140 | # Report which library types will actually be built |
| 10141 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10142 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10143 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10144 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 10145 | |
| 10146 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10147 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
| 10148 | test "$can_build_shared" = "no" && enable_shared=no |
| 10149 | |
| 10150 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10151 | # are all built from PIC. |
| 10152 | case $host_os in |
| 10153 | aix3*) |
| 10154 | test "$enable_shared" = yes && enable_static=no |
| 10155 | if test -n "$RANLIB"; then |
| 10156 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10157 | postinstall_cmds='$RANLIB $lib' |
| 10158 | fi |
| 10159 | ;; |
| 10160 | |
| 10161 | aix4* | aix5*) |
| 10162 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10163 | test "$enable_shared" = yes && enable_static=no |
| 10164 | fi |
| 10165 | ;; |
| 10166 | esac |
| 10167 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10168 | echo "${ECHO_T}$enable_shared" >&6; } |
| 10169 | |
| 10170 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10171 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
| 10172 | # Make sure either enable_shared or enable_static is yes. |
| 10173 | test "$enable_shared" = yes || enable_static=yes |
| 10174 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10175 | echo "${ECHO_T}$enable_static" >&6; } |
| 10176 | |
| 10177 | # The else clause should only fire when bootstrapping the |
| 10178 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10179 | # with your package, and you will get complaints that there are |
| 10180 | # no rules to generate ltmain.sh. |
| 10181 | if test -f "$ltmain"; then |
| 10182 | # See if we are running on zsh, and set the options which allow our commands through |
| 10183 | # without removal of \ escapes. |
| 10184 | if test -n "${ZSH_VERSION+set}" ; then |
| 10185 | setopt NO_GLOB_SUBST |
| 10186 | fi |
| 10187 | # Now quote all the things that may contain metacharacters while being |
| 10188 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10189 | # variables and quote the copies for generation of the libtool script. |
| 10190 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 10191 | SED SHELL STRIP \ |
| 10192 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10193 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10194 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10195 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10196 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10197 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10198 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10199 | compiler \ |
| 10200 | CC \ |
| 10201 | LD \ |
| 10202 | lt_prog_compiler_wl \ |
| 10203 | lt_prog_compiler_pic \ |
| 10204 | lt_prog_compiler_static \ |
| 10205 | lt_prog_compiler_no_builtin_flag \ |
| 10206 | export_dynamic_flag_spec \ |
| 10207 | thread_safe_flag_spec \ |
| 10208 | whole_archive_flag_spec \ |
| 10209 | enable_shared_with_static_runtimes \ |
| 10210 | old_archive_cmds \ |
| 10211 | old_archive_from_new_cmds \ |
| 10212 | predep_objects \ |
| 10213 | postdep_objects \ |
| 10214 | predeps \ |
| 10215 | postdeps \ |
| 10216 | compiler_lib_search_path \ |
| 10217 | archive_cmds \ |
| 10218 | archive_expsym_cmds \ |
| 10219 | postinstall_cmds \ |
| 10220 | postuninstall_cmds \ |
| 10221 | old_archive_from_expsyms_cmds \ |
| 10222 | allow_undefined_flag \ |
| 10223 | no_undefined_flag \ |
| 10224 | export_symbols_cmds \ |
| 10225 | hardcode_libdir_flag_spec \ |
| 10226 | hardcode_libdir_flag_spec_ld \ |
| 10227 | hardcode_libdir_separator \ |
| 10228 | hardcode_automatic \ |
| 10229 | module_cmds \ |
| 10230 | module_expsym_cmds \ |
| 10231 | lt_cv_prog_compiler_c_o \ |
| 10232 | exclude_expsyms \ |
| 10233 | include_expsyms; do |
| 10234 | |
| 10235 | case $var in |
| 10236 | old_archive_cmds | \ |
| 10237 | old_archive_from_new_cmds | \ |
| 10238 | archive_cmds | \ |
| 10239 | archive_expsym_cmds | \ |
| 10240 | module_cmds | \ |
| 10241 | module_expsym_cmds | \ |
| 10242 | old_archive_from_expsyms_cmds | \ |
| 10243 | export_symbols_cmds | \ |
| 10244 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10245 | postinstall_cmds | postuninstall_cmds | \ |
| 10246 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10247 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10248 | # Double-quote double-evaled strings. |
| 10249 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10250 | ;; |
| 10251 | *) |
| 10252 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10253 | ;; |
| 10254 | esac |
| 10255 | done |
| 10256 | |
| 10257 | case $lt_echo in |
| 10258 | *'\$0 --fallback-echo"') |
| 10259 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10260 | ;; |
| 10261 | esac |
| 10262 | |
| 10263 | cfgfile="${ofile}T" |
| 10264 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10265 | $rm -f "$cfgfile" |
| 10266 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10267 | echo "$as_me: creating $ofile" >&6;} |
| 10268 | |
| 10269 | cat <<__EOF__ >> "$cfgfile" |
| 10270 | #! $SHELL |
| 10271 | |
| 10272 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10273 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10274 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10275 | # |
| 10276 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10277 | # Free Software Foundation, Inc. |
| 10278 | # |
| 10279 | # This file is part of GNU Libtool: |
| 10280 | # Originally by Gordon Matzigkeit <[email protected]>, 1996 |
| 10281 | # |
| 10282 | # This program is free software; you can redistribute it and/or modify |
| 10283 | # it under the terms of the GNU General Public License as published by |
| 10284 | # the Free Software Foundation; either version 2 of the License, or |
| 10285 | # (at your option) any later version. |
| 10286 | # |
| 10287 | # This program is distributed in the hope that it will be useful, but |
| 10288 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10289 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10290 | # General Public License for more details. |
| 10291 | # |
| 10292 | # You should have received a copy of the GNU General Public License |
| 10293 | # along with this program; if not, write to the Free Software |
| 10294 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 10295 | # |
| 10296 | # As a special exception to the GNU General Public License, if you |
| 10297 | # distribute this file as part of a program that contains a |
| 10298 | # configuration script generated by Autoconf, you may include it under |
| 10299 | # the same distribution terms that you use for the rest of that program. |
| 10300 | |
| 10301 | # A sed program that does not truncate output. |
| 10302 | SED=$lt_SED |
| 10303 | |
| 10304 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 10305 | Xsed="$SED -e 1s/^X//" |
| 10306 | |
| 10307 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10308 | # if CDPATH is set. |
| 10309 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 10310 | |
| 10311 | # The names of the tagged configurations supported by this script. |
| 10312 | available_tags= |
| 10313 | |
| 10314 | # ### BEGIN LIBTOOL CONFIG |
| 10315 | |
| 10316 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10317 | |
| 10318 | # Shell to use when invoking shell scripts. |
| 10319 | SHELL=$lt_SHELL |
| 10320 | |
| 10321 | # Whether or not to build shared libraries. |
| 10322 | build_libtool_libs=$enable_shared |
| 10323 | |
| 10324 | # Whether or not to build static libraries. |
| 10325 | build_old_libs=$enable_static |
| 10326 | |
| 10327 | # Whether or not to add -lc for building shared libraries. |
| 10328 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10329 | |
| 10330 | # Whether or not to disallow shared libs when runtime libs are static |
| 10331 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10332 | |
| 10333 | # Whether or not to optimize for fast installation. |
| 10334 | fast_install=$enable_fast_install |
| 10335 | |
| 10336 | # The host system. |
| 10337 | host_alias=$host_alias |
| 10338 | host=$host |
| 10339 | host_os=$host_os |
| 10340 | |
| 10341 | # The build system. |
| 10342 | build_alias=$build_alias |
| 10343 | build=$build |
| 10344 | build_os=$build_os |
| 10345 | |
| 10346 | # An echo program that does not interpret backslashes. |
| 10347 | echo=$lt_echo |
| 10348 | |
| 10349 | # The archiver. |
| 10350 | AR=$lt_AR |
| 10351 | AR_FLAGS=$lt_AR_FLAGS |
| 10352 | |
| 10353 | # A C compiler. |
| 10354 | LTCC=$lt_LTCC |
| 10355 | |
| 10356 | # LTCC compiler flags. |
| 10357 | LTCFLAGS=$lt_LTCFLAGS |
| 10358 | |
| 10359 | # A language-specific compiler. |
| 10360 | CC=$lt_compiler |
| 10361 | |
| 10362 | # Is the compiler the GNU C compiler? |
| 10363 | with_gcc=$GCC |
| 10364 | |
| 10365 | # An ERE matcher. |
| 10366 | EGREP=$lt_EGREP |
| 10367 | |
| 10368 | # The linker used to build libraries. |
| 10369 | LD=$lt_LD |
| 10370 | |
| 10371 | # Whether we need hard or soft links. |
| 10372 | LN_S=$lt_LN_S |
| 10373 | |
| 10374 | # A BSD-compatible nm program. |
| 10375 | NM=$lt_NM |
| 10376 | |
| 10377 | # A symbol stripping program |
| 10378 | STRIP=$lt_STRIP |
| 10379 | |
| 10380 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10381 | MAGIC_CMD=$MAGIC_CMD |
| 10382 | |
| 10383 | # Used on cygwin: DLL creation program. |
| 10384 | DLLTOOL="$DLLTOOL" |
| 10385 | |
| 10386 | # Used on cygwin: object dumper. |
| 10387 | OBJDUMP="$OBJDUMP" |
| 10388 | |
| 10389 | # Used on cygwin: assembler. |
| 10390 | AS="$AS" |
| 10391 | |
| 10392 | # The name of the directory that contains temporary libtool files. |
| 10393 | objdir=$objdir |
| 10394 | |
| 10395 | # How to create reloadable object files. |
| 10396 | reload_flag=$lt_reload_flag |
| 10397 | reload_cmds=$lt_reload_cmds |
| 10398 | |
| 10399 | # How to pass a linker flag through the compiler. |
| 10400 | wl=$lt_lt_prog_compiler_wl |
| 10401 | |
| 10402 | # Object file suffix (normally "o"). |
| 10403 | objext="$ac_objext" |
| 10404 | |
| 10405 | # Old archive suffix (normally "a"). |
| 10406 | libext="$libext" |
| 10407 | |
| 10408 | # Shared library suffix (normally ".so"). |
| 10409 | shrext_cmds='$shrext_cmds' |
| 10410 | |
| 10411 | # Executable file suffix (normally ""). |
| 10412 | exeext="$exeext" |
| 10413 | |
| 10414 | # Additional compiler flags for building library objects. |
| 10415 | pic_flag=$lt_lt_prog_compiler_pic |
| 10416 | pic_mode=$pic_mode |
| 10417 | |
| 10418 | # What is the maximum length of a command? |
| 10419 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10420 | |
| 10421 | # Does compiler simultaneously support -c and -o options? |
| 10422 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10423 | |
| 10424 | # Must we lock files when doing compilation? |
| 10425 | need_locks=$lt_need_locks |
| 10426 | |
| 10427 | # Do we need the lib prefix for modules? |
| 10428 | need_lib_prefix=$need_lib_prefix |
| 10429 | |
| 10430 | # Do we need a version for libraries? |
| 10431 | need_version=$need_version |
| 10432 | |
| 10433 | # Whether dlopen is supported. |
| 10434 | dlopen_support=$enable_dlopen |
| 10435 | |
| 10436 | # Whether dlopen of programs is supported. |
| 10437 | dlopen_self=$enable_dlopen_self |
| 10438 | |
| 10439 | # Whether dlopen of statically linked programs is supported. |
| 10440 | dlopen_self_static=$enable_dlopen_self_static |
| 10441 | |
| 10442 | # Compiler flag to prevent dynamic linking. |
| 10443 | link_static_flag=$lt_lt_prog_compiler_static |
| 10444 | |
| 10445 | # Compiler flag to turn off builtin functions. |
| 10446 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10447 | |
| 10448 | # Compiler flag to allow reflexive dlopens. |
| 10449 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10450 | |
| 10451 | # Compiler flag to generate shared objects directly from archives. |
| 10452 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10453 | |
| 10454 | # Compiler flag to generate thread-safe objects. |
| 10455 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10456 | |
| 10457 | # Library versioning type. |
| 10458 | version_type=$version_type |
| 10459 | |
| 10460 | # Format of library name prefix. |
| 10461 | libname_spec=$lt_libname_spec |
| 10462 | |
| 10463 | # List of archive names. First name is the real one, the rest are links. |
| 10464 | # The last name is the one that the linker finds with -lNAME. |
| 10465 | library_names_spec=$lt_library_names_spec |
| 10466 | |
| 10467 | # The coded name of the library, if different from the real name. |
| 10468 | soname_spec=$lt_soname_spec |
| 10469 | |
| 10470 | # Commands used to build and install an old-style archive. |
| 10471 | RANLIB=$lt_RANLIB |
| 10472 | old_archive_cmds=$lt_old_archive_cmds |
| 10473 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10474 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10475 | |
| 10476 | # Create an old-style archive from a shared archive. |
| 10477 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10478 | |
| 10479 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10480 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10481 | |
| 10482 | # Commands used to build and install a shared archive. |
| 10483 | archive_cmds=$lt_archive_cmds |
| 10484 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10485 | postinstall_cmds=$lt_postinstall_cmds |
| 10486 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10487 | |
| 10488 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10489 | module_cmds=$lt_module_cmds |
| 10490 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10491 | |
| 10492 | # Commands to strip libraries. |
| 10493 | old_striplib=$lt_old_striplib |
| 10494 | striplib=$lt_striplib |
| 10495 | |
| 10496 | # Dependencies to place before the objects being linked to create a |
| 10497 | # shared library. |
| 10498 | predep_objects=$lt_predep_objects |
| 10499 | |
| 10500 | # Dependencies to place after the objects being linked to create a |
| 10501 | # shared library. |
| 10502 | postdep_objects=$lt_postdep_objects |
| 10503 | |
| 10504 | # Dependencies to place before the objects being linked to create a |
| 10505 | # shared library. |
| 10506 | predeps=$lt_predeps |
| 10507 | |
| 10508 | # Dependencies to place after the objects being linked to create a |
| 10509 | # shared library. |
| 10510 | postdeps=$lt_postdeps |
| 10511 | |
| 10512 | # The library search path used internally by the compiler when linking |
| 10513 | # a shared library. |
| 10514 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10515 | |
| 10516 | # Method to check whether dependent libraries are shared objects. |
| 10517 | deplibs_check_method=$lt_deplibs_check_method |
| 10518 | |
| 10519 | # Command to use when deplibs_check_method == file_magic. |
| 10520 | file_magic_cmd=$lt_file_magic_cmd |
| 10521 | |
| 10522 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10523 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10524 | |
| 10525 | # Flag that forces no undefined symbols. |
| 10526 | no_undefined_flag=$lt_no_undefined_flag |
| 10527 | |
| 10528 | # Commands used to finish a libtool library installation in a directory. |
| 10529 | finish_cmds=$lt_finish_cmds |
| 10530 | |
| 10531 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10532 | finish_eval=$lt_finish_eval |
| 10533 | |
| 10534 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10535 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10536 | |
| 10537 | # Transform the output of nm in a proper C declaration |
| 10538 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10539 | |
| 10540 | # Transform the output of nm in a C name address pair |
| 10541 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10542 | |
| 10543 | # This is the shared library runtime path variable. |
| 10544 | runpath_var=$runpath_var |
| 10545 | |
| 10546 | # This is the shared library path variable. |
| 10547 | shlibpath_var=$shlibpath_var |
| 10548 | |
| 10549 | # Is shlibpath searched before the hard-coded library search path? |
| 10550 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10551 | |
| 10552 | # How to hardcode a shared library path into an executable. |
| 10553 | hardcode_action=$hardcode_action |
| 10554 | |
| 10555 | # Whether we should hardcode library paths into libraries. |
| 10556 | hardcode_into_libs=$hardcode_into_libs |
| 10557 | |
| 10558 | # Flag to hardcode \$libdir into a binary during linking. |
| 10559 | # This must work even if \$libdir does not exist. |
| 10560 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10561 | |
| 10562 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10563 | # a binary during linking. This must work even if \$libdir does |
| 10564 | # not exist. |
| 10565 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10566 | |
| 10567 | # Whether we need a single -rpath flag with a separated argument. |
| 10568 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10569 | |
| 10570 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10571 | # resulting binary. |
| 10572 | hardcode_direct=$hardcode_direct |
| 10573 | |
| 10574 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10575 | # resulting binary. |
| 10576 | hardcode_minus_L=$hardcode_minus_L |
| 10577 | |
| 10578 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10579 | # the resulting binary. |
| 10580 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10581 | |
| 10582 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10583 | # and all subsequent libraries and executables linked against it. |
| 10584 | hardcode_automatic=$hardcode_automatic |
| 10585 | |
| 10586 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10587 | # restored at relink time. |
| 10588 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10589 | |
| 10590 | # Whether libtool must link a program against all its dependency libraries. |
| 10591 | link_all_deplibs=$link_all_deplibs |
| 10592 | |
| 10593 | # Compile-time system search path for libraries |
| 10594 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10595 | |
| 10596 | # Run-time system search path for libraries |
| 10597 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10598 | |
| 10599 | # Fix the shell variable \$srcfile for the compiler. |
| 10600 | fix_srcfile_path="$fix_srcfile_path" |
| 10601 | |
| 10602 | # Set to yes if exported symbols are required. |
| 10603 | always_export_symbols=$always_export_symbols |
| 10604 | |
| 10605 | # The commands to list exported symbols. |
| 10606 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10607 | |
| 10608 | # The commands to extract the exported symbol list from a shared archive. |
| 10609 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10610 | |
| 10611 | # Symbols that should not be listed in the preloaded symbols. |
| 10612 | exclude_expsyms=$lt_exclude_expsyms |
| 10613 | |
| 10614 | # Symbols that must always be exported. |
| 10615 | include_expsyms=$lt_include_expsyms |
| 10616 | |
| 10617 | # ### END LIBTOOL CONFIG |
| 10618 | |
| 10619 | __EOF__ |
| 10620 | |
| 10621 | |
| 10622 | case $host_os in |
| 10623 | aix3*) |
| 10624 | cat <<\EOF >> "$cfgfile" |
| 10625 | |
| 10626 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10627 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10628 | # vanish in a puff of smoke. |
| 10629 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10630 | COLLECT_NAMES= |
| 10631 | export COLLECT_NAMES |
| 10632 | fi |
| 10633 | EOF |
| 10634 | ;; |
| 10635 | esac |
| 10636 | |
| 10637 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10638 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10639 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10640 | # is reportedly fixed, but why not run on old versions too? |
| 10641 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10642 | |
| 10643 | mv -f "$cfgfile" "$ofile" || \ |
| 10644 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10645 | chmod +x "$ofile" |
| 10646 | |
| 10647 | else |
| 10648 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10649 | # `config.status --recheck' to rerun these tests and create the |
| 10650 | # libtool script then. |
| 10651 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10652 | if test -f "$ltmain_in"; then |
| 10653 | test -f Makefile && make "$ltmain" |
| 10654 | fi |
| 10655 | fi |
| 10656 | |
| 10657 | |
| 10658 | ac_ext=c |
| 10659 | ac_cpp='$CPP $CPPFLAGS' |
| 10660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10663 | |
| 10664 | CC="$lt_save_CC" |
| 10665 | |
| 10666 | |
| 10667 | # Check whether --with-tags was given. |
| 10668 | if test "${with_tags+set}" = set; then |
| 10669 | withval=$with_tags; tagnames="$withval" |
| 10670 | fi |
| 10671 | |
| 10672 | |
| 10673 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10674 | if test ! -f "${ofile}"; then |
| 10675 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10676 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10677 | fi |
| 10678 | |
| 10679 | if test -z "$LTCC"; then |
| 10680 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10681 | if test -z "$LTCC"; then |
| 10682 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10683 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10684 | else |
| 10685 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10686 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10687 | fi |
| 10688 | fi |
| 10689 | if test -z "$LTCFLAGS"; then |
| 10690 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 10691 | fi |
| 10692 | |
| 10693 | # Extract list of available tagged configurations in $ofile. |
| 10694 | # Note that this assumes the entire list is on one line. |
| 10695 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10696 | |
| 10697 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10698 | for tagname in $tagnames; do |
| 10699 | IFS="$lt_save_ifs" |
| 10700 | # Check whether tagname contains only valid characters |
| 10701 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10702 | "") ;; |
| 10703 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10704 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10705 | { (exit 1); exit 1; }; } |
| 10706 | ;; |
| 10707 | esac |
| 10708 | |
| 10709 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10710 | then |
| 10711 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10712 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10713 | { (exit 1); exit 1; }; } |
| 10714 | fi |
| 10715 | |
| 10716 | # Update the list of available tags. |
| 10717 | if test -n "$tagname"; then |
| 10718 | echo appending configuration tag \"$tagname\" to $ofile |
| 10719 | |
| 10720 | case $tagname in |
| 10721 | CXX) |
| 10722 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10723 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10724 | (test "X$CXX" != "Xg++"))) ; then |
| 10725 | ac_ext=cpp |
| 10726 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10730 | |
| 10731 | |
| 10732 | |
| 10733 | |
| 10734 | archive_cmds_need_lc_CXX=no |
| 10735 | allow_undefined_flag_CXX= |
| 10736 | always_export_symbols_CXX=no |
| 10737 | archive_expsym_cmds_CXX= |
| 10738 | export_dynamic_flag_spec_CXX= |
| 10739 | hardcode_direct_CXX=no |
| 10740 | hardcode_libdir_flag_spec_CXX= |
| 10741 | hardcode_libdir_flag_spec_ld_CXX= |
| 10742 | hardcode_libdir_separator_CXX= |
| 10743 | hardcode_minus_L_CXX=no |
| 10744 | hardcode_shlibpath_var_CXX=unsupported |
| 10745 | hardcode_automatic_CXX=no |
| 10746 | module_cmds_CXX= |
| 10747 | module_expsym_cmds_CXX= |
| 10748 | link_all_deplibs_CXX=unknown |
| 10749 | old_archive_cmds_CXX=$old_archive_cmds |
| 10750 | no_undefined_flag_CXX= |
| 10751 | whole_archive_flag_spec_CXX= |
| 10752 | enable_shared_with_static_runtimes_CXX=no |
| 10753 | |
| 10754 | # Dependencies to place before and after the object being linked: |
| 10755 | predep_objects_CXX= |
| 10756 | postdep_objects_CXX= |
| 10757 | predeps_CXX= |
| 10758 | postdeps_CXX= |
| 10759 | compiler_lib_search_path_CXX= |
| 10760 | |
| 10761 | # Source file extension for C++ test sources. |
| 10762 | ac_ext=cpp |
| 10763 | |
| 10764 | # Object file extension for compiled C++ test sources. |
| 10765 | objext=o |
| 10766 | objext_CXX=$objext |
| 10767 | |
| 10768 | # Code to be used in simple compile tests |
| 10769 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 10770 | |
| 10771 | # Code to be used in simple link tests |
| 10772 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| 10773 | |
| 10774 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 10775 | |
| 10776 | # If no C compiler was specified, use CC. |
| 10777 | LTCC=${LTCC-"$CC"} |
| 10778 | |
| 10779 | # If no C compiler flags were specified, use CFLAGS. |
| 10780 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10781 | |
| 10782 | # Allow CC to be a program name with arguments. |
| 10783 | compiler=$CC |
| 10784 | |
| 10785 | |
| 10786 | # save warnings/boilerplate of simple test code |
| 10787 | ac_outfile=conftest.$ac_objext |
| 10788 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10789 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10790 | _lt_compiler_boilerplate=`cat conftest.err` |
| 10791 | $rm conftest* |
| 10792 | |
| 10793 | ac_outfile=conftest.$ac_objext |
| 10794 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10795 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10796 | _lt_linker_boilerplate=`cat conftest.err` |
| 10797 | $rm conftest* |
| 10798 | |
| 10799 | |
| 10800 | # Allow CC to be a program name with arguments. |
| 10801 | lt_save_CC=$CC |
| 10802 | lt_save_LD=$LD |
| 10803 | lt_save_GCC=$GCC |
| 10804 | GCC=$GXX |
| 10805 | lt_save_with_gnu_ld=$with_gnu_ld |
| 10806 | lt_save_path_LD=$lt_cv_path_LD |
| 10807 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 10808 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 10809 | else |
| 10810 | $as_unset lt_cv_prog_gnu_ld |
| 10811 | fi |
| 10812 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 10813 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 10814 | else |
| 10815 | $as_unset lt_cv_path_LD |
| 10816 | fi |
| 10817 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 10818 | CC=${CXX-"c++"} |
| 10819 | compiler=$CC |
| 10820 | compiler_CXX=$CC |
| 10821 | for cc_temp in $compiler""; do |
| 10822 | case $cc_temp in |
| 10823 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 10824 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 10825 | \-*) ;; |
| 10826 | *) break;; |
| 10827 | esac |
| 10828 | done |
| 10829 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 10830 | |
| 10831 | |
| 10832 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 10833 | # no_builtin_flag separately |
| 10834 | if test "$GXX" = yes; then |
| 10835 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 10836 | else |
| 10837 | lt_prog_compiler_no_builtin_flag_CXX= |
| 10838 | fi |
| 10839 | |
| 10840 | if test "$GXX" = yes; then |
| 10841 | # Set up default GNU C++ configuration |
| 10842 | |
| 10843 | |
| 10844 | # Check whether --with-gnu-ld was given. |
| 10845 | if test "${with_gnu_ld+set}" = set; then |
| 10846 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 10847 | else |
| 10848 | with_gnu_ld=no |
| 10849 | fi |
| 10850 | |
| 10851 | ac_prog=ld |
| 10852 | if test "$GCC" = yes; then |
| 10853 | # Check if gcc -print-prog-name=ld gives a path. |
| 10854 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10855 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
| 10856 | case $host in |
| 10857 | *-*-mingw*) |
| 10858 | # gcc leaves a trailing carriage return which upsets mingw |
| 10859 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10860 | *) |
| 10861 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10862 | esac |
| 10863 | case $ac_prog in |
| 10864 | # Accept absolute paths. |
| 10865 | [\\/]* | ?:[\\/]*) |
| 10866 | re_direlt='/[^/][^/]*/\.\./' |
| 10867 | # Canonicalize the pathname of ld |
| 10868 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10869 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10870 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10871 | done |
| 10872 | test -z "$LD" && LD="$ac_prog" |
| 10873 | ;; |
| 10874 | "") |
| 10875 | # If it fails, then pretend we aren't using GCC. |
| 10876 | ac_prog=ld |
| 10877 | ;; |
| 10878 | *) |
| 10879 | # If it is relative, then search for the first ld in PATH. |
| 10880 | with_gnu_ld=unknown |
| 10881 | ;; |
| 10882 | esac |
| 10883 | elif test "$with_gnu_ld" = yes; then |
| 10884 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10885 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
| 10886 | else |
| 10887 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10888 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
| 10889 | fi |
| 10890 | if test "${lt_cv_path_LD+set}" = set; then |
| 10891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10892 | else |
| 10893 | if test -z "$LD"; then |
| 10894 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10895 | for ac_dir in $PATH; do |
| 10896 | IFS="$lt_save_ifs" |
| 10897 | test -z "$ac_dir" && ac_dir=. |
| 10898 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10899 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10900 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 10901 | # but apparently some variants of GNU ld only accept -v. |
| 10902 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10903 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10904 | *GNU* | *'with BFD'*) |
| 10905 | test "$with_gnu_ld" != no && break |
| 10906 | ;; |
| 10907 | *) |
| 10908 | test "$with_gnu_ld" != yes && break |
| 10909 | ;; |
| 10910 | esac |
| 10911 | fi |
| 10912 | done |
| 10913 | IFS="$lt_save_ifs" |
| 10914 | else |
| 10915 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10916 | fi |
| 10917 | fi |
| 10918 | |
| 10919 | LD="$lt_cv_path_LD" |
| 10920 | if test -n "$LD"; then |
| 10921 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 10922 | echo "${ECHO_T}$LD" >&6; } |
| 10923 | else |
| 10924 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10925 | echo "${ECHO_T}no" >&6; } |
| 10926 | fi |
| 10927 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10928 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10929 | { (exit 1); exit 1; }; } |
| 10930 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10931 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
| 10932 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10934 | else |
| 10935 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 10936 | case `$LD -v 2>&1 </dev/null` in |
| 10937 | *GNU* | *'with BFD'*) |
| 10938 | lt_cv_prog_gnu_ld=yes |
| 10939 | ;; |
| 10940 | *) |
| 10941 | lt_cv_prog_gnu_ld=no |
| 10942 | ;; |
| 10943 | esac |
| 10944 | fi |
| 10945 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10946 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
| 10947 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10948 | |
| 10949 | |
| 10950 | |
| 10951 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 10952 | # archiving commands below assume that GNU ld is being used. |
| 10953 | if test "$with_gnu_ld" = yes; then |
| 10954 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10955 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10956 | |
| 10957 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10958 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10959 | |
| 10960 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10961 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 10962 | # investigate it a little bit more. (MM) |
| 10963 | wlarc='${wl}' |
| 10964 | |
| 10965 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10966 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 10967 | grep 'no-whole-archive' > /dev/null; then |
| 10968 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10969 | else |
| 10970 | whole_archive_flag_spec_CXX= |
| 10971 | fi |
| 10972 | else |
| 10973 | with_gnu_ld=no |
| 10974 | wlarc= |
| 10975 | |
| 10976 | # A generic and very simple default shared library creation |
| 10977 | # command for GNU C++ for the case where it uses the native |
| 10978 | # linker, instead of GNU ld. If possible, this setting should |
| 10979 | # overridden to take advantage of the native linker features on |
| 10980 | # the platform it is being used on. |
| 10981 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10982 | fi |
| 10983 | |
| 10984 | # Commands to make compiler produce verbose output that lists |
| 10985 | # what "hidden" libraries, object files and flags are used when |
| 10986 | # linking a shared library. |
| 10987 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10988 | |
| 10989 | else |
| 10990 | GXX=no |
| 10991 | with_gnu_ld=no |
| 10992 | wlarc= |
| 10993 | fi |
| 10994 | |
| 10995 | # PORTME: fill in a description of your system's C++ link characteristics |
| 10996 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10997 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
| 10998 | ld_shlibs_CXX=yes |
| 10999 | case $host_os in |
| 11000 | aix3*) |
| 11001 | # FIXME: insert proper C++ library support |
| 11002 | ld_shlibs_CXX=no |
| 11003 | ;; |
| 11004 | aix4* | aix5*) |
| 11005 | if test "$host_cpu" = ia64; then |
| 11006 | # On IA64, the linker does run time linking by default, so we don't |
| 11007 | # have to do anything special. |
| 11008 | aix_use_runtimelinking=no |
| 11009 | exp_sym_flag='-Bexport' |
| 11010 | no_entry_flag="" |
| 11011 | else |
| 11012 | aix_use_runtimelinking=no |
| 11013 | |
| 11014 | # Test if we are trying to use run time linking or normal |
| 11015 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11016 | # need to do runtime linking. |
| 11017 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 11018 | for ld_flag in $LDFLAGS; do |
| 11019 | case $ld_flag in |
| 11020 | *-brtl*) |
| 11021 | aix_use_runtimelinking=yes |
| 11022 | break |
| 11023 | ;; |
| 11024 | esac |
| 11025 | done |
| 11026 | ;; |
| 11027 | esac |
| 11028 | |
| 11029 | exp_sym_flag='-bexport' |
| 11030 | no_entry_flag='-bnoentry' |
| 11031 | fi |
| 11032 | |
| 11033 | # When large executables or shared objects are built, AIX ld can |
| 11034 | # have problems creating the table of contents. If linking a library |
| 11035 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11036 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11037 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11038 | |
| 11039 | archive_cmds_CXX='' |
| 11040 | hardcode_direct_CXX=yes |
| 11041 | hardcode_libdir_separator_CXX=':' |
| 11042 | link_all_deplibs_CXX=yes |
| 11043 | |
| 11044 | if test "$GXX" = yes; then |
| 11045 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11046 | # We only want to do this on AIX 4.2 and lower, the check |
| 11047 | # below for broken collect2 doesn't work under 4.3+ |
| 11048 | collect2name=`${CC} -print-prog-name=collect2` |
| 11049 | if test -f "$collect2name" && \ |
| 11050 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11051 | then |
| 11052 | # We have reworked collect2 |
| 11053 | hardcode_direct_CXX=yes |
| 11054 | else |
| 11055 | # We have old collect2 |
| 11056 | hardcode_direct_CXX=unsupported |
| 11057 | # It fails to find uninstalled libraries when the uninstalled |
| 11058 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11059 | # to unsupported forces relinking |
| 11060 | hardcode_minus_L_CXX=yes |
| 11061 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11062 | hardcode_libdir_separator_CXX= |
| 11063 | fi |
| 11064 | ;; |
| 11065 | esac |
| 11066 | shared_flag='-shared' |
| 11067 | if test "$aix_use_runtimelinking" = yes; then |
| 11068 | shared_flag="$shared_flag "'${wl}-G' |
| 11069 | fi |
| 11070 | else |
| 11071 | # not using gcc |
| 11072 | if test "$host_cpu" = ia64; then |
| 11073 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11074 | # chokes on -Wl,-G. The following line is correct: |
| 11075 | shared_flag='-G' |
| 11076 | else |
| 11077 | if test "$aix_use_runtimelinking" = yes; then |
| 11078 | shared_flag='${wl}-G' |
| 11079 | else |
| 11080 | shared_flag='${wl}-bM:SRE' |
| 11081 | fi |
| 11082 | fi |
| 11083 | fi |
| 11084 | |
| 11085 | # It seems that -bexpall does not export symbols beginning with |
| 11086 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11087 | always_export_symbols_CXX=yes |
| 11088 | if test "$aix_use_runtimelinking" = yes; then |
| 11089 | # Warning - without using the other runtime loading flags (-brtl), |
| 11090 | # -berok will link without error, but may produce a broken library. |
| 11091 | allow_undefined_flag_CXX='-berok' |
| 11092 | # Determine the default libpath from the value encoded in an empty executable. |
| 11093 | cat >conftest.$ac_ext <<_ACEOF |
| 11094 | /* confdefs.h. */ |
| 11095 | _ACEOF |
| 11096 | cat confdefs.h >>conftest.$ac_ext |
| 11097 | cat >>conftest.$ac_ext <<_ACEOF |
| 11098 | /* end confdefs.h. */ |
| 11099 | |
| 11100 | int |
| 11101 | main () |
| 11102 | { |
| 11103 | |
| 11104 | ; |
| 11105 | return 0; |
| 11106 | } |
| 11107 | _ACEOF |
| 11108 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11109 | if { (ac_try="$ac_link" |
| 11110 | case "(($ac_try" in |
| 11111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11112 | *) ac_try_echo=$ac_try;; |
| 11113 | esac |
| 11114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11115 | (eval "$ac_link") 2>conftest.er1 |
| 11116 | ac_status=$? |
| 11117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11118 | rm -f conftest.er1 |
| 11119 | cat conftest.err >&5 |
| 11120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11121 | (exit $ac_status); } && |
| 11122 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11123 | { (case "(($ac_try" in |
| 11124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11125 | *) ac_try_echo=$ac_try;; |
| 11126 | esac |
| 11127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11128 | (eval "$ac_try") 2>&5 |
| 11129 | ac_status=$? |
| 11130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11131 | (exit $ac_status); }; } && |
| 11132 | { ac_try='test -s conftest$ac_exeext' |
| 11133 | { (case "(($ac_try" in |
| 11134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11135 | *) ac_try_echo=$ac_try;; |
| 11136 | esac |
| 11137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11138 | (eval "$ac_try") 2>&5 |
| 11139 | ac_status=$? |
| 11140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11141 | (exit $ac_status); }; }; then |
| 11142 | |
| 11143 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11144 | }'` |
| 11145 | # Check for a 64-bit object if we didn't find anything. |
| 11146 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11147 | }'`; fi |
| 11148 | else |
| 11149 | echo "$as_me: failed program was:" >&5 |
| 11150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11151 | |
| 11152 | |
| 11153 | fi |
| 11154 | |
| 11155 | rm -f core conftest.err conftest.$ac_objext \ |
| 11156 | conftest$ac_exeext conftest.$ac_ext |
| 11157 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11158 | |
| 11159 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11160 | |
| 11161 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 11162 | else |
| 11163 | if test "$host_cpu" = ia64; then |
| 11164 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11165 | allow_undefined_flag_CXX="-z nodefs" |
| 11166 | 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" |
| 11167 | else |
| 11168 | # Determine the default libpath from the value encoded in an empty executable. |
| 11169 | cat >conftest.$ac_ext <<_ACEOF |
| 11170 | /* confdefs.h. */ |
| 11171 | _ACEOF |
| 11172 | cat confdefs.h >>conftest.$ac_ext |
| 11173 | cat >>conftest.$ac_ext <<_ACEOF |
| 11174 | /* end confdefs.h. */ |
| 11175 | |
| 11176 | int |
| 11177 | main () |
| 11178 | { |
| 11179 | |
| 11180 | ; |
| 11181 | return 0; |
| 11182 | } |
| 11183 | _ACEOF |
| 11184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11185 | if { (ac_try="$ac_link" |
| 11186 | case "(($ac_try" in |
| 11187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11188 | *) ac_try_echo=$ac_try;; |
| 11189 | esac |
| 11190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11191 | (eval "$ac_link") 2>conftest.er1 |
| 11192 | ac_status=$? |
| 11193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11194 | rm -f conftest.er1 |
| 11195 | cat conftest.err >&5 |
| 11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11197 | (exit $ac_status); } && |
| 11198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11199 | { (case "(($ac_try" in |
| 11200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11201 | *) ac_try_echo=$ac_try;; |
| 11202 | esac |
| 11203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11204 | (eval "$ac_try") 2>&5 |
| 11205 | ac_status=$? |
| 11206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11207 | (exit $ac_status); }; } && |
| 11208 | { ac_try='test -s conftest$ac_exeext' |
| 11209 | { (case "(($ac_try" in |
| 11210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11211 | *) ac_try_echo=$ac_try;; |
| 11212 | esac |
| 11213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11214 | (eval "$ac_try") 2>&5 |
| 11215 | ac_status=$? |
| 11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11217 | (exit $ac_status); }; }; then |
| 11218 | |
| 11219 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11220 | }'` |
| 11221 | # Check for a 64-bit object if we didn't find anything. |
| 11222 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11223 | }'`; fi |
| 11224 | else |
| 11225 | echo "$as_me: failed program was:" >&5 |
| 11226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11227 | |
| 11228 | |
| 11229 | fi |
| 11230 | |
| 11231 | rm -f core conftest.err conftest.$ac_objext \ |
| 11232 | conftest$ac_exeext conftest.$ac_ext |
| 11233 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11234 | |
| 11235 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11236 | # Warning - without using the other run time loading flags, |
| 11237 | # -berok will link without error, but may produce a broken library. |
| 11238 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11239 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11240 | # Exported symbols can be pulled into shared objects from archives |
| 11241 | whole_archive_flag_spec_CXX='$convenience' |
| 11242 | archive_cmds_need_lc_CXX=yes |
| 11243 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11244 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 11245 | fi |
| 11246 | fi |
| 11247 | ;; |
| 11248 | |
| 11249 | beos*) |
| 11250 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11251 | allow_undefined_flag_CXX=unsupported |
| 11252 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 11253 | # support --undefined. This deserves some investigation. FIXME |
| 11254 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11255 | else |
| 11256 | ld_shlibs_CXX=no |
| 11257 | fi |
| 11258 | ;; |
| 11259 | |
| 11260 | chorus*) |
| 11261 | case $cc_basename in |
| 11262 | *) |
| 11263 | # FIXME: insert proper C++ library support |
| 11264 | ld_shlibs_CXX=no |
| 11265 | ;; |
| 11266 | esac |
| 11267 | ;; |
| 11268 | |
| 11269 | cygwin* | mingw* | pw32*) |
| 11270 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11271 | # as there is no search path for DLLs. |
| 11272 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11273 | allow_undefined_flag_CXX=unsupported |
| 11274 | always_export_symbols_CXX=no |
| 11275 | enable_shared_with_static_runtimes_CXX=yes |
| 11276 | |
| 11277 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 11278 | 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' |
| 11279 | # If the export-symbols file already is a .def file (1st line |
| 11280 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11281 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11282 | cp $export_symbols $output_objdir/$soname.def; |
| 11283 | else |
| 11284 | echo EXPORTS > $output_objdir/$soname.def; |
| 11285 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11286 | fi~ |
| 11287 | $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' |
| 11288 | else |
| 11289 | ld_shlibs_CXX=no |
| 11290 | fi |
| 11291 | ;; |
| 11292 | darwin* | rhapsody*) |
| 11293 | case $host_os in |
| 11294 | rhapsody* | darwin1.[012]) |
| 11295 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 11296 | ;; |
| 11297 | *) # Darwin 1.3 on |
| 11298 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11299 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11300 | else |
| 11301 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11302 | 10.[012]) |
| 11303 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11304 | ;; |
| 11305 | 10.*) |
| 11306 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 11307 | ;; |
| 11308 | esac |
| 11309 | fi |
| 11310 | ;; |
| 11311 | esac |
| 11312 | archive_cmds_need_lc_CXX=no |
| 11313 | hardcode_direct_CXX=no |
| 11314 | hardcode_automatic_CXX=yes |
| 11315 | hardcode_shlibpath_var_CXX=unsupported |
| 11316 | whole_archive_flag_spec_CXX='' |
| 11317 | link_all_deplibs_CXX=yes |
| 11318 | |
| 11319 | if test "$GXX" = yes ; then |
| 11320 | lt_int_apple_cc_single_mod=no |
| 11321 | output_verbose_link_cmd='echo' |
| 11322 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 11323 | lt_int_apple_cc_single_mod=yes |
| 11324 | fi |
| 11325 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11326 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11327 | else |
| 11328 | 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' |
| 11329 | fi |
| 11330 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11331 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11332 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11333 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11334 | else |
| 11335 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11336 | fi |
| 11337 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11338 | else |
| 11339 | case $cc_basename in |
| 11340 | xlc*) |
| 11341 | output_verbose_link_cmd='echo' |
| 11342 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 11343 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11344 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11345 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11346 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11347 | ;; |
| 11348 | *) |
| 11349 | ld_shlibs_CXX=no |
| 11350 | ;; |
| 11351 | esac |
| 11352 | fi |
| 11353 | ;; |
| 11354 | |
| 11355 | dgux*) |
| 11356 | case $cc_basename in |
| 11357 | ec++*) |
| 11358 | # FIXME: insert proper C++ library support |
| 11359 | ld_shlibs_CXX=no |
| 11360 | ;; |
| 11361 | ghcx*) |
| 11362 | # Green Hills C++ Compiler |
| 11363 | # FIXME: insert proper C++ library support |
| 11364 | ld_shlibs_CXX=no |
| 11365 | ;; |
| 11366 | *) |
| 11367 | # FIXME: insert proper C++ library support |
| 11368 | ld_shlibs_CXX=no |
| 11369 | ;; |
| 11370 | esac |
| 11371 | ;; |
| 11372 | freebsd[12]*) |
| 11373 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11374 | ld_shlibs_CXX=no |
| 11375 | ;; |
| 11376 | freebsd-elf*) |
| 11377 | archive_cmds_need_lc_CXX=no |
| 11378 | ;; |
| 11379 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 11380 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11381 | # conventions |
| 11382 | ld_shlibs_CXX=yes |
| 11383 | ;; |
| 11384 | gnu*) |
| 11385 | ;; |
| 11386 | hpux9*) |
| 11387 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11388 | hardcode_libdir_separator_CXX=: |
| 11389 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11390 | hardcode_direct_CXX=yes |
| 11391 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11392 | # but as the default |
| 11393 | # location of the library. |
| 11394 | |
| 11395 | case $cc_basename in |
| 11396 | CC*) |
| 11397 | # FIXME: insert proper C++ library support |
| 11398 | ld_shlibs_CXX=no |
| 11399 | ;; |
| 11400 | aCC*) |
| 11401 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 11402 | # Commands to make compiler produce verbose output that lists |
| 11403 | # what "hidden" libraries, object files and flags are used when |
| 11404 | # linking a shared library. |
| 11405 | # |
| 11406 | # There doesn't appear to be a way to prevent this compiler from |
| 11407 | # explicitly linking system object files so we need to strip them |
| 11408 | # from the output so that they don't get included in the library |
| 11409 | # dependencies. |
| 11410 | 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; echo $list' |
| 11411 | ;; |
| 11412 | *) |
| 11413 | if test "$GXX" = yes; then |
| 11414 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 11415 | else |
| 11416 | # FIXME: insert proper C++ library support |
| 11417 | ld_shlibs_CXX=no |
| 11418 | fi |
| 11419 | ;; |
| 11420 | esac |
| 11421 | ;; |
| 11422 | hpux10*|hpux11*) |
| 11423 | if test $with_gnu_ld = no; then |
| 11424 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11425 | hardcode_libdir_separator_CXX=: |
| 11426 | |
| 11427 | case $host_cpu in |
| 11428 | hppa*64*|ia64*) |
| 11429 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 11430 | ;; |
| 11431 | *) |
| 11432 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11433 | ;; |
| 11434 | esac |
| 11435 | fi |
| 11436 | case $host_cpu in |
| 11437 | hppa*64*|ia64*) |
| 11438 | hardcode_direct_CXX=no |
| 11439 | hardcode_shlibpath_var_CXX=no |
| 11440 | ;; |
| 11441 | *) |
| 11442 | hardcode_direct_CXX=yes |
| 11443 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11444 | # but as the default |
| 11445 | # location of the library. |
| 11446 | ;; |
| 11447 | esac |
| 11448 | |
| 11449 | case $cc_basename in |
| 11450 | CC*) |
| 11451 | # FIXME: insert proper C++ library support |
| 11452 | ld_shlibs_CXX=no |
| 11453 | ;; |
| 11454 | aCC*) |
| 11455 | case $host_cpu in |
| 11456 | hppa*64*) |
| 11457 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11458 | ;; |
| 11459 | ia64*) |
| 11460 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11461 | ;; |
| 11462 | *) |
| 11463 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11464 | ;; |
| 11465 | esac |
| 11466 | # Commands to make compiler produce verbose output that lists |
| 11467 | # what "hidden" libraries, object files and flags are used when |
| 11468 | # linking a shared library. |
| 11469 | # |
| 11470 | # There doesn't appear to be a way to prevent this compiler from |
| 11471 | # explicitly linking system object files so we need to strip them |
| 11472 | # from the output so that they don't get included in the library |
| 11473 | # dependencies. |
| 11474 | 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; echo $list' |
| 11475 | ;; |
| 11476 | *) |
| 11477 | if test "$GXX" = yes; then |
| 11478 | if test $with_gnu_ld = no; then |
| 11479 | case $host_cpu in |
| 11480 | hppa*64*) |
| 11481 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11482 | ;; |
| 11483 | ia64*) |
| 11484 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11485 | ;; |
| 11486 | *) |
| 11487 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11488 | ;; |
| 11489 | esac |
| 11490 | fi |
| 11491 | else |
| 11492 | # FIXME: insert proper C++ library support |
| 11493 | ld_shlibs_CXX=no |
| 11494 | fi |
| 11495 | ;; |
| 11496 | esac |
| 11497 | ;; |
| 11498 | interix3*) |
| 11499 | hardcode_direct_CXX=no |
| 11500 | hardcode_shlibpath_var_CXX=no |
| 11501 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11502 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11503 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11504 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11505 | # default) and relocated if they conflict, which is a slow very memory |
| 11506 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11507 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11508 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11509 | 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' |
| 11510 | 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' |
| 11511 | ;; |
| 11512 | irix5* | irix6*) |
| 11513 | case $cc_basename in |
| 11514 | CC*) |
| 11515 | # SGI C++ |
| 11516 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 11517 | |
| 11518 | # Archives containing C++ object files must be created using |
| 11519 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11520 | # necessary to make sure instantiated templates are included |
| 11521 | # in the archive. |
| 11522 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11523 | ;; |
| 11524 | *) |
| 11525 | if test "$GXX" = yes; then |
| 11526 | if test "$with_gnu_ld" = no; then |
| 11527 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 11528 | else |
| 11529 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 11530 | fi |
| 11531 | fi |
| 11532 | link_all_deplibs_CXX=yes |
| 11533 | ;; |
| 11534 | esac |
| 11535 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11536 | hardcode_libdir_separator_CXX=: |
| 11537 | ;; |
| 11538 | linux*) |
| 11539 | case $cc_basename in |
| 11540 | KCC*) |
| 11541 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11542 | |
| 11543 | # KCC will only create a shared library if the output file |
| 11544 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11545 | # to its proper name (with version) after linking. |
| 11546 | 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' |
| 11547 | 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' |
| 11548 | # Commands to make compiler produce verbose output that lists |
| 11549 | # what "hidden" libraries, object files and flags are used when |
| 11550 | # linking a shared library. |
| 11551 | # |
| 11552 | # There doesn't appear to be a way to prevent this compiler from |
| 11553 | # explicitly linking system object files so we need to strip them |
| 11554 | # from the output so that they don't get included in the library |
| 11555 | # dependencies. |
| 11556 | 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; echo $list' |
| 11557 | |
| 11558 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11559 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11560 | |
| 11561 | # Archives containing C++ object files must be created using |
| 11562 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11563 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11564 | ;; |
| 11565 | icpc*) |
| 11566 | # Intel C++ |
| 11567 | with_gnu_ld=yes |
| 11568 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 11569 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 11570 | # earlier do not add the objects themselves. |
| 11571 | case `$CC -V 2>&1` in |
| 11572 | *"Version 7."*) |
| 11573 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11574 | 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' |
| 11575 | ;; |
| 11576 | *) # Version 8.0 or newer |
| 11577 | tmp_idyn= |
| 11578 | case $host_cpu in |
| 11579 | ia64*) tmp_idyn=' -i_dynamic';; |
| 11580 | esac |
| 11581 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11582 | 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' |
| 11583 | ;; |
| 11584 | esac |
| 11585 | archive_cmds_need_lc_CXX=no |
| 11586 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11587 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11588 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11589 | ;; |
| 11590 | pgCC*) |
| 11591 | # Portland Group C++ compiler |
| 11592 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 11593 | 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' |
| 11594 | |
| 11595 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11596 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11597 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 11598 | ;; |
| 11599 | cxx*) |
| 11600 | # Compaq C++ |
| 11601 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11602 | 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' |
| 11603 | |
| 11604 | runpath_var=LD_RUN_PATH |
| 11605 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11606 | hardcode_libdir_separator_CXX=: |
| 11607 | |
| 11608 | # Commands to make compiler produce verbose output that lists |
| 11609 | # what "hidden" libraries, object files and flags are used when |
| 11610 | # linking a shared library. |
| 11611 | # |
| 11612 | # There doesn't appear to be a way to prevent this compiler from |
| 11613 | # explicitly linking system object files so we need to strip them |
| 11614 | # from the output so that they don't get included in the library |
| 11615 | # dependencies. |
| 11616 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list' |
| 11617 | ;; |
| 11618 | esac |
| 11619 | ;; |
| 11620 | lynxos*) |
| 11621 | # FIXME: insert proper C++ library support |
| 11622 | ld_shlibs_CXX=no |
| 11623 | ;; |
| 11624 | m88k*) |
| 11625 | # FIXME: insert proper C++ library support |
| 11626 | ld_shlibs_CXX=no |
| 11627 | ;; |
| 11628 | mvs*) |
| 11629 | case $cc_basename in |
| 11630 | cxx*) |
| 11631 | # FIXME: insert proper C++ library support |
| 11632 | ld_shlibs_CXX=no |
| 11633 | ;; |
| 11634 | *) |
| 11635 | # FIXME: insert proper C++ library support |
| 11636 | ld_shlibs_CXX=no |
| 11637 | ;; |
| 11638 | esac |
| 11639 | ;; |
| 11640 | netbsd*) |
| 11641 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11642 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11643 | wlarc= |
| 11644 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11645 | hardcode_direct_CXX=yes |
| 11646 | hardcode_shlibpath_var_CXX=no |
| 11647 | fi |
| 11648 | # Workaround some broken pre-1.5 toolchains |
| 11649 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11650 | ;; |
| 11651 | openbsd2*) |
| 11652 | # C++ shared libraries are fairly broken |
| 11653 | ld_shlibs_CXX=no |
| 11654 | ;; |
| 11655 | openbsd*) |
| 11656 | hardcode_direct_CXX=yes |
| 11657 | hardcode_shlibpath_var_CXX=no |
| 11658 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11659 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11660 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11661 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11662 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11663 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11664 | fi |
| 11665 | output_verbose_link_cmd='echo' |
| 11666 | ;; |
| 11667 | osf3*) |
| 11668 | case $cc_basename in |
| 11669 | KCC*) |
| 11670 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11671 | |
| 11672 | # KCC will only create a shared library if the output file |
| 11673 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11674 | # to its proper name (with version) after linking. |
| 11675 | 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' |
| 11676 | |
| 11677 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11678 | hardcode_libdir_separator_CXX=: |
| 11679 | |
| 11680 | # Archives containing C++ object files must be created using |
| 11681 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11682 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11683 | |
| 11684 | ;; |
| 11685 | RCC*) |
| 11686 | # Rational C++ 2.4.1 |
| 11687 | # FIXME: insert proper C++ library support |
| 11688 | ld_shlibs_CXX=no |
| 11689 | ;; |
| 11690 | cxx*) |
| 11691 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11692 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 11693 | |
| 11694 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11695 | hardcode_libdir_separator_CXX=: |
| 11696 | |
| 11697 | # Commands to make compiler produce verbose output that lists |
| 11698 | # what "hidden" libraries, object files and flags are used when |
| 11699 | # linking a shared library. |
| 11700 | # |
| 11701 | # There doesn't appear to be a way to prevent this compiler from |
| 11702 | # explicitly linking system object files so we need to strip them |
| 11703 | # from the output so that they don't get included in the library |
| 11704 | # dependencies. |
| 11705 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' |
| 11706 | ;; |
| 11707 | *) |
| 11708 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11709 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11710 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 11711 | |
| 11712 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11713 | hardcode_libdir_separator_CXX=: |
| 11714 | |
| 11715 | # Commands to make compiler produce verbose output that lists |
| 11716 | # what "hidden" libraries, object files and flags are used when |
| 11717 | # linking a shared library. |
| 11718 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11719 | |
| 11720 | else |
| 11721 | # FIXME: insert proper C++ library support |
| 11722 | ld_shlibs_CXX=no |
| 11723 | fi |
| 11724 | ;; |
| 11725 | esac |
| 11726 | ;; |
| 11727 | osf4* | osf5*) |
| 11728 | case $cc_basename in |
| 11729 | KCC*) |
| 11730 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11731 | |
| 11732 | # KCC will only create a shared library if the output file |
| 11733 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11734 | # to its proper name (with version) after linking. |
| 11735 | 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' |
| 11736 | |
| 11737 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11738 | hardcode_libdir_separator_CXX=: |
| 11739 | |
| 11740 | # Archives containing C++ object files must be created using |
| 11741 | # the KAI C++ compiler. |
| 11742 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 11743 | ;; |
| 11744 | RCC*) |
| 11745 | # Rational C++ 2.4.1 |
| 11746 | # FIXME: insert proper C++ library support |
| 11747 | ld_shlibs_CXX=no |
| 11748 | ;; |
| 11749 | cxx*) |
| 11750 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 11751 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 11752 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 11753 | echo "-hidden">> $lib.exp~ |
| 11754 | $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~ |
| 11755 | $rm $lib.exp' |
| 11756 | |
| 11757 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11758 | hardcode_libdir_separator_CXX=: |
| 11759 | |
| 11760 | # Commands to make compiler produce verbose output that lists |
| 11761 | # what "hidden" libraries, object files and flags are used when |
| 11762 | # linking a shared library. |
| 11763 | # |
| 11764 | # There doesn't appear to be a way to prevent this compiler from |
| 11765 | # explicitly linking system object files so we need to strip them |
| 11766 | # from the output so that they don't get included in the library |
| 11767 | # dependencies. |
| 11768 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' |
| 11769 | ;; |
| 11770 | *) |
| 11771 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11772 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 11773 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 11774 | |
| 11775 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11776 | hardcode_libdir_separator_CXX=: |
| 11777 | |
| 11778 | # Commands to make compiler produce verbose output that lists |
| 11779 | # what "hidden" libraries, object files and flags are used when |
| 11780 | # linking a shared library. |
| 11781 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11782 | |
| 11783 | else |
| 11784 | # FIXME: insert proper C++ library support |
| 11785 | ld_shlibs_CXX=no |
| 11786 | fi |
| 11787 | ;; |
| 11788 | esac |
| 11789 | ;; |
| 11790 | psos*) |
| 11791 | # FIXME: insert proper C++ library support |
| 11792 | ld_shlibs_CXX=no |
| 11793 | ;; |
| 11794 | sunos4*) |
| 11795 | case $cc_basename in |
| 11796 | CC*) |
| 11797 | # Sun C++ 4.x |
| 11798 | # FIXME: insert proper C++ library support |
| 11799 | ld_shlibs_CXX=no |
| 11800 | ;; |
| 11801 | lcc*) |
| 11802 | # Lucid |
| 11803 | # FIXME: insert proper C++ library support |
| 11804 | ld_shlibs_CXX=no |
| 11805 | ;; |
| 11806 | *) |
| 11807 | # FIXME: insert proper C++ library support |
| 11808 | ld_shlibs_CXX=no |
| 11809 | ;; |
| 11810 | esac |
| 11811 | ;; |
| 11812 | solaris*) |
| 11813 | case $cc_basename in |
| 11814 | CC*) |
| 11815 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 11816 | archive_cmds_need_lc_CXX=yes |
| 11817 | no_undefined_flag_CXX=' -zdefs' |
| 11818 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11819 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11820 | $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' |
| 11821 | |
| 11822 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11823 | hardcode_shlibpath_var_CXX=no |
| 11824 | case $host_os in |
| 11825 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 11826 | *) |
| 11827 | # The C++ compiler is used as linker so we must use $wl |
| 11828 | # flag to pass the commands to the underlying system |
| 11829 | # linker. We must also pass each convience library through |
| 11830 | # to the system linker between allextract/defaultextract. |
| 11831 | # The C++ compiler will combine linker options so we |
| 11832 | # cannot just pass the convience library names through |
| 11833 | # without $wl. |
| 11834 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 11835 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| 11836 | ;; |
| 11837 | esac |
| 11838 | link_all_deplibs_CXX=yes |
| 11839 | |
| 11840 | output_verbose_link_cmd='echo' |
| 11841 | |
| 11842 | # Archives containing C++ object files must be created using |
| 11843 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 11844 | # necessary to make sure instantiated templates are included |
| 11845 | # in the archive. |
| 11846 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 11847 | ;; |
| 11848 | gcx*) |
| 11849 | # Green Hills C++ Compiler |
| 11850 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11851 | |
| 11852 | # The C++ compiler must be used to create the archive. |
| 11853 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 11854 | ;; |
| 11855 | *) |
| 11856 | # GNU C++ compiler with Solaris linker |
| 11857 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11858 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 11859 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 11860 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11861 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11862 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11863 | |
| 11864 | # Commands to make compiler produce verbose output that lists |
| 11865 | # what "hidden" libraries, object files and flags are used when |
| 11866 | # linking a shared library. |
| 11867 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11868 | else |
| 11869 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 11870 | # platform. |
| 11871 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11872 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11873 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11874 | |
| 11875 | # Commands to make compiler produce verbose output that lists |
| 11876 | # what "hidden" libraries, object files and flags are used when |
| 11877 | # linking a shared library. |
| 11878 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11879 | fi |
| 11880 | |
| 11881 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 11882 | fi |
| 11883 | ;; |
| 11884 | esac |
| 11885 | ;; |
| 11886 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 11887 | no_undefined_flag_CXX='${wl}-z,text' |
| 11888 | archive_cmds_need_lc_CXX=no |
| 11889 | hardcode_shlibpath_var_CXX=no |
| 11890 | runpath_var='LD_RUN_PATH' |
| 11891 | |
| 11892 | case $cc_basename in |
| 11893 | CC*) |
| 11894 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11895 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11896 | ;; |
| 11897 | *) |
| 11898 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11899 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11900 | ;; |
| 11901 | esac |
| 11902 | ;; |
| 11903 | sysv5* | sco3.2v5* | sco5v6*) |
| 11904 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 11905 | # link with -lc, and that would cause any symbols used from libc to |
| 11906 | # always be unresolved, which means just about no library would |
| 11907 | # ever link correctly. If we're not using GNU ld we use -z text |
| 11908 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 11909 | # as -z defs. |
| 11910 | # For security reasons, it is highly recommended that you always |
| 11911 | # use absolute paths for naming shared libraries, and exclude the |
| 11912 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 11913 | # requires that you compile everything twice, which is a pain. |
| 11914 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 11915 | # non-empty value in the environment. Most likely only useful for |
| 11916 | # creating official distributions of packages. |
| 11917 | # This is a hack until libtool officially supports absolute path |
| 11918 | # names for shared libraries. |
| 11919 | no_undefined_flag_CXX='${wl}-z,text' |
| 11920 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 11921 | archive_cmds_need_lc_CXX=no |
| 11922 | hardcode_shlibpath_var_CXX=no |
| 11923 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 11924 | hardcode_libdir_separator_CXX=':' |
| 11925 | link_all_deplibs_CXX=yes |
| 11926 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 11927 | runpath_var='LD_RUN_PATH' |
| 11928 | |
| 11929 | case $cc_basename in |
| 11930 | CC*) |
| 11931 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11932 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11933 | ;; |
| 11934 | *) |
| 11935 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11936 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11937 | ;; |
| 11938 | esac |
| 11939 | ;; |
| 11940 | tandem*) |
| 11941 | case $cc_basename in |
| 11942 | NCC*) |
| 11943 | # NonStop-UX NCC 3.20 |
| 11944 | # FIXME: insert proper C++ library support |
| 11945 | ld_shlibs_CXX=no |
| 11946 | ;; |
| 11947 | *) |
| 11948 | # FIXME: insert proper C++ library support |
| 11949 | ld_shlibs_CXX=no |
| 11950 | ;; |
| 11951 | esac |
| 11952 | ;; |
| 11953 | vxworks*) |
| 11954 | # FIXME: insert proper C++ library support |
| 11955 | ld_shlibs_CXX=no |
| 11956 | ;; |
| 11957 | *) |
| 11958 | # FIXME: insert proper C++ library support |
| 11959 | ld_shlibs_CXX=no |
| 11960 | ;; |
| 11961 | esac |
| 11962 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11963 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
| 11964 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11965 | |
| 11966 | GCC_CXX="$GXX" |
| 11967 | LD_CXX="$LD" |
| 11968 | |
| 11969 | ## CAVEAT EMPTOR: |
| 11970 | ## There is no encapsulation within the following macros, do not change |
| 11971 | ## the running order or otherwise move them around unless you know exactly |
| 11972 | ## what you are doing... |
| 11973 | |
| 11974 | cat > conftest.$ac_ext <<EOF |
| 11975 | class Foo |
| 11976 | { |
| 11977 | public: |
| 11978 | Foo (void) { a = 0; } |
| 11979 | private: |
| 11980 | int a; |
| 11981 | }; |
| 11982 | EOF |
| 11983 | |
| 11984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11985 | (eval $ac_compile) 2>&5 |
| 11986 | ac_status=$? |
| 11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11988 | (exit $ac_status); }; then |
| 11989 | # Parse the compiler output and extract the necessary |
| 11990 | # objects, libraries and library flags. |
| 11991 | |
| 11992 | # Sentinel used to keep track of whether or not we are before |
| 11993 | # the conftest object file. |
| 11994 | pre_test_object_deps_done=no |
| 11995 | |
| 11996 | # The `*' in the case matches for architectures that use `case' in |
| 11997 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 11998 | # eval without this substitution. |
| 11999 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 12000 | |
| 12001 | for p in `eval $output_verbose_link_cmd`; do |
| 12002 | case $p in |
| 12003 | |
| 12004 | -L* | -R* | -l*) |
| 12005 | # Some compilers place space between "-{L,R}" and the path. |
| 12006 | # Remove the space. |
| 12007 | if test $p = "-L" \ |
| 12008 | || test $p = "-R"; then |
| 12009 | prev=$p |
| 12010 | continue |
| 12011 | else |
| 12012 | prev= |
| 12013 | fi |
| 12014 | |
| 12015 | if test "$pre_test_object_deps_done" = no; then |
| 12016 | case $p in |
| 12017 | -L* | -R*) |
| 12018 | # Internal compiler library paths should come after those |
| 12019 | # provided the user. The postdeps already come after the |
| 12020 | # user supplied libs so there is no need to process them. |
| 12021 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12022 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12023 | else |
| 12024 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12025 | fi |
| 12026 | ;; |
| 12027 | # The "-l" case would never come before the object being |
| 12028 | # linked, so don't bother handling this case. |
| 12029 | esac |
| 12030 | else |
| 12031 | if test -z "$postdeps_CXX"; then |
| 12032 | postdeps_CXX="${prev}${p}" |
| 12033 | else |
| 12034 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12035 | fi |
| 12036 | fi |
| 12037 | ;; |
| 12038 | |
| 12039 | *.$objext) |
| 12040 | # This assumes that the test object file only shows up |
| 12041 | # once in the compiler output. |
| 12042 | if test "$p" = "conftest.$objext"; then |
| 12043 | pre_test_object_deps_done=yes |
| 12044 | continue |
| 12045 | fi |
| 12046 | |
| 12047 | if test "$pre_test_object_deps_done" = no; then |
| 12048 | if test -z "$predep_objects_CXX"; then |
| 12049 | predep_objects_CXX="$p" |
| 12050 | else |
| 12051 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12052 | fi |
| 12053 | else |
| 12054 | if test -z "$postdep_objects_CXX"; then |
| 12055 | postdep_objects_CXX="$p" |
| 12056 | else |
| 12057 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12058 | fi |
| 12059 | fi |
| 12060 | ;; |
| 12061 | |
| 12062 | *) ;; # Ignore the rest. |
| 12063 | |
| 12064 | esac |
| 12065 | done |
| 12066 | |
| 12067 | # Clean up. |
| 12068 | rm -f a.out a.exe |
| 12069 | else |
| 12070 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12071 | fi |
| 12072 | |
| 12073 | $rm -f confest.$objext |
| 12074 | |
| 12075 | # PORTME: override above test on systems where it is broken |
| 12076 | case $host_os in |
| 12077 | interix3*) |
| 12078 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12079 | # hack all around it, let's just trust "g++" to DTRT. |
| 12080 | predep_objects_CXX= |
| 12081 | postdep_objects_CXX= |
| 12082 | postdeps_CXX= |
| 12083 | ;; |
| 12084 | |
| 12085 | solaris*) |
| 12086 | case $cc_basename in |
| 12087 | CC*) |
| 12088 | # Adding this requires a known-good setup of shared libraries for |
| 12089 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12090 | # archive will be linked into the output, leading to subtle bugs. |
| 12091 | postdeps_CXX='-lCstd -lCrun' |
| 12092 | ;; |
| 12093 | esac |
| 12094 | ;; |
| 12095 | esac |
| 12096 | |
| 12097 | |
| 12098 | case " $postdeps_CXX " in |
| 12099 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12100 | esac |
| 12101 | |
| 12102 | lt_prog_compiler_wl_CXX= |
| 12103 | lt_prog_compiler_pic_CXX= |
| 12104 | lt_prog_compiler_static_CXX= |
| 12105 | |
| 12106 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12107 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
| 12108 | |
| 12109 | # C++ specific cases for pic, static, wl, etc. |
| 12110 | if test "$GXX" = yes; then |
| 12111 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12112 | lt_prog_compiler_static_CXX='-static' |
| 12113 | |
| 12114 | case $host_os in |
| 12115 | aix*) |
| 12116 | # All AIX code is PIC. |
| 12117 | if test "$host_cpu" = ia64; then |
| 12118 | # AIX 5 now supports IA64 processor |
| 12119 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12120 | fi |
| 12121 | ;; |
| 12122 | amigaos*) |
| 12123 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12124 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12125 | # like `-m68040'. |
| 12126 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12127 | ;; |
| 12128 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12129 | # PIC is the default for these OSes. |
| 12130 | ;; |
| 12131 | mingw* | os2* | pw32*) |
| 12132 | # This hack is so that the source file can tell whether it is being |
| 12133 | # built for inclusion in a dll (and should export symbols for example). |
| 12134 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12135 | ;; |
| 12136 | darwin* | rhapsody*) |
| 12137 | # PIC is the default on this platform |
| 12138 | # Common symbols not allowed in MH_DYLIB files |
| 12139 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12140 | ;; |
| 12141 | *djgpp*) |
| 12142 | # DJGPP does not support shared libraries at all |
| 12143 | lt_prog_compiler_pic_CXX= |
| 12144 | ;; |
| 12145 | interix3*) |
| 12146 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12147 | # Instead, we relocate shared libraries at runtime. |
| 12148 | ;; |
| 12149 | sysv4*MP*) |
| 12150 | if test -d /usr/nec; then |
| 12151 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12152 | fi |
| 12153 | ;; |
| 12154 | hpux*) |
| 12155 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12156 | # not for PA HP-UX. |
| 12157 | case $host_cpu in |
| 12158 | hppa*64*|ia64*) |
| 12159 | ;; |
| 12160 | *) |
| 12161 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12162 | ;; |
| 12163 | esac |
| 12164 | ;; |
| 12165 | *) |
| 12166 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12167 | ;; |
| 12168 | esac |
| 12169 | else |
| 12170 | case $host_os in |
| 12171 | aix4* | aix5*) |
| 12172 | # All AIX code is PIC. |
| 12173 | if test "$host_cpu" = ia64; then |
| 12174 | # AIX 5 now supports IA64 processor |
| 12175 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12176 | else |
| 12177 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12178 | fi |
| 12179 | ;; |
| 12180 | chorus*) |
| 12181 | case $cc_basename in |
| 12182 | cxch68*) |
| 12183 | # Green Hills C++ Compiler |
| 12184 | # _LT_AC_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" |
| 12185 | ;; |
| 12186 | esac |
| 12187 | ;; |
| 12188 | darwin*) |
| 12189 | # PIC is the default on this platform |
| 12190 | # Common symbols not allowed in MH_DYLIB files |
| 12191 | case $cc_basename in |
| 12192 | xlc*) |
| 12193 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 12194 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12195 | ;; |
| 12196 | esac |
| 12197 | ;; |
| 12198 | dgux*) |
| 12199 | case $cc_basename in |
| 12200 | ec++*) |
| 12201 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12202 | ;; |
| 12203 | ghcx*) |
| 12204 | # Green Hills C++ Compiler |
| 12205 | lt_prog_compiler_pic_CXX='-pic' |
| 12206 | ;; |
| 12207 | *) |
| 12208 | ;; |
| 12209 | esac |
| 12210 | ;; |
| 12211 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 12212 | # FreeBSD uses GNU C++ |
| 12213 | ;; |
| 12214 | hpux9* | hpux10* | hpux11*) |
| 12215 | case $cc_basename in |
| 12216 | CC*) |
| 12217 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12218 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12219 | if test "$host_cpu" != ia64; then |
| 12220 | lt_prog_compiler_pic_CXX='+Z' |
| 12221 | fi |
| 12222 | ;; |
| 12223 | aCC*) |
| 12224 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12225 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12226 | case $host_cpu in |
| 12227 | hppa*64*|ia64*) |
| 12228 | # +Z the default |
| 12229 | ;; |
| 12230 | *) |
| 12231 | lt_prog_compiler_pic_CXX='+Z' |
| 12232 | ;; |
| 12233 | esac |
| 12234 | ;; |
| 12235 | *) |
| 12236 | ;; |
| 12237 | esac |
| 12238 | ;; |
| 12239 | interix*) |
| 12240 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12241 | # Anyone wants to do a port? |
| 12242 | ;; |
| 12243 | irix5* | irix6* | nonstopux*) |
| 12244 | case $cc_basename in |
| 12245 | CC*) |
| 12246 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12247 | lt_prog_compiler_static_CXX='-non_shared' |
| 12248 | # CC pic flag -KPIC is the default. |
| 12249 | ;; |
| 12250 | *) |
| 12251 | ;; |
| 12252 | esac |
| 12253 | ;; |
| 12254 | linux*) |
| 12255 | case $cc_basename in |
| 12256 | KCC*) |
| 12257 | # KAI C++ Compiler |
| 12258 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12259 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12260 | ;; |
| 12261 | icpc* | ecpc*) |
| 12262 | # Intel C++ |
| 12263 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12264 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12265 | lt_prog_compiler_static_CXX='-static' |
| 12266 | ;; |
| 12267 | pgCC*) |
| 12268 | # Portland Group C++ compiler. |
| 12269 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12270 | lt_prog_compiler_pic_CXX='-fpic' |
| 12271 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12272 | ;; |
| 12273 | cxx*) |
| 12274 | # Compaq C++ |
| 12275 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12276 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12277 | lt_prog_compiler_pic_CXX= |
| 12278 | lt_prog_compiler_static_CXX='-non_shared' |
| 12279 | ;; |
| 12280 | *) |
| 12281 | ;; |
| 12282 | esac |
| 12283 | ;; |
| 12284 | lynxos*) |
| 12285 | ;; |
| 12286 | m88k*) |
| 12287 | ;; |
| 12288 | mvs*) |
| 12289 | case $cc_basename in |
| 12290 | cxx*) |
| 12291 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12292 | ;; |
| 12293 | *) |
| 12294 | ;; |
| 12295 | esac |
| 12296 | ;; |
| 12297 | netbsd*) |
| 12298 | ;; |
| 12299 | osf3* | osf4* | osf5*) |
| 12300 | case $cc_basename in |
| 12301 | KCC*) |
| 12302 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12303 | ;; |
| 12304 | RCC*) |
| 12305 | # Rational C++ 2.4.1 |
| 12306 | lt_prog_compiler_pic_CXX='-pic' |
| 12307 | ;; |
| 12308 | cxx*) |
| 12309 | # Digital/Compaq C++ |
| 12310 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12311 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12312 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12313 | lt_prog_compiler_pic_CXX= |
| 12314 | lt_prog_compiler_static_CXX='-non_shared' |
| 12315 | ;; |
| 12316 | *) |
| 12317 | ;; |
| 12318 | esac |
| 12319 | ;; |
| 12320 | psos*) |
| 12321 | ;; |
| 12322 | solaris*) |
| 12323 | case $cc_basename in |
| 12324 | CC*) |
| 12325 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12326 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12327 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12328 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12329 | ;; |
| 12330 | gcx*) |
| 12331 | # Green Hills C++ Compiler |
| 12332 | lt_prog_compiler_pic_CXX='-PIC' |
| 12333 | ;; |
| 12334 | *) |
| 12335 | ;; |
| 12336 | esac |
| 12337 | ;; |
| 12338 | sunos4*) |
| 12339 | case $cc_basename in |
| 12340 | CC*) |
| 12341 | # Sun C++ 4.x |
| 12342 | lt_prog_compiler_pic_CXX='-pic' |
| 12343 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12344 | ;; |
| 12345 | lcc*) |
| 12346 | # Lucid |
| 12347 | lt_prog_compiler_pic_CXX='-pic' |
| 12348 | ;; |
| 12349 | *) |
| 12350 | ;; |
| 12351 | esac |
| 12352 | ;; |
| 12353 | tandem*) |
| 12354 | case $cc_basename in |
| 12355 | NCC*) |
| 12356 | # NonStop-UX NCC 3.20 |
| 12357 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12358 | ;; |
| 12359 | *) |
| 12360 | ;; |
| 12361 | esac |
| 12362 | ;; |
| 12363 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12364 | case $cc_basename in |
| 12365 | CC*) |
| 12366 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12367 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12368 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12369 | ;; |
| 12370 | esac |
| 12371 | ;; |
| 12372 | vxworks*) |
| 12373 | ;; |
| 12374 | *) |
| 12375 | lt_prog_compiler_can_build_shared_CXX=no |
| 12376 | ;; |
| 12377 | esac |
| 12378 | fi |
| 12379 | |
| 12380 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12381 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
| 12382 | |
| 12383 | # |
| 12384 | # Check to make sure the PIC flag actually works. |
| 12385 | # |
| 12386 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12387 | |
| 12388 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12389 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
| 12390 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12392 | else |
| 12393 | lt_prog_compiler_pic_works_CXX=no |
| 12394 | ac_outfile=conftest.$ac_objext |
| 12395 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12396 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12397 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12398 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12399 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12400 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12401 | # The option is referenced via a variable to avoid confusing sed. |
| 12402 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12403 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12404 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12405 | -e 's:$: $lt_compiler_flag:'` |
| 12406 | (eval echo "\"\$as_me:12406: $lt_compile\"" >&5) |
| 12407 | (eval "$lt_compile" 2>conftest.err) |
| 12408 | ac_status=$? |
| 12409 | cat conftest.err >&5 |
| 12410 | echo "$as_me:12410: \$? = $ac_status" >&5 |
| 12411 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12412 | # The compiler can only warn and ignore the option if not recognized |
| 12413 | # So say no if there are warnings other than the usual output. |
| 12414 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12415 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12416 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 12417 | lt_prog_compiler_pic_works_CXX=yes |
| 12418 | fi |
| 12419 | fi |
| 12420 | $rm conftest* |
| 12421 | |
| 12422 | fi |
| 12423 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12424 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
| 12425 | |
| 12426 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12427 | case $lt_prog_compiler_pic_CXX in |
| 12428 | "" | " "*) ;; |
| 12429 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12430 | esac |
| 12431 | else |
| 12432 | lt_prog_compiler_pic_CXX= |
| 12433 | lt_prog_compiler_can_build_shared_CXX=no |
| 12434 | fi |
| 12435 | |
| 12436 | fi |
| 12437 | case $host_os in |
| 12438 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12439 | *djgpp*) |
| 12440 | lt_prog_compiler_pic_CXX= |
| 12441 | ;; |
| 12442 | *) |
| 12443 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12444 | ;; |
| 12445 | esac |
| 12446 | |
| 12447 | # |
| 12448 | # Check to make sure the static flag actually works. |
| 12449 | # |
| 12450 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 12451 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12452 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 12453 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 12454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12455 | else |
| 12456 | lt_prog_compiler_static_works_CXX=no |
| 12457 | save_LDFLAGS="$LDFLAGS" |
| 12458 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12459 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12460 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12461 | # The linker can only warn and ignore the option if not recognized |
| 12462 | # So say no if there are warnings |
| 12463 | if test -s conftest.err; then |
| 12464 | # Append any errors to the config.log. |
| 12465 | cat conftest.err 1>&5 |
| 12466 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12467 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12468 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12469 | lt_prog_compiler_static_works_CXX=yes |
| 12470 | fi |
| 12471 | else |
| 12472 | lt_prog_compiler_static_works_CXX=yes |
| 12473 | fi |
| 12474 | fi |
| 12475 | $rm conftest* |
| 12476 | LDFLAGS="$save_LDFLAGS" |
| 12477 | |
| 12478 | fi |
| 12479 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 12480 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 12481 | |
| 12482 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 12483 | : |
| 12484 | else |
| 12485 | lt_prog_compiler_static_CXX= |
| 12486 | fi |
| 12487 | |
| 12488 | |
| 12489 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12490 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 12491 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12493 | else |
| 12494 | lt_cv_prog_compiler_c_o_CXX=no |
| 12495 | $rm -r conftest 2>/dev/null |
| 12496 | mkdir conftest |
| 12497 | cd conftest |
| 12498 | mkdir out |
| 12499 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12500 | |
| 12501 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12502 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12503 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12504 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12505 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12506 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12507 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12508 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12509 | -e 's:$: $lt_compiler_flag:'` |
| 12510 | (eval echo "\"\$as_me:12510: $lt_compile\"" >&5) |
| 12511 | (eval "$lt_compile" 2>out/conftest.err) |
| 12512 | ac_status=$? |
| 12513 | cat out/conftest.err >&5 |
| 12514 | echo "$as_me:12514: \$? = $ac_status" >&5 |
| 12515 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12516 | then |
| 12517 | # The compiler can only warn and ignore the option if not recognized |
| 12518 | # So say no if there are warnings |
| 12519 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12520 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12521 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 12522 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12523 | fi |
| 12524 | fi |
| 12525 | chmod u+w . 2>&5 |
| 12526 | $rm conftest* |
| 12527 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12528 | # template instantiation |
| 12529 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12530 | $rm out/* && rmdir out |
| 12531 | cd .. |
| 12532 | rmdir conftest |
| 12533 | $rm conftest* |
| 12534 | |
| 12535 | fi |
| 12536 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12537 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 12538 | |
| 12539 | |
| 12540 | hard_links="nottested" |
| 12541 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12542 | # do not overwrite the value of need_locks provided by the user |
| 12543 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12544 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
| 12545 | hard_links=yes |
| 12546 | $rm conftest* |
| 12547 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12548 | touch conftest.a |
| 12549 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12550 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12551 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12552 | echo "${ECHO_T}$hard_links" >&6; } |
| 12553 | if test "$hard_links" = no; then |
| 12554 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12555 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12556 | need_locks=warn |
| 12557 | fi |
| 12558 | else |
| 12559 | need_locks=no |
| 12560 | fi |
| 12561 | |
| 12562 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12563 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
| 12564 | |
| 12565 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12566 | case $host_os in |
| 12567 | aix4* | aix5*) |
| 12568 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12569 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12570 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12571 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 12572 | else |
| 12573 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 12574 | fi |
| 12575 | ;; |
| 12576 | pw32*) |
| 12577 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12578 | ;; |
| 12579 | cygwin* | mingw*) |
| 12580 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12581 | ;; |
| 12582 | *) |
| 12583 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12584 | ;; |
| 12585 | esac |
| 12586 | |
| 12587 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12588 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
| 12589 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12590 | |
| 12591 | # |
| 12592 | # Do we need to explicitly link libc? |
| 12593 | # |
| 12594 | case "x$archive_cmds_need_lc_CXX" in |
| 12595 | x|xyes) |
| 12596 | # Assume -lc should be added |
| 12597 | archive_cmds_need_lc_CXX=yes |
| 12598 | |
| 12599 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12600 | case $archive_cmds_CXX in |
| 12601 | *'~'*) |
| 12602 | # FIXME: we may have to deal with multi-command sequences. |
| 12603 | ;; |
| 12604 | '$CC '*) |
| 12605 | # Test whether the compiler implicitly links with -lc since on some |
| 12606 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12607 | # to ld, don't add -lc before -lgcc. |
| 12608 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12609 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
| 12610 | $rm conftest* |
| 12611 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12612 | |
| 12613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12614 | (eval $ac_compile) 2>&5 |
| 12615 | ac_status=$? |
| 12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12617 | (exit $ac_status); } 2>conftest.err; then |
| 12618 | soname=conftest |
| 12619 | lib=conftest |
| 12620 | libobjs=conftest.$ac_objext |
| 12621 | deplibs= |
| 12622 | wl=$lt_prog_compiler_wl_CXX |
| 12623 | pic_flag=$lt_prog_compiler_pic_CXX |
| 12624 | compiler_flags=-v |
| 12625 | linker_flags=-v |
| 12626 | verstring= |
| 12627 | output_objdir=. |
| 12628 | libname=conftest |
| 12629 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12630 | allow_undefined_flag_CXX= |
| 12631 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12632 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12633 | ac_status=$? |
| 12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12635 | (exit $ac_status); } |
| 12636 | then |
| 12637 | archive_cmds_need_lc_CXX=no |
| 12638 | else |
| 12639 | archive_cmds_need_lc_CXX=yes |
| 12640 | fi |
| 12641 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12642 | else |
| 12643 | cat conftest.err 1>&5 |
| 12644 | fi |
| 12645 | $rm conftest* |
| 12646 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12647 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
| 12648 | ;; |
| 12649 | esac |
| 12650 | fi |
| 12651 | ;; |
| 12652 | esac |
| 12653 | |
| 12654 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12655 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
| 12656 | library_names_spec= |
| 12657 | libname_spec='lib$name' |
| 12658 | soname_spec= |
| 12659 | shrext_cmds=".so" |
| 12660 | postinstall_cmds= |
| 12661 | postuninstall_cmds= |
| 12662 | finish_cmds= |
| 12663 | finish_eval= |
| 12664 | shlibpath_var= |
| 12665 | shlibpath_overrides_runpath=unknown |
| 12666 | version_type=none |
| 12667 | dynamic_linker="$host_os ld.so" |
| 12668 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12669 | if test "$GCC" = yes; then |
| 12670 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12671 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12672 | # if the path contains ";" then we assume it to be the separator |
| 12673 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12674 | # assumed that no part of a normal pathname contains ";" but that should |
| 12675 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12676 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12677 | else |
| 12678 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12679 | fi |
| 12680 | else |
| 12681 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12682 | fi |
| 12683 | need_lib_prefix=unknown |
| 12684 | hardcode_into_libs=no |
| 12685 | |
| 12686 | # when you set need_version to no, make sure it does not cause -set_version |
| 12687 | # flags to be left without arguments |
| 12688 | need_version=unknown |
| 12689 | |
| 12690 | case $host_os in |
| 12691 | aix3*) |
| 12692 | version_type=linux |
| 12693 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12694 | shlibpath_var=LIBPATH |
| 12695 | |
| 12696 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12697 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12698 | ;; |
| 12699 | |
| 12700 | aix4* | aix5*) |
| 12701 | version_type=linux |
| 12702 | need_lib_prefix=no |
| 12703 | need_version=no |
| 12704 | hardcode_into_libs=yes |
| 12705 | if test "$host_cpu" = ia64; then |
| 12706 | # AIX 5 supports IA64 |
| 12707 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12708 | shlibpath_var=LD_LIBRARY_PATH |
| 12709 | else |
| 12710 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12711 | # for dependence libraries. The import file would start with |
| 12712 | # the line `#! .'. This would cause the generated library to |
| 12713 | # depend on `.', always an invalid library. This was fixed in |
| 12714 | # development snapshots of GCC prior to 3.0. |
| 12715 | case $host_os in |
| 12716 | aix4 | aix4.[01] | aix4.[01].*) |
| 12717 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12718 | echo ' yes ' |
| 12719 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 12720 | : |
| 12721 | else |
| 12722 | can_build_shared=no |
| 12723 | fi |
| 12724 | ;; |
| 12725 | esac |
| 12726 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12727 | # soname into executable. Probably we can add versioning support to |
| 12728 | # collect2, so additional links can be useful in future. |
| 12729 | if test "$aix_use_runtimelinking" = yes; then |
| 12730 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12731 | # instead of lib<name>.a to let people know that these are not |
| 12732 | # typical AIX shared libraries. |
| 12733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12734 | else |
| 12735 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12736 | # and later when we are not doing run time linking. |
| 12737 | library_names_spec='${libname}${release}.a $libname.a' |
| 12738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12739 | fi |
| 12740 | shlibpath_var=LIBPATH |
| 12741 | fi |
| 12742 | ;; |
| 12743 | |
| 12744 | amigaos*) |
| 12745 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12746 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12747 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 12748 | ;; |
| 12749 | |
| 12750 | beos*) |
| 12751 | library_names_spec='${libname}${shared_ext}' |
| 12752 | dynamic_linker="$host_os ld.so" |
| 12753 | shlibpath_var=LIBRARY_PATH |
| 12754 | ;; |
| 12755 | |
| 12756 | bsdi[45]*) |
| 12757 | version_type=linux |
| 12758 | need_version=no |
| 12759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12760 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12761 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12762 | shlibpath_var=LD_LIBRARY_PATH |
| 12763 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12764 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12765 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12766 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12767 | # libtool to hard-code these into programs |
| 12768 | ;; |
| 12769 | |
| 12770 | cygwin* | mingw* | pw32*) |
| 12771 | version_type=windows |
| 12772 | shrext_cmds=".dll" |
| 12773 | need_version=no |
| 12774 | need_lib_prefix=no |
| 12775 | |
| 12776 | case $GCC,$host_os in |
| 12777 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 12778 | library_names_spec='$libname.dll.a' |
| 12779 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12780 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12781 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 12782 | dldir=$destdir/`dirname \$dlpath`~ |
| 12783 | test -d \$dldir || mkdir -p \$dldir~ |
| 12784 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12785 | chmod a+x \$dldir/$dlname' |
| 12786 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12787 | dlpath=$dir/\$dldll~ |
| 12788 | $rm \$dlpath' |
| 12789 | shlibpath_overrides_runpath=yes |
| 12790 | |
| 12791 | case $host_os in |
| 12792 | cygwin*) |
| 12793 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12794 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12795 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 12796 | ;; |
| 12797 | mingw*) |
| 12798 | # MinGW DLLs use traditional 'lib' prefix |
| 12799 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12800 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12801 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 12802 | # It is most probably a Windows format PATH printed by |
| 12803 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 12804 | # path with ; separators, and with drive letters. We can handle the |
| 12805 | # drive letters (cygwin fileutils understands them), so leave them, |
| 12806 | # especially as we might pass files found there to a mingw objdump, |
| 12807 | # which wouldn't understand a cygwinified path. Ahh. |
| 12808 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12809 | else |
| 12810 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12811 | fi |
| 12812 | ;; |
| 12813 | pw32*) |
| 12814 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 12815 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12816 | ;; |
| 12817 | esac |
| 12818 | ;; |
| 12819 | |
| 12820 | *) |
| 12821 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 12822 | ;; |
| 12823 | esac |
| 12824 | dynamic_linker='Win32 ld.exe' |
| 12825 | # FIXME: first we should search . and the directory the executable is in |
| 12826 | shlibpath_var=PATH |
| 12827 | ;; |
| 12828 | |
| 12829 | darwin* | rhapsody*) |
| 12830 | dynamic_linker="$host_os dyld" |
| 12831 | version_type=darwin |
| 12832 | need_lib_prefix=no |
| 12833 | need_version=no |
| 12834 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 12835 | soname_spec='${libname}${release}${major}$shared_ext' |
| 12836 | shlibpath_overrides_runpath=yes |
| 12837 | shlibpath_var=DYLD_LIBRARY_PATH |
| 12838 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 12839 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 12840 | if test "$GCC" = yes; then |
| 12841 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 12842 | else |
| 12843 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 12844 | fi |
| 12845 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12846 | ;; |
| 12847 | |
| 12848 | dgux*) |
| 12849 | version_type=linux |
| 12850 | need_lib_prefix=no |
| 12851 | need_version=no |
| 12852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12853 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12854 | shlibpath_var=LD_LIBRARY_PATH |
| 12855 | ;; |
| 12856 | |
| 12857 | freebsd1*) |
| 12858 | dynamic_linker=no |
| 12859 | ;; |
| 12860 | |
| 12861 | kfreebsd*-gnu) |
| 12862 | version_type=linux |
| 12863 | need_lib_prefix=no |
| 12864 | need_version=no |
| 12865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12867 | shlibpath_var=LD_LIBRARY_PATH |
| 12868 | shlibpath_overrides_runpath=no |
| 12869 | hardcode_into_libs=yes |
| 12870 | dynamic_linker='GNU ld.so' |
| 12871 | ;; |
| 12872 | |
| 12873 | freebsd* | dragonfly*) |
| 12874 | # DragonFly does not have aout. When/if they implement a new |
| 12875 | # versioning mechanism, adjust this. |
| 12876 | if test -x /usr/bin/objformat; then |
| 12877 | objformat=`/usr/bin/objformat` |
| 12878 | else |
| 12879 | case $host_os in |
| 12880 | freebsd[123]*) objformat=aout ;; |
| 12881 | *) objformat=elf ;; |
| 12882 | esac |
| 12883 | fi |
| 12884 | version_type=freebsd-$objformat |
| 12885 | case $version_type in |
| 12886 | freebsd-elf*) |
| 12887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12888 | need_version=no |
| 12889 | need_lib_prefix=no |
| 12890 | ;; |
| 12891 | freebsd-*) |
| 12892 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12893 | need_version=yes |
| 12894 | ;; |
| 12895 | esac |
| 12896 | shlibpath_var=LD_LIBRARY_PATH |
| 12897 | case $host_os in |
| 12898 | freebsd2*) |
| 12899 | shlibpath_overrides_runpath=yes |
| 12900 | ;; |
| 12901 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 12902 | shlibpath_overrides_runpath=yes |
| 12903 | hardcode_into_libs=yes |
| 12904 | ;; |
| 12905 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12906 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 12907 | shlibpath_overrides_runpath=no |
| 12908 | hardcode_into_libs=yes |
| 12909 | ;; |
| 12910 | freebsd*) # from 4.6 on |
| 12911 | shlibpath_overrides_runpath=yes |
| 12912 | hardcode_into_libs=yes |
| 12913 | ;; |
| 12914 | esac |
| 12915 | ;; |
| 12916 | |
| 12917 | gnu*) |
| 12918 | version_type=linux |
| 12919 | need_lib_prefix=no |
| 12920 | need_version=no |
| 12921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12922 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12923 | shlibpath_var=LD_LIBRARY_PATH |
| 12924 | hardcode_into_libs=yes |
| 12925 | ;; |
| 12926 | |
| 12927 | hpux9* | hpux10* | hpux11*) |
| 12928 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12929 | # link against other versions. |
| 12930 | version_type=sunos |
| 12931 | need_lib_prefix=no |
| 12932 | need_version=no |
| 12933 | case $host_cpu in |
| 12934 | ia64*) |
| 12935 | shrext_cmds='.so' |
| 12936 | hardcode_into_libs=yes |
| 12937 | dynamic_linker="$host_os dld.so" |
| 12938 | shlibpath_var=LD_LIBRARY_PATH |
| 12939 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12941 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12942 | if test "X$HPUX_IA64_MODE" = X32; then |
| 12943 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12944 | else |
| 12945 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12946 | fi |
| 12947 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12948 | ;; |
| 12949 | hppa*64*) |
| 12950 | shrext_cmds='.sl' |
| 12951 | hardcode_into_libs=yes |
| 12952 | dynamic_linker="$host_os dld.sl" |
| 12953 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12954 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12956 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12957 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12958 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12959 | ;; |
| 12960 | *) |
| 12961 | shrext_cmds='.sl' |
| 12962 | dynamic_linker="$host_os dld.sl" |
| 12963 | shlibpath_var=SHLIB_PATH |
| 12964 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12966 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12967 | ;; |
| 12968 | esac |
| 12969 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 12970 | postinstall_cmds='chmod 555 $lib' |
| 12971 | ;; |
| 12972 | |
| 12973 | interix3*) |
| 12974 | version_type=linux |
| 12975 | need_lib_prefix=no |
| 12976 | need_version=no |
| 12977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12978 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12979 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 12980 | shlibpath_var=LD_LIBRARY_PATH |
| 12981 | shlibpath_overrides_runpath=no |
| 12982 | hardcode_into_libs=yes |
| 12983 | ;; |
| 12984 | |
| 12985 | irix5* | irix6* | nonstopux*) |
| 12986 | case $host_os in |
| 12987 | nonstopux*) version_type=nonstopux ;; |
| 12988 | *) |
| 12989 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12990 | version_type=linux |
| 12991 | else |
| 12992 | version_type=irix |
| 12993 | fi ;; |
| 12994 | esac |
| 12995 | need_lib_prefix=no |
| 12996 | need_version=no |
| 12997 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12999 | case $host_os in |
| 13000 | irix5* | nonstopux*) |
| 13001 | libsuff= shlibsuff= |
| 13002 | ;; |
| 13003 | *) |
| 13004 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13005 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13006 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13007 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13008 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13009 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13010 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13011 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13012 | esac |
| 13013 | ;; |
| 13014 | esac |
| 13015 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13016 | shlibpath_overrides_runpath=no |
| 13017 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13018 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13019 | hardcode_into_libs=yes |
| 13020 | ;; |
| 13021 | |
| 13022 | # No shared lib support for Linux oldld, aout, or coff. |
| 13023 | linux*oldld* | linux*aout* | linux*coff*) |
| 13024 | dynamic_linker=no |
| 13025 | ;; |
| 13026 | |
| 13027 | # This must be Linux ELF. |
| 13028 | linux*) |
| 13029 | version_type=linux |
| 13030 | need_lib_prefix=no |
| 13031 | need_version=no |
| 13032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13033 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13034 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13035 | shlibpath_var=LD_LIBRARY_PATH |
| 13036 | shlibpath_overrides_runpath=no |
| 13037 | # This implies no fast_install, which is unacceptable. |
| 13038 | # Some rework will be needed to allow for fast_install |
| 13039 | # before this can be enabled. |
| 13040 | hardcode_into_libs=yes |
| 13041 | |
| 13042 | # Append ld.so.conf contents to the search path |
| 13043 | if test -f /etc/ld.so.conf; then |
| 13044 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 13045 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13046 | fi |
| 13047 | |
| 13048 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13049 | # powerpc, because MkLinux only supported shared libraries with the |
| 13050 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13051 | # most powerpc-linux boxes support dynamic linking these days and |
| 13052 | # people can always --disable-shared, the test was removed, and we |
| 13053 | # assume the GNU/Linux dynamic linker is in use. |
| 13054 | dynamic_linker='GNU/Linux ld.so' |
| 13055 | ;; |
| 13056 | |
| 13057 | knetbsd*-gnu) |
| 13058 | version_type=linux |
| 13059 | need_lib_prefix=no |
| 13060 | need_version=no |
| 13061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13062 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13063 | shlibpath_var=LD_LIBRARY_PATH |
| 13064 | shlibpath_overrides_runpath=no |
| 13065 | hardcode_into_libs=yes |
| 13066 | dynamic_linker='GNU ld.so' |
| 13067 | ;; |
| 13068 | |
| 13069 | netbsd*) |
| 13070 | version_type=sunos |
| 13071 | need_lib_prefix=no |
| 13072 | need_version=no |
| 13073 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13075 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13076 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13077 | else |
| 13078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13079 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13080 | dynamic_linker='NetBSD ld.elf_so' |
| 13081 | fi |
| 13082 | shlibpath_var=LD_LIBRARY_PATH |
| 13083 | shlibpath_overrides_runpath=yes |
| 13084 | hardcode_into_libs=yes |
| 13085 | ;; |
| 13086 | |
| 13087 | newsos6) |
| 13088 | version_type=linux |
| 13089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13090 | shlibpath_var=LD_LIBRARY_PATH |
| 13091 | shlibpath_overrides_runpath=yes |
| 13092 | ;; |
| 13093 | |
| 13094 | nto-qnx*) |
| 13095 | version_type=linux |
| 13096 | need_lib_prefix=no |
| 13097 | need_version=no |
| 13098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13099 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13100 | shlibpath_var=LD_LIBRARY_PATH |
| 13101 | shlibpath_overrides_runpath=yes |
| 13102 | ;; |
| 13103 | |
| 13104 | openbsd*) |
| 13105 | version_type=sunos |
| 13106 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 13107 | need_lib_prefix=no |
| 13108 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13109 | case $host_os in |
| 13110 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13111 | *) need_version=no ;; |
| 13112 | esac |
| 13113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13114 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13115 | shlibpath_var=LD_LIBRARY_PATH |
| 13116 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13117 | case $host_os in |
| 13118 | openbsd2.[89] | openbsd2.[89].*) |
| 13119 | shlibpath_overrides_runpath=no |
| 13120 | ;; |
| 13121 | *) |
| 13122 | shlibpath_overrides_runpath=yes |
| 13123 | ;; |
| 13124 | esac |
| 13125 | else |
| 13126 | shlibpath_overrides_runpath=yes |
| 13127 | fi |
| 13128 | ;; |
| 13129 | |
| 13130 | os2*) |
| 13131 | libname_spec='$name' |
| 13132 | shrext_cmds=".dll" |
| 13133 | need_lib_prefix=no |
| 13134 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13135 | dynamic_linker='OS/2 ld.exe' |
| 13136 | shlibpath_var=LIBPATH |
| 13137 | ;; |
| 13138 | |
| 13139 | osf3* | osf4* | osf5*) |
| 13140 | version_type=osf |
| 13141 | need_lib_prefix=no |
| 13142 | need_version=no |
| 13143 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13145 | shlibpath_var=LD_LIBRARY_PATH |
| 13146 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13147 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13148 | ;; |
| 13149 | |
| 13150 | solaris*) |
| 13151 | version_type=linux |
| 13152 | need_lib_prefix=no |
| 13153 | need_version=no |
| 13154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13155 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13156 | shlibpath_var=LD_LIBRARY_PATH |
| 13157 | shlibpath_overrides_runpath=yes |
| 13158 | hardcode_into_libs=yes |
| 13159 | # ldd complains unless libraries are executable |
| 13160 | postinstall_cmds='chmod +x $lib' |
| 13161 | ;; |
| 13162 | |
| 13163 | sunos4*) |
| 13164 | version_type=sunos |
| 13165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13166 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13167 | shlibpath_var=LD_LIBRARY_PATH |
| 13168 | shlibpath_overrides_runpath=yes |
| 13169 | if test "$with_gnu_ld" = yes; then |
| 13170 | need_lib_prefix=no |
| 13171 | fi |
| 13172 | need_version=yes |
| 13173 | ;; |
| 13174 | |
| 13175 | sysv4 | sysv4.3*) |
| 13176 | version_type=linux |
| 13177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13179 | shlibpath_var=LD_LIBRARY_PATH |
| 13180 | case $host_vendor in |
| 13181 | sni) |
| 13182 | shlibpath_overrides_runpath=no |
| 13183 | need_lib_prefix=no |
| 13184 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13185 | runpath_var=LD_RUN_PATH |
| 13186 | ;; |
| 13187 | siemens) |
| 13188 | need_lib_prefix=no |
| 13189 | ;; |
| 13190 | motorola) |
| 13191 | need_lib_prefix=no |
| 13192 | need_version=no |
| 13193 | shlibpath_overrides_runpath=no |
| 13194 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13195 | ;; |
| 13196 | esac |
| 13197 | ;; |
| 13198 | |
| 13199 | sysv4*MP*) |
| 13200 | if test -d /usr/nec ;then |
| 13201 | version_type=linux |
| 13202 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13203 | soname_spec='$libname${shared_ext}.$major' |
| 13204 | shlibpath_var=LD_LIBRARY_PATH |
| 13205 | fi |
| 13206 | ;; |
| 13207 | |
| 13208 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13209 | version_type=freebsd-elf |
| 13210 | need_lib_prefix=no |
| 13211 | need_version=no |
| 13212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13213 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13214 | shlibpath_var=LD_LIBRARY_PATH |
| 13215 | hardcode_into_libs=yes |
| 13216 | if test "$with_gnu_ld" = yes; then |
| 13217 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13218 | shlibpath_overrides_runpath=no |
| 13219 | else |
| 13220 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13221 | shlibpath_overrides_runpath=yes |
| 13222 | case $host_os in |
| 13223 | sco3.2v5*) |
| 13224 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13225 | ;; |
| 13226 | esac |
| 13227 | fi |
| 13228 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13229 | ;; |
| 13230 | |
| 13231 | uts4*) |
| 13232 | version_type=linux |
| 13233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13234 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13235 | shlibpath_var=LD_LIBRARY_PATH |
| 13236 | ;; |
| 13237 | |
| 13238 | *) |
| 13239 | dynamic_linker=no |
| 13240 | ;; |
| 13241 | esac |
| 13242 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13243 | echo "${ECHO_T}$dynamic_linker" >&6; } |
| 13244 | test "$dynamic_linker" = no && can_build_shared=no |
| 13245 | |
| 13246 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13247 | if test "$GCC" = yes; then |
| 13248 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13249 | fi |
| 13250 | |
| 13251 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13252 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
| 13253 | hardcode_action_CXX= |
| 13254 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 13255 | test -n "$runpath_var_CXX" || \ |
| 13256 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 13257 | |
| 13258 | # We can hardcode non-existant directories. |
| 13259 | if test "$hardcode_direct_CXX" != no && |
| 13260 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13261 | # have to relink, otherwise we might link with an installed library |
| 13262 | # when we should be linking with a yet-to-be-installed one |
| 13263 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 13264 | test "$hardcode_minus_L_CXX" != no; then |
| 13265 | # Linking always hardcodes the temporary library directory. |
| 13266 | hardcode_action_CXX=relink |
| 13267 | else |
| 13268 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13269 | hardcode_action_CXX=immediate |
| 13270 | fi |
| 13271 | else |
| 13272 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13273 | # directories. |
| 13274 | hardcode_action_CXX=unsupported |
| 13275 | fi |
| 13276 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 13277 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
| 13278 | |
| 13279 | if test "$hardcode_action_CXX" = relink; then |
| 13280 | # Fast installation is not supported |
| 13281 | enable_fast_install=no |
| 13282 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13283 | test "$enable_shared" = no; then |
| 13284 | # Fast installation is not necessary |
| 13285 | enable_fast_install=needless |
| 13286 | fi |
| 13287 | |
| 13288 | |
| 13289 | # The else clause should only fire when bootstrapping the |
| 13290 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13291 | # with your package, and you will get complaints that there are |
| 13292 | # no rules to generate ltmain.sh. |
| 13293 | if test -f "$ltmain"; then |
| 13294 | # See if we are running on zsh, and set the options which allow our commands through |
| 13295 | # without removal of \ escapes. |
| 13296 | if test -n "${ZSH_VERSION+set}" ; then |
| 13297 | setopt NO_GLOB_SUBST |
| 13298 | fi |
| 13299 | # Now quote all the things that may contain metacharacters while being |
| 13300 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13301 | # variables and quote the copies for generation of the libtool script. |
| 13302 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 13303 | SED SHELL STRIP \ |
| 13304 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13305 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13306 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13307 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13308 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13309 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13310 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13311 | compiler_CXX \ |
| 13312 | CC_CXX \ |
| 13313 | LD_CXX \ |
| 13314 | lt_prog_compiler_wl_CXX \ |
| 13315 | lt_prog_compiler_pic_CXX \ |
| 13316 | lt_prog_compiler_static_CXX \ |
| 13317 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13318 | export_dynamic_flag_spec_CXX \ |
| 13319 | thread_safe_flag_spec_CXX \ |
| 13320 | whole_archive_flag_spec_CXX \ |
| 13321 | enable_shared_with_static_runtimes_CXX \ |
| 13322 | old_archive_cmds_CXX \ |
| 13323 | old_archive_from_new_cmds_CXX \ |
| 13324 | predep_objects_CXX \ |
| 13325 | postdep_objects_CXX \ |
| 13326 | predeps_CXX \ |
| 13327 | postdeps_CXX \ |
| 13328 | compiler_lib_search_path_CXX \ |
| 13329 | archive_cmds_CXX \ |
| 13330 | archive_expsym_cmds_CXX \ |
| 13331 | postinstall_cmds_CXX \ |
| 13332 | postuninstall_cmds_CXX \ |
| 13333 | old_archive_from_expsyms_cmds_CXX \ |
| 13334 | allow_undefined_flag_CXX \ |
| 13335 | no_undefined_flag_CXX \ |
| 13336 | export_symbols_cmds_CXX \ |
| 13337 | hardcode_libdir_flag_spec_CXX \ |
| 13338 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13339 | hardcode_libdir_separator_CXX \ |
| 13340 | hardcode_automatic_CXX \ |
| 13341 | module_cmds_CXX \ |
| 13342 | module_expsym_cmds_CXX \ |
| 13343 | lt_cv_prog_compiler_c_o_CXX \ |
| 13344 | exclude_expsyms_CXX \ |
| 13345 | include_expsyms_CXX; do |
| 13346 | |
| 13347 | case $var in |
| 13348 | old_archive_cmds_CXX | \ |
| 13349 | old_archive_from_new_cmds_CXX | \ |
| 13350 | archive_cmds_CXX | \ |
| 13351 | archive_expsym_cmds_CXX | \ |
| 13352 | module_cmds_CXX | \ |
| 13353 | module_expsym_cmds_CXX | \ |
| 13354 | old_archive_from_expsyms_cmds_CXX | \ |
| 13355 | export_symbols_cmds_CXX | \ |
| 13356 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13357 | postinstall_cmds | postuninstall_cmds | \ |
| 13358 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13359 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13360 | # Double-quote double-evaled strings. |
| 13361 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13362 | ;; |
| 13363 | *) |
| 13364 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13365 | ;; |
| 13366 | esac |
| 13367 | done |
| 13368 | |
| 13369 | case $lt_echo in |
| 13370 | *'\$0 --fallback-echo"') |
| 13371 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13372 | ;; |
| 13373 | esac |
| 13374 | |
| 13375 | cfgfile="$ofile" |
| 13376 | |
| 13377 | cat <<__EOF__ >> "$cfgfile" |
| 13378 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13379 | |
| 13380 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13381 | |
| 13382 | # Shell to use when invoking shell scripts. |
| 13383 | SHELL=$lt_SHELL |
| 13384 | |
| 13385 | # Whether or not to build shared libraries. |
| 13386 | build_libtool_libs=$enable_shared |
| 13387 | |
| 13388 | # Whether or not to build static libraries. |
| 13389 | build_old_libs=$enable_static |
| 13390 | |
| 13391 | # Whether or not to add -lc for building shared libraries. |
| 13392 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13393 | |
| 13394 | # Whether or not to disallow shared libs when runtime libs are static |
| 13395 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13396 | |
| 13397 | # Whether or not to optimize for fast installation. |
| 13398 | fast_install=$enable_fast_install |
| 13399 | |
| 13400 | # The host system. |
| 13401 | host_alias=$host_alias |
| 13402 | host=$host |
| 13403 | host_os=$host_os |
| 13404 | |
| 13405 | # The build system. |
| 13406 | build_alias=$build_alias |
| 13407 | build=$build |
| 13408 | build_os=$build_os |
| 13409 | |
| 13410 | # An echo program that does not interpret backslashes. |
| 13411 | echo=$lt_echo |
| 13412 | |
| 13413 | # The archiver. |
| 13414 | AR=$lt_AR |
| 13415 | AR_FLAGS=$lt_AR_FLAGS |
| 13416 | |
| 13417 | # A C compiler. |
| 13418 | LTCC=$lt_LTCC |
| 13419 | |
| 13420 | # LTCC compiler flags. |
| 13421 | LTCFLAGS=$lt_LTCFLAGS |
| 13422 | |
| 13423 | # A language-specific compiler. |
| 13424 | CC=$lt_compiler_CXX |
| 13425 | |
| 13426 | # Is the compiler the GNU C compiler? |
| 13427 | with_gcc=$GCC_CXX |
| 13428 | |
| 13429 | # An ERE matcher. |
| 13430 | EGREP=$lt_EGREP |
| 13431 | |
| 13432 | # The linker used to build libraries. |
| 13433 | LD=$lt_LD_CXX |
| 13434 | |
| 13435 | # Whether we need hard or soft links. |
| 13436 | LN_S=$lt_LN_S |
| 13437 | |
| 13438 | # A BSD-compatible nm program. |
| 13439 | NM=$lt_NM |
| 13440 | |
| 13441 | # A symbol stripping program |
| 13442 | STRIP=$lt_STRIP |
| 13443 | |
| 13444 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13445 | MAGIC_CMD=$MAGIC_CMD |
| 13446 | |
| 13447 | # Used on cygwin: DLL creation program. |
| 13448 | DLLTOOL="$DLLTOOL" |
| 13449 | |
| 13450 | # Used on cygwin: object dumper. |
| 13451 | OBJDUMP="$OBJDUMP" |
| 13452 | |
| 13453 | # Used on cygwin: assembler. |
| 13454 | AS="$AS" |
| 13455 | |
| 13456 | # The name of the directory that contains temporary libtool files. |
| 13457 | objdir=$objdir |
| 13458 | |
| 13459 | # How to create reloadable object files. |
| 13460 | reload_flag=$lt_reload_flag |
| 13461 | reload_cmds=$lt_reload_cmds |
| 13462 | |
| 13463 | # How to pass a linker flag through the compiler. |
| 13464 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13465 | |
| 13466 | # Object file suffix (normally "o"). |
| 13467 | objext="$ac_objext" |
| 13468 | |
| 13469 | # Old archive suffix (normally "a"). |
| 13470 | libext="$libext" |
| 13471 | |
| 13472 | # Shared library suffix (normally ".so"). |
| 13473 | shrext_cmds='$shrext_cmds' |
| 13474 | |
| 13475 | # Executable file suffix (normally ""). |
| 13476 | exeext="$exeext" |
| 13477 | |
| 13478 | # Additional compiler flags for building library objects. |
| 13479 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13480 | pic_mode=$pic_mode |
| 13481 | |
| 13482 | # What is the maximum length of a command? |
| 13483 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13484 | |
| 13485 | # Does compiler simultaneously support -c and -o options? |
| 13486 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13487 | |
| 13488 | # Must we lock files when doing compilation? |
| 13489 | need_locks=$lt_need_locks |
| 13490 | |
| 13491 | # Do we need the lib prefix for modules? |
| 13492 | need_lib_prefix=$need_lib_prefix |
| 13493 | |
| 13494 | # Do we need a version for libraries? |
| 13495 | need_version=$need_version |
| 13496 | |
| 13497 | # Whether dlopen is supported. |
| 13498 | dlopen_support=$enable_dlopen |
| 13499 | |
| 13500 | # Whether dlopen of programs is supported. |
| 13501 | dlopen_self=$enable_dlopen_self |
| 13502 | |
| 13503 | # Whether dlopen of statically linked programs is supported. |
| 13504 | dlopen_self_static=$enable_dlopen_self_static |
| 13505 | |
| 13506 | # Compiler flag to prevent dynamic linking. |
| 13507 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13508 | |
| 13509 | # Compiler flag to turn off builtin functions. |
| 13510 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13511 | |
| 13512 | # Compiler flag to allow reflexive dlopens. |
| 13513 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13514 | |
| 13515 | # Compiler flag to generate shared objects directly from archives. |
| 13516 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13517 | |
| 13518 | # Compiler flag to generate thread-safe objects. |
| 13519 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13520 | |
| 13521 | # Library versioning type. |
| 13522 | version_type=$version_type |
| 13523 | |
| 13524 | # Format of library name prefix. |
| 13525 | libname_spec=$lt_libname_spec |
| 13526 | |
| 13527 | # List of archive names. First name is the real one, the rest are links. |
| 13528 | # The last name is the one that the linker finds with -lNAME. |
| 13529 | library_names_spec=$lt_library_names_spec |
| 13530 | |
| 13531 | # The coded name of the library, if different from the real name. |
| 13532 | soname_spec=$lt_soname_spec |
| 13533 | |
| 13534 | # Commands used to build and install an old-style archive. |
| 13535 | RANLIB=$lt_RANLIB |
| 13536 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13537 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13538 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13539 | |
| 13540 | # Create an old-style archive from a shared archive. |
| 13541 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13542 | |
| 13543 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13544 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13545 | |
| 13546 | # Commands used to build and install a shared archive. |
| 13547 | archive_cmds=$lt_archive_cmds_CXX |
| 13548 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13549 | postinstall_cmds=$lt_postinstall_cmds |
| 13550 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13551 | |
| 13552 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13553 | module_cmds=$lt_module_cmds_CXX |
| 13554 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13555 | |
| 13556 | # Commands to strip libraries. |
| 13557 | old_striplib=$lt_old_striplib |
| 13558 | striplib=$lt_striplib |
| 13559 | |
| 13560 | # Dependencies to place before the objects being linked to create a |
| 13561 | # shared library. |
| 13562 | predep_objects=$lt_predep_objects_CXX |
| 13563 | |
| 13564 | # Dependencies to place after the objects being linked to create a |
| 13565 | # shared library. |
| 13566 | postdep_objects=$lt_postdep_objects_CXX |
| 13567 | |
| 13568 | # Dependencies to place before the objects being linked to create a |
| 13569 | # shared library. |
| 13570 | predeps=$lt_predeps_CXX |
| 13571 | |
| 13572 | # Dependencies to place after the objects being linked to create a |
| 13573 | # shared library. |
| 13574 | postdeps=$lt_postdeps_CXX |
| 13575 | |
| 13576 | # The library search path used internally by the compiler when linking |
| 13577 | # a shared library. |
| 13578 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13579 | |
| 13580 | # Method to check whether dependent libraries are shared objects. |
| 13581 | deplibs_check_method=$lt_deplibs_check_method |
| 13582 | |
| 13583 | # Command to use when deplibs_check_method == file_magic. |
| 13584 | file_magic_cmd=$lt_file_magic_cmd |
| 13585 | |
| 13586 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13587 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13588 | |
| 13589 | # Flag that forces no undefined symbols. |
| 13590 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13591 | |
| 13592 | # Commands used to finish a libtool library installation in a directory. |
| 13593 | finish_cmds=$lt_finish_cmds |
| 13594 | |
| 13595 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13596 | finish_eval=$lt_finish_eval |
| 13597 | |
| 13598 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13599 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13600 | |
| 13601 | # Transform the output of nm in a proper C declaration |
| 13602 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13603 | |
| 13604 | # Transform the output of nm in a C name address pair |
| 13605 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13606 | |
| 13607 | # This is the shared library runtime path variable. |
| 13608 | runpath_var=$runpath_var |
| 13609 | |
| 13610 | # This is the shared library path variable. |
| 13611 | shlibpath_var=$shlibpath_var |
| 13612 | |
| 13613 | # Is shlibpath searched before the hard-coded library search path? |
| 13614 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13615 | |
| 13616 | # How to hardcode a shared library path into an executable. |
| 13617 | hardcode_action=$hardcode_action_CXX |
| 13618 | |
| 13619 | # Whether we should hardcode library paths into libraries. |
| 13620 | hardcode_into_libs=$hardcode_into_libs |
| 13621 | |
| 13622 | # Flag to hardcode \$libdir into a binary during linking. |
| 13623 | # This must work even if \$libdir does not exist. |
| 13624 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13625 | |
| 13626 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13627 | # a binary during linking. This must work even if \$libdir does |
| 13628 | # not exist. |
| 13629 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13630 | |
| 13631 | # Whether we need a single -rpath flag with a separated argument. |
| 13632 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13633 | |
| 13634 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13635 | # resulting binary. |
| 13636 | hardcode_direct=$hardcode_direct_CXX |
| 13637 | |
| 13638 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13639 | # resulting binary. |
| 13640 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13641 | |
| 13642 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13643 | # the resulting binary. |
| 13644 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13645 | |
| 13646 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13647 | # and all subsequent libraries and executables linked against it. |
| 13648 | hardcode_automatic=$hardcode_automatic_CXX |
| 13649 | |
| 13650 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13651 | # restored at relink time. |
| 13652 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13653 | |
| 13654 | # Whether libtool must link a program against all its dependency libraries. |
| 13655 | link_all_deplibs=$link_all_deplibs_CXX |
| 13656 | |
| 13657 | # Compile-time system search path for libraries |
| 13658 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13659 | |
| 13660 | # Run-time system search path for libraries |
| 13661 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13662 | |
| 13663 | # Fix the shell variable \$srcfile for the compiler. |
| 13664 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13665 | |
| 13666 | # Set to yes if exported symbols are required. |
| 13667 | always_export_symbols=$always_export_symbols_CXX |
| 13668 | |
| 13669 | # The commands to list exported symbols. |
| 13670 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13671 | |
| 13672 | # The commands to extract the exported symbol list from a shared archive. |
| 13673 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13674 | |
| 13675 | # Symbols that should not be listed in the preloaded symbols. |
| 13676 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13677 | |
| 13678 | # Symbols that must always be exported. |
| 13679 | include_expsyms=$lt_include_expsyms_CXX |
| 13680 | |
| 13681 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13682 | |
| 13683 | __EOF__ |
| 13684 | |
| 13685 | |
| 13686 | else |
| 13687 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13688 | # `config.status --recheck' to rerun these tests and create the |
| 13689 | # libtool script then. |
| 13690 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13691 | if test -f "$ltmain_in"; then |
| 13692 | test -f Makefile && make "$ltmain" |
| 13693 | fi |
| 13694 | fi |
| 13695 | |
| 13696 | |
| 13697 | ac_ext=c |
| 13698 | ac_cpp='$CPP $CPPFLAGS' |
| 13699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13702 | |
| 13703 | CC=$lt_save_CC |
| 13704 | LDCXX=$LD |
| 13705 | LD=$lt_save_LD |
| 13706 | GCC=$lt_save_GCC |
| 13707 | with_gnu_ldcxx=$with_gnu_ld |
| 13708 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13709 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13710 | lt_cv_path_LD=$lt_save_path_LD |
| 13711 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13712 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13713 | |
| 13714 | else |
| 13715 | tagname="" |
| 13716 | fi |
| 13717 | ;; |
| 13718 | |
| 13719 | F77) |
| 13720 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13721 | |
| 13722 | ac_ext=f |
| 13723 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13724 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13725 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13726 | |
| 13727 | |
| 13728 | archive_cmds_need_lc_F77=no |
| 13729 | allow_undefined_flag_F77= |
| 13730 | always_export_symbols_F77=no |
| 13731 | archive_expsym_cmds_F77= |
| 13732 | export_dynamic_flag_spec_F77= |
| 13733 | hardcode_direct_F77=no |
| 13734 | hardcode_libdir_flag_spec_F77= |
| 13735 | hardcode_libdir_flag_spec_ld_F77= |
| 13736 | hardcode_libdir_separator_F77= |
| 13737 | hardcode_minus_L_F77=no |
| 13738 | hardcode_automatic_F77=no |
| 13739 | module_cmds_F77= |
| 13740 | module_expsym_cmds_F77= |
| 13741 | link_all_deplibs_F77=unknown |
| 13742 | old_archive_cmds_F77=$old_archive_cmds |
| 13743 | no_undefined_flag_F77= |
| 13744 | whole_archive_flag_spec_F77= |
| 13745 | enable_shared_with_static_runtimes_F77=no |
| 13746 | |
| 13747 | # Source file extension for f77 test sources. |
| 13748 | ac_ext=f |
| 13749 | |
| 13750 | # Object file extension for compiled f77 test sources. |
| 13751 | objext=o |
| 13752 | objext_F77=$objext |
| 13753 | |
| 13754 | # Code to be used in simple compile tests |
| 13755 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13756 | |
| 13757 | # Code to be used in simple link tests |
| 13758 | lt_simple_link_test_code=" program t\n end\n" |
| 13759 | |
| 13760 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13761 | |
| 13762 | # If no C compiler was specified, use CC. |
| 13763 | LTCC=${LTCC-"$CC"} |
| 13764 | |
| 13765 | # If no C compiler flags were specified, use CFLAGS. |
| 13766 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13767 | |
| 13768 | # Allow CC to be a program name with arguments. |
| 13769 | compiler=$CC |
| 13770 | |
| 13771 | |
| 13772 | # save warnings/boilerplate of simple test code |
| 13773 | ac_outfile=conftest.$ac_objext |
| 13774 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13775 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13776 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13777 | $rm conftest* |
| 13778 | |
| 13779 | ac_outfile=conftest.$ac_objext |
| 13780 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13781 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13782 | _lt_linker_boilerplate=`cat conftest.err` |
| 13783 | $rm conftest* |
| 13784 | |
| 13785 | |
| 13786 | # Allow CC to be a program name with arguments. |
| 13787 | lt_save_CC="$CC" |
| 13788 | CC=${F77-"f77"} |
| 13789 | compiler=$CC |
| 13790 | compiler_F77=$CC |
| 13791 | for cc_temp in $compiler""; do |
| 13792 | case $cc_temp in |
| 13793 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13794 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13795 | \-*) ;; |
| 13796 | *) break;; |
| 13797 | esac |
| 13798 | done |
| 13799 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13800 | |
| 13801 | |
| 13802 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 13803 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 13804 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 13805 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 13806 | |
| 13807 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 13808 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
| 13809 | test "$can_build_shared" = "no" && enable_shared=no |
| 13810 | |
| 13811 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13812 | # are all built from PIC. |
| 13813 | case $host_os in |
| 13814 | aix3*) |
| 13815 | test "$enable_shared" = yes && enable_static=no |
| 13816 | if test -n "$RANLIB"; then |
| 13817 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13818 | postinstall_cmds='$RANLIB $lib' |
| 13819 | fi |
| 13820 | ;; |
| 13821 | aix4* | aix5*) |
| 13822 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 13823 | test "$enable_shared" = yes && enable_static=no |
| 13824 | fi |
| 13825 | ;; |
| 13826 | esac |
| 13827 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 13828 | echo "${ECHO_T}$enable_shared" >&6; } |
| 13829 | |
| 13830 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 13831 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
| 13832 | # Make sure either enable_shared or enable_static is yes. |
| 13833 | test "$enable_shared" = yes || enable_static=yes |
| 13834 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 13835 | echo "${ECHO_T}$enable_static" >&6; } |
| 13836 | |
| 13837 | GCC_F77="$G77" |
| 13838 | LD_F77="$LD" |
| 13839 | |
| 13840 | lt_prog_compiler_wl_F77= |
| 13841 | lt_prog_compiler_pic_F77= |
| 13842 | lt_prog_compiler_static_F77= |
| 13843 | |
| 13844 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13845 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
| 13846 | |
| 13847 | if test "$GCC" = yes; then |
| 13848 | lt_prog_compiler_wl_F77='-Wl,' |
| 13849 | lt_prog_compiler_static_F77='-static' |
| 13850 | |
| 13851 | case $host_os in |
| 13852 | aix*) |
| 13853 | # All AIX code is PIC. |
| 13854 | if test "$host_cpu" = ia64; then |
| 13855 | # AIX 5 now supports IA64 processor |
| 13856 | lt_prog_compiler_static_F77='-Bstatic' |
| 13857 | fi |
| 13858 | ;; |
| 13859 | |
| 13860 | amigaos*) |
| 13861 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13862 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13863 | # like `-m68040'. |
| 13864 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13865 | ;; |
| 13866 | |
| 13867 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13868 | # PIC is the default for these OSes. |
| 13869 | ;; |
| 13870 | |
| 13871 | mingw* | pw32* | os2*) |
| 13872 | # This hack is so that the source file can tell whether it is being |
| 13873 | # built for inclusion in a dll (and should export symbols for example). |
| 13874 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13875 | ;; |
| 13876 | |
| 13877 | darwin* | rhapsody*) |
| 13878 | # PIC is the default on this platform |
| 13879 | # Common symbols not allowed in MH_DYLIB files |
| 13880 | lt_prog_compiler_pic_F77='-fno-common' |
| 13881 | ;; |
| 13882 | |
| 13883 | interix3*) |
| 13884 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13885 | # Instead, we relocate shared libraries at runtime. |
| 13886 | ;; |
| 13887 | |
| 13888 | msdosdjgpp*) |
| 13889 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13890 | # on systems that don't support them. |
| 13891 | lt_prog_compiler_can_build_shared_F77=no |
| 13892 | enable_shared=no |
| 13893 | ;; |
| 13894 | |
| 13895 | sysv4*MP*) |
| 13896 | if test -d /usr/nec; then |
| 13897 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13898 | fi |
| 13899 | ;; |
| 13900 | |
| 13901 | hpux*) |
| 13902 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13903 | # not for PA HP-UX. |
| 13904 | case $host_cpu in |
| 13905 | hppa*64*|ia64*) |
| 13906 | # +Z the default |
| 13907 | ;; |
| 13908 | *) |
| 13909 | lt_prog_compiler_pic_F77='-fPIC' |
| 13910 | ;; |
| 13911 | esac |
| 13912 | ;; |
| 13913 | |
| 13914 | *) |
| 13915 | lt_prog_compiler_pic_F77='-fPIC' |
| 13916 | ;; |
| 13917 | esac |
| 13918 | else |
| 13919 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13920 | case $host_os in |
| 13921 | aix*) |
| 13922 | lt_prog_compiler_wl_F77='-Wl,' |
| 13923 | if test "$host_cpu" = ia64; then |
| 13924 | # AIX 5 now supports IA64 processor |
| 13925 | lt_prog_compiler_static_F77='-Bstatic' |
| 13926 | else |
| 13927 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13928 | fi |
| 13929 | ;; |
| 13930 | darwin*) |
| 13931 | # PIC is the default on this platform |
| 13932 | # Common symbols not allowed in MH_DYLIB files |
| 13933 | case $cc_basename in |
| 13934 | xlc*) |
| 13935 | lt_prog_compiler_pic_F77='-qnocommon' |
| 13936 | lt_prog_compiler_wl_F77='-Wl,' |
| 13937 | ;; |
| 13938 | esac |
| 13939 | ;; |
| 13940 | |
| 13941 | mingw* | pw32* | os2*) |
| 13942 | # This hack is so that the source file can tell whether it is being |
| 13943 | # built for inclusion in a dll (and should export symbols for example). |
| 13944 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13945 | ;; |
| 13946 | |
| 13947 | hpux9* | hpux10* | hpux11*) |
| 13948 | lt_prog_compiler_wl_F77='-Wl,' |
| 13949 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13950 | # not for PA HP-UX. |
| 13951 | case $host_cpu in |
| 13952 | hppa*64*|ia64*) |
| 13953 | # +Z the default |
| 13954 | ;; |
| 13955 | *) |
| 13956 | lt_prog_compiler_pic_F77='+Z' |
| 13957 | ;; |
| 13958 | esac |
| 13959 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13960 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13961 | ;; |
| 13962 | |
| 13963 | irix5* | irix6* | nonstopux*) |
| 13964 | lt_prog_compiler_wl_F77='-Wl,' |
| 13965 | # PIC (with -KPIC) is the default. |
| 13966 | lt_prog_compiler_static_F77='-non_shared' |
| 13967 | ;; |
| 13968 | |
| 13969 | newsos6) |
| 13970 | lt_prog_compiler_pic_F77='-KPIC' |
| 13971 | lt_prog_compiler_static_F77='-Bstatic' |
| 13972 | ;; |
| 13973 | |
| 13974 | linux*) |
| 13975 | case $cc_basename in |
| 13976 | icc* | ecc*) |
| 13977 | lt_prog_compiler_wl_F77='-Wl,' |
| 13978 | lt_prog_compiler_pic_F77='-KPIC' |
| 13979 | lt_prog_compiler_static_F77='-static' |
| 13980 | ;; |
| 13981 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 13982 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 13983 | # which looks to be a dead project) |
| 13984 | lt_prog_compiler_wl_F77='-Wl,' |
| 13985 | lt_prog_compiler_pic_F77='-fpic' |
| 13986 | lt_prog_compiler_static_F77='-Bstatic' |
| 13987 | ;; |
| 13988 | ccc*) |
| 13989 | lt_prog_compiler_wl_F77='-Wl,' |
| 13990 | # All Alpha code is PIC. |
| 13991 | lt_prog_compiler_static_F77='-non_shared' |
| 13992 | ;; |
| 13993 | esac |
| 13994 | ;; |
| 13995 | |
| 13996 | osf3* | osf4* | osf5*) |
| 13997 | lt_prog_compiler_wl_F77='-Wl,' |
| 13998 | # All OSF/1 code is PIC. |
| 13999 | lt_prog_compiler_static_F77='-non_shared' |
| 14000 | ;; |
| 14001 | |
| 14002 | solaris*) |
| 14003 | lt_prog_compiler_pic_F77='-KPIC' |
| 14004 | lt_prog_compiler_static_F77='-Bstatic' |
| 14005 | case $cc_basename in |
| 14006 | f77* | f90* | f95*) |
| 14007 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 14008 | *) |
| 14009 | lt_prog_compiler_wl_F77='-Wl,';; |
| 14010 | esac |
| 14011 | ;; |
| 14012 | |
| 14013 | sunos4*) |
| 14014 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14015 | lt_prog_compiler_pic_F77='-PIC' |
| 14016 | lt_prog_compiler_static_F77='-Bstatic' |
| 14017 | ;; |
| 14018 | |
| 14019 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 14020 | lt_prog_compiler_wl_F77='-Wl,' |
| 14021 | lt_prog_compiler_pic_F77='-KPIC' |
| 14022 | lt_prog_compiler_static_F77='-Bstatic' |
| 14023 | ;; |
| 14024 | |
| 14025 | sysv4*MP*) |
| 14026 | if test -d /usr/nec ;then |
| 14027 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14028 | lt_prog_compiler_static_F77='-Bstatic' |
| 14029 | fi |
| 14030 | ;; |
| 14031 | |
| 14032 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14033 | lt_prog_compiler_wl_F77='-Wl,' |
| 14034 | lt_prog_compiler_pic_F77='-KPIC' |
| 14035 | lt_prog_compiler_static_F77='-Bstatic' |
| 14036 | ;; |
| 14037 | |
| 14038 | unicos*) |
| 14039 | lt_prog_compiler_wl_F77='-Wl,' |
| 14040 | lt_prog_compiler_can_build_shared_F77=no |
| 14041 | ;; |
| 14042 | |
| 14043 | uts4*) |
| 14044 | lt_prog_compiler_pic_F77='-pic' |
| 14045 | lt_prog_compiler_static_F77='-Bstatic' |
| 14046 | ;; |
| 14047 | |
| 14048 | *) |
| 14049 | lt_prog_compiler_can_build_shared_F77=no |
| 14050 | ;; |
| 14051 | esac |
| 14052 | fi |
| 14053 | |
| 14054 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14055 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
| 14056 | |
| 14057 | # |
| 14058 | # Check to make sure the PIC flag actually works. |
| 14059 | # |
| 14060 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 14061 | |
| 14062 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14063 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
| 14064 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14066 | else |
| 14067 | lt_prog_compiler_pic_works_F77=no |
| 14068 | ac_outfile=conftest.$ac_objext |
| 14069 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14070 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14071 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14072 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14073 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14074 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14075 | # The option is referenced via a variable to avoid confusing sed. |
| 14076 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14077 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14078 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14079 | -e 's:$: $lt_compiler_flag:'` |
| 14080 | (eval echo "\"\$as_me:14080: $lt_compile\"" >&5) |
| 14081 | (eval "$lt_compile" 2>conftest.err) |
| 14082 | ac_status=$? |
| 14083 | cat conftest.err >&5 |
| 14084 | echo "$as_me:14084: \$? = $ac_status" >&5 |
| 14085 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14086 | # The compiler can only warn and ignore the option if not recognized |
| 14087 | # So say no if there are warnings other than the usual output. |
| 14088 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14089 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14090 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14091 | lt_prog_compiler_pic_works_F77=yes |
| 14092 | fi |
| 14093 | fi |
| 14094 | $rm conftest* |
| 14095 | |
| 14096 | fi |
| 14097 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14098 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
| 14099 | |
| 14100 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14101 | case $lt_prog_compiler_pic_F77 in |
| 14102 | "" | " "*) ;; |
| 14103 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14104 | esac |
| 14105 | else |
| 14106 | lt_prog_compiler_pic_F77= |
| 14107 | lt_prog_compiler_can_build_shared_F77=no |
| 14108 | fi |
| 14109 | |
| 14110 | fi |
| 14111 | case $host_os in |
| 14112 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14113 | *djgpp*) |
| 14114 | lt_prog_compiler_pic_F77= |
| 14115 | ;; |
| 14116 | *) |
| 14117 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14118 | ;; |
| 14119 | esac |
| 14120 | |
| 14121 | # |
| 14122 | # Check to make sure the static flag actually works. |
| 14123 | # |
| 14124 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 14125 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14126 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14127 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 14128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14129 | else |
| 14130 | lt_prog_compiler_static_works_F77=no |
| 14131 | save_LDFLAGS="$LDFLAGS" |
| 14132 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14133 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14134 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14135 | # The linker can only warn and ignore the option if not recognized |
| 14136 | # So say no if there are warnings |
| 14137 | if test -s conftest.err; then |
| 14138 | # Append any errors to the config.log. |
| 14139 | cat conftest.err 1>&5 |
| 14140 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14141 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14142 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14143 | lt_prog_compiler_static_works_F77=yes |
| 14144 | fi |
| 14145 | else |
| 14146 | lt_prog_compiler_static_works_F77=yes |
| 14147 | fi |
| 14148 | fi |
| 14149 | $rm conftest* |
| 14150 | LDFLAGS="$save_LDFLAGS" |
| 14151 | |
| 14152 | fi |
| 14153 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 14154 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 14155 | |
| 14156 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 14157 | : |
| 14158 | else |
| 14159 | lt_prog_compiler_static_F77= |
| 14160 | fi |
| 14161 | |
| 14162 | |
| 14163 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14164 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 14165 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14167 | else |
| 14168 | lt_cv_prog_compiler_c_o_F77=no |
| 14169 | $rm -r conftest 2>/dev/null |
| 14170 | mkdir conftest |
| 14171 | cd conftest |
| 14172 | mkdir out |
| 14173 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14174 | |
| 14175 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14176 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14177 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14178 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14179 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14180 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14181 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14182 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14183 | -e 's:$: $lt_compiler_flag:'` |
| 14184 | (eval echo "\"\$as_me:14184: $lt_compile\"" >&5) |
| 14185 | (eval "$lt_compile" 2>out/conftest.err) |
| 14186 | ac_status=$? |
| 14187 | cat out/conftest.err >&5 |
| 14188 | echo "$as_me:14188: \$? = $ac_status" >&5 |
| 14189 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14190 | then |
| 14191 | # The compiler can only warn and ignore the option if not recognized |
| 14192 | # So say no if there are warnings |
| 14193 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14194 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14195 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14196 | lt_cv_prog_compiler_c_o_F77=yes |
| 14197 | fi |
| 14198 | fi |
| 14199 | chmod u+w . 2>&5 |
| 14200 | $rm conftest* |
| 14201 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14202 | # template instantiation |
| 14203 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14204 | $rm out/* && rmdir out |
| 14205 | cd .. |
| 14206 | rmdir conftest |
| 14207 | $rm conftest* |
| 14208 | |
| 14209 | fi |
| 14210 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14211 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
| 14212 | |
| 14213 | |
| 14214 | hard_links="nottested" |
| 14215 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14216 | # do not overwrite the value of need_locks provided by the user |
| 14217 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14218 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
| 14219 | hard_links=yes |
| 14220 | $rm conftest* |
| 14221 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14222 | touch conftest.a |
| 14223 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14224 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14225 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14226 | echo "${ECHO_T}$hard_links" >&6; } |
| 14227 | if test "$hard_links" = no; then |
| 14228 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14229 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14230 | need_locks=warn |
| 14231 | fi |
| 14232 | else |
| 14233 | need_locks=no |
| 14234 | fi |
| 14235 | |
| 14236 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14237 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
| 14238 | |
| 14239 | runpath_var= |
| 14240 | allow_undefined_flag_F77= |
| 14241 | enable_shared_with_static_runtimes_F77=no |
| 14242 | archive_cmds_F77= |
| 14243 | archive_expsym_cmds_F77= |
| 14244 | old_archive_From_new_cmds_F77= |
| 14245 | old_archive_from_expsyms_cmds_F77= |
| 14246 | export_dynamic_flag_spec_F77= |
| 14247 | whole_archive_flag_spec_F77= |
| 14248 | thread_safe_flag_spec_F77= |
| 14249 | hardcode_libdir_flag_spec_F77= |
| 14250 | hardcode_libdir_flag_spec_ld_F77= |
| 14251 | hardcode_libdir_separator_F77= |
| 14252 | hardcode_direct_F77=no |
| 14253 | hardcode_minus_L_F77=no |
| 14254 | hardcode_shlibpath_var_F77=unsupported |
| 14255 | link_all_deplibs_F77=unknown |
| 14256 | hardcode_automatic_F77=no |
| 14257 | module_cmds_F77= |
| 14258 | module_expsym_cmds_F77= |
| 14259 | always_export_symbols_F77=no |
| 14260 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14261 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14262 | # included in the symbol list |
| 14263 | include_expsyms_F77= |
| 14264 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14265 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14266 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14267 | # as well as any symbol that contains `d'. |
| 14268 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14269 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14270 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14271 | # the symbol is explicitly referenced. Since portable code cannot |
| 14272 | # rely on this symbol name, it's probably fine to never include it in |
| 14273 | # preloaded symbol tables. |
| 14274 | extract_expsyms_cmds= |
| 14275 | # Just being paranoid about ensuring that cc_basename is set. |
| 14276 | for cc_temp in $compiler""; do |
| 14277 | case $cc_temp in |
| 14278 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14279 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14280 | \-*) ;; |
| 14281 | *) break;; |
| 14282 | esac |
| 14283 | done |
| 14284 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 14285 | |
| 14286 | case $host_os in |
| 14287 | cygwin* | mingw* | pw32*) |
| 14288 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14289 | # When not using gcc, we currently assume that we are using |
| 14290 | # Microsoft Visual C++. |
| 14291 | if test "$GCC" != yes; then |
| 14292 | with_gnu_ld=no |
| 14293 | fi |
| 14294 | ;; |
| 14295 | interix*) |
| 14296 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14297 | with_gnu_ld=yes |
| 14298 | ;; |
| 14299 | openbsd*) |
| 14300 | with_gnu_ld=no |
| 14301 | ;; |
| 14302 | esac |
| 14303 | |
| 14304 | ld_shlibs_F77=yes |
| 14305 | if test "$with_gnu_ld" = yes; then |
| 14306 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14307 | wlarc='${wl}' |
| 14308 | |
| 14309 | # Set some defaults for GNU ld with shared library support. These |
| 14310 | # are reset later if shared libraries are not supported. Putting them |
| 14311 | # here allows them to be overridden if necessary. |
| 14312 | runpath_var=LD_RUN_PATH |
| 14313 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14314 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14315 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14316 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14317 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14318 | else |
| 14319 | whole_archive_flag_spec_F77= |
| 14320 | fi |
| 14321 | supports_anon_versioning=no |
| 14322 | case `$LD -v 2>/dev/null` in |
| 14323 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14324 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14325 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14326 | *\ 2.11.*) ;; # other 2.11 versions |
| 14327 | *) supports_anon_versioning=yes ;; |
| 14328 | esac |
| 14329 | |
| 14330 | # See if GNU ld supports shared libraries. |
| 14331 | case $host_os in |
| 14332 | aix3* | aix4* | aix5*) |
| 14333 | # On AIX/PPC, the GNU linker is very broken |
| 14334 | if test "$host_cpu" != ia64; then |
| 14335 | ld_shlibs_F77=no |
| 14336 | cat <<EOF 1>&2 |
| 14337 | |
| 14338 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14339 | *** to be unable to reliably create shared libraries on AIX. |
| 14340 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14341 | *** really care for shared libraries, you may want to modify your PATH |
| 14342 | *** so that a non-GNU linker is found, and then restart. |
| 14343 | |
| 14344 | EOF |
| 14345 | fi |
| 14346 | ;; |
| 14347 | |
| 14348 | amigaos*) |
| 14349 | archive_cmds_F77='$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)' |
| 14350 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14351 | hardcode_minus_L_F77=yes |
| 14352 | |
| 14353 | # Samuel A. Falvo II <[email protected]> reports |
| 14354 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14355 | # to version 4, is to share data among multiple programs linked |
| 14356 | # with the same dynamic library. Since this doesn't match the |
| 14357 | # behavior of shared libraries on other platforms, we can't use |
| 14358 | # them. |
| 14359 | ld_shlibs_F77=no |
| 14360 | ;; |
| 14361 | |
| 14362 | beos*) |
| 14363 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14364 | allow_undefined_flag_F77=unsupported |
| 14365 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 14366 | # support --undefined. This deserves some investigation. FIXME |
| 14367 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14368 | else |
| 14369 | ld_shlibs_F77=no |
| 14370 | fi |
| 14371 | ;; |
| 14372 | |
| 14373 | cygwin* | mingw* | pw32*) |
| 14374 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14375 | # as there is no search path for DLLs. |
| 14376 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14377 | allow_undefined_flag_F77=unsupported |
| 14378 | always_export_symbols_F77=no |
| 14379 | enable_shared_with_static_runtimes_F77=yes |
| 14380 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 14381 | |
| 14382 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 14383 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14384 | # If the export-symbols file already is a .def file (1st line |
| 14385 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14386 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14387 | cp $export_symbols $output_objdir/$soname.def; |
| 14388 | else |
| 14389 | echo EXPORTS > $output_objdir/$soname.def; |
| 14390 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14391 | fi~ |
| 14392 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14393 | else |
| 14394 | ld_shlibs_F77=no |
| 14395 | fi |
| 14396 | ;; |
| 14397 | |
| 14398 | interix3*) |
| 14399 | hardcode_direct_F77=no |
| 14400 | hardcode_shlibpath_var_F77=no |
| 14401 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14402 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14403 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14404 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14405 | # default) and relocated if they conflict, which is a slow very memory |
| 14406 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14407 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14408 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14409 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14410 | archive_expsym_cmds_F77='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' |
| 14411 | ;; |
| 14412 | |
| 14413 | linux*) |
| 14414 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14415 | tmp_addflag= |
| 14416 | case $cc_basename,$host_cpu in |
| 14417 | pgcc*) # Portland Group C compiler |
| 14418 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14419 | tmp_addflag=' $pic_flag' |
| 14420 | ;; |
| 14421 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14422 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14423 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14424 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14425 | tmp_addflag=' -i_dynamic' ;; |
| 14426 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14427 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14428 | ifc* | ifort*) # Intel Fortran compiler |
| 14429 | tmp_addflag=' -nofor_main' ;; |
| 14430 | esac |
| 14431 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14432 | |
| 14433 | if test $supports_anon_versioning = yes; then |
| 14434 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14435 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14436 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14437 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14438 | fi |
| 14439 | else |
| 14440 | ld_shlibs_F77=no |
| 14441 | fi |
| 14442 | ;; |
| 14443 | |
| 14444 | netbsd*) |
| 14445 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14446 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14447 | wlarc= |
| 14448 | else |
| 14449 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14450 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14451 | fi |
| 14452 | ;; |
| 14453 | |
| 14454 | solaris*) |
| 14455 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14456 | ld_shlibs_F77=no |
| 14457 | cat <<EOF 1>&2 |
| 14458 | |
| 14459 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14460 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14461 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14462 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14463 | *** your PATH or compiler configuration so that the native linker is |
| 14464 | *** used, and then restart. |
| 14465 | |
| 14466 | EOF |
| 14467 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14468 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14469 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14470 | else |
| 14471 | ld_shlibs_F77=no |
| 14472 | fi |
| 14473 | ;; |
| 14474 | |
| 14475 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14476 | case `$LD -v 2>&1` in |
| 14477 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14478 | ld_shlibs_F77=no |
| 14479 | cat <<_LT_EOF 1>&2 |
| 14480 | |
| 14481 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14482 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14483 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14484 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14485 | *** your PATH or compiler configuration so that the native linker is |
| 14486 | *** used, and then restart. |
| 14487 | |
| 14488 | _LT_EOF |
| 14489 | ;; |
| 14490 | *) |
| 14491 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14492 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14493 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14494 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14495 | else |
| 14496 | ld_shlibs_F77=no |
| 14497 | fi |
| 14498 | ;; |
| 14499 | esac |
| 14500 | ;; |
| 14501 | |
| 14502 | sunos4*) |
| 14503 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14504 | wlarc= |
| 14505 | hardcode_direct_F77=yes |
| 14506 | hardcode_shlibpath_var_F77=no |
| 14507 | ;; |
| 14508 | |
| 14509 | *) |
| 14510 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14511 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14512 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14513 | else |
| 14514 | ld_shlibs_F77=no |
| 14515 | fi |
| 14516 | ;; |
| 14517 | esac |
| 14518 | |
| 14519 | if test "$ld_shlibs_F77" = no; then |
| 14520 | runpath_var= |
| 14521 | hardcode_libdir_flag_spec_F77= |
| 14522 | export_dynamic_flag_spec_F77= |
| 14523 | whole_archive_flag_spec_F77= |
| 14524 | fi |
| 14525 | else |
| 14526 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14527 | case $host_os in |
| 14528 | aix3*) |
| 14529 | allow_undefined_flag_F77=unsupported |
| 14530 | always_export_symbols_F77=yes |
| 14531 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 14532 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14533 | # are no directories specified by -L. |
| 14534 | hardcode_minus_L_F77=yes |
| 14535 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 14536 | # Neither direct hardcoding nor static linking is supported with a |
| 14537 | # broken collect2. |
| 14538 | hardcode_direct_F77=unsupported |
| 14539 | fi |
| 14540 | ;; |
| 14541 | |
| 14542 | aix4* | aix5*) |
| 14543 | if test "$host_cpu" = ia64; then |
| 14544 | # On IA64, the linker does run time linking by default, so we don't |
| 14545 | # have to do anything special. |
| 14546 | aix_use_runtimelinking=no |
| 14547 | exp_sym_flag='-Bexport' |
| 14548 | no_entry_flag="" |
| 14549 | else |
| 14550 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14551 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14552 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14553 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 14554 | else |
| 14555 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 14556 | fi |
| 14557 | aix_use_runtimelinking=no |
| 14558 | |
| 14559 | # Test if we are trying to use run time linking or normal |
| 14560 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14561 | # need to do runtime linking. |
| 14562 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14563 | for ld_flag in $LDFLAGS; do |
| 14564 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14565 | aix_use_runtimelinking=yes |
| 14566 | break |
| 14567 | fi |
| 14568 | done |
| 14569 | ;; |
| 14570 | esac |
| 14571 | |
| 14572 | exp_sym_flag='-bexport' |
| 14573 | no_entry_flag='-bnoentry' |
| 14574 | fi |
| 14575 | |
| 14576 | # When large executables or shared objects are built, AIX ld can |
| 14577 | # have problems creating the table of contents. If linking a library |
| 14578 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14579 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14580 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14581 | |
| 14582 | archive_cmds_F77='' |
| 14583 | hardcode_direct_F77=yes |
| 14584 | hardcode_libdir_separator_F77=':' |
| 14585 | link_all_deplibs_F77=yes |
| 14586 | |
| 14587 | if test "$GCC" = yes; then |
| 14588 | case $host_os in aix4.[012]|aix4.[012].*) |
| 14589 | # We only want to do this on AIX 4.2 and lower, the check |
| 14590 | # below for broken collect2 doesn't work under 4.3+ |
| 14591 | collect2name=`${CC} -print-prog-name=collect2` |
| 14592 | if test -f "$collect2name" && \ |
| 14593 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14594 | then |
| 14595 | # We have reworked collect2 |
| 14596 | hardcode_direct_F77=yes |
| 14597 | else |
| 14598 | # We have old collect2 |
| 14599 | hardcode_direct_F77=unsupported |
| 14600 | # It fails to find uninstalled libraries when the uninstalled |
| 14601 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14602 | # to unsupported forces relinking |
| 14603 | hardcode_minus_L_F77=yes |
| 14604 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14605 | hardcode_libdir_separator_F77= |
| 14606 | fi |
| 14607 | ;; |
| 14608 | esac |
| 14609 | shared_flag='-shared' |
| 14610 | if test "$aix_use_runtimelinking" = yes; then |
| 14611 | shared_flag="$shared_flag "'${wl}-G' |
| 14612 | fi |
| 14613 | else |
| 14614 | # not using gcc |
| 14615 | if test "$host_cpu" = ia64; then |
| 14616 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14617 | # chokes on -Wl,-G. The following line is correct: |
| 14618 | shared_flag='-G' |
| 14619 | else |
| 14620 | if test "$aix_use_runtimelinking" = yes; then |
| 14621 | shared_flag='${wl}-G' |
| 14622 | else |
| 14623 | shared_flag='${wl}-bM:SRE' |
| 14624 | fi |
| 14625 | fi |
| 14626 | fi |
| 14627 | |
| 14628 | # It seems that -bexpall does not export symbols beginning with |
| 14629 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14630 | always_export_symbols_F77=yes |
| 14631 | if test "$aix_use_runtimelinking" = yes; then |
| 14632 | # Warning - without using the other runtime loading flags (-brtl), |
| 14633 | # -berok will link without error, but may produce a broken library. |
| 14634 | allow_undefined_flag_F77='-berok' |
| 14635 | # Determine the default libpath from the value encoded in an empty executable. |
| 14636 | cat >conftest.$ac_ext <<_ACEOF |
| 14637 | program main |
| 14638 | |
| 14639 | end |
| 14640 | _ACEOF |
| 14641 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14642 | if { (ac_try="$ac_link" |
| 14643 | case "(($ac_try" in |
| 14644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14645 | *) ac_try_echo=$ac_try;; |
| 14646 | esac |
| 14647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14648 | (eval "$ac_link") 2>conftest.er1 |
| 14649 | ac_status=$? |
| 14650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14651 | rm -f conftest.er1 |
| 14652 | cat conftest.err >&5 |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); } && |
| 14655 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14656 | { (case "(($ac_try" in |
| 14657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14658 | *) ac_try_echo=$ac_try;; |
| 14659 | esac |
| 14660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14661 | (eval "$ac_try") 2>&5 |
| 14662 | ac_status=$? |
| 14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14664 | (exit $ac_status); }; } && |
| 14665 | { ac_try='test -s conftest$ac_exeext' |
| 14666 | { (case "(($ac_try" in |
| 14667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14668 | *) ac_try_echo=$ac_try;; |
| 14669 | esac |
| 14670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14671 | (eval "$ac_try") 2>&5 |
| 14672 | ac_status=$? |
| 14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14674 | (exit $ac_status); }; }; then |
| 14675 | |
| 14676 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14677 | }'` |
| 14678 | # Check for a 64-bit object if we didn't find anything. |
| 14679 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14680 | }'`; fi |
| 14681 | else |
| 14682 | echo "$as_me: failed program was:" >&5 |
| 14683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14684 | |
| 14685 | |
| 14686 | fi |
| 14687 | |
| 14688 | rm -f core conftest.err conftest.$ac_objext \ |
| 14689 | conftest$ac_exeext conftest.$ac_ext |
| 14690 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14691 | |
| 14692 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14693 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 14694 | else |
| 14695 | if test "$host_cpu" = ia64; then |
| 14696 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14697 | allow_undefined_flag_F77="-z nodefs" |
| 14698 | archive_expsym_cmds_F77="\$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" |
| 14699 | else |
| 14700 | # Determine the default libpath from the value encoded in an empty executable. |
| 14701 | cat >conftest.$ac_ext <<_ACEOF |
| 14702 | program main |
| 14703 | |
| 14704 | end |
| 14705 | _ACEOF |
| 14706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14707 | if { (ac_try="$ac_link" |
| 14708 | case "(($ac_try" in |
| 14709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14710 | *) ac_try_echo=$ac_try;; |
| 14711 | esac |
| 14712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14713 | (eval "$ac_link") 2>conftest.er1 |
| 14714 | ac_status=$? |
| 14715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14716 | rm -f conftest.er1 |
| 14717 | cat conftest.err >&5 |
| 14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14719 | (exit $ac_status); } && |
| 14720 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14721 | { (case "(($ac_try" in |
| 14722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14723 | *) ac_try_echo=$ac_try;; |
| 14724 | esac |
| 14725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14726 | (eval "$ac_try") 2>&5 |
| 14727 | ac_status=$? |
| 14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14729 | (exit $ac_status); }; } && |
| 14730 | { ac_try='test -s conftest$ac_exeext' |
| 14731 | { (case "(($ac_try" in |
| 14732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14733 | *) ac_try_echo=$ac_try;; |
| 14734 | esac |
| 14735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14736 | (eval "$ac_try") 2>&5 |
| 14737 | ac_status=$? |
| 14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14739 | (exit $ac_status); }; }; then |
| 14740 | |
| 14741 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14742 | }'` |
| 14743 | # Check for a 64-bit object if we didn't find anything. |
| 14744 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14745 | }'`; fi |
| 14746 | else |
| 14747 | echo "$as_me: failed program was:" >&5 |
| 14748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14749 | |
| 14750 | |
| 14751 | fi |
| 14752 | |
| 14753 | rm -f core conftest.err conftest.$ac_objext \ |
| 14754 | conftest$ac_exeext conftest.$ac_ext |
| 14755 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14756 | |
| 14757 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14758 | # Warning - without using the other run time loading flags, |
| 14759 | # -berok will link without error, but may produce a broken library. |
| 14760 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 14761 | allow_undefined_flag_F77=' ${wl}-berok' |
| 14762 | # Exported symbols can be pulled into shared objects from archives |
| 14763 | whole_archive_flag_spec_F77='$convenience' |
| 14764 | archive_cmds_need_lc_F77=yes |
| 14765 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14766 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 14767 | fi |
| 14768 | fi |
| 14769 | ;; |
| 14770 | |
| 14771 | amigaos*) |
| 14772 | archive_cmds_F77='$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)' |
| 14773 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14774 | hardcode_minus_L_F77=yes |
| 14775 | # see comment about different semantics on the GNU ld section |
| 14776 | ld_shlibs_F77=no |
| 14777 | ;; |
| 14778 | |
| 14779 | bsdi[45]*) |
| 14780 | export_dynamic_flag_spec_F77=-rdynamic |
| 14781 | ;; |
| 14782 | |
| 14783 | cygwin* | mingw* | pw32*) |
| 14784 | # When not using gcc, we currently assume that we are using |
| 14785 | # Microsoft Visual C++. |
| 14786 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14787 | # no search path for DLLs. |
| 14788 | hardcode_libdir_flag_spec_F77=' ' |
| 14789 | allow_undefined_flag_F77=unsupported |
| 14790 | # Tell ltmain to make .lib files, not .a files. |
| 14791 | libext=lib |
| 14792 | # Tell ltmain to make .dll files, not .so files. |
| 14793 | shrext_cmds=".dll" |
| 14794 | # FIXME: Setting linknames here is a bad hack. |
| 14795 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 14796 | # The linker will automatically build a .lib file if we build a DLL. |
| 14797 | old_archive_From_new_cmds_F77='true' |
| 14798 | # FIXME: Should let the user specify the lib program. |
| 14799 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 14800 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
| 14801 | enable_shared_with_static_runtimes_F77=yes |
| 14802 | ;; |
| 14803 | |
| 14804 | darwin* | rhapsody*) |
| 14805 | case $host_os in |
| 14806 | rhapsody* | darwin1.[012]) |
| 14807 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 14808 | ;; |
| 14809 | *) # Darwin 1.3 on |
| 14810 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 14811 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14812 | else |
| 14813 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 14814 | 10.[012]) |
| 14815 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14816 | ;; |
| 14817 | 10.*) |
| 14818 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 14819 | ;; |
| 14820 | esac |
| 14821 | fi |
| 14822 | ;; |
| 14823 | esac |
| 14824 | archive_cmds_need_lc_F77=no |
| 14825 | hardcode_direct_F77=no |
| 14826 | hardcode_automatic_F77=yes |
| 14827 | hardcode_shlibpath_var_F77=unsupported |
| 14828 | whole_archive_flag_spec_F77='' |
| 14829 | link_all_deplibs_F77=yes |
| 14830 | if test "$GCC" = yes ; then |
| 14831 | output_verbose_link_cmd='echo' |
| 14832 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 14833 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14834 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 14835 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14836 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14837 | else |
| 14838 | case $cc_basename in |
| 14839 | xlc*) |
| 14840 | output_verbose_link_cmd='echo' |
| 14841 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 14842 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14843 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 14844 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14845 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14846 | ;; |
| 14847 | *) |
| 14848 | ld_shlibs_F77=no |
| 14849 | ;; |
| 14850 | esac |
| 14851 | fi |
| 14852 | ;; |
| 14853 | |
| 14854 | dgux*) |
| 14855 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14856 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14857 | hardcode_shlibpath_var_F77=no |
| 14858 | ;; |
| 14859 | |
| 14860 | freebsd1*) |
| 14861 | ld_shlibs_F77=no |
| 14862 | ;; |
| 14863 | |
| 14864 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14865 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14866 | # does not break anything, and helps significantly (at the cost of a little |
| 14867 | # extra space). |
| 14868 | freebsd2.2*) |
| 14869 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14870 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14871 | hardcode_direct_F77=yes |
| 14872 | hardcode_shlibpath_var_F77=no |
| 14873 | ;; |
| 14874 | |
| 14875 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14876 | freebsd2*) |
| 14877 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14878 | hardcode_direct_F77=yes |
| 14879 | hardcode_minus_L_F77=yes |
| 14880 | hardcode_shlibpath_var_F77=no |
| 14881 | ;; |
| 14882 | |
| 14883 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 14884 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 14885 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14886 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14887 | hardcode_direct_F77=yes |
| 14888 | hardcode_shlibpath_var_F77=no |
| 14889 | ;; |
| 14890 | |
| 14891 | hpux9*) |
| 14892 | if test "$GCC" = yes; then |
| 14893 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 14894 | else |
| 14895 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 14896 | fi |
| 14897 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14898 | hardcode_libdir_separator_F77=: |
| 14899 | hardcode_direct_F77=yes |
| 14900 | |
| 14901 | # hardcode_minus_L: Not really in the search PATH, |
| 14902 | # but as the default location of the library. |
| 14903 | hardcode_minus_L_F77=yes |
| 14904 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14905 | ;; |
| 14906 | |
| 14907 | hpux10*) |
| 14908 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14909 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14910 | else |
| 14911 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14912 | fi |
| 14913 | if test "$with_gnu_ld" = no; then |
| 14914 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14915 | hardcode_libdir_separator_F77=: |
| 14916 | |
| 14917 | hardcode_direct_F77=yes |
| 14918 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14919 | |
| 14920 | # hardcode_minus_L: Not really in the search PATH, |
| 14921 | # but as the default location of the library. |
| 14922 | hardcode_minus_L_F77=yes |
| 14923 | fi |
| 14924 | ;; |
| 14925 | |
| 14926 | hpux11*) |
| 14927 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14928 | case $host_cpu in |
| 14929 | hppa*64*) |
| 14930 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14931 | ;; |
| 14932 | ia64*) |
| 14933 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14934 | ;; |
| 14935 | *) |
| 14936 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14937 | ;; |
| 14938 | esac |
| 14939 | else |
| 14940 | case $host_cpu in |
| 14941 | hppa*64*) |
| 14942 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14943 | ;; |
| 14944 | ia64*) |
| 14945 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14946 | ;; |
| 14947 | *) |
| 14948 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14949 | ;; |
| 14950 | esac |
| 14951 | fi |
| 14952 | if test "$with_gnu_ld" = no; then |
| 14953 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14954 | hardcode_libdir_separator_F77=: |
| 14955 | |
| 14956 | case $host_cpu in |
| 14957 | hppa*64*|ia64*) |
| 14958 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 14959 | hardcode_direct_F77=no |
| 14960 | hardcode_shlibpath_var_F77=no |
| 14961 | ;; |
| 14962 | *) |
| 14963 | hardcode_direct_F77=yes |
| 14964 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14965 | |
| 14966 | # hardcode_minus_L: Not really in the search PATH, |
| 14967 | # but as the default location of the library. |
| 14968 | hardcode_minus_L_F77=yes |
| 14969 | ;; |
| 14970 | esac |
| 14971 | fi |
| 14972 | ;; |
| 14973 | |
| 14974 | irix5* | irix6* | nonstopux*) |
| 14975 | if test "$GCC" = yes; then |
| 14976 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14977 | else |
| 14978 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14979 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 14980 | fi |
| 14981 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14982 | hardcode_libdir_separator_F77=: |
| 14983 | link_all_deplibs_F77=yes |
| 14984 | ;; |
| 14985 | |
| 14986 | netbsd*) |
| 14987 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14988 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14989 | else |
| 14990 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14991 | fi |
| 14992 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14993 | hardcode_direct_F77=yes |
| 14994 | hardcode_shlibpath_var_F77=no |
| 14995 | ;; |
| 14996 | |
| 14997 | newsos6) |
| 14998 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14999 | hardcode_direct_F77=yes |
| 15000 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15001 | hardcode_libdir_separator_F77=: |
| 15002 | hardcode_shlibpath_var_F77=no |
| 15003 | ;; |
| 15004 | |
| 15005 | openbsd*) |
| 15006 | hardcode_direct_F77=yes |
| 15007 | hardcode_shlibpath_var_F77=no |
| 15008 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15009 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15010 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 15011 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15012 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15013 | else |
| 15014 | case $host_os in |
| 15015 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15016 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15017 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15018 | ;; |
| 15019 | *) |
| 15020 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15021 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15022 | ;; |
| 15023 | esac |
| 15024 | fi |
| 15025 | ;; |
| 15026 | |
| 15027 | os2*) |
| 15028 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15029 | hardcode_minus_L_F77=yes |
| 15030 | allow_undefined_flag_F77=unsupported |
| 15031 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 15032 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15033 | ;; |
| 15034 | |
| 15035 | osf3*) |
| 15036 | if test "$GCC" = yes; then |
| 15037 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15038 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 15039 | else |
| 15040 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15041 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15042 | fi |
| 15043 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15044 | hardcode_libdir_separator_F77=: |
| 15045 | ;; |
| 15046 | |
| 15047 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15048 | if test "$GCC" = yes; then |
| 15049 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15050 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 15051 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15052 | else |
| 15053 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15054 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15055 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 15056 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 15057 | |
| 15058 | # Both c and cxx compiler support -rpath directly |
| 15059 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15060 | fi |
| 15061 | hardcode_libdir_separator_F77=: |
| 15062 | ;; |
| 15063 | |
| 15064 | solaris*) |
| 15065 | no_undefined_flag_F77=' -z text' |
| 15066 | if test "$GCC" = yes; then |
| 15067 | wlarc='${wl}' |
| 15068 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15069 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15070 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15071 | else |
| 15072 | wlarc='' |
| 15073 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15074 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15075 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15076 | fi |
| 15077 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15078 | hardcode_shlibpath_var_F77=no |
| 15079 | case $host_os in |
| 15080 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15081 | *) |
| 15082 | # The compiler driver will combine linker options so we |
| 15083 | # cannot just pass the convience library names through |
| 15084 | # without $wl, iff we do not link with $LD. |
| 15085 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15086 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15087 | case $wlarc in |
| 15088 | '') |
| 15089 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15090 | *) |
| 15091 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 15092 | esac ;; |
| 15093 | esac |
| 15094 | link_all_deplibs_F77=yes |
| 15095 | ;; |
| 15096 | |
| 15097 | sunos4*) |
| 15098 | if test "x$host_vendor" = xsequent; then |
| 15099 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15100 | # files that make .init and .fini sections work. |
| 15101 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15102 | else |
| 15103 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15104 | fi |
| 15105 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15106 | hardcode_direct_F77=yes |
| 15107 | hardcode_minus_L_F77=yes |
| 15108 | hardcode_shlibpath_var_F77=no |
| 15109 | ;; |
| 15110 | |
| 15111 | sysv4) |
| 15112 | case $host_vendor in |
| 15113 | sni) |
| 15114 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15115 | hardcode_direct_F77=yes # is this really true??? |
| 15116 | ;; |
| 15117 | siemens) |
| 15118 | ## LD is ld it makes a PLAMLIB |
| 15119 | ## CC just makes a GrossModule. |
| 15120 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15121 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15122 | hardcode_direct_F77=no |
| 15123 | ;; |
| 15124 | motorola) |
| 15125 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15126 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15127 | ;; |
| 15128 | esac |
| 15129 | runpath_var='LD_RUN_PATH' |
| 15130 | hardcode_shlibpath_var_F77=no |
| 15131 | ;; |
| 15132 | |
| 15133 | sysv4.3*) |
| 15134 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15135 | hardcode_shlibpath_var_F77=no |
| 15136 | export_dynamic_flag_spec_F77='-Bexport' |
| 15137 | ;; |
| 15138 | |
| 15139 | sysv4*MP*) |
| 15140 | if test -d /usr/nec; then |
| 15141 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15142 | hardcode_shlibpath_var_F77=no |
| 15143 | runpath_var=LD_RUN_PATH |
| 15144 | hardcode_runpath_var=yes |
| 15145 | ld_shlibs_F77=yes |
| 15146 | fi |
| 15147 | ;; |
| 15148 | |
| 15149 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15150 | no_undefined_flag_F77='${wl}-z,text' |
| 15151 | archive_cmds_need_lc_F77=no |
| 15152 | hardcode_shlibpath_var_F77=no |
| 15153 | runpath_var='LD_RUN_PATH' |
| 15154 | |
| 15155 | if test "$GCC" = yes; then |
| 15156 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15157 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15158 | else |
| 15159 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15160 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15161 | fi |
| 15162 | ;; |
| 15163 | |
| 15164 | sysv5* | sco3.2v5* | sco5v6*) |
| 15165 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15166 | # link with -lc, and that would cause any symbols used from libc to |
| 15167 | # always be unresolved, which means just about no library would |
| 15168 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15169 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15170 | # as -z defs. |
| 15171 | no_undefined_flag_F77='${wl}-z,text' |
| 15172 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 15173 | archive_cmds_need_lc_F77=no |
| 15174 | hardcode_shlibpath_var_F77=no |
| 15175 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15176 | hardcode_libdir_separator_F77=':' |
| 15177 | link_all_deplibs_F77=yes |
| 15178 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 15179 | runpath_var='LD_RUN_PATH' |
| 15180 | |
| 15181 | if test "$GCC" = yes; then |
| 15182 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15183 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15184 | else |
| 15185 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15186 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15187 | fi |
| 15188 | ;; |
| 15189 | |
| 15190 | uts4*) |
| 15191 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15192 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15193 | hardcode_shlibpath_var_F77=no |
| 15194 | ;; |
| 15195 | |
| 15196 | *) |
| 15197 | ld_shlibs_F77=no |
| 15198 | ;; |
| 15199 | esac |
| 15200 | fi |
| 15201 | |
| 15202 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15203 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
| 15204 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15205 | |
| 15206 | # |
| 15207 | # Do we need to explicitly link libc? |
| 15208 | # |
| 15209 | case "x$archive_cmds_need_lc_F77" in |
| 15210 | x|xyes) |
| 15211 | # Assume -lc should be added |
| 15212 | archive_cmds_need_lc_F77=yes |
| 15213 | |
| 15214 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15215 | case $archive_cmds_F77 in |
| 15216 | *'~'*) |
| 15217 | # FIXME: we may have to deal with multi-command sequences. |
| 15218 | ;; |
| 15219 | '$CC '*) |
| 15220 | # Test whether the compiler implicitly links with -lc since on some |
| 15221 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15222 | # to ld, don't add -lc before -lgcc. |
| 15223 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15224 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
| 15225 | $rm conftest* |
| 15226 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15227 | |
| 15228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15229 | (eval $ac_compile) 2>&5 |
| 15230 | ac_status=$? |
| 15231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15232 | (exit $ac_status); } 2>conftest.err; then |
| 15233 | soname=conftest |
| 15234 | lib=conftest |
| 15235 | libobjs=conftest.$ac_objext |
| 15236 | deplibs= |
| 15237 | wl=$lt_prog_compiler_wl_F77 |
| 15238 | pic_flag=$lt_prog_compiler_pic_F77 |
| 15239 | compiler_flags=-v |
| 15240 | linker_flags=-v |
| 15241 | verstring= |
| 15242 | output_objdir=. |
| 15243 | libname=conftest |
| 15244 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15245 | allow_undefined_flag_F77= |
| 15246 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15247 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15248 | ac_status=$? |
| 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15250 | (exit $ac_status); } |
| 15251 | then |
| 15252 | archive_cmds_need_lc_F77=no |
| 15253 | else |
| 15254 | archive_cmds_need_lc_F77=yes |
| 15255 | fi |
| 15256 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15257 | else |
| 15258 | cat conftest.err 1>&5 |
| 15259 | fi |
| 15260 | $rm conftest* |
| 15261 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15262 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
| 15263 | ;; |
| 15264 | esac |
| 15265 | fi |
| 15266 | ;; |
| 15267 | esac |
| 15268 | |
| 15269 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15270 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
| 15271 | library_names_spec= |
| 15272 | libname_spec='lib$name' |
| 15273 | soname_spec= |
| 15274 | shrext_cmds=".so" |
| 15275 | postinstall_cmds= |
| 15276 | postuninstall_cmds= |
| 15277 | finish_cmds= |
| 15278 | finish_eval= |
| 15279 | shlibpath_var= |
| 15280 | shlibpath_overrides_runpath=unknown |
| 15281 | version_type=none |
| 15282 | dynamic_linker="$host_os ld.so" |
| 15283 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15284 | if test "$GCC" = yes; then |
| 15285 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15286 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15287 | # if the path contains ";" then we assume it to be the separator |
| 15288 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15289 | # assumed that no part of a normal pathname contains ";" but that should |
| 15290 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15291 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15292 | else |
| 15293 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15294 | fi |
| 15295 | else |
| 15296 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15297 | fi |
| 15298 | need_lib_prefix=unknown |
| 15299 | hardcode_into_libs=no |
| 15300 | |
| 15301 | # when you set need_version to no, make sure it does not cause -set_version |
| 15302 | # flags to be left without arguments |
| 15303 | need_version=unknown |
| 15304 | |
| 15305 | case $host_os in |
| 15306 | aix3*) |
| 15307 | version_type=linux |
| 15308 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15309 | shlibpath_var=LIBPATH |
| 15310 | |
| 15311 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15312 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15313 | ;; |
| 15314 | |
| 15315 | aix4* | aix5*) |
| 15316 | version_type=linux |
| 15317 | need_lib_prefix=no |
| 15318 | need_version=no |
| 15319 | hardcode_into_libs=yes |
| 15320 | if test "$host_cpu" = ia64; then |
| 15321 | # AIX 5 supports IA64 |
| 15322 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15323 | shlibpath_var=LD_LIBRARY_PATH |
| 15324 | else |
| 15325 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15326 | # for dependence libraries. The import file would start with |
| 15327 | # the line `#! .'. This would cause the generated library to |
| 15328 | # depend on `.', always an invalid library. This was fixed in |
| 15329 | # development snapshots of GCC prior to 3.0. |
| 15330 | case $host_os in |
| 15331 | aix4 | aix4.[01] | aix4.[01].*) |
| 15332 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15333 | echo ' yes ' |
| 15334 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15335 | : |
| 15336 | else |
| 15337 | can_build_shared=no |
| 15338 | fi |
| 15339 | ;; |
| 15340 | esac |
| 15341 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15342 | # soname into executable. Probably we can add versioning support to |
| 15343 | # collect2, so additional links can be useful in future. |
| 15344 | if test "$aix_use_runtimelinking" = yes; then |
| 15345 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15346 | # instead of lib<name>.a to let people know that these are not |
| 15347 | # typical AIX shared libraries. |
| 15348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15349 | else |
| 15350 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15351 | # and later when we are not doing run time linking. |
| 15352 | library_names_spec='${libname}${release}.a $libname.a' |
| 15353 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15354 | fi |
| 15355 | shlibpath_var=LIBPATH |
| 15356 | fi |
| 15357 | ;; |
| 15358 | |
| 15359 | amigaos*) |
| 15360 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15361 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15362 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 15363 | ;; |
| 15364 | |
| 15365 | beos*) |
| 15366 | library_names_spec='${libname}${shared_ext}' |
| 15367 | dynamic_linker="$host_os ld.so" |
| 15368 | shlibpath_var=LIBRARY_PATH |
| 15369 | ;; |
| 15370 | |
| 15371 | bsdi[45]*) |
| 15372 | version_type=linux |
| 15373 | need_version=no |
| 15374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15375 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15377 | shlibpath_var=LD_LIBRARY_PATH |
| 15378 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15379 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15380 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15381 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15382 | # libtool to hard-code these into programs |
| 15383 | ;; |
| 15384 | |
| 15385 | cygwin* | mingw* | pw32*) |
| 15386 | version_type=windows |
| 15387 | shrext_cmds=".dll" |
| 15388 | need_version=no |
| 15389 | need_lib_prefix=no |
| 15390 | |
| 15391 | case $GCC,$host_os in |
| 15392 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15393 | library_names_spec='$libname.dll.a' |
| 15394 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15395 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15396 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15397 | dldir=$destdir/`dirname \$dlpath`~ |
| 15398 | test -d \$dldir || mkdir -p \$dldir~ |
| 15399 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15400 | chmod a+x \$dldir/$dlname' |
| 15401 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15402 | dlpath=$dir/\$dldll~ |
| 15403 | $rm \$dlpath' |
| 15404 | shlibpath_overrides_runpath=yes |
| 15405 | |
| 15406 | case $host_os in |
| 15407 | cygwin*) |
| 15408 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15409 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15410 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15411 | ;; |
| 15412 | mingw*) |
| 15413 | # MinGW DLLs use traditional 'lib' prefix |
| 15414 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15415 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15416 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15417 | # It is most probably a Windows format PATH printed by |
| 15418 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15419 | # path with ; separators, and with drive letters. We can handle the |
| 15420 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15421 | # especially as we might pass files found there to a mingw objdump, |
| 15422 | # which wouldn't understand a cygwinified path. Ahh. |
| 15423 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15424 | else |
| 15425 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15426 | fi |
| 15427 | ;; |
| 15428 | pw32*) |
| 15429 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15430 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15431 | ;; |
| 15432 | esac |
| 15433 | ;; |
| 15434 | |
| 15435 | *) |
| 15436 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15437 | ;; |
| 15438 | esac |
| 15439 | dynamic_linker='Win32 ld.exe' |
| 15440 | # FIXME: first we should search . and the directory the executable is in |
| 15441 | shlibpath_var=PATH |
| 15442 | ;; |
| 15443 | |
| 15444 | darwin* | rhapsody*) |
| 15445 | dynamic_linker="$host_os dyld" |
| 15446 | version_type=darwin |
| 15447 | need_lib_prefix=no |
| 15448 | need_version=no |
| 15449 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15450 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15451 | shlibpath_overrides_runpath=yes |
| 15452 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15453 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15454 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15455 | if test "$GCC" = yes; then |
| 15456 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 15457 | else |
| 15458 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15459 | fi |
| 15460 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15461 | ;; |
| 15462 | |
| 15463 | dgux*) |
| 15464 | version_type=linux |
| 15465 | need_lib_prefix=no |
| 15466 | need_version=no |
| 15467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15468 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15469 | shlibpath_var=LD_LIBRARY_PATH |
| 15470 | ;; |
| 15471 | |
| 15472 | freebsd1*) |
| 15473 | dynamic_linker=no |
| 15474 | ;; |
| 15475 | |
| 15476 | kfreebsd*-gnu) |
| 15477 | version_type=linux |
| 15478 | need_lib_prefix=no |
| 15479 | need_version=no |
| 15480 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15481 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15482 | shlibpath_var=LD_LIBRARY_PATH |
| 15483 | shlibpath_overrides_runpath=no |
| 15484 | hardcode_into_libs=yes |
| 15485 | dynamic_linker='GNU ld.so' |
| 15486 | ;; |
| 15487 | |
| 15488 | freebsd* | dragonfly*) |
| 15489 | # DragonFly does not have aout. When/if they implement a new |
| 15490 | # versioning mechanism, adjust this. |
| 15491 | if test -x /usr/bin/objformat; then |
| 15492 | objformat=`/usr/bin/objformat` |
| 15493 | else |
| 15494 | case $host_os in |
| 15495 | freebsd[123]*) objformat=aout ;; |
| 15496 | *) objformat=elf ;; |
| 15497 | esac |
| 15498 | fi |
| 15499 | version_type=freebsd-$objformat |
| 15500 | case $version_type in |
| 15501 | freebsd-elf*) |
| 15502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15503 | need_version=no |
| 15504 | need_lib_prefix=no |
| 15505 | ;; |
| 15506 | freebsd-*) |
| 15507 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15508 | need_version=yes |
| 15509 | ;; |
| 15510 | esac |
| 15511 | shlibpath_var=LD_LIBRARY_PATH |
| 15512 | case $host_os in |
| 15513 | freebsd2*) |
| 15514 | shlibpath_overrides_runpath=yes |
| 15515 | ;; |
| 15516 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15517 | shlibpath_overrides_runpath=yes |
| 15518 | hardcode_into_libs=yes |
| 15519 | ;; |
| 15520 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15521 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15522 | shlibpath_overrides_runpath=no |
| 15523 | hardcode_into_libs=yes |
| 15524 | ;; |
| 15525 | freebsd*) # from 4.6 on |
| 15526 | shlibpath_overrides_runpath=yes |
| 15527 | hardcode_into_libs=yes |
| 15528 | ;; |
| 15529 | esac |
| 15530 | ;; |
| 15531 | |
| 15532 | gnu*) |
| 15533 | version_type=linux |
| 15534 | need_lib_prefix=no |
| 15535 | need_version=no |
| 15536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15537 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15538 | shlibpath_var=LD_LIBRARY_PATH |
| 15539 | hardcode_into_libs=yes |
| 15540 | ;; |
| 15541 | |
| 15542 | hpux9* | hpux10* | hpux11*) |
| 15543 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15544 | # link against other versions. |
| 15545 | version_type=sunos |
| 15546 | need_lib_prefix=no |
| 15547 | need_version=no |
| 15548 | case $host_cpu in |
| 15549 | ia64*) |
| 15550 | shrext_cmds='.so' |
| 15551 | hardcode_into_libs=yes |
| 15552 | dynamic_linker="$host_os dld.so" |
| 15553 | shlibpath_var=LD_LIBRARY_PATH |
| 15554 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15556 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15557 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15558 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15559 | else |
| 15560 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15561 | fi |
| 15562 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15563 | ;; |
| 15564 | hppa*64*) |
| 15565 | shrext_cmds='.sl' |
| 15566 | hardcode_into_libs=yes |
| 15567 | dynamic_linker="$host_os dld.sl" |
| 15568 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15569 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15572 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15573 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15574 | ;; |
| 15575 | *) |
| 15576 | shrext_cmds='.sl' |
| 15577 | dynamic_linker="$host_os dld.sl" |
| 15578 | shlibpath_var=SHLIB_PATH |
| 15579 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15581 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15582 | ;; |
| 15583 | esac |
| 15584 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15585 | postinstall_cmds='chmod 555 $lib' |
| 15586 | ;; |
| 15587 | |
| 15588 | interix3*) |
| 15589 | version_type=linux |
| 15590 | need_lib_prefix=no |
| 15591 | need_version=no |
| 15592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15594 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15595 | shlibpath_var=LD_LIBRARY_PATH |
| 15596 | shlibpath_overrides_runpath=no |
| 15597 | hardcode_into_libs=yes |
| 15598 | ;; |
| 15599 | |
| 15600 | irix5* | irix6* | nonstopux*) |
| 15601 | case $host_os in |
| 15602 | nonstopux*) version_type=nonstopux ;; |
| 15603 | *) |
| 15604 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15605 | version_type=linux |
| 15606 | else |
| 15607 | version_type=irix |
| 15608 | fi ;; |
| 15609 | esac |
| 15610 | need_lib_prefix=no |
| 15611 | need_version=no |
| 15612 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15614 | case $host_os in |
| 15615 | irix5* | nonstopux*) |
| 15616 | libsuff= shlibsuff= |
| 15617 | ;; |
| 15618 | *) |
| 15619 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15620 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15621 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15622 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15623 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15624 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15625 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15626 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15627 | esac |
| 15628 | ;; |
| 15629 | esac |
| 15630 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15631 | shlibpath_overrides_runpath=no |
| 15632 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15633 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15634 | hardcode_into_libs=yes |
| 15635 | ;; |
| 15636 | |
| 15637 | # No shared lib support for Linux oldld, aout, or coff. |
| 15638 | linux*oldld* | linux*aout* | linux*coff*) |
| 15639 | dynamic_linker=no |
| 15640 | ;; |
| 15641 | |
| 15642 | # This must be Linux ELF. |
| 15643 | linux*) |
| 15644 | version_type=linux |
| 15645 | need_lib_prefix=no |
| 15646 | need_version=no |
| 15647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15648 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15649 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15650 | shlibpath_var=LD_LIBRARY_PATH |
| 15651 | shlibpath_overrides_runpath=no |
| 15652 | # This implies no fast_install, which is unacceptable. |
| 15653 | # Some rework will be needed to allow for fast_install |
| 15654 | # before this can be enabled. |
| 15655 | hardcode_into_libs=yes |
| 15656 | |
| 15657 | # Append ld.so.conf contents to the search path |
| 15658 | if test -f /etc/ld.so.conf; then |
| 15659 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 15660 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15661 | fi |
| 15662 | |
| 15663 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15664 | # powerpc, because MkLinux only supported shared libraries with the |
| 15665 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15666 | # most powerpc-linux boxes support dynamic linking these days and |
| 15667 | # people can always --disable-shared, the test was removed, and we |
| 15668 | # assume the GNU/Linux dynamic linker is in use. |
| 15669 | dynamic_linker='GNU/Linux ld.so' |
| 15670 | ;; |
| 15671 | |
| 15672 | knetbsd*-gnu) |
| 15673 | version_type=linux |
| 15674 | need_lib_prefix=no |
| 15675 | need_version=no |
| 15676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15677 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15678 | shlibpath_var=LD_LIBRARY_PATH |
| 15679 | shlibpath_overrides_runpath=no |
| 15680 | hardcode_into_libs=yes |
| 15681 | dynamic_linker='GNU ld.so' |
| 15682 | ;; |
| 15683 | |
| 15684 | netbsd*) |
| 15685 | version_type=sunos |
| 15686 | need_lib_prefix=no |
| 15687 | need_version=no |
| 15688 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15690 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15691 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15692 | else |
| 15693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15694 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15695 | dynamic_linker='NetBSD ld.elf_so' |
| 15696 | fi |
| 15697 | shlibpath_var=LD_LIBRARY_PATH |
| 15698 | shlibpath_overrides_runpath=yes |
| 15699 | hardcode_into_libs=yes |
| 15700 | ;; |
| 15701 | |
| 15702 | newsos6) |
| 15703 | version_type=linux |
| 15704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15705 | shlibpath_var=LD_LIBRARY_PATH |
| 15706 | shlibpath_overrides_runpath=yes |
| 15707 | ;; |
| 15708 | |
| 15709 | nto-qnx*) |
| 15710 | version_type=linux |
| 15711 | need_lib_prefix=no |
| 15712 | need_version=no |
| 15713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15714 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15715 | shlibpath_var=LD_LIBRARY_PATH |
| 15716 | shlibpath_overrides_runpath=yes |
| 15717 | ;; |
| 15718 | |
| 15719 | openbsd*) |
| 15720 | version_type=sunos |
| 15721 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15722 | need_lib_prefix=no |
| 15723 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15724 | case $host_os in |
| 15725 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15726 | *) need_version=no ;; |
| 15727 | esac |
| 15728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15730 | shlibpath_var=LD_LIBRARY_PATH |
| 15731 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15732 | case $host_os in |
| 15733 | openbsd2.[89] | openbsd2.[89].*) |
| 15734 | shlibpath_overrides_runpath=no |
| 15735 | ;; |
| 15736 | *) |
| 15737 | shlibpath_overrides_runpath=yes |
| 15738 | ;; |
| 15739 | esac |
| 15740 | else |
| 15741 | shlibpath_overrides_runpath=yes |
| 15742 | fi |
| 15743 | ;; |
| 15744 | |
| 15745 | os2*) |
| 15746 | libname_spec='$name' |
| 15747 | shrext_cmds=".dll" |
| 15748 | need_lib_prefix=no |
| 15749 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15750 | dynamic_linker='OS/2 ld.exe' |
| 15751 | shlibpath_var=LIBPATH |
| 15752 | ;; |
| 15753 | |
| 15754 | osf3* | osf4* | osf5*) |
| 15755 | version_type=osf |
| 15756 | need_lib_prefix=no |
| 15757 | need_version=no |
| 15758 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15760 | shlibpath_var=LD_LIBRARY_PATH |
| 15761 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15762 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15763 | ;; |
| 15764 | |
| 15765 | solaris*) |
| 15766 | version_type=linux |
| 15767 | need_lib_prefix=no |
| 15768 | need_version=no |
| 15769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15770 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15771 | shlibpath_var=LD_LIBRARY_PATH |
| 15772 | shlibpath_overrides_runpath=yes |
| 15773 | hardcode_into_libs=yes |
| 15774 | # ldd complains unless libraries are executable |
| 15775 | postinstall_cmds='chmod +x $lib' |
| 15776 | ;; |
| 15777 | |
| 15778 | sunos4*) |
| 15779 | version_type=sunos |
| 15780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15781 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15782 | shlibpath_var=LD_LIBRARY_PATH |
| 15783 | shlibpath_overrides_runpath=yes |
| 15784 | if test "$with_gnu_ld" = yes; then |
| 15785 | need_lib_prefix=no |
| 15786 | fi |
| 15787 | need_version=yes |
| 15788 | ;; |
| 15789 | |
| 15790 | sysv4 | sysv4.3*) |
| 15791 | version_type=linux |
| 15792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15793 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15794 | shlibpath_var=LD_LIBRARY_PATH |
| 15795 | case $host_vendor in |
| 15796 | sni) |
| 15797 | shlibpath_overrides_runpath=no |
| 15798 | need_lib_prefix=no |
| 15799 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 15800 | runpath_var=LD_RUN_PATH |
| 15801 | ;; |
| 15802 | siemens) |
| 15803 | need_lib_prefix=no |
| 15804 | ;; |
| 15805 | motorola) |
| 15806 | need_lib_prefix=no |
| 15807 | need_version=no |
| 15808 | shlibpath_overrides_runpath=no |
| 15809 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15810 | ;; |
| 15811 | esac |
| 15812 | ;; |
| 15813 | |
| 15814 | sysv4*MP*) |
| 15815 | if test -d /usr/nec ;then |
| 15816 | version_type=linux |
| 15817 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15818 | soname_spec='$libname${shared_ext}.$major' |
| 15819 | shlibpath_var=LD_LIBRARY_PATH |
| 15820 | fi |
| 15821 | ;; |
| 15822 | |
| 15823 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15824 | version_type=freebsd-elf |
| 15825 | need_lib_prefix=no |
| 15826 | need_version=no |
| 15827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15828 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15829 | shlibpath_var=LD_LIBRARY_PATH |
| 15830 | hardcode_into_libs=yes |
| 15831 | if test "$with_gnu_ld" = yes; then |
| 15832 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15833 | shlibpath_overrides_runpath=no |
| 15834 | else |
| 15835 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15836 | shlibpath_overrides_runpath=yes |
| 15837 | case $host_os in |
| 15838 | sco3.2v5*) |
| 15839 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15840 | ;; |
| 15841 | esac |
| 15842 | fi |
| 15843 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15844 | ;; |
| 15845 | |
| 15846 | uts4*) |
| 15847 | version_type=linux |
| 15848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15850 | shlibpath_var=LD_LIBRARY_PATH |
| 15851 | ;; |
| 15852 | |
| 15853 | *) |
| 15854 | dynamic_linker=no |
| 15855 | ;; |
| 15856 | esac |
| 15857 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 15858 | echo "${ECHO_T}$dynamic_linker" >&6; } |
| 15859 | test "$dynamic_linker" = no && can_build_shared=no |
| 15860 | |
| 15861 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15862 | if test "$GCC" = yes; then |
| 15863 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15864 | fi |
| 15865 | |
| 15866 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15867 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
| 15868 | hardcode_action_F77= |
| 15869 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 15870 | test -n "$runpath_var_F77" || \ |
| 15871 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 15872 | |
| 15873 | # We can hardcode non-existant directories. |
| 15874 | if test "$hardcode_direct_F77" != no && |
| 15875 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15876 | # have to relink, otherwise we might link with an installed library |
| 15877 | # when we should be linking with a yet-to-be-installed one |
| 15878 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 15879 | test "$hardcode_minus_L_F77" != no; then |
| 15880 | # Linking always hardcodes the temporary library directory. |
| 15881 | hardcode_action_F77=relink |
| 15882 | else |
| 15883 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15884 | hardcode_action_F77=immediate |
| 15885 | fi |
| 15886 | else |
| 15887 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15888 | # directories. |
| 15889 | hardcode_action_F77=unsupported |
| 15890 | fi |
| 15891 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 15892 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
| 15893 | |
| 15894 | if test "$hardcode_action_F77" = relink; then |
| 15895 | # Fast installation is not supported |
| 15896 | enable_fast_install=no |
| 15897 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15898 | test "$enable_shared" = no; then |
| 15899 | # Fast installation is not necessary |
| 15900 | enable_fast_install=needless |
| 15901 | fi |
| 15902 | |
| 15903 | |
| 15904 | # The else clause should only fire when bootstrapping the |
| 15905 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 15906 | # with your package, and you will get complaints that there are |
| 15907 | # no rules to generate ltmain.sh. |
| 15908 | if test -f "$ltmain"; then |
| 15909 | # See if we are running on zsh, and set the options which allow our commands through |
| 15910 | # without removal of \ escapes. |
| 15911 | if test -n "${ZSH_VERSION+set}" ; then |
| 15912 | setopt NO_GLOB_SUBST |
| 15913 | fi |
| 15914 | # Now quote all the things that may contain metacharacters while being |
| 15915 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15916 | # variables and quote the copies for generation of the libtool script. |
| 15917 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 15918 | SED SHELL STRIP \ |
| 15919 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15920 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15921 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15922 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15923 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15924 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 15925 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15926 | compiler_F77 \ |
| 15927 | CC_F77 \ |
| 15928 | LD_F77 \ |
| 15929 | lt_prog_compiler_wl_F77 \ |
| 15930 | lt_prog_compiler_pic_F77 \ |
| 15931 | lt_prog_compiler_static_F77 \ |
| 15932 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 15933 | export_dynamic_flag_spec_F77 \ |
| 15934 | thread_safe_flag_spec_F77 \ |
| 15935 | whole_archive_flag_spec_F77 \ |
| 15936 | enable_shared_with_static_runtimes_F77 \ |
| 15937 | old_archive_cmds_F77 \ |
| 15938 | old_archive_from_new_cmds_F77 \ |
| 15939 | predep_objects_F77 \ |
| 15940 | postdep_objects_F77 \ |
| 15941 | predeps_F77 \ |
| 15942 | postdeps_F77 \ |
| 15943 | compiler_lib_search_path_F77 \ |
| 15944 | archive_cmds_F77 \ |
| 15945 | archive_expsym_cmds_F77 \ |
| 15946 | postinstall_cmds_F77 \ |
| 15947 | postuninstall_cmds_F77 \ |
| 15948 | old_archive_from_expsyms_cmds_F77 \ |
| 15949 | allow_undefined_flag_F77 \ |
| 15950 | no_undefined_flag_F77 \ |
| 15951 | export_symbols_cmds_F77 \ |
| 15952 | hardcode_libdir_flag_spec_F77 \ |
| 15953 | hardcode_libdir_flag_spec_ld_F77 \ |
| 15954 | hardcode_libdir_separator_F77 \ |
| 15955 | hardcode_automatic_F77 \ |
| 15956 | module_cmds_F77 \ |
| 15957 | module_expsym_cmds_F77 \ |
| 15958 | lt_cv_prog_compiler_c_o_F77 \ |
| 15959 | exclude_expsyms_F77 \ |
| 15960 | include_expsyms_F77; do |
| 15961 | |
| 15962 | case $var in |
| 15963 | old_archive_cmds_F77 | \ |
| 15964 | old_archive_from_new_cmds_F77 | \ |
| 15965 | archive_cmds_F77 | \ |
| 15966 | archive_expsym_cmds_F77 | \ |
| 15967 | module_cmds_F77 | \ |
| 15968 | module_expsym_cmds_F77 | \ |
| 15969 | old_archive_from_expsyms_cmds_F77 | \ |
| 15970 | export_symbols_cmds_F77 | \ |
| 15971 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 15972 | postinstall_cmds | postuninstall_cmds | \ |
| 15973 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15974 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 15975 | # Double-quote double-evaled strings. |
| 15976 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 15977 | ;; |
| 15978 | *) |
| 15979 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15980 | ;; |
| 15981 | esac |
| 15982 | done |
| 15983 | |
| 15984 | case $lt_echo in |
| 15985 | *'\$0 --fallback-echo"') |
| 15986 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15987 | ;; |
| 15988 | esac |
| 15989 | |
| 15990 | cfgfile="$ofile" |
| 15991 | |
| 15992 | cat <<__EOF__ >> "$cfgfile" |
| 15993 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 15994 | |
| 15995 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15996 | |
| 15997 | # Shell to use when invoking shell scripts. |
| 15998 | SHELL=$lt_SHELL |
| 15999 | |
| 16000 | # Whether or not to build shared libraries. |
| 16001 | build_libtool_libs=$enable_shared |
| 16002 | |
| 16003 | # Whether or not to build static libraries. |
| 16004 | build_old_libs=$enable_static |
| 16005 | |
| 16006 | # Whether or not to add -lc for building shared libraries. |
| 16007 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16008 | |
| 16009 | # Whether or not to disallow shared libs when runtime libs are static |
| 16010 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16011 | |
| 16012 | # Whether or not to optimize for fast installation. |
| 16013 | fast_install=$enable_fast_install |
| 16014 | |
| 16015 | # The host system. |
| 16016 | host_alias=$host_alias |
| 16017 | host=$host |
| 16018 | host_os=$host_os |
| 16019 | |
| 16020 | # The build system. |
| 16021 | build_alias=$build_alias |
| 16022 | build=$build |
| 16023 | build_os=$build_os |
| 16024 | |
| 16025 | # An echo program that does not interpret backslashes. |
| 16026 | echo=$lt_echo |
| 16027 | |
| 16028 | # The archiver. |
| 16029 | AR=$lt_AR |
| 16030 | AR_FLAGS=$lt_AR_FLAGS |
| 16031 | |
| 16032 | # A C compiler. |
| 16033 | LTCC=$lt_LTCC |
| 16034 | |
| 16035 | # LTCC compiler flags. |
| 16036 | LTCFLAGS=$lt_LTCFLAGS |
| 16037 | |
| 16038 | # A language-specific compiler. |
| 16039 | CC=$lt_compiler_F77 |
| 16040 | |
| 16041 | # Is the compiler the GNU C compiler? |
| 16042 | with_gcc=$GCC_F77 |
| 16043 | |
| 16044 | # An ERE matcher. |
| 16045 | EGREP=$lt_EGREP |
| 16046 | |
| 16047 | # The linker used to build libraries. |
| 16048 | LD=$lt_LD_F77 |
| 16049 | |
| 16050 | # Whether we need hard or soft links. |
| 16051 | LN_S=$lt_LN_S |
| 16052 | |
| 16053 | # A BSD-compatible nm program. |
| 16054 | NM=$lt_NM |
| 16055 | |
| 16056 | # A symbol stripping program |
| 16057 | STRIP=$lt_STRIP |
| 16058 | |
| 16059 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16060 | MAGIC_CMD=$MAGIC_CMD |
| 16061 | |
| 16062 | # Used on cygwin: DLL creation program. |
| 16063 | DLLTOOL="$DLLTOOL" |
| 16064 | |
| 16065 | # Used on cygwin: object dumper. |
| 16066 | OBJDUMP="$OBJDUMP" |
| 16067 | |
| 16068 | # Used on cygwin: assembler. |
| 16069 | AS="$AS" |
| 16070 | |
| 16071 | # The name of the directory that contains temporary libtool files. |
| 16072 | objdir=$objdir |
| 16073 | |
| 16074 | # How to create reloadable object files. |
| 16075 | reload_flag=$lt_reload_flag |
| 16076 | reload_cmds=$lt_reload_cmds |
| 16077 | |
| 16078 | # How to pass a linker flag through the compiler. |
| 16079 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16080 | |
| 16081 | # Object file suffix (normally "o"). |
| 16082 | objext="$ac_objext" |
| 16083 | |
| 16084 | # Old archive suffix (normally "a"). |
| 16085 | libext="$libext" |
| 16086 | |
| 16087 | # Shared library suffix (normally ".so"). |
| 16088 | shrext_cmds='$shrext_cmds' |
| 16089 | |
| 16090 | # Executable file suffix (normally ""). |
| 16091 | exeext="$exeext" |
| 16092 | |
| 16093 | # Additional compiler flags for building library objects. |
| 16094 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16095 | pic_mode=$pic_mode |
| 16096 | |
| 16097 | # What is the maximum length of a command? |
| 16098 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16099 | |
| 16100 | # Does compiler simultaneously support -c and -o options? |
| 16101 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16102 | |
| 16103 | # Must we lock files when doing compilation? |
| 16104 | need_locks=$lt_need_locks |
| 16105 | |
| 16106 | # Do we need the lib prefix for modules? |
| 16107 | need_lib_prefix=$need_lib_prefix |
| 16108 | |
| 16109 | # Do we need a version for libraries? |
| 16110 | need_version=$need_version |
| 16111 | |
| 16112 | # Whether dlopen is supported. |
| 16113 | dlopen_support=$enable_dlopen |
| 16114 | |
| 16115 | # Whether dlopen of programs is supported. |
| 16116 | dlopen_self=$enable_dlopen_self |
| 16117 | |
| 16118 | # Whether dlopen of statically linked programs is supported. |
| 16119 | dlopen_self_static=$enable_dlopen_self_static |
| 16120 | |
| 16121 | # Compiler flag to prevent dynamic linking. |
| 16122 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16123 | |
| 16124 | # Compiler flag to turn off builtin functions. |
| 16125 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16126 | |
| 16127 | # Compiler flag to allow reflexive dlopens. |
| 16128 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16129 | |
| 16130 | # Compiler flag to generate shared objects directly from archives. |
| 16131 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16132 | |
| 16133 | # Compiler flag to generate thread-safe objects. |
| 16134 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16135 | |
| 16136 | # Library versioning type. |
| 16137 | version_type=$version_type |
| 16138 | |
| 16139 | # Format of library name prefix. |
| 16140 | libname_spec=$lt_libname_spec |
| 16141 | |
| 16142 | # List of archive names. First name is the real one, the rest are links. |
| 16143 | # The last name is the one that the linker finds with -lNAME. |
| 16144 | library_names_spec=$lt_library_names_spec |
| 16145 | |
| 16146 | # The coded name of the library, if different from the real name. |
| 16147 | soname_spec=$lt_soname_spec |
| 16148 | |
| 16149 | # Commands used to build and install an old-style archive. |
| 16150 | RANLIB=$lt_RANLIB |
| 16151 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16152 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16153 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16154 | |
| 16155 | # Create an old-style archive from a shared archive. |
| 16156 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16157 | |
| 16158 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16159 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16160 | |
| 16161 | # Commands used to build and install a shared archive. |
| 16162 | archive_cmds=$lt_archive_cmds_F77 |
| 16163 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16164 | postinstall_cmds=$lt_postinstall_cmds |
| 16165 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16166 | |
| 16167 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16168 | module_cmds=$lt_module_cmds_F77 |
| 16169 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16170 | |
| 16171 | # Commands to strip libraries. |
| 16172 | old_striplib=$lt_old_striplib |
| 16173 | striplib=$lt_striplib |
| 16174 | |
| 16175 | # Dependencies to place before the objects being linked to create a |
| 16176 | # shared library. |
| 16177 | predep_objects=$lt_predep_objects_F77 |
| 16178 | |
| 16179 | # Dependencies to place after the objects being linked to create a |
| 16180 | # shared library. |
| 16181 | postdep_objects=$lt_postdep_objects_F77 |
| 16182 | |
| 16183 | # Dependencies to place before the objects being linked to create a |
| 16184 | # shared library. |
| 16185 | predeps=$lt_predeps_F77 |
| 16186 | |
| 16187 | # Dependencies to place after the objects being linked to create a |
| 16188 | # shared library. |
| 16189 | postdeps=$lt_postdeps_F77 |
| 16190 | |
| 16191 | # The library search path used internally by the compiler when linking |
| 16192 | # a shared library. |
| 16193 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16194 | |
| 16195 | # Method to check whether dependent libraries are shared objects. |
| 16196 | deplibs_check_method=$lt_deplibs_check_method |
| 16197 | |
| 16198 | # Command to use when deplibs_check_method == file_magic. |
| 16199 | file_magic_cmd=$lt_file_magic_cmd |
| 16200 | |
| 16201 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16202 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16203 | |
| 16204 | # Flag that forces no undefined symbols. |
| 16205 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16206 | |
| 16207 | # Commands used to finish a libtool library installation in a directory. |
| 16208 | finish_cmds=$lt_finish_cmds |
| 16209 | |
| 16210 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16211 | finish_eval=$lt_finish_eval |
| 16212 | |
| 16213 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16214 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16215 | |
| 16216 | # Transform the output of nm in a proper C declaration |
| 16217 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16218 | |
| 16219 | # Transform the output of nm in a C name address pair |
| 16220 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16221 | |
| 16222 | # This is the shared library runtime path variable. |
| 16223 | runpath_var=$runpath_var |
| 16224 | |
| 16225 | # This is the shared library path variable. |
| 16226 | shlibpath_var=$shlibpath_var |
| 16227 | |
| 16228 | # Is shlibpath searched before the hard-coded library search path? |
| 16229 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16230 | |
| 16231 | # How to hardcode a shared library path into an executable. |
| 16232 | hardcode_action=$hardcode_action_F77 |
| 16233 | |
| 16234 | # Whether we should hardcode library paths into libraries. |
| 16235 | hardcode_into_libs=$hardcode_into_libs |
| 16236 | |
| 16237 | # Flag to hardcode \$libdir into a binary during linking. |
| 16238 | # This must work even if \$libdir does not exist. |
| 16239 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16240 | |
| 16241 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16242 | # a binary during linking. This must work even if \$libdir does |
| 16243 | # not exist. |
| 16244 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16245 | |
| 16246 | # Whether we need a single -rpath flag with a separated argument. |
| 16247 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16248 | |
| 16249 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16250 | # resulting binary. |
| 16251 | hardcode_direct=$hardcode_direct_F77 |
| 16252 | |
| 16253 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16254 | # resulting binary. |
| 16255 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16256 | |
| 16257 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16258 | # the resulting binary. |
| 16259 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16260 | |
| 16261 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16262 | # and all subsequent libraries and executables linked against it. |
| 16263 | hardcode_automatic=$hardcode_automatic_F77 |
| 16264 | |
| 16265 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16266 | # restored at relink time. |
| 16267 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16268 | |
| 16269 | # Whether libtool must link a program against all its dependency libraries. |
| 16270 | link_all_deplibs=$link_all_deplibs_F77 |
| 16271 | |
| 16272 | # Compile-time system search path for libraries |
| 16273 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16274 | |
| 16275 | # Run-time system search path for libraries |
| 16276 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16277 | |
| 16278 | # Fix the shell variable \$srcfile for the compiler. |
| 16279 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16280 | |
| 16281 | # Set to yes if exported symbols are required. |
| 16282 | always_export_symbols=$always_export_symbols_F77 |
| 16283 | |
| 16284 | # The commands to list exported symbols. |
| 16285 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16286 | |
| 16287 | # The commands to extract the exported symbol list from a shared archive. |
| 16288 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16289 | |
| 16290 | # Symbols that should not be listed in the preloaded symbols. |
| 16291 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16292 | |
| 16293 | # Symbols that must always be exported. |
| 16294 | include_expsyms=$lt_include_expsyms_F77 |
| 16295 | |
| 16296 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16297 | |
| 16298 | __EOF__ |
| 16299 | |
| 16300 | |
| 16301 | else |
| 16302 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16303 | # `config.status --recheck' to rerun these tests and create the |
| 16304 | # libtool script then. |
| 16305 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16306 | if test -f "$ltmain_in"; then |
| 16307 | test -f Makefile && make "$ltmain" |
| 16308 | fi |
| 16309 | fi |
| 16310 | |
| 16311 | |
| 16312 | ac_ext=c |
| 16313 | ac_cpp='$CPP $CPPFLAGS' |
| 16314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16317 | |
| 16318 | CC="$lt_save_CC" |
| 16319 | |
| 16320 | else |
| 16321 | tagname="" |
| 16322 | fi |
| 16323 | ;; |
| 16324 | |
| 16325 | GCJ) |
| 16326 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16327 | |
| 16328 | |
| 16329 | # Source file extension for Java test sources. |
| 16330 | ac_ext=java |
| 16331 | |
| 16332 | # Object file extension for compiled Java test sources. |
| 16333 | objext=o |
| 16334 | objext_GCJ=$objext |
| 16335 | |
| 16336 | # Code to be used in simple compile tests |
| 16337 | lt_simple_compile_test_code="class foo {}\n" |
| 16338 | |
| 16339 | # Code to be used in simple link tests |
| 16340 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| 16341 | |
| 16342 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16343 | |
| 16344 | # If no C compiler was specified, use CC. |
| 16345 | LTCC=${LTCC-"$CC"} |
| 16346 | |
| 16347 | # If no C compiler flags were specified, use CFLAGS. |
| 16348 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16349 | |
| 16350 | # Allow CC to be a program name with arguments. |
| 16351 | compiler=$CC |
| 16352 | |
| 16353 | |
| 16354 | # save warnings/boilerplate of simple test code |
| 16355 | ac_outfile=conftest.$ac_objext |
| 16356 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16357 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16358 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16359 | $rm conftest* |
| 16360 | |
| 16361 | ac_outfile=conftest.$ac_objext |
| 16362 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16363 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16364 | _lt_linker_boilerplate=`cat conftest.err` |
| 16365 | $rm conftest* |
| 16366 | |
| 16367 | |
| 16368 | # Allow CC to be a program name with arguments. |
| 16369 | lt_save_CC="$CC" |
| 16370 | CC=${GCJ-"gcj"} |
| 16371 | compiler=$CC |
| 16372 | compiler_GCJ=$CC |
| 16373 | for cc_temp in $compiler""; do |
| 16374 | case $cc_temp in |
| 16375 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16376 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16377 | \-*) ;; |
| 16378 | *) break;; |
| 16379 | esac |
| 16380 | done |
| 16381 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16382 | |
| 16383 | |
| 16384 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16385 | archive_cmds_need_lc_GCJ=no |
| 16386 | |
| 16387 | old_archive_cmds_GCJ=$old_archive_cmds |
| 16388 | |
| 16389 | ## CAVEAT EMPTOR: |
| 16390 | ## There is no encapsulation within the following macros, do not change |
| 16391 | ## the running order or otherwise move them around unless you know exactly |
| 16392 | ## what you are doing... |
| 16393 | |
| 16394 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16395 | |
| 16396 | if test "$GCC" = yes; then |
| 16397 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16398 | |
| 16399 | |
| 16400 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16401 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
| 16402 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16404 | else |
| 16405 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16406 | ac_outfile=conftest.$ac_objext |
| 16407 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16408 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16409 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16410 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16411 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16412 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16413 | # The option is referenced via a variable to avoid confusing sed. |
| 16414 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16415 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16416 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16417 | -e 's:$: $lt_compiler_flag:'` |
| 16418 | (eval echo "\"\$as_me:16418: $lt_compile\"" >&5) |
| 16419 | (eval "$lt_compile" 2>conftest.err) |
| 16420 | ac_status=$? |
| 16421 | cat conftest.err >&5 |
| 16422 | echo "$as_me:16422: \$? = $ac_status" >&5 |
| 16423 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16424 | # The compiler can only warn and ignore the option if not recognized |
| 16425 | # So say no if there are warnings other than the usual output. |
| 16426 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16427 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16428 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 16429 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16430 | fi |
| 16431 | fi |
| 16432 | $rm conftest* |
| 16433 | |
| 16434 | fi |
| 16435 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16436 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 16437 | |
| 16438 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16439 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16440 | else |
| 16441 | : |
| 16442 | fi |
| 16443 | |
| 16444 | fi |
| 16445 | |
| 16446 | lt_prog_compiler_wl_GCJ= |
| 16447 | lt_prog_compiler_pic_GCJ= |
| 16448 | lt_prog_compiler_static_GCJ= |
| 16449 | |
| 16450 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16451 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
| 16452 | |
| 16453 | if test "$GCC" = yes; then |
| 16454 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16455 | lt_prog_compiler_static_GCJ='-static' |
| 16456 | |
| 16457 | case $host_os in |
| 16458 | aix*) |
| 16459 | # All AIX code is PIC. |
| 16460 | if test "$host_cpu" = ia64; then |
| 16461 | # AIX 5 now supports IA64 processor |
| 16462 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16463 | fi |
| 16464 | ;; |
| 16465 | |
| 16466 | amigaos*) |
| 16467 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16468 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16469 | # like `-m68040'. |
| 16470 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16471 | ;; |
| 16472 | |
| 16473 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16474 | # PIC is the default for these OSes. |
| 16475 | ;; |
| 16476 | |
| 16477 | mingw* | pw32* | os2*) |
| 16478 | # This hack is so that the source file can tell whether it is being |
| 16479 | # built for inclusion in a dll (and should export symbols for example). |
| 16480 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16481 | ;; |
| 16482 | |
| 16483 | darwin* | rhapsody*) |
| 16484 | # PIC is the default on this platform |
| 16485 | # Common symbols not allowed in MH_DYLIB files |
| 16486 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16487 | ;; |
| 16488 | |
| 16489 | interix3*) |
| 16490 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16491 | # Instead, we relocate shared libraries at runtime. |
| 16492 | ;; |
| 16493 | |
| 16494 | msdosdjgpp*) |
| 16495 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16496 | # on systems that don't support them. |
| 16497 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16498 | enable_shared=no |
| 16499 | ;; |
| 16500 | |
| 16501 | sysv4*MP*) |
| 16502 | if test -d /usr/nec; then |
| 16503 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16504 | fi |
| 16505 | ;; |
| 16506 | |
| 16507 | hpux*) |
| 16508 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16509 | # not for PA HP-UX. |
| 16510 | case $host_cpu in |
| 16511 | hppa*64*|ia64*) |
| 16512 | # +Z the default |
| 16513 | ;; |
| 16514 | *) |
| 16515 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16516 | ;; |
| 16517 | esac |
| 16518 | ;; |
| 16519 | |
| 16520 | *) |
| 16521 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16522 | ;; |
| 16523 | esac |
| 16524 | else |
| 16525 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16526 | case $host_os in |
| 16527 | aix*) |
| 16528 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16529 | if test "$host_cpu" = ia64; then |
| 16530 | # AIX 5 now supports IA64 processor |
| 16531 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16532 | else |
| 16533 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16534 | fi |
| 16535 | ;; |
| 16536 | darwin*) |
| 16537 | # PIC is the default on this platform |
| 16538 | # Common symbols not allowed in MH_DYLIB files |
| 16539 | case $cc_basename in |
| 16540 | xlc*) |
| 16541 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16542 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16543 | ;; |
| 16544 | esac |
| 16545 | ;; |
| 16546 | |
| 16547 | mingw* | pw32* | os2*) |
| 16548 | # This hack is so that the source file can tell whether it is being |
| 16549 | # built for inclusion in a dll (and should export symbols for example). |
| 16550 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16551 | ;; |
| 16552 | |
| 16553 | hpux9* | hpux10* | hpux11*) |
| 16554 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16555 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16556 | # not for PA HP-UX. |
| 16557 | case $host_cpu in |
| 16558 | hppa*64*|ia64*) |
| 16559 | # +Z the default |
| 16560 | ;; |
| 16561 | *) |
| 16562 | lt_prog_compiler_pic_GCJ='+Z' |
| 16563 | ;; |
| 16564 | esac |
| 16565 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16566 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16567 | ;; |
| 16568 | |
| 16569 | irix5* | irix6* | nonstopux*) |
| 16570 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16571 | # PIC (with -KPIC) is the default. |
| 16572 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16573 | ;; |
| 16574 | |
| 16575 | newsos6) |
| 16576 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16577 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16578 | ;; |
| 16579 | |
| 16580 | linux*) |
| 16581 | case $cc_basename in |
| 16582 | icc* | ecc*) |
| 16583 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16584 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16585 | lt_prog_compiler_static_GCJ='-static' |
| 16586 | ;; |
| 16587 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 16588 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 16589 | # which looks to be a dead project) |
| 16590 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16591 | lt_prog_compiler_pic_GCJ='-fpic' |
| 16592 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16593 | ;; |
| 16594 | ccc*) |
| 16595 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16596 | # All Alpha code is PIC. |
| 16597 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16598 | ;; |
| 16599 | esac |
| 16600 | ;; |
| 16601 | |
| 16602 | osf3* | osf4* | osf5*) |
| 16603 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16604 | # All OSF/1 code is PIC. |
| 16605 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16606 | ;; |
| 16607 | |
| 16608 | solaris*) |
| 16609 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16610 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16611 | case $cc_basename in |
| 16612 | f77* | f90* | f95*) |
| 16613 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 16614 | *) |
| 16615 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 16616 | esac |
| 16617 | ;; |
| 16618 | |
| 16619 | sunos4*) |
| 16620 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16621 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16622 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16623 | ;; |
| 16624 | |
| 16625 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 16626 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16627 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16628 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16629 | ;; |
| 16630 | |
| 16631 | sysv4*MP*) |
| 16632 | if test -d /usr/nec ;then |
| 16633 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16634 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16635 | fi |
| 16636 | ;; |
| 16637 | |
| 16638 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16639 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16640 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16641 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16642 | ;; |
| 16643 | |
| 16644 | unicos*) |
| 16645 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16646 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16647 | ;; |
| 16648 | |
| 16649 | uts4*) |
| 16650 | lt_prog_compiler_pic_GCJ='-pic' |
| 16651 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16652 | ;; |
| 16653 | |
| 16654 | *) |
| 16655 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16656 | ;; |
| 16657 | esac |
| 16658 | fi |
| 16659 | |
| 16660 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16661 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
| 16662 | |
| 16663 | # |
| 16664 | # Check to make sure the PIC flag actually works. |
| 16665 | # |
| 16666 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16667 | |
| 16668 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16669 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
| 16670 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16672 | else |
| 16673 | lt_prog_compiler_pic_works_GCJ=no |
| 16674 | ac_outfile=conftest.$ac_objext |
| 16675 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16676 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16677 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16678 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16679 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16680 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16681 | # The option is referenced via a variable to avoid confusing sed. |
| 16682 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16683 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16684 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16685 | -e 's:$: $lt_compiler_flag:'` |
| 16686 | (eval echo "\"\$as_me:16686: $lt_compile\"" >&5) |
| 16687 | (eval "$lt_compile" 2>conftest.err) |
| 16688 | ac_status=$? |
| 16689 | cat conftest.err >&5 |
| 16690 | echo "$as_me:16690: \$? = $ac_status" >&5 |
| 16691 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16692 | # The compiler can only warn and ignore the option if not recognized |
| 16693 | # So say no if there are warnings other than the usual output. |
| 16694 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16695 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16696 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 16697 | lt_prog_compiler_pic_works_GCJ=yes |
| 16698 | fi |
| 16699 | fi |
| 16700 | $rm conftest* |
| 16701 | |
| 16702 | fi |
| 16703 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16704 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
| 16705 | |
| 16706 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16707 | case $lt_prog_compiler_pic_GCJ in |
| 16708 | "" | " "*) ;; |
| 16709 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16710 | esac |
| 16711 | else |
| 16712 | lt_prog_compiler_pic_GCJ= |
| 16713 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16714 | fi |
| 16715 | |
| 16716 | fi |
| 16717 | case $host_os in |
| 16718 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16719 | *djgpp*) |
| 16720 | lt_prog_compiler_pic_GCJ= |
| 16721 | ;; |
| 16722 | *) |
| 16723 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 16724 | ;; |
| 16725 | esac |
| 16726 | |
| 16727 | # |
| 16728 | # Check to make sure the static flag actually works. |
| 16729 | # |
| 16730 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 16731 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 16732 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 16733 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 16734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16735 | else |
| 16736 | lt_prog_compiler_static_works_GCJ=no |
| 16737 | save_LDFLAGS="$LDFLAGS" |
| 16738 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16739 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16740 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16741 | # The linker can only warn and ignore the option if not recognized |
| 16742 | # So say no if there are warnings |
| 16743 | if test -s conftest.err; then |
| 16744 | # Append any errors to the config.log. |
| 16745 | cat conftest.err 1>&5 |
| 16746 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 16747 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16748 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16749 | lt_prog_compiler_static_works_GCJ=yes |
| 16750 | fi |
| 16751 | else |
| 16752 | lt_prog_compiler_static_works_GCJ=yes |
| 16753 | fi |
| 16754 | fi |
| 16755 | $rm conftest* |
| 16756 | LDFLAGS="$save_LDFLAGS" |
| 16757 | |
| 16758 | fi |
| 16759 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 16760 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 16761 | |
| 16762 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 16763 | : |
| 16764 | else |
| 16765 | lt_prog_compiler_static_GCJ= |
| 16766 | fi |
| 16767 | |
| 16768 | |
| 16769 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16770 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
| 16771 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 16772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16773 | else |
| 16774 | lt_cv_prog_compiler_c_o_GCJ=no |
| 16775 | $rm -r conftest 2>/dev/null |
| 16776 | mkdir conftest |
| 16777 | cd conftest |
| 16778 | mkdir out |
| 16779 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16780 | |
| 16781 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16782 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16783 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16784 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16785 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16786 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16787 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16788 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16789 | -e 's:$: $lt_compiler_flag:'` |
| 16790 | (eval echo "\"\$as_me:16790: $lt_compile\"" >&5) |
| 16791 | (eval "$lt_compile" 2>out/conftest.err) |
| 16792 | ac_status=$? |
| 16793 | cat out/conftest.err >&5 |
| 16794 | echo "$as_me:16794: \$? = $ac_status" >&5 |
| 16795 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16796 | then |
| 16797 | # The compiler can only warn and ignore the option if not recognized |
| 16798 | # So say no if there are warnings |
| 16799 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 16800 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16801 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16802 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 16803 | fi |
| 16804 | fi |
| 16805 | chmod u+w . 2>&5 |
| 16806 | $rm conftest* |
| 16807 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16808 | # template instantiation |
| 16809 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 16810 | $rm out/* && rmdir out |
| 16811 | cd .. |
| 16812 | rmdir conftest |
| 16813 | $rm conftest* |
| 16814 | |
| 16815 | fi |
| 16816 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 16817 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
| 16818 | |
| 16819 | |
| 16820 | hard_links="nottested" |
| 16821 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 16822 | # do not overwrite the value of need_locks provided by the user |
| 16823 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 16824 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
| 16825 | hard_links=yes |
| 16826 | $rm conftest* |
| 16827 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16828 | touch conftest.a |
| 16829 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16830 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16831 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 16832 | echo "${ECHO_T}$hard_links" >&6; } |
| 16833 | if test "$hard_links" = no; then |
| 16834 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 16835 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16836 | need_locks=warn |
| 16837 | fi |
| 16838 | else |
| 16839 | need_locks=no |
| 16840 | fi |
| 16841 | |
| 16842 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16843 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
| 16844 | |
| 16845 | runpath_var= |
| 16846 | allow_undefined_flag_GCJ= |
| 16847 | enable_shared_with_static_runtimes_GCJ=no |
| 16848 | archive_cmds_GCJ= |
| 16849 | archive_expsym_cmds_GCJ= |
| 16850 | old_archive_From_new_cmds_GCJ= |
| 16851 | old_archive_from_expsyms_cmds_GCJ= |
| 16852 | export_dynamic_flag_spec_GCJ= |
| 16853 | whole_archive_flag_spec_GCJ= |
| 16854 | thread_safe_flag_spec_GCJ= |
| 16855 | hardcode_libdir_flag_spec_GCJ= |
| 16856 | hardcode_libdir_flag_spec_ld_GCJ= |
| 16857 | hardcode_libdir_separator_GCJ= |
| 16858 | hardcode_direct_GCJ=no |
| 16859 | hardcode_minus_L_GCJ=no |
| 16860 | hardcode_shlibpath_var_GCJ=unsupported |
| 16861 | link_all_deplibs_GCJ=unknown |
| 16862 | hardcode_automatic_GCJ=no |
| 16863 | module_cmds_GCJ= |
| 16864 | module_expsym_cmds_GCJ= |
| 16865 | always_export_symbols_GCJ=no |
| 16866 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16867 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 16868 | # included in the symbol list |
| 16869 | include_expsyms_GCJ= |
| 16870 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 16871 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 16872 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 16873 | # as well as any symbol that contains `d'. |
| 16874 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 16875 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 16876 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 16877 | # the symbol is explicitly referenced. Since portable code cannot |
| 16878 | # rely on this symbol name, it's probably fine to never include it in |
| 16879 | # preloaded symbol tables. |
| 16880 | extract_expsyms_cmds= |
| 16881 | # Just being paranoid about ensuring that cc_basename is set. |
| 16882 | for cc_temp in $compiler""; do |
| 16883 | case $cc_temp in |
| 16884 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16885 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16886 | \-*) ;; |
| 16887 | *) break;; |
| 16888 | esac |
| 16889 | done |
| 16890 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16891 | |
| 16892 | case $host_os in |
| 16893 | cygwin* | mingw* | pw32*) |
| 16894 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 16895 | # When not using gcc, we currently assume that we are using |
| 16896 | # Microsoft Visual C++. |
| 16897 | if test "$GCC" != yes; then |
| 16898 | with_gnu_ld=no |
| 16899 | fi |
| 16900 | ;; |
| 16901 | interix*) |
| 16902 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 16903 | with_gnu_ld=yes |
| 16904 | ;; |
| 16905 | openbsd*) |
| 16906 | with_gnu_ld=no |
| 16907 | ;; |
| 16908 | esac |
| 16909 | |
| 16910 | ld_shlibs_GCJ=yes |
| 16911 | if test "$with_gnu_ld" = yes; then |
| 16912 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 16913 | wlarc='${wl}' |
| 16914 | |
| 16915 | # Set some defaults for GNU ld with shared library support. These |
| 16916 | # are reset later if shared libraries are not supported. Putting them |
| 16917 | # here allows them to be overridden if necessary. |
| 16918 | runpath_var=LD_RUN_PATH |
| 16919 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 16920 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 16921 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16922 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 16923 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16924 | else |
| 16925 | whole_archive_flag_spec_GCJ= |
| 16926 | fi |
| 16927 | supports_anon_versioning=no |
| 16928 | case `$LD -v 2>/dev/null` in |
| 16929 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 16930 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 16931 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 16932 | *\ 2.11.*) ;; # other 2.11 versions |
| 16933 | *) supports_anon_versioning=yes ;; |
| 16934 | esac |
| 16935 | |
| 16936 | # See if GNU ld supports shared libraries. |
| 16937 | case $host_os in |
| 16938 | aix3* | aix4* | aix5*) |
| 16939 | # On AIX/PPC, the GNU linker is very broken |
| 16940 | if test "$host_cpu" != ia64; then |
| 16941 | ld_shlibs_GCJ=no |
| 16942 | cat <<EOF 1>&2 |
| 16943 | |
| 16944 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 16945 | *** to be unable to reliably create shared libraries on AIX. |
| 16946 | *** Therefore, libtool is disabling shared libraries support. If you |
| 16947 | *** really care for shared libraries, you may want to modify your PATH |
| 16948 | *** so that a non-GNU linker is found, and then restart. |
| 16949 | |
| 16950 | EOF |
| 16951 | fi |
| 16952 | ;; |
| 16953 | |
| 16954 | amigaos*) |
| 16955 | archive_cmds_GCJ='$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)' |
| 16956 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16957 | hardcode_minus_L_GCJ=yes |
| 16958 | |
| 16959 | # Samuel A. Falvo II <[email protected]> reports |
| 16960 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 16961 | # to version 4, is to share data among multiple programs linked |
| 16962 | # with the same dynamic library. Since this doesn't match the |
| 16963 | # behavior of shared libraries on other platforms, we can't use |
| 16964 | # them. |
| 16965 | ld_shlibs_GCJ=no |
| 16966 | ;; |
| 16967 | |
| 16968 | beos*) |
| 16969 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16970 | allow_undefined_flag_GCJ=unsupported |
| 16971 | # Joseph Beckenbach <[email protected]> says some releases of gcc |
| 16972 | # support --undefined. This deserves some investigation. FIXME |
| 16973 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16974 | else |
| 16975 | ld_shlibs_GCJ=no |
| 16976 | fi |
| 16977 | ;; |
| 16978 | |
| 16979 | cygwin* | mingw* | pw32*) |
| 16980 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 16981 | # as there is no search path for DLLs. |
| 16982 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16983 | allow_undefined_flag_GCJ=unsupported |
| 16984 | always_export_symbols_GCJ=no |
| 16985 | enable_shared_with_static_runtimes_GCJ=yes |
| 16986 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 16987 | |
| 16988 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 16989 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 16990 | # If the export-symbols file already is a .def file (1st line |
| 16991 | # is EXPORTS), use it as is; otherwise, prepend... |
| 16992 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 16993 | cp $export_symbols $output_objdir/$soname.def; |
| 16994 | else |
| 16995 | echo EXPORTS > $output_objdir/$soname.def; |
| 16996 | cat $export_symbols >> $output_objdir/$soname.def; |
| 16997 | fi~ |
| 16998 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 16999 | else |
| 17000 | ld_shlibs_GCJ=no |
| 17001 | fi |
| 17002 | ;; |
| 17003 | |
| 17004 | interix3*) |
| 17005 | hardcode_direct_GCJ=no |
| 17006 | hardcode_shlibpath_var_GCJ=no |
| 17007 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17008 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17009 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17010 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17011 | # default) and relocated if they conflict, which is a slow very memory |
| 17012 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17013 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17014 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17015 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17016 | archive_expsym_cmds_GCJ='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' |
| 17017 | ;; |
| 17018 | |
| 17019 | linux*) |
| 17020 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17021 | tmp_addflag= |
| 17022 | case $cc_basename,$host_cpu in |
| 17023 | pgcc*) # Portland Group C compiler |
| 17024 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 17025 | tmp_addflag=' $pic_flag' |
| 17026 | ;; |
| 17027 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 17028 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 17029 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 17030 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 17031 | tmp_addflag=' -i_dynamic' ;; |
| 17032 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 17033 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 17034 | ifc* | ifort*) # Intel Fortran compiler |
| 17035 | tmp_addflag=' -nofor_main' ;; |
| 17036 | esac |
| 17037 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17038 | |
| 17039 | if test $supports_anon_versioning = yes; then |
| 17040 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17041 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17042 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17043 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17044 | fi |
| 17045 | else |
| 17046 | ld_shlibs_GCJ=no |
| 17047 | fi |
| 17048 | ;; |
| 17049 | |
| 17050 | netbsd*) |
| 17051 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17052 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17053 | wlarc= |
| 17054 | else |
| 17055 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17056 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17057 | fi |
| 17058 | ;; |
| 17059 | |
| 17060 | solaris*) |
| 17061 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 17062 | ld_shlibs_GCJ=no |
| 17063 | cat <<EOF 1>&2 |
| 17064 | |
| 17065 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17066 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17067 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17068 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17069 | *** your PATH or compiler configuration so that the native linker is |
| 17070 | *** used, and then restart. |
| 17071 | |
| 17072 | EOF |
| 17073 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17074 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17075 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17076 | else |
| 17077 | ld_shlibs_GCJ=no |
| 17078 | fi |
| 17079 | ;; |
| 17080 | |
| 17081 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 17082 | case `$LD -v 2>&1` in |
| 17083 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 17084 | ld_shlibs_GCJ=no |
| 17085 | cat <<_LT_EOF 1>&2 |
| 17086 | |
| 17087 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 17088 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 17089 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17090 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 17091 | *** your PATH or compiler configuration so that the native linker is |
| 17092 | *** used, and then restart. |
| 17093 | |
| 17094 | _LT_EOF |
| 17095 | ;; |
| 17096 | *) |
| 17097 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17098 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 17099 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 17100 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 17101 | else |
| 17102 | ld_shlibs_GCJ=no |
| 17103 | fi |
| 17104 | ;; |
| 17105 | esac |
| 17106 | ;; |
| 17107 | |
| 17108 | sunos4*) |
| 17109 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17110 | wlarc= |
| 17111 | hardcode_direct_GCJ=yes |
| 17112 | hardcode_shlibpath_var_GCJ=no |
| 17113 | ;; |
| 17114 | |
| 17115 | *) |
| 17116 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17117 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17118 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17119 | else |
| 17120 | ld_shlibs_GCJ=no |
| 17121 | fi |
| 17122 | ;; |
| 17123 | esac |
| 17124 | |
| 17125 | if test "$ld_shlibs_GCJ" = no; then |
| 17126 | runpath_var= |
| 17127 | hardcode_libdir_flag_spec_GCJ= |
| 17128 | export_dynamic_flag_spec_GCJ= |
| 17129 | whole_archive_flag_spec_GCJ= |
| 17130 | fi |
| 17131 | else |
| 17132 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17133 | case $host_os in |
| 17134 | aix3*) |
| 17135 | allow_undefined_flag_GCJ=unsupported |
| 17136 | always_export_symbols_GCJ=yes |
| 17137 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 17138 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17139 | # are no directories specified by -L. |
| 17140 | hardcode_minus_L_GCJ=yes |
| 17141 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 17142 | # Neither direct hardcoding nor static linking is supported with a |
| 17143 | # broken collect2. |
| 17144 | hardcode_direct_GCJ=unsupported |
| 17145 | fi |
| 17146 | ;; |
| 17147 | |
| 17148 | aix4* | aix5*) |
| 17149 | if test "$host_cpu" = ia64; then |
| 17150 | # On IA64, the linker does run time linking by default, so we don't |
| 17151 | # have to do anything special. |
| 17152 | aix_use_runtimelinking=no |
| 17153 | exp_sym_flag='-Bexport' |
| 17154 | no_entry_flag="" |
| 17155 | else |
| 17156 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17157 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17158 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17159 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 17160 | else |
| 17161 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 17162 | fi |
| 17163 | aix_use_runtimelinking=no |
| 17164 | |
| 17165 | # Test if we are trying to use run time linking or normal |
| 17166 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17167 | # need to do runtime linking. |
| 17168 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17169 | for ld_flag in $LDFLAGS; do |
| 17170 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 17171 | aix_use_runtimelinking=yes |
| 17172 | break |
| 17173 | fi |
| 17174 | done |
| 17175 | ;; |
| 17176 | esac |
| 17177 | |
| 17178 | exp_sym_flag='-bexport' |
| 17179 | no_entry_flag='-bnoentry' |
| 17180 | fi |
| 17181 | |
| 17182 | # When large executables or shared objects are built, AIX ld can |
| 17183 | # have problems creating the table of contents. If linking a library |
| 17184 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17185 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17186 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17187 | |
| 17188 | archive_cmds_GCJ='' |
| 17189 | hardcode_direct_GCJ=yes |
| 17190 | hardcode_libdir_separator_GCJ=':' |
| 17191 | link_all_deplibs_GCJ=yes |
| 17192 | |
| 17193 | if test "$GCC" = yes; then |
| 17194 | case $host_os in aix4.[012]|aix4.[012].*) |
| 17195 | # We only want to do this on AIX 4.2 and lower, the check |
| 17196 | # below for broken collect2 doesn't work under 4.3+ |
| 17197 | collect2name=`${CC} -print-prog-name=collect2` |
| 17198 | if test -f "$collect2name" && \ |
| 17199 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17200 | then |
| 17201 | # We have reworked collect2 |
| 17202 | hardcode_direct_GCJ=yes |
| 17203 | else |
| 17204 | # We have old collect2 |
| 17205 | hardcode_direct_GCJ=unsupported |
| 17206 | # It fails to find uninstalled libraries when the uninstalled |
| 17207 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17208 | # to unsupported forces relinking |
| 17209 | hardcode_minus_L_GCJ=yes |
| 17210 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17211 | hardcode_libdir_separator_GCJ= |
| 17212 | fi |
| 17213 | ;; |
| 17214 | esac |
| 17215 | shared_flag='-shared' |
| 17216 | if test "$aix_use_runtimelinking" = yes; then |
| 17217 | shared_flag="$shared_flag "'${wl}-G' |
| 17218 | fi |
| 17219 | else |
| 17220 | # not using gcc |
| 17221 | if test "$host_cpu" = ia64; then |
| 17222 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17223 | # chokes on -Wl,-G. The following line is correct: |
| 17224 | shared_flag='-G' |
| 17225 | else |
| 17226 | if test "$aix_use_runtimelinking" = yes; then |
| 17227 | shared_flag='${wl}-G' |
| 17228 | else |
| 17229 | shared_flag='${wl}-bM:SRE' |
| 17230 | fi |
| 17231 | fi |
| 17232 | fi |
| 17233 | |
| 17234 | # It seems that -bexpall does not export symbols beginning with |
| 17235 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17236 | always_export_symbols_GCJ=yes |
| 17237 | if test "$aix_use_runtimelinking" = yes; then |
| 17238 | # Warning - without using the other runtime loading flags (-brtl), |
| 17239 | # -berok will link without error, but may produce a broken library. |
| 17240 | allow_undefined_flag_GCJ='-berok' |
| 17241 | # Determine the default libpath from the value encoded in an empty executable. |
| 17242 | cat >conftest.$ac_ext <<_ACEOF |
| 17243 | /* confdefs.h. */ |
| 17244 | _ACEOF |
| 17245 | cat confdefs.h >>conftest.$ac_ext |
| 17246 | cat >>conftest.$ac_ext <<_ACEOF |
| 17247 | /* end confdefs.h. */ |
| 17248 | |
| 17249 | int |
| 17250 | main () |
| 17251 | { |
| 17252 | |
| 17253 | ; |
| 17254 | return 0; |
| 17255 | } |
| 17256 | _ACEOF |
| 17257 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17258 | if { (ac_try="$ac_link" |
| 17259 | case "(($ac_try" in |
| 17260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17261 | *) ac_try_echo=$ac_try;; |
| 17262 | esac |
| 17263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17264 | (eval "$ac_link") 2>conftest.er1 |
| 17265 | ac_status=$? |
| 17266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17267 | rm -f conftest.er1 |
| 17268 | cat conftest.err >&5 |
| 17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17270 | (exit $ac_status); } && |
| 17271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17272 | { (case "(($ac_try" in |
| 17273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17274 | *) ac_try_echo=$ac_try;; |
| 17275 | esac |
| 17276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17277 | (eval "$ac_try") 2>&5 |
| 17278 | ac_status=$? |
| 17279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17280 | (exit $ac_status); }; } && |
| 17281 | { ac_try='test -s conftest$ac_exeext' |
| 17282 | { (case "(($ac_try" in |
| 17283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17284 | *) ac_try_echo=$ac_try;; |
| 17285 | esac |
| 17286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17287 | (eval "$ac_try") 2>&5 |
| 17288 | ac_status=$? |
| 17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17290 | (exit $ac_status); }; }; then |
| 17291 | |
| 17292 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17293 | }'` |
| 17294 | # Check for a 64-bit object if we didn't find anything. |
| 17295 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17296 | }'`; fi |
| 17297 | else |
| 17298 | echo "$as_me: failed program was:" >&5 |
| 17299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17300 | |
| 17301 | |
| 17302 | fi |
| 17303 | |
| 17304 | rm -f core conftest.err conftest.$ac_objext \ |
| 17305 | conftest$ac_exeext conftest.$ac_ext |
| 17306 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17307 | |
| 17308 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17309 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 17310 | else |
| 17311 | if test "$host_cpu" = ia64; then |
| 17312 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17313 | allow_undefined_flag_GCJ="-z nodefs" |
| 17314 | archive_expsym_cmds_GCJ="\$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" |
| 17315 | else |
| 17316 | # Determine the default libpath from the value encoded in an empty executable. |
| 17317 | cat >conftest.$ac_ext <<_ACEOF |
| 17318 | /* confdefs.h. */ |
| 17319 | _ACEOF |
| 17320 | cat confdefs.h >>conftest.$ac_ext |
| 17321 | cat >>conftest.$ac_ext <<_ACEOF |
| 17322 | /* end confdefs.h. */ |
| 17323 | |
| 17324 | int |
| 17325 | main () |
| 17326 | { |
| 17327 | |
| 17328 | ; |
| 17329 | return 0; |
| 17330 | } |
| 17331 | _ACEOF |
| 17332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17333 | if { (ac_try="$ac_link" |
| 17334 | case "(($ac_try" in |
| 17335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17336 | *) ac_try_echo=$ac_try;; |
| 17337 | esac |
| 17338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17339 | (eval "$ac_link") 2>conftest.er1 |
| 17340 | ac_status=$? |
| 17341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17342 | rm -f conftest.er1 |
| 17343 | cat conftest.err >&5 |
| 17344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17345 | (exit $ac_status); } && |
| 17346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17347 | { (case "(($ac_try" in |
| 17348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17349 | *) ac_try_echo=$ac_try;; |
| 17350 | esac |
| 17351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17352 | (eval "$ac_try") 2>&5 |
| 17353 | ac_status=$? |
| 17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17355 | (exit $ac_status); }; } && |
| 17356 | { ac_try='test -s conftest$ac_exeext' |
| 17357 | { (case "(($ac_try" in |
| 17358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17359 | *) ac_try_echo=$ac_try;; |
| 17360 | esac |
| 17361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17362 | (eval "$ac_try") 2>&5 |
| 17363 | ac_status=$? |
| 17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17365 | (exit $ac_status); }; }; then |
| 17366 | |
| 17367 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17368 | }'` |
| 17369 | # Check for a 64-bit object if we didn't find anything. |
| 17370 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17371 | }'`; fi |
| 17372 | else |
| 17373 | echo "$as_me: failed program was:" >&5 |
| 17374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17375 | |
| 17376 | |
| 17377 | fi |
| 17378 | |
| 17379 | rm -f core conftest.err conftest.$ac_objext \ |
| 17380 | conftest$ac_exeext conftest.$ac_ext |
| 17381 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17382 | |
| 17383 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17384 | # Warning - without using the other run time loading flags, |
| 17385 | # -berok will link without error, but may produce a broken library. |
| 17386 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17387 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 17388 | # Exported symbols can be pulled into shared objects from archives |
| 17389 | whole_archive_flag_spec_GCJ='$convenience' |
| 17390 | archive_cmds_need_lc_GCJ=yes |
| 17391 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17392 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 17393 | fi |
| 17394 | fi |
| 17395 | ;; |
| 17396 | |
| 17397 | amigaos*) |
| 17398 | archive_cmds_GCJ='$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)' |
| 17399 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17400 | hardcode_minus_L_GCJ=yes |
| 17401 | # see comment about different semantics on the GNU ld section |
| 17402 | ld_shlibs_GCJ=no |
| 17403 | ;; |
| 17404 | |
| 17405 | bsdi[45]*) |
| 17406 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17407 | ;; |
| 17408 | |
| 17409 | cygwin* | mingw* | pw32*) |
| 17410 | # When not using gcc, we currently assume that we are using |
| 17411 | # Microsoft Visual C++. |
| 17412 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17413 | # no search path for DLLs. |
| 17414 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17415 | allow_undefined_flag_GCJ=unsupported |
| 17416 | # Tell ltmain to make .lib files, not .a files. |
| 17417 | libext=lib |
| 17418 | # Tell ltmain to make .dll files, not .so files. |
| 17419 | shrext_cmds=".dll" |
| 17420 | # FIXME: Setting linknames here is a bad hack. |
| 17421 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17422 | # The linker will automatically build a .lib file if we build a DLL. |
| 17423 | old_archive_From_new_cmds_GCJ='true' |
| 17424 | # FIXME: Should let the user specify the lib program. |
| 17425 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 17426 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
| 17427 | enable_shared_with_static_runtimes_GCJ=yes |
| 17428 | ;; |
| 17429 | |
| 17430 | darwin* | rhapsody*) |
| 17431 | case $host_os in |
| 17432 | rhapsody* | darwin1.[012]) |
| 17433 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 17434 | ;; |
| 17435 | *) # Darwin 1.3 on |
| 17436 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17437 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17438 | else |
| 17439 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17440 | 10.[012]) |
| 17441 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17442 | ;; |
| 17443 | 10.*) |
| 17444 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17445 | ;; |
| 17446 | esac |
| 17447 | fi |
| 17448 | ;; |
| 17449 | esac |
| 17450 | archive_cmds_need_lc_GCJ=no |
| 17451 | hardcode_direct_GCJ=no |
| 17452 | hardcode_automatic_GCJ=yes |
| 17453 | hardcode_shlibpath_var_GCJ=unsupported |
| 17454 | whole_archive_flag_spec_GCJ='' |
| 17455 | link_all_deplibs_GCJ=yes |
| 17456 | if test "$GCC" = yes ; then |
| 17457 | output_verbose_link_cmd='echo' |
| 17458 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17459 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17460 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17461 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17462 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17463 | else |
| 17464 | case $cc_basename in |
| 17465 | xlc*) |
| 17466 | output_verbose_link_cmd='echo' |
| 17467 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17468 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17469 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17470 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17471 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17472 | ;; |
| 17473 | *) |
| 17474 | ld_shlibs_GCJ=no |
| 17475 | ;; |
| 17476 | esac |
| 17477 | fi |
| 17478 | ;; |
| 17479 | |
| 17480 | dgux*) |
| 17481 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17482 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17483 | hardcode_shlibpath_var_GCJ=no |
| 17484 | ;; |
| 17485 | |
| 17486 | freebsd1*) |
| 17487 | ld_shlibs_GCJ=no |
| 17488 | ;; |
| 17489 | |
| 17490 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17491 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17492 | # does not break anything, and helps significantly (at the cost of a little |
| 17493 | # extra space). |
| 17494 | freebsd2.2*) |
| 17495 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17496 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17497 | hardcode_direct_GCJ=yes |
| 17498 | hardcode_shlibpath_var_GCJ=no |
| 17499 | ;; |
| 17500 | |
| 17501 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17502 | freebsd2*) |
| 17503 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17504 | hardcode_direct_GCJ=yes |
| 17505 | hardcode_minus_L_GCJ=yes |
| 17506 | hardcode_shlibpath_var_GCJ=no |
| 17507 | ;; |
| 17508 | |
| 17509 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 17510 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 17511 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17512 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17513 | hardcode_direct_GCJ=yes |
| 17514 | hardcode_shlibpath_var_GCJ=no |
| 17515 | ;; |
| 17516 | |
| 17517 | hpux9*) |
| 17518 | if test "$GCC" = yes; then |
| 17519 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 17520 | else |
| 17521 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 17522 | fi |
| 17523 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17524 | hardcode_libdir_separator_GCJ=: |
| 17525 | hardcode_direct_GCJ=yes |
| 17526 | |
| 17527 | # hardcode_minus_L: Not really in the search PATH, |
| 17528 | # but as the default location of the library. |
| 17529 | hardcode_minus_L_GCJ=yes |
| 17530 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17531 | ;; |
| 17532 | |
| 17533 | hpux10*) |
| 17534 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17535 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17536 | else |
| 17537 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17538 | fi |
| 17539 | if test "$with_gnu_ld" = no; then |
| 17540 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17541 | hardcode_libdir_separator_GCJ=: |
| 17542 | |
| 17543 | hardcode_direct_GCJ=yes |
| 17544 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17545 | |
| 17546 | # hardcode_minus_L: Not really in the search PATH, |
| 17547 | # but as the default location of the library. |
| 17548 | hardcode_minus_L_GCJ=yes |
| 17549 | fi |
| 17550 | ;; |
| 17551 | |
| 17552 | hpux11*) |
| 17553 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17554 | case $host_cpu in |
| 17555 | hppa*64*) |
| 17556 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17557 | ;; |
| 17558 | ia64*) |
| 17559 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17560 | ;; |
| 17561 | *) |
| 17562 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17563 | ;; |
| 17564 | esac |
| 17565 | else |
| 17566 | case $host_cpu in |
| 17567 | hppa*64*) |
| 17568 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17569 | ;; |
| 17570 | ia64*) |
| 17571 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17572 | ;; |
| 17573 | *) |
| 17574 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17575 | ;; |
| 17576 | esac |
| 17577 | fi |
| 17578 | if test "$with_gnu_ld" = no; then |
| 17579 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17580 | hardcode_libdir_separator_GCJ=: |
| 17581 | |
| 17582 | case $host_cpu in |
| 17583 | hppa*64*|ia64*) |
| 17584 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17585 | hardcode_direct_GCJ=no |
| 17586 | hardcode_shlibpath_var_GCJ=no |
| 17587 | ;; |
| 17588 | *) |
| 17589 | hardcode_direct_GCJ=yes |
| 17590 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17591 | |
| 17592 | # hardcode_minus_L: Not really in the search PATH, |
| 17593 | # but as the default location of the library. |
| 17594 | hardcode_minus_L_GCJ=yes |
| 17595 | ;; |
| 17596 | esac |
| 17597 | fi |
| 17598 | ;; |
| 17599 | |
| 17600 | irix5* | irix6* | nonstopux*) |
| 17601 | if test "$GCC" = yes; then |
| 17602 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 17603 | else |
| 17604 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 17605 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17606 | fi |
| 17607 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17608 | hardcode_libdir_separator_GCJ=: |
| 17609 | link_all_deplibs_GCJ=yes |
| 17610 | ;; |
| 17611 | |
| 17612 | netbsd*) |
| 17613 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17614 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17615 | else |
| 17616 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17617 | fi |
| 17618 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17619 | hardcode_direct_GCJ=yes |
| 17620 | hardcode_shlibpath_var_GCJ=no |
| 17621 | ;; |
| 17622 | |
| 17623 | newsos6) |
| 17624 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17625 | hardcode_direct_GCJ=yes |
| 17626 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17627 | hardcode_libdir_separator_GCJ=: |
| 17628 | hardcode_shlibpath_var_GCJ=no |
| 17629 | ;; |
| 17630 | |
| 17631 | openbsd*) |
| 17632 | hardcode_direct_GCJ=yes |
| 17633 | hardcode_shlibpath_var_GCJ=no |
| 17634 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17635 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17636 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 17637 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17638 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17639 | else |
| 17640 | case $host_os in |
| 17641 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17642 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17643 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17644 | ;; |
| 17645 | *) |
| 17646 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17647 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17648 | ;; |
| 17649 | esac |
| 17650 | fi |
| 17651 | ;; |
| 17652 | |
| 17653 | os2*) |
| 17654 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17655 | hardcode_minus_L_GCJ=yes |
| 17656 | allow_undefined_flag_GCJ=unsupported |
| 17657 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 17658 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17659 | ;; |
| 17660 | |
| 17661 | osf3*) |
| 17662 | if test "$GCC" = yes; then |
| 17663 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17664 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 17665 | else |
| 17666 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17667 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 17668 | fi |
| 17669 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17670 | hardcode_libdir_separator_GCJ=: |
| 17671 | ;; |
| 17672 | |
| 17673 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17674 | if test "$GCC" = yes; then |
| 17675 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17676 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 17677 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17678 | else |
| 17679 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17680 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 17681 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 17682 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 17683 | |
| 17684 | # Both c and cxx compiler support -rpath directly |
| 17685 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17686 | fi |
| 17687 | hardcode_libdir_separator_GCJ=: |
| 17688 | ;; |
| 17689 | |
| 17690 | solaris*) |
| 17691 | no_undefined_flag_GCJ=' -z text' |
| 17692 | if test "$GCC" = yes; then |
| 17693 | wlarc='${wl}' |
| 17694 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17695 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17696 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17697 | else |
| 17698 | wlarc='' |
| 17699 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17700 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17701 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17702 | fi |
| 17703 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17704 | hardcode_shlibpath_var_GCJ=no |
| 17705 | case $host_os in |
| 17706 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 17707 | *) |
| 17708 | # The compiler driver will combine linker options so we |
| 17709 | # cannot just pass the convience library names through |
| 17710 | # without $wl, iff we do not link with $LD. |
| 17711 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 17712 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17713 | case $wlarc in |
| 17714 | '') |
| 17715 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17716 | *) |
| 17717 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 17718 | esac ;; |
| 17719 | esac |
| 17720 | link_all_deplibs_GCJ=yes |
| 17721 | ;; |
| 17722 | |
| 17723 | sunos4*) |
| 17724 | if test "x$host_vendor" = xsequent; then |
| 17725 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17726 | # files that make .init and .fini sections work. |
| 17727 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17728 | else |
| 17729 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 17730 | fi |
| 17731 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17732 | hardcode_direct_GCJ=yes |
| 17733 | hardcode_minus_L_GCJ=yes |
| 17734 | hardcode_shlibpath_var_GCJ=no |
| 17735 | ;; |
| 17736 | |
| 17737 | sysv4) |
| 17738 | case $host_vendor in |
| 17739 | sni) |
| 17740 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17741 | hardcode_direct_GCJ=yes # is this really true??? |
| 17742 | ;; |
| 17743 | siemens) |
| 17744 | ## LD is ld it makes a PLAMLIB |
| 17745 | ## CC just makes a GrossModule. |
| 17746 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17747 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 17748 | hardcode_direct_GCJ=no |
| 17749 | ;; |
| 17750 | motorola) |
| 17751 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17752 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 17753 | ;; |
| 17754 | esac |
| 17755 | runpath_var='LD_RUN_PATH' |
| 17756 | hardcode_shlibpath_var_GCJ=no |
| 17757 | ;; |
| 17758 | |
| 17759 | sysv4.3*) |
| 17760 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17761 | hardcode_shlibpath_var_GCJ=no |
| 17762 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 17763 | ;; |
| 17764 | |
| 17765 | sysv4*MP*) |
| 17766 | if test -d /usr/nec; then |
| 17767 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17768 | hardcode_shlibpath_var_GCJ=no |
| 17769 | runpath_var=LD_RUN_PATH |
| 17770 | hardcode_runpath_var=yes |
| 17771 | ld_shlibs_GCJ=yes |
| 17772 | fi |
| 17773 | ;; |
| 17774 | |
| 17775 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 17776 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17777 | archive_cmds_need_lc_GCJ=no |
| 17778 | hardcode_shlibpath_var_GCJ=no |
| 17779 | runpath_var='LD_RUN_PATH' |
| 17780 | |
| 17781 | if test "$GCC" = yes; then |
| 17782 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17783 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17784 | else |
| 17785 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17786 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17787 | fi |
| 17788 | ;; |
| 17789 | |
| 17790 | sysv5* | sco3.2v5* | sco5v6*) |
| 17791 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 17792 | # link with -lc, and that would cause any symbols used from libc to |
| 17793 | # always be unresolved, which means just about no library would |
| 17794 | # ever link correctly. If we're not using GNU ld we use -z text |
| 17795 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 17796 | # as -z defs. |
| 17797 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17798 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 17799 | archive_cmds_need_lc_GCJ=no |
| 17800 | hardcode_shlibpath_var_GCJ=no |
| 17801 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 17802 | hardcode_libdir_separator_GCJ=':' |
| 17803 | link_all_deplibs_GCJ=yes |
| 17804 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 17805 | runpath_var='LD_RUN_PATH' |
| 17806 | |
| 17807 | if test "$GCC" = yes; then |
| 17808 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17809 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17810 | else |
| 17811 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17812 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17813 | fi |
| 17814 | ;; |
| 17815 | |
| 17816 | uts4*) |
| 17817 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17818 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17819 | hardcode_shlibpath_var_GCJ=no |
| 17820 | ;; |
| 17821 | |
| 17822 | *) |
| 17823 | ld_shlibs_GCJ=no |
| 17824 | ;; |
| 17825 | esac |
| 17826 | fi |
| 17827 | |
| 17828 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 17829 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
| 17830 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 17831 | |
| 17832 | # |
| 17833 | # Do we need to explicitly link libc? |
| 17834 | # |
| 17835 | case "x$archive_cmds_need_lc_GCJ" in |
| 17836 | x|xyes) |
| 17837 | # Assume -lc should be added |
| 17838 | archive_cmds_need_lc_GCJ=yes |
| 17839 | |
| 17840 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 17841 | case $archive_cmds_GCJ in |
| 17842 | *'~'*) |
| 17843 | # FIXME: we may have to deal with multi-command sequences. |
| 17844 | ;; |
| 17845 | '$CC '*) |
| 17846 | # Test whether the compiler implicitly links with -lc since on some |
| 17847 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 17848 | # to ld, don't add -lc before -lgcc. |
| 17849 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 17850 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
| 17851 | $rm conftest* |
| 17852 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17853 | |
| 17854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17855 | (eval $ac_compile) 2>&5 |
| 17856 | ac_status=$? |
| 17857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17858 | (exit $ac_status); } 2>conftest.err; then |
| 17859 | soname=conftest |
| 17860 | lib=conftest |
| 17861 | libobjs=conftest.$ac_objext |
| 17862 | deplibs= |
| 17863 | wl=$lt_prog_compiler_wl_GCJ |
| 17864 | pic_flag=$lt_prog_compiler_pic_GCJ |
| 17865 | compiler_flags=-v |
| 17866 | linker_flags=-v |
| 17867 | verstring= |
| 17868 | output_objdir=. |
| 17869 | libname=conftest |
| 17870 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 17871 | allow_undefined_flag_GCJ= |
| 17872 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 17873 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 17874 | ac_status=$? |
| 17875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17876 | (exit $ac_status); } |
| 17877 | then |
| 17878 | archive_cmds_need_lc_GCJ=no |
| 17879 | else |
| 17880 | archive_cmds_need_lc_GCJ=yes |
| 17881 | fi |
| 17882 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 17883 | else |
| 17884 | cat conftest.err 1>&5 |
| 17885 | fi |
| 17886 | $rm conftest* |
| 17887 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 17888 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
| 17889 | ;; |
| 17890 | esac |
| 17891 | fi |
| 17892 | ;; |
| 17893 | esac |
| 17894 | |
| 17895 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 17896 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
| 17897 | library_names_spec= |
| 17898 | libname_spec='lib$name' |
| 17899 | soname_spec= |
| 17900 | shrext_cmds=".so" |
| 17901 | postinstall_cmds= |
| 17902 | postuninstall_cmds= |
| 17903 | finish_cmds= |
| 17904 | finish_eval= |
| 17905 | shlibpath_var= |
| 17906 | shlibpath_overrides_runpath=unknown |
| 17907 | version_type=none |
| 17908 | dynamic_linker="$host_os ld.so" |
| 17909 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17910 | if test "$GCC" = yes; then |
| 17911 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17912 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 17913 | # if the path contains ";" then we assume it to be the separator |
| 17914 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 17915 | # assumed that no part of a normal pathname contains ";" but that should |
| 17916 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 17917 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17918 | else |
| 17919 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17920 | fi |
| 17921 | else |
| 17922 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17923 | fi |
| 17924 | need_lib_prefix=unknown |
| 17925 | hardcode_into_libs=no |
| 17926 | |
| 17927 | # when you set need_version to no, make sure it does not cause -set_version |
| 17928 | # flags to be left without arguments |
| 17929 | need_version=unknown |
| 17930 | |
| 17931 | case $host_os in |
| 17932 | aix3*) |
| 17933 | version_type=linux |
| 17934 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17935 | shlibpath_var=LIBPATH |
| 17936 | |
| 17937 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 17938 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17939 | ;; |
| 17940 | |
| 17941 | aix4* | aix5*) |
| 17942 | version_type=linux |
| 17943 | need_lib_prefix=no |
| 17944 | need_version=no |
| 17945 | hardcode_into_libs=yes |
| 17946 | if test "$host_cpu" = ia64; then |
| 17947 | # AIX 5 supports IA64 |
| 17948 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17949 | shlibpath_var=LD_LIBRARY_PATH |
| 17950 | else |
| 17951 | # With GCC up to 2.95.x, collect2 would create an import file |
| 17952 | # for dependence libraries. The import file would start with |
| 17953 | # the line `#! .'. This would cause the generated library to |
| 17954 | # depend on `.', always an invalid library. This was fixed in |
| 17955 | # development snapshots of GCC prior to 3.0. |
| 17956 | case $host_os in |
| 17957 | aix4 | aix4.[01] | aix4.[01].*) |
| 17958 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17959 | echo ' yes ' |
| 17960 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 17961 | : |
| 17962 | else |
| 17963 | can_build_shared=no |
| 17964 | fi |
| 17965 | ;; |
| 17966 | esac |
| 17967 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17968 | # soname into executable. Probably we can add versioning support to |
| 17969 | # collect2, so additional links can be useful in future. |
| 17970 | if test "$aix_use_runtimelinking" = yes; then |
| 17971 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17972 | # instead of lib<name>.a to let people know that these are not |
| 17973 | # typical AIX shared libraries. |
| 17974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17975 | else |
| 17976 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 17977 | # and later when we are not doing run time linking. |
| 17978 | library_names_spec='${libname}${release}.a $libname.a' |
| 17979 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17980 | fi |
| 17981 | shlibpath_var=LIBPATH |
| 17982 | fi |
| 17983 | ;; |
| 17984 | |
| 17985 | amigaos*) |
| 17986 | library_names_spec='$libname.ixlibrary $libname.a' |
| 17987 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 17988 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 17989 | ;; |
| 17990 | |
| 17991 | beos*) |
| 17992 | library_names_spec='${libname}${shared_ext}' |
| 17993 | dynamic_linker="$host_os ld.so" |
| 17994 | shlibpath_var=LIBRARY_PATH |
| 17995 | ;; |
| 17996 | |
| 17997 | bsdi[45]*) |
| 17998 | version_type=linux |
| 17999 | need_version=no |
| 18000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18001 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18002 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18003 | shlibpath_var=LD_LIBRARY_PATH |
| 18004 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18005 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18006 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18007 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18008 | # libtool to hard-code these into programs |
| 18009 | ;; |
| 18010 | |
| 18011 | cygwin* | mingw* | pw32*) |
| 18012 | version_type=windows |
| 18013 | shrext_cmds=".dll" |
| 18014 | need_version=no |
| 18015 | need_lib_prefix=no |
| 18016 | |
| 18017 | case $GCC,$host_os in |
| 18018 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18019 | library_names_spec='$libname.dll.a' |
| 18020 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18021 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18022 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18023 | dldir=$destdir/`dirname \$dlpath`~ |
| 18024 | test -d \$dldir || mkdir -p \$dldir~ |
| 18025 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18026 | chmod a+x \$dldir/$dlname' |
| 18027 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18028 | dlpath=$dir/\$dldll~ |
| 18029 | $rm \$dlpath' |
| 18030 | shlibpath_overrides_runpath=yes |
| 18031 | |
| 18032 | case $host_os in |
| 18033 | cygwin*) |
| 18034 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18035 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18036 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18037 | ;; |
| 18038 | mingw*) |
| 18039 | # MinGW DLLs use traditional 'lib' prefix |
| 18040 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18041 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18042 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18043 | # It is most probably a Windows format PATH printed by |
| 18044 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18045 | # path with ; separators, and with drive letters. We can handle the |
| 18046 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18047 | # especially as we might pass files found there to a mingw objdump, |
| 18048 | # which wouldn't understand a cygwinified path. Ahh. |
| 18049 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18050 | else |
| 18051 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18052 | fi |
| 18053 | ;; |
| 18054 | pw32*) |
| 18055 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 18056 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18057 | ;; |
| 18058 | esac |
| 18059 | ;; |
| 18060 | |
| 18061 | *) |
| 18062 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18063 | ;; |
| 18064 | esac |
| 18065 | dynamic_linker='Win32 ld.exe' |
| 18066 | # FIXME: first we should search . and the directory the executable is in |
| 18067 | shlibpath_var=PATH |
| 18068 | ;; |
| 18069 | |
| 18070 | darwin* | rhapsody*) |
| 18071 | dynamic_linker="$host_os dyld" |
| 18072 | version_type=darwin |
| 18073 | need_lib_prefix=no |
| 18074 | need_version=no |
| 18075 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18076 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18077 | shlibpath_overrides_runpath=yes |
| 18078 | shlibpath_var=DYLD_LIBRARY_PATH |
| 18079 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 18080 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18081 | if test "$GCC" = yes; then |
| 18082 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 18083 | else |
| 18084 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 18085 | fi |
| 18086 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18087 | ;; |
| 18088 | |
| 18089 | dgux*) |
| 18090 | version_type=linux |
| 18091 | need_lib_prefix=no |
| 18092 | need_version=no |
| 18093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18095 | shlibpath_var=LD_LIBRARY_PATH |
| 18096 | ;; |
| 18097 | |
| 18098 | freebsd1*) |
| 18099 | dynamic_linker=no |
| 18100 | ;; |
| 18101 | |
| 18102 | kfreebsd*-gnu) |
| 18103 | version_type=linux |
| 18104 | need_lib_prefix=no |
| 18105 | need_version=no |
| 18106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18107 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18108 | shlibpath_var=LD_LIBRARY_PATH |
| 18109 | shlibpath_overrides_runpath=no |
| 18110 | hardcode_into_libs=yes |
| 18111 | dynamic_linker='GNU ld.so' |
| 18112 | ;; |
| 18113 | |
| 18114 | freebsd* | dragonfly*) |
| 18115 | # DragonFly does not have aout. When/if they implement a new |
| 18116 | # versioning mechanism, adjust this. |
| 18117 | if test -x /usr/bin/objformat; then |
| 18118 | objformat=`/usr/bin/objformat` |
| 18119 | else |
| 18120 | case $host_os in |
| 18121 | freebsd[123]*) objformat=aout ;; |
| 18122 | *) objformat=elf ;; |
| 18123 | esac |
| 18124 | fi |
| 18125 | version_type=freebsd-$objformat |
| 18126 | case $version_type in |
| 18127 | freebsd-elf*) |
| 18128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18129 | need_version=no |
| 18130 | need_lib_prefix=no |
| 18131 | ;; |
| 18132 | freebsd-*) |
| 18133 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18134 | need_version=yes |
| 18135 | ;; |
| 18136 | esac |
| 18137 | shlibpath_var=LD_LIBRARY_PATH |
| 18138 | case $host_os in |
| 18139 | freebsd2*) |
| 18140 | shlibpath_overrides_runpath=yes |
| 18141 | ;; |
| 18142 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 18143 | shlibpath_overrides_runpath=yes |
| 18144 | hardcode_into_libs=yes |
| 18145 | ;; |
| 18146 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18147 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 18148 | shlibpath_overrides_runpath=no |
| 18149 | hardcode_into_libs=yes |
| 18150 | ;; |
| 18151 | freebsd*) # from 4.6 on |
| 18152 | shlibpath_overrides_runpath=yes |
| 18153 | hardcode_into_libs=yes |
| 18154 | ;; |
| 18155 | esac |
| 18156 | ;; |
| 18157 | |
| 18158 | gnu*) |
| 18159 | version_type=linux |
| 18160 | need_lib_prefix=no |
| 18161 | need_version=no |
| 18162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18163 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18164 | shlibpath_var=LD_LIBRARY_PATH |
| 18165 | hardcode_into_libs=yes |
| 18166 | ;; |
| 18167 | |
| 18168 | hpux9* | hpux10* | hpux11*) |
| 18169 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18170 | # link against other versions. |
| 18171 | version_type=sunos |
| 18172 | need_lib_prefix=no |
| 18173 | need_version=no |
| 18174 | case $host_cpu in |
| 18175 | ia64*) |
| 18176 | shrext_cmds='.so' |
| 18177 | hardcode_into_libs=yes |
| 18178 | dynamic_linker="$host_os dld.so" |
| 18179 | shlibpath_var=LD_LIBRARY_PATH |
| 18180 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18183 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18184 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18185 | else |
| 18186 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18187 | fi |
| 18188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18189 | ;; |
| 18190 | hppa*64*) |
| 18191 | shrext_cmds='.sl' |
| 18192 | hardcode_into_libs=yes |
| 18193 | dynamic_linker="$host_os dld.sl" |
| 18194 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18195 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18198 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18199 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18200 | ;; |
| 18201 | *) |
| 18202 | shrext_cmds='.sl' |
| 18203 | dynamic_linker="$host_os dld.sl" |
| 18204 | shlibpath_var=SHLIB_PATH |
| 18205 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18208 | ;; |
| 18209 | esac |
| 18210 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18211 | postinstall_cmds='chmod 555 $lib' |
| 18212 | ;; |
| 18213 | |
| 18214 | interix3*) |
| 18215 | version_type=linux |
| 18216 | need_lib_prefix=no |
| 18217 | need_version=no |
| 18218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18219 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18220 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18221 | shlibpath_var=LD_LIBRARY_PATH |
| 18222 | shlibpath_overrides_runpath=no |
| 18223 | hardcode_into_libs=yes |
| 18224 | ;; |
| 18225 | |
| 18226 | irix5* | irix6* | nonstopux*) |
| 18227 | case $host_os in |
| 18228 | nonstopux*) version_type=nonstopux ;; |
| 18229 | *) |
| 18230 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18231 | version_type=linux |
| 18232 | else |
| 18233 | version_type=irix |
| 18234 | fi ;; |
| 18235 | esac |
| 18236 | need_lib_prefix=no |
| 18237 | need_version=no |
| 18238 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18240 | case $host_os in |
| 18241 | irix5* | nonstopux*) |
| 18242 | libsuff= shlibsuff= |
| 18243 | ;; |
| 18244 | *) |
| 18245 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18246 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18247 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18248 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18249 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18250 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18251 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18252 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18253 | esac |
| 18254 | ;; |
| 18255 | esac |
| 18256 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18257 | shlibpath_overrides_runpath=no |
| 18258 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18259 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18260 | hardcode_into_libs=yes |
| 18261 | ;; |
| 18262 | |
| 18263 | # No shared lib support for Linux oldld, aout, or coff. |
| 18264 | linux*oldld* | linux*aout* | linux*coff*) |
| 18265 | dynamic_linker=no |
| 18266 | ;; |
| 18267 | |
| 18268 | # This must be Linux ELF. |
| 18269 | linux*) |
| 18270 | version_type=linux |
| 18271 | need_lib_prefix=no |
| 18272 | need_version=no |
| 18273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18274 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18275 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18276 | shlibpath_var=LD_LIBRARY_PATH |
| 18277 | shlibpath_overrides_runpath=no |
| 18278 | # This implies no fast_install, which is unacceptable. |
| 18279 | # Some rework will be needed to allow for fast_install |
| 18280 | # before this can be enabled. |
| 18281 | hardcode_into_libs=yes |
| 18282 | |
| 18283 | # Append ld.so.conf contents to the search path |
| 18284 | if test -f /etc/ld.so.conf; then |
| 18285 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 18286 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18287 | fi |
| 18288 | |
| 18289 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18290 | # powerpc, because MkLinux only supported shared libraries with the |
| 18291 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18292 | # most powerpc-linux boxes support dynamic linking these days and |
| 18293 | # people can always --disable-shared, the test was removed, and we |
| 18294 | # assume the GNU/Linux dynamic linker is in use. |
| 18295 | dynamic_linker='GNU/Linux ld.so' |
| 18296 | ;; |
| 18297 | |
| 18298 | knetbsd*-gnu) |
| 18299 | version_type=linux |
| 18300 | need_lib_prefix=no |
| 18301 | need_version=no |
| 18302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18304 | shlibpath_var=LD_LIBRARY_PATH |
| 18305 | shlibpath_overrides_runpath=no |
| 18306 | hardcode_into_libs=yes |
| 18307 | dynamic_linker='GNU ld.so' |
| 18308 | ;; |
| 18309 | |
| 18310 | netbsd*) |
| 18311 | version_type=sunos |
| 18312 | need_lib_prefix=no |
| 18313 | need_version=no |
| 18314 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18316 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18317 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18318 | else |
| 18319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18320 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18321 | dynamic_linker='NetBSD ld.elf_so' |
| 18322 | fi |
| 18323 | shlibpath_var=LD_LIBRARY_PATH |
| 18324 | shlibpath_overrides_runpath=yes |
| 18325 | hardcode_into_libs=yes |
| 18326 | ;; |
| 18327 | |
| 18328 | newsos6) |
| 18329 | version_type=linux |
| 18330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18331 | shlibpath_var=LD_LIBRARY_PATH |
| 18332 | shlibpath_overrides_runpath=yes |
| 18333 | ;; |
| 18334 | |
| 18335 | nto-qnx*) |
| 18336 | version_type=linux |
| 18337 | need_lib_prefix=no |
| 18338 | need_version=no |
| 18339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18340 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18341 | shlibpath_var=LD_LIBRARY_PATH |
| 18342 | shlibpath_overrides_runpath=yes |
| 18343 | ;; |
| 18344 | |
| 18345 | openbsd*) |
| 18346 | version_type=sunos |
| 18347 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 18348 | need_lib_prefix=no |
| 18349 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18350 | case $host_os in |
| 18351 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18352 | *) need_version=no ;; |
| 18353 | esac |
| 18354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18355 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18356 | shlibpath_var=LD_LIBRARY_PATH |
| 18357 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18358 | case $host_os in |
| 18359 | openbsd2.[89] | openbsd2.[89].*) |
| 18360 | shlibpath_overrides_runpath=no |
| 18361 | ;; |
| 18362 | *) |
| 18363 | shlibpath_overrides_runpath=yes |
| 18364 | ;; |
| 18365 | esac |
| 18366 | else |
| 18367 | shlibpath_overrides_runpath=yes |
| 18368 | fi |
| 18369 | ;; |
| 18370 | |
| 18371 | os2*) |
| 18372 | libname_spec='$name' |
| 18373 | shrext_cmds=".dll" |
| 18374 | need_lib_prefix=no |
| 18375 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18376 | dynamic_linker='OS/2 ld.exe' |
| 18377 | shlibpath_var=LIBPATH |
| 18378 | ;; |
| 18379 | |
| 18380 | osf3* | osf4* | osf5*) |
| 18381 | version_type=osf |
| 18382 | need_lib_prefix=no |
| 18383 | need_version=no |
| 18384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18386 | shlibpath_var=LD_LIBRARY_PATH |
| 18387 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18388 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18389 | ;; |
| 18390 | |
| 18391 | solaris*) |
| 18392 | version_type=linux |
| 18393 | need_lib_prefix=no |
| 18394 | need_version=no |
| 18395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18397 | shlibpath_var=LD_LIBRARY_PATH |
| 18398 | shlibpath_overrides_runpath=yes |
| 18399 | hardcode_into_libs=yes |
| 18400 | # ldd complains unless libraries are executable |
| 18401 | postinstall_cmds='chmod +x $lib' |
| 18402 | ;; |
| 18403 | |
| 18404 | sunos4*) |
| 18405 | version_type=sunos |
| 18406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18407 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18408 | shlibpath_var=LD_LIBRARY_PATH |
| 18409 | shlibpath_overrides_runpath=yes |
| 18410 | if test "$with_gnu_ld" = yes; then |
| 18411 | need_lib_prefix=no |
| 18412 | fi |
| 18413 | need_version=yes |
| 18414 | ;; |
| 18415 | |
| 18416 | sysv4 | sysv4.3*) |
| 18417 | version_type=linux |
| 18418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18419 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18420 | shlibpath_var=LD_LIBRARY_PATH |
| 18421 | case $host_vendor in |
| 18422 | sni) |
| 18423 | shlibpath_overrides_runpath=no |
| 18424 | need_lib_prefix=no |
| 18425 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18426 | runpath_var=LD_RUN_PATH |
| 18427 | ;; |
| 18428 | siemens) |
| 18429 | need_lib_prefix=no |
| 18430 | ;; |
| 18431 | motorola) |
| 18432 | need_lib_prefix=no |
| 18433 | need_version=no |
| 18434 | shlibpath_overrides_runpath=no |
| 18435 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18436 | ;; |
| 18437 | esac |
| 18438 | ;; |
| 18439 | |
| 18440 | sysv4*MP*) |
| 18441 | if test -d /usr/nec ;then |
| 18442 | version_type=linux |
| 18443 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18444 | soname_spec='$libname${shared_ext}.$major' |
| 18445 | shlibpath_var=LD_LIBRARY_PATH |
| 18446 | fi |
| 18447 | ;; |
| 18448 | |
| 18449 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18450 | version_type=freebsd-elf |
| 18451 | need_lib_prefix=no |
| 18452 | need_version=no |
| 18453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18454 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18455 | shlibpath_var=LD_LIBRARY_PATH |
| 18456 | hardcode_into_libs=yes |
| 18457 | if test "$with_gnu_ld" = yes; then |
| 18458 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18459 | shlibpath_overrides_runpath=no |
| 18460 | else |
| 18461 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18462 | shlibpath_overrides_runpath=yes |
| 18463 | case $host_os in |
| 18464 | sco3.2v5*) |
| 18465 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18466 | ;; |
| 18467 | esac |
| 18468 | fi |
| 18469 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18470 | ;; |
| 18471 | |
| 18472 | uts4*) |
| 18473 | version_type=linux |
| 18474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18475 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18476 | shlibpath_var=LD_LIBRARY_PATH |
| 18477 | ;; |
| 18478 | |
| 18479 | *) |
| 18480 | dynamic_linker=no |
| 18481 | ;; |
| 18482 | esac |
| 18483 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18484 | echo "${ECHO_T}$dynamic_linker" >&6; } |
| 18485 | test "$dynamic_linker" = no && can_build_shared=no |
| 18486 | |
| 18487 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18488 | if test "$GCC" = yes; then |
| 18489 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18490 | fi |
| 18491 | |
| 18492 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18493 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
| 18494 | hardcode_action_GCJ= |
| 18495 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 18496 | test -n "$runpath_var_GCJ" || \ |
| 18497 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 18498 | |
| 18499 | # We can hardcode non-existant directories. |
| 18500 | if test "$hardcode_direct_GCJ" != no && |
| 18501 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18502 | # have to relink, otherwise we might link with an installed library |
| 18503 | # when we should be linking with a yet-to-be-installed one |
| 18504 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18505 | test "$hardcode_minus_L_GCJ" != no; then |
| 18506 | # Linking always hardcodes the temporary library directory. |
| 18507 | hardcode_action_GCJ=relink |
| 18508 | else |
| 18509 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18510 | hardcode_action_GCJ=immediate |
| 18511 | fi |
| 18512 | else |
| 18513 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18514 | # directories. |
| 18515 | hardcode_action_GCJ=unsupported |
| 18516 | fi |
| 18517 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18518 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
| 18519 | |
| 18520 | if test "$hardcode_action_GCJ" = relink; then |
| 18521 | # Fast installation is not supported |
| 18522 | enable_fast_install=no |
| 18523 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18524 | test "$enable_shared" = no; then |
| 18525 | # Fast installation is not necessary |
| 18526 | enable_fast_install=needless |
| 18527 | fi |
| 18528 | |
| 18529 | |
| 18530 | # The else clause should only fire when bootstrapping the |
| 18531 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18532 | # with your package, and you will get complaints that there are |
| 18533 | # no rules to generate ltmain.sh. |
| 18534 | if test -f "$ltmain"; then |
| 18535 | # See if we are running on zsh, and set the options which allow our commands through |
| 18536 | # without removal of \ escapes. |
| 18537 | if test -n "${ZSH_VERSION+set}" ; then |
| 18538 | setopt NO_GLOB_SUBST |
| 18539 | fi |
| 18540 | # Now quote all the things that may contain metacharacters while being |
| 18541 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18542 | # variables and quote the copies for generation of the libtool script. |
| 18543 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 18544 | SED SHELL STRIP \ |
| 18545 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18546 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18547 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18548 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18549 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18550 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18551 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18552 | compiler_GCJ \ |
| 18553 | CC_GCJ \ |
| 18554 | LD_GCJ \ |
| 18555 | lt_prog_compiler_wl_GCJ \ |
| 18556 | lt_prog_compiler_pic_GCJ \ |
| 18557 | lt_prog_compiler_static_GCJ \ |
| 18558 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18559 | export_dynamic_flag_spec_GCJ \ |
| 18560 | thread_safe_flag_spec_GCJ \ |
| 18561 | whole_archive_flag_spec_GCJ \ |
| 18562 | enable_shared_with_static_runtimes_GCJ \ |
| 18563 | old_archive_cmds_GCJ \ |
| 18564 | old_archive_from_new_cmds_GCJ \ |
| 18565 | predep_objects_GCJ \ |
| 18566 | postdep_objects_GCJ \ |
| 18567 | predeps_GCJ \ |
| 18568 | postdeps_GCJ \ |
| 18569 | compiler_lib_search_path_GCJ \ |
| 18570 | archive_cmds_GCJ \ |
| 18571 | archive_expsym_cmds_GCJ \ |
| 18572 | postinstall_cmds_GCJ \ |
| 18573 | postuninstall_cmds_GCJ \ |
| 18574 | old_archive_from_expsyms_cmds_GCJ \ |
| 18575 | allow_undefined_flag_GCJ \ |
| 18576 | no_undefined_flag_GCJ \ |
| 18577 | export_symbols_cmds_GCJ \ |
| 18578 | hardcode_libdir_flag_spec_GCJ \ |
| 18579 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18580 | hardcode_libdir_separator_GCJ \ |
| 18581 | hardcode_automatic_GCJ \ |
| 18582 | module_cmds_GCJ \ |
| 18583 | module_expsym_cmds_GCJ \ |
| 18584 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18585 | exclude_expsyms_GCJ \ |
| 18586 | include_expsyms_GCJ; do |
| 18587 | |
| 18588 | case $var in |
| 18589 | old_archive_cmds_GCJ | \ |
| 18590 | old_archive_from_new_cmds_GCJ | \ |
| 18591 | archive_cmds_GCJ | \ |
| 18592 | archive_expsym_cmds_GCJ | \ |
| 18593 | module_cmds_GCJ | \ |
| 18594 | module_expsym_cmds_GCJ | \ |
| 18595 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18596 | export_symbols_cmds_GCJ | \ |
| 18597 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18598 | postinstall_cmds | postuninstall_cmds | \ |
| 18599 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18600 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18601 | # Double-quote double-evaled strings. |
| 18602 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18603 | ;; |
| 18604 | *) |
| 18605 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18606 | ;; |
| 18607 | esac |
| 18608 | done |
| 18609 | |
| 18610 | case $lt_echo in |
| 18611 | *'\$0 --fallback-echo"') |
| 18612 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18613 | ;; |
| 18614 | esac |
| 18615 | |
| 18616 | cfgfile="$ofile" |
| 18617 | |
| 18618 | cat <<__EOF__ >> "$cfgfile" |
| 18619 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18620 | |
| 18621 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18622 | |
| 18623 | # Shell to use when invoking shell scripts. |
| 18624 | SHELL=$lt_SHELL |
| 18625 | |
| 18626 | # Whether or not to build shared libraries. |
| 18627 | build_libtool_libs=$enable_shared |
| 18628 | |
| 18629 | # Whether or not to build static libraries. |
| 18630 | build_old_libs=$enable_static |
| 18631 | |
| 18632 | # Whether or not to add -lc for building shared libraries. |
| 18633 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18634 | |
| 18635 | # Whether or not to disallow shared libs when runtime libs are static |
| 18636 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18637 | |
| 18638 | # Whether or not to optimize for fast installation. |
| 18639 | fast_install=$enable_fast_install |
| 18640 | |
| 18641 | # The host system. |
| 18642 | host_alias=$host_alias |
| 18643 | host=$host |
| 18644 | host_os=$host_os |
| 18645 | |
| 18646 | # The build system. |
| 18647 | build_alias=$build_alias |
| 18648 | build=$build |
| 18649 | build_os=$build_os |
| 18650 | |
| 18651 | # An echo program that does not interpret backslashes. |
| 18652 | echo=$lt_echo |
| 18653 | |
| 18654 | # The archiver. |
| 18655 | AR=$lt_AR |
| 18656 | AR_FLAGS=$lt_AR_FLAGS |
| 18657 | |
| 18658 | # A C compiler. |
| 18659 | LTCC=$lt_LTCC |
| 18660 | |
| 18661 | # LTCC compiler flags. |
| 18662 | LTCFLAGS=$lt_LTCFLAGS |
| 18663 | |
| 18664 | # A language-specific compiler. |
| 18665 | CC=$lt_compiler_GCJ |
| 18666 | |
| 18667 | # Is the compiler the GNU C compiler? |
| 18668 | with_gcc=$GCC_GCJ |
| 18669 | |
| 18670 | # An ERE matcher. |
| 18671 | EGREP=$lt_EGREP |
| 18672 | |
| 18673 | # The linker used to build libraries. |
| 18674 | LD=$lt_LD_GCJ |
| 18675 | |
| 18676 | # Whether we need hard or soft links. |
| 18677 | LN_S=$lt_LN_S |
| 18678 | |
| 18679 | # A BSD-compatible nm program. |
| 18680 | NM=$lt_NM |
| 18681 | |
| 18682 | # A symbol stripping program |
| 18683 | STRIP=$lt_STRIP |
| 18684 | |
| 18685 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18686 | MAGIC_CMD=$MAGIC_CMD |
| 18687 | |
| 18688 | # Used on cygwin: DLL creation program. |
| 18689 | DLLTOOL="$DLLTOOL" |
| 18690 | |
| 18691 | # Used on cygwin: object dumper. |
| 18692 | OBJDUMP="$OBJDUMP" |
| 18693 | |
| 18694 | # Used on cygwin: assembler. |
| 18695 | AS="$AS" |
| 18696 | |
| 18697 | # The name of the directory that contains temporary libtool files. |
| 18698 | objdir=$objdir |
| 18699 | |
| 18700 | # How to create reloadable object files. |
| 18701 | reload_flag=$lt_reload_flag |
| 18702 | reload_cmds=$lt_reload_cmds |
| 18703 | |
| 18704 | # How to pass a linker flag through the compiler. |
| 18705 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18706 | |
| 18707 | # Object file suffix (normally "o"). |
| 18708 | objext="$ac_objext" |
| 18709 | |
| 18710 | # Old archive suffix (normally "a"). |
| 18711 | libext="$libext" |
| 18712 | |
| 18713 | # Shared library suffix (normally ".so"). |
| 18714 | shrext_cmds='$shrext_cmds' |
| 18715 | |
| 18716 | # Executable file suffix (normally ""). |
| 18717 | exeext="$exeext" |
| 18718 | |
| 18719 | # Additional compiler flags for building library objects. |
| 18720 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18721 | pic_mode=$pic_mode |
| 18722 | |
| 18723 | # What is the maximum length of a command? |
| 18724 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18725 | |
| 18726 | # Does compiler simultaneously support -c and -o options? |
| 18727 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18728 | |
| 18729 | # Must we lock files when doing compilation? |
| 18730 | need_locks=$lt_need_locks |
| 18731 | |
| 18732 | # Do we need the lib prefix for modules? |
| 18733 | need_lib_prefix=$need_lib_prefix |
| 18734 | |
| 18735 | # Do we need a version for libraries? |
| 18736 | need_version=$need_version |
| 18737 | |
| 18738 | # Whether dlopen is supported. |
| 18739 | dlopen_support=$enable_dlopen |
| 18740 | |
| 18741 | # Whether dlopen of programs is supported. |
| 18742 | dlopen_self=$enable_dlopen_self |
| 18743 | |
| 18744 | # Whether dlopen of statically linked programs is supported. |
| 18745 | dlopen_self_static=$enable_dlopen_self_static |
| 18746 | |
| 18747 | # Compiler flag to prevent dynamic linking. |
| 18748 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18749 | |
| 18750 | # Compiler flag to turn off builtin functions. |
| 18751 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18752 | |
| 18753 | # Compiler flag to allow reflexive dlopens. |
| 18754 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18755 | |
| 18756 | # Compiler flag to generate shared objects directly from archives. |
| 18757 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18758 | |
| 18759 | # Compiler flag to generate thread-safe objects. |
| 18760 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18761 | |
| 18762 | # Library versioning type. |
| 18763 | version_type=$version_type |
| 18764 | |
| 18765 | # Format of library name prefix. |
| 18766 | libname_spec=$lt_libname_spec |
| 18767 | |
| 18768 | # List of archive names. First name is the real one, the rest are links. |
| 18769 | # The last name is the one that the linker finds with -lNAME. |
| 18770 | library_names_spec=$lt_library_names_spec |
| 18771 | |
| 18772 | # The coded name of the library, if different from the real name. |
| 18773 | soname_spec=$lt_soname_spec |
| 18774 | |
| 18775 | # Commands used to build and install an old-style archive. |
| 18776 | RANLIB=$lt_RANLIB |
| 18777 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18778 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18779 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18780 | |
| 18781 | # Create an old-style archive from a shared archive. |
| 18782 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18783 | |
| 18784 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18785 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18786 | |
| 18787 | # Commands used to build and install a shared archive. |
| 18788 | archive_cmds=$lt_archive_cmds_GCJ |
| 18789 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18790 | postinstall_cmds=$lt_postinstall_cmds |
| 18791 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18792 | |
| 18793 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18794 | module_cmds=$lt_module_cmds_GCJ |
| 18795 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 18796 | |
| 18797 | # Commands to strip libraries. |
| 18798 | old_striplib=$lt_old_striplib |
| 18799 | striplib=$lt_striplib |
| 18800 | |
| 18801 | # Dependencies to place before the objects being linked to create a |
| 18802 | # shared library. |
| 18803 | predep_objects=$lt_predep_objects_GCJ |
| 18804 | |
| 18805 | # Dependencies to place after the objects being linked to create a |
| 18806 | # shared library. |
| 18807 | postdep_objects=$lt_postdep_objects_GCJ |
| 18808 | |
| 18809 | # Dependencies to place before the objects being linked to create a |
| 18810 | # shared library. |
| 18811 | predeps=$lt_predeps_GCJ |
| 18812 | |
| 18813 | # Dependencies to place after the objects being linked to create a |
| 18814 | # shared library. |
| 18815 | postdeps=$lt_postdeps_GCJ |
| 18816 | |
| 18817 | # The library search path used internally by the compiler when linking |
| 18818 | # a shared library. |
| 18819 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 18820 | |
| 18821 | # Method to check whether dependent libraries are shared objects. |
| 18822 | deplibs_check_method=$lt_deplibs_check_method |
| 18823 | |
| 18824 | # Command to use when deplibs_check_method == file_magic. |
| 18825 | file_magic_cmd=$lt_file_magic_cmd |
| 18826 | |
| 18827 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18828 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 18829 | |
| 18830 | # Flag that forces no undefined symbols. |
| 18831 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 18832 | |
| 18833 | # Commands used to finish a libtool library installation in a directory. |
| 18834 | finish_cmds=$lt_finish_cmds |
| 18835 | |
| 18836 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18837 | finish_eval=$lt_finish_eval |
| 18838 | |
| 18839 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18840 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18841 | |
| 18842 | # Transform the output of nm in a proper C declaration |
| 18843 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18844 | |
| 18845 | # Transform the output of nm in a C name address pair |
| 18846 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18847 | |
| 18848 | # This is the shared library runtime path variable. |
| 18849 | runpath_var=$runpath_var |
| 18850 | |
| 18851 | # This is the shared library path variable. |
| 18852 | shlibpath_var=$shlibpath_var |
| 18853 | |
| 18854 | # Is shlibpath searched before the hard-coded library search path? |
| 18855 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18856 | |
| 18857 | # How to hardcode a shared library path into an executable. |
| 18858 | hardcode_action=$hardcode_action_GCJ |
| 18859 | |
| 18860 | # Whether we should hardcode library paths into libraries. |
| 18861 | hardcode_into_libs=$hardcode_into_libs |
| 18862 | |
| 18863 | # Flag to hardcode \$libdir into a binary during linking. |
| 18864 | # This must work even if \$libdir does not exist. |
| 18865 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 18866 | |
| 18867 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18868 | # a binary during linking. This must work even if \$libdir does |
| 18869 | # not exist. |
| 18870 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 18871 | |
| 18872 | # Whether we need a single -rpath flag with a separated argument. |
| 18873 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 18874 | |
| 18875 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18876 | # resulting binary. |
| 18877 | hardcode_direct=$hardcode_direct_GCJ |
| 18878 | |
| 18879 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18880 | # resulting binary. |
| 18881 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 18882 | |
| 18883 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18884 | # the resulting binary. |
| 18885 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 18886 | |
| 18887 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18888 | # and all subsequent libraries and executables linked against it. |
| 18889 | hardcode_automatic=$hardcode_automatic_GCJ |
| 18890 | |
| 18891 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18892 | # restored at relink time. |
| 18893 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18894 | |
| 18895 | # Whether libtool must link a program against all its dependency libraries. |
| 18896 | link_all_deplibs=$link_all_deplibs_GCJ |
| 18897 | |
| 18898 | # Compile-time system search path for libraries |
| 18899 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18900 | |
| 18901 | # Run-time system search path for libraries |
| 18902 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18903 | |
| 18904 | # Fix the shell variable \$srcfile for the compiler. |
| 18905 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 18906 | |
| 18907 | # Set to yes if exported symbols are required. |
| 18908 | always_export_symbols=$always_export_symbols_GCJ |
| 18909 | |
| 18910 | # The commands to list exported symbols. |
| 18911 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 18912 | |
| 18913 | # The commands to extract the exported symbol list from a shared archive. |
| 18914 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18915 | |
| 18916 | # Symbols that should not be listed in the preloaded symbols. |
| 18917 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 18918 | |
| 18919 | # Symbols that must always be exported. |
| 18920 | include_expsyms=$lt_include_expsyms_GCJ |
| 18921 | |
| 18922 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18923 | |
| 18924 | __EOF__ |
| 18925 | |
| 18926 | |
| 18927 | else |
| 18928 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18929 | # `config.status --recheck' to rerun these tests and create the |
| 18930 | # libtool script then. |
| 18931 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18932 | if test -f "$ltmain_in"; then |
| 18933 | test -f Makefile && make "$ltmain" |
| 18934 | fi |
| 18935 | fi |
| 18936 | |
| 18937 | |
| 18938 | ac_ext=c |
| 18939 | ac_cpp='$CPP $CPPFLAGS' |
| 18940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18943 | |
| 18944 | CC="$lt_save_CC" |
| 18945 | |
| 18946 | else |
| 18947 | tagname="" |
| 18948 | fi |
| 18949 | ;; |
| 18950 | |
| 18951 | RC) |
| 18952 | |
| 18953 | |
| 18954 | # Source file extension for RC test sources. |
| 18955 | ac_ext=rc |
| 18956 | |
| 18957 | # Object file extension for compiled RC test sources. |
| 18958 | objext=o |
| 18959 | objext_RC=$objext |
| 18960 | |
| 18961 | # Code to be used in simple compile tests |
| 18962 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 18963 | |
| 18964 | # Code to be used in simple link tests |
| 18965 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 18966 | |
| 18967 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18968 | |
| 18969 | # If no C compiler was specified, use CC. |
| 18970 | LTCC=${LTCC-"$CC"} |
| 18971 | |
| 18972 | # If no C compiler flags were specified, use CFLAGS. |
| 18973 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18974 | |
| 18975 | # Allow CC to be a program name with arguments. |
| 18976 | compiler=$CC |
| 18977 | |
| 18978 | |
| 18979 | # save warnings/boilerplate of simple test code |
| 18980 | ac_outfile=conftest.$ac_objext |
| 18981 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18982 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18983 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18984 | $rm conftest* |
| 18985 | |
| 18986 | ac_outfile=conftest.$ac_objext |
| 18987 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18988 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18989 | _lt_linker_boilerplate=`cat conftest.err` |
| 18990 | $rm conftest* |
| 18991 | |
| 18992 | |
| 18993 | # Allow CC to be a program name with arguments. |
| 18994 | lt_save_CC="$CC" |
| 18995 | CC=${RC-"windres"} |
| 18996 | compiler=$CC |
| 18997 | compiler_RC=$CC |
| 18998 | for cc_temp in $compiler""; do |
| 18999 | case $cc_temp in |
| 19000 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19001 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19002 | \-*) ;; |
| 19003 | *) break;; |
| 19004 | esac |
| 19005 | done |
| 19006 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 19007 | |
| 19008 | lt_cv_prog_compiler_c_o_RC=yes |
| 19009 | |
| 19010 | # The else clause should only fire when bootstrapping the |
| 19011 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19012 | # with your package, and you will get complaints that there are |
| 19013 | # no rules to generate ltmain.sh. |
| 19014 | if test -f "$ltmain"; then |
| 19015 | # See if we are running on zsh, and set the options which allow our commands through |
| 19016 | # without removal of \ escapes. |
| 19017 | if test -n "${ZSH_VERSION+set}" ; then |
| 19018 | setopt NO_GLOB_SUBST |
| 19019 | fi |
| 19020 | # Now quote all the things that may contain metacharacters while being |
| 19021 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19022 | # variables and quote the copies for generation of the libtool script. |
| 19023 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 19024 | SED SHELL STRIP \ |
| 19025 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19026 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19027 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19028 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19029 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19030 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19031 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19032 | compiler_RC \ |
| 19033 | CC_RC \ |
| 19034 | LD_RC \ |
| 19035 | lt_prog_compiler_wl_RC \ |
| 19036 | lt_prog_compiler_pic_RC \ |
| 19037 | lt_prog_compiler_static_RC \ |
| 19038 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19039 | export_dynamic_flag_spec_RC \ |
| 19040 | thread_safe_flag_spec_RC \ |
| 19041 | whole_archive_flag_spec_RC \ |
| 19042 | enable_shared_with_static_runtimes_RC \ |
| 19043 | old_archive_cmds_RC \ |
| 19044 | old_archive_from_new_cmds_RC \ |
| 19045 | predep_objects_RC \ |
| 19046 | postdep_objects_RC \ |
| 19047 | predeps_RC \ |
| 19048 | postdeps_RC \ |
| 19049 | compiler_lib_search_path_RC \ |
| 19050 | archive_cmds_RC \ |
| 19051 | archive_expsym_cmds_RC \ |
| 19052 | postinstall_cmds_RC \ |
| 19053 | postuninstall_cmds_RC \ |
| 19054 | old_archive_from_expsyms_cmds_RC \ |
| 19055 | allow_undefined_flag_RC \ |
| 19056 | no_undefined_flag_RC \ |
| 19057 | export_symbols_cmds_RC \ |
| 19058 | hardcode_libdir_flag_spec_RC \ |
| 19059 | hardcode_libdir_flag_spec_ld_RC \ |
| 19060 | hardcode_libdir_separator_RC \ |
| 19061 | hardcode_automatic_RC \ |
| 19062 | module_cmds_RC \ |
| 19063 | module_expsym_cmds_RC \ |
| 19064 | lt_cv_prog_compiler_c_o_RC \ |
| 19065 | exclude_expsyms_RC \ |
| 19066 | include_expsyms_RC; do |
| 19067 | |
| 19068 | case $var in |
| 19069 | old_archive_cmds_RC | \ |
| 19070 | old_archive_from_new_cmds_RC | \ |
| 19071 | archive_cmds_RC | \ |
| 19072 | archive_expsym_cmds_RC | \ |
| 19073 | module_cmds_RC | \ |
| 19074 | module_expsym_cmds_RC | \ |
| 19075 | old_archive_from_expsyms_cmds_RC | \ |
| 19076 | export_symbols_cmds_RC | \ |
| 19077 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19078 | postinstall_cmds | postuninstall_cmds | \ |
| 19079 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19080 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19081 | # Double-quote double-evaled strings. |
| 19082 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19083 | ;; |
| 19084 | *) |
| 19085 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19086 | ;; |
| 19087 | esac |
| 19088 | done |
| 19089 | |
| 19090 | case $lt_echo in |
| 19091 | *'\$0 --fallback-echo"') |
| 19092 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19093 | ;; |
| 19094 | esac |
| 19095 | |
| 19096 | cfgfile="$ofile" |
| 19097 | |
| 19098 | cat <<__EOF__ >> "$cfgfile" |
| 19099 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19100 | |
| 19101 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19102 | |
| 19103 | # Shell to use when invoking shell scripts. |
| 19104 | SHELL=$lt_SHELL |
| 19105 | |
| 19106 | # Whether or not to build shared libraries. |
| 19107 | build_libtool_libs=$enable_shared |
| 19108 | |
| 19109 | # Whether or not to build static libraries. |
| 19110 | build_old_libs=$enable_static |
| 19111 | |
| 19112 | # Whether or not to add -lc for building shared libraries. |
| 19113 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19114 | |
| 19115 | # Whether or not to disallow shared libs when runtime libs are static |
| 19116 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19117 | |
| 19118 | # Whether or not to optimize for fast installation. |
| 19119 | fast_install=$enable_fast_install |
| 19120 | |
| 19121 | # The host system. |
| 19122 | host_alias=$host_alias |
| 19123 | host=$host |
| 19124 | host_os=$host_os |
| 19125 | |
| 19126 | # The build system. |
| 19127 | build_alias=$build_alias |
| 19128 | build=$build |
| 19129 | build_os=$build_os |
| 19130 | |
| 19131 | # An echo program that does not interpret backslashes. |
| 19132 | echo=$lt_echo |
| 19133 | |
| 19134 | # The archiver. |
| 19135 | AR=$lt_AR |
| 19136 | AR_FLAGS=$lt_AR_FLAGS |
| 19137 | |
| 19138 | # A C compiler. |
| 19139 | LTCC=$lt_LTCC |
| 19140 | |
| 19141 | # LTCC compiler flags. |
| 19142 | LTCFLAGS=$lt_LTCFLAGS |
| 19143 | |
| 19144 | # A language-specific compiler. |
| 19145 | CC=$lt_compiler_RC |
| 19146 | |
| 19147 | # Is the compiler the GNU C compiler? |
| 19148 | with_gcc=$GCC_RC |
| 19149 | |
| 19150 | # An ERE matcher. |
| 19151 | EGREP=$lt_EGREP |
| 19152 | |
| 19153 | # The linker used to build libraries. |
| 19154 | LD=$lt_LD_RC |
| 19155 | |
| 19156 | # Whether we need hard or soft links. |
| 19157 | LN_S=$lt_LN_S |
| 19158 | |
| 19159 | # A BSD-compatible nm program. |
| 19160 | NM=$lt_NM |
| 19161 | |
| 19162 | # A symbol stripping program |
| 19163 | STRIP=$lt_STRIP |
| 19164 | |
| 19165 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19166 | MAGIC_CMD=$MAGIC_CMD |
| 19167 | |
| 19168 | # Used on cygwin: DLL creation program. |
| 19169 | DLLTOOL="$DLLTOOL" |
| 19170 | |
| 19171 | # Used on cygwin: object dumper. |
| 19172 | OBJDUMP="$OBJDUMP" |
| 19173 | |
| 19174 | # Used on cygwin: assembler. |
| 19175 | AS="$AS" |
| 19176 | |
| 19177 | # The name of the directory that contains temporary libtool files. |
| 19178 | objdir=$objdir |
| 19179 | |
| 19180 | # How to create reloadable object files. |
| 19181 | reload_flag=$lt_reload_flag |
| 19182 | reload_cmds=$lt_reload_cmds |
| 19183 | |
| 19184 | # How to pass a linker flag through the compiler. |
| 19185 | wl=$lt_lt_prog_compiler_wl_RC |
| 19186 | |
| 19187 | # Object file suffix (normally "o"). |
| 19188 | objext="$ac_objext" |
| 19189 | |
| 19190 | # Old archive suffix (normally "a"). |
| 19191 | libext="$libext" |
| 19192 | |
| 19193 | # Shared library suffix (normally ".so"). |
| 19194 | shrext_cmds='$shrext_cmds' |
| 19195 | |
| 19196 | # Executable file suffix (normally ""). |
| 19197 | exeext="$exeext" |
| 19198 | |
| 19199 | # Additional compiler flags for building library objects. |
| 19200 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19201 | pic_mode=$pic_mode |
| 19202 | |
| 19203 | # What is the maximum length of a command? |
| 19204 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19205 | |
| 19206 | # Does compiler simultaneously support -c and -o options? |
| 19207 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19208 | |
| 19209 | # Must we lock files when doing compilation? |
| 19210 | need_locks=$lt_need_locks |
| 19211 | |
| 19212 | # Do we need the lib prefix for modules? |
| 19213 | need_lib_prefix=$need_lib_prefix |
| 19214 | |
| 19215 | # Do we need a version for libraries? |
| 19216 | need_version=$need_version |
| 19217 | |
| 19218 | # Whether dlopen is supported. |
| 19219 | dlopen_support=$enable_dlopen |
| 19220 | |
| 19221 | # Whether dlopen of programs is supported. |
| 19222 | dlopen_self=$enable_dlopen_self |
| 19223 | |
| 19224 | # Whether dlopen of statically linked programs is supported. |
| 19225 | dlopen_self_static=$enable_dlopen_self_static |
| 19226 | |
| 19227 | # Compiler flag to prevent dynamic linking. |
| 19228 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 19229 | |
| 19230 | # Compiler flag to turn off builtin functions. |
| 19231 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 19232 | |
| 19233 | # Compiler flag to allow reflexive dlopens. |
| 19234 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19235 | |
| 19236 | # Compiler flag to generate shared objects directly from archives. |
| 19237 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19238 | |
| 19239 | # Compiler flag to generate thread-safe objects. |
| 19240 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19241 | |
| 19242 | # Library versioning type. |
| 19243 | version_type=$version_type |
| 19244 | |
| 19245 | # Format of library name prefix. |
| 19246 | libname_spec=$lt_libname_spec |
| 19247 | |
| 19248 | # List of archive names. First name is the real one, the rest are links. |
| 19249 | # The last name is the one that the linker finds with -lNAME. |
| 19250 | library_names_spec=$lt_library_names_spec |
| 19251 | |
| 19252 | # The coded name of the library, if different from the real name. |
| 19253 | soname_spec=$lt_soname_spec |
| 19254 | |
| 19255 | # Commands used to build and install an old-style archive. |
| 19256 | RANLIB=$lt_RANLIB |
| 19257 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19258 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19259 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19260 | |
| 19261 | # Create an old-style archive from a shared archive. |
| 19262 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19263 | |
| 19264 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19265 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19266 | |
| 19267 | # Commands used to build and install a shared archive. |
| 19268 | archive_cmds=$lt_archive_cmds_RC |
| 19269 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19270 | postinstall_cmds=$lt_postinstall_cmds |
| 19271 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19272 | |
| 19273 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19274 | module_cmds=$lt_module_cmds_RC |
| 19275 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19276 | |
| 19277 | # Commands to strip libraries. |
| 19278 | old_striplib=$lt_old_striplib |
| 19279 | striplib=$lt_striplib |
| 19280 | |
| 19281 | # Dependencies to place before the objects being linked to create a |
| 19282 | # shared library. |
| 19283 | predep_objects=$lt_predep_objects_RC |
| 19284 | |
| 19285 | # Dependencies to place after the objects being linked to create a |
| 19286 | # shared library. |
| 19287 | postdep_objects=$lt_postdep_objects_RC |
| 19288 | |
| 19289 | # Dependencies to place before the objects being linked to create a |
| 19290 | # shared library. |
| 19291 | predeps=$lt_predeps_RC |
| 19292 | |
| 19293 | # Dependencies to place after the objects being linked to create a |
| 19294 | # shared library. |
| 19295 | postdeps=$lt_postdeps_RC |
| 19296 | |
| 19297 | # The library search path used internally by the compiler when linking |
| 19298 | # a shared library. |
| 19299 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19300 | |
| 19301 | # Method to check whether dependent libraries are shared objects. |
| 19302 | deplibs_check_method=$lt_deplibs_check_method |
| 19303 | |
| 19304 | # Command to use when deplibs_check_method == file_magic. |
| 19305 | file_magic_cmd=$lt_file_magic_cmd |
| 19306 | |
| 19307 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19308 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19309 | |
| 19310 | # Flag that forces no undefined symbols. |
| 19311 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19312 | |
| 19313 | # Commands used to finish a libtool library installation in a directory. |
| 19314 | finish_cmds=$lt_finish_cmds |
| 19315 | |
| 19316 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19317 | finish_eval=$lt_finish_eval |
| 19318 | |
| 19319 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19320 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19321 | |
| 19322 | # Transform the output of nm in a proper C declaration |
| 19323 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19324 | |
| 19325 | # Transform the output of nm in a C name address pair |
| 19326 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19327 | |
| 19328 | # This is the shared library runtime path variable. |
| 19329 | runpath_var=$runpath_var |
| 19330 | |
| 19331 | # This is the shared library path variable. |
| 19332 | shlibpath_var=$shlibpath_var |
| 19333 | |
| 19334 | # Is shlibpath searched before the hard-coded library search path? |
| 19335 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19336 | |
| 19337 | # How to hardcode a shared library path into an executable. |
| 19338 | hardcode_action=$hardcode_action_RC |
| 19339 | |
| 19340 | # Whether we should hardcode library paths into libraries. |
| 19341 | hardcode_into_libs=$hardcode_into_libs |
| 19342 | |
| 19343 | # Flag to hardcode \$libdir into a binary during linking. |
| 19344 | # This must work even if \$libdir does not exist. |
| 19345 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19346 | |
| 19347 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19348 | # a binary during linking. This must work even if \$libdir does |
| 19349 | # not exist. |
| 19350 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19351 | |
| 19352 | # Whether we need a single -rpath flag with a separated argument. |
| 19353 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19354 | |
| 19355 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19356 | # resulting binary. |
| 19357 | hardcode_direct=$hardcode_direct_RC |
| 19358 | |
| 19359 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19360 | # resulting binary. |
| 19361 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19362 | |
| 19363 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19364 | # the resulting binary. |
| 19365 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19366 | |
| 19367 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19368 | # and all subsequent libraries and executables linked against it. |
| 19369 | hardcode_automatic=$hardcode_automatic_RC |
| 19370 | |
| 19371 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19372 | # restored at relink time. |
| 19373 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19374 | |
| 19375 | # Whether libtool must link a program against all its dependency libraries. |
| 19376 | link_all_deplibs=$link_all_deplibs_RC |
| 19377 | |
| 19378 | # Compile-time system search path for libraries |
| 19379 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19380 | |
| 19381 | # Run-time system search path for libraries |
| 19382 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19383 | |
| 19384 | # Fix the shell variable \$srcfile for the compiler. |
| 19385 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19386 | |
| 19387 | # Set to yes if exported symbols are required. |
| 19388 | always_export_symbols=$always_export_symbols_RC |
| 19389 | |
| 19390 | # The commands to list exported symbols. |
| 19391 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19392 | |
| 19393 | # The commands to extract the exported symbol list from a shared archive. |
| 19394 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19395 | |
| 19396 | # Symbols that should not be listed in the preloaded symbols. |
| 19397 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19398 | |
| 19399 | # Symbols that must always be exported. |
| 19400 | include_expsyms=$lt_include_expsyms_RC |
| 19401 | |
| 19402 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19403 | |
| 19404 | __EOF__ |
| 19405 | |
| 19406 | |
| 19407 | else |
| 19408 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19409 | # `config.status --recheck' to rerun these tests and create the |
| 19410 | # libtool script then. |
| 19411 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19412 | if test -f "$ltmain_in"; then |
| 19413 | test -f Makefile && make "$ltmain" |
| 19414 | fi |
| 19415 | fi |
| 19416 | |
| 19417 | |
| 19418 | ac_ext=c |
| 19419 | ac_cpp='$CPP $CPPFLAGS' |
| 19420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19423 | |
| 19424 | CC="$lt_save_CC" |
| 19425 | |
| 19426 | ;; |
| 19427 | |
| 19428 | *) |
| 19429 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19430 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19431 | { (exit 1); exit 1; }; } |
| 19432 | ;; |
| 19433 | esac |
| 19434 | |
| 19435 | # Append the new tag name to the list of available tags. |
| 19436 | if test -n "$tagname" ; then |
| 19437 | available_tags="$available_tags $tagname" |
| 19438 | fi |
| 19439 | fi |
| 19440 | done |
| 19441 | IFS="$lt_save_ifs" |
| 19442 | |
| 19443 | # Now substitute the updated list of available tags. |
| 19444 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19445 | mv "${ofile}T" "$ofile" |
| 19446 | chmod +x "$ofile" |
| 19447 | else |
| 19448 | rm -f "${ofile}T" |
| 19449 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19450 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19451 | { (exit 1); exit 1; }; } |
| 19452 | fi |
| 19453 | fi |
| 19454 | |
| 19455 | |
| 19456 | |
| 19457 | # This can be used to rebuild libtool when needed |
| 19458 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19459 | |
| 19460 | # Always use our own libtool. |
| 19461 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19462 | |
| 19463 | # Prevent multiple expansion |
| 19464 | |
| 19465 | |
| 19466 | |
| 19467 | |
| 19468 | |
| 19469 | |
| 19470 | |
| 19471 | |
| 19472 | |
| 19473 | |
| 19474 | |
| 19475 | |
| 19476 | |
| 19477 | |
| 19478 | |
| 19479 | |
| 19480 | |
| 19481 | |
| 19482 | |
| 19483 | |
| 19484 | |
| 19485 | case "$PLATFORM:$CC" in |
| 19486 | *-hp-hpux*:cc ) CFLAGS="$CFLAGS -Ae +DAportable" ;; |
| 19487 | esac |
| 19488 | |
| 19489 | |
| 19490 | { echo "$as_me:$LINENO: result: " >&5 |
| 19491 | echo "${ECHO_T}" >&6; } |
| 19492 | { echo "$as_me:$LINENO: result: ${T_MD}Platform Environment:${T_ME}" >&5 |
| 19493 | echo "${ECHO_T}${T_MD}Platform Environment:${T_ME}" >&6; } |
| 19494 | |
| 19495 | |
| 19496 | |
| 19497 | |
| 19498 | |
| 19499 | |
| 19500 | |
| 19501 | |
| 19502 | |
| 19503 | |
| 19504 | |
| 19505 | for ac_header in stdio.h stdlib.h string.h errno.h limits.h unistd.h fcntl.h sys/stat.h sys/types.h |
| 19506 | do |
| 19507 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19509 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19511 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19513 | fi |
| 19514 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19515 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19516 | echo "${ECHO_T}$ac_res" >&6; } |
| 19517 | else |
| 19518 | # Is the header compilable? |
| 19519 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19521 | cat >conftest.$ac_ext <<_ACEOF |
| 19522 | /* confdefs.h. */ |
| 19523 | _ACEOF |
| 19524 | cat confdefs.h >>conftest.$ac_ext |
| 19525 | cat >>conftest.$ac_ext <<_ACEOF |
| 19526 | /* end confdefs.h. */ |
| 19527 | $ac_includes_default |
| 19528 | #include <$ac_header> |
| 19529 | _ACEOF |
| 19530 | rm -f conftest.$ac_objext |
| 19531 | if { (ac_try="$ac_compile" |
| 19532 | case "(($ac_try" in |
| 19533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19534 | *) ac_try_echo=$ac_try;; |
| 19535 | esac |
| 19536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19537 | (eval "$ac_compile") 2>conftest.er1 |
| 19538 | ac_status=$? |
| 19539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19540 | rm -f conftest.er1 |
| 19541 | cat conftest.err >&5 |
| 19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19543 | (exit $ac_status); } && |
| 19544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19545 | { (case "(($ac_try" in |
| 19546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19547 | *) ac_try_echo=$ac_try;; |
| 19548 | esac |
| 19549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19550 | (eval "$ac_try") 2>&5 |
| 19551 | ac_status=$? |
| 19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19553 | (exit $ac_status); }; } && |
| 19554 | { ac_try='test -s conftest.$ac_objext' |
| 19555 | { (case "(($ac_try" in |
| 19556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19557 | *) ac_try_echo=$ac_try;; |
| 19558 | esac |
| 19559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19560 | (eval "$ac_try") 2>&5 |
| 19561 | ac_status=$? |
| 19562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19563 | (exit $ac_status); }; }; then |
| 19564 | ac_header_compiler=yes |
| 19565 | else |
| 19566 | echo "$as_me: failed program was:" >&5 |
| 19567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19568 | |
| 19569 | ac_header_compiler=no |
| 19570 | fi |
| 19571 | |
| 19572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19573 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19574 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19575 | |
| 19576 | # Is the header present? |
| 19577 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19579 | cat >conftest.$ac_ext <<_ACEOF |
| 19580 | /* confdefs.h. */ |
| 19581 | _ACEOF |
| 19582 | cat confdefs.h >>conftest.$ac_ext |
| 19583 | cat >>conftest.$ac_ext <<_ACEOF |
| 19584 | /* end confdefs.h. */ |
| 19585 | #include <$ac_header> |
| 19586 | _ACEOF |
| 19587 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19588 | case "(($ac_try" in |
| 19589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19590 | *) ac_try_echo=$ac_try;; |
| 19591 | esac |
| 19592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19594 | ac_status=$? |
| 19595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19596 | rm -f conftest.er1 |
| 19597 | cat conftest.err >&5 |
| 19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19599 | (exit $ac_status); } >/dev/null; then |
| 19600 | if test -s conftest.err; then |
| 19601 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19602 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19603 | else |
| 19604 | ac_cpp_err= |
| 19605 | fi |
| 19606 | else |
| 19607 | ac_cpp_err=yes |
| 19608 | fi |
| 19609 | if test -z "$ac_cpp_err"; then |
| 19610 | ac_header_preproc=yes |
| 19611 | else |
| 19612 | echo "$as_me: failed program was:" >&5 |
| 19613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19614 | |
| 19615 | ac_header_preproc=no |
| 19616 | fi |
| 19617 | |
| 19618 | rm -f conftest.err conftest.$ac_ext |
| 19619 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19620 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19621 | |
| 19622 | # So? What about this header? |
| 19623 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19624 | yes:no: ) |
| 19625 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19626 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19628 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19629 | ac_header_preproc=yes |
| 19630 | ;; |
| 19631 | no:yes:* ) |
| 19632 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19633 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19634 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19635 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19636 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19637 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19638 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19639 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19640 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19641 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19642 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19643 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19644 | |
| 19645 | ;; |
| 19646 | esac |
| 19647 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19651 | else |
| 19652 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19653 | fi |
| 19654 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19655 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19656 | echo "${ECHO_T}$ac_res" >&6; } |
| 19657 | |
| 19658 | fi |
| 19659 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19660 | cat >>confdefs.h <<_ACEOF |
| 19661 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19662 | _ACEOF |
| 19663 | |
| 19664 | fi |
| 19665 | |
| 19666 | done |
| 19667 | |
| 19668 | ac_decision_item='mandatory system headers' |
| 19669 | ac_decision_msg='FAILED' |
| 19670 | ac_decision='' |
| 19671 | |
| 19672 | ac_rc=yes |
| 19673 | for ac_spec in header:stdio.h header:stdlib.h header:string.h header:errno.h header:limits.h header:unistd.h header:fcntl.h header:sys/stat.h header:sys/types.h; do |
| 19674 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 19675 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 19676 | case $ac_type in |
| 19677 | header ) |
| 19678 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 19679 | ac_var="ac_cv_header_$ac_item" |
| 19680 | ;; |
| 19681 | file ) |
| 19682 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 19683 | ac_var="ac_cv_file_$ac_item" |
| 19684 | ;; |
| 19685 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 19686 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 19687 | custom ) ac_var="$ac_item" ;; |
| 19688 | esac |
| 19689 | eval "ac_val=\$$ac_var" |
| 19690 | if test ".$ac_val" != .yes; then |
| 19691 | ac_rc=no |
| 19692 | break |
| 19693 | fi |
| 19694 | done |
| 19695 | if test ".$ac_rc" = .yes; then |
| 19696 | : |
| 19697 | ac_decision='fine' |
| 19698 | ac_decision_msg='all fine' |
| 19699 | ac_decision_fine=yes |
| 19700 | ac_decision_fine_msg='all fine' |
| 19701 | |
| 19702 | else |
| 19703 | : |
| 19704 | |
| 19705 | fi |
| 19706 | |
| 19707 | if test ".$ac_decision" = .; then |
| 19708 | echo "$0:Error: decision on $ac_decision_item failed" 1>&2 |
| 19709 | exit 1 |
| 19710 | else |
| 19711 | if test ".$ac_decision_msg" = .; then |
| 19712 | ac_decision_msg="$ac_decision" |
| 19713 | fi |
| 19714 | { echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5 |
| 19715 | echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6; } |
| 19716 | fi |
| 19717 | |
| 19718 | |
| 19719 | |
| 19720 | for ac_header in memory.h |
| 19721 | do |
| 19722 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19723 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19724 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19725 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19726 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19728 | fi |
| 19729 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19730 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19731 | echo "${ECHO_T}$ac_res" >&6; } |
| 19732 | else |
| 19733 | # Is the header compilable? |
| 19734 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19735 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19736 | cat >conftest.$ac_ext <<_ACEOF |
| 19737 | /* confdefs.h. */ |
| 19738 | _ACEOF |
| 19739 | cat confdefs.h >>conftest.$ac_ext |
| 19740 | cat >>conftest.$ac_ext <<_ACEOF |
| 19741 | /* end confdefs.h. */ |
| 19742 | $ac_includes_default |
| 19743 | #include <$ac_header> |
| 19744 | _ACEOF |
| 19745 | rm -f conftest.$ac_objext |
| 19746 | if { (ac_try="$ac_compile" |
| 19747 | case "(($ac_try" in |
| 19748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19749 | *) ac_try_echo=$ac_try;; |
| 19750 | esac |
| 19751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19752 | (eval "$ac_compile") 2>conftest.er1 |
| 19753 | ac_status=$? |
| 19754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19755 | rm -f conftest.er1 |
| 19756 | cat conftest.err >&5 |
| 19757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19758 | (exit $ac_status); } && |
| 19759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19760 | { (case "(($ac_try" in |
| 19761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19762 | *) ac_try_echo=$ac_try;; |
| 19763 | esac |
| 19764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19765 | (eval "$ac_try") 2>&5 |
| 19766 | ac_status=$? |
| 19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19768 | (exit $ac_status); }; } && |
| 19769 | { ac_try='test -s conftest.$ac_objext' |
| 19770 | { (case "(($ac_try" in |
| 19771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19772 | *) ac_try_echo=$ac_try;; |
| 19773 | esac |
| 19774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19775 | (eval "$ac_try") 2>&5 |
| 19776 | ac_status=$? |
| 19777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19778 | (exit $ac_status); }; }; then |
| 19779 | ac_header_compiler=yes |
| 19780 | else |
| 19781 | echo "$as_me: failed program was:" >&5 |
| 19782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19783 | |
| 19784 | ac_header_compiler=no |
| 19785 | fi |
| 19786 | |
| 19787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19788 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19789 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19790 | |
| 19791 | # Is the header present? |
| 19792 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19793 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19794 | cat >conftest.$ac_ext <<_ACEOF |
| 19795 | /* confdefs.h. */ |
| 19796 | _ACEOF |
| 19797 | cat confdefs.h >>conftest.$ac_ext |
| 19798 | cat >>conftest.$ac_ext <<_ACEOF |
| 19799 | /* end confdefs.h. */ |
| 19800 | #include <$ac_header> |
| 19801 | _ACEOF |
| 19802 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19803 | case "(($ac_try" in |
| 19804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19805 | *) ac_try_echo=$ac_try;; |
| 19806 | esac |
| 19807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19808 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19809 | ac_status=$? |
| 19810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19811 | rm -f conftest.er1 |
| 19812 | cat conftest.err >&5 |
| 19813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19814 | (exit $ac_status); } >/dev/null; then |
| 19815 | if test -s conftest.err; then |
| 19816 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19818 | else |
| 19819 | ac_cpp_err= |
| 19820 | fi |
| 19821 | else |
| 19822 | ac_cpp_err=yes |
| 19823 | fi |
| 19824 | if test -z "$ac_cpp_err"; then |
| 19825 | ac_header_preproc=yes |
| 19826 | else |
| 19827 | echo "$as_me: failed program was:" >&5 |
| 19828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19829 | |
| 19830 | ac_header_preproc=no |
| 19831 | fi |
| 19832 | |
| 19833 | rm -f conftest.err conftest.$ac_ext |
| 19834 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19835 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19836 | |
| 19837 | # So? What about this header? |
| 19838 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19839 | yes:no: ) |
| 19840 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19841 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19843 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19844 | ac_header_preproc=yes |
| 19845 | ;; |
| 19846 | no:yes:* ) |
| 19847 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19848 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19849 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19850 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19851 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19852 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19853 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19854 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19856 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19857 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19858 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19859 | |
| 19860 | ;; |
| 19861 | esac |
| 19862 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19864 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19866 | else |
| 19867 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19868 | fi |
| 19869 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19870 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19871 | echo "${ECHO_T}$ac_res" >&6; } |
| 19872 | |
| 19873 | fi |
| 19874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 19875 | cat >>confdefs.h <<_ACEOF |
| 19876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19877 | _ACEOF |
| 19878 | |
| 19879 | fi |
| 19880 | |
| 19881 | done |
| 19882 | |
| 19883 | |
| 19884 | |
| 19885 | |
| 19886 | for ac_func in memcpy memset bcopy |
| 19887 | do |
| 19888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19889 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19891 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19893 | else |
| 19894 | cat >conftest.$ac_ext <<_ACEOF |
| 19895 | /* confdefs.h. */ |
| 19896 | _ACEOF |
| 19897 | cat confdefs.h >>conftest.$ac_ext |
| 19898 | cat >>conftest.$ac_ext <<_ACEOF |
| 19899 | /* end confdefs.h. */ |
| 19900 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19902 | #define $ac_func innocuous_$ac_func |
| 19903 | |
| 19904 | /* System header to define __stub macros and hopefully few prototypes, |
| 19905 | which can conflict with char $ac_func (); below. |
| 19906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19907 | <limits.h> exists even on freestanding compilers. */ |
| 19908 | |
| 19909 | #ifdef __STDC__ |
| 19910 | # include <limits.h> |
| 19911 | #else |
| 19912 | # include <assert.h> |
| 19913 | #endif |
| 19914 | |
| 19915 | #undef $ac_func |
| 19916 | |
| 19917 | /* Override any GCC internal prototype to avoid an error. |
| 19918 | Use char because int might match the return type of a GCC |
| 19919 | builtin and then its argument prototype would still apply. */ |
| 19920 | #ifdef __cplusplus |
| 19921 | extern "C" |
| 19922 | #endif |
| 19923 | char $ac_func (); |
| 19924 | /* The GNU C library defines this for functions which it implements |
| 19925 | to always fail with ENOSYS. Some functions are actually named |
| 19926 | something starting with __ and the normal name is an alias. */ |
| 19927 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19928 | choke me |
| 19929 | #endif |
| 19930 | |
| 19931 | int |
| 19932 | main () |
| 19933 | { |
| 19934 | return $ac_func (); |
| 19935 | ; |
| 19936 | return 0; |
| 19937 | } |
| 19938 | _ACEOF |
| 19939 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19940 | if { (ac_try="$ac_link" |
| 19941 | case "(($ac_try" in |
| 19942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19943 | *) ac_try_echo=$ac_try;; |
| 19944 | esac |
| 19945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19946 | (eval "$ac_link") 2>conftest.er1 |
| 19947 | ac_status=$? |
| 19948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19949 | rm -f conftest.er1 |
| 19950 | cat conftest.err >&5 |
| 19951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19952 | (exit $ac_status); } && |
| 19953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19954 | { (case "(($ac_try" in |
| 19955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19956 | *) ac_try_echo=$ac_try;; |
| 19957 | esac |
| 19958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19959 | (eval "$ac_try") 2>&5 |
| 19960 | ac_status=$? |
| 19961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19962 | (exit $ac_status); }; } && |
| 19963 | { ac_try='test -s conftest$ac_exeext' |
| 19964 | { (case "(($ac_try" in |
| 19965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19966 | *) ac_try_echo=$ac_try;; |
| 19967 | esac |
| 19968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19969 | (eval "$ac_try") 2>&5 |
| 19970 | ac_status=$? |
| 19971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19972 | (exit $ac_status); }; }; then |
| 19973 | eval "$as_ac_var=yes" |
| 19974 | else |
| 19975 | echo "$as_me: failed program was:" >&5 |
| 19976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19977 | |
| 19978 | eval "$as_ac_var=no" |
| 19979 | fi |
| 19980 | |
| 19981 | rm -f core conftest.err conftest.$ac_objext \ |
| 19982 | conftest$ac_exeext conftest.$ac_ext |
| 19983 | fi |
| 19984 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19986 | echo "${ECHO_T}$ac_res" >&6; } |
| 19987 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19988 | cat >>confdefs.h <<_ACEOF |
| 19989 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19990 | _ACEOF |
| 19991 | |
| 19992 | fi |
| 19993 | done |
| 19994 | |
| 19995 | { echo "$as_me:$LINENO: checking for _POSIX_PATH_MAX in limits.h" >&5 |
| 19996 | echo $ECHO_N "checking for _POSIX_PATH_MAX in limits.h... $ECHO_C" >&6; } |
| 19997 | if test "${ac_cv_define__POSIX_PATH_MAX+set}" = set; then |
| 19998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19999 | else |
| 20000 | cat >conftest.$ac_ext <<_ACEOF |
| 20001 | /* confdefs.h. */ |
| 20002 | _ACEOF |
| 20003 | cat confdefs.h >>conftest.$ac_ext |
| 20004 | cat >>conftest.$ac_ext <<_ACEOF |
| 20005 | /* end confdefs.h. */ |
| 20006 | |
| 20007 | #include <limits.h> |
| 20008 | #ifdef _POSIX_PATH_MAX |
| 20009 | YES_IS_DEFINED |
| 20010 | #endif |
| 20011 | |
| 20012 | _ACEOF |
| 20013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20014 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20015 | ac_cv_define__POSIX_PATH_MAX=yes |
| 20016 | else |
| 20017 | ac_cv_define__POSIX_PATH_MAX=no |
| 20018 | fi |
| 20019 | rm -f conftest* |
| 20020 | |
| 20021 | |
| 20022 | fi |
| 20023 | { echo "$as_me:$LINENO: result: $ac_cv_define__POSIX_PATH_MAX" >&5 |
| 20024 | echo "${ECHO_T}$ac_cv_define__POSIX_PATH_MAX" >&6; } |
| 20025 | if test "$ac_cv_define__POSIX_PATH_MAX" = "yes" ; then |
| 20026 | |
| 20027 | cat >>confdefs.h <<\_ACEOF |
| 20028 | #define HAVE__POSIX_PATH_MAX 1 |
| 20029 | _ACEOF |
| 20030 | |
| 20031 | fi |
| 20032 | |
| 20033 | { echo "$as_me:$LINENO: checking for PATH_MAX in limits.h" >&5 |
| 20034 | echo $ECHO_N "checking for PATH_MAX in limits.h... $ECHO_C" >&6; } |
| 20035 | if test "${ac_cv_define_PATH_MAX+set}" = set; then |
| 20036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20037 | else |
| 20038 | cat >conftest.$ac_ext <<_ACEOF |
| 20039 | /* confdefs.h. */ |
| 20040 | _ACEOF |
| 20041 | cat confdefs.h >>conftest.$ac_ext |
| 20042 | cat >>conftest.$ac_ext <<_ACEOF |
| 20043 | /* end confdefs.h. */ |
| 20044 | |
| 20045 | #include <limits.h> |
| 20046 | #ifdef PATH_MAX |
| 20047 | YES_IS_DEFINED |
| 20048 | #endif |
| 20049 | |
| 20050 | _ACEOF |
| 20051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20052 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20053 | ac_cv_define_PATH_MAX=yes |
| 20054 | else |
| 20055 | ac_cv_define_PATH_MAX=no |
| 20056 | fi |
| 20057 | rm -f conftest* |
| 20058 | |
| 20059 | |
| 20060 | fi |
| 20061 | { echo "$as_me:$LINENO: result: $ac_cv_define_PATH_MAX" >&5 |
| 20062 | echo "${ECHO_T}$ac_cv_define_PATH_MAX" >&6; } |
| 20063 | if test "$ac_cv_define_PATH_MAX" = "yes" ; then |
| 20064 | |
| 20065 | cat >>confdefs.h <<\_ACEOF |
| 20066 | #define HAVE_PATH_MAX 1 |
| 20067 | _ACEOF |
| 20068 | |
| 20069 | fi |
| 20070 | |
| 20071 | { echo "$as_me:$LINENO: checking for _POSIX_CHILD_MAX in limits.h" >&5 |
| 20072 | echo $ECHO_N "checking for _POSIX_CHILD_MAX in limits.h... $ECHO_C" >&6; } |
| 20073 | if test "${ac_cv_define__POSIX_CHILD_MAX+set}" = set; then |
| 20074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20075 | else |
| 20076 | cat >conftest.$ac_ext <<_ACEOF |
| 20077 | /* confdefs.h. */ |
| 20078 | _ACEOF |
| 20079 | cat confdefs.h >>conftest.$ac_ext |
| 20080 | cat >>conftest.$ac_ext <<_ACEOF |
| 20081 | /* end confdefs.h. */ |
| 20082 | |
| 20083 | #include <limits.h> |
| 20084 | #ifdef _POSIX_CHILD_MAX |
| 20085 | YES_IS_DEFINED |
| 20086 | #endif |
| 20087 | |
| 20088 | _ACEOF |
| 20089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20090 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20091 | ac_cv_define__POSIX_CHILD_MAX=yes |
| 20092 | else |
| 20093 | ac_cv_define__POSIX_CHILD_MAX=no |
| 20094 | fi |
| 20095 | rm -f conftest* |
| 20096 | |
| 20097 | |
| 20098 | fi |
| 20099 | { echo "$as_me:$LINENO: result: $ac_cv_define__POSIX_CHILD_MAX" >&5 |
| 20100 | echo "${ECHO_T}$ac_cv_define__POSIX_CHILD_MAX" >&6; } |
| 20101 | if test "$ac_cv_define__POSIX_CHILD_MAX" = "yes" ; then |
| 20102 | |
| 20103 | cat >>confdefs.h <<\_ACEOF |
| 20104 | #define HAVE__POSIX_CHILD_MAX 1 |
| 20105 | _ACEOF |
| 20106 | |
| 20107 | fi |
| 20108 | |
| 20109 | { echo "$as_me:$LINENO: checking for CHILD_MAX in limits.h" >&5 |
| 20110 | echo $ECHO_N "checking for CHILD_MAX in limits.h... $ECHO_C" >&6; } |
| 20111 | if test "${ac_cv_define_CHILD_MAX+set}" = set; then |
| 20112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20113 | else |
| 20114 | cat >conftest.$ac_ext <<_ACEOF |
| 20115 | /* confdefs.h. */ |
| 20116 | _ACEOF |
| 20117 | cat confdefs.h >>conftest.$ac_ext |
| 20118 | cat >>conftest.$ac_ext <<_ACEOF |
| 20119 | /* end confdefs.h. */ |
| 20120 | |
| 20121 | #include <limits.h> |
| 20122 | #ifdef CHILD_MAX |
| 20123 | YES_IS_DEFINED |
| 20124 | #endif |
| 20125 | |
| 20126 | _ACEOF |
| 20127 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20128 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20129 | ac_cv_define_CHILD_MAX=yes |
| 20130 | else |
| 20131 | ac_cv_define_CHILD_MAX=no |
| 20132 | fi |
| 20133 | rm -f conftest* |
| 20134 | |
| 20135 | |
| 20136 | fi |
| 20137 | { echo "$as_me:$LINENO: result: $ac_cv_define_CHILD_MAX" >&5 |
| 20138 | echo "${ECHO_T}$ac_cv_define_CHILD_MAX" >&6; } |
| 20139 | if test "$ac_cv_define_CHILD_MAX" = "yes" ; then |
| 20140 | |
| 20141 | cat >>confdefs.h <<\_ACEOF |
| 20142 | #define HAVE_CHILD_MAX 1 |
| 20143 | _ACEOF |
| 20144 | |
| 20145 | fi |
| 20146 | |
| 20147 | |
| 20148 | for ac_header in sys/param.h |
| 20149 | do |
| 20150 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20152 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20156 | fi |
| 20157 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20158 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20159 | echo "${ECHO_T}$ac_res" >&6; } |
| 20160 | else |
| 20161 | # Is the header compilable? |
| 20162 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20163 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 20164 | cat >conftest.$ac_ext <<_ACEOF |
| 20165 | /* confdefs.h. */ |
| 20166 | _ACEOF |
| 20167 | cat confdefs.h >>conftest.$ac_ext |
| 20168 | cat >>conftest.$ac_ext <<_ACEOF |
| 20169 | /* end confdefs.h. */ |
| 20170 | $ac_includes_default |
| 20171 | #include <$ac_header> |
| 20172 | _ACEOF |
| 20173 | rm -f conftest.$ac_objext |
| 20174 | if { (ac_try="$ac_compile" |
| 20175 | case "(($ac_try" in |
| 20176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20177 | *) ac_try_echo=$ac_try;; |
| 20178 | esac |
| 20179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20180 | (eval "$ac_compile") 2>conftest.er1 |
| 20181 | ac_status=$? |
| 20182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20183 | rm -f conftest.er1 |
| 20184 | cat conftest.err >&5 |
| 20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20186 | (exit $ac_status); } && |
| 20187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20188 | { (case "(($ac_try" in |
| 20189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20190 | *) ac_try_echo=$ac_try;; |
| 20191 | esac |
| 20192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20193 | (eval "$ac_try") 2>&5 |
| 20194 | ac_status=$? |
| 20195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20196 | (exit $ac_status); }; } && |
| 20197 | { ac_try='test -s conftest.$ac_objext' |
| 20198 | { (case "(($ac_try" in |
| 20199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20200 | *) ac_try_echo=$ac_try;; |
| 20201 | esac |
| 20202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20203 | (eval "$ac_try") 2>&5 |
| 20204 | ac_status=$? |
| 20205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20206 | (exit $ac_status); }; }; then |
| 20207 | ac_header_compiler=yes |
| 20208 | else |
| 20209 | echo "$as_me: failed program was:" >&5 |
| 20210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20211 | |
| 20212 | ac_header_compiler=no |
| 20213 | fi |
| 20214 | |
| 20215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20216 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20217 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 20218 | |
| 20219 | # Is the header present? |
| 20220 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20221 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 20222 | cat >conftest.$ac_ext <<_ACEOF |
| 20223 | /* confdefs.h. */ |
| 20224 | _ACEOF |
| 20225 | cat confdefs.h >>conftest.$ac_ext |
| 20226 | cat >>conftest.$ac_ext <<_ACEOF |
| 20227 | /* end confdefs.h. */ |
| 20228 | #include <$ac_header> |
| 20229 | _ACEOF |
| 20230 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20231 | case "(($ac_try" in |
| 20232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20233 | *) ac_try_echo=$ac_try;; |
| 20234 | esac |
| 20235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20236 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20237 | ac_status=$? |
| 20238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20239 | rm -f conftest.er1 |
| 20240 | cat conftest.err >&5 |
| 20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20242 | (exit $ac_status); } >/dev/null; then |
| 20243 | if test -s conftest.err; then |
| 20244 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20246 | else |
| 20247 | ac_cpp_err= |
| 20248 | fi |
| 20249 | else |
| 20250 | ac_cpp_err=yes |
| 20251 | fi |
| 20252 | if test -z "$ac_cpp_err"; then |
| 20253 | ac_header_preproc=yes |
| 20254 | else |
| 20255 | echo "$as_me: failed program was:" >&5 |
| 20256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20257 | |
| 20258 | ac_header_preproc=no |
| 20259 | fi |
| 20260 | |
| 20261 | rm -f conftest.err conftest.$ac_ext |
| 20262 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20263 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20264 | |
| 20265 | # So? What about this header? |
| 20266 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20267 | yes:no: ) |
| 20268 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20269 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20271 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20272 | ac_header_preproc=yes |
| 20273 | ;; |
| 20274 | no:yes:* ) |
| 20275 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20276 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20277 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20278 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20279 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20280 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20281 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20282 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20284 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20285 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20286 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20287 | |
| 20288 | ;; |
| 20289 | esac |
| 20290 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20291 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20294 | else |
| 20295 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20296 | fi |
| 20297 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20298 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20299 | echo "${ECHO_T}$ac_res" >&6; } |
| 20300 | |
| 20301 | fi |
| 20302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20303 | cat >>confdefs.h <<_ACEOF |
| 20304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20305 | _ACEOF |
| 20306 | |
| 20307 | fi |
| 20308 | |
| 20309 | done |
| 20310 | |
| 20311 | { echo "$as_me:$LINENO: checking for MAXPATHLEN in sys/param.h" >&5 |
| 20312 | echo $ECHO_N "checking for MAXPATHLEN in sys/param.h... $ECHO_C" >&6; } |
| 20313 | if test "${ac_cv_define_MAXPATHLEN+set}" = set; then |
| 20314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20315 | else |
| 20316 | cat >conftest.$ac_ext <<_ACEOF |
| 20317 | /* confdefs.h. */ |
| 20318 | _ACEOF |
| 20319 | cat confdefs.h >>conftest.$ac_ext |
| 20320 | cat >>conftest.$ac_ext <<_ACEOF |
| 20321 | /* end confdefs.h. */ |
| 20322 | |
| 20323 | #include <sys/param.h> |
| 20324 | #ifdef MAXPATHLEN |
| 20325 | YES_IS_DEFINED |
| 20326 | #endif |
| 20327 | |
| 20328 | _ACEOF |
| 20329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20330 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20331 | ac_cv_define_MAXPATHLEN=yes |
| 20332 | else |
| 20333 | ac_cv_define_MAXPATHLEN=no |
| 20334 | fi |
| 20335 | rm -f conftest* |
| 20336 | |
| 20337 | |
| 20338 | fi |
| 20339 | { echo "$as_me:$LINENO: result: $ac_cv_define_MAXPATHLEN" >&5 |
| 20340 | echo "${ECHO_T}$ac_cv_define_MAXPATHLEN" >&6; } |
| 20341 | if test "$ac_cv_define_MAXPATHLEN" = "yes" ; then |
| 20342 | |
| 20343 | cat >>confdefs.h <<\_ACEOF |
| 20344 | #define HAVE_MAXPATHLEN 1 |
| 20345 | _ACEOF |
| 20346 | |
| 20347 | fi |
| 20348 | |
| 20349 | |
| 20350 | case $PLATFORM in |
| 20351 | *-*-sunos* ) |
| 20352 | cat >>confdefs.h <<\_ACEOF |
| 20353 | #define MM_OS_SUNOS 1 |
| 20354 | _ACEOF |
| 20355 | ;; |
| 20356 | BS2000-*-* ) |
| 20357 | cat >>confdefs.h <<\_ACEOF |
| 20358 | #define MM_OS_BS2000 1 |
| 20359 | _ACEOF |
| 20360 | ;; |
| 20361 | *-*-beos* ) |
| 20362 | cat >>confdefs.h <<\_ACEOF |
| 20363 | #define MM_OS_BEOS 1 |
| 20364 | _ACEOF |
| 20365 | ;; |
| 20366 | esac |
| 20367 | |
| 20368 | |
| 20369 | { echo "$as_me:$LINENO: result: " >&5 |
| 20370 | echo "${ECHO_T}" >&6; } |
| 20371 | { echo "$as_me:$LINENO: result: ${T_MD}Virtual Memory Page Size:${T_ME}" >&5 |
| 20372 | echo "${ECHO_T}${T_MD}Virtual Memory Page Size:${T_ME}" >&6; } |
| 20373 | |
| 20374 | |
| 20375 | |
| 20376 | |
| 20377 | for ac_header in unistd.h kernel/OS.h |
| 20378 | do |
| 20379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20380 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20381 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20385 | fi |
| 20386 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20387 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20388 | echo "${ECHO_T}$ac_res" >&6; } |
| 20389 | else |
| 20390 | # Is the header compilable? |
| 20391 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20392 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 20393 | cat >conftest.$ac_ext <<_ACEOF |
| 20394 | /* confdefs.h. */ |
| 20395 | _ACEOF |
| 20396 | cat confdefs.h >>conftest.$ac_ext |
| 20397 | cat >>conftest.$ac_ext <<_ACEOF |
| 20398 | /* end confdefs.h. */ |
| 20399 | $ac_includes_default |
| 20400 | #include <$ac_header> |
| 20401 | _ACEOF |
| 20402 | rm -f conftest.$ac_objext |
| 20403 | if { (ac_try="$ac_compile" |
| 20404 | case "(($ac_try" in |
| 20405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20406 | *) ac_try_echo=$ac_try;; |
| 20407 | esac |
| 20408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20409 | (eval "$ac_compile") 2>conftest.er1 |
| 20410 | ac_status=$? |
| 20411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20412 | rm -f conftest.er1 |
| 20413 | cat conftest.err >&5 |
| 20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20415 | (exit $ac_status); } && |
| 20416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20417 | { (case "(($ac_try" in |
| 20418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20419 | *) ac_try_echo=$ac_try;; |
| 20420 | esac |
| 20421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20422 | (eval "$ac_try") 2>&5 |
| 20423 | ac_status=$? |
| 20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20425 | (exit $ac_status); }; } && |
| 20426 | { ac_try='test -s conftest.$ac_objext' |
| 20427 | { (case "(($ac_try" in |
| 20428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20429 | *) ac_try_echo=$ac_try;; |
| 20430 | esac |
| 20431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20432 | (eval "$ac_try") 2>&5 |
| 20433 | ac_status=$? |
| 20434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20435 | (exit $ac_status); }; }; then |
| 20436 | ac_header_compiler=yes |
| 20437 | else |
| 20438 | echo "$as_me: failed program was:" >&5 |
| 20439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20440 | |
| 20441 | ac_header_compiler=no |
| 20442 | fi |
| 20443 | |
| 20444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20445 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20446 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 20447 | |
| 20448 | # Is the header present? |
| 20449 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20450 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 20451 | cat >conftest.$ac_ext <<_ACEOF |
| 20452 | /* confdefs.h. */ |
| 20453 | _ACEOF |
| 20454 | cat confdefs.h >>conftest.$ac_ext |
| 20455 | cat >>conftest.$ac_ext <<_ACEOF |
| 20456 | /* end confdefs.h. */ |
| 20457 | #include <$ac_header> |
| 20458 | _ACEOF |
| 20459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20460 | case "(($ac_try" in |
| 20461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20462 | *) ac_try_echo=$ac_try;; |
| 20463 | esac |
| 20464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20466 | ac_status=$? |
| 20467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20468 | rm -f conftest.er1 |
| 20469 | cat conftest.err >&5 |
| 20470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20471 | (exit $ac_status); } >/dev/null; then |
| 20472 | if test -s conftest.err; then |
| 20473 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20475 | else |
| 20476 | ac_cpp_err= |
| 20477 | fi |
| 20478 | else |
| 20479 | ac_cpp_err=yes |
| 20480 | fi |
| 20481 | if test -z "$ac_cpp_err"; then |
| 20482 | ac_header_preproc=yes |
| 20483 | else |
| 20484 | echo "$as_me: failed program was:" >&5 |
| 20485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20486 | |
| 20487 | ac_header_preproc=no |
| 20488 | fi |
| 20489 | |
| 20490 | rm -f conftest.err conftest.$ac_ext |
| 20491 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20492 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20493 | |
| 20494 | # So? What about this header? |
| 20495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20496 | yes:no: ) |
| 20497 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20498 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20500 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20501 | ac_header_preproc=yes |
| 20502 | ;; |
| 20503 | no:yes:* ) |
| 20504 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20505 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20506 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20507 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20508 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20509 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 20510 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 20511 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 20512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 20513 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 20514 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 20515 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 20516 | |
| 20517 | ;; |
| 20518 | esac |
| 20519 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20521 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20523 | else |
| 20524 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20525 | fi |
| 20526 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20527 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20528 | echo "${ECHO_T}$ac_res" >&6; } |
| 20529 | |
| 20530 | fi |
| 20531 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20532 | cat >>confdefs.h <<_ACEOF |
| 20533 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20534 | _ACEOF |
| 20535 | |
| 20536 | fi |
| 20537 | |
| 20538 | done |
| 20539 | |
| 20540 | |
| 20541 | |
| 20542 | for ac_func in getpagesize sysconf |
| 20543 | do |
| 20544 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20545 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20546 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20547 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20549 | else |
| 20550 | cat >conftest.$ac_ext <<_ACEOF |
| 20551 | /* confdefs.h. */ |
| 20552 | _ACEOF |
| 20553 | cat confdefs.h >>conftest.$ac_ext |
| 20554 | cat >>conftest.$ac_ext <<_ACEOF |
| 20555 | /* end confdefs.h. */ |
| 20556 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20557 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20558 | #define $ac_func innocuous_$ac_func |
| 20559 | |
| 20560 | /* System header to define __stub macros and hopefully few prototypes, |
| 20561 | which can conflict with char $ac_func (); below. |
| 20562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20563 | <limits.h> exists even on freestanding compilers. */ |
| 20564 | |
| 20565 | #ifdef __STDC__ |
| 20566 | # include <limits.h> |
| 20567 | #else |
| 20568 | # include <assert.h> |
| 20569 | #endif |
| 20570 | |
| 20571 | #undef $ac_func |
| 20572 | |
| 20573 | /* Override any GCC internal prototype to avoid an error. |
| 20574 | Use char because int might match the return type of a GCC |
| 20575 | builtin and then its argument prototype would still apply. */ |
| 20576 | #ifdef __cplusplus |
| 20577 | extern "C" |
| 20578 | #endif |
| 20579 | char $ac_func (); |
| 20580 | /* The GNU C library defines this for functions which it implements |
| 20581 | to always fail with ENOSYS. Some functions are actually named |
| 20582 | something starting with __ and the normal name is an alias. */ |
| 20583 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20584 | choke me |
| 20585 | #endif |
| 20586 | |
| 20587 | int |
| 20588 | main () |
| 20589 | { |
| 20590 | return $ac_func (); |
| 20591 | ; |
| 20592 | return 0; |
| 20593 | } |
| 20594 | _ACEOF |
| 20595 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20596 | if { (ac_try="$ac_link" |
| 20597 | case "(($ac_try" in |
| 20598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20599 | *) ac_try_echo=$ac_try;; |
| 20600 | esac |
| 20601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20602 | (eval "$ac_link") 2>conftest.er1 |
| 20603 | ac_status=$? |
| 20604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20605 | rm -f conftest.er1 |
| 20606 | cat conftest.err >&5 |
| 20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20608 | (exit $ac_status); } && |
| 20609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20610 | { (case "(($ac_try" in |
| 20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20612 | *) ac_try_echo=$ac_try;; |
| 20613 | esac |
| 20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20615 | (eval "$ac_try") 2>&5 |
| 20616 | ac_status=$? |
| 20617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20618 | (exit $ac_status); }; } && |
| 20619 | { ac_try='test -s conftest$ac_exeext' |
| 20620 | { (case "(($ac_try" in |
| 20621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20622 | *) ac_try_echo=$ac_try;; |
| 20623 | esac |
| 20624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20625 | (eval "$ac_try") 2>&5 |
| 20626 | ac_status=$? |
| 20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20628 | (exit $ac_status); }; }; then |
| 20629 | eval "$as_ac_var=yes" |
| 20630 | else |
| 20631 | echo "$as_me: failed program was:" >&5 |
| 20632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20633 | |
| 20634 | eval "$as_ac_var=no" |
| 20635 | fi |
| 20636 | |
| 20637 | rm -f core conftest.err conftest.$ac_objext \ |
| 20638 | conftest$ac_exeext conftest.$ac_ext |
| 20639 | fi |
| 20640 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20641 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20642 | echo "${ECHO_T}$ac_res" >&6; } |
| 20643 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20644 | cat >>confdefs.h <<_ACEOF |
| 20645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20646 | _ACEOF |
| 20647 | |
| 20648 | fi |
| 20649 | done |
| 20650 | |
| 20651 | { echo "$as_me:$LINENO: checking for _SC_PAGESIZE in unistd.h" >&5 |
| 20652 | echo $ECHO_N "checking for _SC_PAGESIZE in unistd.h... $ECHO_C" >&6; } |
| 20653 | if test "${ac_cv_define__SC_PAGESIZE+set}" = set; then |
| 20654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20655 | else |
| 20656 | cat >conftest.$ac_ext <<_ACEOF |
| 20657 | /* confdefs.h. */ |
| 20658 | _ACEOF |
| 20659 | cat confdefs.h >>conftest.$ac_ext |
| 20660 | cat >>conftest.$ac_ext <<_ACEOF |
| 20661 | /* end confdefs.h. */ |
| 20662 | |
| 20663 | #include <unistd.h> |
| 20664 | #ifdef _SC_PAGESIZE |
| 20665 | YES_IS_DEFINED |
| 20666 | #endif |
| 20667 | |
| 20668 | _ACEOF |
| 20669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20670 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20671 | ac_cv_define__SC_PAGESIZE=yes |
| 20672 | else |
| 20673 | ac_cv_define__SC_PAGESIZE=no |
| 20674 | fi |
| 20675 | rm -f conftest* |
| 20676 | |
| 20677 | |
| 20678 | fi |
| 20679 | { echo "$as_me:$LINENO: result: $ac_cv_define__SC_PAGESIZE" >&5 |
| 20680 | echo "${ECHO_T}$ac_cv_define__SC_PAGESIZE" >&6; } |
| 20681 | if test "$ac_cv_define__SC_PAGESIZE" = "yes" ; then |
| 20682 | |
| 20683 | cat >>confdefs.h <<\_ACEOF |
| 20684 | #define HAVE__SC_PAGESIZE 1 |
| 20685 | _ACEOF |
| 20686 | |
| 20687 | fi |
| 20688 | |
| 20689 | { echo "$as_me:$LINENO: checking for B_PAGE_SIZE in kernel/OS.h" >&5 |
| 20690 | echo $ECHO_N "checking for B_PAGE_SIZE in kernel/OS.h... $ECHO_C" >&6; } |
| 20691 | if test "${ac_cv_define_B_PAGE_SIZE+set}" = set; then |
| 20692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20693 | else |
| 20694 | cat >conftest.$ac_ext <<_ACEOF |
| 20695 | /* confdefs.h. */ |
| 20696 | _ACEOF |
| 20697 | cat confdefs.h >>conftest.$ac_ext |
| 20698 | cat >>conftest.$ac_ext <<_ACEOF |
| 20699 | /* end confdefs.h. */ |
| 20700 | |
| 20701 | #include <kernel/OS.h> |
| 20702 | #ifdef B_PAGE_SIZE |
| 20703 | YES_IS_DEFINED |
| 20704 | #endif |
| 20705 | |
| 20706 | _ACEOF |
| 20707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20708 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 20709 | ac_cv_define_B_PAGE_SIZE=yes |
| 20710 | else |
| 20711 | ac_cv_define_B_PAGE_SIZE=no |
| 20712 | fi |
| 20713 | rm -f conftest* |
| 20714 | |
| 20715 | |
| 20716 | fi |
| 20717 | { echo "$as_me:$LINENO: result: $ac_cv_define_B_PAGE_SIZE" >&5 |
| 20718 | echo "${ECHO_T}$ac_cv_define_B_PAGE_SIZE" >&6; } |
| 20719 | if test "$ac_cv_define_B_PAGE_SIZE" = "yes" ; then |
| 20720 | |
| 20721 | cat >>confdefs.h <<\_ACEOF |
| 20722 | #define HAVE_B_PAGE_SIZE 1 |
| 20723 | _ACEOF |
| 20724 | |
| 20725 | fi |
| 20726 | |
| 20727 | |
| 20728 | |
| 20729 | |
| 20730 | |
| 20731 | |
| 20732 | |
| 20733 | |
| 20734 | ac_decision_item='memory page size determination' |
| 20735 | ac_decision_msg='FAILED' |
| 20736 | ac_decision='' |
| 20737 | |
| 20738 | ac_rc=yes |
| 20739 | for ac_spec in header:unistd.h func:getpagesize; do |
| 20740 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 20741 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 20742 | case $ac_type in |
| 20743 | header ) |
| 20744 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 20745 | ac_var="ac_cv_header_$ac_item" |
| 20746 | ;; |
| 20747 | file ) |
| 20748 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 20749 | ac_var="ac_cv_file_$ac_item" |
| 20750 | ;; |
| 20751 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 20752 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 20753 | custom ) ac_var="$ac_item" ;; |
| 20754 | esac |
| 20755 | eval "ac_val=\$$ac_var" |
| 20756 | if test ".$ac_val" != .yes; then |
| 20757 | ac_rc=no |
| 20758 | break |
| 20759 | fi |
| 20760 | done |
| 20761 | if test ".$ac_rc" = .yes; then |
| 20762 | : |
| 20763 | ac_decision='MM_VMPS_GETPAGESIZE' |
| 20764 | ac_decision_msg='4.2BSD getpagesize()' |
| 20765 | ac_decision_MM_VMPS_GETPAGESIZE=yes |
| 20766 | ac_decision_MM_VMPS_GETPAGESIZE_msg='4.2BSD getpagesize()' |
| 20767 | |
| 20768 | else |
| 20769 | : |
| 20770 | |
| 20771 | fi |
| 20772 | |
| 20773 | ac_rc=yes |
| 20774 | for ac_spec in header:unistd.h func:sysconf define:_SC_PAGESIZE; do |
| 20775 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 20776 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 20777 | case $ac_type in |
| 20778 | header ) |
| 20779 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 20780 | ac_var="ac_cv_header_$ac_item" |
| 20781 | ;; |
| 20782 | file ) |
| 20783 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 20784 | ac_var="ac_cv_file_$ac_item" |
| 20785 | ;; |
| 20786 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 20787 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 20788 | custom ) ac_var="$ac_item" ;; |
| 20789 | esac |
| 20790 | eval "ac_val=\$$ac_var" |
| 20791 | if test ".$ac_val" != .yes; then |
| 20792 | ac_rc=no |
| 20793 | break |
| 20794 | fi |
| 20795 | done |
| 20796 | if test ".$ac_rc" = .yes; then |
| 20797 | : |
| 20798 | ac_decision='MM_VMPS_SYSCONF' |
| 20799 | ac_decision_msg='POSIX.1 sysconf(_SC_PAGESIZE)' |
| 20800 | ac_decision_MM_VMPS_SYSCONF=yes |
| 20801 | ac_decision_MM_VMPS_SYSCONF_msg='POSIX.1 sysconf(_SC_PAGESIZE)' |
| 20802 | |
| 20803 | else |
| 20804 | : |
| 20805 | |
| 20806 | fi |
| 20807 | |
| 20808 | ac_rc=yes |
| 20809 | for ac_spec in header:kernel/OS.h define:B_PAGE_SIZE; do |
| 20810 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 20811 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 20812 | case $ac_type in |
| 20813 | header ) |
| 20814 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 20815 | ac_var="ac_cv_header_$ac_item" |
| 20816 | ;; |
| 20817 | file ) |
| 20818 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 20819 | ac_var="ac_cv_file_$ac_item" |
| 20820 | ;; |
| 20821 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 20822 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 20823 | custom ) ac_var="$ac_item" ;; |
| 20824 | esac |
| 20825 | eval "ac_val=\$$ac_var" |
| 20826 | if test ".$ac_val" != .yes; then |
| 20827 | ac_rc=no |
| 20828 | break |
| 20829 | fi |
| 20830 | done |
| 20831 | if test ".$ac_rc" = .yes; then |
| 20832 | : |
| 20833 | ac_decision='MM_VMPS_BEOS' |
| 20834 | ac_decision_msg='BeOS B_PAGE_SIZE' |
| 20835 | ac_decision_MM_VMPS_BEOS=yes |
| 20836 | ac_decision_MM_VMPS_BEOS_msg='BeOS B_PAGE_SIZE' |
| 20837 | |
| 20838 | else |
| 20839 | : |
| 20840 | |
| 20841 | fi |
| 20842 | |
| 20843 | if test ".$ac_decision" = .; then |
| 20844 | echo "$0:Error: decision on $ac_decision_item failed" 1>&2 |
| 20845 | exit 1 |
| 20846 | else |
| 20847 | if test ".$ac_decision_msg" = .; then |
| 20848 | ac_decision_msg="$ac_decision" |
| 20849 | fi |
| 20850 | { echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5 |
| 20851 | echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6; } |
| 20852 | fi |
| 20853 | |
| 20854 | cat >>confdefs.h <<_ACEOF |
| 20855 | #define $ac_decision 1 |
| 20856 | _ACEOF |
| 20857 | |
| 20858 | |
| 20859 | |
| 20860 | { echo "$as_me:$LINENO: result: " >&5 |
| 20861 | echo "${ECHO_T}" >&6; } |
| 20862 | { echo "$as_me:$LINENO: result: ${T_MD}Shared Memory Implementation:${T_ME}" >&5 |
| 20863 | echo "${ECHO_T}${T_MD}Shared Memory Implementation:${T_ME}" >&6; } |
| 20864 | |
| 20865 | |
| 20866 | |
| 20867 | for ac_header in sys/mman.h |
| 20868 | do |
| 20869 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20870 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20871 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 20873 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20875 | fi |
| 20876 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20877 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20878 | echo "${ECHO_T}$ac_res" >&6; } |
| 20879 | else |
| 20880 | # Is the header compilable? |
| 20881 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 20882 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 20883 | cat >conftest.$ac_ext <<_ACEOF |
| 20884 | /* confdefs.h. */ |
| 20885 | _ACEOF |
| 20886 | cat confdefs.h >>conftest.$ac_ext |
| 20887 | cat >>conftest.$ac_ext <<_ACEOF |
| 20888 | /* end confdefs.h. */ |
| 20889 | $ac_includes_default |
| 20890 | #include <$ac_header> |
| 20891 | _ACEOF |
| 20892 | rm -f conftest.$ac_objext |
| 20893 | if { (ac_try="$ac_compile" |
| 20894 | case "(($ac_try" in |
| 20895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20896 | *) ac_try_echo=$ac_try;; |
| 20897 | esac |
| 20898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20899 | (eval "$ac_compile") 2>conftest.er1 |
| 20900 | ac_status=$? |
| 20901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20902 | rm -f conftest.er1 |
| 20903 | cat conftest.err >&5 |
| 20904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20905 | (exit $ac_status); } && |
| 20906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20907 | { (case "(($ac_try" in |
| 20908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20909 | *) ac_try_echo=$ac_try;; |
| 20910 | esac |
| 20911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20912 | (eval "$ac_try") 2>&5 |
| 20913 | ac_status=$? |
| 20914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20915 | (exit $ac_status); }; } && |
| 20916 | { ac_try='test -s conftest.$ac_objext' |
| 20917 | { (case "(($ac_try" in |
| 20918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20919 | *) ac_try_echo=$ac_try;; |
| 20920 | esac |
| 20921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20922 | (eval "$ac_try") 2>&5 |
| 20923 | ac_status=$? |
| 20924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20925 | (exit $ac_status); }; }; then |
| 20926 | ac_header_compiler=yes |
| 20927 | else |
| 20928 | echo "$as_me: failed program was:" >&5 |
| 20929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20930 | |
| 20931 | ac_header_compiler=no |
| 20932 | fi |
| 20933 | |
| 20934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20935 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20936 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 20937 | |
| 20938 | # Is the header present? |
| 20939 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 20940 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 20941 | cat >conftest.$ac_ext <<_ACEOF |
| 20942 | /* confdefs.h. */ |
| 20943 | _ACEOF |
| 20944 | cat confdefs.h >>conftest.$ac_ext |
| 20945 | cat >>conftest.$ac_ext <<_ACEOF |
| 20946 | /* end confdefs.h. */ |
| 20947 | #include <$ac_header> |
| 20948 | _ACEOF |
| 20949 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 20950 | case "(($ac_try" in |
| 20951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20952 | *) ac_try_echo=$ac_try;; |
| 20953 | esac |
| 20954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20955 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 20956 | ac_status=$? |
| 20957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20958 | rm -f conftest.er1 |
| 20959 | cat conftest.err >&5 |
| 20960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20961 | (exit $ac_status); } >/dev/null; then |
| 20962 | if test -s conftest.err; then |
| 20963 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 20964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 20965 | else |
| 20966 | ac_cpp_err= |
| 20967 | fi |
| 20968 | else |
| 20969 | ac_cpp_err=yes |
| 20970 | fi |
| 20971 | if test -z "$ac_cpp_err"; then |
| 20972 | ac_header_preproc=yes |
| 20973 | else |
| 20974 | echo "$as_me: failed program was:" >&5 |
| 20975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20976 | |
| 20977 | ac_header_preproc=no |
| 20978 | fi |
| 20979 | |
| 20980 | rm -f conftest.err conftest.$ac_ext |
| 20981 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20982 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 20983 | |
| 20984 | # So? What about this header? |
| 20985 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20986 | yes:no: ) |
| 20987 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20988 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 20989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 20990 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 20991 | ac_header_preproc=yes |
| 20992 | ;; |
| 20993 | no:yes:* ) |
| 20994 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 20995 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 20996 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 20997 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 20998 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 20999 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21000 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21001 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21003 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21004 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21005 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21006 | |
| 21007 | ;; |
| 21008 | esac |
| 21009 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21011 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21013 | else |
| 21014 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21015 | fi |
| 21016 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21017 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21018 | echo "${ECHO_T}$ac_res" >&6; } |
| 21019 | |
| 21020 | fi |
| 21021 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21022 | cat >>confdefs.h <<_ACEOF |
| 21023 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21024 | _ACEOF |
| 21025 | |
| 21026 | fi |
| 21027 | |
| 21028 | done |
| 21029 | |
| 21030 | { echo "$as_me:$LINENO: checking for MAP_ANON in sys/mman.h" >&5 |
| 21031 | echo $ECHO_N "checking for MAP_ANON in sys/mman.h... $ECHO_C" >&6; } |
| 21032 | if test "${ac_cv_define_MAP_ANON+set}" = set; then |
| 21033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21034 | else |
| 21035 | cat >conftest.$ac_ext <<_ACEOF |
| 21036 | /* confdefs.h. */ |
| 21037 | _ACEOF |
| 21038 | cat confdefs.h >>conftest.$ac_ext |
| 21039 | cat >>conftest.$ac_ext <<_ACEOF |
| 21040 | /* end confdefs.h. */ |
| 21041 | |
| 21042 | #include <sys/mman.h> |
| 21043 | #ifdef MAP_ANON |
| 21044 | YES_IS_DEFINED |
| 21045 | #endif |
| 21046 | |
| 21047 | _ACEOF |
| 21048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21049 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 21050 | ac_cv_define_MAP_ANON=yes |
| 21051 | else |
| 21052 | ac_cv_define_MAP_ANON=no |
| 21053 | fi |
| 21054 | rm -f conftest* |
| 21055 | |
| 21056 | |
| 21057 | fi |
| 21058 | { echo "$as_me:$LINENO: result: $ac_cv_define_MAP_ANON" >&5 |
| 21059 | echo "${ECHO_T}$ac_cv_define_MAP_ANON" >&6; } |
| 21060 | if test "$ac_cv_define_MAP_ANON" = "yes" ; then |
| 21061 | |
| 21062 | cat >>confdefs.h <<\_ACEOF |
| 21063 | #define HAVE_MAP_ANON 1 |
| 21064 | _ACEOF |
| 21065 | |
| 21066 | fi |
| 21067 | |
| 21068 | |
| 21069 | |
| 21070 | |
| 21071 | |
| 21072 | for ac_func in mmap munmap shm_open shm_unlink |
| 21073 | do |
| 21074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21075 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21077 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21079 | else |
| 21080 | cat >conftest.$ac_ext <<_ACEOF |
| 21081 | /* confdefs.h. */ |
| 21082 | _ACEOF |
| 21083 | cat confdefs.h >>conftest.$ac_ext |
| 21084 | cat >>conftest.$ac_ext <<_ACEOF |
| 21085 | /* end confdefs.h. */ |
| 21086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21088 | #define $ac_func innocuous_$ac_func |
| 21089 | |
| 21090 | /* System header to define __stub macros and hopefully few prototypes, |
| 21091 | which can conflict with char $ac_func (); below. |
| 21092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21093 | <limits.h> exists even on freestanding compilers. */ |
| 21094 | |
| 21095 | #ifdef __STDC__ |
| 21096 | # include <limits.h> |
| 21097 | #else |
| 21098 | # include <assert.h> |
| 21099 | #endif |
| 21100 | |
| 21101 | #undef $ac_func |
| 21102 | |
| 21103 | /* Override any GCC internal prototype to avoid an error. |
| 21104 | Use char because int might match the return type of a GCC |
| 21105 | builtin and then its argument prototype would still apply. */ |
| 21106 | #ifdef __cplusplus |
| 21107 | extern "C" |
| 21108 | #endif |
| 21109 | char $ac_func (); |
| 21110 | /* The GNU C library defines this for functions which it implements |
| 21111 | to always fail with ENOSYS. Some functions are actually named |
| 21112 | something starting with __ and the normal name is an alias. */ |
| 21113 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21114 | choke me |
| 21115 | #endif |
| 21116 | |
| 21117 | int |
| 21118 | main () |
| 21119 | { |
| 21120 | return $ac_func (); |
| 21121 | ; |
| 21122 | return 0; |
| 21123 | } |
| 21124 | _ACEOF |
| 21125 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21126 | if { (ac_try="$ac_link" |
| 21127 | case "(($ac_try" in |
| 21128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21129 | *) ac_try_echo=$ac_try;; |
| 21130 | esac |
| 21131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21132 | (eval "$ac_link") 2>conftest.er1 |
| 21133 | ac_status=$? |
| 21134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21135 | rm -f conftest.er1 |
| 21136 | cat conftest.err >&5 |
| 21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21138 | (exit $ac_status); } && |
| 21139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21140 | { (case "(($ac_try" in |
| 21141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21142 | *) ac_try_echo=$ac_try;; |
| 21143 | esac |
| 21144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21145 | (eval "$ac_try") 2>&5 |
| 21146 | ac_status=$? |
| 21147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21148 | (exit $ac_status); }; } && |
| 21149 | { ac_try='test -s conftest$ac_exeext' |
| 21150 | { (case "(($ac_try" in |
| 21151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21152 | *) ac_try_echo=$ac_try;; |
| 21153 | esac |
| 21154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21155 | (eval "$ac_try") 2>&5 |
| 21156 | ac_status=$? |
| 21157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21158 | (exit $ac_status); }; }; then |
| 21159 | eval "$as_ac_var=yes" |
| 21160 | else |
| 21161 | echo "$as_me: failed program was:" >&5 |
| 21162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21163 | |
| 21164 | eval "$as_ac_var=no" |
| 21165 | fi |
| 21166 | |
| 21167 | rm -f core conftest.err conftest.$ac_objext \ |
| 21168 | conftest$ac_exeext conftest.$ac_ext |
| 21169 | fi |
| 21170 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21171 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21172 | echo "${ECHO_T}$ac_res" >&6; } |
| 21173 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21174 | cat >>confdefs.h <<_ACEOF |
| 21175 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21176 | _ACEOF |
| 21177 | |
| 21178 | fi |
| 21179 | done |
| 21180 | |
| 21181 | |
| 21182 | ac_safe=`echo "/dev/zero" | sed 'y%./+-%__p_%'` |
| 21183 | { echo "$as_me:$LINENO: checking for /dev/zero" >&5 |
| 21184 | echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6; } |
| 21185 | if { as_var=ac_cv_file_$ac_safe; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21187 | else |
| 21188 | |
| 21189 | if test -r /dev/zero; then |
| 21190 | eval "ac_cv_file_$ac_safe=yes" |
| 21191 | else |
| 21192 | eval "ac_cv_file_$ac_safe=no" |
| 21193 | fi |
| 21194 | |
| 21195 | fi |
| 21196 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
| 21197 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 21198 | echo "${ECHO_T}yes" >&6; } |
| 21199 | : |
| 21200 | else |
| 21201 | { echo "$as_me:$LINENO: result: no" >&5 |
| 21202 | echo "${ECHO_T}no" >&6; } |
| 21203 | |
| 21204 | fi |
| 21205 | |
| 21206 | |
| 21207 | |
| 21208 | |
| 21209 | for ac_header in sys/ipc.h sys/shm.h sys/file.h |
| 21210 | do |
| 21211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21212 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21213 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21215 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21217 | fi |
| 21218 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21219 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21220 | echo "${ECHO_T}$ac_res" >&6; } |
| 21221 | else |
| 21222 | # Is the header compilable? |
| 21223 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21224 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 21225 | cat >conftest.$ac_ext <<_ACEOF |
| 21226 | /* confdefs.h. */ |
| 21227 | _ACEOF |
| 21228 | cat confdefs.h >>conftest.$ac_ext |
| 21229 | cat >>conftest.$ac_ext <<_ACEOF |
| 21230 | /* end confdefs.h. */ |
| 21231 | $ac_includes_default |
| 21232 | #include <$ac_header> |
| 21233 | _ACEOF |
| 21234 | rm -f conftest.$ac_objext |
| 21235 | if { (ac_try="$ac_compile" |
| 21236 | case "(($ac_try" in |
| 21237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21238 | *) ac_try_echo=$ac_try;; |
| 21239 | esac |
| 21240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21241 | (eval "$ac_compile") 2>conftest.er1 |
| 21242 | ac_status=$? |
| 21243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21244 | rm -f conftest.er1 |
| 21245 | cat conftest.err >&5 |
| 21246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21247 | (exit $ac_status); } && |
| 21248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21249 | { (case "(($ac_try" in |
| 21250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21251 | *) ac_try_echo=$ac_try;; |
| 21252 | esac |
| 21253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21254 | (eval "$ac_try") 2>&5 |
| 21255 | ac_status=$? |
| 21256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21257 | (exit $ac_status); }; } && |
| 21258 | { ac_try='test -s conftest.$ac_objext' |
| 21259 | { (case "(($ac_try" in |
| 21260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21261 | *) ac_try_echo=$ac_try;; |
| 21262 | esac |
| 21263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21264 | (eval "$ac_try") 2>&5 |
| 21265 | ac_status=$? |
| 21266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21267 | (exit $ac_status); }; }; then |
| 21268 | ac_header_compiler=yes |
| 21269 | else |
| 21270 | echo "$as_me: failed program was:" >&5 |
| 21271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21272 | |
| 21273 | ac_header_compiler=no |
| 21274 | fi |
| 21275 | |
| 21276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21277 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21278 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 21279 | |
| 21280 | # Is the header present? |
| 21281 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21282 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 21283 | cat >conftest.$ac_ext <<_ACEOF |
| 21284 | /* confdefs.h. */ |
| 21285 | _ACEOF |
| 21286 | cat confdefs.h >>conftest.$ac_ext |
| 21287 | cat >>conftest.$ac_ext <<_ACEOF |
| 21288 | /* end confdefs.h. */ |
| 21289 | #include <$ac_header> |
| 21290 | _ACEOF |
| 21291 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21292 | case "(($ac_try" in |
| 21293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21294 | *) ac_try_echo=$ac_try;; |
| 21295 | esac |
| 21296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21297 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 21298 | ac_status=$? |
| 21299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21300 | rm -f conftest.er1 |
| 21301 | cat conftest.err >&5 |
| 21302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21303 | (exit $ac_status); } >/dev/null; then |
| 21304 | if test -s conftest.err; then |
| 21305 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21306 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21307 | else |
| 21308 | ac_cpp_err= |
| 21309 | fi |
| 21310 | else |
| 21311 | ac_cpp_err=yes |
| 21312 | fi |
| 21313 | if test -z "$ac_cpp_err"; then |
| 21314 | ac_header_preproc=yes |
| 21315 | else |
| 21316 | echo "$as_me: failed program was:" >&5 |
| 21317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21318 | |
| 21319 | ac_header_preproc=no |
| 21320 | fi |
| 21321 | |
| 21322 | rm -f conftest.err conftest.$ac_ext |
| 21323 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21324 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 21325 | |
| 21326 | # So? What about this header? |
| 21327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21328 | yes:no: ) |
| 21329 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21330 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21332 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21333 | ac_header_preproc=yes |
| 21334 | ;; |
| 21335 | no:yes:* ) |
| 21336 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21337 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21338 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21339 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21340 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21341 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21342 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21343 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21346 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21347 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21348 | |
| 21349 | ;; |
| 21350 | esac |
| 21351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21355 | else |
| 21356 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21357 | fi |
| 21358 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21359 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21360 | echo "${ECHO_T}$ac_res" >&6; } |
| 21361 | |
| 21362 | fi |
| 21363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21364 | cat >>confdefs.h <<_ACEOF |
| 21365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21366 | _ACEOF |
| 21367 | |
| 21368 | fi |
| 21369 | |
| 21370 | done |
| 21371 | |
| 21372 | |
| 21373 | |
| 21374 | |
| 21375 | |
| 21376 | for ac_func in shmget shmat shmdt shmctl |
| 21377 | do |
| 21378 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21379 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21380 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21381 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21383 | else |
| 21384 | cat >conftest.$ac_ext <<_ACEOF |
| 21385 | /* confdefs.h. */ |
| 21386 | _ACEOF |
| 21387 | cat confdefs.h >>conftest.$ac_ext |
| 21388 | cat >>conftest.$ac_ext <<_ACEOF |
| 21389 | /* end confdefs.h. */ |
| 21390 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21392 | #define $ac_func innocuous_$ac_func |
| 21393 | |
| 21394 | /* System header to define __stub macros and hopefully few prototypes, |
| 21395 | which can conflict with char $ac_func (); below. |
| 21396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21397 | <limits.h> exists even on freestanding compilers. */ |
| 21398 | |
| 21399 | #ifdef __STDC__ |
| 21400 | # include <limits.h> |
| 21401 | #else |
| 21402 | # include <assert.h> |
| 21403 | #endif |
| 21404 | |
| 21405 | #undef $ac_func |
| 21406 | |
| 21407 | /* Override any GCC internal prototype to avoid an error. |
| 21408 | Use char because int might match the return type of a GCC |
| 21409 | builtin and then its argument prototype would still apply. */ |
| 21410 | #ifdef __cplusplus |
| 21411 | extern "C" |
| 21412 | #endif |
| 21413 | char $ac_func (); |
| 21414 | /* The GNU C library defines this for functions which it implements |
| 21415 | to always fail with ENOSYS. Some functions are actually named |
| 21416 | something starting with __ and the normal name is an alias. */ |
| 21417 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21418 | choke me |
| 21419 | #endif |
| 21420 | |
| 21421 | int |
| 21422 | main () |
| 21423 | { |
| 21424 | return $ac_func (); |
| 21425 | ; |
| 21426 | return 0; |
| 21427 | } |
| 21428 | _ACEOF |
| 21429 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21430 | if { (ac_try="$ac_link" |
| 21431 | case "(($ac_try" in |
| 21432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21433 | *) ac_try_echo=$ac_try;; |
| 21434 | esac |
| 21435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21436 | (eval "$ac_link") 2>conftest.er1 |
| 21437 | ac_status=$? |
| 21438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21439 | rm -f conftest.er1 |
| 21440 | cat conftest.err >&5 |
| 21441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21442 | (exit $ac_status); } && |
| 21443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21444 | { (case "(($ac_try" in |
| 21445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21446 | *) ac_try_echo=$ac_try;; |
| 21447 | esac |
| 21448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21449 | (eval "$ac_try") 2>&5 |
| 21450 | ac_status=$? |
| 21451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21452 | (exit $ac_status); }; } && |
| 21453 | { ac_try='test -s conftest$ac_exeext' |
| 21454 | { (case "(($ac_try" in |
| 21455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21456 | *) ac_try_echo=$ac_try;; |
| 21457 | esac |
| 21458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21459 | (eval "$ac_try") 2>&5 |
| 21460 | ac_status=$? |
| 21461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21462 | (exit $ac_status); }; }; then |
| 21463 | eval "$as_ac_var=yes" |
| 21464 | else |
| 21465 | echo "$as_me: failed program was:" >&5 |
| 21466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21467 | |
| 21468 | eval "$as_ac_var=no" |
| 21469 | fi |
| 21470 | |
| 21471 | rm -f core conftest.err conftest.$ac_objext \ |
| 21472 | conftest$ac_exeext conftest.$ac_ext |
| 21473 | fi |
| 21474 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21475 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21476 | echo "${ECHO_T}$ac_res" >&6; } |
| 21477 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21478 | cat >>confdefs.h <<_ACEOF |
| 21479 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21480 | _ACEOF |
| 21481 | |
| 21482 | fi |
| 21483 | done |
| 21484 | |
| 21485 | |
| 21486 | for ac_header in kernel/OS.h |
| 21487 | do |
| 21488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21489 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21490 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21492 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21494 | fi |
| 21495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21497 | echo "${ECHO_T}$ac_res" >&6; } |
| 21498 | else |
| 21499 | # Is the header compilable? |
| 21500 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21501 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 21502 | cat >conftest.$ac_ext <<_ACEOF |
| 21503 | /* confdefs.h. */ |
| 21504 | _ACEOF |
| 21505 | cat confdefs.h >>conftest.$ac_ext |
| 21506 | cat >>conftest.$ac_ext <<_ACEOF |
| 21507 | /* end confdefs.h. */ |
| 21508 | $ac_includes_default |
| 21509 | #include <$ac_header> |
| 21510 | _ACEOF |
| 21511 | rm -f conftest.$ac_objext |
| 21512 | if { (ac_try="$ac_compile" |
| 21513 | case "(($ac_try" in |
| 21514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21515 | *) ac_try_echo=$ac_try;; |
| 21516 | esac |
| 21517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21518 | (eval "$ac_compile") 2>conftest.er1 |
| 21519 | ac_status=$? |
| 21520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21521 | rm -f conftest.er1 |
| 21522 | cat conftest.err >&5 |
| 21523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21524 | (exit $ac_status); } && |
| 21525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21526 | { (case "(($ac_try" in |
| 21527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21528 | *) ac_try_echo=$ac_try;; |
| 21529 | esac |
| 21530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21531 | (eval "$ac_try") 2>&5 |
| 21532 | ac_status=$? |
| 21533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21534 | (exit $ac_status); }; } && |
| 21535 | { ac_try='test -s conftest.$ac_objext' |
| 21536 | { (case "(($ac_try" in |
| 21537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21538 | *) ac_try_echo=$ac_try;; |
| 21539 | esac |
| 21540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21541 | (eval "$ac_try") 2>&5 |
| 21542 | ac_status=$? |
| 21543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21544 | (exit $ac_status); }; }; then |
| 21545 | ac_header_compiler=yes |
| 21546 | else |
| 21547 | echo "$as_me: failed program was:" >&5 |
| 21548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21549 | |
| 21550 | ac_header_compiler=no |
| 21551 | fi |
| 21552 | |
| 21553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21555 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 21556 | |
| 21557 | # Is the header present? |
| 21558 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 21560 | cat >conftest.$ac_ext <<_ACEOF |
| 21561 | /* confdefs.h. */ |
| 21562 | _ACEOF |
| 21563 | cat confdefs.h >>conftest.$ac_ext |
| 21564 | cat >>conftest.$ac_ext <<_ACEOF |
| 21565 | /* end confdefs.h. */ |
| 21566 | #include <$ac_header> |
| 21567 | _ACEOF |
| 21568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21569 | case "(($ac_try" in |
| 21570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21571 | *) ac_try_echo=$ac_try;; |
| 21572 | esac |
| 21573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 21575 | ac_status=$? |
| 21576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21577 | rm -f conftest.er1 |
| 21578 | cat conftest.err >&5 |
| 21579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21580 | (exit $ac_status); } >/dev/null; then |
| 21581 | if test -s conftest.err; then |
| 21582 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 21583 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 21584 | else |
| 21585 | ac_cpp_err= |
| 21586 | fi |
| 21587 | else |
| 21588 | ac_cpp_err=yes |
| 21589 | fi |
| 21590 | if test -z "$ac_cpp_err"; then |
| 21591 | ac_header_preproc=yes |
| 21592 | else |
| 21593 | echo "$as_me: failed program was:" >&5 |
| 21594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21595 | |
| 21596 | ac_header_preproc=no |
| 21597 | fi |
| 21598 | |
| 21599 | rm -f conftest.err conftest.$ac_ext |
| 21600 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 21601 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 21602 | |
| 21603 | # So? What about this header? |
| 21604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 21605 | yes:no: ) |
| 21606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 21607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 21608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 21609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 21610 | ac_header_preproc=yes |
| 21611 | ;; |
| 21612 | no:yes:* ) |
| 21613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 21614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 21615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 21616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 21617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 21618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 21619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 21620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 21621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 21622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 21623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 21624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 21625 | |
| 21626 | ;; |
| 21627 | esac |
| 21628 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 21630 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21632 | else |
| 21633 | eval "$as_ac_Header=\$ac_header_preproc" |
| 21634 | fi |
| 21635 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 21636 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21637 | echo "${ECHO_T}$ac_res" >&6; } |
| 21638 | |
| 21639 | fi |
| 21640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 21641 | cat >>confdefs.h <<_ACEOF |
| 21642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21643 | _ACEOF |
| 21644 | |
| 21645 | fi |
| 21646 | |
| 21647 | done |
| 21648 | |
| 21649 | |
| 21650 | for ac_func in create_area |
| 21651 | do |
| 21652 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21653 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 21654 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 21655 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21657 | else |
| 21658 | cat >conftest.$ac_ext <<_ACEOF |
| 21659 | /* confdefs.h. */ |
| 21660 | _ACEOF |
| 21661 | cat confdefs.h >>conftest.$ac_ext |
| 21662 | cat >>conftest.$ac_ext <<_ACEOF |
| 21663 | /* end confdefs.h. */ |
| 21664 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 21665 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 21666 | #define $ac_func innocuous_$ac_func |
| 21667 | |
| 21668 | /* System header to define __stub macros and hopefully few prototypes, |
| 21669 | which can conflict with char $ac_func (); below. |
| 21670 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 21671 | <limits.h> exists even on freestanding compilers. */ |
| 21672 | |
| 21673 | #ifdef __STDC__ |
| 21674 | # include <limits.h> |
| 21675 | #else |
| 21676 | # include <assert.h> |
| 21677 | #endif |
| 21678 | |
| 21679 | #undef $ac_func |
| 21680 | |
| 21681 | /* Override any GCC internal prototype to avoid an error. |
| 21682 | Use char because int might match the return type of a GCC |
| 21683 | builtin and then its argument prototype would still apply. */ |
| 21684 | #ifdef __cplusplus |
| 21685 | extern "C" |
| 21686 | #endif |
| 21687 | char $ac_func (); |
| 21688 | /* The GNU C library defines this for functions which it implements |
| 21689 | to always fail with ENOSYS. Some functions are actually named |
| 21690 | something starting with __ and the normal name is an alias. */ |
| 21691 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 21692 | choke me |
| 21693 | #endif |
| 21694 | |
| 21695 | int |
| 21696 | main () |
| 21697 | { |
| 21698 | return $ac_func (); |
| 21699 | ; |
| 21700 | return 0; |
| 21701 | } |
| 21702 | _ACEOF |
| 21703 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21704 | if { (ac_try="$ac_link" |
| 21705 | case "(($ac_try" in |
| 21706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21707 | *) ac_try_echo=$ac_try;; |
| 21708 | esac |
| 21709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21710 | (eval "$ac_link") 2>conftest.er1 |
| 21711 | ac_status=$? |
| 21712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21713 | rm -f conftest.er1 |
| 21714 | cat conftest.err >&5 |
| 21715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21716 | (exit $ac_status); } && |
| 21717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 21718 | { (case "(($ac_try" in |
| 21719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21720 | *) ac_try_echo=$ac_try;; |
| 21721 | esac |
| 21722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21723 | (eval "$ac_try") 2>&5 |
| 21724 | ac_status=$? |
| 21725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21726 | (exit $ac_status); }; } && |
| 21727 | { ac_try='test -s conftest$ac_exeext' |
| 21728 | { (case "(($ac_try" in |
| 21729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21730 | *) ac_try_echo=$ac_try;; |
| 21731 | esac |
| 21732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21733 | (eval "$ac_try") 2>&5 |
| 21734 | ac_status=$? |
| 21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21736 | (exit $ac_status); }; }; then |
| 21737 | eval "$as_ac_var=yes" |
| 21738 | else |
| 21739 | echo "$as_me: failed program was:" >&5 |
| 21740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21741 | |
| 21742 | eval "$as_ac_var=no" |
| 21743 | fi |
| 21744 | |
| 21745 | rm -f core conftest.err conftest.$ac_objext \ |
| 21746 | conftest$ac_exeext conftest.$ac_ext |
| 21747 | fi |
| 21748 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 21749 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21750 | echo "${ECHO_T}$ac_res" >&6; } |
| 21751 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 21752 | cat >>confdefs.h <<_ACEOF |
| 21753 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21754 | _ACEOF |
| 21755 | |
| 21756 | fi |
| 21757 | done |
| 21758 | |
| 21759 | |
| 21760 | |
| 21761 | |
| 21762 | |
| 21763 | |
| 21764 | |
| 21765 | |
| 21766 | |
| 21767 | |
| 21768 | |
| 21769 | |
| 21770 | |
| 21771 | |
| 21772 | ac_decision_item='shared memory allocation method' |
| 21773 | ac_decision_msg='FAILED' |
| 21774 | ac_decision='' |
| 21775 | |
| 21776 | ac_rc=yes |
| 21777 | for ac_spec in header:kernel/OS.h func:create_area; do |
| 21778 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 21779 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 21780 | case $ac_type in |
| 21781 | header ) |
| 21782 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21783 | ac_var="ac_cv_header_$ac_item" |
| 21784 | ;; |
| 21785 | file ) |
| 21786 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21787 | ac_var="ac_cv_file_$ac_item" |
| 21788 | ;; |
| 21789 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 21790 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 21791 | custom ) ac_var="$ac_item" ;; |
| 21792 | esac |
| 21793 | eval "ac_val=\$$ac_var" |
| 21794 | if test ".$ac_val" != .yes; then |
| 21795 | ac_rc=no |
| 21796 | break |
| 21797 | fi |
| 21798 | done |
| 21799 | if test ".$ac_rc" = .yes; then |
| 21800 | : |
| 21801 | ac_decision='MM_SHMT_BEOS' |
| 21802 | ac_decision_msg='BeOS areas' |
| 21803 | ac_decision_MM_SHMT_BEOS=yes |
| 21804 | ac_decision_MM_SHMT_BEOS_msg='BeOS areas' |
| 21805 | |
| 21806 | else |
| 21807 | : |
| 21808 | |
| 21809 | fi |
| 21810 | |
| 21811 | ac_rc=yes |
| 21812 | for ac_spec in header:sys/mman.h func:mmap func:munmap; do |
| 21813 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 21814 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 21815 | case $ac_type in |
| 21816 | header ) |
| 21817 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21818 | ac_var="ac_cv_header_$ac_item" |
| 21819 | ;; |
| 21820 | file ) |
| 21821 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21822 | ac_var="ac_cv_file_$ac_item" |
| 21823 | ;; |
| 21824 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 21825 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 21826 | custom ) ac_var="$ac_item" ;; |
| 21827 | esac |
| 21828 | eval "ac_val=\$$ac_var" |
| 21829 | if test ".$ac_val" != .yes; then |
| 21830 | ac_rc=no |
| 21831 | break |
| 21832 | fi |
| 21833 | done |
| 21834 | if test ".$ac_rc" = .yes; then |
| 21835 | : |
| 21836 | ac_decision='MM_SHMT_MMFILE' |
| 21837 | ac_decision_msg='Classical mmap() on temporary file' |
| 21838 | ac_decision_MM_SHMT_MMFILE=yes |
| 21839 | ac_decision_MM_SHMT_MMFILE_msg='Classical mmap() on temporary file' |
| 21840 | |
| 21841 | else |
| 21842 | : |
| 21843 | |
| 21844 | fi |
| 21845 | |
| 21846 | ac_rc=yes |
| 21847 | for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do |
| 21848 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 21849 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 21850 | case $ac_type in |
| 21851 | header ) |
| 21852 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21853 | ac_var="ac_cv_header_$ac_item" |
| 21854 | ;; |
| 21855 | file ) |
| 21856 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21857 | ac_var="ac_cv_file_$ac_item" |
| 21858 | ;; |
| 21859 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 21860 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 21861 | custom ) ac_var="$ac_item" ;; |
| 21862 | esac |
| 21863 | eval "ac_val=\$$ac_var" |
| 21864 | if test ".$ac_val" != .yes; then |
| 21865 | ac_rc=no |
| 21866 | break |
| 21867 | fi |
| 21868 | done |
| 21869 | if test ".$ac_rc" = .yes; then |
| 21870 | : |
| 21871 | ac_decision='MM_SHMT_MMPOSX' |
| 21872 | ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file' |
| 21873 | ac_decision_MM_SHMT_MMPOSX=yes |
| 21874 | ac_decision_MM_SHMT_MMPOSX_msg='mmap() via POSIX.1 shm_open() on temporary file' |
| 21875 | |
| 21876 | else |
| 21877 | : |
| 21878 | |
| 21879 | fi |
| 21880 | |
| 21881 | ac_rc=yes |
| 21882 | for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do |
| 21883 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 21884 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 21885 | case $ac_type in |
| 21886 | header ) |
| 21887 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21888 | ac_var="ac_cv_header_$ac_item" |
| 21889 | ;; |
| 21890 | file ) |
| 21891 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21892 | ac_var="ac_cv_file_$ac_item" |
| 21893 | ;; |
| 21894 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 21895 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 21896 | custom ) ac_var="$ac_item" ;; |
| 21897 | esac |
| 21898 | eval "ac_val=\$$ac_var" |
| 21899 | if test ".$ac_val" != .yes; then |
| 21900 | ac_rc=no |
| 21901 | break |
| 21902 | fi |
| 21903 | done |
| 21904 | if test ".$ac_rc" = .yes; then |
| 21905 | : |
| 21906 | ac_decision='MM_SHMT_MMZERO' |
| 21907 | ac_decision_msg='SVR4-style mmap() on /dev/zero' |
| 21908 | ac_decision_MM_SHMT_MMZERO=yes |
| 21909 | ac_decision_MM_SHMT_MMZERO_msg='SVR4-style mmap() on /dev/zero' |
| 21910 | |
| 21911 | else |
| 21912 | : |
| 21913 | |
| 21914 | fi |
| 21915 | |
| 21916 | ac_rc=yes |
| 21917 | for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do |
| 21918 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 21919 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 21920 | case $ac_type in |
| 21921 | header ) |
| 21922 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21923 | ac_var="ac_cv_header_$ac_item" |
| 21924 | ;; |
| 21925 | file ) |
| 21926 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21927 | ac_var="ac_cv_file_$ac_item" |
| 21928 | ;; |
| 21929 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 21930 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 21931 | custom ) ac_var="$ac_item" ;; |
| 21932 | esac |
| 21933 | eval "ac_val=\$$ac_var" |
| 21934 | if test ".$ac_val" != .yes; then |
| 21935 | ac_rc=no |
| 21936 | break |
| 21937 | fi |
| 21938 | done |
| 21939 | if test ".$ac_rc" = .yes; then |
| 21940 | : |
| 21941 | ac_decision='MM_SHMT_IPCSHM' |
| 21942 | ac_decision_msg='SysV IPC shmget()' |
| 21943 | ac_decision_MM_SHMT_IPCSHM=yes |
| 21944 | ac_decision_MM_SHMT_IPCSHM_msg='SysV IPC shmget()' |
| 21945 | |
| 21946 | else |
| 21947 | : |
| 21948 | |
| 21949 | fi |
| 21950 | |
| 21951 | ac_rc=yes |
| 21952 | for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do |
| 21953 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 21954 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 21955 | case $ac_type in |
| 21956 | header ) |
| 21957 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21958 | ac_var="ac_cv_header_$ac_item" |
| 21959 | ;; |
| 21960 | file ) |
| 21961 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 21962 | ac_var="ac_cv_file_$ac_item" |
| 21963 | ;; |
| 21964 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 21965 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 21966 | custom ) ac_var="$ac_item" ;; |
| 21967 | esac |
| 21968 | eval "ac_val=\$$ac_var" |
| 21969 | if test ".$ac_val" != .yes; then |
| 21970 | ac_rc=no |
| 21971 | break |
| 21972 | fi |
| 21973 | done |
| 21974 | if test ".$ac_rc" = .yes; then |
| 21975 | : |
| 21976 | ac_decision='MM_SHMT_MMANON' |
| 21977 | ac_decision_msg='4.4BSD-style mmap() via MAP_ANON' |
| 21978 | ac_decision_MM_SHMT_MMANON=yes |
| 21979 | ac_decision_MM_SHMT_MMANON_msg='4.4BSD-style mmap() via MAP_ANON' |
| 21980 | |
| 21981 | else |
| 21982 | : |
| 21983 | |
| 21984 | fi |
| 21985 | |
| 21986 | case $PLATFORM in |
| 21987 | *-*-linux* ) |
| 21988 | # Unfortunately, Linux has many problems, so we have to do |
| 21989 | # more granular manual decisions here. The background is: |
| 21990 | # MM_SHMT_IPCSHM: |
| 21991 | # Supported under Linux 2.0 and upwards. Works out of the |
| 21992 | # box on Linux 2.2, but requires an explicitly mounted shm |
| 21993 | # filesystem under 2.3 only. The requirement for the shm |
| 21994 | # filesystem should be gone with Linux 2.4. |
| 21995 | # MM_SHMT_MMANON: |
| 21996 | # Not allowed up to and included to Linux 2.2. |
| 21997 | # Should be supported in Linux 2.3, but still hangs there. |
| 21998 | # Will be supported from Linux 2.4 on the first time really. |
| 21999 | # MM_SHMT_MMZERO: |
| 22000 | # Not allowed up to and included to Linux 2.2. |
| 22001 | # Should be supported in Linux 2.3, but still hangs there. |
| 22002 | # Will be supported from Linux 2.4 on the first time really. |
| 22003 | # MM_SHMT_MMFILE: |
| 22004 | # Works on Linux versions. |
| 22005 | case $PLATFORM in |
| 22006 | *-linux1* ) |
| 22007 | ac_decision="MM_SHMT_MMFILE" |
| 22008 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 22009 | |
| 22010 | ;; |
| 22011 | *-*-linux2.0* ) |
| 22012 | ac_decision="MM_SHMT_IPCSHM" |
| 22013 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 22014 | |
| 22015 | ;; |
| 22016 | *-*-linux2.12* ) |
| 22017 | ac_decision="MM_SHMT_IPCSHM" |
| 22018 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 22019 | |
| 22020 | ;; |
| 22021 | *-*-linux2.3* ) |
| 22022 | if test ".`df 2>/dev/null | grep shm`" != .; then |
| 22023 | ac_decision="MM_SHMT_IPCSHM" |
| 22024 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 22025 | |
| 22026 | else |
| 22027 | ac_decision="MM_SHMT_MMFILE" |
| 22028 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 22029 | |
| 22030 | fi |
| 22031 | ;; |
| 22032 | * ) |
| 22033 | ac_decision='' |
| 22034 | for ac_item in MM_SHMT_MMFILE MM_SHMT_MMZERO MM_SHMT_MMPOSX MM_SHMT_MMANON MM_SHMT_IPCSHM; do |
| 22035 | eval "ac_decision_this=\$ac_decision_${ac_item}" |
| 22036 | if test ".$ac_decision_this" = .yes; then |
| 22037 | ac_decision=$ac_item |
| 22038 | eval "ac_decision_msg=\$ac_decision_${ac_item}_msg" |
| 22039 | fi |
| 22040 | done |
| 22041 | |
| 22042 | esac |
| 22043 | ;; |
| 22044 | esac |
| 22045 | |
| 22046 | # Check whether --with-shm was given. |
| 22047 | if test "${with_shm+set}" = set; then |
| 22048 | withval=$with_shm; ac_decision="MM_SHMT_$withval" |
| 22049 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 22050 | |
| 22051 | |
| 22052 | fi |
| 22053 | if test ".$ac_decision" = .; then |
| 22054 | echo "$0:Error: decision on $ac_decision_item failed" 1>&2 |
| 22055 | exit 1 |
| 22056 | else |
| 22057 | if test ".$ac_decision_msg" = .; then |
| 22058 | ac_decision_msg="$ac_decision" |
| 22059 | fi |
| 22060 | { echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5 |
| 22061 | echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6; } |
| 22062 | fi |
| 22063 | |
| 22064 | cat >>confdefs.h <<_ACEOF |
| 22065 | #define $ac_decision 1 |
| 22066 | _ACEOF |
| 22067 | |
| 22068 | |
| 22069 | { echo "$as_me:$LINENO: checking for shared memory maximum segment size" >&5 |
| 22070 | echo $ECHO_N "checking for shared memory maximum segment size... $ECHO_C" >&6; } |
| 22071 | if test "${ac_cv_maxsegsize+set}" = set; then |
| 22072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22073 | else |
| 22074 | |
| 22075 | OCFLAGS="$CFLAGS" |
| 22076 | case "$ac_decision" in |
| 22077 | MM_SHMT_MM* ) CFLAGS="-DTEST_MMAP $CFLAGS" ;; |
| 22078 | MM_SHMT_IPCSHM ) CFLAGS="-DTEST_SHMGET $CFLAGS" ;; |
| 22079 | esac |
| 22080 | cross_compile=no |
| 22081 | if test "$cross_compiling" = yes; then |
| 22082 | ac_cv_maxsegsize=0 |
| 22083 | |
| 22084 | else |
| 22085 | cat >conftest.$ac_ext <<_ACEOF |
| 22086 | /* confdefs.h. */ |
| 22087 | _ACEOF |
| 22088 | cat confdefs.h >>conftest.$ac_ext |
| 22089 | cat >>conftest.$ac_ext <<_ACEOF |
| 22090 | /* end confdefs.h. */ |
| 22091 | |
| 22092 | #include <stdio.h> |
| 22093 | #include <stdlib.h> |
| 22094 | #include <unistd.h> |
| 22095 | #include <fcntl.h> |
| 22096 | #include <sys/file.h> |
| 22097 | #include <sys/types.h> |
| 22098 | #include <sys/stat.h> |
| 22099 | #ifdef TEST_MMAP |
| 22100 | #include <sys/mman.h> |
| 22101 | #endif |
| 22102 | #ifdef TEST_SHMGET |
| 22103 | #ifdef MM_OS_SUNOS |
| 22104 | #define KERNEL 1 |
| 22105 | #endif |
| 22106 | #ifdef MM_OS_BS2000 |
| 22107 | #define _KMEMUSER |
| 22108 | #endif |
| 22109 | #include <sys/ipc.h> |
| 22110 | #include <sys/shm.h> |
| 22111 | #ifdef MM_OS_SUNOS |
| 22112 | #undef KERNEL |
| 22113 | #endif |
| 22114 | #ifdef MM_OS_BS2000 |
| 22115 | #undef _KMEMUSER |
| 22116 | #endif |
| 22117 | #if !defined(SHM_R) |
| 22118 | #define SHM_R 0400 |
| 22119 | #endif |
| 22120 | #if !defined(SHM_W) |
| 22121 | #define SHM_W 0200 |
| 22122 | #endif |
| 22123 | #endif |
| 22124 | #if !defined(MAP_FAILED) |
| 22125 | #define MAP_FAILED ((void *)(-1)) |
| 22126 | #endif |
| 22127 | #ifdef MM_OS_BEOS |
| 22128 | #include <kernel/OS.h> |
| 22129 | #endif |
| 22130 | |
| 22131 | int testit(int size) |
| 22132 | { |
| 22133 | int fd; |
| 22134 | void *segment; |
| 22135 | #ifdef TEST_MMAP |
| 22136 | char file[] = "./ac_test.tmp"; |
| 22137 | unlink(file); |
| 22138 | if ((fd = open(file, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) == -1) |
| 22139 | return 0; |
| 22140 | if (ftruncate(fd, size) == -1) |
| 22141 | return 0; |
| 22142 | if ((segment = (void *)mmap(NULL, size, PROT_READ|PROT_WRITE, |
| 22143 | MAP_SHARED, fd, 0)) == (void *)MAP_FAILED) { |
| 22144 | close(fd); |
| 22145 | return 0; |
| 22146 | } |
| 22147 | munmap((caddr_t)segment, size); |
| 22148 | close(fd); |
| 22149 | unlink(file); |
| 22150 | #endif |
| 22151 | #ifdef TEST_SHMGET |
| 22152 | if ((fd = shmget(IPC_PRIVATE, size, SHM_R|SHM_W|IPC_CREAT)) == -1) |
| 22153 | return 0; |
| 22154 | if ((segment = (void *)shmat(fd, NULL, 0)) == ((void *)-1)) { |
| 22155 | shmctl(fd, IPC_RMID, NULL); |
| 22156 | return 0; |
| 22157 | } |
| 22158 | shmdt(segment); |
| 22159 | shmctl(fd, IPC_RMID, NULL); |
| 22160 | #endif |
| 22161 | #ifdef TEST_BEOS |
| 22162 | area_id id; |
| 22163 | id = create_area("mm_test", (void*)&segment, B_ANY_ADDRESS, size, |
| 22164 | B_LAZY_LOCK, B_READ_AREA|B_WRITE_AREA); |
| 22165 | if (id < 0) |
| 22166 | return 0; |
| 22167 | delete_area(id); |
| 22168 | #endif |
| 22169 | return 1; |
| 22170 | } |
| 22171 | |
| 22172 | #define ABS(n) ((n) >= 0 ? (n) : (-(n))) |
| 22173 | |
| 22174 | int main(int argc, char *argv[]) |
| 22175 | { |
| 22176 | int t, m, b; |
| 22177 | int d; |
| 22178 | int rc; |
| 22179 | FILE *f; |
| 22180 | |
| 22181 | /* |
| 22182 | * Find maximum possible allocation size by performing a |
| 22183 | * binary search starting with a search space between 0 and |
| 22184 | * 64MB of memory. |
| 22185 | */ |
| 22186 | t = 1024*1024*64 /* = 67108864 */; |
| 22187 | if (testit(t)) |
| 22188 | m = t; |
| 22189 | else { |
| 22190 | m = 1024*1024*32; |
| 22191 | b = 0; |
| 22192 | for (;;) { |
| 22193 | /* fprintf(stderr, "t=%d, m=%d, b=%d\n", t, m, b); */ |
| 22194 | rc = testit(m); |
| 22195 | if (rc) { |
| 22196 | d = ((t-m)/2); |
| 22197 | b = m; |
| 22198 | } |
| 22199 | else { |
| 22200 | d = -((m-b)/2); |
| 22201 | t = m; |
| 22202 | } |
| 22203 | if (ABS(d) < 1024*1) { |
| 22204 | if (!rc) |
| 22205 | m = b; |
| 22206 | break; |
| 22207 | } |
| 22208 | if (m < 1024*8) |
| 22209 | break; |
| 22210 | m += d; |
| 22211 | } |
| 22212 | if (m < 1024*8) |
| 22213 | m = 0; |
| 22214 | } |
| 22215 | if ((f = fopen("conftestval", "w")) == NULL) |
| 22216 | exit(1); |
| 22217 | fprintf(f, "%d\n", m); |
| 22218 | fclose(f); |
| 22219 | exit(0); |
| 22220 | } |
| 22221 | |
| 22222 | |
| 22223 | _ACEOF |
| 22224 | rm -f conftest$ac_exeext |
| 22225 | if { (ac_try="$ac_link" |
| 22226 | case "(($ac_try" in |
| 22227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22228 | *) ac_try_echo=$ac_try;; |
| 22229 | esac |
| 22230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22231 | (eval "$ac_link") 2>&5 |
| 22232 | ac_status=$? |
| 22233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 22235 | { (case "(($ac_try" in |
| 22236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22237 | *) ac_try_echo=$ac_try;; |
| 22238 | esac |
| 22239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22240 | (eval "$ac_try") 2>&5 |
| 22241 | ac_status=$? |
| 22242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22243 | (exit $ac_status); }; }; then |
| 22244 | ac_cv_maxsegsize="`cat conftestval`" |
| 22245 | |
| 22246 | else |
| 22247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 22248 | echo "$as_me: failed program was:" >&5 |
| 22249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22250 | |
| 22251 | ( exit $ac_status ) |
| 22252 | ac_cv_maxsegsize=0 |
| 22253 | |
| 22254 | fi |
| 22255 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 22256 | fi |
| 22257 | |
| 22258 | |
| 22259 | CFLAGS="$OCFLAGS" |
| 22260 | |
| 22261 | fi |
| 22262 | |
| 22263 | msg="$ac_cv_maxsegsize" |
| 22264 | if test $msg -eq 67108864; then |
| 22265 | msg="64MB (soft limit)" |
| 22266 | elif test $msg -gt 1048576; then |
| 22267 | msg="`expr $msg / 1024`" |
| 22268 | msg="`expr $msg / 1024`" |
| 22269 | msg="${msg}MB" |
| 22270 | elif test $msg -gt 1024; then |
| 22271 | msg="`expr $msg / 1024`" |
| 22272 | msg="${msg}KB" |
| 22273 | else |
| 22274 | ac_cv_maxsegsize=0 |
| 22275 | msg=unknown |
| 22276 | fi |
| 22277 | MM_SHM_MAXSEGSIZE=$ac_cv_maxsegsize |
| 22278 | test ".$msg" = .unknown && { { echo "$as_me:$LINENO: error: Unable to determine maximum shared memory segment size" >&5 |
| 22279 | echo "$as_me: error: Unable to determine maximum shared memory segment size" >&2;} |
| 22280 | { (exit 1); exit 1; }; } |
| 22281 | { echo "$as_me:$LINENO: result: $msg" >&5 |
| 22282 | echo "${ECHO_T}$msg" >&6; } |
| 22283 | |
| 22284 | cat >>confdefs.h <<_ACEOF |
| 22285 | #define MM_SHM_MAXSEGSIZE $MM_SHM_MAXSEGSIZE |
| 22286 | _ACEOF |
| 22287 | |
| 22288 | |
| 22289 | |
| 22290 | |
| 22291 | { echo "$as_me:$LINENO: result: " >&5 |
| 22292 | echo "${ECHO_T}" >&6; } |
| 22293 | { echo "$as_me:$LINENO: result: ${T_MD}Mutual Exclusion Implementation:${T_ME}" >&5 |
| 22294 | echo "${ECHO_T}${T_MD}Mutual Exclusion Implementation:${T_ME}" >&6; } |
| 22295 | |
| 22296 | |
| 22297 | |
| 22298 | |
| 22299 | |
| 22300 | for ac_header in sys/ipc.h sys/sem.h sys/file.h |
| 22301 | do |
| 22302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 22303 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22304 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 22306 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22308 | fi |
| 22309 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 22310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22311 | echo "${ECHO_T}$ac_res" >&6; } |
| 22312 | else |
| 22313 | # Is the header compilable? |
| 22314 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 22315 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 22316 | cat >conftest.$ac_ext <<_ACEOF |
| 22317 | /* confdefs.h. */ |
| 22318 | _ACEOF |
| 22319 | cat confdefs.h >>conftest.$ac_ext |
| 22320 | cat >>conftest.$ac_ext <<_ACEOF |
| 22321 | /* end confdefs.h. */ |
| 22322 | $ac_includes_default |
| 22323 | #include <$ac_header> |
| 22324 | _ACEOF |
| 22325 | rm -f conftest.$ac_objext |
| 22326 | if { (ac_try="$ac_compile" |
| 22327 | case "(($ac_try" in |
| 22328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22329 | *) ac_try_echo=$ac_try;; |
| 22330 | esac |
| 22331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22332 | (eval "$ac_compile") 2>conftest.er1 |
| 22333 | ac_status=$? |
| 22334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22335 | rm -f conftest.er1 |
| 22336 | cat conftest.err >&5 |
| 22337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22338 | (exit $ac_status); } && |
| 22339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22340 | { (case "(($ac_try" in |
| 22341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22342 | *) ac_try_echo=$ac_try;; |
| 22343 | esac |
| 22344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22345 | (eval "$ac_try") 2>&5 |
| 22346 | ac_status=$? |
| 22347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22348 | (exit $ac_status); }; } && |
| 22349 | { ac_try='test -s conftest.$ac_objext' |
| 22350 | { (case "(($ac_try" in |
| 22351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22352 | *) ac_try_echo=$ac_try;; |
| 22353 | esac |
| 22354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22355 | (eval "$ac_try") 2>&5 |
| 22356 | ac_status=$? |
| 22357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22358 | (exit $ac_status); }; }; then |
| 22359 | ac_header_compiler=yes |
| 22360 | else |
| 22361 | echo "$as_me: failed program was:" >&5 |
| 22362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22363 | |
| 22364 | ac_header_compiler=no |
| 22365 | fi |
| 22366 | |
| 22367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22368 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22369 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 22370 | |
| 22371 | # Is the header present? |
| 22372 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 22373 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 22374 | cat >conftest.$ac_ext <<_ACEOF |
| 22375 | /* confdefs.h. */ |
| 22376 | _ACEOF |
| 22377 | cat confdefs.h >>conftest.$ac_ext |
| 22378 | cat >>conftest.$ac_ext <<_ACEOF |
| 22379 | /* end confdefs.h. */ |
| 22380 | #include <$ac_header> |
| 22381 | _ACEOF |
| 22382 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22383 | case "(($ac_try" in |
| 22384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22385 | *) ac_try_echo=$ac_try;; |
| 22386 | esac |
| 22387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 22389 | ac_status=$? |
| 22390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22391 | rm -f conftest.er1 |
| 22392 | cat conftest.err >&5 |
| 22393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22394 | (exit $ac_status); } >/dev/null; then |
| 22395 | if test -s conftest.err; then |
| 22396 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 22397 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 22398 | else |
| 22399 | ac_cpp_err= |
| 22400 | fi |
| 22401 | else |
| 22402 | ac_cpp_err=yes |
| 22403 | fi |
| 22404 | if test -z "$ac_cpp_err"; then |
| 22405 | ac_header_preproc=yes |
| 22406 | else |
| 22407 | echo "$as_me: failed program was:" >&5 |
| 22408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22409 | |
| 22410 | ac_header_preproc=no |
| 22411 | fi |
| 22412 | |
| 22413 | rm -f conftest.err conftest.$ac_ext |
| 22414 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22415 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 22416 | |
| 22417 | # So? What about this header? |
| 22418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22419 | yes:no: ) |
| 22420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22423 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 22424 | ac_header_preproc=yes |
| 22425 | ;; |
| 22426 | no:yes:* ) |
| 22427 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22428 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 22429 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22430 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22431 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22432 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22433 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22434 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 22437 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22438 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 22439 | |
| 22440 | ;; |
| 22441 | esac |
| 22442 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 22444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22446 | else |
| 22447 | eval "$as_ac_Header=\$ac_header_preproc" |
| 22448 | fi |
| 22449 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 22450 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22451 | echo "${ECHO_T}$ac_res" >&6; } |
| 22452 | |
| 22453 | fi |
| 22454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 22455 | cat >>confdefs.h <<_ACEOF |
| 22456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22457 | _ACEOF |
| 22458 | |
| 22459 | fi |
| 22460 | |
| 22461 | done |
| 22462 | |
| 22463 | |
| 22464 | |
| 22465 | for ac_func in semget semctl |
| 22466 | do |
| 22467 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22468 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22469 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22470 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22472 | else |
| 22473 | cat >conftest.$ac_ext <<_ACEOF |
| 22474 | /* confdefs.h. */ |
| 22475 | _ACEOF |
| 22476 | cat confdefs.h >>conftest.$ac_ext |
| 22477 | cat >>conftest.$ac_ext <<_ACEOF |
| 22478 | /* end confdefs.h. */ |
| 22479 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22481 | #define $ac_func innocuous_$ac_func |
| 22482 | |
| 22483 | /* System header to define __stub macros and hopefully few prototypes, |
| 22484 | which can conflict with char $ac_func (); below. |
| 22485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22486 | <limits.h> exists even on freestanding compilers. */ |
| 22487 | |
| 22488 | #ifdef __STDC__ |
| 22489 | # include <limits.h> |
| 22490 | #else |
| 22491 | # include <assert.h> |
| 22492 | #endif |
| 22493 | |
| 22494 | #undef $ac_func |
| 22495 | |
| 22496 | /* Override any GCC internal prototype to avoid an error. |
| 22497 | Use char because int might match the return type of a GCC |
| 22498 | builtin and then its argument prototype would still apply. */ |
| 22499 | #ifdef __cplusplus |
| 22500 | extern "C" |
| 22501 | #endif |
| 22502 | char $ac_func (); |
| 22503 | /* The GNU C library defines this for functions which it implements |
| 22504 | to always fail with ENOSYS. Some functions are actually named |
| 22505 | something starting with __ and the normal name is an alias. */ |
| 22506 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22507 | choke me |
| 22508 | #endif |
| 22509 | |
| 22510 | int |
| 22511 | main () |
| 22512 | { |
| 22513 | return $ac_func (); |
| 22514 | ; |
| 22515 | return 0; |
| 22516 | } |
| 22517 | _ACEOF |
| 22518 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22519 | if { (ac_try="$ac_link" |
| 22520 | case "(($ac_try" in |
| 22521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22522 | *) ac_try_echo=$ac_try;; |
| 22523 | esac |
| 22524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22525 | (eval "$ac_link") 2>conftest.er1 |
| 22526 | ac_status=$? |
| 22527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22528 | rm -f conftest.er1 |
| 22529 | cat conftest.err >&5 |
| 22530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22531 | (exit $ac_status); } && |
| 22532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22533 | { (case "(($ac_try" in |
| 22534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22535 | *) ac_try_echo=$ac_try;; |
| 22536 | esac |
| 22537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22538 | (eval "$ac_try") 2>&5 |
| 22539 | ac_status=$? |
| 22540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22541 | (exit $ac_status); }; } && |
| 22542 | { ac_try='test -s conftest$ac_exeext' |
| 22543 | { (case "(($ac_try" in |
| 22544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22545 | *) ac_try_echo=$ac_try;; |
| 22546 | esac |
| 22547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22548 | (eval "$ac_try") 2>&5 |
| 22549 | ac_status=$? |
| 22550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22551 | (exit $ac_status); }; }; then |
| 22552 | eval "$as_ac_var=yes" |
| 22553 | else |
| 22554 | echo "$as_me: failed program was:" >&5 |
| 22555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22556 | |
| 22557 | eval "$as_ac_var=no" |
| 22558 | fi |
| 22559 | |
| 22560 | rm -f core conftest.err conftest.$ac_objext \ |
| 22561 | conftest$ac_exeext conftest.$ac_ext |
| 22562 | fi |
| 22563 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22565 | echo "${ECHO_T}$ac_res" >&6; } |
| 22566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22567 | cat >>confdefs.h <<_ACEOF |
| 22568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22569 | _ACEOF |
| 22570 | |
| 22571 | fi |
| 22572 | done |
| 22573 | |
| 22574 | { echo "$as_me:$LINENO: checking for LOCK_EX in sys/file.h" >&5 |
| 22575 | echo $ECHO_N "checking for LOCK_EX in sys/file.h... $ECHO_C" >&6; } |
| 22576 | if test "${ac_cv_define_LOCK_EX+set}" = set; then |
| 22577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22578 | else |
| 22579 | cat >conftest.$ac_ext <<_ACEOF |
| 22580 | /* confdefs.h. */ |
| 22581 | _ACEOF |
| 22582 | cat confdefs.h >>conftest.$ac_ext |
| 22583 | cat >>conftest.$ac_ext <<_ACEOF |
| 22584 | /* end confdefs.h. */ |
| 22585 | |
| 22586 | #include <sys/file.h> |
| 22587 | #ifdef LOCK_EX |
| 22588 | YES_IS_DEFINED |
| 22589 | #endif |
| 22590 | |
| 22591 | _ACEOF |
| 22592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22593 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 22594 | ac_cv_define_LOCK_EX=yes |
| 22595 | else |
| 22596 | ac_cv_define_LOCK_EX=no |
| 22597 | fi |
| 22598 | rm -f conftest* |
| 22599 | |
| 22600 | |
| 22601 | fi |
| 22602 | { echo "$as_me:$LINENO: result: $ac_cv_define_LOCK_EX" >&5 |
| 22603 | echo "${ECHO_T}$ac_cv_define_LOCK_EX" >&6; } |
| 22604 | if test "$ac_cv_define_LOCK_EX" = "yes" ; then |
| 22605 | |
| 22606 | cat >>confdefs.h <<\_ACEOF |
| 22607 | #define HAVE_LOCK_EX 1 |
| 22608 | _ACEOF |
| 22609 | |
| 22610 | fi |
| 22611 | |
| 22612 | { echo "$as_me:$LINENO: checking for F_SETLK in fcntl.h" >&5 |
| 22613 | echo $ECHO_N "checking for F_SETLK in fcntl.h... $ECHO_C" >&6; } |
| 22614 | if test "${ac_cv_define_F_SETLK+set}" = set; then |
| 22615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22616 | else |
| 22617 | cat >conftest.$ac_ext <<_ACEOF |
| 22618 | /* confdefs.h. */ |
| 22619 | _ACEOF |
| 22620 | cat confdefs.h >>conftest.$ac_ext |
| 22621 | cat >>conftest.$ac_ext <<_ACEOF |
| 22622 | /* end confdefs.h. */ |
| 22623 | |
| 22624 | #include <fcntl.h> |
| 22625 | #ifdef F_SETLK |
| 22626 | YES_IS_DEFINED |
| 22627 | #endif |
| 22628 | |
| 22629 | _ACEOF |
| 22630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22631 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 22632 | ac_cv_define_F_SETLK=yes |
| 22633 | else |
| 22634 | ac_cv_define_F_SETLK=no |
| 22635 | fi |
| 22636 | rm -f conftest* |
| 22637 | |
| 22638 | |
| 22639 | fi |
| 22640 | { echo "$as_me:$LINENO: result: $ac_cv_define_F_SETLK" >&5 |
| 22641 | echo "${ECHO_T}$ac_cv_define_F_SETLK" >&6; } |
| 22642 | if test "$ac_cv_define_F_SETLK" = "yes" ; then |
| 22643 | |
| 22644 | cat >>confdefs.h <<\_ACEOF |
| 22645 | #define HAVE_F_SETLK 1 |
| 22646 | _ACEOF |
| 22647 | |
| 22648 | fi |
| 22649 | |
| 22650 | { echo "$as_me:$LINENO: checking for IPC_PRIVATE in sys/ipc.h" >&5 |
| 22651 | echo $ECHO_N "checking for IPC_PRIVATE in sys/ipc.h... $ECHO_C" >&6; } |
| 22652 | if test "${ac_cv_define_IPC_PRIVATE+set}" = set; then |
| 22653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22654 | else |
| 22655 | cat >conftest.$ac_ext <<_ACEOF |
| 22656 | /* confdefs.h. */ |
| 22657 | _ACEOF |
| 22658 | cat confdefs.h >>conftest.$ac_ext |
| 22659 | cat >>conftest.$ac_ext <<_ACEOF |
| 22660 | /* end confdefs.h. */ |
| 22661 | |
| 22662 | #include <sys/ipc.h> |
| 22663 | #ifdef IPC_PRIVATE |
| 22664 | YES_IS_DEFINED |
| 22665 | #endif |
| 22666 | |
| 22667 | _ACEOF |
| 22668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22669 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 22670 | ac_cv_define_IPC_PRIVATE=yes |
| 22671 | else |
| 22672 | ac_cv_define_IPC_PRIVATE=no |
| 22673 | fi |
| 22674 | rm -f conftest* |
| 22675 | |
| 22676 | |
| 22677 | fi |
| 22678 | { echo "$as_me:$LINENO: result: $ac_cv_define_IPC_PRIVATE" >&5 |
| 22679 | echo "${ECHO_T}$ac_cv_define_IPC_PRIVATE" >&6; } |
| 22680 | if test "$ac_cv_define_IPC_PRIVATE" = "yes" ; then |
| 22681 | |
| 22682 | cat >>confdefs.h <<\_ACEOF |
| 22683 | #define HAVE_IPC_PRIVATE 1 |
| 22684 | _ACEOF |
| 22685 | |
| 22686 | fi |
| 22687 | |
| 22688 | { echo "$as_me:$LINENO: checking for SEM_UNDO in sys/sem.h" >&5 |
| 22689 | echo $ECHO_N "checking for SEM_UNDO in sys/sem.h... $ECHO_C" >&6; } |
| 22690 | if test "${ac_cv_define_SEM_UNDO+set}" = set; then |
| 22691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22692 | else |
| 22693 | cat >conftest.$ac_ext <<_ACEOF |
| 22694 | /* confdefs.h. */ |
| 22695 | _ACEOF |
| 22696 | cat confdefs.h >>conftest.$ac_ext |
| 22697 | cat >>conftest.$ac_ext <<_ACEOF |
| 22698 | /* end confdefs.h. */ |
| 22699 | |
| 22700 | #include <sys/sem.h> |
| 22701 | #ifdef SEM_UNDO |
| 22702 | YES_IS_DEFINED |
| 22703 | #endif |
| 22704 | |
| 22705 | _ACEOF |
| 22706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22707 | $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then |
| 22708 | ac_cv_define_SEM_UNDO=yes |
| 22709 | else |
| 22710 | ac_cv_define_SEM_UNDO=no |
| 22711 | fi |
| 22712 | rm -f conftest* |
| 22713 | |
| 22714 | |
| 22715 | fi |
| 22716 | { echo "$as_me:$LINENO: result: $ac_cv_define_SEM_UNDO" >&5 |
| 22717 | echo "${ECHO_T}$ac_cv_define_SEM_UNDO" >&6; } |
| 22718 | if test "$ac_cv_define_SEM_UNDO" = "yes" ; then |
| 22719 | |
| 22720 | cat >>confdefs.h <<\_ACEOF |
| 22721 | #define HAVE_SEM_UNDO 1 |
| 22722 | _ACEOF |
| 22723 | |
| 22724 | fi |
| 22725 | |
| 22726 | |
| 22727 | for ac_header in kernel/OS.h |
| 22728 | do |
| 22729 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 22730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22731 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 22733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22735 | fi |
| 22736 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 22737 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22738 | echo "${ECHO_T}$ac_res" >&6; } |
| 22739 | else |
| 22740 | # Is the header compilable? |
| 22741 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 22742 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 22743 | cat >conftest.$ac_ext <<_ACEOF |
| 22744 | /* confdefs.h. */ |
| 22745 | _ACEOF |
| 22746 | cat confdefs.h >>conftest.$ac_ext |
| 22747 | cat >>conftest.$ac_ext <<_ACEOF |
| 22748 | /* end confdefs.h. */ |
| 22749 | $ac_includes_default |
| 22750 | #include <$ac_header> |
| 22751 | _ACEOF |
| 22752 | rm -f conftest.$ac_objext |
| 22753 | if { (ac_try="$ac_compile" |
| 22754 | case "(($ac_try" in |
| 22755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22756 | *) ac_try_echo=$ac_try;; |
| 22757 | esac |
| 22758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22759 | (eval "$ac_compile") 2>conftest.er1 |
| 22760 | ac_status=$? |
| 22761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22762 | rm -f conftest.er1 |
| 22763 | cat conftest.err >&5 |
| 22764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22765 | (exit $ac_status); } && |
| 22766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22767 | { (case "(($ac_try" in |
| 22768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22769 | *) ac_try_echo=$ac_try;; |
| 22770 | esac |
| 22771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22772 | (eval "$ac_try") 2>&5 |
| 22773 | ac_status=$? |
| 22774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22775 | (exit $ac_status); }; } && |
| 22776 | { ac_try='test -s conftest.$ac_objext' |
| 22777 | { (case "(($ac_try" in |
| 22778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22779 | *) ac_try_echo=$ac_try;; |
| 22780 | esac |
| 22781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22782 | (eval "$ac_try") 2>&5 |
| 22783 | ac_status=$? |
| 22784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22785 | (exit $ac_status); }; }; then |
| 22786 | ac_header_compiler=yes |
| 22787 | else |
| 22788 | echo "$as_me: failed program was:" >&5 |
| 22789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22790 | |
| 22791 | ac_header_compiler=no |
| 22792 | fi |
| 22793 | |
| 22794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22795 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 22796 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 22797 | |
| 22798 | # Is the header present? |
| 22799 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 22800 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 22801 | cat >conftest.$ac_ext <<_ACEOF |
| 22802 | /* confdefs.h. */ |
| 22803 | _ACEOF |
| 22804 | cat confdefs.h >>conftest.$ac_ext |
| 22805 | cat >>conftest.$ac_ext <<_ACEOF |
| 22806 | /* end confdefs.h. */ |
| 22807 | #include <$ac_header> |
| 22808 | _ACEOF |
| 22809 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 22810 | case "(($ac_try" in |
| 22811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22812 | *) ac_try_echo=$ac_try;; |
| 22813 | esac |
| 22814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 22816 | ac_status=$? |
| 22817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22818 | rm -f conftest.er1 |
| 22819 | cat conftest.err >&5 |
| 22820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22821 | (exit $ac_status); } >/dev/null; then |
| 22822 | if test -s conftest.err; then |
| 22823 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 22824 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 22825 | else |
| 22826 | ac_cpp_err= |
| 22827 | fi |
| 22828 | else |
| 22829 | ac_cpp_err=yes |
| 22830 | fi |
| 22831 | if test -z "$ac_cpp_err"; then |
| 22832 | ac_header_preproc=yes |
| 22833 | else |
| 22834 | echo "$as_me: failed program was:" >&5 |
| 22835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22836 | |
| 22837 | ac_header_preproc=no |
| 22838 | fi |
| 22839 | |
| 22840 | rm -f conftest.err conftest.$ac_ext |
| 22841 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22842 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 22843 | |
| 22844 | # So? What about this header? |
| 22845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22846 | yes:no: ) |
| 22847 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22848 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22850 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 22851 | ac_header_preproc=yes |
| 22852 | ;; |
| 22853 | no:yes:* ) |
| 22854 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22855 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 22856 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22857 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22858 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22859 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22860 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22861 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22863 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 22864 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22865 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 22866 | |
| 22867 | ;; |
| 22868 | esac |
| 22869 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 22871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22873 | else |
| 22874 | eval "$as_ac_Header=\$ac_header_preproc" |
| 22875 | fi |
| 22876 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 22877 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22878 | echo "${ECHO_T}$ac_res" >&6; } |
| 22879 | |
| 22880 | fi |
| 22881 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 22882 | cat >>confdefs.h <<_ACEOF |
| 22883 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22884 | _ACEOF |
| 22885 | |
| 22886 | fi |
| 22887 | |
| 22888 | done |
| 22889 | |
| 22890 | |
| 22891 | for ac_func in create_sem |
| 22892 | do |
| 22893 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22894 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 22895 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 22896 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22898 | else |
| 22899 | cat >conftest.$ac_ext <<_ACEOF |
| 22900 | /* confdefs.h. */ |
| 22901 | _ACEOF |
| 22902 | cat confdefs.h >>conftest.$ac_ext |
| 22903 | cat >>conftest.$ac_ext <<_ACEOF |
| 22904 | /* end confdefs.h. */ |
| 22905 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 22906 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 22907 | #define $ac_func innocuous_$ac_func |
| 22908 | |
| 22909 | /* System header to define __stub macros and hopefully few prototypes, |
| 22910 | which can conflict with char $ac_func (); below. |
| 22911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 22912 | <limits.h> exists even on freestanding compilers. */ |
| 22913 | |
| 22914 | #ifdef __STDC__ |
| 22915 | # include <limits.h> |
| 22916 | #else |
| 22917 | # include <assert.h> |
| 22918 | #endif |
| 22919 | |
| 22920 | #undef $ac_func |
| 22921 | |
| 22922 | /* Override any GCC internal prototype to avoid an error. |
| 22923 | Use char because int might match the return type of a GCC |
| 22924 | builtin and then its argument prototype would still apply. */ |
| 22925 | #ifdef __cplusplus |
| 22926 | extern "C" |
| 22927 | #endif |
| 22928 | char $ac_func (); |
| 22929 | /* The GNU C library defines this for functions which it implements |
| 22930 | to always fail with ENOSYS. Some functions are actually named |
| 22931 | something starting with __ and the normal name is an alias. */ |
| 22932 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 22933 | choke me |
| 22934 | #endif |
| 22935 | |
| 22936 | int |
| 22937 | main () |
| 22938 | { |
| 22939 | return $ac_func (); |
| 22940 | ; |
| 22941 | return 0; |
| 22942 | } |
| 22943 | _ACEOF |
| 22944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 22945 | if { (ac_try="$ac_link" |
| 22946 | case "(($ac_try" in |
| 22947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22948 | *) ac_try_echo=$ac_try;; |
| 22949 | esac |
| 22950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22951 | (eval "$ac_link") 2>conftest.er1 |
| 22952 | ac_status=$? |
| 22953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22954 | rm -f conftest.er1 |
| 22955 | cat conftest.err >&5 |
| 22956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22957 | (exit $ac_status); } && |
| 22958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 22959 | { (case "(($ac_try" in |
| 22960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22961 | *) ac_try_echo=$ac_try;; |
| 22962 | esac |
| 22963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22964 | (eval "$ac_try") 2>&5 |
| 22965 | ac_status=$? |
| 22966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22967 | (exit $ac_status); }; } && |
| 22968 | { ac_try='test -s conftest$ac_exeext' |
| 22969 | { (case "(($ac_try" in |
| 22970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22971 | *) ac_try_echo=$ac_try;; |
| 22972 | esac |
| 22973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 22974 | (eval "$ac_try") 2>&5 |
| 22975 | ac_status=$? |
| 22976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22977 | (exit $ac_status); }; }; then |
| 22978 | eval "$as_ac_var=yes" |
| 22979 | else |
| 22980 | echo "$as_me: failed program was:" >&5 |
| 22981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22982 | |
| 22983 | eval "$as_ac_var=no" |
| 22984 | fi |
| 22985 | |
| 22986 | rm -f core conftest.err conftest.$ac_objext \ |
| 22987 | conftest$ac_exeext conftest.$ac_ext |
| 22988 | fi |
| 22989 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 22990 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22991 | echo "${ECHO_T}$ac_res" >&6; } |
| 22992 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 22993 | cat >>confdefs.h <<_ACEOF |
| 22994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22995 | _ACEOF |
| 22996 | |
| 22997 | fi |
| 22998 | done |
| 22999 | |
| 23000 | |
| 23001 | { echo "$as_me:$LINENO: checking whether union semun is defined in sys/sem.h" >&5 |
| 23002 | echo $ECHO_N "checking whether union semun is defined in sys/sem.h... $ECHO_C" >&6; } |
| 23003 | cat >conftest.$ac_ext <<_ACEOF |
| 23004 | /* confdefs.h. */ |
| 23005 | _ACEOF |
| 23006 | cat confdefs.h >>conftest.$ac_ext |
| 23007 | cat >>conftest.$ac_ext <<_ACEOF |
| 23008 | /* end confdefs.h. */ |
| 23009 | |
| 23010 | #include <sys/types.h> |
| 23011 | #include <sys/ipc.h> |
| 23012 | #include <sys/sem.h> |
| 23013 | |
| 23014 | int |
| 23015 | main () |
| 23016 | { |
| 23017 | |
| 23018 | union semun arg; |
| 23019 | semctl(0, 0, 0, arg); |
| 23020 | |
| 23021 | ; |
| 23022 | return 0; |
| 23023 | } |
| 23024 | _ACEOF |
| 23025 | rm -f conftest.$ac_objext |
| 23026 | if { (ac_try="$ac_compile" |
| 23027 | case "(($ac_try" in |
| 23028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23029 | *) ac_try_echo=$ac_try;; |
| 23030 | esac |
| 23031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23032 | (eval "$ac_compile") 2>conftest.er1 |
| 23033 | ac_status=$? |
| 23034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23035 | rm -f conftest.er1 |
| 23036 | cat conftest.err >&5 |
| 23037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23038 | (exit $ac_status); } && |
| 23039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 23040 | { (case "(($ac_try" in |
| 23041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23042 | *) ac_try_echo=$ac_try;; |
| 23043 | esac |
| 23044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23045 | (eval "$ac_try") 2>&5 |
| 23046 | ac_status=$? |
| 23047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23048 | (exit $ac_status); }; } && |
| 23049 | { ac_try='test -s conftest.$ac_objext' |
| 23050 | { (case "(($ac_try" in |
| 23051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23052 | *) ac_try_echo=$ac_try;; |
| 23053 | esac |
| 23054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23055 | (eval "$ac_try") 2>&5 |
| 23056 | ac_status=$? |
| 23057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23058 | (exit $ac_status); }; }; then |
| 23059 | |
| 23060 | cat >>confdefs.h <<\_ACEOF |
| 23061 | #define HAVE_UNION_SEMUN 1 |
| 23062 | _ACEOF |
| 23063 | |
| 23064 | msg=yes |
| 23065 | else |
| 23066 | echo "$as_me: failed program was:" >&5 |
| 23067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23068 | |
| 23069 | msg=no |
| 23070 | fi |
| 23071 | |
| 23072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23073 | { echo "$as_me:$LINENO: result: $msg" >&5 |
| 23074 | echo "${ECHO_T}$msg" >&6; } |
| 23075 | |
| 23076 | |
| 23077 | |
| 23078 | |
| 23079 | |
| 23080 | |
| 23081 | |
| 23082 | |
| 23083 | |
| 23084 | ac_decision_item='mutex implementation method' |
| 23085 | ac_decision_msg='FAILED' |
| 23086 | ac_decision='' |
| 23087 | |
| 23088 | ac_rc=yes |
| 23089 | for ac_spec in header:sys/file.h define:LOCK_EX; do |
| 23090 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 23091 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 23092 | case $ac_type in |
| 23093 | header ) |
| 23094 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23095 | ac_var="ac_cv_header_$ac_item" |
| 23096 | ;; |
| 23097 | file ) |
| 23098 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23099 | ac_var="ac_cv_file_$ac_item" |
| 23100 | ;; |
| 23101 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 23102 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 23103 | custom ) ac_var="$ac_item" ;; |
| 23104 | esac |
| 23105 | eval "ac_val=\$$ac_var" |
| 23106 | if test ".$ac_val" != .yes; then |
| 23107 | ac_rc=no |
| 23108 | break |
| 23109 | fi |
| 23110 | done |
| 23111 | if test ".$ac_rc" = .yes; then |
| 23112 | : |
| 23113 | ac_decision='MM_SEMT_FLOCK' |
| 23114 | ac_decision_msg='4.2BSD-style flock() on temporary file' |
| 23115 | ac_decision_MM_SEMT_FLOCK=yes |
| 23116 | ac_decision_MM_SEMT_FLOCK_msg='4.2BSD-style flock() on temporary file' |
| 23117 | |
| 23118 | else |
| 23119 | : |
| 23120 | |
| 23121 | fi |
| 23122 | |
| 23123 | ac_rc=yes |
| 23124 | for ac_spec in header:sys/ipc.h header:sys/sem.h header:sys/file.h func:semget func:semctl; do |
| 23125 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 23126 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 23127 | case $ac_type in |
| 23128 | header ) |
| 23129 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23130 | ac_var="ac_cv_header_$ac_item" |
| 23131 | ;; |
| 23132 | file ) |
| 23133 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23134 | ac_var="ac_cv_file_$ac_item" |
| 23135 | ;; |
| 23136 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 23137 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 23138 | custom ) ac_var="$ac_item" ;; |
| 23139 | esac |
| 23140 | eval "ac_val=\$$ac_var" |
| 23141 | if test ".$ac_val" != .yes; then |
| 23142 | ac_rc=no |
| 23143 | break |
| 23144 | fi |
| 23145 | done |
| 23146 | if test ".$ac_rc" = .yes; then |
| 23147 | : |
| 23148 | ac_decision='MM_SEMT_IPCSEM' |
| 23149 | ac_decision_msg='SysV IPC semget()' |
| 23150 | ac_decision_MM_SEMT_IPCSEM=yes |
| 23151 | ac_decision_MM_SEMT_IPCSEM_msg='SysV IPC semget()' |
| 23152 | |
| 23153 | else |
| 23154 | : |
| 23155 | |
| 23156 | fi |
| 23157 | |
| 23158 | ac_rc=yes |
| 23159 | for ac_spec in header:fcntl.h define:F_SETLK; do |
| 23160 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 23161 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 23162 | case $ac_type in |
| 23163 | header ) |
| 23164 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23165 | ac_var="ac_cv_header_$ac_item" |
| 23166 | ;; |
| 23167 | file ) |
| 23168 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23169 | ac_var="ac_cv_file_$ac_item" |
| 23170 | ;; |
| 23171 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 23172 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 23173 | custom ) ac_var="$ac_item" ;; |
| 23174 | esac |
| 23175 | eval "ac_val=\$$ac_var" |
| 23176 | if test ".$ac_val" != .yes; then |
| 23177 | ac_rc=no |
| 23178 | break |
| 23179 | fi |
| 23180 | done |
| 23181 | if test ".$ac_rc" = .yes; then |
| 23182 | : |
| 23183 | ac_decision='MM_SEMT_FCNTL' |
| 23184 | ac_decision_msg='SVR4-style fcntl() on temporary file' |
| 23185 | ac_decision_MM_SEMT_FCNTL=yes |
| 23186 | ac_decision_MM_SEMT_FCNTL_msg='SVR4-style fcntl() on temporary file' |
| 23187 | |
| 23188 | else |
| 23189 | : |
| 23190 | |
| 23191 | fi |
| 23192 | |
| 23193 | ac_rc=yes |
| 23194 | for ac_spec in header:kernel/OS.h func:create_sem; do |
| 23195 | ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` |
| 23196 | ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` |
| 23197 | case $ac_type in |
| 23198 | header ) |
| 23199 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23200 | ac_var="ac_cv_header_$ac_item" |
| 23201 | ;; |
| 23202 | file ) |
| 23203 | ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` |
| 23204 | ac_var="ac_cv_file_$ac_item" |
| 23205 | ;; |
| 23206 | func ) ac_var="ac_cv_func_$ac_item" ;; |
| 23207 | define ) ac_var="ac_cv_define_$ac_item" ;; |
| 23208 | custom ) ac_var="$ac_item" ;; |
| 23209 | esac |
| 23210 | eval "ac_val=\$$ac_var" |
| 23211 | if test ".$ac_val" != .yes; then |
| 23212 | ac_rc=no |
| 23213 | break |
| 23214 | fi |
| 23215 | done |
| 23216 | if test ".$ac_rc" = .yes; then |
| 23217 | : |
| 23218 | ac_decision='MM_SEMT_BEOS' |
| 23219 | ac_decision_msg='BeOS semaphores' |
| 23220 | ac_decision_MM_SEMT_BEOS=yes |
| 23221 | ac_decision_MM_SEMT_BEOS_msg='BeOS semaphores' |
| 23222 | |
| 23223 | else |
| 23224 | : |
| 23225 | |
| 23226 | fi |
| 23227 | |
| 23228 | |
| 23229 | # Check whether --with-sem was given. |
| 23230 | if test "${with_sem+set}" = set; then |
| 23231 | withval=$with_sem; ac_decision="MM_SEMT_$withval" |
| 23232 | eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" |
| 23233 | |
| 23234 | |
| 23235 | fi |
| 23236 | if test ".$ac_decision" = .; then |
| 23237 | echo "$0:Error: decision on $ac_decision_item failed" 1>&2 |
| 23238 | exit 1 |
| 23239 | else |
| 23240 | if test ".$ac_decision_msg" = .; then |
| 23241 | ac_decision_msg="$ac_decision" |
| 23242 | fi |
| 23243 | { echo "$as_me:$LINENO: result: decision on $ac_decision_item... $ac_decision_msg" >&5 |
| 23244 | echo "${ECHO_T}decision on $ac_decision_item... $ac_decision_msg" >&6; } |
| 23245 | fi |
| 23246 | |
| 23247 | cat >>confdefs.h <<_ACEOF |
| 23248 | #define $ac_decision 1 |
| 23249 | _ACEOF |
| 23250 | |
| 23251 | |
| 23252 | |
| 23253 | { echo "$as_me:$LINENO: result: " >&5 |
| 23254 | echo "${ECHO_T}" >&6; } |
| 23255 | { echo "$as_me:$LINENO: result: ${T_MD}Output Substitution:${T_ME}" >&5 |
| 23256 | echo "${ECHO_T}${T_MD}Output Substitution:${T_ME}" >&6; } |
| 23257 | |
| 23258 | |
| 23259 | ac_config_headers="$ac_config_headers config.h" |
| 23260 | |
| 23261 | ac_config_files="$ac_config_files Makefile mm-config" |
| 23262 | |
| 23263 | ac_config_commands="$ac_config_commands adjustment" |
| 23264 | |
| 23265 | cat >confcache <<\_ACEOF |
| 23266 | # This file is a shell script that caches the results of configure |
| 23267 | # tests run on this system so they can be shared between configure |
| 23268 | # scripts and configure runs, see configure's option --config-cache. |
| 23269 | # It is not useful on other systems. If it contains results you don't |
| 23270 | # want to keep, you may remove or edit it. |
| 23271 | # |
| 23272 | # config.status only pays attention to the cache file if you give it |
| 23273 | # the --recheck option to rerun configure. |
| 23274 | # |
| 23275 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 23276 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 23277 | # following values. |
| 23278 | |
| 23279 | _ACEOF |
| 23280 | |
| 23281 | # The following way of writing the cache mishandles newlines in values, |
| 23282 | # but we know of no workaround that is simple, portable, and efficient. |
| 23283 | # So, we kill variables containing newlines. |
| 23284 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 23285 | # and sets the high bit in the cache file unless we assign to the vars. |
| 23286 | ( |
| 23287 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 23288 | eval ac_val=\$$ac_var |
| 23289 | case $ac_val in #( |
| 23290 | *${as_nl}*) |
| 23291 | case $ac_var in #( |
| 23292 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 23293 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 23294 | esac |
| 23295 | case $ac_var in #( |
| 23296 | _ | IFS | as_nl) ;; #( |
| 23297 | *) $as_unset $ac_var ;; |
| 23298 | esac ;; |
| 23299 | esac |
| 23300 | done |
| 23301 | |
| 23302 | (set) 2>&1 | |
| 23303 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 23304 | *${as_nl}ac_space=\ *) |
| 23305 | # `set' does not quote correctly, so add quotes (double-quote |
| 23306 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 23307 | sed -n \ |
| 23308 | "s/'/'\\\\''/g; |
| 23309 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 23310 | ;; #( |
| 23311 | *) |
| 23312 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 23313 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 23314 | ;; |
| 23315 | esac | |
| 23316 | sort |
| 23317 | ) | |
| 23318 | sed ' |
| 23319 | /^ac_cv_env_/b end |
| 23320 | t clear |
| 23321 | :clear |
| 23322 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 23323 | t end |
| 23324 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 23325 | :end' >>confcache |
| 23326 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 23327 | if test -w "$cache_file"; then |
| 23328 | test "x$cache_file" != "x/dev/null" && |
| 23329 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 23330 | echo "$as_me: updating cache $cache_file" >&6;} |
| 23331 | cat confcache >$cache_file |
| 23332 | else |
| 23333 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 23334 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 23335 | fi |
| 23336 | fi |
| 23337 | rm -f confcache |
| 23338 | |
| 23339 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 23340 | # Let make expand exec_prefix. |
| 23341 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 23342 | |
| 23343 | DEFS=-DHAVE_CONFIG_H |
| 23344 | |
| 23345 | ac_libobjs= |
| 23346 | ac_ltlibobjs= |
| 23347 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 23348 | # 1. Remove the extension, and $U if already installed. |
| 23349 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 23350 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 23351 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 23352 | # will be set to the directory where LIBOBJS objects are built. |
| 23353 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 23354 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
| 23355 | done |
| 23356 | LIBOBJS=$ac_libobjs |
| 23357 | |
| 23358 | LTLIBOBJS=$ac_ltlibobjs |
| 23359 | |
| 23360 | |
| 23361 | |
| 23362 | : ${CONFIG_STATUS=./config.status} |
| 23363 | ac_clean_files_save=$ac_clean_files |
| 23364 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 23365 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 23366 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 23367 | cat >$CONFIG_STATUS <<_ACEOF |
| 23368 | #! $SHELL |
| 23369 | # Generated by $as_me. |
| 23370 | # Run this file to recreate the current configuration. |
| 23371 | # Compiler output produced by configure, useful for debugging |
| 23372 | # configure, is in config.log if it exists. |
| 23373 | |
| 23374 | debug=false |
| 23375 | ac_cs_recheck=false |
| 23376 | ac_cs_silent=false |
| 23377 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 23378 | _ACEOF |
| 23379 | |
| 23380 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23381 | ## --------------------- ## |
| 23382 | ## M4sh Initialization. ## |
| 23383 | ## --------------------- ## |
| 23384 | |
| 23385 | # Be Bourne compatible |
| 23386 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23387 | emulate sh |
| 23388 | NULLCMD=: |
| 23389 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23390 | # is contrary to our usage. Disable this feature. |
| 23391 | alias -g '${1+"$@"}'='"$@"' |
| 23392 | setopt NO_GLOB_SUBST |
| 23393 | else |
| 23394 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 23395 | fi |
| 23396 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 23397 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23398 | |
| 23399 | |
| 23400 | # PATH needs CR |
| 23401 | # Avoid depending upon Character Ranges. |
| 23402 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 23403 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 23404 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 23405 | as_cr_digits='0123456789' |
| 23406 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 23407 | |
| 23408 | # The user is always right. |
| 23409 | if test "${PATH_SEPARATOR+set}" != set; then |
| 23410 | echo "#! /bin/sh" >conf$$.sh |
| 23411 | echo "exit 0" >>conf$$.sh |
| 23412 | chmod +x conf$$.sh |
| 23413 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 23414 | PATH_SEPARATOR=';' |
| 23415 | else |
| 23416 | PATH_SEPARATOR=: |
| 23417 | fi |
| 23418 | rm -f conf$$.sh |
| 23419 | fi |
| 23420 | |
| 23421 | # Support unset when possible. |
| 23422 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 23423 | as_unset=unset |
| 23424 | else |
| 23425 | as_unset=false |
| 23426 | fi |
| 23427 | |
| 23428 | |
| 23429 | # IFS |
| 23430 | # We need space, tab and new line, in precisely that order. Quoting is |
| 23431 | # there to prevent editors from complaining about space-tab. |
| 23432 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 23433 | # splitting by setting IFS to empty value.) |
| 23434 | as_nl=' |
| 23435 | ' |
| 23436 | IFS=" "" $as_nl" |
| 23437 | |
| 23438 | # Find who we are. Look in the path if we contain no directory separator. |
| 23439 | case $0 in |
| 23440 | *[\\/]* ) as_myself=$0 ;; |
| 23441 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23442 | for as_dir in $PATH |
| 23443 | do |
| 23444 | IFS=$as_save_IFS |
| 23445 | test -z "$as_dir" && as_dir=. |
| 23446 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 23447 | done |
| 23448 | IFS=$as_save_IFS |
| 23449 | |
| 23450 | ;; |
| 23451 | esac |
| 23452 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 23453 | # in which case we are not to be found in the path. |
| 23454 | if test "x$as_myself" = x; then |
| 23455 | as_myself=$0 |
| 23456 | fi |
| 23457 | if test ! -f "$as_myself"; then |
| 23458 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 23459 | { (exit 1); exit 1; } |
| 23460 | fi |
| 23461 | |
| 23462 | # Work around bugs in pre-3.0 UWIN ksh. |
| 23463 | for as_var in ENV MAIL MAILPATH |
| 23464 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23465 | done |
| 23466 | PS1='$ ' |
| 23467 | PS2='> ' |
| 23468 | PS4='+ ' |
| 23469 | |
| 23470 | # NLS nuisances. |
| 23471 | for as_var in \ |
| 23472 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 23473 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 23474 | LC_TELEPHONE LC_TIME |
| 23475 | do |
| 23476 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 23477 | eval $as_var=C; export $as_var |
| 23478 | else |
| 23479 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 23480 | fi |
| 23481 | done |
| 23482 | |
| 23483 | # Required to use basename. |
| 23484 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23485 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23486 | as_expr=expr |
| 23487 | else |
| 23488 | as_expr=false |
| 23489 | fi |
| 23490 | |
| 23491 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 23492 | as_basename=basename |
| 23493 | else |
| 23494 | as_basename=false |
| 23495 | fi |
| 23496 | |
| 23497 | |
| 23498 | # Name of the executable. |
| 23499 | as_me=`$as_basename -- "$0" || |
| 23500 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 23501 | X"$0" : 'X\(//\)$' \| \ |
| 23502 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 23503 | echo X/"$0" | |
| 23504 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 23505 | s//\1/ |
| 23506 | q |
| 23507 | } |
| 23508 | /^X\/\(\/\/\)$/{ |
| 23509 | s//\1/ |
| 23510 | q |
| 23511 | } |
| 23512 | /^X\/\(\/\).*/{ |
| 23513 | s//\1/ |
| 23514 | q |
| 23515 | } |
| 23516 | s/.*/./; q'` |
| 23517 | |
| 23518 | # CDPATH. |
| 23519 | $as_unset CDPATH |
| 23520 | |
| 23521 | |
| 23522 | |
| 23523 | as_lineno_1=$LINENO |
| 23524 | as_lineno_2=$LINENO |
| 23525 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 23526 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 23527 | |
| 23528 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 23529 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 23530 | # line-number line after each line using $LINENO; the second 'sed' |
| 23531 | # does the real work. The second script uses 'N' to pair each |
| 23532 | # line-number line with the line containing $LINENO, and appends |
| 23533 | # trailing '-' during substitution so that $LINENO is not a special |
| 23534 | # case at line end. |
| 23535 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 23536 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 23537 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 23538 | sed -n ' |
| 23539 | p |
| 23540 | /[$]LINENO/= |
| 23541 | ' <$as_myself | |
| 23542 | sed ' |
| 23543 | s/[$]LINENO.*/&-/ |
| 23544 | t lineno |
| 23545 | b |
| 23546 | :lineno |
| 23547 | N |
| 23548 | :loop |
| 23549 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 23550 | t loop |
| 23551 | s/-\n.*// |
| 23552 | ' >$as_me.lineno && |
| 23553 | chmod +x "$as_me.lineno" || |
| 23554 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 23555 | { (exit 1); exit 1; }; } |
| 23556 | |
| 23557 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 23558 | # (the dirname of $[0] is not the place where we might find the |
| 23559 | # original and so on. Autoconf is especially sensitive to this). |
| 23560 | . "./$as_me.lineno" |
| 23561 | # Exit status is that of the last command. |
| 23562 | exit |
| 23563 | } |
| 23564 | |
| 23565 | |
| 23566 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 23567 | as_dirname=dirname |
| 23568 | else |
| 23569 | as_dirname=false |
| 23570 | fi |
| 23571 | |
| 23572 | ECHO_C= ECHO_N= ECHO_T= |
| 23573 | case `echo -n x` in |
| 23574 | -n*) |
| 23575 | case `echo 'x\c'` in |
| 23576 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 23577 | *) ECHO_C='\c';; |
| 23578 | esac;; |
| 23579 | *) |
| 23580 | ECHO_N='-n';; |
| 23581 | esac |
| 23582 | |
| 23583 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 23584 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 23585 | as_expr=expr |
| 23586 | else |
| 23587 | as_expr=false |
| 23588 | fi |
| 23589 | |
| 23590 | rm -f conf$$ conf$$.exe conf$$.file |
| 23591 | if test -d conf$$.dir; then |
| 23592 | rm -f conf$$.dir/conf$$.file |
| 23593 | else |
| 23594 | rm -f conf$$.dir |
| 23595 | mkdir conf$$.dir |
| 23596 | fi |
| 23597 | echo >conf$$.file |
| 23598 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 23599 | as_ln_s='ln -s' |
| 23600 | # ... but there are two gotchas: |
| 23601 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 23602 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 23603 | # In both cases, we have to default to `cp -p'. |
| 23604 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 23605 | as_ln_s='cp -p' |
| 23606 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 23607 | as_ln_s=ln |
| 23608 | else |
| 23609 | as_ln_s='cp -p' |
| 23610 | fi |
| 23611 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 23612 | rmdir conf$$.dir 2>/dev/null |
| 23613 | |
| 23614 | if mkdir -p . 2>/dev/null; then |
| 23615 | as_mkdir_p=: |
| 23616 | else |
| 23617 | test -d ./-p && rmdir ./-p |
| 23618 | as_mkdir_p=false |
| 23619 | fi |
| 23620 | |
| 23621 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 23622 | # systems may use methods other than mode bits to determine executability. |
| 23623 | cat >conf$$.file <<_ASEOF |
| 23624 | #! /bin/sh |
| 23625 | exit 0 |
| 23626 | _ASEOF |
| 23627 | chmod +x conf$$.file |
| 23628 | if test -x conf$$.file >/dev/null 2>&1; then |
| 23629 | as_executable_p="test -x" |
| 23630 | else |
| 23631 | as_executable_p=: |
| 23632 | fi |
| 23633 | rm -f conf$$.file |
| 23634 | |
| 23635 | # Sed expression to map a string onto a valid CPP name. |
| 23636 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 23637 | |
| 23638 | # Sed expression to map a string onto a valid variable name. |
| 23639 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 23640 | |
| 23641 | |
| 23642 | exec 6>&1 |
| 23643 | |
| 23644 | # Save the log message, to keep $[0] and so on meaningful, and to |
| 23645 | # report actual input values of CONFIG_FILES etc. instead of their |
| 23646 | # values after options handling. |
| 23647 | ac_log=" |
| 23648 | This file was extended by $as_me, which was |
| 23649 | generated by GNU Autoconf 2.60 (OpenPKG-CURRENT). Invocation command line was |
| 23650 | |
| 23651 | CONFIG_FILES = $CONFIG_FILES |
| 23652 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 23653 | CONFIG_LINKS = $CONFIG_LINKS |
| 23654 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 23655 | $ $0 $@ |
| 23656 | |
| 23657 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 23658 | " |
| 23659 | |
| 23660 | _ACEOF |
| 23661 | |
| 23662 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23663 | # Files that config.status was made for. |
| 23664 | config_files="$ac_config_files" |
| 23665 | config_headers="$ac_config_headers" |
| 23666 | config_commands="$ac_config_commands" |
| 23667 | |
| 23668 | _ACEOF |
| 23669 | |
| 23670 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23671 | ac_cs_usage="\ |
| 23672 | \`$as_me' instantiates files from templates according to the |
| 23673 | current configuration. |
| 23674 | |
| 23675 | Usage: $0 [OPTIONS] [FILE]... |
| 23676 | |
| 23677 | -h, --help print this help, then exit |
| 23678 | -V, --version print version number, then exit |
| 23679 | -q, --quiet do not print progress messages |
| 23680 | -d, --debug don't remove temporary files |
| 23681 | --recheck update $as_me by reconfiguring in the same conditions |
| 23682 | --file=FILE[:TEMPLATE] |
| 23683 | instantiate the configuration file FILE |
| 23684 | --header=FILE[:TEMPLATE] |
| 23685 | instantiate the configuration header FILE |
| 23686 | |
| 23687 | Configuration files: |
| 23688 | $config_files |
| 23689 | |
| 23690 | Configuration headers: |
| 23691 | $config_headers |
| 23692 | |
| 23693 | Configuration commands: |
| 23694 | $config_commands |
| 23695 | |
| 23696 | Report bugs to <[email protected]>." |
| 23697 | |
| 23698 | _ACEOF |
| 23699 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23700 | ac_cs_version="\\ |
| 23701 | config.status |
| 23702 | configured by $0, generated by GNU Autoconf 2.60 (OpenPKG-CURRENT), |
| 23703 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 23704 | |
| 23705 | Copyright (C) 2006 Free Software Foundation, Inc. |
| 23706 | This config.status script is free software; the Free Software Foundation |
| 23707 | gives unlimited permission to copy, distribute and modify it." |
| 23708 | |
| 23709 | ac_pwd='$ac_pwd' |
| 23710 | srcdir='$srcdir' |
| 23711 | _ACEOF |
| 23712 | |
| 23713 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23714 | # If no file are specified by the user, then we need to provide default |
| 23715 | # value. By we need to know if files were specified by the user. |
| 23716 | ac_need_defaults=: |
| 23717 | while test $# != 0 |
| 23718 | do |
| 23719 | case $1 in |
| 23720 | --*=*) |
| 23721 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 23722 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 23723 | ac_shift=: |
| 23724 | ;; |
| 23725 | *) |
| 23726 | ac_option=$1 |
| 23727 | ac_optarg=$2 |
| 23728 | ac_shift=shift |
| 23729 | ;; |
| 23730 | esac |
| 23731 | |
| 23732 | case $ac_option in |
| 23733 | # Handling of the options. |
| 23734 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 23735 | ac_cs_recheck=: ;; |
| 23736 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 23737 | echo "$ac_cs_version"; exit ;; |
| 23738 | --debug | --debu | --deb | --de | --d | -d ) |
| 23739 | debug=: ;; |
| 23740 | --file | --fil | --fi | --f ) |
| 23741 | $ac_shift |
| 23742 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 23743 | ac_need_defaults=false;; |
| 23744 | --header | --heade | --head | --hea ) |
| 23745 | $ac_shift |
| 23746 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 23747 | ac_need_defaults=false;; |
| 23748 | --he | --h) |
| 23749 | # Conflict between --help and --header |
| 23750 | { echo "$as_me: error: ambiguous option: $1 |
| 23751 | Try \`$0 --help' for more information." >&2 |
| 23752 | { (exit 1); exit 1; }; };; |
| 23753 | --help | --hel | -h ) |
| 23754 | echo "$ac_cs_usage"; exit ;; |
| 23755 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 23756 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 23757 | ac_cs_silent=: ;; |
| 23758 | |
| 23759 | # This is an error. |
| 23760 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 23761 | Try \`$0 --help' for more information." >&2 |
| 23762 | { (exit 1); exit 1; }; } ;; |
| 23763 | |
| 23764 | *) ac_config_targets="$ac_config_targets $1" |
| 23765 | ac_need_defaults=false ;; |
| 23766 | |
| 23767 | esac |
| 23768 | shift |
| 23769 | done |
| 23770 | |
| 23771 | ac_configure_extra_args= |
| 23772 | |
| 23773 | if $ac_cs_silent; then |
| 23774 | exec 6>/dev/null |
| 23775 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 23776 | fi |
| 23777 | |
| 23778 | _ACEOF |
| 23779 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23780 | if \$ac_cs_recheck; then |
| 23781 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 23782 | CONFIG_SHELL=$SHELL |
| 23783 | export CONFIG_SHELL |
| 23784 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 23785 | fi |
| 23786 | |
| 23787 | _ACEOF |
| 23788 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23789 | exec 5>>config.log |
| 23790 | { |
| 23791 | echo |
| 23792 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 23793 | ## Running $as_me. ## |
| 23794 | _ASBOX |
| 23795 | echo "$ac_log" |
| 23796 | } >&5 |
| 23797 | |
| 23798 | _ACEOF |
| 23799 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23800 | _ACEOF |
| 23801 | |
| 23802 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 23803 | |
| 23804 | # Handling of arguments. |
| 23805 | for ac_config_target in $ac_config_targets |
| 23806 | do |
| 23807 | case $ac_config_target in |
| 23808 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 23809 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 23810 | "mm-config") CONFIG_FILES="$CONFIG_FILES mm-config" ;; |
| 23811 | "adjustment") CONFIG_COMMANDS="$CONFIG_COMMANDS adjustment" ;; |
| 23812 | |
| 23813 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 23814 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 23815 | { (exit 1); exit 1; }; };; |
| 23816 | esac |
| 23817 | done |
| 23818 | |
| 23819 | |
| 23820 | # If the user did not use the arguments to specify the items to instantiate, |
| 23821 | # then the envvar interface is used. Set only those that are not. |
| 23822 | # We use the long form for the default assignment because of an extremely |
| 23823 | # bizarre bug on SunOS 4.1.3. |
| 23824 | if $ac_need_defaults; then |
| 23825 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 23826 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 23827 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 23828 | fi |
| 23829 | |
| 23830 | # Have a temporary directory for convenience. Make it in the build tree |
| 23831 | # simply because there is no reason against having it here, and in addition, |
| 23832 | # creating and moving files from /tmp can sometimes cause problems. |
| 23833 | # Hook for its removal unless debugging. |
| 23834 | # Note that there is a small window in which the directory will not be cleaned: |
| 23835 | # after its creation but before its name has been assigned to `$tmp'. |
| 23836 | $debug || |
| 23837 | { |
| 23838 | tmp= |
| 23839 | trap 'exit_status=$? |
| 23840 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 23841 | ' 0 |
| 23842 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 23843 | } |
| 23844 | # Create a (secure) tmp directory for tmp files. |
| 23845 | |
| 23846 | { |
| 23847 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 23848 | test -n "$tmp" && test -d "$tmp" |
| 23849 | } || |
| 23850 | { |
| 23851 | tmp=./conf$$-$RANDOM |
| 23852 | (umask 077 && mkdir "$tmp") |
| 23853 | } || |
| 23854 | { |
| 23855 | echo "$me: cannot create a temporary directory in ." >&2 |
| 23856 | { (exit 1); exit 1; } |
| 23857 | } |
| 23858 | |
| 23859 | # |
| 23860 | # Set up the sed scripts for CONFIG_FILES section. |
| 23861 | # |
| 23862 | |
| 23863 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 23864 | # This happens for instance when ./config.status config.h |
| 23865 | if test -n "$CONFIG_FILES"; then |
| 23866 | |
| 23867 | _ACEOF |
| 23868 | |
| 23869 | |
| 23870 | |
| 23871 | ac_delim='%!_!# ' |
| 23872 | for ac_last_try in false false false false false :; do |
| 23873 | cat >conf$$subs.sed <<_ACEOF |
| 23874 | SHELL!$SHELL$ac_delim |
| 23875 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 23876 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 23877 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 23878 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 23879 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 23880 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 23881 | exec_prefix!$exec_prefix$ac_delim |
| 23882 | prefix!$prefix$ac_delim |
| 23883 | program_transform_name!$program_transform_name$ac_delim |
| 23884 | bindir!$bindir$ac_delim |
| 23885 | sbindir!$sbindir$ac_delim |
| 23886 | libexecdir!$libexecdir$ac_delim |
| 23887 | datarootdir!$datarootdir$ac_delim |
| 23888 | datadir!$datadir$ac_delim |
| 23889 | sysconfdir!$sysconfdir$ac_delim |
| 23890 | sharedstatedir!$sharedstatedir$ac_delim |
| 23891 | localstatedir!$localstatedir$ac_delim |
| 23892 | includedir!$includedir$ac_delim |
| 23893 | oldincludedir!$oldincludedir$ac_delim |
| 23894 | docdir!$docdir$ac_delim |
| 23895 | infodir!$infodir$ac_delim |
| 23896 | htmldir!$htmldir$ac_delim |
| 23897 | dvidir!$dvidir$ac_delim |
| 23898 | pdfdir!$pdfdir$ac_delim |
| 23899 | psdir!$psdir$ac_delim |
| 23900 | libdir!$libdir$ac_delim |
| 23901 | localedir!$localedir$ac_delim |
| 23902 | mandir!$mandir$ac_delim |
| 23903 | DEFS!$DEFS$ac_delim |
| 23904 | ECHO_C!$ECHO_C$ac_delim |
| 23905 | ECHO_N!$ECHO_N$ac_delim |
| 23906 | ECHO_T!$ECHO_T$ac_delim |
| 23907 | LIBS!$LIBS$ac_delim |
| 23908 | build_alias!$build_alias$ac_delim |
| 23909 | host_alias!$host_alias$ac_delim |
| 23910 | target_alias!$target_alias$ac_delim |
| 23911 | SHTOOL!$SHTOOL$ac_delim |
| 23912 | MM_VERSION_STR!$MM_VERSION_STR$ac_delim |
| 23913 | CC!$CC$ac_delim |
| 23914 | CFLAGS!$CFLAGS$ac_delim |
| 23915 | LDFLAGS!$LDFLAGS$ac_delim |
| 23916 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 23917 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 23918 | EXEEXT!$EXEEXT$ac_delim |
| 23919 | OBJEXT!$OBJEXT$ac_delim |
| 23920 | CPP!$CPP$ac_delim |
| 23921 | SET_MAKE!$SET_MAKE$ac_delim |
| 23922 | build!$build$ac_delim |
| 23923 | build_cpu!$build_cpu$ac_delim |
| 23924 | build_vendor!$build_vendor$ac_delim |
| 23925 | build_os!$build_os$ac_delim |
| 23926 | host!$host$ac_delim |
| 23927 | host_cpu!$host_cpu$ac_delim |
| 23928 | host_vendor!$host_vendor$ac_delim |
| 23929 | host_os!$host_os$ac_delim |
| 23930 | GREP!$GREP$ac_delim |
| 23931 | EGREP!$EGREP$ac_delim |
| 23932 | LN_S!$LN_S$ac_delim |
| 23933 | ECHO!$ECHO$ac_delim |
| 23934 | AR!$AR$ac_delim |
| 23935 | RANLIB!$RANLIB$ac_delim |
| 23936 | STRIP!$STRIP$ac_delim |
| 23937 | CXX!$CXX$ac_delim |
| 23938 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 23939 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 23940 | CXXCPP!$CXXCPP$ac_delim |
| 23941 | F77!$F77$ac_delim |
| 23942 | FFLAGS!$FFLAGS$ac_delim |
| 23943 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 23944 | LIBTOOL!$LIBTOOL$ac_delim |
| 23945 | LIBOBJS!$LIBOBJS$ac_delim |
| 23946 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 23947 | _ACEOF |
| 23948 | |
| 23949 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then |
| 23950 | break |
| 23951 | elif $ac_last_try; then |
| 23952 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 23953 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 23954 | { (exit 1); exit 1; }; } |
| 23955 | else |
| 23956 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 23957 | fi |
| 23958 | done |
| 23959 | |
| 23960 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 23961 | if test -n "$ac_eof"; then |
| 23962 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 23963 | ac_eof=`expr $ac_eof + 1` |
| 23964 | fi |
| 23965 | |
| 23966 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23967 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 23968 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 23969 | _ACEOF |
| 23970 | sed ' |
| 23971 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 23972 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 23973 | :n |
| 23974 | t n |
| 23975 | s/'"$ac_delim"'$/,g/; t |
| 23976 | s/$/\\/; p |
| 23977 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 23978 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 23979 | rm -f conf$$subs.sed |
| 23980 | cat >>$CONFIG_STATUS <<_ACEOF |
| 23981 | :end |
| 23982 | s/|#_!!_#|//g |
| 23983 | CEOF$ac_eof |
| 23984 | _ACEOF |
| 23985 | |
| 23986 | |
| 23987 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 23988 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 23989 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 23990 | # (actually we leave an empty line to preserve line numbers). |
| 23991 | if test "x$srcdir" = x.; then |
| 23992 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 23993 | s/:*\$(srcdir):*/:/ |
| 23994 | s/:*\${srcdir}:*/:/ |
| 23995 | s/:*@srcdir@:*/:/ |
| 23996 | s/^\([^=]*=[ ]*\):*/\1/ |
| 23997 | s/:*$// |
| 23998 | s/^[^=]*=[ ]*$// |
| 23999 | }' |
| 24000 | fi |
| 24001 | |
| 24002 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24003 | fi # test -n "$CONFIG_FILES" |
| 24004 | |
| 24005 | |
| 24006 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 24007 | do |
| 24008 | case $ac_tag in |
| 24009 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 24010 | esac |
| 24011 | case $ac_mode$ac_tag in |
| 24012 | :[FHL]*:*);; |
| 24013 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 24014 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 24015 | { (exit 1); exit 1; }; };; |
| 24016 | :[FH]-) ac_tag=-:-;; |
| 24017 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 24018 | esac |
| 24019 | ac_save_IFS=$IFS |
| 24020 | IFS=: |
| 24021 | set x $ac_tag |
| 24022 | IFS=$ac_save_IFS |
| 24023 | shift |
| 24024 | ac_file=$1 |
| 24025 | shift |
| 24026 | |
| 24027 | case $ac_mode in |
| 24028 | :L) ac_source=$1;; |
| 24029 | :[FH]) |
| 24030 | ac_file_inputs= |
| 24031 | for ac_f |
| 24032 | do |
| 24033 | case $ac_f in |
| 24034 | -) ac_f="$tmp/stdin";; |
| 24035 | *) # Look for the file first in the build tree, then in the source tree |
| 24036 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 24037 | # because $ac_f cannot contain `:'. |
| 24038 | test -f "$ac_f" || |
| 24039 | case $ac_f in |
| 24040 | [\\/$]*) false;; |
| 24041 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 24042 | esac || |
| 24043 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 24044 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 24045 | { (exit 1); exit 1; }; };; |
| 24046 | esac |
| 24047 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 24048 | done |
| 24049 | |
| 24050 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 24051 | # use $as_me), people would be surprised to read: |
| 24052 | # /* config.h. Generated by config.status. */ |
| 24053 | configure_input="Generated from "`IFS=: |
| 24054 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 24055 | if test x"$ac_file" != x-; then |
| 24056 | configure_input="$ac_file. $configure_input" |
| 24057 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 24058 | echo "$as_me: creating $ac_file" >&6;} |
| 24059 | fi |
| 24060 | |
| 24061 | case $ac_tag in |
| 24062 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 24063 | esac |
| 24064 | ;; |
| 24065 | esac |
| 24066 | |
| 24067 | ac_dir=`$as_dirname -- "$ac_file" || |
| 24068 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24069 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 24070 | X"$ac_file" : 'X\(//\)$' \| \ |
| 24071 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 24072 | echo X"$ac_file" | |
| 24073 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24074 | s//\1/ |
| 24075 | q |
| 24076 | } |
| 24077 | /^X\(\/\/\)[^/].*/{ |
| 24078 | s//\1/ |
| 24079 | q |
| 24080 | } |
| 24081 | /^X\(\/\/\)$/{ |
| 24082 | s//\1/ |
| 24083 | q |
| 24084 | } |
| 24085 | /^X\(\/\).*/{ |
| 24086 | s//\1/ |
| 24087 | q |
| 24088 | } |
| 24089 | s/.*/./; q'` |
| 24090 | { as_dir="$ac_dir" |
| 24091 | case $as_dir in #( |
| 24092 | -*) as_dir=./$as_dir;; |
| 24093 | esac |
| 24094 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 24095 | as_dirs= |
| 24096 | while :; do |
| 24097 | case $as_dir in #( |
| 24098 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 24099 | *) as_qdir=$as_dir;; |
| 24100 | esac |
| 24101 | as_dirs="'$as_qdir' $as_dirs" |
| 24102 | as_dir=`$as_dirname -- "$as_dir" || |
| 24103 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 24104 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 24105 | X"$as_dir" : 'X\(//\)$' \| \ |
| 24106 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 24107 | echo X"$as_dir" | |
| 24108 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 24109 | s//\1/ |
| 24110 | q |
| 24111 | } |
| 24112 | /^X\(\/\/\)[^/].*/{ |
| 24113 | s//\1/ |
| 24114 | q |
| 24115 | } |
| 24116 | /^X\(\/\/\)$/{ |
| 24117 | s//\1/ |
| 24118 | q |
| 24119 | } |
| 24120 | /^X\(\/\).*/{ |
| 24121 | s//\1/ |
| 24122 | q |
| 24123 | } |
| 24124 | s/.*/./; q'` |
| 24125 | test -d "$as_dir" && break |
| 24126 | done |
| 24127 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 24128 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 24129 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 24130 | { (exit 1); exit 1; }; }; } |
| 24131 | ac_builddir=. |
| 24132 | |
| 24133 | case "$ac_dir" in |
| 24134 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24135 | *) |
| 24136 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 24137 | # A ".." for each directory in $ac_dir_suffix. |
| 24138 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 24139 | case $ac_top_builddir_sub in |
| 24140 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 24141 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 24142 | esac ;; |
| 24143 | esac |
| 24144 | ac_abs_top_builddir=$ac_pwd |
| 24145 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 24146 | # for backward compatibility: |
| 24147 | ac_top_builddir=$ac_top_build_prefix |
| 24148 | |
| 24149 | case $srcdir in |
| 24150 | .) # We are building in place. |
| 24151 | ac_srcdir=. |
| 24152 | ac_top_srcdir=$ac_top_builddir_sub |
| 24153 | ac_abs_top_srcdir=$ac_pwd ;; |
| 24154 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 24155 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 24156 | ac_top_srcdir=$srcdir |
| 24157 | ac_abs_top_srcdir=$srcdir ;; |
| 24158 | *) # Relative name. |
| 24159 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 24160 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 24161 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 24162 | esac |
| 24163 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 24164 | |
| 24165 | |
| 24166 | case $ac_mode in |
| 24167 | :F) |
| 24168 | # |
| 24169 | # CONFIG_FILE |
| 24170 | # |
| 24171 | |
| 24172 | _ACEOF |
| 24173 | |
| 24174 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24175 | # If the template does not know about datarootdir, expand it. |
| 24176 | # FIXME: This hack should be removed a few years after 2.60. |
| 24177 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 24178 | |
| 24179 | case `sed -n '/datarootdir/ { |
| 24180 | p |
| 24181 | q |
| 24182 | } |
| 24183 | /@datadir@/p |
| 24184 | /@docdir@/p |
| 24185 | /@infodir@/p |
| 24186 | /@localedir@/p |
| 24187 | /@mandir@/p |
| 24188 | ' $ac_file_inputs` in |
| 24189 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 24190 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 24191 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 24192 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 24193 | _ACEOF |
| 24194 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24195 | ac_datarootdir_hack=' |
| 24196 | s&@datadir@&$datadir&g |
| 24197 | s&@docdir@&$docdir&g |
| 24198 | s&@infodir@&$infodir&g |
| 24199 | s&@localedir@&$localedir&g |
| 24200 | s&@mandir@&$mandir&g |
| 24201 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 24202 | esac |
| 24203 | _ACEOF |
| 24204 | |
| 24205 | # Neutralize VPATH when `$srcdir' = `.'. |
| 24206 | # Shell code in configure.ac might set extrasub. |
| 24207 | # FIXME: do we really want to maintain this feature? |
| 24208 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24209 | sed "$ac_vpsub |
| 24210 | $extrasub |
| 24211 | _ACEOF |
| 24212 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24213 | :t |
| 24214 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 24215 | s&@configure_input@&$configure_input&;t t |
| 24216 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 24217 | s&@srcdir@&$ac_srcdir&;t t |
| 24218 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 24219 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 24220 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 24221 | s&@builddir@&$ac_builddir&;t t |
| 24222 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 24223 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 24224 | $ac_datarootdir_hack |
| 24225 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
| 24226 | |
| 24227 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 24228 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 24229 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 24230 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24231 | which seems to be undefined. Please make sure it is defined." >&5 |
| 24232 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 24233 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 24234 | |
| 24235 | rm -f "$tmp/stdin" |
| 24236 | case $ac_file in |
| 24237 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 24238 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 24239 | esac |
| 24240 | ;; |
| 24241 | :H) |
| 24242 | # |
| 24243 | # CONFIG_HEADER |
| 24244 | # |
| 24245 | _ACEOF |
| 24246 | |
| 24247 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 24248 | # substitutes the proper values into config.h.in to produce config.h. |
| 24249 | rm -f conftest.defines conftest.tail |
| 24250 | # First, append a space to every undef/define line, to ease matching. |
| 24251 | echo 's/$/ /' >conftest.defines |
| 24252 | # Then, protect against being on the right side of a sed subst, or in |
| 24253 | # an unquoted here document, in config.status. If some macros were |
| 24254 | # called several times there might be several #defines for the same |
| 24255 | # symbol, which is useless. But do not sort them, since the last |
| 24256 | # AC_DEFINE must be honored. |
| 24257 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 24258 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 24259 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 24260 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 24261 | # just an empty string. |
| 24262 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 24263 | ac_dB='\\)[ (].*,\\1define\\2' |
| 24264 | ac_dC=' ' |
| 24265 | ac_dD=' ,' |
| 24266 | |
| 24267 | uniq confdefs.h | |
| 24268 | sed -n ' |
| 24269 | t rset |
| 24270 | :rset |
| 24271 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 24272 | t ok |
| 24273 | d |
| 24274 | :ok |
| 24275 | s/[\\&,]/\\&/g |
| 24276 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 24277 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 24278 | ' >>conftest.defines |
| 24279 | |
| 24280 | # Remove the space that was appended to ease matching. |
| 24281 | # Then replace #undef with comments. This is necessary, for |
| 24282 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 24283 | # on some systems where configure will not decide to define it. |
| 24284 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 24285 | echo 's/ $// |
| 24286 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 24287 | |
| 24288 | # Break up conftest.defines: |
| 24289 | ac_max_sed_lines=50 |
| 24290 | |
| 24291 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 24292 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 24293 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 24294 | # et cetera. |
| 24295 | ac_in='$ac_file_inputs' |
| 24296 | ac_out='"$tmp/out1"' |
| 24297 | ac_nxt='"$tmp/out2"' |
| 24298 | |
| 24299 | while : |
| 24300 | do |
| 24301 | # Write a here document: |
| 24302 | cat >>$CONFIG_STATUS <<_ACEOF |
| 24303 | # First, check the format of the line: |
| 24304 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 24305 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 24306 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 24307 | b |
| 24308 | :def |
| 24309 | _ACEOF |
| 24310 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 24311 | echo 'CEOF |
| 24312 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 24313 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 24314 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 24315 | grep . conftest.tail >/dev/null || break |
| 24316 | rm -f conftest.defines |
| 24317 | mv conftest.tail conftest.defines |
| 24318 | done |
| 24319 | rm -f conftest.defines conftest.tail |
| 24320 | |
| 24321 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 24322 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 24323 | if test x"$ac_file" != x-; then |
| 24324 | echo "/* $configure_input */" >"$tmp/config.h" |
| 24325 | cat "$ac_result" >>"$tmp/config.h" |
| 24326 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 24327 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 24328 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 24329 | else |
| 24330 | rm -f $ac_file |
| 24331 | mv "$tmp/config.h" $ac_file |
| 24332 | fi |
| 24333 | else |
| 24334 | echo "/* $configure_input */" |
| 24335 | cat "$ac_result" |
| 24336 | fi |
| 24337 | rm -f "$tmp/out12" |
| 24338 | ;; |
| 24339 | |
| 24340 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 24341 | echo "$as_me: executing $ac_file commands" >&6;} |
| 24342 | ;; |
| 24343 | esac |
| 24344 | |
| 24345 | |
| 24346 | case $ac_file$ac_mode in |
| 24347 | "adjustment":C) chmod a+x mm-config ;; |
| 24348 | |
| 24349 | esac |
| 24350 | done # for ac_tag |
| 24351 | |
| 24352 | |
| 24353 | { (exit 0); exit 0; } |
| 24354 | _ACEOF |
| 24355 | chmod +x $CONFIG_STATUS |
| 24356 | ac_clean_files=$ac_clean_files_save |
| 24357 | |
| 24358 | |
| 24359 | # configure is writing to config.log, and then calls config.status. |
| 24360 | # config.status does its own redirection, appending to config.log. |
| 24361 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 24362 | # by configure, so config.status won't be able to write to it; its |
| 24363 | # output is simply discarded. So we exec the FD to /dev/null, |
| 24364 | # effectively closing config.log, so it can be properly (re)opened and |
| 24365 | # appended to by config.status. When coming back to configure, we |
| 24366 | # need to make the FD available again. |
| 24367 | if test "$no_create" != yes; then |
| 24368 | ac_cs_success=: |
| 24369 | ac_config_status_args= |
| 24370 | test "$silent" = yes && |
| 24371 | ac_config_status_args="$ac_config_status_args --quiet" |
| 24372 | exec 5>/dev/null |
| 24373 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 24374 | exec 5>>config.log |
| 24375 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 24376 | # would make configure fail if this is the last instruction. |
| 24377 | $ac_cs_success || { (exit 1); exit 1; } |
| 24378 | fi |
| 24379 | |
| 24380 |