Annotation of OpenXM/src/ox_toolkit/configure, Revision 1.9
1.1 ohara 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.9 ! ohara 3: # Generated by GNU Autoconf 2.61.
1.1 ohara 4: #
1.9 ! ohara 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 ohara 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.4 takayama 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
1.9 ! ohara 13: # Be more Bourne compatible
! 14: DUALCASE=1; export DUALCASE # for MKS sh
1.4 takayama 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
1.9 ! ohara 18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 19: # is contrary to our usage. Disable this feature.
! 20: alias -g '${1+"$@"}'='"$@"'
! 21: setopt NO_GLOB_SUBST
! 22: else
! 23: case `(set -o) 2>/dev/null` in
! 24: *posix*) set -o posix ;;
! 25: esac
1.4 takayama 26:
27: fi
28:
29:
30:
31:
1.9 ! ohara 32: # PATH needs CR
1.4 takayama 33: # Avoid depending upon Character Ranges.
34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37: as_cr_digits='0123456789'
38: as_cr_alnum=$as_cr_Letters$as_cr_digits
39:
40: # The user is always right.
41: if test "${PATH_SEPARATOR+set}" != set; then
1.9 ! ohara 42: echo "#! /bin/sh" >conf$$.sh
! 43: echo "exit 0" >>conf$$.sh
! 44: chmod +x conf$$.sh
! 45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1.4 takayama 46: PATH_SEPARATOR=';'
47: else
48: PATH_SEPARATOR=:
49: fi
1.9 ! ohara 50: rm -f conf$$.sh
! 51: fi
! 52:
! 53: # Support unset when possible.
! 54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 55: as_unset=unset
! 56: else
! 57: as_unset=false
1.4 takayama 58: fi
59:
60:
1.9 ! ohara 61: # IFS
! 62: # We need space, tab and new line, in precisely that order. Quoting is
! 63: # there to prevent editors from complaining about space-tab.
! 64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 65: # splitting by setting IFS to empty value.)
! 66: as_nl='
! 67: '
! 68: IFS=" "" $as_nl"
! 69:
! 70: # Find who we are. Look in the path if we contain no directory separator.
! 71: case $0 in
! 72: *[\\/]* ) as_myself=$0 ;;
! 73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4 takayama 74: for as_dir in $PATH
75: do
76: IFS=$as_save_IFS
77: test -z "$as_dir" && as_dir=.
78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79: done
1.9 ! ohara 80: IFS=$as_save_IFS
! 81:
! 82: ;;
! 83: esac
! 84: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 85: # in which case we are not to be found in the path.
! 86: if test "x$as_myself" = x; then
! 87: as_myself=$0
! 88: fi
! 89: if test ! -f "$as_myself"; then
! 90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 91: { (exit 1); exit 1; }
! 92: fi
! 93:
! 94: # Work around bugs in pre-3.0 UWIN ksh.
! 95: for as_var in ENV MAIL MAILPATH
! 96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 97: done
! 98: PS1='$ '
! 99: PS2='> '
! 100: PS4='+ '
1.4 takayama 101:
1.9 ! ohara 102: # NLS nuisances.
! 103: for as_var in \
! 104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 106: LC_TELEPHONE LC_TIME
! 107: do
! 108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 109: eval $as_var=C; export $as_var
! 110: else
! 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.4 takayama 112: fi
1.9 ! ohara 113: done
! 114:
! 115: # Required to use basename.
! 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 118: as_expr=expr
! 119: else
! 120: as_expr=false
! 121: fi
! 122:
! 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 124: as_basename=basename
! 125: else
! 126: as_basename=false
! 127: fi
! 128:
! 129:
! 130: # Name of the executable.
! 131: as_me=`$as_basename -- "$0" ||
! 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 133: X"$0" : 'X\(//\)$' \| \
! 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 135: echo X/"$0" |
! 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 137: s//\1/
! 138: q
! 139: }
! 140: /^X\/\(\/\/\)$/{
! 141: s//\1/
! 142: q
! 143: }
! 144: /^X\/\(\/\).*/{
! 145: s//\1/
! 146: q
! 147: }
! 148: s/.*/./; q'`
! 149:
! 150: # CDPATH.
! 151: $as_unset CDPATH
! 152:
! 153:
! 154: if test "x$CONFIG_SHELL" = x; then
! 155: if (eval ":") 2>/dev/null; then
! 156: as_have_required=yes
! 157: else
! 158: as_have_required=no
! 159: fi
! 160:
! 161: if test $as_have_required = yes && (eval ":
! 162: (as_func_return () {
! 163: (exit \$1)
! 164: }
! 165: as_func_success () {
! 166: as_func_return 0
! 167: }
! 168: as_func_failure () {
! 169: as_func_return 1
! 170: }
! 171: as_func_ret_success () {
! 172: return 0
! 173: }
! 174: as_func_ret_failure () {
! 175: return 1
! 176: }
! 177:
! 178: exitcode=0
! 179: if as_func_success; then
! 180: :
! 181: else
! 182: exitcode=1
! 183: echo as_func_success failed.
! 184: fi
! 185:
! 186: if as_func_failure; then
! 187: exitcode=1
! 188: echo as_func_failure succeeded.
! 189: fi
! 190:
! 191: if as_func_ret_success; then
! 192: :
! 193: else
! 194: exitcode=1
! 195: echo as_func_ret_success failed.
! 196: fi
! 197:
! 198: if as_func_ret_failure; then
! 199: exitcode=1
! 200: echo as_func_ret_failure succeeded.
! 201: fi
! 202:
! 203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 204: :
! 205: else
! 206: exitcode=1
! 207: echo positional parameters were not saved.
! 208: fi
! 209:
! 210: test \$exitcode = 0) || { (exit 1); exit 1; }
! 211:
! 212: (
! 213: as_lineno_1=\$LINENO
! 214: as_lineno_2=\$LINENO
! 215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
! 216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
! 217: ") 2> /dev/null; then
! 218: :
! 219: else
! 220: as_candidate_shells=
1.4 takayama 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.9 ! ohara 226: case $as_dir in
1.4 takayama 227: /*)
1.9 ! ohara 228: for as_base in sh bash ksh sh5; do
! 229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
! 230: done;;
! 231: esac
! 232: done
! 233: IFS=$as_save_IFS
! 234:
! 235:
! 236: for as_shell in $as_candidate_shells $SHELL; do
! 237: # Try only shells that exist, to save several forks.
! 238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 239: { ("$as_shell") 2> /dev/null <<\_ASEOF
! 240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 241: emulate sh
! 242: NULLCMD=:
! 243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 244: # is contrary to our usage. Disable this feature.
! 245: alias -g '${1+"$@"}'='"$@"'
! 246: setopt NO_GLOB_SUBST
! 247: else
! 248: case `(set -o) 2>/dev/null` in
! 249: *posix*) set -o posix ;;
! 250: esac
! 251:
! 252: fi
! 253:
! 254:
! 255: :
! 256: _ASEOF
! 257: }; then
! 258: CONFIG_SHELL=$as_shell
! 259: as_have_required=yes
! 260: if { "$as_shell" 2> /dev/null <<\_ASEOF
! 261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 262: emulate sh
! 263: NULLCMD=:
! 264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 265: # is contrary to our usage. Disable this feature.
! 266: alias -g '${1+"$@"}'='"$@"'
! 267: setopt NO_GLOB_SUBST
! 268: else
! 269: case `(set -o) 2>/dev/null` in
! 270: *posix*) set -o posix ;;
! 271: esac
! 272:
! 273: fi
! 274:
! 275:
! 276: :
! 277: (as_func_return () {
! 278: (exit $1)
! 279: }
! 280: as_func_success () {
! 281: as_func_return 0
! 282: }
! 283: as_func_failure () {
! 284: as_func_return 1
! 285: }
! 286: as_func_ret_success () {
! 287: return 0
! 288: }
! 289: as_func_ret_failure () {
! 290: return 1
! 291: }
! 292:
! 293: exitcode=0
! 294: if as_func_success; then
! 295: :
! 296: else
! 297: exitcode=1
! 298: echo as_func_success failed.
! 299: fi
! 300:
! 301: if as_func_failure; then
! 302: exitcode=1
! 303: echo as_func_failure succeeded.
! 304: fi
! 305:
! 306: if as_func_ret_success; then
! 307: :
! 308: else
! 309: exitcode=1
! 310: echo as_func_ret_success failed.
! 311: fi
! 312:
! 313: if as_func_ret_failure; then
! 314: exitcode=1
! 315: echo as_func_ret_failure succeeded.
! 316: fi
! 317:
! 318: if ( set x; as_func_ret_success y && test x = "$1" ); then
! 319: :
! 320: else
! 321: exitcode=1
! 322: echo positional parameters were not saved.
! 323: fi
! 324:
! 325: test $exitcode = 0) || { (exit 1); exit 1; }
! 326:
! 327: (
! 328: as_lineno_1=$LINENO
! 329: as_lineno_2=$LINENO
! 330: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
! 332:
! 333: _ASEOF
! 334: }; then
! 335: break
! 336: fi
! 337:
! 338: fi
! 339:
! 340: done
! 341:
! 342: if test "x$CONFIG_SHELL" != x; then
! 343: for as_var in BASH_ENV ENV
! 344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 345: done
! 346: export CONFIG_SHELL
! 347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 348: fi
! 349:
! 350:
! 351: if test $as_have_required = no; then
! 352: echo This script requires a shell more modern than all the
! 353: echo shells that I found on your system. Please install a
! 354: echo modern shell, or manually run the script under such a
! 355: echo shell if you do have one.
! 356: { (exit 1); exit 1; }
! 357: fi
! 358:
! 359:
! 360: fi
! 361:
! 362: fi
! 363:
! 364:
! 365:
! 366: (eval "as_func_return () {
! 367: (exit \$1)
! 368: }
! 369: as_func_success () {
! 370: as_func_return 0
! 371: }
! 372: as_func_failure () {
! 373: as_func_return 1
! 374: }
! 375: as_func_ret_success () {
! 376: return 0
! 377: }
! 378: as_func_ret_failure () {
! 379: return 1
! 380: }
! 381:
! 382: exitcode=0
! 383: if as_func_success; then
! 384: :
! 385: else
! 386: exitcode=1
! 387: echo as_func_success failed.
! 388: fi
! 389:
! 390: if as_func_failure; then
! 391: exitcode=1
! 392: echo as_func_failure succeeded.
! 393: fi
! 394:
! 395: if as_func_ret_success; then
! 396: :
! 397: else
! 398: exitcode=1
! 399: echo as_func_ret_success failed.
! 400: fi
! 401:
! 402: if as_func_ret_failure; then
! 403: exitcode=1
! 404: echo as_func_ret_failure succeeded.
! 405: fi
! 406:
! 407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 408: :
! 409: else
! 410: exitcode=1
! 411: echo positional parameters were not saved.
! 412: fi
! 413:
! 414: test \$exitcode = 0") || {
! 415: echo No shell found that supports shell functions.
! 416: echo Please tell autoconf@gnu.org about your system,
! 417: echo including any error possibly output before this
! 418: echo message
! 419: }
! 420:
! 421:
! 422:
1.4 takayama 423: as_lineno_1=$LINENO
424: as_lineno_2=$LINENO
425: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.9 ! ohara 426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.4 takayama 427:
428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429: # uniformly replaced by the line number. The first 'sed' inserts a
1.9 ! ohara 430: # line-number line after each line using $LINENO; the second 'sed'
! 431: # does the real work. The second script uses 'N' to pair each
! 432: # line-number line with the line containing $LINENO, and appends
! 433: # trailing '-' during substitution so that $LINENO is not a special
! 434: # case at line end.
1.4 takayama 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.9 ! ohara 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 437: # E. McMahon (1931-1989) for sed's syntax. :-)
! 438: sed -n '
! 439: p
! 440: /[$]LINENO/=
! 441: ' <$as_myself |
1.4 takayama 442: sed '
1.9 ! ohara 443: s/[$]LINENO.*/&-/
! 444: t lineno
! 445: b
! 446: :lineno
1.4 takayama 447: N
1.9 ! ohara 448: :loop
! 449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.4 takayama 450: t loop
1.9 ! ohara 451: s/-\n.*//
1.4 takayama 452: ' >$as_me.lineno &&
1.9 ! ohara 453: chmod +x "$as_me.lineno" ||
1.4 takayama 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455: { (exit 1); exit 1; }; }
456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
1.9 ! ohara 459: # original and so on. Autoconf is especially sensitive to this).
! 460: . "./$as_me.lineno"
1.4 takayama 461: # Exit status is that of the last command.
462: exit
463: }
464:
465:
1.9 ! ohara 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 467: as_dirname=dirname
! 468: else
! 469: as_dirname=false
! 470: fi
! 471:
! 472: ECHO_C= ECHO_N= ECHO_T=
! 473: case `echo -n x` in
! 474: -n*)
! 475: case `echo 'x\c'` in
! 476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 477: *) ECHO_C='\c';;
! 478: esac;;
! 479: *)
! 480: ECHO_N='-n';;
1.4 takayama 481: esac
482:
1.9 ! ohara 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.4 takayama 485: as_expr=expr
486: else
487: as_expr=false
488: fi
489:
490: rm -f conf$$ conf$$.exe conf$$.file
1.9 ! ohara 491: if test -d conf$$.dir; then
! 492: rm -f conf$$.dir/conf$$.file
! 493: else
! 494: rm -f conf$$.dir
! 495: mkdir conf$$.dir
! 496: fi
1.4 takayama 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.9 ! ohara 499: as_ln_s='ln -s'
! 500: # ... but there are two gotchas:
! 501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 503: # In both cases, we have to default to `cp -p'.
! 504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.4 takayama 505: as_ln_s='cp -p'
506: elif ln conf$$.file conf$$ 2>/dev/null; then
507: as_ln_s=ln
508: else
509: as_ln_s='cp -p'
510: fi
1.9 ! ohara 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 512: rmdir conf$$.dir 2>/dev/null
! 513:
! 514: if mkdir -p . 2>/dev/null; then
! 515: as_mkdir_p=:
! 516: else
! 517: test -d ./-p && rmdir ./-p
! 518: as_mkdir_p=false
! 519: fi
1.4 takayama 520:
1.9 ! ohara 521: if test -x / >/dev/null 2>&1; then
! 522: as_test_x='test -x'
! 523: else
! 524: if ls -dL / >/dev/null 2>&1; then
! 525: as_ls_L_option=L
! 526: else
! 527: as_ls_L_option=
! 528: fi
! 529: as_test_x='
! 530: eval sh -c '\''
! 531: if test -d "$1"; then
! 532: test -d "$1/.";
! 533: else
! 534: case $1 in
! 535: -*)set "./$1";;
! 536: esac;
! 537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 538: ???[sx]*):;;*)false;;esac;fi
! 539: '\'' sh
! 540: '
! 541: fi
! 542: as_executable_p=$as_test_x
1.4 takayama 543:
544: # Sed expression to map a string onto a valid CPP name.
1.9 ! ohara 545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.4 takayama 546:
547: # Sed expression to map a string onto a valid variable name.
1.9 ! ohara 548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.4 takayama 549:
550:
551:
552:
1.9 ! ohara 553: # Check that we are running under the correct shell.
! 554: SHELL=${CONFIG_SHELL-/bin/sh}
1.4 takayama 555:
1.9 ! ohara 556: case X$ECHO in
! 557: X*--fallback-echo)
! 558: # Remove one level of quotation (which was required for Make).
! 559: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
! 560: ;;
! 561: esac
1.4 takayama 562:
1.9 ! ohara 563: echo=${ECHO-echo}
! 564: if test "X$1" = X--no-reexec; then
! 565: # Discard the --no-reexec flag, and continue.
! 566: shift
! 567: elif test "X$1" = X--fallback-echo; then
! 568: # Avoid inline document here, it may be left over
! 569: :
! 570: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
! 571: # Yippee, $echo works!
! 572: :
! 573: else
! 574: # Restart under the correct shell.
! 575: exec $SHELL "$0" --no-reexec ${1+"$@"}
! 576: fi
1.4 takayama 577:
1.9 ! ohara 578: if test "X$1" = X--fallback-echo; then
! 579: # used as fallback echo
! 580: shift
! 581: cat <<EOF
! 582: $*
! 583: EOF
! 584: exit 0
! 585: fi
1.4 takayama 586:
1.9 ! ohara 587: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 588: # if CDPATH is set.
! 589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 590:
! 591: if test -z "$ECHO"; then
! 592: if test "X${echo_test_string+set}" != Xset; then
! 593: # find a string as large as possible, as long as the shell can cope with it
! 594: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
! 595: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
! 596: if (echo_test_string=`eval $cmd`) 2>/dev/null &&
! 597: echo_test_string=`eval $cmd` &&
! 598: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
! 599: then
! 600: break
! 601: fi
! 602: done
! 603: fi
1.4 takayama 604:
1.9 ! ohara 605: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 606: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 607: test "X$echo_testing_string" = "X$echo_test_string"; then
! 608: :
! 609: else
! 610: # The Solaris, AIX, and Digital Unix default echo programs unquote
! 611: # backslashes. This makes it impossible to quote backslashes using
! 612: # echo "$something" | sed 's/\\/\\\\/g'
! 613: #
! 614: # So, first we look for a working echo in the user's PATH.
! 615:
! 616: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 617: for dir in $PATH /usr/ucb; do
! 618: IFS="$lt_save_ifs"
! 619: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
! 620: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
! 621: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
! 622: test "X$echo_testing_string" = "X$echo_test_string"; then
! 623: echo="$dir/echo"
! 624: break
! 625: fi
! 626: done
! 627: IFS="$lt_save_ifs"
! 628:
! 629: if test "X$echo" = Xecho; then
! 630: # We didn't find a better echo, so look for alternatives.
! 631: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
! 632: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
! 633: test "X$echo_testing_string" = "X$echo_test_string"; then
! 634: # This shell has a builtin print -r that does the trick.
! 635: echo='print -r'
! 636: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
! 637: test "X$CONFIG_SHELL" != X/bin/ksh; then
! 638: # If we have ksh, try running configure again with it.
! 639: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
! 640: export ORIGINAL_CONFIG_SHELL
! 641: CONFIG_SHELL=/bin/ksh
! 642: export CONFIG_SHELL
! 643: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
! 644: else
! 645: # Try using printf.
! 646: echo='printf %s\n'
! 647: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 648: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 649: test "X$echo_testing_string" = "X$echo_test_string"; then
! 650: # Cool, printf works
! 651: :
! 652: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 653: test "X$echo_testing_string" = 'X\t' &&
! 654: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 655: test "X$echo_testing_string" = "X$echo_test_string"; then
! 656: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
! 657: export CONFIG_SHELL
! 658: SHELL="$CONFIG_SHELL"
! 659: export SHELL
! 660: echo="$CONFIG_SHELL $0 --fallback-echo"
! 661: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 662: test "X$echo_testing_string" = 'X\t' &&
! 663: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 664: test "X$echo_testing_string" = "X$echo_test_string"; then
! 665: echo="$CONFIG_SHELL $0 --fallback-echo"
! 666: else
! 667: # maybe with a smaller string...
! 668: prev=:
! 669:
! 670: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
! 671: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
! 672: then
! 673: break
! 674: fi
! 675: prev="$cmd"
! 676: done
! 677:
! 678: if test "$prev" != 'sed 50q "$0"'; then
! 679: echo_test_string=`eval $prev`
! 680: export echo_test_string
! 681: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
! 682: else
! 683: # Oops. We lost completely, so just stick with echo.
! 684: echo=echo
! 685: fi
! 686: fi
! 687: fi
! 688: fi
! 689: fi
! 690: fi
! 691:
! 692: # Copy echo and quote the copy suitably for passing to libtool from
! 693: # the Makefile, instead of quoting the original, which is used later.
! 694: ECHO=$echo
! 695: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
! 696: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
! 697: fi
! 698:
! 699:
! 700:
! 701:
! 702: tagnames=${tagnames+${tagnames},}CXX
! 703:
! 704: tagnames=${tagnames+${tagnames},}F77
! 705:
! 706: exec 7<&0 </dev/null 6>&1
! 707:
! 708: # Name of the host.
! 709: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
! 710: # so uname gets run too.
! 711: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
! 712:
! 713: #
! 714: # Initializations.
! 715: #
! 716: ac_default_prefix=/usr/local
! 717: ac_clean_files=
! 718: ac_config_libobj_dir=.
! 719: LIBOBJS=
! 720: cross_compiling=no
! 721: subdirs=
! 722: MFLAGS=
! 723: MAKEFLAGS=
! 724: SHELL=${CONFIG_SHELL-/bin/sh}
! 725:
! 726: # Identity of this package.
! 727: PACKAGE_NAME=
! 728: PACKAGE_TARNAME=
! 729: PACKAGE_VERSION=
! 730: PACKAGE_STRING=
! 731: PACKAGE_BUGREPORT=
! 732:
! 733: ac_unique_file="mysocket.c"
! 734: # Factoring default headers for most tests.
! 735: ac_includes_default="\
! 736: #include <stdio.h>
! 737: #ifdef HAVE_SYS_TYPES_H
! 738: # include <sys/types.h>
! 739: #endif
! 740: #ifdef HAVE_SYS_STAT_H
! 741: # include <sys/stat.h>
! 742: #endif
! 743: #ifdef STDC_HEADERS
! 744: # include <stdlib.h>
! 745: # include <stddef.h>
! 746: #else
! 747: # ifdef HAVE_STDLIB_H
! 748: # include <stdlib.h>
! 749: # endif
! 750: #endif
! 751: #ifdef HAVE_STRING_H
! 752: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
! 753: # include <memory.h>
! 754: # endif
! 755: # include <string.h>
! 756: #endif
! 757: #ifdef HAVE_STRINGS_H
! 758: # include <strings.h>
! 759: #endif
! 760: #ifdef HAVE_INTTYPES_H
! 761: # include <inttypes.h>
! 762: #endif
! 763: #ifdef HAVE_STDINT_H
! 764: # include <stdint.h>
! 765: #endif
! 766: #ifdef HAVE_UNISTD_H
! 767: # include <unistd.h>
! 768: #endif"
! 769:
! 770: ac_subst_vars='SHELL
! 771: PATH_SEPARATOR
! 772: PACKAGE_NAME
! 773: PACKAGE_TARNAME
! 774: PACKAGE_VERSION
! 775: PACKAGE_STRING
! 776: PACKAGE_BUGREPORT
! 777: exec_prefix
! 778: prefix
! 779: program_transform_name
! 780: bindir
! 781: sbindir
! 782: libexecdir
! 783: datarootdir
! 784: datadir
! 785: sysconfdir
! 786: sharedstatedir
! 787: localstatedir
! 788: includedir
! 789: oldincludedir
! 790: docdir
! 791: infodir
! 792: htmldir
! 793: dvidir
! 794: pdfdir
! 795: psdir
! 796: libdir
! 797: localedir
! 798: mandir
! 799: DEFS
! 800: ECHO_C
! 801: ECHO_N
! 802: ECHO_T
! 803: LIBS
! 804: build_alias
! 805: host_alias
! 806: target_alias
! 807: INSTALL_PROGRAM
! 808: INSTALL_SCRIPT
! 809: INSTALL_DATA
! 810: am__isrc
! 811: CYGPATH_W
! 812: PACKAGE
! 813: VERSION
! 814: ACLOCAL
! 815: AUTOCONF
! 816: AUTOMAKE
! 817: AUTOHEADER
! 818: MAKEINFO
! 819: install_sh
! 820: STRIP
! 821: INSTALL_STRIP_PROGRAM
! 822: mkdir_p
! 823: AWK
! 824: SET_MAKE
! 825: am__leading_dot
! 826: AMTAR
! 827: am__tar
! 828: am__untar
! 829: MAINTAINER_MODE_TRUE
! 830: MAINTAINER_MODE_FALSE
! 831: MAINT
! 832: build
! 833: build_cpu
! 834: build_vendor
! 835: build_os
! 836: host
! 837: host_cpu
! 838: host_vendor
! 839: host_os
! 840: target
! 841: target_cpu
! 842: target_vendor
! 843: target_os
! 844: CC
! 845: CFLAGS
! 846: LDFLAGS
! 847: CPPFLAGS
! 848: ac_ct_CC
! 849: EXEEXT
! 850: OBJEXT
! 851: DEPDIR
! 852: am__include
! 853: am__quote
! 854: AMDEP_TRUE
! 855: AMDEP_FALSE
! 856: AMDEPBACKSLASH
! 857: CCDEPMODE
! 858: am__fastdepCC_TRUE
! 859: am__fastdepCC_FALSE
! 860: GREP
! 861: EGREP
! 862: LN_S
! 863: ECHO
! 864: AR
! 865: RANLIB
! 866: CPP
! 867: CXX
! 868: CXXFLAGS
! 869: ac_ct_CXX
! 870: CXXDEPMODE
! 871: am__fastdepCXX_TRUE
! 872: am__fastdepCXX_FALSE
! 873: CXXCPP
! 874: F77
! 875: FFLAGS
! 876: ac_ct_F77
! 877: LIBTOOL
! 878: XMKMF
! 879: X_CFLAGS
! 880: X_PRE_LIBS
! 881: X_LIBS
! 882: X_EXTRA_LIBS
! 883: LIBOBJS
! 884: LTLIBOBJS'
! 885: ac_subst_files=''
! 886: ac_precious_vars='build_alias
! 887: host_alias
! 888: target_alias
! 889: CC
! 890: CFLAGS
! 891: LDFLAGS
! 892: LIBS
! 893: CPPFLAGS
! 894: CPP
! 895: CXX
! 896: CXXFLAGS
! 897: CCC
! 898: CXXCPP
! 899: F77
! 900: FFLAGS
! 901: XMKMF'
1.4 takayama 902:
1.1 ohara 903:
904: # Initialize some variables set by options.
1.4 takayama 905: ac_init_help=
906: ac_init_version=false
1.1 ohara 907: # The variables have the same names as the options, with
908: # dashes changed to underlines.
1.4 takayama 909: cache_file=/dev/null
1.1 ohara 910: exec_prefix=NONE
911: no_create=
912: no_recursion=
913: prefix=NONE
914: program_prefix=NONE
915: program_suffix=NONE
916: program_transform_name=s,x,x,
917: silent=
918: site=
919: srcdir=
920: verbose=
921: x_includes=NONE
922: x_libraries=NONE
1.4 takayama 923:
924: # Installation directory options.
925: # These are left unexpanded so users can "make install exec_prefix=/foo"
926: # and all the variables that are supposed to be based on exec_prefix
927: # by default will actually change.
928: # Use braces instead of parens because sh, perl, etc. also accept them.
1.9 ! ohara 929: # (The list follows the same order as the GNU Coding Standards.)
1.1 ohara 930: bindir='${exec_prefix}/bin'
931: sbindir='${exec_prefix}/sbin'
932: libexecdir='${exec_prefix}/libexec'
1.9 ! ohara 933: datarootdir='${prefix}/share'
! 934: datadir='${datarootdir}'
1.1 ohara 935: sysconfdir='${prefix}/etc'
936: sharedstatedir='${prefix}/com'
937: localstatedir='${prefix}/var'
938: includedir='${prefix}/include'
939: oldincludedir='/usr/include'
1.9 ! ohara 940: docdir='${datarootdir}/doc/${PACKAGE}'
! 941: infodir='${datarootdir}/info'
! 942: htmldir='${docdir}'
! 943: dvidir='${docdir}'
! 944: pdfdir='${docdir}'
! 945: psdir='${docdir}'
! 946: libdir='${exec_prefix}/lib'
! 947: localedir='${datarootdir}/locale'
! 948: mandir='${datarootdir}/man'
1.1 ohara 949:
950: ac_prev=
1.9 ! ohara 951: ac_dashdash=
1.1 ohara 952: for ac_option
953: do
954: # If the previous option needs an argument, assign it.
955: if test -n "$ac_prev"; then
1.9 ! ohara 956: eval $ac_prev=\$ac_option
1.1 ohara 957: ac_prev=
958: continue
959: fi
960:
1.9 ! ohara 961: case $ac_option in
! 962: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 963: *) ac_optarg=yes ;;
! 964: esac
1.1 ohara 965:
966: # Accept the important Cygnus configure options, so we can diagnose typos.
967:
1.9 ! ohara 968: case $ac_dashdash$ac_option in
! 969: --)
! 970: ac_dashdash=yes ;;
1.1 ohara 971:
972: -bindir | --bindir | --bindi | --bind | --bin | --bi)
973: ac_prev=bindir ;;
974: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.4 takayama 975: bindir=$ac_optarg ;;
1.1 ohara 976:
977: -build | --build | --buil | --bui | --bu)
1.4 takayama 978: ac_prev=build_alias ;;
1.1 ohara 979: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.4 takayama 980: build_alias=$ac_optarg ;;
1.1 ohara 981:
982: -cache-file | --cache-file | --cache-fil | --cache-fi \
983: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984: ac_prev=cache_file ;;
985: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.4 takayama 987: cache_file=$ac_optarg ;;
988:
989: --config-cache | -C)
990: cache_file=config.cache ;;
1.1 ohara 991:
1.9 ! ohara 992: -datadir | --datadir | --datadi | --datad)
1.1 ohara 993: ac_prev=datadir ;;
1.9 ! ohara 994: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.4 takayama 995: datadir=$ac_optarg ;;
1.1 ohara 996:
1.9 ! ohara 997: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 998: | --dataroo | --dataro | --datar)
! 999: ac_prev=datarootdir ;;
! 1000: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 1001: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 1002: datarootdir=$ac_optarg ;;
! 1003:
1.1 ohara 1004: -disable-* | --disable-*)
1.4 takayama 1005: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 ohara 1006: # Reject names that are not valid shell variable names.
1.9 ! ohara 1007: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.4 takayama 1008: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009: { (exit 1); exit 1; }; }
1.9 ! ohara 1010: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1011: eval enable_$ac_feature=no ;;
! 1012:
! 1013: -docdir | --docdir | --docdi | --doc | --do)
! 1014: ac_prev=docdir ;;
! 1015: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 1016: docdir=$ac_optarg ;;
! 1017:
! 1018: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 1019: ac_prev=dvidir ;;
! 1020: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 1021: dvidir=$ac_optarg ;;
1.1 ohara 1022:
1023: -enable-* | --enable-*)
1.4 takayama 1024: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 ohara 1025: # Reject names that are not valid shell variable names.
1.9 ! ohara 1026: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.4 takayama 1027: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028: { (exit 1); exit 1; }; }
1.9 ! ohara 1029: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1030: eval enable_$ac_feature=\$ac_optarg ;;
1.1 ohara 1031:
1032: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034: | --exec | --exe | --ex)
1035: ac_prev=exec_prefix ;;
1036: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038: | --exec=* | --exe=* | --ex=*)
1.4 takayama 1039: exec_prefix=$ac_optarg ;;
1.1 ohara 1040:
1041: -gas | --gas | --ga | --g)
1042: # Obsolete; use --with-gas.
1043: with_gas=yes ;;
1044:
1.4 takayama 1045: -help | --help | --hel | --he | -h)
1046: ac_init_help=long ;;
1047: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048: ac_init_help=recursive ;;
1049: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050: ac_init_help=short ;;
1.1 ohara 1051:
1052: -host | --host | --hos | --ho)
1.4 takayama 1053: ac_prev=host_alias ;;
1.1 ohara 1054: -host=* | --host=* | --hos=* | --ho=*)
1.4 takayama 1055: host_alias=$ac_optarg ;;
1.1 ohara 1056:
1.9 ! ohara 1057: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 1058: ac_prev=htmldir ;;
! 1059: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 1060: | --ht=*)
! 1061: htmldir=$ac_optarg ;;
! 1062:
1.1 ohara 1063: -includedir | --includedir | --includedi | --included | --include \
1064: | --includ | --inclu | --incl | --inc)
1065: ac_prev=includedir ;;
1066: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.4 takayama 1068: includedir=$ac_optarg ;;
1.1 ohara 1069:
1070: -infodir | --infodir | --infodi | --infod | --info | --inf)
1071: ac_prev=infodir ;;
1072: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.4 takayama 1073: infodir=$ac_optarg ;;
1.1 ohara 1074:
1075: -libdir | --libdir | --libdi | --libd)
1076: ac_prev=libdir ;;
1077: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.4 takayama 1078: libdir=$ac_optarg ;;
1.1 ohara 1079:
1080: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081: | --libexe | --libex | --libe)
1082: ac_prev=libexecdir ;;
1083: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084: | --libexe=* | --libex=* | --libe=*)
1.4 takayama 1085: libexecdir=$ac_optarg ;;
1.1 ohara 1086:
1.9 ! ohara 1087: -localedir | --localedir | --localedi | --localed | --locale)
! 1088: ac_prev=localedir ;;
! 1089: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 1090: localedir=$ac_optarg ;;
! 1091:
1.1 ohara 1092: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.9 ! ohara 1093: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 ohara 1094: ac_prev=localstatedir ;;
1095: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.9 ! ohara 1096: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.4 takayama 1097: localstatedir=$ac_optarg ;;
1.1 ohara 1098:
1099: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100: ac_prev=mandir ;;
1101: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.4 takayama 1102: mandir=$ac_optarg ;;
1.1 ohara 1103:
1104: -nfp | --nfp | --nf)
1105: # Obsolete; use --without-fp.
1106: with_fp=no ;;
1107:
1108: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.4 takayama 1109: | --no-cr | --no-c | -n)
1.1 ohara 1110: no_create=yes ;;
1111:
1112: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114: no_recursion=yes ;;
1115:
1116: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118: | --oldin | --oldi | --old | --ol | --o)
1119: ac_prev=oldincludedir ;;
1120: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.4 takayama 1123: oldincludedir=$ac_optarg ;;
1.1 ohara 1124:
1125: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126: ac_prev=prefix ;;
1127: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.4 takayama 1128: prefix=$ac_optarg ;;
1.1 ohara 1129:
1130: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131: | --program-pre | --program-pr | --program-p)
1132: ac_prev=program_prefix ;;
1133: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.4 takayama 1135: program_prefix=$ac_optarg ;;
1.1 ohara 1136:
1137: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138: | --program-suf | --program-su | --program-s)
1139: ac_prev=program_suffix ;;
1140: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.4 takayama 1142: program_suffix=$ac_optarg ;;
1.1 ohara 1143:
1144: -program-transform-name | --program-transform-name \
1145: | --program-transform-nam | --program-transform-na \
1146: | --program-transform-n | --program-transform- \
1147: | --program-transform | --program-transfor \
1148: | --program-transfo | --program-transf \
1149: | --program-trans | --program-tran \
1150: | --progr-tra | --program-tr | --program-t)
1151: ac_prev=program_transform_name ;;
1152: -program-transform-name=* | --program-transform-name=* \
1153: | --program-transform-nam=* | --program-transform-na=* \
1154: | --program-transform-n=* | --program-transform-=* \
1155: | --program-transform=* | --program-transfor=* \
1156: | --program-transfo=* | --program-transf=* \
1157: | --program-trans=* | --program-tran=* \
1158: | --progr-tra=* | --program-tr=* | --program-t=*)
1.4 takayama 1159: program_transform_name=$ac_optarg ;;
1.1 ohara 1160:
1.9 ! ohara 1161: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 1162: ac_prev=pdfdir ;;
! 1163: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 1164: pdfdir=$ac_optarg ;;
! 1165:
! 1166: -psdir | --psdir | --psdi | --psd | --ps)
! 1167: ac_prev=psdir ;;
! 1168: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 1169: psdir=$ac_optarg ;;
! 1170:
1.1 ohara 1171: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172: | -silent | --silent | --silen | --sile | --sil)
1173: silent=yes ;;
1174:
1175: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176: ac_prev=sbindir ;;
1177: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178: | --sbi=* | --sb=*)
1.4 takayama 1179: sbindir=$ac_optarg ;;
1.1 ohara 1180:
1181: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183: | --sharedst | --shareds | --shared | --share | --shar \
1184: | --sha | --sh)
1185: ac_prev=sharedstatedir ;;
1186: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189: | --sha=* | --sh=*)
1.4 takayama 1190: sharedstatedir=$ac_optarg ;;
1.1 ohara 1191:
1192: -site | --site | --sit)
1193: ac_prev=site ;;
1194: -site=* | --site=* | --sit=*)
1.4 takayama 1195: site=$ac_optarg ;;
1.2 ohara 1196:
1.1 ohara 1197: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198: ac_prev=srcdir ;;
1199: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.4 takayama 1200: srcdir=$ac_optarg ;;
1.1 ohara 1201:
1202: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203: | --syscon | --sysco | --sysc | --sys | --sy)
1204: ac_prev=sysconfdir ;;
1205: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.4 takayama 1207: sysconfdir=$ac_optarg ;;
1.1 ohara 1208:
1209: -target | --target | --targe | --targ | --tar | --ta | --t)
1.4 takayama 1210: ac_prev=target_alias ;;
1.1 ohara 1211: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.4 takayama 1212: target_alias=$ac_optarg ;;
1.1 ohara 1213:
1214: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215: verbose=yes ;;
1216:
1.4 takayama 1217: -version | --version | --versio | --versi | --vers | -V)
1218: ac_init_version=: ;;
1.1 ohara 1219:
1220: -with-* | --with-*)
1.4 takayama 1221: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 ohara 1222: # Reject names that are not valid shell variable names.
1.9 ! ohara 1223: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.4 takayama 1224: { echo "$as_me: error: invalid package name: $ac_package" >&2
1225: { (exit 1); exit 1; }; }
1.9 ! ohara 1226: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1227: eval with_$ac_package=\$ac_optarg ;;
1.1 ohara 1228:
1229: -without-* | --without-*)
1.4 takayama 1230: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 ohara 1231: # Reject names that are not valid shell variable names.
1.9 ! ohara 1232: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.4 takayama 1233: { echo "$as_me: error: invalid package name: $ac_package" >&2
1234: { (exit 1); exit 1; }; }
1.9 ! ohara 1235: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1236: eval with_$ac_package=no ;;
1.1 ohara 1237:
1238: --x)
1239: # Obsolete; use --with-x.
1240: with_x=yes ;;
1241:
1242: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243: | --x-incl | --x-inc | --x-in | --x-i)
1244: ac_prev=x_includes ;;
1245: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.4 takayama 1247: x_includes=$ac_optarg ;;
1.1 ohara 1248:
1249: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251: ac_prev=x_libraries ;;
1252: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.4 takayama 1254: x_libraries=$ac_optarg ;;
1.1 ohara 1255:
1.4 takayama 1256: -*) { echo "$as_me: error: unrecognized option: $ac_option
1257: Try \`$0 --help' for more information." >&2
1258: { (exit 1); exit 1; }; }
1.1 ohara 1259: ;;
1260:
1.4 takayama 1261: *=*)
1262: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263: # Reject names that are not valid shell variable names.
1264: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266: { (exit 1); exit 1; }; }
1.9 ! ohara 1267: eval $ac_envvar=\$ac_optarg
1.4 takayama 1268: export $ac_envvar ;;
1269:
1.1 ohara 1270: *)
1.4 takayama 1271: # FIXME: should be removed in autoconf 3.0.
1272: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 ohara 1276: ;;
1277:
1278: esac
1279: done
1280:
1281: if test -n "$ac_prev"; then
1.4 takayama 1282: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283: { echo "$as_me: error: missing argument to $ac_option" >&2
1284: { (exit 1); exit 1; }; }
1.1 ohara 1285: fi
1286:
1.9 ! ohara 1287: # Be sure to have absolute directory names.
! 1288: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1289: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1290: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1291: libdir localedir mandir
1.4 takayama 1292: do
1.9 ! ohara 1293: eval ac_val=\$$ac_var
1.4 takayama 1294: case $ac_val in
1.9 ! ohara 1295: [\\/$]* | ?:[\\/]* ) continue;;
! 1296: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 ohara 1297: esac
1.9 ! ohara 1298: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1299: { (exit 1); exit 1; }; }
1.1 ohara 1300: done
1301:
1.4 takayama 1302: # There might be people who depend on the old broken behavior: `$host'
1303: # used to hold the argument of --host etc.
1304: # FIXME: To remove some day.
1305: build=$build_alias
1306: host=$host_alias
1307: target=$target_alias
1308:
1309: # FIXME: To remove some day.
1310: if test "x$host_alias" != x; then
1311: if test "x$build_alias" = x; then
1312: cross_compiling=maybe
1313: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314: If a cross compiler is detected then cross compile mode will be used." >&2
1315: elif test "x$build_alias" != "x$host_alias"; then
1316: cross_compiling=yes
1317: fi
1318: fi
1319:
1320: ac_tool_prefix=
1321: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 ohara 1322:
1.4 takayama 1323: test "$silent" = yes && exec 6>/dev/null
1.1 ohara 1324:
1325:
1.9 ! ohara 1326: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1327: ac_ls_di=`ls -di .` &&
! 1328: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1329: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1330: { (exit 1); exit 1; }; }
! 1331: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1332: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1333: { (exit 1); exit 1; }; }
! 1334:
! 1335:
1.1 ohara 1336: # Find the source files, if location was not specified.
1337: if test -z "$srcdir"; then
1338: ac_srcdir_defaulted=yes
1.9 ! ohara 1339: # Try the directory containing this script, then the parent directory.
! 1340: ac_confdir=`$as_dirname -- "$0" ||
1.4 takayama 1341: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 ! ohara 1342: X"$0" : 'X\(//\)[^/]' \| \
! 1343: X"$0" : 'X\(//\)$' \| \
! 1344: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.4 takayama 1345: echo X"$0" |
1.9 ! ohara 1346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1347: s//\1/
! 1348: q
! 1349: }
! 1350: /^X\(\/\/\)[^/].*/{
! 1351: s//\1/
! 1352: q
! 1353: }
! 1354: /^X\(\/\/\)$/{
! 1355: s//\1/
! 1356: q
! 1357: }
! 1358: /^X\(\/\).*/{
! 1359: s//\1/
! 1360: q
! 1361: }
! 1362: s/.*/./; q'`
1.1 ohara 1363: srcdir=$ac_confdir
1.9 ! ohara 1364: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 ohara 1365: srcdir=..
1366: fi
1367: else
1368: ac_srcdir_defaulted=no
1369: fi
1.9 ! ohara 1370: if test ! -r "$srcdir/$ac_unique_file"; then
! 1371: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1372: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.4 takayama 1373: { (exit 1); exit 1; }; }
1.1 ohara 1374: fi
1.9 ! ohara 1375: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1376: ac_abs_confdir=`(
! 1377: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
! 1378: { (exit 1); exit 1; }; }
! 1379: pwd)`
! 1380: # When building in place, set srcdir=.
! 1381: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1382: srcdir=.
! 1383: fi
! 1384: # Remove unnecessary trailing slashes from srcdir.
! 1385: # Double slashes in file names in object file debugging info
! 1386: # mess up M-x gdb in Emacs.
! 1387: case $srcdir in
! 1388: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1389: esac
! 1390: for ac_var in $ac_precious_vars; do
! 1391: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1392: eval ac_env_${ac_var}_value=\$${ac_var}
! 1393: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1394: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1395: done
1.4 takayama 1396:
1397: #
1398: # Report the --help message.
1399: #
1400: if test "$ac_init_help" = "long"; then
1401: # Omit some internal or obsolete options to make the list less imposing.
1402: # This message is too long to be a string in the A/UX 3.1 sh.
1403: cat <<_ACEOF
1404: \`configure' configures this package to adapt to many kinds of systems.
1405:
1406: Usage: $0 [OPTION]... [VAR=VALUE]...
1407:
1408: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409: VAR=VALUE. See below for descriptions of some of the useful variables.
1410:
1411: Defaults for the options are specified in brackets.
1412:
1413: Configuration:
1414: -h, --help display this help and exit
1415: --help=short display options specific to this package
1416: --help=recursive display the short help of all the included packages
1417: -V, --version display version information and exit
1418: -q, --quiet, --silent do not print \`checking...' messages
1419: --cache-file=FILE cache test results in FILE [disabled]
1420: -C, --config-cache alias for \`--cache-file=config.cache'
1421: -n, --no-create do not create output files
1422: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423:
1424: Installation directories:
1425: --prefix=PREFIX install architecture-independent files in PREFIX
1.9 ! ohara 1426: [$ac_default_prefix]
1.4 takayama 1427: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.9 ! ohara 1428: [PREFIX]
1.4 takayama 1429:
1430: By default, \`make install' will install all the files in
1431: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433: for instance \`--prefix=\$HOME'.
1434:
1435: For better control, use the options below.
1436:
1437: Fine tuning of the installation directories:
1438: --bindir=DIR user executables [EPREFIX/bin]
1439: --sbindir=DIR system admin executables [EPREFIX/sbin]
1440: --libexecdir=DIR program executables [EPREFIX/libexec]
1441: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444: --libdir=DIR object code libraries [EPREFIX/lib]
1445: --includedir=DIR C header files [PREFIX/include]
1446: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.9 ! ohara 1447: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1448: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1449: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1450: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1451: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1452: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
! 1453: --htmldir=DIR html documentation [DOCDIR]
! 1454: --dvidir=DIR dvi documentation [DOCDIR]
! 1455: --pdfdir=DIR pdf documentation [DOCDIR]
! 1456: --psdir=DIR ps documentation [DOCDIR]
1.4 takayama 1457: _ACEOF
1458:
1459: cat <<\_ACEOF
1460:
1.7 ohara 1461: Program names:
1462: --program-prefix=PREFIX prepend PREFIX to installed program names
1463: --program-suffix=SUFFIX append SUFFIX to installed program names
1464: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465:
1.4 takayama 1466: X features:
1467: --x-includes=DIR X include files are in DIR
1468: --x-libraries=DIR X library files are in DIR
1.5 ohara 1469:
1470: System types:
1471: --build=BUILD configure for building on BUILD [guessed]
1472: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473: --target=TARGET configure for building compilers for TARGET [HOST]
1.4 takayama 1474: _ACEOF
1475: fi
1476:
1477: if test -n "$ac_init_help"; then
1478:
1479: cat <<\_ACEOF
1.1 ohara 1480:
1.7 ohara 1481: Optional Features:
1482: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.9 ! ohara 1484: --enable-maintainer-mode enable make rules and dependencies not useful
! 1485: (and sometimes confusing) to the casual installer
! 1486: --disable-dependency-tracking speeds up one-time build
! 1487: --enable-dependency-tracking do not reject slow dependency extractors
! 1488: --enable-shared[=PKGS] build shared libraries [default=yes]
! 1489: --enable-static[=PKGS] build static libraries [default=yes]
! 1490: --enable-fast-install[=PKGS]
! 1491: optimize for fast installation [default=yes]
1.7 ohara 1492: --disable-libtool-lock avoid locking (might break parallel builds)
1493:
1.4 takayama 1494: Optional Packages:
1495: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.9 ! ohara 1497: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
! 1498: --with-pic try to use only PIC/non-PIC objects [default=use
! 1499: both]
! 1500: --with-tags[=TAGS] include additional configurations [automatic]
1.4 takayama 1501: --with-x use the X Window System
1502:
1503: Some influential environment variables:
1504: CC C compiler command
1505: CFLAGS C compiler flags
1506: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507: nonstandard directory <lib dir>
1.9 ! ohara 1508: LIBS libraries to pass to the linker, e.g. -l<library>
! 1509: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
! 1510: you have headers in a nonstandard directory <include dir>
1.4 takayama 1511: CPP C preprocessor
1.9 ! ohara 1512: CXX C++ compiler command
! 1513: CXXFLAGS C++ compiler flags
! 1514: CXXCPP C++ preprocessor
! 1515: F77 Fortran 77 compiler command
! 1516: FFLAGS Fortran 77 compiler flags
! 1517: XMKMF Path to xmkmf, Makefile generator for X Window System
1.4 takayama 1518:
1519: Use these variables to override the choices made by `configure' or to help
1520: it to find libraries and programs with nonstandard names/locations.
1521:
1522: _ACEOF
1.9 ! ohara 1523: ac_status=$?
1.4 takayama 1524: fi
1525:
1526: if test "$ac_init_help" = "recursive"; then
1527: # If there are subdirs, report their specific --help.
1528: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.9 ! ohara 1529: test -d "$ac_dir" || continue
1.4 takayama 1530: ac_builddir=.
1531:
1.9 ! ohara 1532: case "$ac_dir" in
! 1533: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1534: *)
1.4 takayama 1535: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.9 ! ohara 1536: # A ".." for each directory in $ac_dir_suffix.
! 1537: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 1538: case $ac_top_builddir_sub in
! 1539: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1540: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1541: esac ;;
! 1542: esac
! 1543: ac_abs_top_builddir=$ac_pwd
! 1544: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1545: # for backward compatibility:
! 1546: ac_top_builddir=$ac_top_build_prefix
1.4 takayama 1547:
1548: case $srcdir in
1.9 ! ohara 1549: .) # We are building in place.
1.4 takayama 1550: ac_srcdir=.
1.9 ! ohara 1551: ac_top_srcdir=$ac_top_builddir_sub
! 1552: ac_abs_top_srcdir=$ac_pwd ;;
! 1553: [\\/]* | ?:[\\/]* ) # Absolute name.
1.4 takayama 1554: ac_srcdir=$srcdir$ac_dir_suffix;
1.9 ! ohara 1555: ac_top_srcdir=$srcdir
! 1556: ac_abs_top_srcdir=$srcdir ;;
! 1557: *) # Relative name.
! 1558: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1559: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1560: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 1561: esac
! 1562: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
! 1563:
! 1564: cd "$ac_dir" || { ac_status=$?; continue; }
! 1565: # Check for guested configure.
! 1566: if test -f "$ac_srcdir/configure.gnu"; then
! 1567: echo &&
! 1568: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1569: elif test -f "$ac_srcdir/configure"; then
! 1570: echo &&
! 1571: $SHELL "$ac_srcdir/configure" --help=recursive
1.2 ohara 1572: else
1.4 takayama 1573: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.9 ! ohara 1574: fi || ac_status=$?
! 1575: cd "$ac_pwd" || { ac_status=$?; break; }
1.4 takayama 1576: done
1577: fi
1578:
1.9 ! ohara 1579: test -n "$ac_init_help" && exit $ac_status
1.4 takayama 1580: if $ac_init_version; then
1581: cat <<\_ACEOF
1.9 ! ohara 1582: configure
! 1583: generated by GNU Autoconf 2.61
1.4 takayama 1584:
1.9 ! ohara 1585: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1586: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.4 takayama 1587: This configure script is free software; the Free Software Foundation
1588: gives unlimited permission to copy, distribute and modify it.
1589: _ACEOF
1.9 ! ohara 1590: exit
1.4 takayama 1591: fi
1.9 ! ohara 1592: cat >config.log <<_ACEOF
1.4 takayama 1593: This file contains any messages produced by compilers while
1594: running configure, to aid debugging if configure makes a mistake.
1595:
1596: It was created by $as_me, which was
1.9 ! ohara 1597: generated by GNU Autoconf 2.61. Invocation command line was
1.4 takayama 1598:
1599: $ $0 $@
1600:
1601: _ACEOF
1.9 ! ohara 1602: exec 5>>config.log
1.4 takayama 1603: {
1604: cat <<_ASUNAME
1605: ## --------- ##
1606: ## Platform. ##
1607: ## --------- ##
1608:
1609: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614:
1615: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617:
1618: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.9 ! ohara 1621: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.4 takayama 1622: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625:
1626: _ASUNAME
1627:
1628: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629: for as_dir in $PATH
1630: do
1631: IFS=$as_save_IFS
1632: test -z "$as_dir" && as_dir=.
1633: echo "PATH: $as_dir"
1634: done
1.9 ! ohara 1635: IFS=$as_save_IFS
1.4 takayama 1636:
1637: } >&5
1638:
1639: cat >&5 <<_ACEOF
1640:
1641:
1642: ## ----------- ##
1643: ## Core tests. ##
1644: ## ----------- ##
1645:
1646: _ACEOF
1647:
1648:
1649: # Keep a trace of the command line.
1650: # Strip out --no-create and --no-recursion so they do not pile up.
1.9 ! ohara 1651: # Strip out --silent because we don't want to record it for future runs.
1.4 takayama 1652: # Also quote any args containing shell meta-characters.
1.9 ! ohara 1653: # Make two passes to allow for proper duplicate-argument suppression.
1.4 takayama 1654: ac_configure_args=
1.9 ! ohara 1655: ac_configure_args0=
! 1656: ac_configure_args1=
! 1657: ac_must_keep_next=false
! 1658: for ac_pass in 1 2
1.4 takayama 1659: do
1.9 ! ohara 1660: for ac_arg
! 1661: do
! 1662: case $ac_arg in
! 1663: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
! 1664: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 1665: | -silent | --silent | --silen | --sile | --sil)
! 1666: continue ;;
! 1667: *\'*)
! 1668: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 1669: esac
! 1670: case $ac_pass in
! 1671: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
! 1672: 2)
! 1673: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
! 1674: if test $ac_must_keep_next = true; then
! 1675: ac_must_keep_next=false # Got value, back to normal.
! 1676: else
! 1677: case $ac_arg in
! 1678: *=* | --config-cache | -C | -disable-* | --disable-* \
! 1679: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
! 1680: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
! 1681: | -with-* | --with-* | -without-* | --without-* | --x)
! 1682: case "$ac_configure_args0 " in
! 1683: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
! 1684: esac
! 1685: ;;
! 1686: -* ) ac_must_keep_next=true ;;
! 1687: esac
! 1688: fi
! 1689: ac_configure_args="$ac_configure_args '$ac_arg'"
! 1690: ;;
! 1691: esac
! 1692: done
1.4 takayama 1693: done
1.9 ! ohara 1694: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
! 1695: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.4 takayama 1696:
1697: # When interrupted or exit'd, cleanup temporary files, and complete
1698: # config.log. We remove comments because anyway the quotes in there
1699: # would cause problems or look ugly.
1.9 ! ohara 1700: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1701: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.4 takayama 1702: trap 'exit_status=$?
1703: # Save into config.log some information that might help in debugging.
1704: {
1705: echo
1.9 ! ohara 1706:
1.4 takayama 1707: cat <<\_ASBOX
1708: ## ---------------- ##
1709: ## Cache variables. ##
1710: ## ---------------- ##
1711: _ASBOX
1712: echo
1713: # The following way of writing the cache mishandles newlines in values,
1.9 ! ohara 1714: (
! 1715: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1716: eval ac_val=\$$ac_var
! 1717: case $ac_val in #(
! 1718: *${as_nl}*)
! 1719: case $ac_var in #(
! 1720: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 1721: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 1722: esac
! 1723: case $ac_var in #(
! 1724: _ | IFS | as_nl) ;; #(
! 1725: *) $as_unset $ac_var ;;
! 1726: esac ;;
! 1727: esac
! 1728: done
1.4 takayama 1729: (set) 2>&1 |
1.9 ! ohara 1730: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1731: *${as_nl}ac_space=\ *)
1.4 takayama 1732: sed -n \
1.9 ! ohara 1733: "s/'\''/'\''\\\\'\'''\''/g;
! 1734: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1735: ;; #(
1.4 takayama 1736: *)
1.9 ! ohara 1737: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.4 takayama 1738: ;;
1.9 ! ohara 1739: esac |
! 1740: sort
! 1741: )
! 1742: echo
! 1743:
! 1744: cat <<\_ASBOX
! 1745: ## ----------------- ##
! 1746: ## Output variables. ##
! 1747: ## ----------------- ##
! 1748: _ASBOX
! 1749: echo
! 1750: for ac_var in $ac_subst_vars
! 1751: do
! 1752: eval ac_val=\$$ac_var
! 1753: case $ac_val in
! 1754: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1755: esac
! 1756: echo "$ac_var='\''$ac_val'\''"
! 1757: done | sort
1.4 takayama 1758: echo
1.9 ! ohara 1759:
! 1760: if test -n "$ac_subst_files"; then
! 1761: cat <<\_ASBOX
! 1762: ## ------------------- ##
! 1763: ## File substitutions. ##
! 1764: ## ------------------- ##
! 1765: _ASBOX
! 1766: echo
! 1767: for ac_var in $ac_subst_files
! 1768: do
! 1769: eval ac_val=\$$ac_var
! 1770: case $ac_val in
! 1771: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1772: esac
! 1773: echo "$ac_var='\''$ac_val'\''"
! 1774: done | sort
! 1775: echo
! 1776: fi
! 1777:
1.4 takayama 1778: if test -s confdefs.h; then
1779: cat <<\_ASBOX
1780: ## ----------- ##
1781: ## confdefs.h. ##
1782: ## ----------- ##
1783: _ASBOX
1784: echo
1.9 ! ohara 1785: cat confdefs.h
1.4 takayama 1786: echo
1.2 ohara 1787: fi
1.4 takayama 1788: test "$ac_signal" != 0 &&
1789: echo "$as_me: caught signal $ac_signal"
1790: echo "$as_me: exit $exit_status"
1791: } >&5
1.9 ! ohara 1792: rm -f core *.core core.conftest.* &&
! 1793: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.4 takayama 1794: exit $exit_status
1.9 ! ohara 1795: ' 0
1.4 takayama 1796: for ac_signal in 1 2 13 15; do
1797: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798: done
1799: ac_signal=0
1800:
1801: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.9 ! ohara 1802: rm -f -r conftest* confdefs.h
1.4 takayama 1803:
1804: # Predefined preprocessor variables.
1805:
1806: cat >>confdefs.h <<_ACEOF
1807: #define PACKAGE_NAME "$PACKAGE_NAME"
1808: _ACEOF
1809:
1810:
1811: cat >>confdefs.h <<_ACEOF
1812: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813: _ACEOF
1814:
1815:
1816: cat >>confdefs.h <<_ACEOF
1817: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818: _ACEOF
1819:
1820:
1821: cat >>confdefs.h <<_ACEOF
1822: #define PACKAGE_STRING "$PACKAGE_STRING"
1823: _ACEOF
1824:
1825:
1826: cat >>confdefs.h <<_ACEOF
1827: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828: _ACEOF
1829:
1830:
1831: # Let the site file select an alternate cache file if it wants to.
1832: # Prefer explicitly selected file to automatically selected ones.
1.9 ! ohara 1833: if test -n "$CONFIG_SITE"; then
! 1834: set x "$CONFIG_SITE"
! 1835: elif test "x$prefix" != xNONE; then
! 1836: set x "$prefix/share/config.site" "$prefix/etc/config.site"
! 1837: else
! 1838: set x "$ac_default_prefix/share/config.site" \
! 1839: "$ac_default_prefix/etc/config.site"
1.1 ohara 1840: fi
1.9 ! ohara 1841: shift
! 1842: for ac_site_file
! 1843: do
1.1 ohara 1844: if test -r "$ac_site_file"; then
1.4 takayama 1845: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1846: echo "$as_me: loading site script $ac_site_file" >&6;}
1847: sed 's/^/| /' "$ac_site_file" >&5
1.1 ohara 1848: . "$ac_site_file"
1849: fi
1850: done
1851:
1852: if test -r "$cache_file"; then
1.4 takayama 1853: # Some versions of bash will fail to source /dev/null (special
1854: # files actually), so we avoid doing that.
1855: if test -f "$cache_file"; then
1856: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1857: echo "$as_me: loading cache $cache_file" >&6;}
1858: case $cache_file in
1.9 ! ohara 1859: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 1860: *) . "./$cache_file";;
1.4 takayama 1861: esac
1862: fi
1.1 ohara 1863: else
1.4 takayama 1864: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1865: echo "$as_me: creating cache $cache_file" >&6;}
1866: >$cache_file
1867: fi
1868:
1869: # Check that the precious variables saved in the cache have kept the same
1870: # value.
1871: ac_cache_corrupted=false
1.9 ! ohara 1872: for ac_var in $ac_precious_vars; do
1.4 takayama 1873: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874: eval ac_new_set=\$ac_env_${ac_var}_set
1.9 ! ohara 1875: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 1876: eval ac_new_val=\$ac_env_${ac_var}_value
1.4 takayama 1877: case $ac_old_set,$ac_new_set in
1878: set,)
1879: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881: ac_cache_corrupted=: ;;
1882: ,set)
1883: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885: ac_cache_corrupted=: ;;
1886: ,);;
1887: *)
1888: if test "x$ac_old_val" != "x$ac_new_val"; then
1.9 ! ohara 1889: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.4 takayama 1890: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.9 ! ohara 1891: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.4 takayama 1892: echo "$as_me: former value: $ac_old_val" >&2;}
1.9 ! ohara 1893: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.4 takayama 1894: echo "$as_me: current value: $ac_new_val" >&2;}
1.9 ! ohara 1895: ac_cache_corrupted=:
1.4 takayama 1896: fi;;
1897: esac
1898: # Pass precious variables to config.status.
1899: if test "$ac_new_set" = set; then
1900: case $ac_new_val in
1.9 ! ohara 1901: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.4 takayama 1902: *) ac_arg=$ac_var=$ac_new_val ;;
1903: esac
1904: case " $ac_configure_args " in
1905: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1906: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907: esac
1908: fi
1909: done
1910: if $ac_cache_corrupted; then
1911: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1912: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1913: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1914: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1915: { (exit 1); exit 1; }; }
1.1 ohara 1916: fi
1917:
1.4 takayama 1918:
1919:
1920:
1921:
1922:
1923:
1924:
1925:
1926:
1927:
1928:
1929:
1930:
1931:
1932:
1933:
1.9 ! ohara 1934: ac_ext=c
! 1935: ac_cpp='$CPP $CPPFLAGS'
! 1936: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1937: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1938: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 1939:
1.1 ohara 1940:
1941:
1.9 ! ohara 1942: am__api_version='1.10'
1.7 ohara 1943:
1.5 ohara 1944: ac_aux_dir=
1.9 ! ohara 1945: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 1946: if test -f "$ac_dir/install-sh"; then
1.5 ohara 1947: ac_aux_dir=$ac_dir
1948: ac_install_sh="$ac_aux_dir/install-sh -c"
1949: break
1.9 ! ohara 1950: elif test -f "$ac_dir/install.sh"; then
1.5 ohara 1951: ac_aux_dir=$ac_dir
1952: ac_install_sh="$ac_aux_dir/install.sh -c"
1953: break
1.9 ! ohara 1954: elif test -f "$ac_dir/shtool"; then
1.5 ohara 1955: ac_aux_dir=$ac_dir
1956: ac_install_sh="$ac_aux_dir/shtool install -c"
1957: break
1958: fi
1959: done
1960: if test -z "$ac_aux_dir"; then
1.9 ! ohara 1961: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
! 1962: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.5 ohara 1963: { (exit 1); exit 1; }; }
1964: fi
1.9 ! ohara 1965:
! 1966: # These three variables are undocumented and unsupported,
! 1967: # and are intended to be withdrawn in a future Autoconf release.
! 1968: # They can cause serious problems if a builder's source tree is in a directory
! 1969: # whose full name contains unusual characters.
! 1970: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 1971: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 1972: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 1973:
1.5 ohara 1974:
1.7 ohara 1975: # Find a good install program. We prefer a C program (faster),
1976: # so one script is as good as another. But avoid the broken or
1977: # incompatible versions:
1978: # SysV /etc/install, /usr/sbin/install
1979: # SunOS /usr/etc/install
1980: # IRIX /sbin/install
1981: # AIX /bin/install
1982: # AmigaOS /C/install, which installs bootblocks on floppy discs
1983: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1984: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1985: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.9 ! ohara 1986: # OS/2's system install, which has a completely different semantic
1.7 ohara 1987: # ./install, which can be erroneously created by make from ./install.sh.
1.9 ! ohara 1988: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1989: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.7 ohara 1990: if test -z "$INSTALL"; then
1991: if test "${ac_cv_path_install+set}" = set; then
1992: echo $ECHO_N "(cached) $ECHO_C" >&6
1993: else
1994: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995: for as_dir in $PATH
1996: do
1997: IFS=$as_save_IFS
1998: test -z "$as_dir" && as_dir=.
1999: # Account for people who put trailing slashes in PATH elements.
2000: case $as_dir/ in
2001: ./ | .// | /cC/* | \
2002: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.9 ! ohara 2003: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.7 ohara 2004: /usr/ucb/* ) ;;
2005: *)
2006: # OSF1 and SCO ODT 3.0 have their own names for install.
2007: # Don't use installbsd from OSF since it installs stuff as root
2008: # by default.
2009: for ac_prog in ginstall scoinst install; do
2010: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2011: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
! 2012: if test $ac_prog = install &&
! 2013: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 2014: # AIX install. It has an incompatible calling convention.
! 2015: :
! 2016: elif test $ac_prog = install &&
! 2017: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 2018: # program-specific install script used by HP pwplus--don't use.
! 2019: :
! 2020: else
! 2021: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 2022: break 3
! 2023: fi
! 2024: fi
1.7 ohara 2025: done
2026: done
2027: ;;
2028: esac
2029: done
1.9 ! ohara 2030: IFS=$as_save_IFS
1.7 ohara 2031:
2032:
2033: fi
2034: if test "${ac_cv_path_install+set}" = set; then
2035: INSTALL=$ac_cv_path_install
2036: else
1.9 ! ohara 2037: # As a last resort, use the slow shell script. Don't cache a
! 2038: # value for INSTALL within a source directory, because that will
1.7 ohara 2039: # break other packages using the cache if that directory is
1.9 ! ohara 2040: # removed, or if the value is a relative name.
1.7 ohara 2041: INSTALL=$ac_install_sh
2042: fi
2043: fi
1.9 ! ohara 2044: { echo "$as_me:$LINENO: result: $INSTALL" >&5
! 2045: echo "${ECHO_T}$INSTALL" >&6; }
1.7 ohara 2046:
2047: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2048: # It thinks the first close brace ends the variable substitution.
2049: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2050:
2051: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2052:
2053: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2054:
1.9 ! ohara 2055: { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 2056: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1.7 ohara 2057: # Just in case
2058: sleep 1
2059: echo timestamp > conftest.file
2060: # Do `set' in a subshell so we don't clobber the current shell's
2061: # arguments. Must try -L first in case configure is actually a
2062: # symlink; some systems play weird games with the mod time of symlinks
2063: # (eg FreeBSD returns the mod time of the symlink's containing
2064: # directory).
2065: if (
2066: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2067: if test "$*" = "X"; then
2068: # -L didn't work.
2069: set X `ls -t $srcdir/configure conftest.file`
2070: fi
2071: rm -f conftest.file
2072: if test "$*" != "X $srcdir/configure conftest.file" \
2073: && test "$*" != "X conftest.file $srcdir/configure"; then
2074:
2075: # If neither matched, then we have a broken ls. This can happen
2076: # if, for instance, CONFIG_SHELL is bash and it inherits a
2077: # broken ls alias from the environment. This has actually
2078: # happened. Such a system could not be considered "sane".
2079: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2080: alias in your environment" >&5
2081: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2082: alias in your environment" >&2;}
2083: { (exit 1); exit 1; }; }
2084: fi
2085:
2086: test "$2" = conftest.file
2087: )
2088: then
2089: # Ok.
2090: :
2091: else
2092: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2093: Check your system clock" >&5
2094: echo "$as_me: error: newly created file is older than distributed files!
2095: Check your system clock" >&2;}
2096: { (exit 1); exit 1; }; }
2097: fi
1.9 ! ohara 2098: { echo "$as_me:$LINENO: result: yes" >&5
! 2099: echo "${ECHO_T}yes" >&6; }
1.7 ohara 2100: test "$program_prefix" != NONE &&
1.9 ! ohara 2101: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.7 ohara 2102: # Use a double $ so make ignores it.
2103: test "$program_suffix" != NONE &&
1.9 ! ohara 2104: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.7 ohara 2105: # Double any \ or $. echo might interpret backslashes.
2106: # By default was `s,x,x', remove it if useless.
2107: cat <<\_ACEOF >conftest.sed
2108: s/[\\$]/&&/g;s/;s,x,x,$//
2109: _ACEOF
2110: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1.9 ! ohara 2111: rm -f conftest.sed
1.7 ohara 2112:
2113: # expand $ac_aux_dir to an absolute path
1.9 ! ohara 2114: am_aux_dir=`cd $ac_aux_dir && pwd`
1.7 ohara 2115:
2116: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117: # Use eval to expand $SHELL
2118: if eval "$MISSING --run true"; then
2119: am_missing_run="$MISSING --run "
2120: else
2121: am_missing_run=
1.9 ! ohara 2122: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
! 2123: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
! 2124: fi
! 2125:
! 2126: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
! 2127: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
! 2128: if test -z "$MKDIR_P"; then
! 2129: if test "${ac_cv_path_mkdir+set}" = set; then
! 2130: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2131: else
! 2132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2133: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
! 2134: do
! 2135: IFS=$as_save_IFS
! 2136: test -z "$as_dir" && as_dir=.
! 2137: for ac_prog in mkdir gmkdir; do
! 2138: for ac_exec_ext in '' $ac_executable_extensions; do
! 2139: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
! 2140: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 2141: 'mkdir (GNU coreutils) '* | \
! 2142: 'mkdir (coreutils) '* | \
! 2143: 'mkdir (fileutils) '4.1*)
! 2144: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
! 2145: break 3;;
! 2146: esac
! 2147: done
! 2148: done
! 2149: done
! 2150: IFS=$as_save_IFS
! 2151:
! 2152: fi
! 2153:
! 2154: if test "${ac_cv_path_mkdir+set}" = set; then
! 2155: MKDIR_P="$ac_cv_path_mkdir -p"
! 2156: else
! 2157: # As a last resort, use the slow shell script. Don't cache a
! 2158: # value for MKDIR_P within a source directory, because that will
! 2159: # break other packages using the cache if that directory is
! 2160: # removed, or if the value is a relative name.
! 2161: test -d ./--version && rmdir ./--version
! 2162: MKDIR_P="$ac_install_sh -d"
! 2163: fi
1.7 ohara 2164: fi
1.9 ! ohara 2165: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
! 2166: echo "${ECHO_T}$MKDIR_P" >&6; }
! 2167:
! 2168: mkdir_p="$MKDIR_P"
! 2169: case $mkdir_p in
! 2170: [\\/$]* | ?:[\\/]*) ;;
! 2171: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
! 2172: esac
1.7 ohara 2173:
2174: for ac_prog in gawk mawk nawk awk
2175: do
2176: # Extract the first word of "$ac_prog", so it can be a program name with args.
2177: set dummy $ac_prog; ac_word=$2
1.9 ! ohara 2178: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2179: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.7 ohara 2180: if test "${ac_cv_prog_AWK+set}" = set; then
2181: echo $ECHO_N "(cached) $ECHO_C" >&6
2182: else
2183: if test -n "$AWK"; then
2184: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2185: else
2186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187: for as_dir in $PATH
2188: do
2189: IFS=$as_save_IFS
2190: test -z "$as_dir" && as_dir=.
2191: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2192: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.7 ohara 2193: ac_cv_prog_AWK="$ac_prog"
2194: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195: break 2
2196: fi
2197: done
2198: done
1.9 ! ohara 2199: IFS=$as_save_IFS
1.7 ohara 2200:
2201: fi
2202: fi
2203: AWK=$ac_cv_prog_AWK
2204: if test -n "$AWK"; then
1.9 ! ohara 2205: { echo "$as_me:$LINENO: result: $AWK" >&5
! 2206: echo "${ECHO_T}$AWK" >&6; }
1.7 ohara 2207: else
1.9 ! ohara 2208: { echo "$as_me:$LINENO: result: no" >&5
! 2209: echo "${ECHO_T}no" >&6; }
1.7 ohara 2210: fi
2211:
1.9 ! ohara 2212:
1.7 ohara 2213: test -n "$AWK" && break
2214: done
2215:
1.9 ! ohara 2216: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 2217: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
! 2218: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 2219: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.7 ohara 2220: echo $ECHO_N "(cached) $ECHO_C" >&6
2221: else
2222: cat >conftest.make <<\_ACEOF
1.9 ! ohara 2223: SHELL = /bin/sh
1.7 ohara 2224: all:
1.9 ! ohara 2225: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.7 ohara 2226: _ACEOF
2227: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.9 ! ohara 2228: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 2229: *@@@%%%=?*=@@@%%%*)
! 2230: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 2231: *)
! 2232: eval ac_cv_prog_make_${ac_make}_set=no;;
! 2233: esac
1.7 ohara 2234: rm -f conftest.make
2235: fi
1.9 ! ohara 2236: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 2237: { echo "$as_me:$LINENO: result: yes" >&5
! 2238: echo "${ECHO_T}yes" >&6; }
1.7 ohara 2239: SET_MAKE=
2240: else
1.9 ! ohara 2241: { echo "$as_me:$LINENO: result: no" >&5
! 2242: echo "${ECHO_T}no" >&6; }
1.7 ohara 2243: SET_MAKE="MAKE=${MAKE-make}"
2244: fi
2245:
1.9 ! ohara 2246: rm -rf .tst 2>/dev/null
! 2247: mkdir .tst 2>/dev/null
! 2248: if test -d .tst; then
! 2249: am__leading_dot=.
! 2250: else
! 2251: am__leading_dot=_
! 2252: fi
! 2253: rmdir .tst 2>/dev/null
! 2254:
! 2255: if test "`cd $srcdir && pwd`" != "`pwd`"; then
! 2256: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
! 2257: # is not polluted with repeated "-I."
! 2258: am__isrc=' -I$(srcdir)'
! 2259: # test to see if srcdir already configured
! 2260: if test -f $srcdir/config.status; then
! 2261: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
! 2262: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
! 2263: { (exit 1); exit 1; }; }
! 2264: fi
1.7 ohara 2265: fi
2266:
1.9 ! ohara 2267: # test whether we have cygpath
! 2268: if test -z "$CYGPATH_W"; then
! 2269: if (cygpath --version) >/dev/null 2>/dev/null; then
! 2270: CYGPATH_W='cygpath -w'
! 2271: else
! 2272: CYGPATH_W=echo
! 2273: fi
1.7 ohara 2274: fi
2275:
2276:
1.9 ! ohara 2277: # Define the identity of the package.
! 2278: PACKAGE=ox_toolkit
! 2279: VERSION=20040628
1.7 ohara 2280:
2281:
2282: cat >>confdefs.h <<_ACEOF
2283: #define PACKAGE "$PACKAGE"
2284: _ACEOF
2285:
2286:
2287: cat >>confdefs.h <<_ACEOF
2288: #define VERSION "$VERSION"
2289: _ACEOF
2290:
2291: # Some tools Automake needs.
2292:
1.9 ! ohara 2293: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1.7 ohara 2294:
2295:
2296: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2297:
2298:
1.9 ! ohara 2299: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1.7 ohara 2300:
2301:
2302: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2303:
2304:
2305: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2306:
1.9 ! ohara 2307: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1.7 ohara 2308:
1.9 ! ohara 2309: # Installed binaries are usually stripped using `strip' when the user
! 2310: # run `make install-strip'. However `strip' might not be the right
! 2311: # tool to use in cross-compilation environments, therefore Automake
! 2312: # will honor the `STRIP' environment variable to overrule this program.
! 2313: if test "$cross_compiling" != no; then
! 2314: if test -n "$ac_tool_prefix"; then
! 2315: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 2316: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 2317: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2318: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 2319: if test "${ac_cv_prog_STRIP+set}" = set; then
! 2320: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2321: else
! 2322: if test -n "$STRIP"; then
! 2323: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.7 ohara 2324: else
1.9 ! ohara 2325: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2326: for as_dir in $PATH
! 2327: do
! 2328: IFS=$as_save_IFS
! 2329: test -z "$as_dir" && as_dir=.
! 2330: for ac_exec_ext in '' $ac_executable_extensions; do
! 2331: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2332: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 2333: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2334: break 2
! 2335: fi
! 2336: done
! 2337: done
! 2338: IFS=$as_save_IFS
1.7 ohara 2339:
1.9 ! ohara 2340: fi
! 2341: fi
! 2342: STRIP=$ac_cv_prog_STRIP
! 2343: if test -n "$STRIP"; then
! 2344: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 2345: echo "${ECHO_T}$STRIP" >&6; }
1.7 ohara 2346: else
1.9 ! ohara 2347: { echo "$as_me:$LINENO: result: no" >&5
! 2348: echo "${ECHO_T}no" >&6; }
1.7 ohara 2349: fi
2350:
2351:
1.9 ! ohara 2352: fi
! 2353: if test -z "$ac_cv_prog_STRIP"; then
! 2354: ac_ct_STRIP=$STRIP
! 2355: # Extract the first word of "strip", so it can be a program name with args.
! 2356: set dummy strip; ac_word=$2
! 2357: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2358: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 2359: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1.5 ohara 2360: echo $ECHO_N "(cached) $ECHO_C" >&6
2361: else
1.9 ! ohara 2362: if test -n "$ac_ct_STRIP"; then
! 2363: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.5 ohara 2364: else
1.9 ! ohara 2365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2366: for as_dir in $PATH
! 2367: do
! 2368: IFS=$as_save_IFS
! 2369: test -z "$as_dir" && as_dir=.
! 2370: for ac_exec_ext in '' $ac_executable_extensions; do
! 2371: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2372: ac_cv_prog_ac_ct_STRIP="strip"
! 2373: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2374: break 2
! 2375: fi
! 2376: done
! 2377: done
! 2378: IFS=$as_save_IFS
! 2379:
! 2380: fi
! 2381: fi
! 2382: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 2383: if test -n "$ac_ct_STRIP"; then
! 2384: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 2385: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
! 2386: else
! 2387: { echo "$as_me:$LINENO: result: no" >&5
! 2388: echo "${ECHO_T}no" >&6; }
! 2389: fi
! 2390:
! 2391: if test "x$ac_ct_STRIP" = x; then
! 2392: STRIP=":"
! 2393: else
! 2394: case $cross_compiling:$ac_tool_warned in
! 2395: yes:)
! 2396: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2397: whose name does not start with the host triplet. If you think this
! 2398: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 2399: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2400: whose name does not start with the host triplet. If you think this
! 2401: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 2402: ac_tool_warned=yes ;;
! 2403: esac
! 2404: STRIP=$ac_ct_STRIP
! 2405: fi
! 2406: else
! 2407: STRIP="$ac_cv_prog_STRIP"
! 2408: fi
! 2409:
! 2410: fi
! 2411: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
! 2412:
! 2413: # We need awk for the "check" target. The system "awk" is bad on
! 2414: # some platforms.
! 2415: # Always define AMTAR for backward compatibility.
! 2416:
! 2417: AMTAR=${AMTAR-"${am_missing_run}tar"}
! 2418:
! 2419: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
! 2420:
! 2421:
! 2422:
! 2423:
! 2424:
! 2425: { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
! 2426: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
! 2427: # Check whether --enable-maintainer-mode was given.
! 2428: if test "${enable_maintainer_mode+set}" = set; then
! 2429: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
! 2430: else
! 2431: USE_MAINTAINER_MODE=no
! 2432: fi
! 2433:
! 2434: { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
! 2435: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
! 2436: if test $USE_MAINTAINER_MODE = yes; then
! 2437: MAINTAINER_MODE_TRUE=
! 2438: MAINTAINER_MODE_FALSE='#'
! 2439: else
! 2440: MAINTAINER_MODE_TRUE='#'
! 2441: MAINTAINER_MODE_FALSE=
! 2442: fi
! 2443:
! 2444: MAINT=$MAINTAINER_MODE_TRUE
! 2445:
! 2446:
! 2447: # Make sure we can run config.sub.
! 2448: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 2449: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 2450: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
! 2451: { (exit 1); exit 1; }; }
! 2452:
! 2453: { echo "$as_me:$LINENO: checking build system type" >&5
! 2454: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
! 2455: if test "${ac_cv_build+set}" = set; then
! 2456: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2457: else
! 2458: ac_build_alias=$build_alias
! 2459: test "x$ac_build_alias" = x &&
! 2460: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 2461: test "x$ac_build_alias" = x &&
! 2462: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 2463: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 2464: { (exit 1); exit 1; }; }
! 2465: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 2466: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 2467: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
! 2468: { (exit 1); exit 1; }; }
! 2469:
! 2470: fi
! 2471: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 2472: echo "${ECHO_T}$ac_cv_build" >&6; }
! 2473: case $ac_cv_build in
! 2474: *-*-*) ;;
! 2475: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 2476: echo "$as_me: error: invalid value of canonical build" >&2;}
! 2477: { (exit 1); exit 1; }; };;
! 2478: esac
! 2479: build=$ac_cv_build
! 2480: ac_save_IFS=$IFS; IFS='-'
! 2481: set x $ac_cv_build
! 2482: shift
! 2483: build_cpu=$1
! 2484: build_vendor=$2
! 2485: shift; shift
! 2486: # Remember, the first character of IFS is used to create $*,
! 2487: # except with old shells:
! 2488: build_os=$*
! 2489: IFS=$ac_save_IFS
! 2490: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
! 2491:
! 2492:
! 2493: { echo "$as_me:$LINENO: checking host system type" >&5
! 2494: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
! 2495: if test "${ac_cv_host+set}" = set; then
! 2496: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2497: else
! 2498: if test "x$host_alias" = x; then
! 2499: ac_cv_host=$ac_cv_build
! 2500: else
! 2501: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 2502: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 2503: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.5 ohara 2504: { (exit 1); exit 1; }; }
1.9 ! ohara 2505: fi
1.5 ohara 2506:
2507: fi
1.9 ! ohara 2508: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 2509: echo "${ECHO_T}$ac_cv_host" >&6; }
! 2510: case $ac_cv_host in
! 2511: *-*-*) ;;
! 2512: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 2513: echo "$as_me: error: invalid value of canonical host" >&2;}
! 2514: { (exit 1); exit 1; }; };;
! 2515: esac
1.5 ohara 2516: host=$ac_cv_host
1.9 ! ohara 2517: ac_save_IFS=$IFS; IFS='-'
! 2518: set x $ac_cv_host
! 2519: shift
! 2520: host_cpu=$1
! 2521: host_vendor=$2
! 2522: shift; shift
! 2523: # Remember, the first character of IFS is used to create $*,
! 2524: # except with old shells:
! 2525: host_os=$*
! 2526: IFS=$ac_save_IFS
! 2527: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.5 ohara 2528:
2529:
1.9 ! ohara 2530: { echo "$as_me:$LINENO: checking target system type" >&5
! 2531: echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1.5 ohara 2532: if test "${ac_cv_target+set}" = set; then
2533: echo $ECHO_N "(cached) $ECHO_C" >&6
2534: else
1.9 ! ohara 2535: if test "x$target_alias" = x; then
! 2536: ac_cv_target=$ac_cv_host
! 2537: else
! 2538: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
! 2539: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
! 2540: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1.5 ohara 2541: { (exit 1); exit 1; }; }
1.9 ! ohara 2542: fi
1.5 ohara 2543:
2544: fi
1.9 ! ohara 2545: { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 2546: echo "${ECHO_T}$ac_cv_target" >&6; }
! 2547: case $ac_cv_target in
! 2548: *-*-*) ;;
! 2549: *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
! 2550: echo "$as_me: error: invalid value of canonical target" >&2;}
! 2551: { (exit 1); exit 1; }; };;
! 2552: esac
1.5 ohara 2553: target=$ac_cv_target
1.9 ! ohara 2554: ac_save_IFS=$IFS; IFS='-'
! 2555: set x $ac_cv_target
! 2556: shift
! 2557: target_cpu=$1
! 2558: target_vendor=$2
! 2559: shift; shift
! 2560: # Remember, the first character of IFS is used to create $*,
! 2561: # except with old shells:
! 2562: target_os=$*
! 2563: IFS=$ac_save_IFS
! 2564: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1.5 ohara 2565:
2566:
2567: # The aliases save the names the user supplied, while $host etc.
2568: # will get canonicalized.
2569: test -n "$target_alias" &&
2570: test "$program_prefix$program_suffix$program_transform_name" = \
2571: NONENONEs,x,x, &&
2572: program_prefix=${target_alias}-
1.4 takayama 2573: ac_ext=c
2574: ac_cpp='$CPP $CPPFLAGS'
2575: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578: if test -n "$ac_tool_prefix"; then
2579: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.9 ! ohara 2581: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2582: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4 takayama 2583: if test "${ac_cv_prog_CC+set}" = set; then
2584: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 2585: else
2586: if test -n "$CC"; then
2587: ac_cv_prog_CC="$CC" # Let the user override the test.
2588: else
1.4 takayama 2589: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590: for as_dir in $PATH
2591: do
2592: IFS=$as_save_IFS
2593: test -z "$as_dir" && as_dir=.
2594: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2595: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4 takayama 2596: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2597: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598: break 2
2599: fi
2600: done
2601: done
1.9 ! ohara 2602: IFS=$as_save_IFS
1.4 takayama 2603:
1.1 ohara 2604: fi
2605: fi
1.4 takayama 2606: CC=$ac_cv_prog_CC
1.1 ohara 2607: if test -n "$CC"; then
1.9 ! ohara 2608: { echo "$as_me:$LINENO: result: $CC" >&5
! 2609: echo "${ECHO_T}$CC" >&6; }
1.1 ohara 2610: else
1.9 ! ohara 2611: { echo "$as_me:$LINENO: result: no" >&5
! 2612: echo "${ECHO_T}no" >&6; }
1.1 ohara 2613: fi
2614:
1.9 ! ohara 2615:
1.4 takayama 2616: fi
2617: if test -z "$ac_cv_prog_CC"; then
2618: ac_ct_CC=$CC
2619: # Extract the first word of "gcc", so it can be a program name with args.
2620: set dummy gcc; ac_word=$2
1.9 ! ohara 2621: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2622: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4 takayama 2623: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2624: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 2625: else
1.4 takayama 2626: if test -n "$ac_ct_CC"; then
2627: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 ohara 2628: else
1.4 takayama 2629: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630: for as_dir in $PATH
2631: do
2632: IFS=$as_save_IFS
2633: test -z "$as_dir" && as_dir=.
2634: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2635: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4 takayama 2636: ac_cv_prog_ac_ct_CC="gcc"
2637: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638: break 2
1.1 ohara 2639: fi
1.4 takayama 2640: done
2641: done
1.9 ! ohara 2642: IFS=$as_save_IFS
1.4 takayama 2643:
1.1 ohara 2644: fi
2645: fi
1.4 takayama 2646: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647: if test -n "$ac_ct_CC"; then
1.9 ! ohara 2648: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2649: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.4 takayama 2650: else
1.9 ! ohara 2651: { echo "$as_me:$LINENO: result: no" >&5
! 2652: echo "${ECHO_T}no" >&6; }
1.1 ohara 2653: fi
1.4 takayama 2654:
1.9 ! ohara 2655: if test "x$ac_ct_CC" = x; then
! 2656: CC=""
! 2657: else
! 2658: case $cross_compiling:$ac_tool_warned in
! 2659: yes:)
! 2660: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2661: whose name does not start with the host triplet. If you think this
! 2662: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 2663: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2664: whose name does not start with the host triplet. If you think this
! 2665: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 2666: ac_tool_warned=yes ;;
! 2667: esac
! 2668: CC=$ac_ct_CC
! 2669: fi
1.1 ohara 2670: else
1.4 takayama 2671: CC="$ac_cv_prog_CC"
1.1 ohara 2672: fi
2673:
1.4 takayama 2674: if test -z "$CC"; then
1.9 ! ohara 2675: if test -n "$ac_tool_prefix"; then
! 2676: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.4 takayama 2677: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.9 ! ohara 2678: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2679: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4 takayama 2680: if test "${ac_cv_prog_CC+set}" = set; then
2681: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 2682: else
2683: if test -n "$CC"; then
2684: ac_cv_prog_CC="$CC" # Let the user override the test.
2685: else
1.4 takayama 2686: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687: for as_dir in $PATH
2688: do
2689: IFS=$as_save_IFS
2690: test -z "$as_dir" && as_dir=.
2691: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2692: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4 takayama 2693: ac_cv_prog_CC="${ac_tool_prefix}cc"
2694: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695: break 2
2696: fi
2697: done
2698: done
1.9 ! ohara 2699: IFS=$as_save_IFS
1.4 takayama 2700:
1.1 ohara 2701: fi
2702: fi
1.4 takayama 2703: CC=$ac_cv_prog_CC
1.1 ohara 2704: if test -n "$CC"; then
1.9 ! ohara 2705: { echo "$as_me:$LINENO: result: $CC" >&5
! 2706: echo "${ECHO_T}$CC" >&6; }
1.1 ohara 2707: else
1.9 ! ohara 2708: { echo "$as_me:$LINENO: result: no" >&5
! 2709: echo "${ECHO_T}no" >&6; }
1.4 takayama 2710: fi
2711:
1.9 ! ohara 2712:
1.1 ohara 2713: fi
1.4 takayama 2714: fi
2715: if test -z "$CC"; then
2716: # Extract the first word of "cc", so it can be a program name with args.
2717: set dummy cc; ac_word=$2
1.9 ! ohara 2718: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2719: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4 takayama 2720: if test "${ac_cv_prog_CC+set}" = set; then
2721: echo $ECHO_N "(cached) $ECHO_C" >&6
2722: else
2723: if test -n "$CC"; then
2724: ac_cv_prog_CC="$CC" # Let the user override the test.
2725: else
2726: ac_prog_rejected=no
2727: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728: for as_dir in $PATH
2729: do
2730: IFS=$as_save_IFS
2731: test -z "$as_dir" && as_dir=.
2732: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2733: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4 takayama 2734: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2735: ac_prog_rejected=yes
2736: continue
2737: fi
2738: ac_cv_prog_CC="cc"
2739: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740: break 2
2741: fi
2742: done
2743: done
1.9 ! ohara 2744: IFS=$as_save_IFS
1.4 takayama 2745:
2746: if test $ac_prog_rejected = yes; then
2747: # We found a bogon in the path, so make sure we never use it.
2748: set dummy $ac_cv_prog_CC
2749: shift
2750: if test $# != 0; then
2751: # We chose a different compiler from the bogus one.
2752: # However, it has the same basename, so the bogon will be chosen
2753: # first if we set CC to just the basename; use the full file name.
2754: shift
1.9 ! ohara 2755: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 ohara 2756: fi
1.4 takayama 2757: fi
2758: fi
2759: fi
2760: CC=$ac_cv_prog_CC
2761: if test -n "$CC"; then
1.9 ! ohara 2762: { echo "$as_me:$LINENO: result: $CC" >&5
! 2763: echo "${ECHO_T}$CC" >&6; }
1.1 ohara 2764: else
1.9 ! ohara 2765: { echo "$as_me:$LINENO: result: no" >&5
! 2766: echo "${ECHO_T}no" >&6; }
1.4 takayama 2767: fi
2768:
1.9 ! ohara 2769:
1.1 ohara 2770: fi
1.4 takayama 2771: if test -z "$CC"; then
2772: if test -n "$ac_tool_prefix"; then
1.9 ! ohara 2773: for ac_prog in cl.exe
1.4 takayama 2774: do
2775: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.9 ! ohara 2777: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2778: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4 takayama 2779: if test "${ac_cv_prog_CC+set}" = set; then
2780: echo $ECHO_N "(cached) $ECHO_C" >&6
2781: else
2782: if test -n "$CC"; then
2783: ac_cv_prog_CC="$CC" # Let the user override the test.
2784: else
2785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786: for as_dir in $PATH
2787: do
2788: IFS=$as_save_IFS
2789: test -z "$as_dir" && as_dir=.
2790: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2791: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4 takayama 2792: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2793: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794: break 2
2795: fi
2796: done
2797: done
1.9 ! ohara 2798: IFS=$as_save_IFS
1.1 ohara 2799:
2800: fi
1.4 takayama 2801: fi
2802: CC=$ac_cv_prog_CC
2803: if test -n "$CC"; then
1.9 ! ohara 2804: { echo "$as_me:$LINENO: result: $CC" >&5
! 2805: echo "${ECHO_T}$CC" >&6; }
1.4 takayama 2806: else
1.9 ! ohara 2807: { echo "$as_me:$LINENO: result: no" >&5
! 2808: echo "${ECHO_T}no" >&6; }
1.4 takayama 2809: fi
1.1 ohara 2810:
1.9 ! ohara 2811:
1.4 takayama 2812: test -n "$CC" && break
2813: done
2814: fi
2815: if test -z "$CC"; then
2816: ac_ct_CC=$CC
1.9 ! ohara 2817: for ac_prog in cl.exe
1.4 takayama 2818: do
2819: # Extract the first word of "$ac_prog", so it can be a program name with args.
2820: set dummy $ac_prog; ac_word=$2
1.9 ! ohara 2821: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2822: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.4 takayama 2823: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2824: echo $ECHO_N "(cached) $ECHO_C" >&6
2825: else
2826: if test -n "$ac_ct_CC"; then
2827: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 ohara 2828: else
1.4 takayama 2829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830: for as_dir in $PATH
2831: do
2832: IFS=$as_save_IFS
2833: test -z "$as_dir" && as_dir=.
2834: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 2835: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.4 takayama 2836: ac_cv_prog_ac_ct_CC="$ac_prog"
2837: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838: break 2
2839: fi
2840: done
2841: done
1.9 ! ohara 2842: IFS=$as_save_IFS
1.4 takayama 2843:
2844: fi
2845: fi
2846: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847: if test -n "$ac_ct_CC"; then
1.9 ! ohara 2848: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2849: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 ohara 2850: else
1.9 ! ohara 2851: { echo "$as_me:$LINENO: result: no" >&5
! 2852: echo "${ECHO_T}no" >&6; }
1.4 takayama 2853: fi
2854:
1.9 ! ohara 2855:
1.4 takayama 2856: test -n "$ac_ct_CC" && break
2857: done
2858:
1.9 ! ohara 2859: if test "x$ac_ct_CC" = x; then
! 2860: CC=""
! 2861: else
! 2862: case $cross_compiling:$ac_tool_warned in
! 2863: yes:)
! 2864: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2865: whose name does not start with the host triplet. If you think this
! 2866: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 2867: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2868: whose name does not start with the host triplet. If you think this
! 2869: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 2870: ac_tool_warned=yes ;;
! 2871: esac
! 2872: CC=$ac_ct_CC
! 2873: fi
1.1 ohara 2874: fi
1.4 takayama 2875:
1.1 ohara 2876: fi
2877:
2878:
1.9 ! ohara 2879: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
! 2880: See \`config.log' for more details." >&5
! 2881: echo "$as_me: error: no acceptable C compiler found in \$PATH
! 2882: See \`config.log' for more details." >&2;}
1.4 takayama 2883: { (exit 1); exit 1; }; }
2884:
2885: # Provide some information about the compiler.
1.9 ! ohara 2886: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.4 takayama 2887: ac_compiler=`set X $ac_compile; echo $2`
1.9 ! ohara 2888: { (ac_try="$ac_compiler --version >&5"
! 2889: case "(($ac_try" in
! 2890: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2891: *) ac_try_echo=$ac_try;;
! 2892: esac
! 2893: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2894: (eval "$ac_compiler --version >&5") 2>&5
1.4 takayama 2895: ac_status=$?
2896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897: (exit $ac_status); }
1.9 ! ohara 2898: { (ac_try="$ac_compiler -v >&5"
! 2899: case "(($ac_try" in
! 2900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2901: *) ac_try_echo=$ac_try;;
! 2902: esac
! 2903: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2904: (eval "$ac_compiler -v >&5") 2>&5
1.4 takayama 2905: ac_status=$?
2906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907: (exit $ac_status); }
1.9 ! ohara 2908: { (ac_try="$ac_compiler -V >&5"
! 2909: case "(($ac_try" in
! 2910: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2911: *) ac_try_echo=$ac_try;;
! 2912: esac
! 2913: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2914: (eval "$ac_compiler -V >&5") 2>&5
1.4 takayama 2915: ac_status=$?
2916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917: (exit $ac_status); }
2918:
2919: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 2920: /* confdefs.h. */
! 2921: _ACEOF
! 2922: cat confdefs.h >>conftest.$ac_ext
! 2923: cat >>conftest.$ac_ext <<_ACEOF
! 2924: /* end confdefs.h. */
1.4 takayama 2925:
2926: int
2927: main ()
2928: {
2929:
2930: ;
2931: return 0;
2932: }
2933: _ACEOF
2934: ac_clean_files_save=$ac_clean_files
1.9 ! ohara 2935: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.4 takayama 2936: # Try to create an executable without -o first, disregard a.out.
2937: # It will help us diagnose broken compilers, and finding out an intuition
2938: # of exeext.
1.9 ! ohara 2939: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2940: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.4 takayama 2941: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.9 ! ohara 2942: #
! 2943: # List of possible output files, starting from the most likely.
! 2944: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 2945: # only as a last resort. b.out is created by i960 compilers.
! 2946: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 2947: #
! 2948: # The IRIX 6 linker writes into existing files which may not be
! 2949: # executable, retaining their permissions. Remove them first so a
! 2950: # subsequent execution test works.
! 2951: ac_rmfiles=
! 2952: for ac_file in $ac_files
! 2953: do
! 2954: case $ac_file in
! 2955: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
! 2956: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 2957: esac
! 2958: done
! 2959: rm -f $ac_rmfiles
! 2960:
! 2961: if { (ac_try="$ac_link_default"
! 2962: case "(($ac_try" in
! 2963: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2964: *) ac_try_echo=$ac_try;;
! 2965: esac
! 2966: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2967: (eval "$ac_link_default") 2>&5
1.4 takayama 2968: ac_status=$?
2969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970: (exit $ac_status); }; then
1.9 ! ohara 2971: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 2972: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 2973: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 2974: # so that the user can short-circuit this test for compilers unknown to
! 2975: # Autoconf.
! 2976: for ac_file in $ac_files ''
! 2977: do
! 2978: test -f "$ac_file" || continue
1.4 takayama 2979: case $ac_file in
1.9 ! ohara 2980: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
! 2981: ;;
! 2982: [ab].out )
! 2983: # We found the default executable, but exeext='' is most
! 2984: # certainly right.
! 2985: break;;
! 2986: *.* )
! 2987: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 2988: then :; else
! 2989: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2990: fi
! 2991: # We set ac_cv_exeext here because the later test for it is not
! 2992: # safe: cross compilers may not add the suffix if given an `-o'
! 2993: # argument, so we may need to know it at that point already.
! 2994: # Even if this section looks crufty: it has the advantage of
! 2995: # actually working.
! 2996: break;;
! 2997: * )
! 2998: break;;
1.4 takayama 2999: esac
3000: done
1.9 ! ohara 3001: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 3002:
1.1 ohara 3003: else
1.9 ! ohara 3004: ac_file=''
! 3005: fi
! 3006:
! 3007: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 3008: echo "${ECHO_T}$ac_file" >&6; }
! 3009: if test -z "$ac_file"; then
1.4 takayama 3010: echo "$as_me: failed program was:" >&5
1.9 ! ohara 3011: sed 's/^/| /' conftest.$ac_ext >&5
! 3012:
! 3013: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
! 3014: See \`config.log' for more details." >&5
! 3015: echo "$as_me: error: C compiler cannot create executables
! 3016: See \`config.log' for more details." >&2;}
1.4 takayama 3017: { (exit 77); exit 77; }; }
3018: fi
3019:
3020: ac_exeext=$ac_cv_exeext
3021:
1.9 ! ohara 3022: # Check that the compiler produces executables we can run. If not, either
1.4 takayama 3023: # the compiler is broken, or we cross compile.
1.9 ! ohara 3024: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 3025: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.4 takayama 3026: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3027: # If not cross compiling, check that we can run a simple program.
3028: if test "$cross_compiling" != yes; then
3029: if { ac_try='./$ac_file'
1.9 ! ohara 3030: { (case "(($ac_try" in
! 3031: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3032: *) ac_try_echo=$ac_try;;
! 3033: esac
! 3034: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3035: (eval "$ac_try") 2>&5
1.4 takayama 3036: ac_status=$?
3037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038: (exit $ac_status); }; }; then
3039: cross_compiling=no
3040: else
3041: if test "$cross_compiling" = maybe; then
3042: cross_compiling=yes
3043: else
3044: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.9 ! ohara 3045: If you meant to cross compile, use \`--host'.
! 3046: See \`config.log' for more details." >&5
1.4 takayama 3047: echo "$as_me: error: cannot run C compiled programs.
1.9 ! ohara 3048: If you meant to cross compile, use \`--host'.
! 3049: See \`config.log' for more details." >&2;}
1.4 takayama 3050: { (exit 1); exit 1; }; }
3051: fi
3052: fi
1.1 ohara 3053: fi
1.9 ! ohara 3054: { echo "$as_me:$LINENO: result: yes" >&5
! 3055: echo "${ECHO_T}yes" >&6; }
1.4 takayama 3056:
1.9 ! ohara 3057: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.4 takayama 3058: ac_clean_files=$ac_clean_files_save
1.9 ! ohara 3059: # Check that the compiler produces executables we can run. If not, either
1.4 takayama 3060: # the compiler is broken, or we cross compile.
1.9 ! ohara 3061: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 3062: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 3063: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 3064: echo "${ECHO_T}$cross_compiling" >&6; }
! 3065:
! 3066: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 3067: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 3068: if { (ac_try="$ac_link"
! 3069: case "(($ac_try" in
! 3070: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3071: *) ac_try_echo=$ac_try;;
! 3072: esac
! 3073: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3074: (eval "$ac_link") 2>&5
1.4 takayama 3075: ac_status=$?
3076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077: (exit $ac_status); }; then
3078: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3079: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3080: # work properly (i.e., refer to `conftest.exe'), while it won't with
3081: # `rm'.
1.9 ! ohara 3082: for ac_file in conftest.exe conftest conftest.*; do
! 3083: test -f "$ac_file" || continue
1.4 takayama 3084: case $ac_file in
1.9 ! ohara 3085: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.4 takayama 3086: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.9 ! ohara 3087: break;;
1.4 takayama 3088: * ) break;;
3089: esac
3090: done
3091: else
1.9 ! ohara 3092: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
! 3093: See \`config.log' for more details." >&5
! 3094: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
! 3095: See \`config.log' for more details." >&2;}
1.4 takayama 3096: { (exit 1); exit 1; }; }
3097: fi
3098:
3099: rm -f conftest$ac_cv_exeext
1.9 ! ohara 3100: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 3101: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.4 takayama 3102:
3103: rm -f conftest.$ac_ext
3104: EXEEXT=$ac_cv_exeext
3105: ac_exeext=$EXEEXT
1.9 ! ohara 3106: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 3107: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.4 takayama 3108: if test "${ac_cv_objext+set}" = set; then
3109: echo $ECHO_N "(cached) $ECHO_C" >&6
3110: else
3111: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 3112: /* confdefs.h. */
! 3113: _ACEOF
! 3114: cat confdefs.h >>conftest.$ac_ext
! 3115: cat >>conftest.$ac_ext <<_ACEOF
! 3116: /* end confdefs.h. */
1.4 takayama 3117:
3118: int
3119: main ()
3120: {
3121:
3122: ;
3123: return 0;
3124: }
3125: _ACEOF
3126: rm -f conftest.o conftest.obj
1.9 ! ohara 3127: if { (ac_try="$ac_compile"
! 3128: case "(($ac_try" in
! 3129: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3130: *) ac_try_echo=$ac_try;;
! 3131: esac
! 3132: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3133: (eval "$ac_compile") 2>&5
1.4 takayama 3134: ac_status=$?
3135: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136: (exit $ac_status); }; then
1.9 ! ohara 3137: for ac_file in conftest.o conftest.obj conftest.*; do
! 3138: test -f "$ac_file" || continue;
1.4 takayama 3139: case $ac_file in
1.9 ! ohara 3140: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.4 takayama 3141: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3142: break;;
3143: esac
3144: done
3145: else
3146: echo "$as_me: failed program was:" >&5
1.9 ! ohara 3147: sed 's/^/| /' conftest.$ac_ext >&5
! 3148:
! 3149: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
! 3150: See \`config.log' for more details." >&5
! 3151: echo "$as_me: error: cannot compute suffix of object files: cannot compile
! 3152: See \`config.log' for more details." >&2;}
1.4 takayama 3153: { (exit 1); exit 1; }; }
3154: fi
3155:
3156: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3157: fi
1.9 ! ohara 3158: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 3159: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.4 takayama 3160: OBJEXT=$ac_cv_objext
3161: ac_objext=$OBJEXT
1.9 ! ohara 3162: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 3163: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.4 takayama 3164: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3165: echo $ECHO_N "(cached) $ECHO_C" >&6
3166: else
3167: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 3168: /* confdefs.h. */
! 3169: _ACEOF
! 3170: cat confdefs.h >>conftest.$ac_ext
! 3171: cat >>conftest.$ac_ext <<_ACEOF
! 3172: /* end confdefs.h. */
1.4 takayama 3173:
3174: int
3175: main ()
3176: {
3177: #ifndef __GNUC__
3178: choke me
3179: #endif
1.1 ohara 3180:
1.4 takayama 3181: ;
3182: return 0;
3183: }
3184: _ACEOF
3185: rm -f conftest.$ac_objext
1.9 ! ohara 3186: if { (ac_try="$ac_compile"
! 3187: case "(($ac_try" in
! 3188: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3189: *) ac_try_echo=$ac_try;;
! 3190: esac
! 3191: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3192: (eval "$ac_compile") 2>conftest.er1
1.4 takayama 3193: ac_status=$?
1.9 ! ohara 3194: grep -v '^ *+' conftest.er1 >conftest.err
! 3195: rm -f conftest.er1
! 3196: cat conftest.err >&5
1.4 takayama 3197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 3198: (exit $ac_status); } && {
! 3199: test -z "$ac_c_werror_flag" ||
! 3200: test ! -s conftest.err
! 3201: } && test -s conftest.$ac_objext; then
1.4 takayama 3202: ac_compiler_gnu=yes
3203: else
3204: echo "$as_me: failed program was:" >&5
1.9 ! ohara 3205: sed 's/^/| /' conftest.$ac_ext >&5
! 3206:
! 3207: ac_compiler_gnu=no
1.4 takayama 3208: fi
1.9 ! ohara 3209:
! 3210: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.4 takayama 3211: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3212:
3213: fi
1.9 ! ohara 3214: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3215: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.4 takayama 3216: GCC=`test $ac_compiler_gnu = yes && echo yes`
3217: ac_test_CFLAGS=${CFLAGS+set}
3218: ac_save_CFLAGS=$CFLAGS
1.9 ! ohara 3219: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3220: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.4 takayama 3221: if test "${ac_cv_prog_cc_g+set}" = set; then
3222: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 3223: else
1.9 ! ohara 3224: ac_save_c_werror_flag=$ac_c_werror_flag
! 3225: ac_c_werror_flag=yes
! 3226: ac_cv_prog_cc_g=no
! 3227: CFLAGS="-g"
! 3228: cat >conftest.$ac_ext <<_ACEOF
! 3229: /* confdefs.h. */
! 3230: _ACEOF
! 3231: cat confdefs.h >>conftest.$ac_ext
! 3232: cat >>conftest.$ac_ext <<_ACEOF
! 3233: /* end confdefs.h. */
! 3234:
! 3235: int
! 3236: main ()
! 3237: {
! 3238:
! 3239: ;
! 3240: return 0;
! 3241: }
! 3242: _ACEOF
! 3243: rm -f conftest.$ac_objext
! 3244: if { (ac_try="$ac_compile"
! 3245: case "(($ac_try" in
! 3246: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3247: *) ac_try_echo=$ac_try;;
! 3248: esac
! 3249: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3250: (eval "$ac_compile") 2>conftest.er1
! 3251: ac_status=$?
! 3252: grep -v '^ *+' conftest.er1 >conftest.err
! 3253: rm -f conftest.er1
! 3254: cat conftest.err >&5
! 3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3256: (exit $ac_status); } && {
! 3257: test -z "$ac_c_werror_flag" ||
! 3258: test ! -s conftest.err
! 3259: } && test -s conftest.$ac_objext; then
! 3260: ac_cv_prog_cc_g=yes
! 3261: else
! 3262: echo "$as_me: failed program was:" >&5
! 3263: sed 's/^/| /' conftest.$ac_ext >&5
! 3264:
! 3265: CFLAGS=""
! 3266: cat >conftest.$ac_ext <<_ACEOF
! 3267: /* confdefs.h. */
! 3268: _ACEOF
! 3269: cat confdefs.h >>conftest.$ac_ext
! 3270: cat >>conftest.$ac_ext <<_ACEOF
! 3271: /* end confdefs.h. */
1.4 takayama 3272:
3273: int
3274: main ()
3275: {
3276:
3277: ;
3278: return 0;
3279: }
3280: _ACEOF
3281: rm -f conftest.$ac_objext
1.9 ! ohara 3282: if { (ac_try="$ac_compile"
! 3283: case "(($ac_try" in
! 3284: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3285: *) ac_try_echo=$ac_try;;
! 3286: esac
! 3287: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3288: (eval "$ac_compile") 2>conftest.er1
1.4 takayama 3289: ac_status=$?
1.9 ! ohara 3290: grep -v '^ *+' conftest.er1 >conftest.err
! 3291: rm -f conftest.er1
! 3292: cat conftest.err >&5
1.4 takayama 3293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 3294: (exit $ac_status); } && {
! 3295: test -z "$ac_c_werror_flag" ||
! 3296: test ! -s conftest.err
! 3297: } && test -s conftest.$ac_objext; then
! 3298: :
! 3299: else
! 3300: echo "$as_me: failed program was:" >&5
! 3301: sed 's/^/| /' conftest.$ac_ext >&5
! 3302:
! 3303: ac_c_werror_flag=$ac_save_c_werror_flag
! 3304: CFLAGS="-g"
! 3305: cat >conftest.$ac_ext <<_ACEOF
! 3306: /* confdefs.h. */
! 3307: _ACEOF
! 3308: cat confdefs.h >>conftest.$ac_ext
! 3309: cat >>conftest.$ac_ext <<_ACEOF
! 3310: /* end confdefs.h. */
! 3311:
! 3312: int
! 3313: main ()
! 3314: {
! 3315:
! 3316: ;
! 3317: return 0;
! 3318: }
! 3319: _ACEOF
! 3320: rm -f conftest.$ac_objext
! 3321: if { (ac_try="$ac_compile"
! 3322: case "(($ac_try" in
! 3323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3324: *) ac_try_echo=$ac_try;;
! 3325: esac
! 3326: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3327: (eval "$ac_compile") 2>conftest.er1
1.4 takayama 3328: ac_status=$?
1.9 ! ohara 3329: grep -v '^ *+' conftest.er1 >conftest.err
! 3330: rm -f conftest.er1
! 3331: cat conftest.err >&5
1.4 takayama 3332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 3333: (exit $ac_status); } && {
! 3334: test -z "$ac_c_werror_flag" ||
! 3335: test ! -s conftest.err
! 3336: } && test -s conftest.$ac_objext; then
1.1 ohara 3337: ac_cv_prog_cc_g=yes
3338: else
1.4 takayama 3339: echo "$as_me: failed program was:" >&5
1.9 ! ohara 3340: sed 's/^/| /' conftest.$ac_ext >&5
! 3341:
! 3342:
! 3343: fi
! 3344:
! 3345: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3346: fi
! 3347:
! 3348: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 ohara 3349: fi
1.9 ! ohara 3350:
! 3351: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3352: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 ohara 3353: fi
1.9 ! ohara 3354: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3355: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1 ohara 3356: if test "$ac_test_CFLAGS" = set; then
1.4 takayama 3357: CFLAGS=$ac_save_CFLAGS
1.1 ohara 3358: elif test $ac_cv_prog_cc_g = yes; then
3359: if test "$GCC" = yes; then
3360: CFLAGS="-g -O2"
3361: else
3362: CFLAGS="-g"
3363: fi
3364: else
3365: if test "$GCC" = yes; then
3366: CFLAGS="-O2"
3367: else
3368: CFLAGS=
3369: fi
3370: fi
1.9 ! ohara 3371: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 3372: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 3373: if test "${ac_cv_prog_cc_c89+set}" = set; then
! 3374: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3375: else
! 3376: ac_cv_prog_cc_c89=no
! 3377: ac_save_CC=$CC
1.4 takayama 3378: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 3379: /* confdefs.h. */
1.4 takayama 3380: _ACEOF
1.9 ! ohara 3381: cat confdefs.h >>conftest.$ac_ext
! 3382: cat >>conftest.$ac_ext <<_ACEOF
! 3383: /* end confdefs.h. */
! 3384: #include <stdarg.h>
! 3385: #include <stdio.h>
! 3386: #include <sys/types.h>
! 3387: #include <sys/stat.h>
! 3388: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 3389: struct buf { int x; };
! 3390: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 3391: static char *e (p, i)
! 3392: char **p;
! 3393: int i;
! 3394: {
! 3395: return p[i];
! 3396: }
! 3397: static char *f (char * (*g) (char **, int), char **p, ...)
! 3398: {
! 3399: char *s;
! 3400: va_list v;
! 3401: va_start (v,p);
! 3402: s = g (p, va_arg (v,int));
! 3403: va_end (v);
! 3404: return s;
! 3405: }
! 3406:
! 3407: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 3408: function prototypes and stuff, but not '\xHH' hex character constants.
! 3409: These don't provoke an error unfortunately, instead are silently treated
! 3410: as 'x'. The following induces an error, until -std is added to get
! 3411: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
! 3412: array size at least. It's necessary to write '\x00'==0 to get something
! 3413: that's true only with -std. */
! 3414: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
! 3415:
! 3416: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 3417: inside strings and character constants. */
! 3418: #define FOO(x) 'x'
! 3419: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 3420:
! 3421: int test (int i, double x);
! 3422: struct s1 {int (*f) (int a);};
! 3423: struct s2 {int (*f) (double a);};
! 3424: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 3425: int argc;
! 3426: char **argv;
1.4 takayama 3427: int
3428: main ()
3429: {
1.9 ! ohara 3430: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.4 takayama 3431: ;
3432: return 0;
3433: }
3434: _ACEOF
1.9 ! ohara 3435: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 3436: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 3437: do
! 3438: CC="$ac_save_CC $ac_arg"
! 3439: rm -f conftest.$ac_objext
! 3440: if { (ac_try="$ac_compile"
! 3441: case "(($ac_try" in
! 3442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3443: *) ac_try_echo=$ac_try;;
! 3444: esac
! 3445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3446: (eval "$ac_compile") 2>conftest.er1
1.4 takayama 3447: ac_status=$?
1.9 ! ohara 3448: grep -v '^ *+' conftest.er1 >conftest.err
! 3449: rm -f conftest.er1
! 3450: cat conftest.err >&5
1.4 takayama 3451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 3452: (exit $ac_status); } && {
! 3453: test -z "$ac_c_werror_flag" ||
! 3454: test ! -s conftest.err
! 3455: } && test -s conftest.$ac_objext; then
! 3456: ac_cv_prog_cc_c89=$ac_arg
! 3457: else
1.4 takayama 3458: echo "$as_me: failed program was:" >&5
1.9 ! ohara 3459: sed 's/^/| /' conftest.$ac_ext >&5
! 3460:
! 3461:
1.4 takayama 3462: fi
1.9 ! ohara 3463:
! 3464: rm -f core conftest.err conftest.$ac_objext
! 3465: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.4 takayama 3466: done
1.9 ! ohara 3467: rm -f conftest.$ac_ext
! 3468: CC=$ac_save_CC
! 3469:
1.4 takayama 3470: fi
1.9 ! ohara 3471: # AC_CACHE_VAL
! 3472: case "x$ac_cv_prog_cc_c89" in
! 3473: x)
! 3474: { echo "$as_me:$LINENO: result: none needed" >&5
! 3475: echo "${ECHO_T}none needed" >&6; } ;;
! 3476: xno)
! 3477: { echo "$as_me:$LINENO: result: unsupported" >&5
! 3478: echo "${ECHO_T}unsupported" >&6; } ;;
! 3479: *)
! 3480: CC="$CC $ac_cv_prog_cc_c89"
! 3481: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 3482: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
! 3483: esac
! 3484:
1.1 ohara 3485:
1.4 takayama 3486: ac_ext=c
3487: ac_cpp='$CPP $CPPFLAGS'
3488: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9 ! ohara 3491: DEPDIR="${am__leading_dot}deps"
! 3492:
! 3493: ac_config_commands="$ac_config_commands depfiles"
1.4 takayama 3494:
1.7 ohara 3495:
3496: am_make=${MAKE-make}
3497: cat > confinc << 'END'
1.9 ! ohara 3498: am__doit:
1.7 ohara 3499: @echo done
1.9 ! ohara 3500: .PHONY: am__doit
1.7 ohara 3501: END
3502: # If we don't find an include directive, just comment out the code.
1.9 ! ohara 3503: { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 3504: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
! 3505: am__include="#"
1.7 ohara 3506: am__quote=
3507: _am_result=none
3508: # First try GNU make style include.
3509: echo "include confinc" > confmf
3510: # We grep out `Entering directory' and `Leaving directory'
3511: # messages which can occur if `w' ends up in MAKEFLAGS.
3512: # In particular we don't look at `^make:' because GNU make might
3513: # be invoked under some other name (usually "gmake"), in which
3514: # case it prints its new name instead of `make'.
1.9 ! ohara 3515: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.7 ohara 3516: am__include=include
3517: am__quote=
3518: _am_result=GNU
3519: fi
3520: # Now try BSD make style include.
3521: if test "$am__include" = "#"; then
3522: echo '.include "confinc"' > confmf
3523: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3524: am__include=.include
1.9 ! ohara 3525: am__quote="\""
1.7 ohara 3526: _am_result=BSD
3527: fi
3528: fi
3529:
3530:
1.9 ! ohara 3531: { echo "$as_me:$LINENO: result: $_am_result" >&5
! 3532: echo "${ECHO_T}$_am_result" >&6; }
1.7 ohara 3533: rm -f confinc confmf
3534:
1.9 ! ohara 3535: # Check whether --enable-dependency-tracking was given.
! 3536: if test "${enable_dependency_tracking+set}" = set; then
! 3537: enableval=$enable_dependency_tracking;
! 3538: fi
! 3539:
! 3540: if test "x$enable_dependency_tracking" != xno; then
! 3541: am_depcomp="$ac_aux_dir/depcomp"
! 3542: AMDEPBACKSLASH='\'
! 3543: fi
! 3544: if test "x$enable_dependency_tracking" != xno; then
! 3545: AMDEP_TRUE=
! 3546: AMDEP_FALSE='#'
! 3547: else
! 3548: AMDEP_TRUE='#'
! 3549: AMDEP_FALSE=
! 3550: fi
! 3551:
! 3552:
1.7 ohara 3553:
3554: depcc="$CC" am_compiler_list=
3555:
1.9 ! ohara 3556: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 3557: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.7 ohara 3558: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3559: echo $ECHO_N "(cached) $ECHO_C" >&6
3560: else
3561: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562: # We make a subdir and do the tests there. Otherwise we can end up
3563: # making bogus files that we don't know about and never remove. For
3564: # instance it was reported that on HP-UX the gcc test will end up
3565: # making a dummy file named `D' -- because `-MD' means `put the output
3566: # in D'.
3567: mkdir conftest.dir
3568: # Copy depcomp to subdir because otherwise we won't find it if we're
3569: # using a relative directory.
3570: cp "$am_depcomp" conftest.dir
3571: cd conftest.dir
1.9 ! ohara 3572: # We will build objects and dependencies in a subdirectory because
! 3573: # it helps to detect inapplicable dependency modes. For instance
! 3574: # both Tru64's cc and ICC support -MD to output dependencies as a
! 3575: # side effect of compilation, but ICC will put the dependencies in
! 3576: # the current directory while Tru64 will put them in the object
! 3577: # directory.
! 3578: mkdir sub
1.7 ohara 3579:
3580: am_cv_CC_dependencies_compiler_type=none
3581: if test "$am_compiler_list" = ""; then
3582: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3583: fi
3584: for depmode in $am_compiler_list; do
1.9 ! ohara 3585: # Setup a source with many dependencies, because some compilers
! 3586: # like to wrap large dependency lists on column 80 (with \), and
! 3587: # we should not choose a depcomp mode which is confused by this.
! 3588: #
1.7 ohara 3589: # We need to recreate these files for each test, as the compiler may
3590: # overwrite some of them when testing with obscure command lines.
3591: # This happens at least with the AIX C compiler.
1.9 ! ohara 3592: : > sub/conftest.c
! 3593: for i in 1 2 3 4 5 6; do
! 3594: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 3595: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 3596: # Solaris 8's {/usr,}/bin/sh.
! 3597: touch sub/conftst$i.h
! 3598: done
! 3599: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.7 ohara 3600:
3601: case $depmode in
3602: nosideeffect)
3603: # after this tag, mechanisms are not by side-effect, so they'll
3604: # only be used when explicitly requested
3605: if test "x$enable_dependency_tracking" = xyes; then
3606: continue
3607: else
3608: break
3609: fi
3610: ;;
3611: none) break ;;
3612: esac
3613: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614: # mode. It turns out that the SunPro C++ compiler does not properly
3615: # handle `-M -o', and we need to detect this.
3616: if depmode=$depmode \
1.9 ! ohara 3617: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
! 3618: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 3619: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
! 3620: >/dev/null 2>conftest.err &&
! 3621: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 3622: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 3623: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.7 ohara 3624: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.9 ! ohara 3625: # icc doesn't choke on unknown options, it will just issue warnings
! 3626: # or remarks (even with -Werror). So we grep stderr for any message
! 3627: # that says an option was ignored or not supported.
! 3628: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 3629: # icc: Command line warning: ignoring option '-M'; no argument required
! 3630: # The diagnosis changed in icc 8.0:
! 3631: # icc: Command line remark: option '-MP' not supported
! 3632: if (grep 'ignoring option' conftest.err ||
! 3633: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 3634: am_cv_CC_dependencies_compiler_type=$depmode
! 3635: break
! 3636: fi
1.7 ohara 3637: fi
3638: done
3639:
3640: cd ..
3641: rm -rf conftest.dir
3642: else
3643: am_cv_CC_dependencies_compiler_type=none
3644: fi
3645:
3646: fi
1.9 ! ohara 3647: { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3648: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
! 3649: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
! 3650:
! 3651: if
! 3652: test "x$enable_dependency_tracking" != xno \
! 3653: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
! 3654: am__fastdepCC_TRUE=
! 3655: am__fastdepCC_FALSE='#'
! 3656: else
! 3657: am__fastdepCC_TRUE='#'
! 3658: am__fastdepCC_FALSE=
! 3659: fi
1.7 ohara 3660:
3661:
1.6 ohara 3662: # Find a good install program. We prefer a C program (faster),
3663: # so one script is as good as another. But avoid the broken or
3664: # incompatible versions:
3665: # SysV /etc/install, /usr/sbin/install
3666: # SunOS /usr/etc/install
3667: # IRIX /sbin/install
3668: # AIX /bin/install
3669: # AmigaOS /C/install, which installs bootblocks on floppy discs
3670: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3671: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3672: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.9 ! ohara 3673: # OS/2's system install, which has a completely different semantic
1.6 ohara 3674: # ./install, which can be erroneously created by make from ./install.sh.
1.9 ! ohara 3675: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 3676: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.6 ohara 3677: if test -z "$INSTALL"; then
3678: if test "${ac_cv_path_install+set}" = set; then
3679: echo $ECHO_N "(cached) $ECHO_C" >&6
3680: else
3681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682: for as_dir in $PATH
3683: do
3684: IFS=$as_save_IFS
3685: test -z "$as_dir" && as_dir=.
3686: # Account for people who put trailing slashes in PATH elements.
3687: case $as_dir/ in
3688: ./ | .// | /cC/* | \
3689: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.9 ! ohara 3690: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.6 ohara 3691: /usr/ucb/* ) ;;
3692: *)
3693: # OSF1 and SCO ODT 3.0 have their own names for install.
3694: # Don't use installbsd from OSF since it installs stuff as root
3695: # by default.
3696: for ac_prog in ginstall scoinst install; do
3697: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 3698: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
! 3699: if test $ac_prog = install &&
! 3700: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 3701: # AIX install. It has an incompatible calling convention.
! 3702: :
! 3703: elif test $ac_prog = install &&
! 3704: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 3705: # program-specific install script used by HP pwplus--don't use.
! 3706: :
! 3707: else
! 3708: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 3709: break 3
! 3710: fi
! 3711: fi
1.6 ohara 3712: done
3713: done
3714: ;;
3715: esac
3716: done
1.9 ! ohara 3717: IFS=$as_save_IFS
1.6 ohara 3718:
3719:
3720: fi
3721: if test "${ac_cv_path_install+set}" = set; then
3722: INSTALL=$ac_cv_path_install
3723: else
1.9 ! ohara 3724: # As a last resort, use the slow shell script. Don't cache a
! 3725: # value for INSTALL within a source directory, because that will
1.6 ohara 3726: # break other packages using the cache if that directory is
1.9 ! ohara 3727: # removed, or if the value is a relative name.
1.6 ohara 3728: INSTALL=$ac_install_sh
3729: fi
3730: fi
1.9 ! ohara 3731: { echo "$as_me:$LINENO: result: $INSTALL" >&5
! 3732: echo "${ECHO_T}$INSTALL" >&6; }
1.6 ohara 3733:
3734: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735: # It thinks the first close brace ends the variable substitution.
3736: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3737:
3738: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3739:
3740: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741:
1.9 ! ohara 3742: # Check whether --enable-shared was given.
1.7 ohara 3743: if test "${enable_shared+set}" = set; then
1.9 ! ohara 3744: enableval=$enable_shared; p=${PACKAGE-default}
! 3745: case $enableval in
! 3746: yes) enable_shared=yes ;;
! 3747: no) enable_shared=no ;;
! 3748: *)
! 3749: enable_shared=no
! 3750: # Look at the argument we got. We use all the common list separators.
! 3751: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 3752: for pkg in $enableval; do
! 3753: IFS="$lt_save_ifs"
! 3754: if test "X$pkg" = "X$p"; then
! 3755: enable_shared=yes
! 3756: fi
! 3757: done
! 3758: IFS="$lt_save_ifs"
! 3759: ;;
! 3760: esac
1.7 ohara 3761: else
3762: enable_shared=yes
1.9 ! ohara 3763: fi
! 3764:
! 3765:
! 3766: # Check whether --enable-static was given.
1.7 ohara 3767: if test "${enable_static+set}" = set; then
1.9 ! ohara 3768: enableval=$enable_static; p=${PACKAGE-default}
! 3769: case $enableval in
! 3770: yes) enable_static=yes ;;
! 3771: no) enable_static=no ;;
! 3772: *)
! 3773: enable_static=no
! 3774: # Look at the argument we got. We use all the common list separators.
! 3775: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 3776: for pkg in $enableval; do
! 3777: IFS="$lt_save_ifs"
! 3778: if test "X$pkg" = "X$p"; then
! 3779: enable_static=yes
! 3780: fi
! 3781: done
! 3782: IFS="$lt_save_ifs"
! 3783: ;;
! 3784: esac
1.7 ohara 3785: else
3786: enable_static=yes
1.9 ! ohara 3787: fi
! 3788:
! 3789:
! 3790: # Check whether --enable-fast-install was given.
1.7 ohara 3791: if test "${enable_fast_install+set}" = set; then
1.9 ! ohara 3792: enableval=$enable_fast_install; p=${PACKAGE-default}
! 3793: case $enableval in
! 3794: yes) enable_fast_install=yes ;;
! 3795: no) enable_fast_install=no ;;
! 3796: *)
! 3797: enable_fast_install=no
! 3798: # Look at the argument we got. We use all the common list separators.
! 3799: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 3800: for pkg in $enableval; do
! 3801: IFS="$lt_save_ifs"
! 3802: if test "X$pkg" = "X$p"; then
! 3803: enable_fast_install=yes
! 3804: fi
! 3805: done
! 3806: IFS="$lt_save_ifs"
! 3807: ;;
! 3808: esac
! 3809: else
! 3810: enable_fast_install=yes
! 3811: fi
! 3812:
! 3813:
! 3814: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 3815: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
! 3816: if test "${lt_cv_path_SED+set}" = set; then
! 3817: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3818: else
! 3819: # Loop through the user's path and test for sed and gsed.
! 3820: # Then use that list of sed's as ones to test for truncation.
! 3821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3822: for as_dir in $PATH
! 3823: do
! 3824: IFS=$as_save_IFS
! 3825: test -z "$as_dir" && as_dir=.
! 3826: for lt_ac_prog in sed gsed; do
! 3827: for ac_exec_ext in '' $ac_executable_extensions; do
! 3828: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
! 3829: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
! 3830: fi
! 3831: done
! 3832: done
! 3833: done
! 3834: lt_ac_max=0
! 3835: lt_ac_count=0
! 3836: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
! 3837: # along with /bin/sed that truncates output.
! 3838: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
! 3839: test ! -f $lt_ac_sed && continue
! 3840: cat /dev/null > conftest.in
! 3841: lt_ac_count=0
! 3842: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
! 3843: # Check for GNU sed and select it if it is found.
! 3844: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
! 3845: lt_cv_path_SED=$lt_ac_sed
! 3846: break
! 3847: fi
! 3848: while true; do
! 3849: cat conftest.in conftest.in >conftest.tmp
! 3850: mv conftest.tmp conftest.in
! 3851: cp conftest.in conftest.nl
! 3852: echo >>conftest.nl
! 3853: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
! 3854: cmp -s conftest.out conftest.nl || break
! 3855: # 10000 chars as input seems more than enough
! 3856: test $lt_ac_count -gt 10 && break
! 3857: lt_ac_count=`expr $lt_ac_count + 1`
! 3858: if test $lt_ac_count -gt $lt_ac_max; then
! 3859: lt_ac_max=$lt_ac_count
! 3860: lt_cv_path_SED=$lt_ac_sed
1.7 ohara 3861: fi
3862: done
1.9 ! ohara 3863: done
! 3864:
! 3865: fi
! 3866:
! 3867: SED=$lt_cv_path_SED
! 3868: { echo "$as_me:$LINENO: result: $SED" >&5
! 3869: echo "${ECHO_T}$SED" >&6; }
! 3870:
! 3871: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 3872: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 3873: if test "${ac_cv_path_GREP+set}" = set; then
! 3874: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 ohara 3875: else
1.9 ! ohara 3876: # Extract the first word of "grep ggrep" to use in msg output
! 3877: if test -z "$GREP"; then
! 3878: set dummy grep ggrep; ac_prog_name=$2
! 3879: if test "${ac_cv_path_GREP+set}" = set; then
1.4 takayama 3880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 3881: else
1.9 ! ohara 3882: ac_path_GREP_found=false
! 3883: # Loop through the user's path and test for each of PROGNAME-LIST
1.4 takayama 3884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9 ! ohara 3885: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.4 takayama 3886: do
3887: IFS=$as_save_IFS
3888: test -z "$as_dir" && as_dir=.
1.9 ! ohara 3889: for ac_prog in grep ggrep; do
1.4 takayama 3890: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 3891: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3892: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 3893: # Check for GNU ac_path_GREP and select it if it is found.
! 3894: # Check for GNU $ac_path_GREP
! 3895: case `"$ac_path_GREP" --version 2>&1` in
! 3896: *GNU*)
! 3897: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 3898: *)
! 3899: ac_count=0
! 3900: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3901: while :
! 3902: do
! 3903: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3904: mv "conftest.tmp" "conftest.in"
! 3905: cp "conftest.in" "conftest.nl"
! 3906: echo 'GREP' >> "conftest.nl"
! 3907: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3908: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3909: ac_count=`expr $ac_count + 1`
! 3910: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 3911: # Best one so far, save it but keep looking for a better one
! 3912: ac_cv_path_GREP="$ac_path_GREP"
! 3913: ac_path_GREP_max=$ac_count
! 3914: fi
! 3915: # 10*(2^10) chars as input seems more than enough
! 3916: test $ac_count -gt 10 && break
! 3917: done
! 3918: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3919: esac
! 3920:
! 3921:
! 3922: $ac_path_GREP_found && break 3
! 3923: done
1.4 takayama 3924: done
1.9 ! ohara 3925:
1.4 takayama 3926: done
1.9 ! ohara 3927: IFS=$as_save_IFS
! 3928:
1.4 takayama 3929:
1.1 ohara 3930: fi
1.9 ! ohara 3931:
! 3932: GREP="$ac_cv_path_GREP"
! 3933: if test -z "$GREP"; then
! 3934: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 3935: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 3936: { (exit 1); exit 1; }; }
1.1 ohara 3937: fi
1.9 ! ohara 3938:
1.4 takayama 3939: else
1.9 ! ohara 3940: ac_cv_path_GREP=$GREP
1.4 takayama 3941: fi
3942:
1.9 ! ohara 3943:
1.4 takayama 3944: fi
1.9 ! ohara 3945: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 3946: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
! 3947: GREP="$ac_cv_path_GREP"
! 3948:
! 3949:
! 3950: { echo "$as_me:$LINENO: checking for egrep" >&5
! 3951: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 3952: if test "${ac_cv_path_EGREP+set}" = set; then
1.4 takayama 3953: echo $ECHO_N "(cached) $ECHO_C" >&6
3954: else
1.9 ! ohara 3955: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 3956: then ac_cv_path_EGREP="$GREP -E"
! 3957: else
! 3958: # Extract the first word of "egrep" to use in msg output
! 3959: if test -z "$EGREP"; then
! 3960: set dummy egrep; ac_prog_name=$2
! 3961: if test "${ac_cv_path_EGREP+set}" = set; then
! 3962: echo $ECHO_N "(cached) $ECHO_C" >&6
1.4 takayama 3963: else
1.9 ! ohara 3964: ac_path_EGREP_found=false
! 3965: # Loop through the user's path and test for each of PROGNAME-LIST
1.4 takayama 3966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.9 ! ohara 3967: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1.4 takayama 3968: do
3969: IFS=$as_save_IFS
3970: test -z "$as_dir" && as_dir=.
1.9 ! ohara 3971: for ac_prog in egrep; do
1.4 takayama 3972: for ac_exec_ext in '' $ac_executable_extensions; do
1.9 ! ohara 3973: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 3974: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 3975: # Check for GNU ac_path_EGREP and select it if it is found.
! 3976: # Check for GNU $ac_path_EGREP
! 3977: case `"$ac_path_EGREP" --version 2>&1` in
! 3978: *GNU*)
! 3979: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 3980: *)
! 3981: ac_count=0
! 3982: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3983: while :
! 3984: do
! 3985: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3986: mv "conftest.tmp" "conftest.in"
! 3987: cp "conftest.in" "conftest.nl"
! 3988: echo 'EGREP' >> "conftest.nl"
! 3989: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3990: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3991: ac_count=`expr $ac_count + 1`
! 3992: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 3993: # Best one so far, save it but keep looking for a better one
! 3994: ac_cv_path_EGREP="$ac_path_EGREP"
! 3995: ac_path_EGREP_max=$ac_count
! 3996: fi
! 3997: # 10*(2^10) chars as input seems more than enough
! 3998: test $ac_count -gt 10 && break
! 3999: done
! 4000: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4001: esac
! 4002:
! 4003:
! 4004: $ac_path_EGREP_found && break 3
! 4005: done
1.4 takayama 4006: done
1.9 ! ohara 4007:
1.4 takayama 4008: done
1.9 ! ohara 4009: IFS=$as_save_IFS
! 4010:
1.4 takayama 4011:
4012: fi
1.9 ! ohara 4013:
! 4014: EGREP="$ac_cv_path_EGREP"
! 4015: if test -z "$EGREP"; then
! 4016: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 4017: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 4018: { (exit 1); exit 1; }; }
1.4 takayama 4019: fi
1.9 ! ohara 4020:
1.4 takayama 4021: else
1.9 ! ohara 4022: ac_cv_path_EGREP=$EGREP
1.4 takayama 4023: fi
4024:
1.9 ! ohara 4025:
! 4026: fi
1.1 ohara 4027: fi
1.9 ! ohara 4028: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 4029: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
! 4030: EGREP="$ac_cv_path_EGREP"
! 4031:
1.1 ohara 4032:
1.4 takayama 4033:
1.9 ! ohara 4034: # Check whether --with-gnu-ld was given.
1.7 ohara 4035: if test "${with_gnu_ld+set}" = set; then
1.9 ! ohara 4036: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.7 ohara 4037: else
4038: with_gnu_ld=no
1.9 ! ohara 4039: fi
! 4040:
1.7 ohara 4041: ac_prog=ld
1.9 ! ohara 4042: if test "$GCC" = yes; then
1.7 ohara 4043: # Check if gcc -print-prog-name=ld gives a path.
1.9 ! ohara 4044: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 4045: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
! 4046: case $host in
! 4047: *-*-mingw*)
! 4048: # gcc leaves a trailing carriage return which upsets mingw
! 4049: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 4050: *)
! 4051: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 4052: esac
! 4053: case $ac_prog in
1.7 ohara 4054: # Accept absolute paths.
1.9 ! ohara 4055: [\\/]* | ?:[\\/]*)
1.7 ohara 4056: re_direlt='/[^/][^/]*/\.\./'
1.9 ! ohara 4057: # Canonicalize the pathname of ld
! 4058: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1.7 ohara 4059: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1.9 ! ohara 4060: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.7 ohara 4061: done
4062: test -z "$LD" && LD="$ac_prog"
4063: ;;
4064: "")
4065: # If it fails, then pretend we aren't using GCC.
4066: ac_prog=ld
4067: ;;
4068: *)
4069: # If it is relative, then search for the first ld in PATH.
4070: with_gnu_ld=unknown
4071: ;;
4072: esac
4073: elif test "$with_gnu_ld" = yes; then
1.9 ! ohara 4074: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 4075: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.7 ohara 4076: else
1.9 ! ohara 4077: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 4078: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.7 ohara 4079: fi
1.9 ! ohara 4080: if test "${lt_cv_path_LD+set}" = set; then
1.7 ohara 4081: echo $ECHO_N "(cached) $ECHO_C" >&6
4082: else
4083: if test -z "$LD"; then
1.9 ! ohara 4084: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.7 ohara 4085: for ac_dir in $PATH; do
1.9 ! ohara 4086: IFS="$lt_save_ifs"
1.7 ohara 4087: test -z "$ac_dir" && ac_dir=.
4088: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.9 ! ohara 4089: lt_cv_path_LD="$ac_dir/$ac_prog"
1.7 ohara 4090: # Check to see if the program is GNU ld. I'd rather use --version,
1.9 ! ohara 4091: # but apparently some variants of GNU ld only accept -v.
1.7 ohara 4092: # Break only if it was the GNU/non-GNU ld that we prefer.
1.9 ! ohara 4093: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
! 4094: *GNU* | *'with BFD'*)
1.7 ohara 4095: test "$with_gnu_ld" != no && break
1.9 ! ohara 4096: ;;
! 4097: *)
1.7 ohara 4098: test "$with_gnu_ld" != yes && break
1.9 ! ohara 4099: ;;
! 4100: esac
1.7 ohara 4101: fi
4102: done
1.9 ! ohara 4103: IFS="$lt_save_ifs"
1.7 ohara 4104: else
1.9 ! ohara 4105: lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.7 ohara 4106: fi
4107: fi
4108:
1.9 ! ohara 4109: LD="$lt_cv_path_LD"
1.7 ohara 4110: if test -n "$LD"; then
1.9 ! ohara 4111: { echo "$as_me:$LINENO: result: $LD" >&5
! 4112: echo "${ECHO_T}$LD" >&6; }
1.7 ohara 4113: else
1.9 ! ohara 4114: { echo "$as_me:$LINENO: result: no" >&5
! 4115: echo "${ECHO_T}no" >&6; }
1.7 ohara 4116: fi
4117: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4118: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4119: { (exit 1); exit 1; }; }
1.9 ! ohara 4120: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 4121: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
! 4122: if test "${lt_cv_prog_gnu_ld+set}" = set; then
1.7 ohara 4123: echo $ECHO_N "(cached) $ECHO_C" >&6
4124: else
1.9 ! ohara 4125: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 4126: case `$LD -v 2>&1 </dev/null` in
! 4127: *GNU* | *'with BFD'*)
! 4128: lt_cv_prog_gnu_ld=yes
! 4129: ;;
! 4130: *)
! 4131: lt_cv_prog_gnu_ld=no
! 4132: ;;
! 4133: esac
! 4134: fi
! 4135: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 4136: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
! 4137: with_gnu_ld=$lt_cv_prog_gnu_ld
! 4138:
! 4139:
! 4140: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 4141: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
! 4142: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 4143: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 ohara 4144: else
1.9 ! ohara 4145: lt_cv_ld_reload_flag='-r'
1.7 ohara 4146: fi
1.9 ! ohara 4147: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 4148: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
! 4149: reload_flag=$lt_cv_ld_reload_flag
! 4150: case $reload_flag in
! 4151: "" | " "*) ;;
! 4152: *) reload_flag=" $reload_flag" ;;
! 4153: esac
! 4154: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 4155: case $host_os in
! 4156: darwin*)
! 4157: if test "$GCC" = yes; then
! 4158: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
! 4159: else
! 4160: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 4161: fi
! 4162: ;;
! 4163: esac
1.7 ohara 4164:
1.9 ! ohara 4165: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 4166: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
! 4167: if test "${lt_cv_path_NM+set}" = set; then
1.7 ohara 4168: echo $ECHO_N "(cached) $ECHO_C" >&6
4169: else
4170: if test -n "$NM"; then
4171: # Let the user override the test.
1.9 ! ohara 4172: lt_cv_path_NM="$NM"
1.7 ohara 4173: else
1.9 ! ohara 4174: lt_nm_to_check="${ac_tool_prefix}nm"
! 4175: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
! 4176: lt_nm_to_check="$lt_nm_to_check nm"
! 4177: fi
! 4178: for lt_tmp_nm in $lt_nm_to_check; do
! 4179: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 4180: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
! 4181: IFS="$lt_save_ifs"
! 4182: test -z "$ac_dir" && ac_dir=.
! 4183: tmp_nm="$ac_dir/$lt_tmp_nm"
! 4184: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 4185: # Check to see if the nm accepts a BSD-compat flag.
! 4186: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 4187: # nm: unknown option "B" ignored
! 4188: # Tru64's nm complains that /dev/null is an invalid object file
! 4189: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
! 4190: */dev/null* | *'Invalid file or object type'*)
! 4191: lt_cv_path_NM="$tmp_nm -B"
! 4192: break
! 4193: ;;
! 4194: *)
! 4195: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
! 4196: */dev/null*)
! 4197: lt_cv_path_NM="$tmp_nm -p"
! 4198: break
! 4199: ;;
! 4200: *)
! 4201: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 4202: continue # so that we can try to find one that supports BSD flags
! 4203: ;;
! 4204: esac
! 4205: ;;
! 4206: esac
1.7 ohara 4207: fi
1.9 ! ohara 4208: done
! 4209: IFS="$lt_save_ifs"
1.7 ohara 4210: done
1.9 ! ohara 4211: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.7 ohara 4212: fi
4213: fi
1.9 ! ohara 4214: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 4215: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
! 4216: NM="$lt_cv_path_NM"
1.7 ohara 4217:
1.9 ! ohara 4218: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 4219: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.7 ohara 4220: LN_S=$as_ln_s
4221: if test "$LN_S" = "ln -s"; then
1.9 ! ohara 4222: { echo "$as_me:$LINENO: result: yes" >&5
! 4223: echo "${ECHO_T}yes" >&6; }
1.7 ohara 4224: else
1.9 ! ohara 4225: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 4226: echo "${ECHO_T}no, using $LN_S" >&6; }
1.7 ohara 4227: fi
4228:
1.9 ! ohara 4229: { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
! 4230: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
! 4231: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 4232: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4233: else
! 4234: lt_cv_file_magic_cmd='$MAGIC_CMD'
! 4235: lt_cv_file_magic_test_file=
! 4236: lt_cv_deplibs_check_method='unknown'
! 4237: # Need to set the preceding variable on all platforms that support
! 4238: # interlibrary dependencies.
! 4239: # 'none' -- dependencies not supported.
! 4240: # `unknown' -- same as none, but documents that we really don't know.
! 4241: # 'pass_all' -- all dependencies passed with no checks.
! 4242: # 'test_compile' -- check by making test program.
! 4243: # 'file_magic [[regex]]' -- check by looking for files in library path
! 4244: # which responds to the $file_magic_cmd with a given extended regex.
! 4245: # If you have `file' or equivalent on your system and you're not sure
! 4246: # whether `pass_all' will *always* work, you probably want this one.
! 4247:
! 4248: case $host_os in
! 4249: aix4* | aix5*)
! 4250: lt_cv_deplibs_check_method=pass_all
! 4251: ;;
1.7 ohara 4252:
1.9 ! ohara 4253: beos*)
! 4254: lt_cv_deplibs_check_method=pass_all
! 4255: ;;
1.7 ohara 4256:
1.9 ! ohara 4257: bsdi[45]*)
! 4258: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
! 4259: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 4260: lt_cv_file_magic_test_file=/shlib/libc.so
! 4261: ;;
1.7 ohara 4262:
1.9 ! ohara 4263: cygwin*)
! 4264: # func_win32_libid is a shell function defined in ltmain.sh
! 4265: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
! 4266: lt_cv_file_magic_cmd='func_win32_libid'
! 4267: ;;
1.7 ohara 4268:
1.9 ! ohara 4269: mingw* | pw32*)
! 4270: # Base MSYS/MinGW do not provide the 'file' command needed by
! 4271: # func_win32_libid shell function, so use a weaker test based on 'objdump'.
! 4272: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 4273: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 4274: ;;
1.7 ohara 4275:
1.9 ! ohara 4276: darwin* | rhapsody*)
! 4277: lt_cv_deplibs_check_method=pass_all
! 4278: ;;
1.7 ohara 4279:
1.9 ! ohara 4280: freebsd* | kfreebsd*-gnu | dragonfly*)
! 4281: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 4282: case $host_cpu in
! 4283: i*86 )
! 4284: # Not sure whether the presence of OpenBSD here was a mistake.
! 4285: # Let's accept both of them until this is cleared up.
! 4286: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
! 4287: lt_cv_file_magic_cmd=/usr/bin/file
! 4288: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.7 ohara 4289: ;;
4290: esac
1.9 ! ohara 4291: else
! 4292: lt_cv_deplibs_check_method=pass_all
1.7 ohara 4293: fi
1.9 ! ohara 4294: ;;
! 4295:
! 4296: gnu*)
! 4297: lt_cv_deplibs_check_method=pass_all
! 4298: ;;
! 4299:
! 4300: hpux10.20* | hpux11*)
! 4301: lt_cv_file_magic_cmd=/usr/bin/file
! 4302: case $host_cpu in
! 4303: ia64*)
! 4304: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
! 4305: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
! 4306: ;;
! 4307: hppa*64*)
! 4308: 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]'
! 4309: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
! 4310: ;;
! 4311: *)
! 4312: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
! 4313: lt_cv_file_magic_test_file=/usr/lib/libc.sl
! 4314: ;;
! 4315: esac
! 4316: ;;
! 4317:
! 4318: interix3*)
! 4319: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
! 4320: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
! 4321: ;;
! 4322:
! 4323: irix5* | irix6* | nonstopux*)
! 4324: case $LD in
! 4325: *-32|*"-32 ") libmagic=32-bit;;
! 4326: *-n32|*"-n32 ") libmagic=N32;;
! 4327: *-64|*"-64 ") libmagic=64-bit;;
! 4328: *) libmagic=never-match;;
! 4329: esac
! 4330: lt_cv_deplibs_check_method=pass_all
! 4331: ;;
! 4332:
! 4333: # This must be Linux ELF.
! 4334: linux*)
! 4335: lt_cv_deplibs_check_method=pass_all
! 4336: ;;
! 4337:
! 4338: netbsd*)
! 4339: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 4340: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
! 4341: else
! 4342: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
! 4343: fi
! 4344: ;;
! 4345:
! 4346: newos6*)
! 4347: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
! 4348: lt_cv_file_magic_cmd=/usr/bin/file
! 4349: lt_cv_file_magic_test_file=/usr/lib/libnls.so
! 4350: ;;
! 4351:
! 4352: nto-qnx*)
! 4353: lt_cv_deplibs_check_method=unknown
! 4354: ;;
! 4355:
! 4356: openbsd*)
! 4357: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 4358: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
! 4359: else
! 4360: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
! 4361: fi
! 4362: ;;
! 4363:
! 4364: osf3* | osf4* | osf5*)
! 4365: lt_cv_deplibs_check_method=pass_all
! 4366: ;;
! 4367:
! 4368: solaris*)
! 4369: lt_cv_deplibs_check_method=pass_all
! 4370: ;;
! 4371:
! 4372: sysv4 | sysv4.3*)
! 4373: case $host_vendor in
! 4374: motorola)
! 4375: 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]'
! 4376: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
! 4377: ;;
! 4378: ncr)
! 4379: lt_cv_deplibs_check_method=pass_all
! 4380: ;;
! 4381: sequent)
! 4382: lt_cv_file_magic_cmd='/bin/file'
! 4383: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
! 4384: ;;
! 4385: sni)
! 4386: lt_cv_file_magic_cmd='/bin/file'
! 4387: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
! 4388: lt_cv_file_magic_test_file=/lib/libc.so
! 4389: ;;
! 4390: siemens)
! 4391: lt_cv_deplibs_check_method=pass_all
! 4392: ;;
! 4393: pc)
! 4394: lt_cv_deplibs_check_method=pass_all
! 4395: ;;
! 4396: esac
! 4397: ;;
! 4398:
! 4399: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 4400: lt_cv_deplibs_check_method=pass_all
! 4401: ;;
! 4402: esac
! 4403:
! 4404: fi
! 4405: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 4406: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
! 4407: file_magic_cmd=$lt_cv_file_magic_cmd
! 4408: deplibs_check_method=$lt_cv_deplibs_check_method
! 4409: test -z "$deplibs_check_method" && deplibs_check_method=unknown
! 4410:
! 4411:
! 4412:
! 4413:
! 4414: # If no C compiler was specified, use CC.
! 4415: LTCC=${LTCC-"$CC"}
! 4416:
! 4417: # If no C compiler flags were specified, use CFLAGS.
! 4418: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 4419:
! 4420: # Allow CC to be a program name with arguments.
! 4421: compiler=$CC
! 4422:
! 4423:
! 4424: # Check whether --enable-libtool-lock was given.
! 4425: if test "${enable_libtool_lock+set}" = set; then
! 4426: enableval=$enable_libtool_lock;
! 4427: fi
! 4428:
! 4429: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 4430:
! 4431: # Some flags need to be propagated to the compiler or linker for good
! 4432: # libtool support.
! 4433: case $host in
! 4434: ia64-*-hpux*)
! 4435: # Find out which ABI we are using.
! 4436: echo 'int i;' > conftest.$ac_ext
! 4437: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4438: (eval $ac_compile) 2>&5
! 4439: ac_status=$?
! 4440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4441: (exit $ac_status); }; then
! 4442: case `/usr/bin/file conftest.$ac_objext` in
! 4443: *ELF-32*)
! 4444: HPUX_IA64_MODE="32"
! 4445: ;;
! 4446: *ELF-64*)
! 4447: HPUX_IA64_MODE="64"
! 4448: ;;
! 4449: esac
! 4450: fi
! 4451: rm -rf conftest*
! 4452: ;;
! 4453: *-*-irix6*)
! 4454: # Find out which ABI we are using.
! 4455: echo '#line 4455 "configure"' > conftest.$ac_ext
! 4456: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4457: (eval $ac_compile) 2>&5
! 4458: ac_status=$?
! 4459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4460: (exit $ac_status); }; then
! 4461: if test "$lt_cv_prog_gnu_ld" = yes; then
! 4462: case `/usr/bin/file conftest.$ac_objext` in
! 4463: *32-bit*)
! 4464: LD="${LD-ld} -melf32bsmip"
! 4465: ;;
! 4466: *N32*)
! 4467: LD="${LD-ld} -melf32bmipn32"
! 4468: ;;
! 4469: *64-bit*)
! 4470: LD="${LD-ld} -melf64bmip"
! 4471: ;;
! 4472: esac
! 4473: else
! 4474: case `/usr/bin/file conftest.$ac_objext` in
! 4475: *32-bit*)
! 4476: LD="${LD-ld} -32"
! 4477: ;;
! 4478: *N32*)
! 4479: LD="${LD-ld} -n32"
! 4480: ;;
! 4481: *64-bit*)
! 4482: LD="${LD-ld} -64"
! 4483: ;;
! 4484: esac
! 4485: fi
! 4486: fi
! 4487: rm -rf conftest*
! 4488: ;;
! 4489:
! 4490: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
! 4491: # Find out which ABI we are using.
! 4492: echo 'int i;' > conftest.$ac_ext
! 4493: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4494: (eval $ac_compile) 2>&5
! 4495: ac_status=$?
! 4496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4497: (exit $ac_status); }; then
! 4498: case `/usr/bin/file conftest.o` in
! 4499: *32-bit*)
! 4500: case $host in
! 4501: x86_64-*linux*)
! 4502: LD="${LD-ld} -m elf_i386"
! 4503: ;;
! 4504: ppc64-*linux*|powerpc64-*linux*)
! 4505: LD="${LD-ld} -m elf32ppclinux"
! 4506: ;;
! 4507: s390x-*linux*)
! 4508: LD="${LD-ld} -m elf_s390"
! 4509: ;;
! 4510: sparc64-*linux*)
! 4511: LD="${LD-ld} -m elf32_sparc"
! 4512: ;;
! 4513: esac
! 4514: ;;
! 4515: *64-bit*)
! 4516: case $host in
! 4517: x86_64-*linux*)
! 4518: LD="${LD-ld} -m elf_x86_64"
! 4519: ;;
! 4520: ppc*-*linux*|powerpc*-*linux*)
! 4521: LD="${LD-ld} -m elf64ppc"
! 4522: ;;
! 4523: s390*-*linux*)
! 4524: LD="${LD-ld} -m elf64_s390"
! 4525: ;;
! 4526: sparc*-*linux*)
! 4527: LD="${LD-ld} -m elf64_sparc"
! 4528: ;;
! 4529: esac
! 4530: ;;
! 4531: esac
! 4532: fi
! 4533: rm -rf conftest*
1.7 ohara 4534: ;;
4535:
4536: *-*-sco3.2v5*)
4537: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4538: SAVE_CFLAGS="$CFLAGS"
4539: CFLAGS="$CFLAGS -belf"
1.9 ! ohara 4540: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 4541: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
1.7 ohara 4542: if test "${lt_cv_cc_needs_belf+set}" = set; then
4543: echo $ECHO_N "(cached) $ECHO_C" >&6
4544: else
1.9 ! ohara 4545: ac_ext=c
! 4546: ac_cpp='$CPP $CPPFLAGS'
! 4547: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4548: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4549: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4550:
! 4551: cat >conftest.$ac_ext <<_ACEOF
! 4552: /* confdefs.h. */
! 4553: _ACEOF
! 4554: cat confdefs.h >>conftest.$ac_ext
! 4555: cat >>conftest.$ac_ext <<_ACEOF
! 4556: /* end confdefs.h. */
1.7 ohara 4557:
4558: int
4559: main ()
4560: {
4561:
1.9 ! ohara 4562: ;
! 4563: return 0;
! 4564: }
! 4565: _ACEOF
! 4566: rm -f conftest.$ac_objext conftest$ac_exeext
! 4567: if { (ac_try="$ac_link"
! 4568: case "(($ac_try" in
! 4569: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4570: *) ac_try_echo=$ac_try;;
! 4571: esac
! 4572: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4573: (eval "$ac_link") 2>conftest.er1
! 4574: ac_status=$?
! 4575: grep -v '^ *+' conftest.er1 >conftest.err
! 4576: rm -f conftest.er1
! 4577: cat conftest.err >&5
! 4578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4579: (exit $ac_status); } && {
! 4580: test -z "$ac_c_werror_flag" ||
! 4581: test ! -s conftest.err
! 4582: } && test -s conftest$ac_exeext &&
! 4583: $as_test_x conftest$ac_exeext; then
! 4584: lt_cv_cc_needs_belf=yes
! 4585: else
! 4586: echo "$as_me: failed program was:" >&5
! 4587: sed 's/^/| /' conftest.$ac_ext >&5
! 4588:
! 4589: lt_cv_cc_needs_belf=no
! 4590: fi
! 4591:
! 4592: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4593: conftest$ac_exeext conftest.$ac_ext
! 4594: ac_ext=c
! 4595: ac_cpp='$CPP $CPPFLAGS'
! 4596: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4597: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4598: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4599:
! 4600: fi
! 4601: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 4602: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
! 4603: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 4604: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 4605: CFLAGS="$SAVE_CFLAGS"
! 4606: fi
! 4607: ;;
! 4608: sparc*-*solaris*)
! 4609: # Find out which ABI we are using.
! 4610: echo 'int i;' > conftest.$ac_ext
! 4611: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4612: (eval $ac_compile) 2>&5
! 4613: ac_status=$?
! 4614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4615: (exit $ac_status); }; then
! 4616: case `/usr/bin/file conftest.o` in
! 4617: *64-bit*)
! 4618: case $lt_cv_prog_gnu_ld in
! 4619: yes*) LD="${LD-ld} -m elf64_sparc" ;;
! 4620: *) LD="${LD-ld} -64" ;;
! 4621: esac
! 4622: ;;
! 4623: esac
! 4624: fi
! 4625: rm -rf conftest*
! 4626: ;;
! 4627:
! 4628:
! 4629: esac
! 4630:
! 4631: need_locks="$enable_libtool_lock"
! 4632:
! 4633:
! 4634: ac_ext=c
! 4635: ac_cpp='$CPP $CPPFLAGS'
! 4636: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4637: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4638: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4639: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 4640: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
! 4641: # On Suns, sometimes $CPP names a directory.
! 4642: if test -n "$CPP" && test -d "$CPP"; then
! 4643: CPP=
! 4644: fi
! 4645: if test -z "$CPP"; then
! 4646: if test "${ac_cv_prog_CPP+set}" = set; then
! 4647: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4648: else
! 4649: # Double quotes because CPP needs to be expanded
! 4650: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
! 4651: do
! 4652: ac_preproc_ok=false
! 4653: for ac_c_preproc_warn_flag in '' yes
! 4654: do
! 4655: # Use a header file that comes with gcc, so configuring glibc
! 4656: # with a fresh cross-compiler works.
! 4657: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4658: # <limits.h> exists even on freestanding compilers.
! 4659: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4660: # not just through cpp. "Syntax error" is here to catch this case.
! 4661: cat >conftest.$ac_ext <<_ACEOF
! 4662: /* confdefs.h. */
! 4663: _ACEOF
! 4664: cat confdefs.h >>conftest.$ac_ext
! 4665: cat >>conftest.$ac_ext <<_ACEOF
! 4666: /* end confdefs.h. */
! 4667: #ifdef __STDC__
! 4668: # include <limits.h>
! 4669: #else
! 4670: # include <assert.h>
! 4671: #endif
! 4672: Syntax error
! 4673: _ACEOF
! 4674: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4675: case "(($ac_try" in
! 4676: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4677: *) ac_try_echo=$ac_try;;
! 4678: esac
! 4679: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4680: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4681: ac_status=$?
! 4682: grep -v '^ *+' conftest.er1 >conftest.err
! 4683: rm -f conftest.er1
! 4684: cat conftest.err >&5
! 4685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4686: (exit $ac_status); } >/dev/null && {
! 4687: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4688: test ! -s conftest.err
! 4689: }; then
! 4690: :
! 4691: else
! 4692: echo "$as_me: failed program was:" >&5
! 4693: sed 's/^/| /' conftest.$ac_ext >&5
! 4694:
! 4695: # Broken: fails on valid input.
! 4696: continue
! 4697: fi
! 4698:
! 4699: rm -f conftest.err conftest.$ac_ext
! 4700:
! 4701: # OK, works on sane cases. Now check whether nonexistent headers
! 4702: # can be detected and how.
! 4703: cat >conftest.$ac_ext <<_ACEOF
! 4704: /* confdefs.h. */
! 4705: _ACEOF
! 4706: cat confdefs.h >>conftest.$ac_ext
! 4707: cat >>conftest.$ac_ext <<_ACEOF
! 4708: /* end confdefs.h. */
! 4709: #include <ac_nonexistent.h>
! 4710: _ACEOF
! 4711: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4712: case "(($ac_try" in
! 4713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4714: *) ac_try_echo=$ac_try;;
! 4715: esac
! 4716: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4717: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4718: ac_status=$?
! 4719: grep -v '^ *+' conftest.er1 >conftest.err
! 4720: rm -f conftest.er1
! 4721: cat conftest.err >&5
! 4722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4723: (exit $ac_status); } >/dev/null && {
! 4724: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4725: test ! -s conftest.err
! 4726: }; then
! 4727: # Broken: success on invalid input.
! 4728: continue
! 4729: else
! 4730: echo "$as_me: failed program was:" >&5
! 4731: sed 's/^/| /' conftest.$ac_ext >&5
! 4732:
! 4733: # Passes both tests.
! 4734: ac_preproc_ok=:
! 4735: break
! 4736: fi
! 4737:
! 4738: rm -f conftest.err conftest.$ac_ext
! 4739:
! 4740: done
! 4741: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4742: rm -f conftest.err conftest.$ac_ext
! 4743: if $ac_preproc_ok; then
! 4744: break
! 4745: fi
! 4746:
! 4747: done
! 4748: ac_cv_prog_CPP=$CPP
! 4749:
! 4750: fi
! 4751: CPP=$ac_cv_prog_CPP
! 4752: else
! 4753: ac_cv_prog_CPP=$CPP
! 4754: fi
! 4755: { echo "$as_me:$LINENO: result: $CPP" >&5
! 4756: echo "${ECHO_T}$CPP" >&6; }
! 4757: ac_preproc_ok=false
! 4758: for ac_c_preproc_warn_flag in '' yes
! 4759: do
! 4760: # Use a header file that comes with gcc, so configuring glibc
! 4761: # with a fresh cross-compiler works.
! 4762: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4763: # <limits.h> exists even on freestanding compilers.
! 4764: # On the NeXT, cc -E runs the code through the compiler's parser,
! 4765: # not just through cpp. "Syntax error" is here to catch this case.
! 4766: cat >conftest.$ac_ext <<_ACEOF
! 4767: /* confdefs.h. */
! 4768: _ACEOF
! 4769: cat confdefs.h >>conftest.$ac_ext
! 4770: cat >>conftest.$ac_ext <<_ACEOF
! 4771: /* end confdefs.h. */
! 4772: #ifdef __STDC__
! 4773: # include <limits.h>
! 4774: #else
! 4775: # include <assert.h>
! 4776: #endif
! 4777: Syntax error
! 4778: _ACEOF
! 4779: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4780: case "(($ac_try" in
! 4781: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4782: *) ac_try_echo=$ac_try;;
! 4783: esac
! 4784: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4785: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4786: ac_status=$?
! 4787: grep -v '^ *+' conftest.er1 >conftest.err
! 4788: rm -f conftest.er1
! 4789: cat conftest.err >&5
! 4790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4791: (exit $ac_status); } >/dev/null && {
! 4792: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4793: test ! -s conftest.err
! 4794: }; then
! 4795: :
! 4796: else
! 4797: echo "$as_me: failed program was:" >&5
! 4798: sed 's/^/| /' conftest.$ac_ext >&5
! 4799:
! 4800: # Broken: fails on valid input.
! 4801: continue
! 4802: fi
! 4803:
! 4804: rm -f conftest.err conftest.$ac_ext
! 4805:
! 4806: # OK, works on sane cases. Now check whether nonexistent headers
! 4807: # can be detected and how.
! 4808: cat >conftest.$ac_ext <<_ACEOF
! 4809: /* confdefs.h. */
! 4810: _ACEOF
! 4811: cat confdefs.h >>conftest.$ac_ext
! 4812: cat >>conftest.$ac_ext <<_ACEOF
! 4813: /* end confdefs.h. */
! 4814: #include <ac_nonexistent.h>
! 4815: _ACEOF
! 4816: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 4817: case "(($ac_try" in
! 4818: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4819: *) ac_try_echo=$ac_try;;
! 4820: esac
! 4821: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4822: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 4823: ac_status=$?
! 4824: grep -v '^ *+' conftest.er1 >conftest.err
! 4825: rm -f conftest.er1
! 4826: cat conftest.err >&5
! 4827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4828: (exit $ac_status); } >/dev/null && {
! 4829: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 4830: test ! -s conftest.err
! 4831: }; then
! 4832: # Broken: success on invalid input.
! 4833: continue
! 4834: else
! 4835: echo "$as_me: failed program was:" >&5
! 4836: sed 's/^/| /' conftest.$ac_ext >&5
! 4837:
! 4838: # Passes both tests.
! 4839: ac_preproc_ok=:
! 4840: break
! 4841: fi
! 4842:
! 4843: rm -f conftest.err conftest.$ac_ext
! 4844:
! 4845: done
! 4846: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 4847: rm -f conftest.err conftest.$ac_ext
! 4848: if $ac_preproc_ok; then
! 4849: :
! 4850: else
! 4851: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
! 4852: See \`config.log' for more details." >&5
! 4853: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
! 4854: See \`config.log' for more details." >&2;}
! 4855: { (exit 1); exit 1; }; }
! 4856: fi
! 4857:
! 4858: ac_ext=c
! 4859: ac_cpp='$CPP $CPPFLAGS'
! 4860: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4861: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4862: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4863:
! 4864:
! 4865: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 4866: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
! 4867: if test "${ac_cv_header_stdc+set}" = set; then
! 4868: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4869: else
! 4870: cat >conftest.$ac_ext <<_ACEOF
! 4871: /* confdefs.h. */
! 4872: _ACEOF
! 4873: cat confdefs.h >>conftest.$ac_ext
! 4874: cat >>conftest.$ac_ext <<_ACEOF
! 4875: /* end confdefs.h. */
! 4876: #include <stdlib.h>
! 4877: #include <stdarg.h>
! 4878: #include <string.h>
! 4879: #include <float.h>
! 4880:
! 4881: int
! 4882: main ()
! 4883: {
! 4884:
! 4885: ;
! 4886: return 0;
! 4887: }
! 4888: _ACEOF
! 4889: rm -f conftest.$ac_objext
! 4890: if { (ac_try="$ac_compile"
! 4891: case "(($ac_try" in
! 4892: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4893: *) ac_try_echo=$ac_try;;
! 4894: esac
! 4895: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4896: (eval "$ac_compile") 2>conftest.er1
! 4897: ac_status=$?
! 4898: grep -v '^ *+' conftest.er1 >conftest.err
! 4899: rm -f conftest.er1
! 4900: cat conftest.err >&5
! 4901: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4902: (exit $ac_status); } && {
! 4903: test -z "$ac_c_werror_flag" ||
! 4904: test ! -s conftest.err
! 4905: } && test -s conftest.$ac_objext; then
! 4906: ac_cv_header_stdc=yes
! 4907: else
! 4908: echo "$as_me: failed program was:" >&5
! 4909: sed 's/^/| /' conftest.$ac_ext >&5
! 4910:
! 4911: ac_cv_header_stdc=no
! 4912: fi
! 4913:
! 4914: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4915:
! 4916: if test $ac_cv_header_stdc = yes; then
! 4917: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 4918: cat >conftest.$ac_ext <<_ACEOF
! 4919: /* confdefs.h. */
! 4920: _ACEOF
! 4921: cat confdefs.h >>conftest.$ac_ext
! 4922: cat >>conftest.$ac_ext <<_ACEOF
! 4923: /* end confdefs.h. */
! 4924: #include <string.h>
! 4925:
! 4926: _ACEOF
! 4927: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4928: $EGREP "memchr" >/dev/null 2>&1; then
! 4929: :
! 4930: else
! 4931: ac_cv_header_stdc=no
! 4932: fi
! 4933: rm -f conftest*
! 4934:
! 4935: fi
! 4936:
! 4937: if test $ac_cv_header_stdc = yes; then
! 4938: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 4939: cat >conftest.$ac_ext <<_ACEOF
! 4940: /* confdefs.h. */
! 4941: _ACEOF
! 4942: cat confdefs.h >>conftest.$ac_ext
! 4943: cat >>conftest.$ac_ext <<_ACEOF
! 4944: /* end confdefs.h. */
! 4945: #include <stdlib.h>
! 4946:
! 4947: _ACEOF
! 4948: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4949: $EGREP "free" >/dev/null 2>&1; then
! 4950: :
! 4951: else
! 4952: ac_cv_header_stdc=no
! 4953: fi
! 4954: rm -f conftest*
! 4955:
! 4956: fi
! 4957:
! 4958: if test $ac_cv_header_stdc = yes; then
! 4959: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 4960: if test "$cross_compiling" = yes; then
! 4961: :
! 4962: else
! 4963: cat >conftest.$ac_ext <<_ACEOF
! 4964: /* confdefs.h. */
! 4965: _ACEOF
! 4966: cat confdefs.h >>conftest.$ac_ext
! 4967: cat >>conftest.$ac_ext <<_ACEOF
! 4968: /* end confdefs.h. */
! 4969: #include <ctype.h>
! 4970: #include <stdlib.h>
! 4971: #if ((' ' & 0x0FF) == 0x020)
! 4972: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 4973: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 4974: #else
! 4975: # define ISLOWER(c) \
! 4976: (('a' <= (c) && (c) <= 'i') \
! 4977: || ('j' <= (c) && (c) <= 'r') \
! 4978: || ('s' <= (c) && (c) <= 'z'))
! 4979: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 4980: #endif
! 4981:
! 4982: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 4983: int
! 4984: main ()
! 4985: {
! 4986: int i;
! 4987: for (i = 0; i < 256; i++)
! 4988: if (XOR (islower (i), ISLOWER (i))
! 4989: || toupper (i) != TOUPPER (i))
! 4990: return 2;
! 4991: return 0;
! 4992: }
! 4993: _ACEOF
! 4994: rm -f conftest$ac_exeext
! 4995: if { (ac_try="$ac_link"
! 4996: case "(($ac_try" in
! 4997: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4998: *) ac_try_echo=$ac_try;;
! 4999: esac
! 5000: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5001: (eval "$ac_link") 2>&5
! 5002: ac_status=$?
! 5003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5004: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5005: { (case "(($ac_try" in
! 5006: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5007: *) ac_try_echo=$ac_try;;
! 5008: esac
! 5009: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5010: (eval "$ac_try") 2>&5
! 5011: ac_status=$?
! 5012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5013: (exit $ac_status); }; }; then
! 5014: :
! 5015: else
! 5016: echo "$as_me: program exited with status $ac_status" >&5
! 5017: echo "$as_me: failed program was:" >&5
! 5018: sed 's/^/| /' conftest.$ac_ext >&5
! 5019:
! 5020: ( exit $ac_status )
! 5021: ac_cv_header_stdc=no
! 5022: fi
! 5023: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5024: fi
! 5025:
! 5026:
! 5027: fi
! 5028: fi
! 5029: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 5030: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
! 5031: if test $ac_cv_header_stdc = yes; then
! 5032:
! 5033: cat >>confdefs.h <<\_ACEOF
! 5034: #define STDC_HEADERS 1
! 5035: _ACEOF
! 5036:
! 5037: fi
! 5038:
! 5039: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 5040:
! 5041:
! 5042:
! 5043:
! 5044:
! 5045:
! 5046:
! 5047:
! 5048:
! 5049: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 5050: inttypes.h stdint.h unistd.h
! 5051: do
! 5052: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5053: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5054: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 5055: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 5056: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5057: else
! 5058: cat >conftest.$ac_ext <<_ACEOF
! 5059: /* confdefs.h. */
! 5060: _ACEOF
! 5061: cat confdefs.h >>conftest.$ac_ext
! 5062: cat >>conftest.$ac_ext <<_ACEOF
! 5063: /* end confdefs.h. */
! 5064: $ac_includes_default
! 5065:
! 5066: #include <$ac_header>
! 5067: _ACEOF
! 5068: rm -f conftest.$ac_objext
! 5069: if { (ac_try="$ac_compile"
! 5070: case "(($ac_try" in
! 5071: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5072: *) ac_try_echo=$ac_try;;
! 5073: esac
! 5074: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5075: (eval "$ac_compile") 2>conftest.er1
! 5076: ac_status=$?
! 5077: grep -v '^ *+' conftest.er1 >conftest.err
! 5078: rm -f conftest.er1
! 5079: cat conftest.err >&5
! 5080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5081: (exit $ac_status); } && {
! 5082: test -z "$ac_c_werror_flag" ||
! 5083: test ! -s conftest.err
! 5084: } && test -s conftest.$ac_objext; then
! 5085: eval "$as_ac_Header=yes"
! 5086: else
! 5087: echo "$as_me: failed program was:" >&5
! 5088: sed 's/^/| /' conftest.$ac_ext >&5
! 5089:
! 5090: eval "$as_ac_Header=no"
! 5091: fi
! 5092:
! 5093: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5094: fi
! 5095: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5096: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5097: echo "${ECHO_T}$ac_res" >&6; }
! 5098: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 5099: cat >>confdefs.h <<_ACEOF
! 5100: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5101: _ACEOF
! 5102:
! 5103: fi
! 5104:
! 5105: done
! 5106:
! 5107:
! 5108:
! 5109: for ac_header in dlfcn.h
! 5110: do
! 5111: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5112: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 5113: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5114: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 5115: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 5116: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5117: fi
! 5118: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5119: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5120: echo "${ECHO_T}$ac_res" >&6; }
! 5121: else
! 5122: # Is the header compilable?
! 5123: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 5124: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
! 5125: cat >conftest.$ac_ext <<_ACEOF
! 5126: /* confdefs.h. */
! 5127: _ACEOF
! 5128: cat confdefs.h >>conftest.$ac_ext
! 5129: cat >>conftest.$ac_ext <<_ACEOF
! 5130: /* end confdefs.h. */
! 5131: $ac_includes_default
! 5132: #include <$ac_header>
! 5133: _ACEOF
! 5134: rm -f conftest.$ac_objext
! 5135: if { (ac_try="$ac_compile"
! 5136: case "(($ac_try" in
! 5137: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5138: *) ac_try_echo=$ac_try;;
! 5139: esac
! 5140: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5141: (eval "$ac_compile") 2>conftest.er1
! 5142: ac_status=$?
! 5143: grep -v '^ *+' conftest.er1 >conftest.err
! 5144: rm -f conftest.er1
! 5145: cat conftest.err >&5
! 5146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5147: (exit $ac_status); } && {
! 5148: test -z "$ac_c_werror_flag" ||
! 5149: test ! -s conftest.err
! 5150: } && test -s conftest.$ac_objext; then
! 5151: ac_header_compiler=yes
! 5152: else
! 5153: echo "$as_me: failed program was:" >&5
! 5154: sed 's/^/| /' conftest.$ac_ext >&5
! 5155:
! 5156: ac_header_compiler=no
! 5157: fi
! 5158:
! 5159: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5160: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 5161: echo "${ECHO_T}$ac_header_compiler" >&6; }
! 5162:
! 5163: # Is the header present?
! 5164: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 5165: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
! 5166: cat >conftest.$ac_ext <<_ACEOF
! 5167: /* confdefs.h. */
! 5168: _ACEOF
! 5169: cat confdefs.h >>conftest.$ac_ext
! 5170: cat >>conftest.$ac_ext <<_ACEOF
! 5171: /* end confdefs.h. */
! 5172: #include <$ac_header>
! 5173: _ACEOF
! 5174: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5175: case "(($ac_try" in
! 5176: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5177: *) ac_try_echo=$ac_try;;
! 5178: esac
! 5179: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5180: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 5181: ac_status=$?
! 5182: grep -v '^ *+' conftest.er1 >conftest.err
! 5183: rm -f conftest.er1
! 5184: cat conftest.err >&5
! 5185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5186: (exit $ac_status); } >/dev/null && {
! 5187: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5188: test ! -s conftest.err
! 5189: }; then
! 5190: ac_header_preproc=yes
! 5191: else
! 5192: echo "$as_me: failed program was:" >&5
! 5193: sed 's/^/| /' conftest.$ac_ext >&5
! 5194:
! 5195: ac_header_preproc=no
! 5196: fi
! 5197:
! 5198: rm -f conftest.err conftest.$ac_ext
! 5199: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 5200: echo "${ECHO_T}$ac_header_preproc" >&6; }
! 5201:
! 5202: # So? What about this header?
! 5203: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 5204: yes:no: )
! 5205: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 5206: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 5207: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 5208: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 5209: ac_header_preproc=yes
! 5210: ;;
! 5211: no:yes:* )
! 5212: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 5213: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 5214: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 5215: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 5216: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 5217: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 5218: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 5219: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 5220: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 5221: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 5222: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 5223: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 5224:
! 5225: ;;
! 5226: esac
! 5227: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5228: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 5229: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 5230: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5231: else
! 5232: eval "$as_ac_Header=\$ac_header_preproc"
! 5233: fi
! 5234: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5235: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5236: echo "${ECHO_T}$ac_res" >&6; }
! 5237:
! 5238: fi
! 5239: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 5240: cat >>confdefs.h <<_ACEOF
! 5241: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5242: _ACEOF
! 5243:
! 5244: fi
! 5245:
! 5246: done
! 5247:
! 5248: ac_ext=cpp
! 5249: ac_cpp='$CXXCPP $CPPFLAGS'
! 5250: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5251: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5252: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 5253: if test -z "$CXX"; then
! 5254: if test -n "$CCC"; then
! 5255: CXX=$CCC
! 5256: else
! 5257: if test -n "$ac_tool_prefix"; then
! 5258: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
! 5259: do
! 5260: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 5261: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 5262: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5263: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 5264: if test "${ac_cv_prog_CXX+set}" = set; then
! 5265: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5266: else
! 5267: if test -n "$CXX"; then
! 5268: ac_cv_prog_CXX="$CXX" # Let the user override the test.
! 5269: else
! 5270: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5271: for as_dir in $PATH
! 5272: do
! 5273: IFS=$as_save_IFS
! 5274: test -z "$as_dir" && as_dir=.
! 5275: for ac_exec_ext in '' $ac_executable_extensions; do
! 5276: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 5277: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 5278: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5279: break 2
! 5280: fi
! 5281: done
! 5282: done
! 5283: IFS=$as_save_IFS
! 5284:
! 5285: fi
! 5286: fi
! 5287: CXX=$ac_cv_prog_CXX
! 5288: if test -n "$CXX"; then
! 5289: { echo "$as_me:$LINENO: result: $CXX" >&5
! 5290: echo "${ECHO_T}$CXX" >&6; }
! 5291: else
! 5292: { echo "$as_me:$LINENO: result: no" >&5
! 5293: echo "${ECHO_T}no" >&6; }
! 5294: fi
! 5295:
! 5296:
! 5297: test -n "$CXX" && break
! 5298: done
! 5299: fi
! 5300: if test -z "$CXX"; then
! 5301: ac_ct_CXX=$CXX
! 5302: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
! 5303: do
! 5304: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 5305: set dummy $ac_prog; ac_word=$2
! 5306: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5307: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 5308: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 5309: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5310: else
! 5311: if test -n "$ac_ct_CXX"; then
! 5312: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
! 5313: else
! 5314: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5315: for as_dir in $PATH
! 5316: do
! 5317: IFS=$as_save_IFS
! 5318: test -z "$as_dir" && as_dir=.
! 5319: for ac_exec_ext in '' $ac_executable_extensions; do
! 5320: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 5321: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 5322: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5323: break 2
! 5324: fi
! 5325: done
! 5326: done
! 5327: IFS=$as_save_IFS
! 5328:
! 5329: fi
! 5330: fi
! 5331: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 5332: if test -n "$ac_ct_CXX"; then
! 5333: { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 5334: echo "${ECHO_T}$ac_ct_CXX" >&6; }
! 5335: else
! 5336: { echo "$as_me:$LINENO: result: no" >&5
! 5337: echo "${ECHO_T}no" >&6; }
! 5338: fi
! 5339:
! 5340:
! 5341: test -n "$ac_ct_CXX" && break
! 5342: done
! 5343:
! 5344: if test "x$ac_ct_CXX" = x; then
! 5345: CXX="g++"
! 5346: else
! 5347: case $cross_compiling:$ac_tool_warned in
! 5348: yes:)
! 5349: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 5350: whose name does not start with the host triplet. If you think this
! 5351: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 5352: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 5353: whose name does not start with the host triplet. If you think this
! 5354: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 5355: ac_tool_warned=yes ;;
! 5356: esac
! 5357: CXX=$ac_ct_CXX
! 5358: fi
! 5359: fi
! 5360:
! 5361: fi
! 5362: fi
! 5363: # Provide some information about the compiler.
! 5364: echo "$as_me:$LINENO: checking for C++ compiler version" >&5
! 5365: ac_compiler=`set X $ac_compile; echo $2`
! 5366: { (ac_try="$ac_compiler --version >&5"
! 5367: case "(($ac_try" in
! 5368: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5369: *) ac_try_echo=$ac_try;;
! 5370: esac
! 5371: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5372: (eval "$ac_compiler --version >&5") 2>&5
! 5373: ac_status=$?
! 5374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5375: (exit $ac_status); }
! 5376: { (ac_try="$ac_compiler -v >&5"
! 5377: case "(($ac_try" in
! 5378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5379: *) ac_try_echo=$ac_try;;
! 5380: esac
! 5381: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5382: (eval "$ac_compiler -v >&5") 2>&5
! 5383: ac_status=$?
! 5384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5385: (exit $ac_status); }
! 5386: { (ac_try="$ac_compiler -V >&5"
! 5387: case "(($ac_try" in
! 5388: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5389: *) ac_try_echo=$ac_try;;
! 5390: esac
! 5391: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5392: (eval "$ac_compiler -V >&5") 2>&5
! 5393: ac_status=$?
! 5394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5395: (exit $ac_status); }
! 5396:
! 5397: { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 5398: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
! 5399: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 5400: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5401: else
! 5402: cat >conftest.$ac_ext <<_ACEOF
! 5403: /* confdefs.h. */
! 5404: _ACEOF
! 5405: cat confdefs.h >>conftest.$ac_ext
! 5406: cat >>conftest.$ac_ext <<_ACEOF
! 5407: /* end confdefs.h. */
! 5408:
! 5409: int
! 5410: main ()
! 5411: {
! 5412: #ifndef __GNUC__
! 5413: choke me
! 5414: #endif
! 5415:
! 5416: ;
! 5417: return 0;
! 5418: }
! 5419: _ACEOF
! 5420: rm -f conftest.$ac_objext
! 5421: if { (ac_try="$ac_compile"
! 5422: case "(($ac_try" in
! 5423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5424: *) ac_try_echo=$ac_try;;
! 5425: esac
! 5426: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5427: (eval "$ac_compile") 2>conftest.er1
! 5428: ac_status=$?
! 5429: grep -v '^ *+' conftest.er1 >conftest.err
! 5430: rm -f conftest.er1
! 5431: cat conftest.err >&5
! 5432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5433: (exit $ac_status); } && {
! 5434: test -z "$ac_cxx_werror_flag" ||
! 5435: test ! -s conftest.err
! 5436: } && test -s conftest.$ac_objext; then
! 5437: ac_compiler_gnu=yes
! 5438: else
! 5439: echo "$as_me: failed program was:" >&5
! 5440: sed 's/^/| /' conftest.$ac_ext >&5
! 5441:
! 5442: ac_compiler_gnu=no
! 5443: fi
! 5444:
! 5445: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5446: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
! 5447:
! 5448: fi
! 5449: { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 5450: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
! 5451: GXX=`test $ac_compiler_gnu = yes && echo yes`
! 5452: ac_test_CXXFLAGS=${CXXFLAGS+set}
! 5453: ac_save_CXXFLAGS=$CXXFLAGS
! 5454: { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 5455: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
! 5456: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 5457: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5458: else
! 5459: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 5460: ac_cxx_werror_flag=yes
! 5461: ac_cv_prog_cxx_g=no
! 5462: CXXFLAGS="-g"
! 5463: cat >conftest.$ac_ext <<_ACEOF
! 5464: /* confdefs.h. */
! 5465: _ACEOF
! 5466: cat confdefs.h >>conftest.$ac_ext
! 5467: cat >>conftest.$ac_ext <<_ACEOF
! 5468: /* end confdefs.h. */
! 5469:
! 5470: int
! 5471: main ()
! 5472: {
! 5473:
! 5474: ;
! 5475: return 0;
! 5476: }
! 5477: _ACEOF
! 5478: rm -f conftest.$ac_objext
! 5479: if { (ac_try="$ac_compile"
! 5480: case "(($ac_try" in
! 5481: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5482: *) ac_try_echo=$ac_try;;
! 5483: esac
! 5484: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5485: (eval "$ac_compile") 2>conftest.er1
! 5486: ac_status=$?
! 5487: grep -v '^ *+' conftest.er1 >conftest.err
! 5488: rm -f conftest.er1
! 5489: cat conftest.err >&5
! 5490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5491: (exit $ac_status); } && {
! 5492: test -z "$ac_cxx_werror_flag" ||
! 5493: test ! -s conftest.err
! 5494: } && test -s conftest.$ac_objext; then
! 5495: ac_cv_prog_cxx_g=yes
! 5496: else
! 5497: echo "$as_me: failed program was:" >&5
! 5498: sed 's/^/| /' conftest.$ac_ext >&5
! 5499:
! 5500: CXXFLAGS=""
! 5501: cat >conftest.$ac_ext <<_ACEOF
! 5502: /* confdefs.h. */
! 5503: _ACEOF
! 5504: cat confdefs.h >>conftest.$ac_ext
! 5505: cat >>conftest.$ac_ext <<_ACEOF
! 5506: /* end confdefs.h. */
! 5507:
! 5508: int
! 5509: main ()
! 5510: {
! 5511:
! 5512: ;
! 5513: return 0;
! 5514: }
! 5515: _ACEOF
! 5516: rm -f conftest.$ac_objext
! 5517: if { (ac_try="$ac_compile"
! 5518: case "(($ac_try" in
! 5519: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5520: *) ac_try_echo=$ac_try;;
! 5521: esac
! 5522: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5523: (eval "$ac_compile") 2>conftest.er1
! 5524: ac_status=$?
! 5525: grep -v '^ *+' conftest.er1 >conftest.err
! 5526: rm -f conftest.er1
! 5527: cat conftest.err >&5
! 5528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5529: (exit $ac_status); } && {
! 5530: test -z "$ac_cxx_werror_flag" ||
! 5531: test ! -s conftest.err
! 5532: } && test -s conftest.$ac_objext; then
! 5533: :
! 5534: else
! 5535: echo "$as_me: failed program was:" >&5
! 5536: sed 's/^/| /' conftest.$ac_ext >&5
! 5537:
! 5538: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 5539: CXXFLAGS="-g"
! 5540: cat >conftest.$ac_ext <<_ACEOF
! 5541: /* confdefs.h. */
! 5542: _ACEOF
! 5543: cat confdefs.h >>conftest.$ac_ext
! 5544: cat >>conftest.$ac_ext <<_ACEOF
! 5545: /* end confdefs.h. */
! 5546:
! 5547: int
! 5548: main ()
! 5549: {
! 5550:
! 5551: ;
! 5552: return 0;
! 5553: }
! 5554: _ACEOF
! 5555: rm -f conftest.$ac_objext
! 5556: if { (ac_try="$ac_compile"
! 5557: case "(($ac_try" in
! 5558: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5559: *) ac_try_echo=$ac_try;;
! 5560: esac
! 5561: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5562: (eval "$ac_compile") 2>conftest.er1
! 5563: ac_status=$?
! 5564: grep -v '^ *+' conftest.er1 >conftest.err
! 5565: rm -f conftest.er1
! 5566: cat conftest.err >&5
! 5567: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5568: (exit $ac_status); } && {
! 5569: test -z "$ac_cxx_werror_flag" ||
! 5570: test ! -s conftest.err
! 5571: } && test -s conftest.$ac_objext; then
! 5572: ac_cv_prog_cxx_g=yes
! 5573: else
! 5574: echo "$as_me: failed program was:" >&5
! 5575: sed 's/^/| /' conftest.$ac_ext >&5
! 5576:
! 5577:
! 5578: fi
! 5579:
! 5580: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5581: fi
! 5582:
! 5583: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5584: fi
! 5585:
! 5586: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5587: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 5588: fi
! 5589: { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 5590: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
! 5591: if test "$ac_test_CXXFLAGS" = set; then
! 5592: CXXFLAGS=$ac_save_CXXFLAGS
! 5593: elif test $ac_cv_prog_cxx_g = yes; then
! 5594: if test "$GXX" = yes; then
! 5595: CXXFLAGS="-g -O2"
! 5596: else
! 5597: CXXFLAGS="-g"
! 5598: fi
! 5599: else
! 5600: if test "$GXX" = yes; then
! 5601: CXXFLAGS="-O2"
! 5602: else
! 5603: CXXFLAGS=
! 5604: fi
! 5605: fi
! 5606: ac_ext=cpp
! 5607: ac_cpp='$CXXCPP $CPPFLAGS'
! 5608: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5609: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5610: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 5611:
! 5612: depcc="$CXX" am_compiler_list=
! 5613:
! 5614: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 5615: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
! 5616: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
! 5617: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5618: else
! 5619: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 5620: # We make a subdir and do the tests there. Otherwise we can end up
! 5621: # making bogus files that we don't know about and never remove. For
! 5622: # instance it was reported that on HP-UX the gcc test will end up
! 5623: # making a dummy file named `D' -- because `-MD' means `put the output
! 5624: # in D'.
! 5625: mkdir conftest.dir
! 5626: # Copy depcomp to subdir because otherwise we won't find it if we're
! 5627: # using a relative directory.
! 5628: cp "$am_depcomp" conftest.dir
! 5629: cd conftest.dir
! 5630: # We will build objects and dependencies in a subdirectory because
! 5631: # it helps to detect inapplicable dependency modes. For instance
! 5632: # both Tru64's cc and ICC support -MD to output dependencies as a
! 5633: # side effect of compilation, but ICC will put the dependencies in
! 5634: # the current directory while Tru64 will put them in the object
! 5635: # directory.
! 5636: mkdir sub
! 5637:
! 5638: am_cv_CXX_dependencies_compiler_type=none
! 5639: if test "$am_compiler_list" = ""; then
! 5640: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 5641: fi
! 5642: for depmode in $am_compiler_list; do
! 5643: # Setup a source with many dependencies, because some compilers
! 5644: # like to wrap large dependency lists on column 80 (with \), and
! 5645: # we should not choose a depcomp mode which is confused by this.
! 5646: #
! 5647: # We need to recreate these files for each test, as the compiler may
! 5648: # overwrite some of them when testing with obscure command lines.
! 5649: # This happens at least with the AIX C compiler.
! 5650: : > sub/conftest.c
! 5651: for i in 1 2 3 4 5 6; do
! 5652: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 5653: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 5654: # Solaris 8's {/usr,}/bin/sh.
! 5655: touch sub/conftst$i.h
! 5656: done
! 5657: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
! 5658:
! 5659: case $depmode in
! 5660: nosideeffect)
! 5661: # after this tag, mechanisms are not by side-effect, so they'll
! 5662: # only be used when explicitly requested
! 5663: if test "x$enable_dependency_tracking" = xyes; then
! 5664: continue
! 5665: else
! 5666: break
! 5667: fi
! 5668: ;;
! 5669: none) break ;;
! 5670: esac
! 5671: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 5672: # mode. It turns out that the SunPro C++ compiler does not properly
! 5673: # handle `-M -o', and we need to detect this.
! 5674: if depmode=$depmode \
! 5675: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
! 5676: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 5677: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
! 5678: >/dev/null 2>conftest.err &&
! 5679: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 5680: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 5681: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
! 5682: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 5683: # icc doesn't choke on unknown options, it will just issue warnings
! 5684: # or remarks (even with -Werror). So we grep stderr for any message
! 5685: # that says an option was ignored or not supported.
! 5686: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 5687: # icc: Command line warning: ignoring option '-M'; no argument required
! 5688: # The diagnosis changed in icc 8.0:
! 5689: # icc: Command line remark: option '-MP' not supported
! 5690: if (grep 'ignoring option' conftest.err ||
! 5691: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 5692: am_cv_CXX_dependencies_compiler_type=$depmode
! 5693: break
! 5694: fi
! 5695: fi
! 5696: done
! 5697:
! 5698: cd ..
! 5699: rm -rf conftest.dir
! 5700: else
! 5701: am_cv_CXX_dependencies_compiler_type=none
! 5702: fi
! 5703:
! 5704: fi
! 5705: { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 5706: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
! 5707: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
! 5708:
! 5709: if
! 5710: test "x$enable_dependency_tracking" != xno \
! 5711: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
! 5712: am__fastdepCXX_TRUE=
! 5713: am__fastdepCXX_FALSE='#'
! 5714: else
! 5715: am__fastdepCXX_TRUE='#'
! 5716: am__fastdepCXX_FALSE=
! 5717: fi
! 5718:
! 5719:
! 5720:
! 5721:
! 5722: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
! 5723: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
! 5724: (test "X$CXX" != "Xg++"))) ; then
! 5725: ac_ext=cpp
! 5726: ac_cpp='$CXXCPP $CPPFLAGS'
! 5727: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5728: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5729: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 5730: { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 5731: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
! 5732: if test -z "$CXXCPP"; then
! 5733: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 5734: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5735: else
! 5736: # Double quotes because CXXCPP needs to be expanded
! 5737: for CXXCPP in "$CXX -E" "/lib/cpp"
! 5738: do
! 5739: ac_preproc_ok=false
! 5740: for ac_cxx_preproc_warn_flag in '' yes
! 5741: do
! 5742: # Use a header file that comes with gcc, so configuring glibc
! 5743: # with a fresh cross-compiler works.
! 5744: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 5745: # <limits.h> exists even on freestanding compilers.
! 5746: # On the NeXT, cc -E runs the code through the compiler's parser,
! 5747: # not just through cpp. "Syntax error" is here to catch this case.
! 5748: cat >conftest.$ac_ext <<_ACEOF
! 5749: /* confdefs.h. */
! 5750: _ACEOF
! 5751: cat confdefs.h >>conftest.$ac_ext
! 5752: cat >>conftest.$ac_ext <<_ACEOF
! 5753: /* end confdefs.h. */
! 5754: #ifdef __STDC__
! 5755: # include <limits.h>
! 5756: #else
! 5757: # include <assert.h>
! 5758: #endif
! 5759: Syntax error
! 5760: _ACEOF
! 5761: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5762: case "(($ac_try" in
! 5763: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5764: *) ac_try_echo=$ac_try;;
! 5765: esac
! 5766: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5767: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 5768: ac_status=$?
! 5769: grep -v '^ *+' conftest.er1 >conftest.err
! 5770: rm -f conftest.er1
! 5771: cat conftest.err >&5
! 5772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5773: (exit $ac_status); } >/dev/null && {
! 5774: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 5775: test ! -s conftest.err
! 5776: }; then
! 5777: :
! 5778: else
! 5779: echo "$as_me: failed program was:" >&5
! 5780: sed 's/^/| /' conftest.$ac_ext >&5
! 5781:
! 5782: # Broken: fails on valid input.
! 5783: continue
! 5784: fi
! 5785:
! 5786: rm -f conftest.err conftest.$ac_ext
! 5787:
! 5788: # OK, works on sane cases. Now check whether nonexistent headers
! 5789: # can be detected and how.
! 5790: cat >conftest.$ac_ext <<_ACEOF
! 5791: /* confdefs.h. */
! 5792: _ACEOF
! 5793: cat confdefs.h >>conftest.$ac_ext
! 5794: cat >>conftest.$ac_ext <<_ACEOF
! 5795: /* end confdefs.h. */
! 5796: #include <ac_nonexistent.h>
! 5797: _ACEOF
! 5798: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5799: case "(($ac_try" in
! 5800: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5801: *) ac_try_echo=$ac_try;;
! 5802: esac
! 5803: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5804: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 5805: ac_status=$?
! 5806: grep -v '^ *+' conftest.er1 >conftest.err
! 5807: rm -f conftest.er1
! 5808: cat conftest.err >&5
! 5809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5810: (exit $ac_status); } >/dev/null && {
! 5811: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 5812: test ! -s conftest.err
! 5813: }; then
! 5814: # Broken: success on invalid input.
! 5815: continue
! 5816: else
! 5817: echo "$as_me: failed program was:" >&5
! 5818: sed 's/^/| /' conftest.$ac_ext >&5
! 5819:
! 5820: # Passes both tests.
! 5821: ac_preproc_ok=:
! 5822: break
! 5823: fi
! 5824:
! 5825: rm -f conftest.err conftest.$ac_ext
! 5826:
! 5827: done
! 5828: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 5829: rm -f conftest.err conftest.$ac_ext
! 5830: if $ac_preproc_ok; then
! 5831: break
! 5832: fi
! 5833:
! 5834: done
! 5835: ac_cv_prog_CXXCPP=$CXXCPP
! 5836:
! 5837: fi
! 5838: CXXCPP=$ac_cv_prog_CXXCPP
! 5839: else
! 5840: ac_cv_prog_CXXCPP=$CXXCPP
! 5841: fi
! 5842: { echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 5843: echo "${ECHO_T}$CXXCPP" >&6; }
! 5844: ac_preproc_ok=false
! 5845: for ac_cxx_preproc_warn_flag in '' yes
! 5846: do
! 5847: # Use a header file that comes with gcc, so configuring glibc
! 5848: # with a fresh cross-compiler works.
! 5849: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 5850: # <limits.h> exists even on freestanding compilers.
! 5851: # On the NeXT, cc -E runs the code through the compiler's parser,
! 5852: # not just through cpp. "Syntax error" is here to catch this case.
! 5853: cat >conftest.$ac_ext <<_ACEOF
! 5854: /* confdefs.h. */
! 5855: _ACEOF
! 5856: cat confdefs.h >>conftest.$ac_ext
! 5857: cat >>conftest.$ac_ext <<_ACEOF
! 5858: /* end confdefs.h. */
! 5859: #ifdef __STDC__
! 5860: # include <limits.h>
! 5861: #else
! 5862: # include <assert.h>
! 5863: #endif
! 5864: Syntax error
! 5865: _ACEOF
! 5866: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5867: case "(($ac_try" in
! 5868: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5869: *) ac_try_echo=$ac_try;;
! 5870: esac
! 5871: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5872: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 5873: ac_status=$?
! 5874: grep -v '^ *+' conftest.er1 >conftest.err
! 5875: rm -f conftest.er1
! 5876: cat conftest.err >&5
! 5877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5878: (exit $ac_status); } >/dev/null && {
! 5879: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 5880: test ! -s conftest.err
! 5881: }; then
! 5882: :
! 5883: else
! 5884: echo "$as_me: failed program was:" >&5
! 5885: sed 's/^/| /' conftest.$ac_ext >&5
! 5886:
! 5887: # Broken: fails on valid input.
! 5888: continue
! 5889: fi
! 5890:
! 5891: rm -f conftest.err conftest.$ac_ext
! 5892:
! 5893: # OK, works on sane cases. Now check whether nonexistent headers
! 5894: # can be detected and how.
! 5895: cat >conftest.$ac_ext <<_ACEOF
! 5896: /* confdefs.h. */
! 5897: _ACEOF
! 5898: cat confdefs.h >>conftest.$ac_ext
! 5899: cat >>conftest.$ac_ext <<_ACEOF
! 5900: /* end confdefs.h. */
! 5901: #include <ac_nonexistent.h>
! 5902: _ACEOF
! 5903: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5904: case "(($ac_try" in
! 5905: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5906: *) ac_try_echo=$ac_try;;
! 5907: esac
! 5908: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5909: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
! 5910: ac_status=$?
! 5911: grep -v '^ *+' conftest.er1 >conftest.err
! 5912: rm -f conftest.er1
! 5913: cat conftest.err >&5
! 5914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5915: (exit $ac_status); } >/dev/null && {
! 5916: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 5917: test ! -s conftest.err
! 5918: }; then
! 5919: # Broken: success on invalid input.
! 5920: continue
! 5921: else
! 5922: echo "$as_me: failed program was:" >&5
! 5923: sed 's/^/| /' conftest.$ac_ext >&5
! 5924:
! 5925: # Passes both tests.
! 5926: ac_preproc_ok=:
! 5927: break
! 5928: fi
! 5929:
! 5930: rm -f conftest.err conftest.$ac_ext
! 5931:
! 5932: done
! 5933: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 5934: rm -f conftest.err conftest.$ac_ext
! 5935: if $ac_preproc_ok; then
! 5936: :
! 5937: else
! 5938: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 5939: See \`config.log' for more details." >&5
! 5940: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 5941: See \`config.log' for more details." >&2;}
! 5942: { (exit 1); exit 1; }; }
! 5943: fi
! 5944:
! 5945: ac_ext=cpp
! 5946: ac_cpp='$CXXCPP $CPPFLAGS'
! 5947: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5948: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5949: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 5950:
! 5951: fi
! 5952:
! 5953:
! 5954: ac_ext=f
! 5955: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
! 5956: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5957: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
! 5958: if test -n "$ac_tool_prefix"; then
! 5959: for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
! 5960: do
! 5961: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 5962: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 5963: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5964: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 5965: if test "${ac_cv_prog_F77+set}" = set; then
! 5966: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5967: else
! 5968: if test -n "$F77"; then
! 5969: ac_cv_prog_F77="$F77" # Let the user override the test.
! 5970: else
! 5971: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5972: for as_dir in $PATH
! 5973: do
! 5974: IFS=$as_save_IFS
! 5975: test -z "$as_dir" && as_dir=.
! 5976: for ac_exec_ext in '' $ac_executable_extensions; do
! 5977: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 5978: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
! 5979: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5980: break 2
! 5981: fi
! 5982: done
! 5983: done
! 5984: IFS=$as_save_IFS
! 5985:
! 5986: fi
! 5987: fi
! 5988: F77=$ac_cv_prog_F77
! 5989: if test -n "$F77"; then
! 5990: { echo "$as_me:$LINENO: result: $F77" >&5
! 5991: echo "${ECHO_T}$F77" >&6; }
! 5992: else
! 5993: { echo "$as_me:$LINENO: result: no" >&5
! 5994: echo "${ECHO_T}no" >&6; }
! 5995: fi
! 5996:
! 5997:
! 5998: test -n "$F77" && break
! 5999: done
! 6000: fi
! 6001: if test -z "$F77"; then
! 6002: ac_ct_F77=$F77
! 6003: for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
! 6004: do
! 6005: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 6006: set dummy $ac_prog; ac_word=$2
! 6007: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6008: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6009: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
! 6010: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6011: else
! 6012: if test -n "$ac_ct_F77"; then
! 6013: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
! 6014: else
! 6015: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6016: for as_dir in $PATH
! 6017: do
! 6018: IFS=$as_save_IFS
! 6019: test -z "$as_dir" && as_dir=.
! 6020: for ac_exec_ext in '' $ac_executable_extensions; do
! 6021: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6022: ac_cv_prog_ac_ct_F77="$ac_prog"
! 6023: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6024: break 2
! 6025: fi
! 6026: done
! 6027: done
! 6028: IFS=$as_save_IFS
! 6029:
! 6030: fi
! 6031: fi
! 6032: ac_ct_F77=$ac_cv_prog_ac_ct_F77
! 6033: if test -n "$ac_ct_F77"; then
! 6034: { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
! 6035: echo "${ECHO_T}$ac_ct_F77" >&6; }
! 6036: else
! 6037: { echo "$as_me:$LINENO: result: no" >&5
! 6038: echo "${ECHO_T}no" >&6; }
! 6039: fi
! 6040:
! 6041:
! 6042: test -n "$ac_ct_F77" && break
! 6043: done
! 6044:
! 6045: if test "x$ac_ct_F77" = x; then
! 6046: F77=""
! 6047: else
! 6048: case $cross_compiling:$ac_tool_warned in
! 6049: yes:)
! 6050: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 6051: whose name does not start with the host triplet. If you think this
! 6052: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 6053: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 6054: whose name does not start with the host triplet. If you think this
! 6055: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 6056: ac_tool_warned=yes ;;
! 6057: esac
! 6058: F77=$ac_ct_F77
! 6059: fi
! 6060: fi
! 6061:
! 6062:
! 6063: # Provide some information about the compiler.
! 6064: echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
! 6065: ac_compiler=`set X $ac_compile; echo $2`
! 6066: { (ac_try="$ac_compiler --version >&5"
! 6067: case "(($ac_try" in
! 6068: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6069: *) ac_try_echo=$ac_try;;
! 6070: esac
! 6071: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6072: (eval "$ac_compiler --version >&5") 2>&5
! 6073: ac_status=$?
! 6074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6075: (exit $ac_status); }
! 6076: { (ac_try="$ac_compiler -v >&5"
! 6077: case "(($ac_try" in
! 6078: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6079: *) ac_try_echo=$ac_try;;
! 6080: esac
! 6081: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6082: (eval "$ac_compiler -v >&5") 2>&5
! 6083: ac_status=$?
! 6084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6085: (exit $ac_status); }
! 6086: { (ac_try="$ac_compiler -V >&5"
! 6087: case "(($ac_try" in
! 6088: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6089: *) ac_try_echo=$ac_try;;
! 6090: esac
! 6091: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6092: (eval "$ac_compiler -V >&5") 2>&5
! 6093: ac_status=$?
! 6094: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6095: (exit $ac_status); }
! 6096: rm -f a.out
! 6097:
! 6098: # If we don't use `.F' as extension, the preprocessor is not run on the
! 6099: # input file. (Note that this only needs to work for GNU compilers.)
! 6100: ac_save_ext=$ac_ext
! 6101: ac_ext=F
! 6102: { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
! 6103: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
! 6104: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
! 6105: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6106: else
! 6107: cat >conftest.$ac_ext <<_ACEOF
! 6108: program main
! 6109: #ifndef __GNUC__
! 6110: choke me
! 6111: #endif
! 6112:
! 6113: end
! 6114: _ACEOF
! 6115: rm -f conftest.$ac_objext
! 6116: if { (ac_try="$ac_compile"
! 6117: case "(($ac_try" in
! 6118: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6119: *) ac_try_echo=$ac_try;;
! 6120: esac
! 6121: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6122: (eval "$ac_compile") 2>conftest.er1
! 6123: ac_status=$?
! 6124: grep -v '^ *+' conftest.er1 >conftest.err
! 6125: rm -f conftest.er1
! 6126: cat conftest.err >&5
! 6127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6128: (exit $ac_status); } && {
! 6129: test -z "$ac_f77_werror_flag" ||
! 6130: test ! -s conftest.err
! 6131: } && test -s conftest.$ac_objext; then
! 6132: ac_compiler_gnu=yes
! 6133: else
! 6134: echo "$as_me: failed program was:" >&5
! 6135: sed 's/^/| /' conftest.$ac_ext >&5
! 6136:
! 6137: ac_compiler_gnu=no
! 6138: fi
! 6139:
! 6140: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6141: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
! 6142:
! 6143: fi
! 6144: { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
! 6145: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
! 6146: ac_ext=$ac_save_ext
! 6147: ac_test_FFLAGS=${FFLAGS+set}
! 6148: ac_save_FFLAGS=$FFLAGS
! 6149: FFLAGS=
! 6150: { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
! 6151: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
! 6152: if test "${ac_cv_prog_f77_g+set}" = set; then
! 6153: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6154: else
! 6155: FFLAGS=-g
! 6156: cat >conftest.$ac_ext <<_ACEOF
! 6157: program main
! 6158:
! 6159: end
! 6160: _ACEOF
! 6161: rm -f conftest.$ac_objext
! 6162: if { (ac_try="$ac_compile"
! 6163: case "(($ac_try" in
! 6164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6165: *) ac_try_echo=$ac_try;;
! 6166: esac
! 6167: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6168: (eval "$ac_compile") 2>conftest.er1
! 6169: ac_status=$?
! 6170: grep -v '^ *+' conftest.er1 >conftest.err
! 6171: rm -f conftest.er1
! 6172: cat conftest.err >&5
! 6173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6174: (exit $ac_status); } && {
! 6175: test -z "$ac_f77_werror_flag" ||
! 6176: test ! -s conftest.err
! 6177: } && test -s conftest.$ac_objext; then
! 6178: ac_cv_prog_f77_g=yes
! 6179: else
! 6180: echo "$as_me: failed program was:" >&5
! 6181: sed 's/^/| /' conftest.$ac_ext >&5
! 6182:
! 6183: ac_cv_prog_f77_g=no
! 6184: fi
! 6185:
! 6186: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 6187:
! 6188: fi
! 6189: { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
! 6190: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
! 6191: if test "$ac_test_FFLAGS" = set; then
! 6192: FFLAGS=$ac_save_FFLAGS
! 6193: elif test $ac_cv_prog_f77_g = yes; then
! 6194: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
! 6195: FFLAGS="-g -O2"
! 6196: else
! 6197: FFLAGS="-g"
! 6198: fi
! 6199: else
! 6200: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
! 6201: FFLAGS="-O2"
! 6202: else
! 6203: FFLAGS=
! 6204: fi
! 6205: fi
! 6206:
! 6207: G77=`test $ac_compiler_gnu = yes && echo yes`
! 6208: ac_ext=c
! 6209: ac_cpp='$CPP $CPPFLAGS'
! 6210: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6211: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6212: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 6213:
! 6214:
! 6215:
! 6216: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
! 6217:
! 6218: # find the maximum length of command line arguments
! 6219: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 6220: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
! 6221: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 6222: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6223: else
! 6224: i=0
! 6225: teststring="ABCD"
! 6226:
! 6227: case $build_os in
! 6228: msdosdjgpp*)
! 6229: # On DJGPP, this test can blow up pretty badly due to problems in libc
! 6230: # (any single argument exceeding 2000 bytes causes a buffer overrun
! 6231: # during glob expansion). Even if it were fixed, the result of this
! 6232: # check would be larger than it should be.
! 6233: lt_cv_sys_max_cmd_len=12288; # 12K is about right
! 6234: ;;
! 6235:
! 6236: gnu*)
! 6237: # Under GNU Hurd, this test is not required because there is
! 6238: # no limit to the length of command line arguments.
! 6239: # Libtool will interpret -1 as no limit whatsoever
! 6240: lt_cv_sys_max_cmd_len=-1;
! 6241: ;;
! 6242:
! 6243: cygwin* | mingw*)
! 6244: # On Win9x/ME, this test blows up -- it succeeds, but takes
! 6245: # about 5 minutes as the teststring grows exponentially.
! 6246: # Worse, since 9x/ME are not pre-emptively multitasking,
! 6247: # you end up with a "frozen" computer, even though with patience
! 6248: # the test eventually succeeds (with a max line length of 256k).
! 6249: # Instead, let's just punt: use the minimum linelength reported by
! 6250: # all of the supported platforms: 8192 (on NT/2K/XP).
! 6251: lt_cv_sys_max_cmd_len=8192;
! 6252: ;;
! 6253:
! 6254: amigaos*)
! 6255: # On AmigaOS with pdksh, this test takes hours, literally.
! 6256: # So we just punt and use a minimum line length of 8192.
! 6257: lt_cv_sys_max_cmd_len=8192;
! 6258: ;;
! 6259:
! 6260: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
! 6261: # This has been around since 386BSD, at least. Likely further.
! 6262: if test -x /sbin/sysctl; then
! 6263: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
! 6264: elif test -x /usr/sbin/sysctl; then
! 6265: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
! 6266: else
! 6267: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
! 6268: fi
! 6269: # And add a safety zone
! 6270: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 6271: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 6272: ;;
! 6273:
! 6274: interix*)
! 6275: # We know the value 262144 and hardcode it with a safety zone (like BSD)
! 6276: lt_cv_sys_max_cmd_len=196608
! 6277: ;;
! 6278:
! 6279: osf*)
! 6280: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
! 6281: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
! 6282: # nice to cause kernel panics so lets avoid the loop below.
! 6283: # First set a reasonable default.
! 6284: lt_cv_sys_max_cmd_len=16384
! 6285: #
! 6286: if test -x /sbin/sysconfig; then
! 6287: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
! 6288: *1*) lt_cv_sys_max_cmd_len=-1 ;;
! 6289: esac
! 6290: fi
! 6291: ;;
! 6292: sco3.2v5*)
! 6293: lt_cv_sys_max_cmd_len=102400
! 6294: ;;
! 6295: sysv5* | sco5v6* | sysv4.2uw2*)
! 6296: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
! 6297: if test -n "$kargmax"; then
! 6298: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
! 6299: else
! 6300: lt_cv_sys_max_cmd_len=32768
! 6301: fi
! 6302: ;;
! 6303: *)
! 6304: # If test is not a shell built-in, we'll probably end up computing a
! 6305: # maximum length that is only half of the actual maximum length, but
! 6306: # we can't tell.
! 6307: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
! 6308: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
! 6309: = "XX$teststring") >/dev/null 2>&1 &&
! 6310: new_result=`expr "X$teststring" : ".*" 2>&1` &&
! 6311: lt_cv_sys_max_cmd_len=$new_result &&
! 6312: test $i != 17 # 1/2 MB should be enough
! 6313: do
! 6314: i=`expr $i + 1`
! 6315: teststring=$teststring$teststring
! 6316: done
! 6317: teststring=
! 6318: # Add a significant safety factor because C++ compilers can tack on massive
! 6319: # amounts of additional arguments before passing them to the linker.
! 6320: # It appears as though 1/2 is a usable value.
! 6321: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
! 6322: ;;
! 6323: esac
! 6324:
! 6325: fi
! 6326:
! 6327: if test -n $lt_cv_sys_max_cmd_len ; then
! 6328: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 6329: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
! 6330: else
! 6331: { echo "$as_me:$LINENO: result: none" >&5
! 6332: echo "${ECHO_T}none" >&6; }
! 6333: fi
! 6334:
! 6335:
! 6336:
! 6337:
! 6338: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 6339: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 6340: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
! 6341: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 6342: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6343: else
! 6344:
! 6345: # These are sane defaults that work on at least a few old systems.
! 6346: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
! 6347:
! 6348: # Character class describing NM global symbol codes.
! 6349: symcode='[BCDEGRST]'
! 6350:
! 6351: # Regexp to match symbols that can be accessed directly from C.
! 6352: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 6353:
! 6354: # Transform an extracted symbol line into a proper C declaration
! 6355: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
! 6356:
! 6357: # Transform an extracted symbol line into symbol name and symbol address
! 6358: 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'"
! 6359:
! 6360: # Define system-specific variables.
! 6361: case $host_os in
! 6362: aix*)
! 6363: symcode='[BCDT]'
! 6364: ;;
! 6365: cygwin* | mingw* | pw32*)
! 6366: symcode='[ABCDGISTW]'
! 6367: ;;
! 6368: hpux*) # Its linker distinguishes data from code symbols
! 6369: if test "$host_cpu" = ia64; then
! 6370: symcode='[ABCDEGRST]'
! 6371: fi
! 6372: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6373: 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'"
! 6374: ;;
! 6375: linux*)
! 6376: if test "$host_cpu" = ia64; then
! 6377: symcode='[ABCDGIRSTW]'
! 6378: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6379: 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'"
! 6380: fi
! 6381: ;;
! 6382: irix* | nonstopux*)
! 6383: symcode='[BCDEGRST]'
! 6384: ;;
! 6385: osf*)
! 6386: symcode='[BCDEGQRST]'
! 6387: ;;
! 6388: solaris*)
! 6389: symcode='[BDRT]'
! 6390: ;;
! 6391: sco3.2v5*)
! 6392: symcode='[DT]'
! 6393: ;;
! 6394: sysv4.2uw2*)
! 6395: symcode='[DT]'
! 6396: ;;
! 6397: sysv5* | sco5v6* | unixware* | OpenUNIX*)
! 6398: symcode='[ABDT]'
! 6399: ;;
! 6400: sysv4)
! 6401: symcode='[DFNSTU]'
! 6402: ;;
! 6403: esac
! 6404:
! 6405: # Handle CRLF in mingw tool chain
! 6406: opt_cr=
! 6407: case $build_os in
! 6408: mingw*)
! 6409: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
! 6410: ;;
! 6411: esac
! 6412:
! 6413: # If we're using GNU nm, then use its standard symbol codes.
! 6414: case `$NM -V 2>&1` in
! 6415: *GNU* | *'with BFD'*)
! 6416: symcode='[ABCDGIRSTW]' ;;
! 6417: esac
! 6418:
! 6419: # Try without a prefix undercore, then with it.
! 6420: for ac_symprfx in "" "_"; do
! 6421:
! 6422: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
! 6423: symxfrm="\\1 $ac_symprfx\\2 \\2"
! 6424:
! 6425: # Write the raw and C identifiers.
! 6426: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
! 6427:
! 6428: # Check to see that the pipe works correctly.
! 6429: pipe_works=no
! 6430:
! 6431: rm -f conftest*
! 6432: cat > conftest.$ac_ext <<EOF
! 6433: #ifdef __cplusplus
! 6434: extern "C" {
! 6435: #endif
! 6436: char nm_test_var;
! 6437: void nm_test_func(){}
! 6438: #ifdef __cplusplus
! 6439: }
! 6440: #endif
! 6441: int main(){nm_test_var='a';nm_test_func();return(0);}
! 6442: EOF
! 6443:
! 6444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6445: (eval $ac_compile) 2>&5
! 6446: ac_status=$?
! 6447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6448: (exit $ac_status); }; then
! 6449: # Now try to grab the symbols.
! 6450: nlist=conftest.nm
! 6451: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
! 6452: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
! 6453: ac_status=$?
! 6454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6455: (exit $ac_status); } && test -s "$nlist"; then
! 6456: # Try sorting and uniquifying the output.
! 6457: if sort "$nlist" | uniq > "$nlist"T; then
! 6458: mv -f "$nlist"T "$nlist"
! 6459: else
! 6460: rm -f "$nlist"T
! 6461: fi
! 6462:
! 6463: # Make sure that we snagged all the symbols we need.
! 6464: if grep ' nm_test_var$' "$nlist" >/dev/null; then
! 6465: if grep ' nm_test_func$' "$nlist" >/dev/null; then
! 6466: cat <<EOF > conftest.$ac_ext
! 6467: #ifdef __cplusplus
! 6468: extern "C" {
! 6469: #endif
! 6470:
! 6471: EOF
! 6472: # Now generate the symbol file.
! 6473: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
! 6474:
! 6475: cat <<EOF >> conftest.$ac_ext
! 6476: #if defined (__STDC__) && __STDC__
! 6477: # define lt_ptr_t void *
! 6478: #else
! 6479: # define lt_ptr_t char *
! 6480: # define const
! 6481: #endif
! 6482:
! 6483: /* The mapping between symbol names and symbols. */
! 6484: const struct {
! 6485: const char *name;
! 6486: lt_ptr_t address;
! 6487: }
! 6488: lt_preloaded_symbols[] =
! 6489: {
! 6490: EOF
! 6491: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
! 6492: cat <<\EOF >> conftest.$ac_ext
! 6493: {0, (lt_ptr_t) 0}
! 6494: };
! 6495:
! 6496: #ifdef __cplusplus
! 6497: }
! 6498: #endif
! 6499: EOF
! 6500: # Now try linking the two files.
! 6501: mv conftest.$ac_objext conftstm.$ac_objext
! 6502: lt_save_LIBS="$LIBS"
! 6503: lt_save_CFLAGS="$CFLAGS"
! 6504: LIBS="conftstm.$ac_objext"
! 6505: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
! 6506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6507: (eval $ac_link) 2>&5
! 6508: ac_status=$?
! 6509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6510: (exit $ac_status); } && test -s conftest${ac_exeext}; then
! 6511: pipe_works=yes
! 6512: fi
! 6513: LIBS="$lt_save_LIBS"
! 6514: CFLAGS="$lt_save_CFLAGS"
! 6515: else
! 6516: echo "cannot find nm_test_func in $nlist" >&5
! 6517: fi
! 6518: else
! 6519: echo "cannot find nm_test_var in $nlist" >&5
! 6520: fi
! 6521: else
! 6522: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
! 6523: fi
! 6524: else
! 6525: echo "$progname: failed program was:" >&5
! 6526: cat conftest.$ac_ext >&5
! 6527: fi
! 6528: rm -f conftest* conftst*
! 6529:
! 6530: # Do not use the global_symbol_pipe unless it works.
! 6531: if test "$pipe_works" = yes; then
! 6532: break
! 6533: else
! 6534: lt_cv_sys_global_symbol_pipe=
! 6535: fi
! 6536: done
! 6537:
! 6538: fi
! 6539:
! 6540: if test -z "$lt_cv_sys_global_symbol_pipe"; then
! 6541: lt_cv_sys_global_symbol_to_cdecl=
! 6542: fi
! 6543: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
! 6544: { echo "$as_me:$LINENO: result: failed" >&5
! 6545: echo "${ECHO_T}failed" >&6; }
! 6546: else
! 6547: { echo "$as_me:$LINENO: result: ok" >&5
! 6548: echo "${ECHO_T}ok" >&6; }
! 6549: fi
! 6550:
! 6551: { echo "$as_me:$LINENO: checking for objdir" >&5
! 6552: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
! 6553: if test "${lt_cv_objdir+set}" = set; then
! 6554: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6555: else
! 6556: rm -f .libs 2>/dev/null
! 6557: mkdir .libs 2>/dev/null
! 6558: if test -d .libs; then
! 6559: lt_cv_objdir=.libs
! 6560: else
! 6561: # MS-DOS does not allow filenames that begin with a dot.
! 6562: lt_cv_objdir=_libs
! 6563: fi
! 6564: rmdir .libs 2>/dev/null
! 6565: fi
! 6566: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 6567: echo "${ECHO_T}$lt_cv_objdir" >&6; }
! 6568: objdir=$lt_cv_objdir
! 6569:
! 6570:
! 6571:
! 6572:
! 6573:
! 6574: case $host_os in
! 6575: aix3*)
! 6576: # AIX sometimes has problems with the GCC collect2 program. For some
! 6577: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 6578: # vanish in a puff of smoke.
! 6579: if test "X${COLLECT_NAMES+set}" != Xset; then
! 6580: COLLECT_NAMES=
! 6581: export COLLECT_NAMES
! 6582: fi
! 6583: ;;
! 6584: esac
! 6585:
! 6586: # Sed substitution that helps us do robust quoting. It backslashifies
! 6587: # metacharacters that are still active within double-quoted strings.
! 6588: Xsed='sed -e 1s/^X//'
! 6589: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
! 6590:
! 6591: # Same as above, but do not quote variable references.
! 6592: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
! 6593:
! 6594: # Sed substitution to delay expansion of an escaped shell variable in a
! 6595: # double_quote_subst'ed string.
! 6596: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
! 6597:
! 6598: # Sed substitution to avoid accidental globbing in evaled expressions
! 6599: no_glob_subst='s/\*/\\\*/g'
! 6600:
! 6601: # Constants:
! 6602: rm="rm -f"
! 6603:
! 6604: # Global variables:
! 6605: default_ofile=libtool
! 6606: can_build_shared=yes
! 6607:
! 6608: # All known linkers require a `.a' archive for static linking (except MSVC,
! 6609: # which needs '.lib').
! 6610: libext=a
! 6611: ltmain="$ac_aux_dir/ltmain.sh"
! 6612: ofile="$default_ofile"
! 6613: with_gnu_ld="$lt_cv_prog_gnu_ld"
! 6614:
! 6615: if test -n "$ac_tool_prefix"; then
! 6616: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
! 6617: set dummy ${ac_tool_prefix}ar; ac_word=$2
! 6618: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6619: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6620: if test "${ac_cv_prog_AR+set}" = set; then
! 6621: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6622: else
! 6623: if test -n "$AR"; then
! 6624: ac_cv_prog_AR="$AR" # Let the user override the test.
! 6625: else
! 6626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6627: for as_dir in $PATH
! 6628: do
! 6629: IFS=$as_save_IFS
! 6630: test -z "$as_dir" && as_dir=.
! 6631: for ac_exec_ext in '' $ac_executable_extensions; do
! 6632: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6633: ac_cv_prog_AR="${ac_tool_prefix}ar"
! 6634: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6635: break 2
! 6636: fi
! 6637: done
! 6638: done
! 6639: IFS=$as_save_IFS
! 6640:
! 6641: fi
! 6642: fi
! 6643: AR=$ac_cv_prog_AR
! 6644: if test -n "$AR"; then
! 6645: { echo "$as_me:$LINENO: result: $AR" >&5
! 6646: echo "${ECHO_T}$AR" >&6; }
! 6647: else
! 6648: { echo "$as_me:$LINENO: result: no" >&5
! 6649: echo "${ECHO_T}no" >&6; }
! 6650: fi
! 6651:
! 6652:
! 6653: fi
! 6654: if test -z "$ac_cv_prog_AR"; then
! 6655: ac_ct_AR=$AR
! 6656: # Extract the first word of "ar", so it can be a program name with args.
! 6657: set dummy ar; ac_word=$2
! 6658: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6659: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6660: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 6661: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6662: else
! 6663: if test -n "$ac_ct_AR"; then
! 6664: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
! 6665: else
! 6666: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6667: for as_dir in $PATH
! 6668: do
! 6669: IFS=$as_save_IFS
! 6670: test -z "$as_dir" && as_dir=.
! 6671: for ac_exec_ext in '' $ac_executable_extensions; do
! 6672: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6673: ac_cv_prog_ac_ct_AR="ar"
! 6674: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6675: break 2
! 6676: fi
! 6677: done
! 6678: done
! 6679: IFS=$as_save_IFS
! 6680:
! 6681: fi
! 6682: fi
! 6683: ac_ct_AR=$ac_cv_prog_ac_ct_AR
! 6684: if test -n "$ac_ct_AR"; then
! 6685: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 6686: echo "${ECHO_T}$ac_ct_AR" >&6; }
! 6687: else
! 6688: { echo "$as_me:$LINENO: result: no" >&5
! 6689: echo "${ECHO_T}no" >&6; }
! 6690: fi
! 6691:
! 6692: if test "x$ac_ct_AR" = x; then
! 6693: AR="false"
! 6694: else
! 6695: case $cross_compiling:$ac_tool_warned in
! 6696: yes:)
! 6697: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 6698: whose name does not start with the host triplet. If you think this
! 6699: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 6700: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 6701: whose name does not start with the host triplet. If you think this
! 6702: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 6703: ac_tool_warned=yes ;;
! 6704: esac
! 6705: AR=$ac_ct_AR
! 6706: fi
! 6707: else
! 6708: AR="$ac_cv_prog_AR"
! 6709: fi
! 6710:
! 6711: if test -n "$ac_tool_prefix"; then
! 6712: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 6713: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 6714: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6715: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6716: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 6717: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6718: else
! 6719: if test -n "$RANLIB"; then
! 6720: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 6721: else
! 6722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6723: for as_dir in $PATH
! 6724: do
! 6725: IFS=$as_save_IFS
! 6726: test -z "$as_dir" && as_dir=.
! 6727: for ac_exec_ext in '' $ac_executable_extensions; do
! 6728: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6729: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 6730: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6731: break 2
! 6732: fi
! 6733: done
! 6734: done
! 6735: IFS=$as_save_IFS
! 6736:
! 6737: fi
! 6738: fi
! 6739: RANLIB=$ac_cv_prog_RANLIB
! 6740: if test -n "$RANLIB"; then
! 6741: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 6742: echo "${ECHO_T}$RANLIB" >&6; }
! 6743: else
! 6744: { echo "$as_me:$LINENO: result: no" >&5
! 6745: echo "${ECHO_T}no" >&6; }
! 6746: fi
! 6747:
! 6748:
! 6749: fi
! 6750: if test -z "$ac_cv_prog_RANLIB"; then
! 6751: ac_ct_RANLIB=$RANLIB
! 6752: # Extract the first word of "ranlib", so it can be a program name with args.
! 6753: set dummy ranlib; ac_word=$2
! 6754: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6755: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6756: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 6757: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6758: else
! 6759: if test -n "$ac_ct_RANLIB"; then
! 6760: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 6761: else
! 6762: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6763: for as_dir in $PATH
! 6764: do
! 6765: IFS=$as_save_IFS
! 6766: test -z "$as_dir" && as_dir=.
! 6767: for ac_exec_ext in '' $ac_executable_extensions; do
! 6768: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6769: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 6770: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6771: break 2
! 6772: fi
! 6773: done
! 6774: done
! 6775: IFS=$as_save_IFS
! 6776:
! 6777: fi
! 6778: fi
! 6779: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 6780: if test -n "$ac_ct_RANLIB"; then
! 6781: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 6782: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
! 6783: else
! 6784: { echo "$as_me:$LINENO: result: no" >&5
! 6785: echo "${ECHO_T}no" >&6; }
! 6786: fi
! 6787:
! 6788: if test "x$ac_ct_RANLIB" = x; then
! 6789: RANLIB=":"
! 6790: else
! 6791: case $cross_compiling:$ac_tool_warned in
! 6792: yes:)
! 6793: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 6794: whose name does not start with the host triplet. If you think this
! 6795: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 6796: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 6797: whose name does not start with the host triplet. If you think this
! 6798: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 6799: ac_tool_warned=yes ;;
! 6800: esac
! 6801: RANLIB=$ac_ct_RANLIB
! 6802: fi
! 6803: else
! 6804: RANLIB="$ac_cv_prog_RANLIB"
! 6805: fi
! 6806:
! 6807: if test -n "$ac_tool_prefix"; then
! 6808: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 6809: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 6810: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6811: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6812: if test "${ac_cv_prog_STRIP+set}" = set; then
! 6813: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6814: else
! 6815: if test -n "$STRIP"; then
! 6816: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 6817: else
! 6818: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6819: for as_dir in $PATH
! 6820: do
! 6821: IFS=$as_save_IFS
! 6822: test -z "$as_dir" && as_dir=.
! 6823: for ac_exec_ext in '' $ac_executable_extensions; do
! 6824: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6825: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 6826: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6827: break 2
! 6828: fi
! 6829: done
! 6830: done
! 6831: IFS=$as_save_IFS
! 6832:
! 6833: fi
! 6834: fi
! 6835: STRIP=$ac_cv_prog_STRIP
! 6836: if test -n "$STRIP"; then
! 6837: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 6838: echo "${ECHO_T}$STRIP" >&6; }
! 6839: else
! 6840: { echo "$as_me:$LINENO: result: no" >&5
! 6841: echo "${ECHO_T}no" >&6; }
! 6842: fi
! 6843:
! 6844:
! 6845: fi
! 6846: if test -z "$ac_cv_prog_STRIP"; then
! 6847: ac_ct_STRIP=$STRIP
! 6848: # Extract the first word of "strip", so it can be a program name with args.
! 6849: set dummy strip; ac_word=$2
! 6850: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6851: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
! 6852: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 6853: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6854: else
! 6855: if test -n "$ac_ct_STRIP"; then
! 6856: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 6857: else
! 6858: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6859: for as_dir in $PATH
! 6860: do
! 6861: IFS=$as_save_IFS
! 6862: test -z "$as_dir" && as_dir=.
! 6863: for ac_exec_ext in '' $ac_executable_extensions; do
! 6864: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6865: ac_cv_prog_ac_ct_STRIP="strip"
! 6866: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6867: break 2
! 6868: fi
! 6869: done
! 6870: done
! 6871: IFS=$as_save_IFS
! 6872:
! 6873: fi
! 6874: fi
! 6875: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 6876: if test -n "$ac_ct_STRIP"; then
! 6877: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 6878: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
! 6879: else
! 6880: { echo "$as_me:$LINENO: result: no" >&5
! 6881: echo "${ECHO_T}no" >&6; }
! 6882: fi
! 6883:
! 6884: if test "x$ac_ct_STRIP" = x; then
! 6885: STRIP=":"
! 6886: else
! 6887: case $cross_compiling:$ac_tool_warned in
! 6888: yes:)
! 6889: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 6890: whose name does not start with the host triplet. If you think this
! 6891: configuration is useful to you, please write to autoconf@gnu.org." >&5
! 6892: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 6893: whose name does not start with the host triplet. If you think this
! 6894: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
! 6895: ac_tool_warned=yes ;;
! 6896: esac
! 6897: STRIP=$ac_ct_STRIP
! 6898: fi
! 6899: else
! 6900: STRIP="$ac_cv_prog_STRIP"
! 6901: fi
! 6902:
! 6903:
! 6904: old_CC="$CC"
! 6905: old_CFLAGS="$CFLAGS"
! 6906:
! 6907: # Set sane defaults for various variables
! 6908: test -z "$AR" && AR=ar
! 6909: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 6910: test -z "$AS" && AS=as
! 6911: test -z "$CC" && CC=cc
! 6912: test -z "$LTCC" && LTCC=$CC
! 6913: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
! 6914: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 6915: test -z "$LD" && LD=ld
! 6916: test -z "$LN_S" && LN_S="ln -s"
! 6917: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 6918: test -z "$NM" && NM=nm
! 6919: test -z "$SED" && SED=sed
! 6920: test -z "$OBJDUMP" && OBJDUMP=objdump
! 6921: test -z "$RANLIB" && RANLIB=:
! 6922: test -z "$STRIP" && STRIP=:
! 6923: test -z "$ac_objext" && ac_objext=o
! 6924:
! 6925: # Determine commands to create old-style static archives.
! 6926: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
! 6927: old_postinstall_cmds='chmod 644 $oldlib'
! 6928: old_postuninstall_cmds=
! 6929:
! 6930: if test -n "$RANLIB"; then
! 6931: case $host_os in
! 6932: openbsd*)
! 6933: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
! 6934: ;;
! 6935: *)
! 6936: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
! 6937: ;;
! 6938: esac
! 6939: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
! 6940: fi
! 6941:
! 6942: for cc_temp in $compiler""; do
! 6943: case $cc_temp in
! 6944: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 6945: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 6946: \-*) ;;
! 6947: *) break;;
! 6948: esac
! 6949: done
! 6950: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 6951:
! 6952:
! 6953: # Only perform the check for file, if the check method requires it
! 6954: case $deplibs_check_method in
! 6955: file_magic*)
! 6956: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 6957: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 6958: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
! 6959: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 6960: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6961: else
! 6962: case $MAGIC_CMD in
! 6963: [\\/*] | ?:[\\/]*)
! 6964: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 6965: ;;
! 6966: *)
! 6967: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 6968: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 6969: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 6970: for ac_dir in $ac_dummy; do
! 6971: IFS="$lt_save_ifs"
! 6972: test -z "$ac_dir" && ac_dir=.
! 6973: if test -f $ac_dir/${ac_tool_prefix}file; then
! 6974: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 6975: if test -n "$file_magic_test_file"; then
! 6976: case $deplibs_check_method in
! 6977: "file_magic "*)
! 6978: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
! 6979: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 6980: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 6981: $EGREP "$file_magic_regex" > /dev/null; then
! 6982: :
! 6983: else
! 6984: cat <<EOF 1>&2
! 6985:
! 6986: *** Warning: the command libtool uses to detect shared libraries,
! 6987: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 6988: *** The result is that libtool may fail to recognize shared libraries
! 6989: *** as such. This will affect the creation of libtool libraries that
! 6990: *** depend on shared libraries, but programs linked with such libtool
! 6991: *** libraries will work regardless of this problem. Nevertheless, you
! 6992: *** may want to report the problem to your system manager and/or to
! 6993: *** bug-libtool@gnu.org
! 6994:
! 6995: EOF
! 6996: fi ;;
! 6997: esac
! 6998: fi
! 6999: break
! 7000: fi
! 7001: done
! 7002: IFS="$lt_save_ifs"
! 7003: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7004: ;;
! 7005: esac
! 7006: fi
! 7007:
! 7008: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7009: if test -n "$MAGIC_CMD"; then
! 7010: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7011: echo "${ECHO_T}$MAGIC_CMD" >&6; }
! 7012: else
! 7013: { echo "$as_me:$LINENO: result: no" >&5
! 7014: echo "${ECHO_T}no" >&6; }
! 7015: fi
! 7016:
! 7017: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 7018: if test -n "$ac_tool_prefix"; then
! 7019: { echo "$as_me:$LINENO: checking for file" >&5
! 7020: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
! 7021: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7022: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7023: else
! 7024: case $MAGIC_CMD in
! 7025: [\\/*] | ?:[\\/]*)
! 7026: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7027: ;;
! 7028: *)
! 7029: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7030: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7031: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7032: for ac_dir in $ac_dummy; do
! 7033: IFS="$lt_save_ifs"
! 7034: test -z "$ac_dir" && ac_dir=.
! 7035: if test -f $ac_dir/file; then
! 7036: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 7037: if test -n "$file_magic_test_file"; then
! 7038: case $deplibs_check_method in
! 7039: "file_magic "*)
! 7040: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
! 7041: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7042: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7043: $EGREP "$file_magic_regex" > /dev/null; then
! 7044: :
! 7045: else
! 7046: cat <<EOF 1>&2
! 7047:
! 7048: *** Warning: the command libtool uses to detect shared libraries,
! 7049: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7050: *** The result is that libtool may fail to recognize shared libraries
! 7051: *** as such. This will affect the creation of libtool libraries that
! 7052: *** depend on shared libraries, but programs linked with such libtool
! 7053: *** libraries will work regardless of this problem. Nevertheless, you
! 7054: *** may want to report the problem to your system manager and/or to
! 7055: *** bug-libtool@gnu.org
! 7056:
! 7057: EOF
! 7058: fi ;;
! 7059: esac
! 7060: fi
! 7061: break
! 7062: fi
! 7063: done
! 7064: IFS="$lt_save_ifs"
! 7065: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7066: ;;
! 7067: esac
! 7068: fi
! 7069:
! 7070: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7071: if test -n "$MAGIC_CMD"; then
! 7072: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7073: echo "${ECHO_T}$MAGIC_CMD" >&6; }
! 7074: else
! 7075: { echo "$as_me:$LINENO: result: no" >&5
! 7076: echo "${ECHO_T}no" >&6; }
! 7077: fi
! 7078:
! 7079: else
! 7080: MAGIC_CMD=:
! 7081: fi
! 7082: fi
! 7083:
! 7084: fi
! 7085: ;;
! 7086: esac
! 7087:
! 7088: enable_dlopen=no
! 7089: enable_win32_dll=no
! 7090:
! 7091: # Check whether --enable-libtool-lock was given.
! 7092: if test "${enable_libtool_lock+set}" = set; then
! 7093: enableval=$enable_libtool_lock;
! 7094: fi
! 7095:
! 7096: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 7097:
! 7098:
! 7099: # Check whether --with-pic was given.
! 7100: if test "${with_pic+set}" = set; then
! 7101: withval=$with_pic; pic_mode="$withval"
! 7102: else
! 7103: pic_mode=default
! 7104: fi
! 7105:
! 7106: test -z "$pic_mode" && pic_mode=default
! 7107:
! 7108: # Use C for the default configuration in the libtool script
! 7109: tagname=
! 7110: lt_save_CC="$CC"
! 7111: ac_ext=c
! 7112: ac_cpp='$CPP $CPPFLAGS'
! 7113: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7114: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7115: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 7116:
! 7117:
! 7118: # Source file extension for C test sources.
! 7119: ac_ext=c
! 7120:
! 7121: # Object file extension for compiled C test sources.
! 7122: objext=o
! 7123: objext=$objext
! 7124:
! 7125: # Code to be used in simple compile tests
! 7126: lt_simple_compile_test_code="int some_variable = 0;\n"
! 7127:
! 7128: # Code to be used in simple link tests
! 7129: lt_simple_link_test_code='int main(){return(0);}\n'
! 7130:
! 7131:
! 7132: # If no C compiler was specified, use CC.
! 7133: LTCC=${LTCC-"$CC"}
! 7134:
! 7135: # If no C compiler flags were specified, use CFLAGS.
! 7136: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 7137:
! 7138: # Allow CC to be a program name with arguments.
! 7139: compiler=$CC
! 7140:
! 7141:
! 7142: # save warnings/boilerplate of simple test code
! 7143: ac_outfile=conftest.$ac_objext
! 7144: printf "$lt_simple_compile_test_code" >conftest.$ac_ext
! 7145: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 7146: _lt_compiler_boilerplate=`cat conftest.err`
! 7147: $rm conftest*
! 7148:
! 7149: ac_outfile=conftest.$ac_objext
! 7150: printf "$lt_simple_link_test_code" >conftest.$ac_ext
! 7151: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 7152: _lt_linker_boilerplate=`cat conftest.err`
! 7153: $rm conftest*
! 7154:
! 7155:
! 7156:
! 7157: lt_prog_compiler_no_builtin_flag=
! 7158:
! 7159: if test "$GCC" = yes; then
! 7160: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
! 7161:
! 7162:
! 7163: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7164: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
! 7165: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 7166: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7167: else
! 7168: lt_cv_prog_compiler_rtti_exceptions=no
! 7169: ac_outfile=conftest.$ac_objext
! 7170: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7171: lt_compiler_flag="-fno-rtti -fno-exceptions"
! 7172: # Insert the option either (1) after the last *FLAGS variable, or
! 7173: # (2) before a word containing "conftest.", or (3) at the end.
! 7174: # Note that $ac_compile itself does not contain backslashes and begins
! 7175: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7176: # The option is referenced via a variable to avoid confusing sed.
! 7177: lt_compile=`echo "$ac_compile" | $SED \
! 7178: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 7179: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7180: -e 's:$: $lt_compiler_flag:'`
! 7181: (eval echo "\"\$as_me:7181: $lt_compile\"" >&5)
! 7182: (eval "$lt_compile" 2>conftest.err)
! 7183: ac_status=$?
! 7184: cat conftest.err >&5
! 7185: echo "$as_me:7185: \$? = $ac_status" >&5
! 7186: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7187: # The compiler can only warn and ignore the option if not recognized
! 7188: # So say no if there are warnings other than the usual output.
! 7189: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 7190: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7191: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 7192: lt_cv_prog_compiler_rtti_exceptions=yes
! 7193: fi
! 7194: fi
! 7195: $rm conftest*
! 7196:
! 7197: fi
! 7198: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 7199: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
! 7200:
! 7201: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 7202: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
! 7203: else
! 7204: :
! 7205: fi
! 7206:
! 7207: fi
! 7208:
! 7209: lt_prog_compiler_wl=
! 7210: lt_prog_compiler_pic=
! 7211: lt_prog_compiler_static=
! 7212:
! 7213: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 7214: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
! 7215:
! 7216: if test "$GCC" = yes; then
! 7217: lt_prog_compiler_wl='-Wl,'
! 7218: lt_prog_compiler_static='-static'
! 7219:
! 7220: case $host_os in
! 7221: aix*)
! 7222: # All AIX code is PIC.
! 7223: if test "$host_cpu" = ia64; then
! 7224: # AIX 5 now supports IA64 processor
! 7225: lt_prog_compiler_static='-Bstatic'
! 7226: fi
! 7227: ;;
! 7228:
! 7229: amigaos*)
! 7230: # FIXME: we need at least 68020 code to build shared libraries, but
! 7231: # adding the `-m68020' flag to GCC prevents building anything better,
! 7232: # like `-m68040'.
! 7233: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
! 7234: ;;
! 7235:
! 7236: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 7237: # PIC is the default for these OSes.
! 7238: ;;
! 7239:
! 7240: mingw* | pw32* | os2*)
! 7241: # This hack is so that the source file can tell whether it is being
! 7242: # built for inclusion in a dll (and should export symbols for example).
! 7243: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7244: ;;
! 7245:
! 7246: darwin* | rhapsody*)
! 7247: # PIC is the default on this platform
! 7248: # Common symbols not allowed in MH_DYLIB files
! 7249: lt_prog_compiler_pic='-fno-common'
! 7250: ;;
! 7251:
! 7252: interix3*)
! 7253: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 7254: # Instead, we relocate shared libraries at runtime.
! 7255: ;;
! 7256:
! 7257: msdosdjgpp*)
! 7258: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 7259: # on systems that don't support them.
! 7260: lt_prog_compiler_can_build_shared=no
! 7261: enable_shared=no
! 7262: ;;
! 7263:
! 7264: sysv4*MP*)
! 7265: if test -d /usr/nec; then
! 7266: lt_prog_compiler_pic=-Kconform_pic
! 7267: fi
! 7268: ;;
! 7269:
! 7270: hpux*)
! 7271: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 7272: # not for PA HP-UX.
! 7273: case $host_cpu in
! 7274: hppa*64*|ia64*)
! 7275: # +Z the default
! 7276: ;;
! 7277: *)
! 7278: lt_prog_compiler_pic='-fPIC'
! 7279: ;;
! 7280: esac
! 7281: ;;
! 7282:
! 7283: *)
! 7284: lt_prog_compiler_pic='-fPIC'
! 7285: ;;
! 7286: esac
! 7287: else
! 7288: # PORTME Check for flag to pass linker flags through the system compiler.
! 7289: case $host_os in
! 7290: aix*)
! 7291: lt_prog_compiler_wl='-Wl,'
! 7292: if test "$host_cpu" = ia64; then
! 7293: # AIX 5 now supports IA64 processor
! 7294: lt_prog_compiler_static='-Bstatic'
! 7295: else
! 7296: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
! 7297: fi
! 7298: ;;
! 7299: darwin*)
! 7300: # PIC is the default on this platform
! 7301: # Common symbols not allowed in MH_DYLIB files
! 7302: case $cc_basename in
! 7303: xlc*)
! 7304: lt_prog_compiler_pic='-qnocommon'
! 7305: lt_prog_compiler_wl='-Wl,'
! 7306: ;;
! 7307: esac
! 7308: ;;
! 7309:
! 7310: mingw* | pw32* | os2*)
! 7311: # This hack is so that the source file can tell whether it is being
! 7312: # built for inclusion in a dll (and should export symbols for example).
! 7313: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7314: ;;
! 7315:
! 7316: hpux9* | hpux10* | hpux11*)
! 7317: lt_prog_compiler_wl='-Wl,'
! 7318: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 7319: # not for PA HP-UX.
! 7320: case $host_cpu in
! 7321: hppa*64*|ia64*)
! 7322: # +Z the default
! 7323: ;;
! 7324: *)
! 7325: lt_prog_compiler_pic='+Z'
! 7326: ;;
! 7327: esac
! 7328: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 7329: lt_prog_compiler_static='${wl}-a ${wl}archive'
! 7330: ;;
! 7331:
! 7332: irix5* | irix6* | nonstopux*)
! 7333: lt_prog_compiler_wl='-Wl,'
! 7334: # PIC (with -KPIC) is the default.
! 7335: lt_prog_compiler_static='-non_shared'
! 7336: ;;
! 7337:
! 7338: newsos6)
! 7339: lt_prog_compiler_pic='-KPIC'
! 7340: lt_prog_compiler_static='-Bstatic'
! 7341: ;;
! 7342:
! 7343: linux*)
! 7344: case $cc_basename in
! 7345: icc* | ecc*)
! 7346: lt_prog_compiler_wl='-Wl,'
! 7347: lt_prog_compiler_pic='-KPIC'
! 7348: lt_prog_compiler_static='-static'
! 7349: ;;
! 7350: pgcc* | pgf77* | pgf90* | pgf95*)
! 7351: # Portland Group compilers (*not* the Pentium gcc compiler,
! 7352: # which looks to be a dead project)
! 7353: lt_prog_compiler_wl='-Wl,'
! 7354: lt_prog_compiler_pic='-fpic'
! 7355: lt_prog_compiler_static='-Bstatic'
! 7356: ;;
! 7357: ccc*)
! 7358: lt_prog_compiler_wl='-Wl,'
! 7359: # All Alpha code is PIC.
! 7360: lt_prog_compiler_static='-non_shared'
! 7361: ;;
! 7362: esac
! 7363: ;;
! 7364:
! 7365: osf3* | osf4* | osf5*)
! 7366: lt_prog_compiler_wl='-Wl,'
! 7367: # All OSF/1 code is PIC.
! 7368: lt_prog_compiler_static='-non_shared'
! 7369: ;;
! 7370:
! 7371: solaris*)
! 7372: lt_prog_compiler_pic='-KPIC'
! 7373: lt_prog_compiler_static='-Bstatic'
! 7374: case $cc_basename in
! 7375: f77* | f90* | f95*)
! 7376: lt_prog_compiler_wl='-Qoption ld ';;
! 7377: *)
! 7378: lt_prog_compiler_wl='-Wl,';;
! 7379: esac
! 7380: ;;
! 7381:
! 7382: sunos4*)
! 7383: lt_prog_compiler_wl='-Qoption ld '
! 7384: lt_prog_compiler_pic='-PIC'
! 7385: lt_prog_compiler_static='-Bstatic'
! 7386: ;;
! 7387:
! 7388: sysv4 | sysv4.2uw2* | sysv4.3*)
! 7389: lt_prog_compiler_wl='-Wl,'
! 7390: lt_prog_compiler_pic='-KPIC'
! 7391: lt_prog_compiler_static='-Bstatic'
! 7392: ;;
! 7393:
! 7394: sysv4*MP*)
! 7395: if test -d /usr/nec ;then
! 7396: lt_prog_compiler_pic='-Kconform_pic'
! 7397: lt_prog_compiler_static='-Bstatic'
! 7398: fi
! 7399: ;;
! 7400:
! 7401: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 7402: lt_prog_compiler_wl='-Wl,'
! 7403: lt_prog_compiler_pic='-KPIC'
! 7404: lt_prog_compiler_static='-Bstatic'
! 7405: ;;
! 7406:
! 7407: unicos*)
! 7408: lt_prog_compiler_wl='-Wl,'
! 7409: lt_prog_compiler_can_build_shared=no
! 7410: ;;
! 7411:
! 7412: uts4*)
! 7413: lt_prog_compiler_pic='-pic'
! 7414: lt_prog_compiler_static='-Bstatic'
! 7415: ;;
! 7416:
! 7417: *)
! 7418: lt_prog_compiler_can_build_shared=no
! 7419: ;;
! 7420: esac
! 7421: fi
! 7422:
! 7423: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 7424: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
! 7425:
! 7426: #
! 7427: # Check to make sure the PIC flag actually works.
! 7428: #
! 7429: if test -n "$lt_prog_compiler_pic"; then
! 7430:
! 7431: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 7432: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
! 7433: if test "${lt_prog_compiler_pic_works+set}" = set; then
! 7434: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7435: else
! 7436: lt_prog_compiler_pic_works=no
! 7437: ac_outfile=conftest.$ac_objext
! 7438: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7439: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
! 7440: # Insert the option either (1) after the last *FLAGS variable, or
! 7441: # (2) before a word containing "conftest.", or (3) at the end.
! 7442: # Note that $ac_compile itself does not contain backslashes and begins
! 7443: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7444: # The option is referenced via a variable to avoid confusing sed.
! 7445: lt_compile=`echo "$ac_compile" | $SED \
! 7446: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 7447: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7448: -e 's:$: $lt_compiler_flag:'`
! 7449: (eval echo "\"\$as_me:7449: $lt_compile\"" >&5)
! 7450: (eval "$lt_compile" 2>conftest.err)
! 7451: ac_status=$?
! 7452: cat conftest.err >&5
! 7453: echo "$as_me:7453: \$? = $ac_status" >&5
! 7454: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7455: # The compiler can only warn and ignore the option if not recognized
! 7456: # So say no if there are warnings other than the usual output.
! 7457: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 7458: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7459: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 7460: lt_prog_compiler_pic_works=yes
! 7461: fi
! 7462: fi
! 7463: $rm conftest*
! 7464:
! 7465: fi
! 7466: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
! 7467: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
! 7468:
! 7469: if test x"$lt_prog_compiler_pic_works" = xyes; then
! 7470: case $lt_prog_compiler_pic in
! 7471: "" | " "*) ;;
! 7472: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
! 7473: esac
! 7474: else
! 7475: lt_prog_compiler_pic=
! 7476: lt_prog_compiler_can_build_shared=no
! 7477: fi
! 7478:
! 7479: fi
! 7480: case $host_os in
! 7481: # For platforms which do not support PIC, -DPIC is meaningless:
! 7482: *djgpp*)
! 7483: lt_prog_compiler_pic=
! 7484: ;;
! 7485: *)
! 7486: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
! 7487: ;;
! 7488: esac
! 7489:
! 7490: #
! 7491: # Check to make sure the static flag actually works.
! 7492: #
! 7493: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
! 7494: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 7495: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 7496: if test "${lt_prog_compiler_static_works+set}" = set; then
! 7497: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7498: else
! 7499: lt_prog_compiler_static_works=no
! 7500: save_LDFLAGS="$LDFLAGS"
! 7501: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 7502: printf "$lt_simple_link_test_code" > conftest.$ac_ext
! 7503: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 7504: # The linker can only warn and ignore the option if not recognized
! 7505: # So say no if there are warnings
! 7506: if test -s conftest.err; then
! 7507: # Append any errors to the config.log.
! 7508: cat conftest.err 1>&5
! 7509: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 7510: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7511: if diff conftest.exp conftest.er2 >/dev/null; then
! 7512: lt_prog_compiler_static_works=yes
! 7513: fi
! 7514: else
! 7515: lt_prog_compiler_static_works=yes
! 7516: fi
! 7517: fi
! 7518: $rm conftest*
! 7519: LDFLAGS="$save_LDFLAGS"
! 7520:
! 7521: fi
! 7522: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
! 7523: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
! 7524:
! 7525: if test x"$lt_prog_compiler_static_works" = xyes; then
! 7526: :
! 7527: else
! 7528: lt_prog_compiler_static=
! 7529: fi
! 7530:
! 7531:
! 7532: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 7533: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 7534: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 7535: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7536: else
! 7537: lt_cv_prog_compiler_c_o=no
! 7538: $rm -r conftest 2>/dev/null
! 7539: mkdir conftest
! 7540: cd conftest
! 7541: mkdir out
! 7542: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7543:
! 7544: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 7545: # Insert the option either (1) after the last *FLAGS variable, or
! 7546: # (2) before a word containing "conftest.", or (3) at the end.
! 7547: # Note that $ac_compile itself does not contain backslashes and begins
! 7548: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7549: lt_compile=`echo "$ac_compile" | $SED \
! 7550: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 7551: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7552: -e 's:$: $lt_compiler_flag:'`
! 7553: (eval echo "\"\$as_me:7553: $lt_compile\"" >&5)
! 7554: (eval "$lt_compile" 2>out/conftest.err)
! 7555: ac_status=$?
! 7556: cat out/conftest.err >&5
! 7557: echo "$as_me:7557: \$? = $ac_status" >&5
! 7558: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 7559: then
! 7560: # The compiler can only warn and ignore the option if not recognized
! 7561: # So say no if there are warnings
! 7562: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 7563: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 7564: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
! 7565: lt_cv_prog_compiler_c_o=yes
! 7566: fi
! 7567: fi
! 7568: chmod u+w . 2>&5
! 7569: $rm conftest*
! 7570: # SGI C++ compiler will create directory out/ii_files/ for
! 7571: # template instantiation
! 7572: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 7573: $rm out/* && rmdir out
! 7574: cd ..
! 7575: rmdir conftest
! 7576: $rm conftest*
! 7577:
! 7578: fi
! 7579: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 7580: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
! 7581:
! 7582:
! 7583: hard_links="nottested"
! 7584: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
! 7585: # do not overwrite the value of need_locks provided by the user
! 7586: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 7587: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
! 7588: hard_links=yes
! 7589: $rm conftest*
! 7590: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 7591: touch conftest.a
! 7592: ln conftest.a conftest.b 2>&5 || hard_links=no
! 7593: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 7594: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 7595: echo "${ECHO_T}$hard_links" >&6; }
! 7596: if test "$hard_links" = no; then
! 7597: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 7598: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 7599: need_locks=warn
! 7600: fi
! 7601: else
! 7602: need_locks=no
! 7603: fi
! 7604:
! 7605: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 7606: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
! 7607:
! 7608: runpath_var=
! 7609: allow_undefined_flag=
! 7610: enable_shared_with_static_runtimes=no
! 7611: archive_cmds=
! 7612: archive_expsym_cmds=
! 7613: old_archive_From_new_cmds=
! 7614: old_archive_from_expsyms_cmds=
! 7615: export_dynamic_flag_spec=
! 7616: whole_archive_flag_spec=
! 7617: thread_safe_flag_spec=
! 7618: hardcode_libdir_flag_spec=
! 7619: hardcode_libdir_flag_spec_ld=
! 7620: hardcode_libdir_separator=
! 7621: hardcode_direct=no
! 7622: hardcode_minus_L=no
! 7623: hardcode_shlibpath_var=unsupported
! 7624: link_all_deplibs=unknown
! 7625: hardcode_automatic=no
! 7626: module_cmds=
! 7627: module_expsym_cmds=
! 7628: always_export_symbols=no
! 7629: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 7630: # include_expsyms should be a list of space-separated symbols to be *always*
! 7631: # included in the symbol list
! 7632: include_expsyms=
! 7633: # exclude_expsyms can be an extended regexp of symbols to exclude
! 7634: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 7635: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 7636: # as well as any symbol that contains `d'.
! 7637: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 7638: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 7639: # platforms (ab)use it in PIC code, but their linkers get confused if
! 7640: # the symbol is explicitly referenced. Since portable code cannot
! 7641: # rely on this symbol name, it's probably fine to never include it in
! 7642: # preloaded symbol tables.
! 7643: extract_expsyms_cmds=
! 7644: # Just being paranoid about ensuring that cc_basename is set.
! 7645: for cc_temp in $compiler""; do
! 7646: case $cc_temp in
! 7647: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 7648: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 7649: \-*) ;;
! 7650: *) break;;
! 7651: esac
! 7652: done
! 7653: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 7654:
! 7655: case $host_os in
! 7656: cygwin* | mingw* | pw32*)
! 7657: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 7658: # When not using gcc, we currently assume that we are using
! 7659: # Microsoft Visual C++.
! 7660: if test "$GCC" != yes; then
! 7661: with_gnu_ld=no
! 7662: fi
! 7663: ;;
! 7664: interix*)
! 7665: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 7666: with_gnu_ld=yes
! 7667: ;;
! 7668: openbsd*)
! 7669: with_gnu_ld=no
! 7670: ;;
! 7671: esac
! 7672:
! 7673: ld_shlibs=yes
! 7674: if test "$with_gnu_ld" = yes; then
! 7675: # If archive_cmds runs LD, not CC, wlarc should be empty
! 7676: wlarc='${wl}'
! 7677:
! 7678: # Set some defaults for GNU ld with shared library support. These
! 7679: # are reset later if shared libraries are not supported. Putting them
! 7680: # here allows them to be overridden if necessary.
! 7681: runpath_var=LD_RUN_PATH
! 7682: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 7683: export_dynamic_flag_spec='${wl}--export-dynamic'
! 7684: # ancient GNU ld didn't support --whole-archive et. al.
! 7685: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 7686: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 7687: else
! 7688: whole_archive_flag_spec=
! 7689: fi
! 7690: supports_anon_versioning=no
! 7691: case `$LD -v 2>/dev/null` in
! 7692: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 7693: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 7694: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 7695: *\ 2.11.*) ;; # other 2.11 versions
! 7696: *) supports_anon_versioning=yes ;;
! 7697: esac
! 7698:
! 7699: # See if GNU ld supports shared libraries.
! 7700: case $host_os in
! 7701: aix3* | aix4* | aix5*)
! 7702: # On AIX/PPC, the GNU linker is very broken
! 7703: if test "$host_cpu" != ia64; then
! 7704: ld_shlibs=no
! 7705: cat <<EOF 1>&2
! 7706:
! 7707: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 7708: *** to be unable to reliably create shared libraries on AIX.
! 7709: *** Therefore, libtool is disabling shared libraries support. If you
! 7710: *** really care for shared libraries, you may want to modify your PATH
! 7711: *** so that a non-GNU linker is found, and then restart.
! 7712:
! 7713: EOF
! 7714: fi
! 7715: ;;
! 7716:
! 7717: amigaos*)
! 7718: 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)'
! 7719: hardcode_libdir_flag_spec='-L$libdir'
! 7720: hardcode_minus_L=yes
! 7721:
! 7722: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 7723: # that the semantics of dynamic libraries on AmigaOS, at least up
! 7724: # to version 4, is to share data among multiple programs linked
! 7725: # with the same dynamic library. Since this doesn't match the
! 7726: # behavior of shared libraries on other platforms, we can't use
! 7727: # them.
! 7728: ld_shlibs=no
! 7729: ;;
! 7730:
! 7731: beos*)
! 7732: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 7733: allow_undefined_flag=unsupported
! 7734: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 7735: # support --undefined. This deserves some investigation. FIXME
! 7736: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7737: else
! 7738: ld_shlibs=no
! 7739: fi
! 7740: ;;
! 7741:
! 7742: cygwin* | mingw* | pw32*)
! 7743: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
! 7744: # as there is no search path for DLLs.
! 7745: hardcode_libdir_flag_spec='-L$libdir'
! 7746: allow_undefined_flag=unsupported
! 7747: always_export_symbols=no
! 7748: enable_shared_with_static_runtimes=yes
! 7749: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 7750:
! 7751: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 7752: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 7753: # If the export-symbols file already is a .def file (1st line
! 7754: # is EXPORTS), use it as is; otherwise, prepend...
! 7755: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 7756: cp $export_symbols $output_objdir/$soname.def;
! 7757: else
! 7758: echo EXPORTS > $output_objdir/$soname.def;
! 7759: cat $export_symbols >> $output_objdir/$soname.def;
! 7760: fi~
! 7761: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 7762: else
! 7763: ld_shlibs=no
! 7764: fi
! 7765: ;;
! 7766:
! 7767: interix3*)
! 7768: hardcode_direct=no
! 7769: hardcode_shlibpath_var=no
! 7770: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 7771: export_dynamic_flag_spec='${wl}-E'
! 7772: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 7773: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 7774: # default) and relocated if they conflict, which is a slow very memory
! 7775: # consuming and fragmenting process. To avoid this, we pick a random,
! 7776: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 7777: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 7778: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 7779: 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'
! 7780: ;;
! 7781:
! 7782: linux*)
! 7783: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 7784: tmp_addflag=
! 7785: case $cc_basename,$host_cpu in
! 7786: pgcc*) # Portland Group C compiler
! 7787: 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'
! 7788: tmp_addflag=' $pic_flag'
! 7789: ;;
! 7790: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 7791: 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'
! 7792: tmp_addflag=' $pic_flag -Mnomain' ;;
! 7793: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 7794: tmp_addflag=' -i_dynamic' ;;
! 7795: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 7796: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 7797: ifc* | ifort*) # Intel Fortran compiler
! 7798: tmp_addflag=' -nofor_main' ;;
! 7799: esac
! 7800: archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7801:
! 7802: if test $supports_anon_versioning = yes; then
! 7803: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
! 7804: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 7805: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 7806: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 7807: fi
! 7808: else
! 7809: ld_shlibs=no
! 7810: fi
! 7811: ;;
! 7812:
! 7813: netbsd*)
! 7814: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 7815: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 7816: wlarc=
! 7817: else
! 7818: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7819: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 7820: fi
! 7821: ;;
! 7822:
! 7823: solaris*)
! 7824: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 7825: ld_shlibs=no
! 7826: cat <<EOF 1>&2
! 7827:
! 7828: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 7829: *** create shared libraries on Solaris systems. Therefore, libtool
! 7830: *** is disabling shared libraries support. We urge you to upgrade GNU
! 7831: *** binutils to release 2.9.1 or newer. Another option is to modify
! 7832: *** your PATH or compiler configuration so that the native linker is
! 7833: *** used, and then restart.
! 7834:
! 7835: EOF
! 7836: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 7837: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7838: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 7839: else
! 7840: ld_shlibs=no
! 7841: fi
! 7842: ;;
! 7843:
! 7844: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 7845: case `$LD -v 2>&1` in
! 7846: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 7847: ld_shlibs=no
! 7848: cat <<_LT_EOF 1>&2
! 7849:
! 7850: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 7851: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 7852: *** is disabling shared libraries support. We urge you to upgrade GNU
! 7853: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 7854: *** your PATH or compiler configuration so that the native linker is
! 7855: *** used, and then restart.
! 7856:
! 7857: _LT_EOF
! 7858: ;;
! 7859: *)
! 7860: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 7861: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 7862: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 7863: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 7864: else
! 7865: ld_shlibs=no
! 7866: fi
! 7867: ;;
! 7868: esac
! 7869: ;;
! 7870:
! 7871: sunos4*)
! 7872: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 7873: wlarc=
! 7874: hardcode_direct=yes
! 7875: hardcode_shlibpath_var=no
! 7876: ;;
! 7877:
! 7878: *)
! 7879: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 7880: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 7881: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 7882: else
! 7883: ld_shlibs=no
! 7884: fi
! 7885: ;;
! 7886: esac
! 7887:
! 7888: if test "$ld_shlibs" = no; then
! 7889: runpath_var=
! 7890: hardcode_libdir_flag_spec=
! 7891: export_dynamic_flag_spec=
! 7892: whole_archive_flag_spec=
! 7893: fi
! 7894: else
! 7895: # PORTME fill in a description of your system's linker (not GNU ld)
! 7896: case $host_os in
! 7897: aix3*)
! 7898: allow_undefined_flag=unsupported
! 7899: always_export_symbols=yes
! 7900: 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'
! 7901: # Note: this linker hardcodes the directories in LIBPATH if there
! 7902: # are no directories specified by -L.
! 7903: hardcode_minus_L=yes
! 7904: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
! 7905: # Neither direct hardcoding nor static linking is supported with a
! 7906: # broken collect2.
! 7907: hardcode_direct=unsupported
! 7908: fi
! 7909: ;;
! 7910:
! 7911: aix4* | aix5*)
! 7912: if test "$host_cpu" = ia64; then
! 7913: # On IA64, the linker does run time linking by default, so we don't
! 7914: # have to do anything special.
! 7915: aix_use_runtimelinking=no
! 7916: exp_sym_flag='-Bexport'
! 7917: no_entry_flag=""
! 7918: else
! 7919: # If we're using GNU nm, then we don't want the "-C" option.
! 7920: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 7921: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 7922: 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'
! 7923: else
! 7924: 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'
! 7925: fi
! 7926: aix_use_runtimelinking=no
! 7927:
! 7928: # Test if we are trying to use run time linking or normal
! 7929: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 7930: # need to do runtime linking.
! 7931: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 7932: for ld_flag in $LDFLAGS; do
! 7933: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 7934: aix_use_runtimelinking=yes
! 7935: break
! 7936: fi
! 7937: done
! 7938: ;;
! 7939: esac
! 7940:
! 7941: exp_sym_flag='-bexport'
! 7942: no_entry_flag='-bnoentry'
! 7943: fi
! 7944:
! 7945: # When large executables or shared objects are built, AIX ld can
! 7946: # have problems creating the table of contents. If linking a library
! 7947: # or program results in "error TOC overflow" add -mminimal-toc to
! 7948: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 7949: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 7950:
! 7951: archive_cmds=''
! 7952: hardcode_direct=yes
! 7953: hardcode_libdir_separator=':'
! 7954: link_all_deplibs=yes
! 7955:
! 7956: if test "$GCC" = yes; then
! 7957: case $host_os in aix4.[012]|aix4.[012].*)
! 7958: # We only want to do this on AIX 4.2 and lower, the check
! 7959: # below for broken collect2 doesn't work under 4.3+
! 7960: collect2name=`${CC} -print-prog-name=collect2`
! 7961: if test -f "$collect2name" && \
! 7962: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 7963: then
! 7964: # We have reworked collect2
! 7965: hardcode_direct=yes
! 7966: else
! 7967: # We have old collect2
! 7968: hardcode_direct=unsupported
! 7969: # It fails to find uninstalled libraries when the uninstalled
! 7970: # path is not listed in the libpath. Setting hardcode_minus_L
! 7971: # to unsupported forces relinking
! 7972: hardcode_minus_L=yes
! 7973: hardcode_libdir_flag_spec='-L$libdir'
! 7974: hardcode_libdir_separator=
! 7975: fi
! 7976: ;;
! 7977: esac
! 7978: shared_flag='-shared'
! 7979: if test "$aix_use_runtimelinking" = yes; then
! 7980: shared_flag="$shared_flag "'${wl}-G'
! 7981: fi
! 7982: else
! 7983: # not using gcc
! 7984: if test "$host_cpu" = ia64; then
! 7985: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 7986: # chokes on -Wl,-G. The following line is correct:
! 7987: shared_flag='-G'
! 7988: else
! 7989: if test "$aix_use_runtimelinking" = yes; then
! 7990: shared_flag='${wl}-G'
! 7991: else
! 7992: shared_flag='${wl}-bM:SRE'
! 7993: fi
! 7994: fi
! 7995: fi
! 7996:
! 7997: # It seems that -bexpall does not export symbols beginning with
! 7998: # underscore (_), so it is better to generate a list of symbols to export.
! 7999: always_export_symbols=yes
! 8000: if test "$aix_use_runtimelinking" = yes; then
! 8001: # Warning - without using the other runtime loading flags (-brtl),
! 8002: # -berok will link without error, but may produce a broken library.
! 8003: allow_undefined_flag='-berok'
! 8004: # Determine the default libpath from the value encoded in an empty executable.
! 8005: cat >conftest.$ac_ext <<_ACEOF
! 8006: /* confdefs.h. */
! 8007: _ACEOF
! 8008: cat confdefs.h >>conftest.$ac_ext
! 8009: cat >>conftest.$ac_ext <<_ACEOF
! 8010: /* end confdefs.h. */
! 8011:
! 8012: int
! 8013: main ()
! 8014: {
! 8015:
! 8016: ;
! 8017: return 0;
! 8018: }
! 8019: _ACEOF
! 8020: rm -f conftest.$ac_objext conftest$ac_exeext
! 8021: if { (ac_try="$ac_link"
! 8022: case "(($ac_try" in
! 8023: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8024: *) ac_try_echo=$ac_try;;
! 8025: esac
! 8026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8027: (eval "$ac_link") 2>conftest.er1
! 8028: ac_status=$?
! 8029: grep -v '^ *+' conftest.er1 >conftest.err
! 8030: rm -f conftest.er1
! 8031: cat conftest.err >&5
! 8032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8033: (exit $ac_status); } && {
! 8034: test -z "$ac_c_werror_flag" ||
! 8035: test ! -s conftest.err
! 8036: } && test -s conftest$ac_exeext &&
! 8037: $as_test_x conftest$ac_exeext; then
! 8038:
! 8039: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8040: }'`
! 8041: # Check for a 64-bit object if we didn't find anything.
! 8042: 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; }
! 8043: }'`; fi
! 8044: else
! 8045: echo "$as_me: failed program was:" >&5
! 8046: sed 's/^/| /' conftest.$ac_ext >&5
! 8047:
! 8048:
! 8049: fi
! 8050:
! 8051: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8052: conftest$ac_exeext conftest.$ac_ext
! 8053: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8054:
! 8055: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8056: 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"
! 8057: else
! 8058: if test "$host_cpu" = ia64; then
! 8059: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 8060: allow_undefined_flag="-z nodefs"
! 8061: 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"
! 8062: else
! 8063: # Determine the default libpath from the value encoded in an empty executable.
! 8064: cat >conftest.$ac_ext <<_ACEOF
! 8065: /* confdefs.h. */
! 8066: _ACEOF
! 8067: cat confdefs.h >>conftest.$ac_ext
! 8068: cat >>conftest.$ac_ext <<_ACEOF
! 8069: /* end confdefs.h. */
! 8070:
! 8071: int
! 8072: main ()
! 8073: {
! 8074:
! 8075: ;
! 8076: return 0;
! 8077: }
! 8078: _ACEOF
! 8079: rm -f conftest.$ac_objext conftest$ac_exeext
! 8080: if { (ac_try="$ac_link"
! 8081: case "(($ac_try" in
! 8082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8083: *) ac_try_echo=$ac_try;;
! 8084: esac
! 8085: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8086: (eval "$ac_link") 2>conftest.er1
! 8087: ac_status=$?
! 8088: grep -v '^ *+' conftest.er1 >conftest.err
! 8089: rm -f conftest.er1
! 8090: cat conftest.err >&5
! 8091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8092: (exit $ac_status); } && {
! 8093: test -z "$ac_c_werror_flag" ||
! 8094: test ! -s conftest.err
! 8095: } && test -s conftest$ac_exeext &&
! 8096: $as_test_x conftest$ac_exeext; then
! 8097:
! 8098: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8099: }'`
! 8100: # Check for a 64-bit object if we didn't find anything.
! 8101: 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; }
! 8102: }'`; fi
! 8103: else
! 8104: echo "$as_me: failed program was:" >&5
! 8105: sed 's/^/| /' conftest.$ac_ext >&5
! 8106:
! 8107:
! 8108: fi
! 8109:
! 8110: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8111: conftest$ac_exeext conftest.$ac_ext
! 8112: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8113:
! 8114: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8115: # Warning - without using the other run time loading flags,
! 8116: # -berok will link without error, but may produce a broken library.
! 8117: no_undefined_flag=' ${wl}-bernotok'
! 8118: allow_undefined_flag=' ${wl}-berok'
! 8119: # Exported symbols can be pulled into shared objects from archives
! 8120: whole_archive_flag_spec='$convenience'
! 8121: archive_cmds_need_lc=yes
! 8122: # This is similar to how AIX traditionally builds its shared libraries.
! 8123: 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'
! 8124: fi
! 8125: fi
! 8126: ;;
! 8127:
! 8128: amigaos*)
! 8129: 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)'
! 8130: hardcode_libdir_flag_spec='-L$libdir'
! 8131: hardcode_minus_L=yes
! 8132: # see comment about different semantics on the GNU ld section
! 8133: ld_shlibs=no
! 8134: ;;
! 8135:
! 8136: bsdi[45]*)
! 8137: export_dynamic_flag_spec=-rdynamic
! 8138: ;;
! 8139:
! 8140: cygwin* | mingw* | pw32*)
! 8141: # When not using gcc, we currently assume that we are using
! 8142: # Microsoft Visual C++.
! 8143: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 8144: # no search path for DLLs.
! 8145: hardcode_libdir_flag_spec=' '
! 8146: allow_undefined_flag=unsupported
! 8147: # Tell ltmain to make .lib files, not .a files.
! 8148: libext=lib
! 8149: # Tell ltmain to make .dll files, not .so files.
! 8150: shrext_cmds=".dll"
! 8151: # FIXME: Setting linknames here is a bad hack.
! 8152: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 8153: # The linker will automatically build a .lib file if we build a DLL.
! 8154: old_archive_From_new_cmds='true'
! 8155: # FIXME: Should let the user specify the lib program.
! 8156: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 8157: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 8158: enable_shared_with_static_runtimes=yes
! 8159: ;;
! 8160:
! 8161: darwin* | rhapsody*)
! 8162: case $host_os in
! 8163: rhapsody* | darwin1.[012])
! 8164: allow_undefined_flag='${wl}-undefined ${wl}suppress'
! 8165: ;;
! 8166: *) # Darwin 1.3 on
! 8167: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 8168: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8169: else
! 8170: case ${MACOSX_DEPLOYMENT_TARGET} in
! 8171: 10.[012])
! 8172: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8173: ;;
! 8174: 10.*)
! 8175: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
! 8176: ;;
! 8177: esac
! 8178: fi
! 8179: ;;
! 8180: esac
! 8181: archive_cmds_need_lc=no
! 8182: hardcode_direct=no
! 8183: hardcode_automatic=yes
! 8184: hardcode_shlibpath_var=unsupported
! 8185: whole_archive_flag_spec=''
! 8186: link_all_deplibs=yes
! 8187: if test "$GCC" = yes ; then
! 8188: output_verbose_link_cmd='echo'
! 8189: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 8190: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8191: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 8192: 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}'
! 8193: 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}'
! 8194: else
! 8195: case $cc_basename in
! 8196: xlc*)
! 8197: output_verbose_link_cmd='echo'
! 8198: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
! 8199: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8200: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 8201: 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}'
! 8202: 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}'
! 8203: ;;
! 8204: *)
! 8205: ld_shlibs=no
! 8206: ;;
! 8207: esac
! 8208: fi
! 8209: ;;
! 8210:
! 8211: dgux*)
! 8212: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8213: hardcode_libdir_flag_spec='-L$libdir'
! 8214: hardcode_shlibpath_var=no
! 8215: ;;
! 8216:
! 8217: freebsd1*)
! 8218: ld_shlibs=no
! 8219: ;;
! 8220:
! 8221: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 8222: # support. Future versions do this automatically, but an explicit c++rt0.o
! 8223: # does not break anything, and helps significantly (at the cost of a little
! 8224: # extra space).
! 8225: freebsd2.2*)
! 8226: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 8227: hardcode_libdir_flag_spec='-R$libdir'
! 8228: hardcode_direct=yes
! 8229: hardcode_shlibpath_var=no
! 8230: ;;
! 8231:
! 8232: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 8233: freebsd2*)
! 8234: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8235: hardcode_direct=yes
! 8236: hardcode_minus_L=yes
! 8237: hardcode_shlibpath_var=no
! 8238: ;;
! 8239:
! 8240: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 8241: freebsd* | kfreebsd*-gnu | dragonfly*)
! 8242: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 8243: hardcode_libdir_flag_spec='-R$libdir'
! 8244: hardcode_direct=yes
! 8245: hardcode_shlibpath_var=no
! 8246: ;;
! 8247:
! 8248: hpux9*)
! 8249: if test "$GCC" = yes; then
! 8250: 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'
! 8251: else
! 8252: 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'
! 8253: fi
! 8254: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8255: hardcode_libdir_separator=:
! 8256: hardcode_direct=yes
! 8257:
! 8258: # hardcode_minus_L: Not really in the search PATH,
! 8259: # but as the default location of the library.
! 8260: hardcode_minus_L=yes
! 8261: export_dynamic_flag_spec='${wl}-E'
! 8262: ;;
! 8263:
! 8264: hpux10*)
! 8265: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 8266: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8267: else
! 8268: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 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: hardcode_direct=yes
! 8275: export_dynamic_flag_spec='${wl}-E'
! 8276:
! 8277: # hardcode_minus_L: Not really in the search PATH,
! 8278: # but as the default location of the library.
! 8279: hardcode_minus_L=yes
! 8280: fi
! 8281: ;;
! 8282:
! 8283: hpux11*)
! 8284: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 8285: case $host_cpu in
! 8286: hppa*64*)
! 8287: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8288: ;;
! 8289: ia64*)
! 8290: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 8291: ;;
! 8292: *)
! 8293: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8294: ;;
! 8295: esac
! 8296: else
! 8297: case $host_cpu in
! 8298: hppa*64*)
! 8299: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8300: ;;
! 8301: ia64*)
! 8302: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 8303: ;;
! 8304: *)
! 8305: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8306: ;;
! 8307: esac
! 8308: fi
! 8309: if test "$with_gnu_ld" = no; then
! 8310: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8311: hardcode_libdir_separator=:
! 8312:
! 8313: case $host_cpu in
! 8314: hppa*64*|ia64*)
! 8315: hardcode_libdir_flag_spec_ld='+b $libdir'
! 8316: hardcode_direct=no
! 8317: hardcode_shlibpath_var=no
! 8318: ;;
! 8319: *)
! 8320: hardcode_direct=yes
! 8321: export_dynamic_flag_spec='${wl}-E'
! 8322:
! 8323: # hardcode_minus_L: Not really in the search PATH,
! 8324: # but as the default location of the library.
! 8325: hardcode_minus_L=yes
! 8326: ;;
! 8327: esac
! 8328: fi
! 8329: ;;
! 8330:
! 8331: irix5* | irix6* | nonstopux*)
! 8332: if test "$GCC" = yes; then
! 8333: 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'
! 8334: else
! 8335: 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'
! 8336: hardcode_libdir_flag_spec_ld='-rpath $libdir'
! 8337: fi
! 8338: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8339: hardcode_libdir_separator=:
! 8340: link_all_deplibs=yes
! 8341: ;;
! 8342:
! 8343: netbsd*)
! 8344: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8345: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 8346: else
! 8347: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 8348: fi
! 8349: hardcode_libdir_flag_spec='-R$libdir'
! 8350: hardcode_direct=yes
! 8351: hardcode_shlibpath_var=no
! 8352: ;;
! 8353:
! 8354: newsos6)
! 8355: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8356: hardcode_direct=yes
! 8357: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8358: hardcode_libdir_separator=:
! 8359: hardcode_shlibpath_var=no
! 8360: ;;
! 8361:
! 8362: openbsd*)
! 8363: hardcode_direct=yes
! 8364: hardcode_shlibpath_var=no
! 8365: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 8366: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8367: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 8368: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8369: export_dynamic_flag_spec='${wl}-E'
! 8370: else
! 8371: case $host_os in
! 8372: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 8373: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8374: hardcode_libdir_flag_spec='-R$libdir'
! 8375: ;;
! 8376: *)
! 8377: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8378: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8379: ;;
! 8380: esac
! 8381: fi
! 8382: ;;
! 8383:
! 8384: os2*)
! 8385: hardcode_libdir_flag_spec='-L$libdir'
! 8386: hardcode_minus_L=yes
! 8387: allow_undefined_flag=unsupported
! 8388: 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'
! 8389: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 8390: ;;
! 8391:
! 8392: osf3*)
! 8393: if test "$GCC" = yes; then
! 8394: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8395: 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'
! 8396: else
! 8397: allow_undefined_flag=' -expect_unresolved \*'
! 8398: 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'
! 8399: fi
! 8400: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8401: hardcode_libdir_separator=:
! 8402: ;;
! 8403:
! 8404: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 8405: if test "$GCC" = yes; then
! 8406: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8407: 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'
! 8408: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8409: else
! 8410: allow_undefined_flag=' -expect_unresolved \*'
! 8411: 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'
! 8412: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 8413: $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'
! 8414:
! 8415: # Both c and cxx compiler support -rpath directly
! 8416: hardcode_libdir_flag_spec='-rpath $libdir'
! 8417: fi
! 8418: hardcode_libdir_separator=:
! 8419: ;;
! 8420:
! 8421: solaris*)
! 8422: no_undefined_flag=' -z text'
! 8423: if test "$GCC" = yes; then
! 8424: wlarc='${wl}'
! 8425: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8426: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8427: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 8428: else
! 8429: wlarc=''
! 8430: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8431: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8432: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 8433: fi
! 8434: hardcode_libdir_flag_spec='-R$libdir'
! 8435: hardcode_shlibpath_var=no
! 8436: case $host_os in
! 8437: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 8438: *)
! 8439: # The compiler driver will combine linker options so we
! 8440: # cannot just pass the convience library names through
! 8441: # without $wl, iff we do not link with $LD.
! 8442: # Luckily, gcc supports the same syntax we need for Sun Studio.
! 8443: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 8444: case $wlarc in
! 8445: '')
! 8446: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
! 8447: *)
! 8448: 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' ;;
! 8449: esac ;;
! 8450: esac
! 8451: link_all_deplibs=yes
! 8452: ;;
! 8453:
! 8454: sunos4*)
! 8455: if test "x$host_vendor" = xsequent; then
! 8456: # Use $CC to link under sequent, because it throws in some extra .o
! 8457: # files that make .init and .fini sections work.
! 8458: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 8459: else
! 8460: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 8461: fi
! 8462: hardcode_libdir_flag_spec='-L$libdir'
! 8463: hardcode_direct=yes
! 8464: hardcode_minus_L=yes
! 8465: hardcode_shlibpath_var=no
! 8466: ;;
! 8467:
! 8468: sysv4)
! 8469: case $host_vendor in
! 8470: sni)
! 8471: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8472: hardcode_direct=yes # is this really true???
! 8473: ;;
! 8474: siemens)
! 8475: ## LD is ld it makes a PLAMLIB
! 8476: ## CC just makes a GrossModule.
! 8477: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 8478: reload_cmds='$CC -r -o $output$reload_objs'
! 8479: hardcode_direct=no
! 8480: ;;
! 8481: motorola)
! 8482: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8483: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
! 8484: ;;
! 8485: esac
! 8486: runpath_var='LD_RUN_PATH'
! 8487: hardcode_shlibpath_var=no
! 8488: ;;
! 8489:
! 8490: sysv4.3*)
! 8491: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8492: hardcode_shlibpath_var=no
! 8493: export_dynamic_flag_spec='-Bexport'
! 8494: ;;
! 8495:
! 8496: sysv4*MP*)
! 8497: if test -d /usr/nec; then
! 8498: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8499: hardcode_shlibpath_var=no
! 8500: runpath_var=LD_RUN_PATH
! 8501: hardcode_runpath_var=yes
! 8502: ld_shlibs=yes
! 8503: fi
! 8504: ;;
! 8505:
! 8506: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
! 8507: no_undefined_flag='${wl}-z,text'
! 8508: archive_cmds_need_lc=no
! 8509: hardcode_shlibpath_var=no
! 8510: runpath_var='LD_RUN_PATH'
! 8511:
! 8512: if test "$GCC" = yes; then
! 8513: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8514: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8515: else
! 8516: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8517: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8518: fi
! 8519: ;;
! 8520:
! 8521: sysv5* | sco3.2v5* | sco5v6*)
! 8522: # Note: We can NOT use -z defs as we might desire, because we do not
! 8523: # link with -lc, and that would cause any symbols used from libc to
! 8524: # always be unresolved, which means just about no library would
! 8525: # ever link correctly. If we're not using GNU ld we use -z text
! 8526: # though, which does catch some bad symbols but isn't as heavy-handed
! 8527: # as -z defs.
! 8528: no_undefined_flag='${wl}-z,text'
! 8529: allow_undefined_flag='${wl}-z,nodefs'
! 8530: archive_cmds_need_lc=no
! 8531: hardcode_shlibpath_var=no
! 8532: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 8533: hardcode_libdir_separator=':'
! 8534: link_all_deplibs=yes
! 8535: export_dynamic_flag_spec='${wl}-Bexport'
! 8536: runpath_var='LD_RUN_PATH'
! 8537:
! 8538: if test "$GCC" = yes; then
! 8539: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8540: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8541: else
! 8542: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8543: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8544: fi
! 8545: ;;
! 8546:
! 8547: uts4*)
! 8548: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8549: hardcode_libdir_flag_spec='-L$libdir'
! 8550: hardcode_shlibpath_var=no
! 8551: ;;
! 8552:
! 8553: *)
! 8554: ld_shlibs=no
! 8555: ;;
! 8556: esac
! 8557: fi
! 8558:
! 8559: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 8560: echo "${ECHO_T}$ld_shlibs" >&6; }
! 8561: test "$ld_shlibs" = no && can_build_shared=no
! 8562:
! 8563: #
! 8564: # Do we need to explicitly link libc?
! 8565: #
! 8566: case "x$archive_cmds_need_lc" in
! 8567: x|xyes)
! 8568: # Assume -lc should be added
! 8569: archive_cmds_need_lc=yes
! 8570:
! 8571: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 8572: case $archive_cmds in
! 8573: *'~'*)
! 8574: # FIXME: we may have to deal with multi-command sequences.
! 8575: ;;
! 8576: '$CC '*)
! 8577: # Test whether the compiler implicitly links with -lc since on some
! 8578: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 8579: # to ld, don't add -lc before -lgcc.
! 8580: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 8581: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 8582: $rm conftest*
! 8583: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 8584:
! 8585: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8586: (eval $ac_compile) 2>&5
! 8587: ac_status=$?
! 8588: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8589: (exit $ac_status); } 2>conftest.err; then
! 8590: soname=conftest
! 8591: lib=conftest
! 8592: libobjs=conftest.$ac_objext
! 8593: deplibs=
! 8594: wl=$lt_prog_compiler_wl
! 8595: pic_flag=$lt_prog_compiler_pic
! 8596: compiler_flags=-v
! 8597: linker_flags=-v
! 8598: verstring=
! 8599: output_objdir=.
! 8600: libname=conftest
! 8601: lt_save_allow_undefined_flag=$allow_undefined_flag
! 8602: allow_undefined_flag=
! 8603: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 8604: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 8605: ac_status=$?
! 8606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8607: (exit $ac_status); }
! 8608: then
! 8609: archive_cmds_need_lc=no
! 8610: else
! 8611: archive_cmds_need_lc=yes
! 8612: fi
! 8613: allow_undefined_flag=$lt_save_allow_undefined_flag
! 8614: else
! 8615: cat conftest.err 1>&5
! 8616: fi
! 8617: $rm conftest*
! 8618: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 8619: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
! 8620: ;;
! 8621: esac
! 8622: fi
! 8623: ;;
! 8624: esac
! 8625:
! 8626: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 8627: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 8628: library_names_spec=
! 8629: libname_spec='lib$name'
! 8630: soname_spec=
! 8631: shrext_cmds=".so"
! 8632: postinstall_cmds=
! 8633: postuninstall_cmds=
! 8634: finish_cmds=
! 8635: finish_eval=
! 8636: shlibpath_var=
! 8637: shlibpath_overrides_runpath=unknown
! 8638: version_type=none
! 8639: dynamic_linker="$host_os ld.so"
! 8640: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 8641: if test "$GCC" = yes; then
! 8642: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 8643: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 8644: # if the path contains ";" then we assume it to be the separator
! 8645: # otherwise default to the standard path separator (i.e. ":") - it is
! 8646: # assumed that no part of a normal pathname contains ";" but that should
! 8647: # okay in the real world where ";" in dirpaths is itself problematic.
! 8648: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 8649: else
! 8650: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 8651: fi
! 8652: else
! 8653: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 8654: fi
! 8655: need_lib_prefix=unknown
! 8656: hardcode_into_libs=no
! 8657:
! 8658: # when you set need_version to no, make sure it does not cause -set_version
! 8659: # flags to be left without arguments
! 8660: need_version=unknown
! 8661:
! 8662: case $host_os in
! 8663: aix3*)
! 8664: version_type=linux
! 8665: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 8666: shlibpath_var=LIBPATH
! 8667:
! 8668: # AIX 3 has no versioning support, so we append a major version to the name.
! 8669: soname_spec='${libname}${release}${shared_ext}$major'
! 8670: ;;
! 8671:
! 8672: aix4* | aix5*)
! 8673: version_type=linux
! 8674: need_lib_prefix=no
! 8675: need_version=no
! 8676: hardcode_into_libs=yes
! 8677: if test "$host_cpu" = ia64; then
! 8678: # AIX 5 supports IA64
! 8679: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 8680: shlibpath_var=LD_LIBRARY_PATH
! 8681: else
! 8682: # With GCC up to 2.95.x, collect2 would create an import file
! 8683: # for dependence libraries. The import file would start with
! 8684: # the line `#! .'. This would cause the generated library to
! 8685: # depend on `.', always an invalid library. This was fixed in
! 8686: # development snapshots of GCC prior to 3.0.
! 8687: case $host_os in
! 8688: aix4 | aix4.[01] | aix4.[01].*)
! 8689: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 8690: echo ' yes '
! 8691: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 8692: :
! 8693: else
! 8694: can_build_shared=no
! 8695: fi
! 8696: ;;
! 8697: esac
! 8698: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 8699: # soname into executable. Probably we can add versioning support to
! 8700: # collect2, so additional links can be useful in future.
! 8701: if test "$aix_use_runtimelinking" = yes; then
! 8702: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 8703: # instead of lib<name>.a to let people know that these are not
! 8704: # typical AIX shared libraries.
! 8705: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8706: else
! 8707: # We preserve .a as extension for shared libraries through AIX4.2
! 8708: # and later when we are not doing run time linking.
! 8709: library_names_spec='${libname}${release}.a $libname.a'
! 8710: soname_spec='${libname}${release}${shared_ext}$major'
! 8711: fi
! 8712: shlibpath_var=LIBPATH
! 8713: fi
! 8714: ;;
! 8715:
! 8716: amigaos*)
! 8717: library_names_spec='$libname.ixlibrary $libname.a'
! 8718: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 8719: 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'
! 8720: ;;
! 8721:
! 8722: beos*)
! 8723: library_names_spec='${libname}${shared_ext}'
! 8724: dynamic_linker="$host_os ld.so"
! 8725: shlibpath_var=LIBRARY_PATH
! 8726: ;;
! 8727:
! 8728: bsdi[45]*)
! 8729: version_type=linux
! 8730: need_version=no
! 8731: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8732: soname_spec='${libname}${release}${shared_ext}$major'
! 8733: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 8734: shlibpath_var=LD_LIBRARY_PATH
! 8735: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 8736: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 8737: # the default ld.so.conf also contains /usr/contrib/lib and
! 8738: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 8739: # libtool to hard-code these into programs
! 8740: ;;
! 8741:
! 8742: cygwin* | mingw* | pw32*)
! 8743: version_type=windows
! 8744: shrext_cmds=".dll"
! 8745: need_version=no
! 8746: need_lib_prefix=no
! 8747:
! 8748: case $GCC,$host_os in
! 8749: yes,cygwin* | yes,mingw* | yes,pw32*)
! 8750: library_names_spec='$libname.dll.a'
! 8751: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 8752: postinstall_cmds='base_file=`basename \${file}`~
! 8753: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 8754: dldir=$destdir/`dirname \$dlpath`~
! 8755: test -d \$dldir || mkdir -p \$dldir~
! 8756: $install_prog $dir/$dlname \$dldir/$dlname~
! 8757: chmod a+x \$dldir/$dlname'
! 8758: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 8759: dlpath=$dir/\$dldll~
! 8760: $rm \$dlpath'
! 8761: shlibpath_overrides_runpath=yes
! 8762:
! 8763: case $host_os in
! 8764: cygwin*)
! 8765: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 8766: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 8767: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 8768: ;;
! 8769: mingw*)
! 8770: # MinGW DLLs use traditional 'lib' prefix
! 8771: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 8772: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 8773: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 8774: # It is most probably a Windows format PATH printed by
! 8775: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 8776: # path with ; separators, and with drive letters. We can handle the
! 8777: # drive letters (cygwin fileutils understands them), so leave them,
! 8778: # especially as we might pass files found there to a mingw objdump,
! 8779: # which wouldn't understand a cygwinified path. Ahh.
! 8780: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 8781: else
! 8782: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 8783: fi
! 8784: ;;
! 8785: pw32*)
! 8786: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 8787: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 8788: ;;
! 8789: esac
! 8790: ;;
! 8791:
! 8792: *)
! 8793: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 8794: ;;
! 8795: esac
! 8796: dynamic_linker='Win32 ld.exe'
! 8797: # FIXME: first we should search . and the directory the executable is in
! 8798: shlibpath_var=PATH
! 8799: ;;
! 8800:
! 8801: darwin* | rhapsody*)
! 8802: dynamic_linker="$host_os dyld"
! 8803: version_type=darwin
! 8804: need_lib_prefix=no
! 8805: need_version=no
! 8806: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 8807: soname_spec='${libname}${release}${major}$shared_ext'
! 8808: shlibpath_overrides_runpath=yes
! 8809: shlibpath_var=DYLD_LIBRARY_PATH
! 8810: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 8811: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 8812: if test "$GCC" = yes; then
! 8813: 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"`
! 8814: else
! 8815: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
! 8816: fi
! 8817: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 8818: ;;
! 8819:
! 8820: dgux*)
! 8821: version_type=linux
! 8822: need_lib_prefix=no
! 8823: need_version=no
! 8824: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 8825: soname_spec='${libname}${release}${shared_ext}$major'
! 8826: shlibpath_var=LD_LIBRARY_PATH
! 8827: ;;
! 8828:
! 8829: freebsd1*)
! 8830: dynamic_linker=no
! 8831: ;;
! 8832:
! 8833: kfreebsd*-gnu)
! 8834: version_type=linux
! 8835: need_lib_prefix=no
! 8836: need_version=no
! 8837: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 8838: soname_spec='${libname}${release}${shared_ext}$major'
! 8839: shlibpath_var=LD_LIBRARY_PATH
! 8840: shlibpath_overrides_runpath=no
! 8841: hardcode_into_libs=yes
! 8842: dynamic_linker='GNU ld.so'
! 8843: ;;
! 8844:
! 8845: freebsd* | dragonfly*)
! 8846: # DragonFly does not have aout. When/if they implement a new
! 8847: # versioning mechanism, adjust this.
! 8848: if test -x /usr/bin/objformat; then
! 8849: objformat=`/usr/bin/objformat`
! 8850: else
! 8851: case $host_os in
! 8852: freebsd[123]*) objformat=aout ;;
! 8853: *) objformat=elf ;;
! 8854: esac
! 8855: fi
! 8856: version_type=freebsd-$objformat
! 8857: case $version_type in
! 8858: freebsd-elf*)
! 8859: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 8860: need_version=no
! 8861: need_lib_prefix=no
! 8862: ;;
! 8863: freebsd-*)
! 8864: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 8865: need_version=yes
! 8866: ;;
! 8867: esac
! 8868: shlibpath_var=LD_LIBRARY_PATH
! 8869: case $host_os in
! 8870: freebsd2*)
! 8871: shlibpath_overrides_runpath=yes
! 8872: ;;
! 8873: freebsd3.[01]* | freebsdelf3.[01]*)
! 8874: shlibpath_overrides_runpath=yes
! 8875: hardcode_into_libs=yes
! 8876: ;;
! 8877: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 8878: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 8879: shlibpath_overrides_runpath=no
! 8880: hardcode_into_libs=yes
! 8881: ;;
! 8882: freebsd*) # from 4.6 on
! 8883: shlibpath_overrides_runpath=yes
! 8884: hardcode_into_libs=yes
! 8885: ;;
! 8886: esac
! 8887: ;;
! 8888:
! 8889: gnu*)
! 8890: version_type=linux
! 8891: need_lib_prefix=no
! 8892: need_version=no
! 8893: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 8894: soname_spec='${libname}${release}${shared_ext}$major'
! 8895: shlibpath_var=LD_LIBRARY_PATH
! 8896: hardcode_into_libs=yes
! 8897: ;;
! 8898:
! 8899: hpux9* | hpux10* | hpux11*)
! 8900: # Give a soname corresponding to the major version so that dld.sl refuses to
! 8901: # link against other versions.
! 8902: version_type=sunos
! 8903: need_lib_prefix=no
! 8904: need_version=no
! 8905: case $host_cpu in
! 8906: ia64*)
! 8907: shrext_cmds='.so'
! 8908: hardcode_into_libs=yes
! 8909: dynamic_linker="$host_os dld.so"
! 8910: shlibpath_var=LD_LIBRARY_PATH
! 8911: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 8912: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8913: soname_spec='${libname}${release}${shared_ext}$major'
! 8914: if test "X$HPUX_IA64_MODE" = X32; then
! 8915: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 8916: else
! 8917: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 8918: fi
! 8919: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 8920: ;;
! 8921: hppa*64*)
! 8922: shrext_cmds='.sl'
! 8923: hardcode_into_libs=yes
! 8924: dynamic_linker="$host_os dld.sl"
! 8925: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 8926: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 8927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8928: soname_spec='${libname}${release}${shared_ext}$major'
! 8929: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 8930: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 8931: ;;
! 8932: *)
! 8933: shrext_cmds='.sl'
! 8934: dynamic_linker="$host_os dld.sl"
! 8935: shlibpath_var=SHLIB_PATH
! 8936: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 8937: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8938: soname_spec='${libname}${release}${shared_ext}$major'
! 8939: ;;
! 8940: esac
! 8941: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 8942: postinstall_cmds='chmod 555 $lib'
! 8943: ;;
! 8944:
! 8945: interix3*)
! 8946: version_type=linux
! 8947: need_lib_prefix=no
! 8948: need_version=no
! 8949: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 8950: soname_spec='${libname}${release}${shared_ext}$major'
! 8951: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 8952: shlibpath_var=LD_LIBRARY_PATH
! 8953: shlibpath_overrides_runpath=no
! 8954: hardcode_into_libs=yes
! 8955: ;;
! 8956:
! 8957: irix5* | irix6* | nonstopux*)
! 8958: case $host_os in
! 8959: nonstopux*) version_type=nonstopux ;;
! 8960: *)
! 8961: if test "$lt_cv_prog_gnu_ld" = yes; then
! 8962: version_type=linux
! 8963: else
! 8964: version_type=irix
! 8965: fi ;;
! 8966: esac
! 8967: need_lib_prefix=no
! 8968: need_version=no
! 8969: soname_spec='${libname}${release}${shared_ext}$major'
! 8970: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 8971: case $host_os in
! 8972: irix5* | nonstopux*)
! 8973: libsuff= shlibsuff=
! 8974: ;;
! 8975: *)
! 8976: case $LD in # libtool.m4 will add one of these switches to LD
! 8977: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 8978: libsuff= shlibsuff= libmagic=32-bit;;
! 8979: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 8980: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 8981: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 8982: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 8983: *) libsuff= shlibsuff= libmagic=never-match;;
! 8984: esac
! 8985: ;;
! 8986: esac
! 8987: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 8988: shlibpath_overrides_runpath=no
! 8989: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 8990: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 8991: hardcode_into_libs=yes
! 8992: ;;
! 8993:
! 8994: # No shared lib support for Linux oldld, aout, or coff.
! 8995: linux*oldld* | linux*aout* | linux*coff*)
! 8996: dynamic_linker=no
! 8997: ;;
! 8998:
! 8999: # This must be Linux ELF.
! 9000: linux*)
! 9001: version_type=linux
! 9002: need_lib_prefix=no
! 9003: need_version=no
! 9004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9005: soname_spec='${libname}${release}${shared_ext}$major'
! 9006: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 9007: shlibpath_var=LD_LIBRARY_PATH
! 9008: shlibpath_overrides_runpath=no
! 9009: # This implies no fast_install, which is unacceptable.
! 9010: # Some rework will be needed to allow for fast_install
! 9011: # before this can be enabled.
! 9012: hardcode_into_libs=yes
! 9013:
! 9014: # Append ld.so.conf contents to the search path
! 9015: if test -f /etc/ld.so.conf; then
! 9016: 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' ' '`
! 9017: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 9018: fi
! 9019:
! 9020: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 9021: # powerpc, because MkLinux only supported shared libraries with the
! 9022: # GNU dynamic linker. Since this was broken with cross compilers,
! 9023: # most powerpc-linux boxes support dynamic linking these days and
! 9024: # people can always --disable-shared, the test was removed, and we
! 9025: # assume the GNU/Linux dynamic linker is in use.
! 9026: dynamic_linker='GNU/Linux ld.so'
! 9027: ;;
! 9028:
! 9029: knetbsd*-gnu)
! 9030: version_type=linux
! 9031: need_lib_prefix=no
! 9032: need_version=no
! 9033: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9034: soname_spec='${libname}${release}${shared_ext}$major'
! 9035: shlibpath_var=LD_LIBRARY_PATH
! 9036: shlibpath_overrides_runpath=no
! 9037: hardcode_into_libs=yes
! 9038: dynamic_linker='GNU ld.so'
! 9039: ;;
! 9040:
! 9041: netbsd*)
! 9042: version_type=sunos
! 9043: need_lib_prefix=no
! 9044: need_version=no
! 9045: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 9046: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9047: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 9048: dynamic_linker='NetBSD (a.out) ld.so'
! 9049: else
! 9050: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9051: soname_spec='${libname}${release}${shared_ext}$major'
! 9052: dynamic_linker='NetBSD ld.elf_so'
! 9053: fi
! 9054: shlibpath_var=LD_LIBRARY_PATH
! 9055: shlibpath_overrides_runpath=yes
! 9056: hardcode_into_libs=yes
! 9057: ;;
! 9058:
! 9059: newsos6)
! 9060: version_type=linux
! 9061: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9062: shlibpath_var=LD_LIBRARY_PATH
! 9063: shlibpath_overrides_runpath=yes
! 9064: ;;
! 9065:
! 9066: nto-qnx*)
! 9067: version_type=linux
! 9068: need_lib_prefix=no
! 9069: need_version=no
! 9070: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9071: soname_spec='${libname}${release}${shared_ext}$major'
! 9072: shlibpath_var=LD_LIBRARY_PATH
! 9073: shlibpath_overrides_runpath=yes
! 9074: ;;
! 9075:
! 9076: openbsd*)
! 9077: version_type=sunos
! 9078: sys_lib_dlsearch_path_spec="/usr/lib"
! 9079: need_lib_prefix=no
! 9080: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 9081: case $host_os in
! 9082: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 9083: *) need_version=no ;;
! 9084: esac
! 9085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9086: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 9087: shlibpath_var=LD_LIBRARY_PATH
! 9088: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 9089: case $host_os in
! 9090: openbsd2.[89] | openbsd2.[89].*)
! 9091: shlibpath_overrides_runpath=no
! 9092: ;;
! 9093: *)
! 9094: shlibpath_overrides_runpath=yes
! 9095: ;;
! 9096: esac
! 9097: else
! 9098: shlibpath_overrides_runpath=yes
! 9099: fi
! 9100: ;;
! 9101:
! 9102: os2*)
! 9103: libname_spec='$name'
! 9104: shrext_cmds=".dll"
! 9105: need_lib_prefix=no
! 9106: library_names_spec='$libname${shared_ext} $libname.a'
! 9107: dynamic_linker='OS/2 ld.exe'
! 9108: shlibpath_var=LIBPATH
! 9109: ;;
! 9110:
! 9111: osf3* | osf4* | osf5*)
! 9112: version_type=osf
! 9113: need_lib_prefix=no
! 9114: need_version=no
! 9115: soname_spec='${libname}${release}${shared_ext}$major'
! 9116: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9117: shlibpath_var=LD_LIBRARY_PATH
! 9118: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 9119: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 9120: ;;
! 9121:
! 9122: solaris*)
! 9123: version_type=linux
! 9124: need_lib_prefix=no
! 9125: need_version=no
! 9126: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9127: soname_spec='${libname}${release}${shared_ext}$major'
! 9128: shlibpath_var=LD_LIBRARY_PATH
! 9129: shlibpath_overrides_runpath=yes
! 9130: hardcode_into_libs=yes
! 9131: # ldd complains unless libraries are executable
! 9132: postinstall_cmds='chmod +x $lib'
! 9133: ;;
! 9134:
! 9135: sunos4*)
! 9136: version_type=sunos
! 9137: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9138: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 9139: shlibpath_var=LD_LIBRARY_PATH
! 9140: shlibpath_overrides_runpath=yes
! 9141: if test "$with_gnu_ld" = yes; then
! 9142: need_lib_prefix=no
! 9143: fi
! 9144: need_version=yes
! 9145: ;;
! 9146:
! 9147: sysv4 | sysv4.3*)
! 9148: version_type=linux
! 9149: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9150: soname_spec='${libname}${release}${shared_ext}$major'
! 9151: shlibpath_var=LD_LIBRARY_PATH
! 9152: case $host_vendor in
! 9153: sni)
! 9154: shlibpath_overrides_runpath=no
! 9155: need_lib_prefix=no
! 9156: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 9157: runpath_var=LD_RUN_PATH
! 9158: ;;
! 9159: siemens)
! 9160: need_lib_prefix=no
! 9161: ;;
! 9162: motorola)
! 9163: need_lib_prefix=no
! 9164: need_version=no
! 9165: shlibpath_overrides_runpath=no
! 9166: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 9167: ;;
! 9168: esac
! 9169: ;;
! 9170:
! 9171: sysv4*MP*)
! 9172: if test -d /usr/nec ;then
! 9173: version_type=linux
! 9174: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 9175: soname_spec='$libname${shared_ext}.$major'
! 9176: shlibpath_var=LD_LIBRARY_PATH
! 9177: fi
! 9178: ;;
! 9179:
! 9180: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 9181: version_type=freebsd-elf
! 9182: need_lib_prefix=no
! 9183: need_version=no
! 9184: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9185: soname_spec='${libname}${release}${shared_ext}$major'
! 9186: shlibpath_var=LD_LIBRARY_PATH
! 9187: hardcode_into_libs=yes
! 9188: if test "$with_gnu_ld" = yes; then
! 9189: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 9190: shlibpath_overrides_runpath=no
! 9191: else
! 9192: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 9193: shlibpath_overrides_runpath=yes
! 9194: case $host_os in
! 9195: sco3.2v5*)
! 9196: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 9197: ;;
! 9198: esac
! 9199: fi
! 9200: sys_lib_dlsearch_path_spec='/usr/lib'
! 9201: ;;
! 9202:
! 9203: uts4*)
! 9204: version_type=linux
! 9205: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9206: soname_spec='${libname}${release}${shared_ext}$major'
! 9207: shlibpath_var=LD_LIBRARY_PATH
! 9208: ;;
! 9209:
! 9210: *)
! 9211: dynamic_linker=no
! 9212: ;;
! 9213: esac
! 9214: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 9215: echo "${ECHO_T}$dynamic_linker" >&6; }
! 9216: test "$dynamic_linker" = no && can_build_shared=no
! 9217:
! 9218: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 9219: if test "$GCC" = yes; then
! 9220: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 9221: fi
! 9222:
! 9223: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 9224: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 9225: hardcode_action=
! 9226: if test -n "$hardcode_libdir_flag_spec" || \
! 9227: test -n "$runpath_var" || \
! 9228: test "X$hardcode_automatic" = "Xyes" ; then
! 9229:
! 9230: # We can hardcode non-existant directories.
! 9231: if test "$hardcode_direct" != no &&
! 9232: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 9233: # have to relink, otherwise we might link with an installed library
! 9234: # when we should be linking with a yet-to-be-installed one
! 9235: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 9236: test "$hardcode_minus_L" != no; then
! 9237: # Linking always hardcodes the temporary library directory.
! 9238: hardcode_action=relink
! 9239: else
! 9240: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 9241: hardcode_action=immediate
! 9242: fi
! 9243: else
! 9244: # We cannot hardcode anything, or else we can only hardcode existing
! 9245: # directories.
! 9246: hardcode_action=unsupported
! 9247: fi
! 9248: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 9249: echo "${ECHO_T}$hardcode_action" >&6; }
! 9250:
! 9251: if test "$hardcode_action" = relink; then
! 9252: # Fast installation is not supported
! 9253: enable_fast_install=no
! 9254: elif test "$shlibpath_overrides_runpath" = yes ||
! 9255: test "$enable_shared" = no; then
! 9256: # Fast installation is not necessary
! 9257: enable_fast_install=needless
! 9258: fi
! 9259:
! 9260: striplib=
! 9261: old_striplib=
! 9262: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 9263: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
! 9264: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 9265: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 9266: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 9267: { echo "$as_me:$LINENO: result: yes" >&5
! 9268: echo "${ECHO_T}yes" >&6; }
! 9269: else
! 9270: # FIXME - insert some real tests, host_os isn't really good enough
! 9271: case $host_os in
! 9272: darwin*)
! 9273: if test -n "$STRIP" ; then
! 9274: striplib="$STRIP -x"
! 9275: { echo "$as_me:$LINENO: result: yes" >&5
! 9276: echo "${ECHO_T}yes" >&6; }
! 9277: else
! 9278: { echo "$as_me:$LINENO: result: no" >&5
! 9279: echo "${ECHO_T}no" >&6; }
! 9280: fi
! 9281: ;;
! 9282: *)
! 9283: { echo "$as_me:$LINENO: result: no" >&5
! 9284: echo "${ECHO_T}no" >&6; }
! 9285: ;;
! 9286: esac
! 9287: fi
! 9288:
! 9289: if test "x$enable_dlopen" != xyes; then
! 9290: enable_dlopen=unknown
! 9291: enable_dlopen_self=unknown
! 9292: enable_dlopen_self_static=unknown
! 9293: else
! 9294: lt_cv_dlopen=no
! 9295: lt_cv_dlopen_libs=
! 9296:
! 9297: case $host_os in
! 9298: beos*)
! 9299: lt_cv_dlopen="load_add_on"
! 9300: lt_cv_dlopen_libs=
! 9301: lt_cv_dlopen_self=yes
! 9302: ;;
! 9303:
! 9304: mingw* | pw32*)
! 9305: lt_cv_dlopen="LoadLibrary"
! 9306: lt_cv_dlopen_libs=
! 9307: ;;
! 9308:
! 9309: cygwin*)
! 9310: lt_cv_dlopen="dlopen"
! 9311: lt_cv_dlopen_libs=
! 9312: ;;
! 9313:
! 9314: darwin*)
! 9315: # if libdl is installed we need to link against it
! 9316: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 9317: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 9318: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 9319: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9320: else
! 9321: ac_check_lib_save_LIBS=$LIBS
! 9322: LIBS="-ldl $LIBS"
! 9323: cat >conftest.$ac_ext <<_ACEOF
! 9324: /* confdefs.h. */
! 9325: _ACEOF
! 9326: cat confdefs.h >>conftest.$ac_ext
! 9327: cat >>conftest.$ac_ext <<_ACEOF
! 9328: /* end confdefs.h. */
! 9329:
! 9330: /* Override any GCC internal prototype to avoid an error.
! 9331: Use char because int might match the return type of a GCC
! 9332: builtin and then its argument prototype would still apply. */
! 9333: #ifdef __cplusplus
! 9334: extern "C"
! 9335: #endif
! 9336: char dlopen ();
! 9337: int
! 9338: main ()
! 9339: {
! 9340: return dlopen ();
! 9341: ;
! 9342: return 0;
! 9343: }
! 9344: _ACEOF
! 9345: rm -f conftest.$ac_objext conftest$ac_exeext
! 9346: if { (ac_try="$ac_link"
! 9347: case "(($ac_try" in
! 9348: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9349: *) ac_try_echo=$ac_try;;
! 9350: esac
! 9351: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9352: (eval "$ac_link") 2>conftest.er1
! 9353: ac_status=$?
! 9354: grep -v '^ *+' conftest.er1 >conftest.err
! 9355: rm -f conftest.er1
! 9356: cat conftest.err >&5
! 9357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9358: (exit $ac_status); } && {
! 9359: test -z "$ac_c_werror_flag" ||
! 9360: test ! -s conftest.err
! 9361: } && test -s conftest$ac_exeext &&
! 9362: $as_test_x conftest$ac_exeext; then
! 9363: ac_cv_lib_dl_dlopen=yes
! 9364: else
! 9365: echo "$as_me: failed program was:" >&5
! 9366: sed 's/^/| /' conftest.$ac_ext >&5
! 9367:
! 9368: ac_cv_lib_dl_dlopen=no
! 9369: fi
! 9370:
! 9371: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9372: conftest$ac_exeext conftest.$ac_ext
! 9373: LIBS=$ac_check_lib_save_LIBS
! 9374: fi
! 9375: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 9376: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 9377: if test $ac_cv_lib_dl_dlopen = yes; then
! 9378: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 9379: else
! 9380:
! 9381: lt_cv_dlopen="dyld"
! 9382: lt_cv_dlopen_libs=
! 9383: lt_cv_dlopen_self=yes
! 9384:
! 9385: fi
! 9386:
! 9387: ;;
! 9388:
! 9389: *)
! 9390: { echo "$as_me:$LINENO: checking for shl_load" >&5
! 9391: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
! 9392: if test "${ac_cv_func_shl_load+set}" = set; then
! 9393: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9394: else
! 9395: cat >conftest.$ac_ext <<_ACEOF
! 9396: /* confdefs.h. */
! 9397: _ACEOF
! 9398: cat confdefs.h >>conftest.$ac_ext
! 9399: cat >>conftest.$ac_ext <<_ACEOF
! 9400: /* end confdefs.h. */
! 9401: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 9402: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 9403: #define shl_load innocuous_shl_load
! 9404:
! 9405: /* System header to define __stub macros and hopefully few prototypes,
! 9406: which can conflict with char shl_load (); below.
! 9407: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 9408: <limits.h> exists even on freestanding compilers. */
! 9409:
! 9410: #ifdef __STDC__
! 9411: # include <limits.h>
! 9412: #else
! 9413: # include <assert.h>
! 9414: #endif
! 9415:
! 9416: #undef shl_load
! 9417:
! 9418: /* Override any GCC internal prototype to avoid an error.
! 9419: Use char because int might match the return type of a GCC
! 9420: builtin and then its argument prototype would still apply. */
! 9421: #ifdef __cplusplus
! 9422: extern "C"
! 9423: #endif
! 9424: char shl_load ();
! 9425: /* The GNU C library defines this for functions which it implements
! 9426: to always fail with ENOSYS. Some functions are actually named
! 9427: something starting with __ and the normal name is an alias. */
! 9428: #if defined __stub_shl_load || defined __stub___shl_load
! 9429: choke me
! 9430: #endif
! 9431:
! 9432: int
! 9433: main ()
! 9434: {
! 9435: return shl_load ();
! 9436: ;
! 9437: return 0;
! 9438: }
! 9439: _ACEOF
! 9440: rm -f conftest.$ac_objext conftest$ac_exeext
! 9441: if { (ac_try="$ac_link"
! 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_link") 2>conftest.er1
! 9448: ac_status=$?
! 9449: grep -v '^ *+' conftest.er1 >conftest.err
! 9450: rm -f conftest.er1
! 9451: cat conftest.err >&5
! 9452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9453: (exit $ac_status); } && {
! 9454: test -z "$ac_c_werror_flag" ||
! 9455: test ! -s conftest.err
! 9456: } && test -s conftest$ac_exeext &&
! 9457: $as_test_x conftest$ac_exeext; then
! 9458: ac_cv_func_shl_load=yes
! 9459: else
! 9460: echo "$as_me: failed program was:" >&5
! 9461: sed 's/^/| /' conftest.$ac_ext >&5
! 9462:
! 9463: ac_cv_func_shl_load=no
! 9464: fi
! 9465:
! 9466: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9467: conftest$ac_exeext conftest.$ac_ext
! 9468: fi
! 9469: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 9470: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
! 9471: if test $ac_cv_func_shl_load = yes; then
! 9472: lt_cv_dlopen="shl_load"
! 9473: else
! 9474: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 9475: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
! 9476: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 9477: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9478: else
! 9479: ac_check_lib_save_LIBS=$LIBS
! 9480: LIBS="-ldld $LIBS"
! 9481: cat >conftest.$ac_ext <<_ACEOF
! 9482: /* confdefs.h. */
! 9483: _ACEOF
! 9484: cat confdefs.h >>conftest.$ac_ext
! 9485: cat >>conftest.$ac_ext <<_ACEOF
! 9486: /* end confdefs.h. */
! 9487:
! 9488: /* Override any GCC internal prototype to avoid an error.
! 9489: Use char because int might match the return type of a GCC
! 9490: builtin and then its argument prototype would still apply. */
! 9491: #ifdef __cplusplus
! 9492: extern "C"
! 9493: #endif
! 9494: char shl_load ();
! 9495: int
! 9496: main ()
! 9497: {
! 9498: return shl_load ();
! 9499: ;
! 9500: return 0;
! 9501: }
! 9502: _ACEOF
! 9503: rm -f conftest.$ac_objext conftest$ac_exeext
! 9504: if { (ac_try="$ac_link"
! 9505: case "(($ac_try" in
! 9506: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9507: *) ac_try_echo=$ac_try;;
! 9508: esac
! 9509: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9510: (eval "$ac_link") 2>conftest.er1
! 9511: ac_status=$?
! 9512: grep -v '^ *+' conftest.er1 >conftest.err
! 9513: rm -f conftest.er1
! 9514: cat conftest.err >&5
! 9515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9516: (exit $ac_status); } && {
! 9517: test -z "$ac_c_werror_flag" ||
! 9518: test ! -s conftest.err
! 9519: } && test -s conftest$ac_exeext &&
! 9520: $as_test_x conftest$ac_exeext; then
! 9521: ac_cv_lib_dld_shl_load=yes
! 9522: else
! 9523: echo "$as_me: failed program was:" >&5
! 9524: sed 's/^/| /' conftest.$ac_ext >&5
! 9525:
! 9526: ac_cv_lib_dld_shl_load=no
! 9527: fi
! 9528:
! 9529: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9530: conftest$ac_exeext conftest.$ac_ext
! 9531: LIBS=$ac_check_lib_save_LIBS
! 9532: fi
! 9533: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 9534: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
! 9535: if test $ac_cv_lib_dld_shl_load = yes; then
! 9536: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 9537: else
! 9538: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 9539: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
! 9540: if test "${ac_cv_func_dlopen+set}" = set; then
! 9541: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9542: else
! 9543: cat >conftest.$ac_ext <<_ACEOF
! 9544: /* confdefs.h. */
! 9545: _ACEOF
! 9546: cat confdefs.h >>conftest.$ac_ext
! 9547: cat >>conftest.$ac_ext <<_ACEOF
! 9548: /* end confdefs.h. */
! 9549: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 9550: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 9551: #define dlopen innocuous_dlopen
! 9552:
! 9553: /* System header to define __stub macros and hopefully few prototypes,
! 9554: which can conflict with char dlopen (); below.
! 9555: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 9556: <limits.h> exists even on freestanding compilers. */
! 9557:
! 9558: #ifdef __STDC__
! 9559: # include <limits.h>
! 9560: #else
! 9561: # include <assert.h>
! 9562: #endif
! 9563:
! 9564: #undef dlopen
! 9565:
! 9566: /* Override any GCC internal prototype to avoid an error.
! 9567: Use char because int might match the return type of a GCC
! 9568: builtin and then its argument prototype would still apply. */
! 9569: #ifdef __cplusplus
! 9570: extern "C"
! 9571: #endif
! 9572: char dlopen ();
! 9573: /* The GNU C library defines this for functions which it implements
! 9574: to always fail with ENOSYS. Some functions are actually named
! 9575: something starting with __ and the normal name is an alias. */
! 9576: #if defined __stub_dlopen || defined __stub___dlopen
! 9577: choke me
! 9578: #endif
! 9579:
! 9580: int
! 9581: main ()
! 9582: {
! 9583: return dlopen ();
! 9584: ;
! 9585: return 0;
! 9586: }
! 9587: _ACEOF
! 9588: rm -f conftest.$ac_objext conftest$ac_exeext
! 9589: if { (ac_try="$ac_link"
! 9590: case "(($ac_try" in
! 9591: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9592: *) ac_try_echo=$ac_try;;
! 9593: esac
! 9594: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9595: (eval "$ac_link") 2>conftest.er1
! 9596: ac_status=$?
! 9597: grep -v '^ *+' conftest.er1 >conftest.err
! 9598: rm -f conftest.er1
! 9599: cat conftest.err >&5
! 9600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9601: (exit $ac_status); } && {
! 9602: test -z "$ac_c_werror_flag" ||
! 9603: test ! -s conftest.err
! 9604: } && test -s conftest$ac_exeext &&
! 9605: $as_test_x conftest$ac_exeext; then
! 9606: ac_cv_func_dlopen=yes
! 9607: else
! 9608: echo "$as_me: failed program was:" >&5
! 9609: sed 's/^/| /' conftest.$ac_ext >&5
! 9610:
! 9611: ac_cv_func_dlopen=no
! 9612: fi
! 9613:
! 9614: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9615: conftest$ac_exeext conftest.$ac_ext
! 9616: fi
! 9617: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 9618: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
! 9619: if test $ac_cv_func_dlopen = yes; then
! 9620: lt_cv_dlopen="dlopen"
! 9621: else
! 9622: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 9623: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
! 9624: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 9625: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9626: else
! 9627: ac_check_lib_save_LIBS=$LIBS
! 9628: LIBS="-ldl $LIBS"
! 9629: cat >conftest.$ac_ext <<_ACEOF
! 9630: /* confdefs.h. */
! 9631: _ACEOF
! 9632: cat confdefs.h >>conftest.$ac_ext
! 9633: cat >>conftest.$ac_ext <<_ACEOF
! 9634: /* end confdefs.h. */
! 9635:
! 9636: /* Override any GCC internal prototype to avoid an error.
! 9637: Use char because int might match the return type of a GCC
! 9638: builtin and then its argument prototype would still apply. */
! 9639: #ifdef __cplusplus
! 9640: extern "C"
! 9641: #endif
! 9642: char dlopen ();
! 9643: int
! 9644: main ()
! 9645: {
! 9646: return dlopen ();
! 9647: ;
! 9648: return 0;
! 9649: }
! 9650: _ACEOF
! 9651: rm -f conftest.$ac_objext conftest$ac_exeext
! 9652: if { (ac_try="$ac_link"
! 9653: case "(($ac_try" in
! 9654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9655: *) ac_try_echo=$ac_try;;
! 9656: esac
! 9657: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9658: (eval "$ac_link") 2>conftest.er1
! 9659: ac_status=$?
! 9660: grep -v '^ *+' conftest.er1 >conftest.err
! 9661: rm -f conftest.er1
! 9662: cat conftest.err >&5
! 9663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9664: (exit $ac_status); } && {
! 9665: test -z "$ac_c_werror_flag" ||
! 9666: test ! -s conftest.err
! 9667: } && test -s conftest$ac_exeext &&
! 9668: $as_test_x conftest$ac_exeext; then
! 9669: ac_cv_lib_dl_dlopen=yes
! 9670: else
! 9671: echo "$as_me: failed program was:" >&5
! 9672: sed 's/^/| /' conftest.$ac_ext >&5
! 9673:
! 9674: ac_cv_lib_dl_dlopen=no
! 9675: fi
! 9676:
! 9677: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9678: conftest$ac_exeext conftest.$ac_ext
! 9679: LIBS=$ac_check_lib_save_LIBS
! 9680: fi
! 9681: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 9682: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
! 9683: if test $ac_cv_lib_dl_dlopen = yes; then
! 9684: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 9685: else
! 9686: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 9687: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
! 9688: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 9689: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9690: else
! 9691: ac_check_lib_save_LIBS=$LIBS
! 9692: LIBS="-lsvld $LIBS"
! 9693: cat >conftest.$ac_ext <<_ACEOF
! 9694: /* confdefs.h. */
! 9695: _ACEOF
! 9696: cat confdefs.h >>conftest.$ac_ext
! 9697: cat >>conftest.$ac_ext <<_ACEOF
! 9698: /* end confdefs.h. */
! 9699:
! 9700: /* Override any GCC internal prototype to avoid an error.
! 9701: Use char because int might match the return type of a GCC
! 9702: builtin and then its argument prototype would still apply. */
! 9703: #ifdef __cplusplus
! 9704: extern "C"
! 9705: #endif
! 9706: char dlopen ();
! 9707: int
! 9708: main ()
! 9709: {
! 9710: return dlopen ();
! 9711: ;
! 9712: return 0;
! 9713: }
! 9714: _ACEOF
! 9715: rm -f conftest.$ac_objext conftest$ac_exeext
! 9716: if { (ac_try="$ac_link"
! 9717: case "(($ac_try" in
! 9718: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9719: *) ac_try_echo=$ac_try;;
! 9720: esac
! 9721: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9722: (eval "$ac_link") 2>conftest.er1
! 9723: ac_status=$?
! 9724: grep -v '^ *+' conftest.er1 >conftest.err
! 9725: rm -f conftest.er1
! 9726: cat conftest.err >&5
! 9727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9728: (exit $ac_status); } && {
! 9729: test -z "$ac_c_werror_flag" ||
! 9730: test ! -s conftest.err
! 9731: } && test -s conftest$ac_exeext &&
! 9732: $as_test_x conftest$ac_exeext; then
! 9733: ac_cv_lib_svld_dlopen=yes
! 9734: else
! 9735: echo "$as_me: failed program was:" >&5
! 9736: sed 's/^/| /' conftest.$ac_ext >&5
! 9737:
! 9738: ac_cv_lib_svld_dlopen=no
! 9739: fi
! 9740:
! 9741: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9742: conftest$ac_exeext conftest.$ac_ext
! 9743: LIBS=$ac_check_lib_save_LIBS
! 9744: fi
! 9745: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 9746: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
! 9747: if test $ac_cv_lib_svld_dlopen = yes; then
! 9748: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 9749: else
! 9750: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 9751: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
! 9752: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 9753: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9754: else
! 9755: ac_check_lib_save_LIBS=$LIBS
! 9756: LIBS="-ldld $LIBS"
! 9757: cat >conftest.$ac_ext <<_ACEOF
! 9758: /* confdefs.h. */
! 9759: _ACEOF
! 9760: cat confdefs.h >>conftest.$ac_ext
! 9761: cat >>conftest.$ac_ext <<_ACEOF
! 9762: /* end confdefs.h. */
! 9763:
! 9764: /* Override any GCC internal prototype to avoid an error.
! 9765: Use char because int might match the return type of a GCC
! 9766: builtin and then its argument prototype would still apply. */
! 9767: #ifdef __cplusplus
! 9768: extern "C"
! 9769: #endif
! 9770: char dld_link ();
! 9771: int
! 9772: main ()
! 9773: {
! 9774: return dld_link ();
! 9775: ;
! 9776: return 0;
! 9777: }
! 9778: _ACEOF
! 9779: rm -f conftest.$ac_objext conftest$ac_exeext
! 9780: if { (ac_try="$ac_link"
! 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_link") 2>conftest.er1
! 9787: ac_status=$?
! 9788: grep -v '^ *+' conftest.er1 >conftest.err
! 9789: rm -f conftest.er1
! 9790: cat conftest.err >&5
! 9791: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9792: (exit $ac_status); } && {
! 9793: test -z "$ac_c_werror_flag" ||
! 9794: test ! -s conftest.err
! 9795: } && test -s conftest$ac_exeext &&
! 9796: $as_test_x conftest$ac_exeext; then
! 9797: ac_cv_lib_dld_dld_link=yes
! 9798: else
! 9799: echo "$as_me: failed program was:" >&5
! 9800: sed 's/^/| /' conftest.$ac_ext >&5
! 9801:
! 9802: ac_cv_lib_dld_dld_link=no
! 9803: fi
! 9804:
! 9805: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9806: conftest$ac_exeext conftest.$ac_ext
! 9807: LIBS=$ac_check_lib_save_LIBS
! 9808: fi
! 9809: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 9810: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
! 9811: if test $ac_cv_lib_dld_dld_link = yes; then
! 9812: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 9813: fi
! 9814:
! 9815:
! 9816: fi
! 9817:
! 9818:
! 9819: fi
! 9820:
! 9821:
! 9822: fi
! 9823:
! 9824:
! 9825: fi
! 9826:
! 9827:
! 9828: fi
! 9829:
! 9830: ;;
! 9831: esac
! 9832:
! 9833: if test "x$lt_cv_dlopen" != xno; then
! 9834: enable_dlopen=yes
! 9835: else
! 9836: enable_dlopen=no
! 9837: fi
! 9838:
! 9839: case $lt_cv_dlopen in
! 9840: dlopen)
! 9841: save_CPPFLAGS="$CPPFLAGS"
! 9842: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 9843:
! 9844: save_LDFLAGS="$LDFLAGS"
! 9845: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 9846:
! 9847: save_LIBS="$LIBS"
! 9848: LIBS="$lt_cv_dlopen_libs $LIBS"
! 9849:
! 9850: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 9851: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
! 9852: if test "${lt_cv_dlopen_self+set}" = set; then
! 9853: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9854: else
! 9855: if test "$cross_compiling" = yes; then :
! 9856: lt_cv_dlopen_self=cross
! 9857: else
! 9858: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 9859: lt_status=$lt_dlunknown
! 9860: cat > conftest.$ac_ext <<EOF
! 9861: #line 9861 "configure"
! 9862: #include "confdefs.h"
! 9863:
! 9864: #if HAVE_DLFCN_H
! 9865: #include <dlfcn.h>
! 9866: #endif
! 9867:
! 9868: #include <stdio.h>
! 9869:
! 9870: #ifdef RTLD_GLOBAL
! 9871: # define LT_DLGLOBAL RTLD_GLOBAL
! 9872: #else
! 9873: # ifdef DL_GLOBAL
! 9874: # define LT_DLGLOBAL DL_GLOBAL
! 9875: # else
! 9876: # define LT_DLGLOBAL 0
! 9877: # endif
! 9878: #endif
! 9879:
! 9880: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 9881: find out it does not work in some platform. */
! 9882: #ifndef LT_DLLAZY_OR_NOW
! 9883: # ifdef RTLD_LAZY
! 9884: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 9885: # else
! 9886: # ifdef DL_LAZY
! 9887: # define LT_DLLAZY_OR_NOW DL_LAZY
! 9888: # else
! 9889: # ifdef RTLD_NOW
! 9890: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 9891: # else
! 9892: # ifdef DL_NOW
! 9893: # define LT_DLLAZY_OR_NOW DL_NOW
! 9894: # else
! 9895: # define LT_DLLAZY_OR_NOW 0
! 9896: # endif
! 9897: # endif
! 9898: # endif
! 9899: # endif
! 9900: #endif
! 9901:
! 9902: #ifdef __cplusplus
! 9903: extern "C" void exit (int);
! 9904: #endif
! 9905:
! 9906: void fnord() { int i=42;}
! 9907: int main ()
! 9908: {
! 9909: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 9910: int status = $lt_dlunknown;
! 9911:
! 9912: if (self)
! 9913: {
! 9914: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 9915: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 9916: /* dlclose (self); */
! 9917: }
! 9918: else
! 9919: puts (dlerror ());
! 9920:
! 9921: exit (status);
! 9922: }
! 9923: EOF
! 9924: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9925: (eval $ac_link) 2>&5
! 9926: ac_status=$?
! 9927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9928: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 9929: (./conftest; exit; ) >&5 2>/dev/null
! 9930: lt_status=$?
! 9931: case x$lt_status in
! 9932: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 9933: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 9934: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
! 9935: esac
! 9936: else :
! 9937: # compilation failed
! 9938: lt_cv_dlopen_self=no
! 9939: fi
! 9940: fi
! 9941: rm -fr conftest*
! 9942:
! 9943:
! 9944: fi
! 9945: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 9946: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
! 9947:
! 9948: if test "x$lt_cv_dlopen_self" = xyes; then
! 9949: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
! 9950: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 9951: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
! 9952: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 9953: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9954: else
! 9955: if test "$cross_compiling" = yes; then :
! 9956: lt_cv_dlopen_self_static=cross
! 9957: else
! 9958: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 9959: lt_status=$lt_dlunknown
! 9960: cat > conftest.$ac_ext <<EOF
! 9961: #line 9961 "configure"
! 9962: #include "confdefs.h"
! 9963:
! 9964: #if HAVE_DLFCN_H
! 9965: #include <dlfcn.h>
! 9966: #endif
! 9967:
! 9968: #include <stdio.h>
! 9969:
! 9970: #ifdef RTLD_GLOBAL
! 9971: # define LT_DLGLOBAL RTLD_GLOBAL
! 9972: #else
! 9973: # ifdef DL_GLOBAL
! 9974: # define LT_DLGLOBAL DL_GLOBAL
! 9975: # else
! 9976: # define LT_DLGLOBAL 0
! 9977: # endif
! 9978: #endif
! 9979:
! 9980: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 9981: find out it does not work in some platform. */
! 9982: #ifndef LT_DLLAZY_OR_NOW
! 9983: # ifdef RTLD_LAZY
! 9984: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 9985: # else
! 9986: # ifdef DL_LAZY
! 9987: # define LT_DLLAZY_OR_NOW DL_LAZY
! 9988: # else
! 9989: # ifdef RTLD_NOW
! 9990: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 9991: # else
! 9992: # ifdef DL_NOW
! 9993: # define LT_DLLAZY_OR_NOW DL_NOW
! 9994: # else
! 9995: # define LT_DLLAZY_OR_NOW 0
! 9996: # endif
! 9997: # endif
! 9998: # endif
! 9999: # endif
! 10000: #endif
! 10001:
! 10002: #ifdef __cplusplus
! 10003: extern "C" void exit (int);
! 10004: #endif
! 10005:
! 10006: void fnord() { int i=42;}
! 10007: int main ()
! 10008: {
! 10009: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 10010: int status = $lt_dlunknown;
! 10011:
! 10012: if (self)
! 10013: {
! 10014: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 10015: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 10016: /* dlclose (self); */
! 10017: }
! 10018: else
! 10019: puts (dlerror ());
! 10020:
! 10021: exit (status);
! 10022: }
! 10023: EOF
! 10024: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10025: (eval $ac_link) 2>&5
! 10026: ac_status=$?
! 10027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10028: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 10029: (./conftest; exit; ) >&5 2>/dev/null
! 10030: lt_status=$?
! 10031: case x$lt_status in
! 10032: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 10033: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 10034: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
! 10035: esac
! 10036: else :
! 10037: # compilation failed
! 10038: lt_cv_dlopen_self_static=no
! 10039: fi
! 10040: fi
! 10041: rm -fr conftest*
! 10042:
! 10043:
! 10044: fi
! 10045: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 10046: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
! 10047: fi
! 10048:
! 10049: CPPFLAGS="$save_CPPFLAGS"
! 10050: LDFLAGS="$save_LDFLAGS"
! 10051: LIBS="$save_LIBS"
! 10052: ;;
! 10053: esac
! 10054:
! 10055: case $lt_cv_dlopen_self in
! 10056: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 10057: *) enable_dlopen_self=unknown ;;
! 10058: esac
! 10059:
! 10060: case $lt_cv_dlopen_self_static in
! 10061: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 10062: *) enable_dlopen_self_static=unknown ;;
! 10063: esac
! 10064: fi
! 10065:
! 10066:
! 10067: # Report which library types will actually be built
! 10068: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 10069: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 10070: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 10071: echo "${ECHO_T}$can_build_shared" >&6; }
! 10072:
! 10073: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 10074: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
! 10075: test "$can_build_shared" = "no" && enable_shared=no
! 10076:
! 10077: # On AIX, shared libraries and static libraries use the same namespace, and
! 10078: # are all built from PIC.
! 10079: case $host_os in
! 10080: aix3*)
! 10081: test "$enable_shared" = yes && enable_static=no
! 10082: if test -n "$RANLIB"; then
! 10083: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 10084: postinstall_cmds='$RANLIB $lib'
! 10085: fi
! 10086: ;;
! 10087:
! 10088: aix4* | aix5*)
! 10089: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 10090: test "$enable_shared" = yes && enable_static=no
! 10091: fi
! 10092: ;;
! 10093: esac
! 10094: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 10095: echo "${ECHO_T}$enable_shared" >&6; }
! 10096:
! 10097: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 10098: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
! 10099: # Make sure either enable_shared or enable_static is yes.
! 10100: test "$enable_shared" = yes || enable_static=yes
! 10101: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 10102: echo "${ECHO_T}$enable_static" >&6; }
! 10103:
! 10104: # The else clause should only fire when bootstrapping the
! 10105: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 10106: # with your package, and you will get complaints that there are
! 10107: # no rules to generate ltmain.sh.
! 10108: if test -f "$ltmain"; then
! 10109: # See if we are running on zsh, and set the options which allow our commands through
! 10110: # without removal of \ escapes.
! 10111: if test -n "${ZSH_VERSION+set}" ; then
! 10112: setopt NO_GLOB_SUBST
! 10113: fi
! 10114: # Now quote all the things that may contain metacharacters while being
! 10115: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 10116: # variables and quote the copies for generation of the libtool script.
! 10117: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 10118: SED SHELL STRIP \
! 10119: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 10120: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 10121: deplibs_check_method reload_flag reload_cmds need_locks \
! 10122: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 10123: lt_cv_sys_global_symbol_to_c_name_address \
! 10124: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 10125: old_postinstall_cmds old_postuninstall_cmds \
! 10126: compiler \
! 10127: CC \
! 10128: LD \
! 10129: lt_prog_compiler_wl \
! 10130: lt_prog_compiler_pic \
! 10131: lt_prog_compiler_static \
! 10132: lt_prog_compiler_no_builtin_flag \
! 10133: export_dynamic_flag_spec \
! 10134: thread_safe_flag_spec \
! 10135: whole_archive_flag_spec \
! 10136: enable_shared_with_static_runtimes \
! 10137: old_archive_cmds \
! 10138: old_archive_from_new_cmds \
! 10139: predep_objects \
! 10140: postdep_objects \
! 10141: predeps \
! 10142: postdeps \
! 10143: compiler_lib_search_path \
! 10144: archive_cmds \
! 10145: archive_expsym_cmds \
! 10146: postinstall_cmds \
! 10147: postuninstall_cmds \
! 10148: old_archive_from_expsyms_cmds \
! 10149: allow_undefined_flag \
! 10150: no_undefined_flag \
! 10151: export_symbols_cmds \
! 10152: hardcode_libdir_flag_spec \
! 10153: hardcode_libdir_flag_spec_ld \
! 10154: hardcode_libdir_separator \
! 10155: hardcode_automatic \
! 10156: module_cmds \
! 10157: module_expsym_cmds \
! 10158: lt_cv_prog_compiler_c_o \
! 10159: exclude_expsyms \
! 10160: include_expsyms; do
! 10161:
! 10162: case $var in
! 10163: old_archive_cmds | \
! 10164: old_archive_from_new_cmds | \
! 10165: archive_cmds | \
! 10166: archive_expsym_cmds | \
! 10167: module_cmds | \
! 10168: module_expsym_cmds | \
! 10169: old_archive_from_expsyms_cmds | \
! 10170: export_symbols_cmds | \
! 10171: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 10172: postinstall_cmds | postuninstall_cmds | \
! 10173: old_postinstall_cmds | old_postuninstall_cmds | \
! 10174: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 10175: # Double-quote double-evaled strings.
! 10176: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 10177: ;;
! 10178: *)
! 10179: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 10180: ;;
! 10181: esac
! 10182: done
! 10183:
! 10184: case $lt_echo in
! 10185: *'\$0 --fallback-echo"')
! 10186: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 10187: ;;
! 10188: esac
! 10189:
! 10190: cfgfile="${ofile}T"
! 10191: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
! 10192: $rm -f "$cfgfile"
! 10193: { echo "$as_me:$LINENO: creating $ofile" >&5
! 10194: echo "$as_me: creating $ofile" >&6;}
! 10195:
! 10196: cat <<__EOF__ >> "$cfgfile"
! 10197: #! $SHELL
! 10198:
! 10199: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 10200: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
! 10201: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 10202: #
! 10203: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
! 10204: # Free Software Foundation, Inc.
! 10205: #
! 10206: # This file is part of GNU Libtool:
! 10207: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 10208: #
! 10209: # This program is free software; you can redistribute it and/or modify
! 10210: # it under the terms of the GNU General Public License as published by
! 10211: # the Free Software Foundation; either version 2 of the License, or
! 10212: # (at your option) any later version.
! 10213: #
! 10214: # This program is distributed in the hope that it will be useful, but
! 10215: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 10216: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 10217: # General Public License for more details.
! 10218: #
! 10219: # You should have received a copy of the GNU General Public License
! 10220: # along with this program; if not, write to the Free Software
! 10221: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
! 10222: #
! 10223: # As a special exception to the GNU General Public License, if you
! 10224: # distribute this file as part of a program that contains a
! 10225: # configuration script generated by Autoconf, you may include it under
! 10226: # the same distribution terms that you use for the rest of that program.
! 10227:
! 10228: # A sed program that does not truncate output.
! 10229: SED=$lt_SED
! 10230:
! 10231: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 10232: Xsed="$SED -e 1s/^X//"
! 10233:
! 10234: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 10235: # if CDPATH is set.
! 10236: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 10237:
! 10238: # The names of the tagged configurations supported by this script.
! 10239: available_tags=
! 10240:
! 10241: # ### BEGIN LIBTOOL CONFIG
! 10242:
! 10243: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 10244:
! 10245: # Shell to use when invoking shell scripts.
! 10246: SHELL=$lt_SHELL
! 10247:
! 10248: # Whether or not to build shared libraries.
! 10249: build_libtool_libs=$enable_shared
! 10250:
! 10251: # Whether or not to build static libraries.
! 10252: build_old_libs=$enable_static
! 10253:
! 10254: # Whether or not to add -lc for building shared libraries.
! 10255: build_libtool_need_lc=$archive_cmds_need_lc
! 10256:
! 10257: # Whether or not to disallow shared libs when runtime libs are static
! 10258: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
! 10259:
! 10260: # Whether or not to optimize for fast installation.
! 10261: fast_install=$enable_fast_install
! 10262:
! 10263: # The host system.
! 10264: host_alias=$host_alias
! 10265: host=$host
! 10266: host_os=$host_os
! 10267:
! 10268: # The build system.
! 10269: build_alias=$build_alias
! 10270: build=$build
! 10271: build_os=$build_os
! 10272:
! 10273: # An echo program that does not interpret backslashes.
! 10274: echo=$lt_echo
! 10275:
! 10276: # The archiver.
! 10277: AR=$lt_AR
! 10278: AR_FLAGS=$lt_AR_FLAGS
! 10279:
! 10280: # A C compiler.
! 10281: LTCC=$lt_LTCC
! 10282:
! 10283: # LTCC compiler flags.
! 10284: LTCFLAGS=$lt_LTCFLAGS
! 10285:
! 10286: # A language-specific compiler.
! 10287: CC=$lt_compiler
! 10288:
! 10289: # Is the compiler the GNU C compiler?
! 10290: with_gcc=$GCC
! 10291:
! 10292: # An ERE matcher.
! 10293: EGREP=$lt_EGREP
! 10294:
! 10295: # The linker used to build libraries.
! 10296: LD=$lt_LD
! 10297:
! 10298: # Whether we need hard or soft links.
! 10299: LN_S=$lt_LN_S
! 10300:
! 10301: # A BSD-compatible nm program.
! 10302: NM=$lt_NM
! 10303:
! 10304: # A symbol stripping program
! 10305: STRIP=$lt_STRIP
! 10306:
! 10307: # Used to examine libraries when file_magic_cmd begins "file"
! 10308: MAGIC_CMD=$MAGIC_CMD
! 10309:
! 10310: # Used on cygwin: DLL creation program.
! 10311: DLLTOOL="$DLLTOOL"
! 10312:
! 10313: # Used on cygwin: object dumper.
! 10314: OBJDUMP="$OBJDUMP"
! 10315:
! 10316: # Used on cygwin: assembler.
! 10317: AS="$AS"
! 10318:
! 10319: # The name of the directory that contains temporary libtool files.
! 10320: objdir=$objdir
! 10321:
! 10322: # How to create reloadable object files.
! 10323: reload_flag=$lt_reload_flag
! 10324: reload_cmds=$lt_reload_cmds
! 10325:
! 10326: # How to pass a linker flag through the compiler.
! 10327: wl=$lt_lt_prog_compiler_wl
! 10328:
! 10329: # Object file suffix (normally "o").
! 10330: objext="$ac_objext"
! 10331:
! 10332: # Old archive suffix (normally "a").
! 10333: libext="$libext"
! 10334:
! 10335: # Shared library suffix (normally ".so").
! 10336: shrext_cmds='$shrext_cmds'
! 10337:
! 10338: # Executable file suffix (normally "").
! 10339: exeext="$exeext"
! 10340:
! 10341: # Additional compiler flags for building library objects.
! 10342: pic_flag=$lt_lt_prog_compiler_pic
! 10343: pic_mode=$pic_mode
! 10344:
! 10345: # What is the maximum length of a command?
! 10346: max_cmd_len=$lt_cv_sys_max_cmd_len
! 10347:
! 10348: # Does compiler simultaneously support -c and -o options?
! 10349: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
! 10350:
! 10351: # Must we lock files when doing compilation?
! 10352: need_locks=$lt_need_locks
! 10353:
! 10354: # Do we need the lib prefix for modules?
! 10355: need_lib_prefix=$need_lib_prefix
! 10356:
! 10357: # Do we need a version for libraries?
! 10358: need_version=$need_version
! 10359:
! 10360: # Whether dlopen is supported.
! 10361: dlopen_support=$enable_dlopen
! 10362:
! 10363: # Whether dlopen of programs is supported.
! 10364: dlopen_self=$enable_dlopen_self
! 10365:
! 10366: # Whether dlopen of statically linked programs is supported.
! 10367: dlopen_self_static=$enable_dlopen_self_static
! 10368:
! 10369: # Compiler flag to prevent dynamic linking.
! 10370: link_static_flag=$lt_lt_prog_compiler_static
! 10371:
! 10372: # Compiler flag to turn off builtin functions.
! 10373: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
! 10374:
! 10375: # Compiler flag to allow reflexive dlopens.
! 10376: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
! 10377:
! 10378: # Compiler flag to generate shared objects directly from archives.
! 10379: whole_archive_flag_spec=$lt_whole_archive_flag_spec
! 10380:
! 10381: # Compiler flag to generate thread-safe objects.
! 10382: thread_safe_flag_spec=$lt_thread_safe_flag_spec
! 10383:
! 10384: # Library versioning type.
! 10385: version_type=$version_type
! 10386:
! 10387: # Format of library name prefix.
! 10388: libname_spec=$lt_libname_spec
! 10389:
! 10390: # List of archive names. First name is the real one, the rest are links.
! 10391: # The last name is the one that the linker finds with -lNAME.
! 10392: library_names_spec=$lt_library_names_spec
! 10393:
! 10394: # The coded name of the library, if different from the real name.
! 10395: soname_spec=$lt_soname_spec
! 10396:
! 10397: # Commands used to build and install an old-style archive.
! 10398: RANLIB=$lt_RANLIB
! 10399: old_archive_cmds=$lt_old_archive_cmds
! 10400: old_postinstall_cmds=$lt_old_postinstall_cmds
! 10401: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 10402:
! 10403: # Create an old-style archive from a shared archive.
! 10404: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
! 10405:
! 10406: # Create a temporary old-style archive to link instead of a shared archive.
! 10407: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
! 10408:
! 10409: # Commands used to build and install a shared archive.
! 10410: archive_cmds=$lt_archive_cmds
! 10411: archive_expsym_cmds=$lt_archive_expsym_cmds
! 10412: postinstall_cmds=$lt_postinstall_cmds
! 10413: postuninstall_cmds=$lt_postuninstall_cmds
! 10414:
! 10415: # Commands used to build a loadable module (assumed same as above if empty)
! 10416: module_cmds=$lt_module_cmds
! 10417: module_expsym_cmds=$lt_module_expsym_cmds
! 10418:
! 10419: # Commands to strip libraries.
! 10420: old_striplib=$lt_old_striplib
! 10421: striplib=$lt_striplib
! 10422:
! 10423: # Dependencies to place before the objects being linked to create a
! 10424: # shared library.
! 10425: predep_objects=$lt_predep_objects
! 10426:
! 10427: # Dependencies to place after the objects being linked to create a
! 10428: # shared library.
! 10429: postdep_objects=$lt_postdep_objects
! 10430:
! 10431: # Dependencies to place before the objects being linked to create a
! 10432: # shared library.
! 10433: predeps=$lt_predeps
! 10434:
! 10435: # Dependencies to place after the objects being linked to create a
! 10436: # shared library.
! 10437: postdeps=$lt_postdeps
! 10438:
! 10439: # The library search path used internally by the compiler when linking
! 10440: # a shared library.
! 10441: compiler_lib_search_path=$lt_compiler_lib_search_path
! 10442:
! 10443: # Method to check whether dependent libraries are shared objects.
! 10444: deplibs_check_method=$lt_deplibs_check_method
! 10445:
! 10446: # Command to use when deplibs_check_method == file_magic.
! 10447: file_magic_cmd=$lt_file_magic_cmd
! 10448:
! 10449: # Flag that allows shared libraries with undefined symbols to be built.
! 10450: allow_undefined_flag=$lt_allow_undefined_flag
! 10451:
! 10452: # Flag that forces no undefined symbols.
! 10453: no_undefined_flag=$lt_no_undefined_flag
! 10454:
! 10455: # Commands used to finish a libtool library installation in a directory.
! 10456: finish_cmds=$lt_finish_cmds
! 10457:
! 10458: # Same as above, but a single script fragment to be evaled but not shown.
! 10459: finish_eval=$lt_finish_eval
! 10460:
! 10461: # Take the output of nm and produce a listing of raw symbols and C names.
! 10462: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 10463:
! 10464: # Transform the output of nm in a proper C declaration
! 10465: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 10466:
! 10467: # Transform the output of nm in a C name address pair
! 10468: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 10469:
! 10470: # This is the shared library runtime path variable.
! 10471: runpath_var=$runpath_var
! 10472:
! 10473: # This is the shared library path variable.
! 10474: shlibpath_var=$shlibpath_var
! 10475:
! 10476: # Is shlibpath searched before the hard-coded library search path?
! 10477: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 10478:
! 10479: # How to hardcode a shared library path into an executable.
! 10480: hardcode_action=$hardcode_action
! 10481:
! 10482: # Whether we should hardcode library paths into libraries.
! 10483: hardcode_into_libs=$hardcode_into_libs
! 10484:
! 10485: # Flag to hardcode \$libdir into a binary during linking.
! 10486: # This must work even if \$libdir does not exist.
! 10487: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
! 10488:
! 10489: # If ld is used when linking, flag to hardcode \$libdir into
! 10490: # a binary during linking. This must work even if \$libdir does
! 10491: # not exist.
! 10492: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
! 10493:
! 10494: # Whether we need a single -rpath flag with a separated argument.
! 10495: hardcode_libdir_separator=$lt_hardcode_libdir_separator
! 10496:
! 10497: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 10498: # resulting binary.
! 10499: hardcode_direct=$hardcode_direct
! 10500:
! 10501: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 10502: # resulting binary.
! 10503: hardcode_minus_L=$hardcode_minus_L
! 10504:
! 10505: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 10506: # the resulting binary.
! 10507: hardcode_shlibpath_var=$hardcode_shlibpath_var
! 10508:
! 10509: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 10510: # and all subsequent libraries and executables linked against it.
! 10511: hardcode_automatic=$hardcode_automatic
! 10512:
! 10513: # Variables whose values should be saved in libtool wrapper scripts and
! 10514: # restored at relink time.
! 10515: variables_saved_for_relink="$variables_saved_for_relink"
! 10516:
! 10517: # Whether libtool must link a program against all its dependency libraries.
! 10518: link_all_deplibs=$link_all_deplibs
! 10519:
! 10520: # Compile-time system search path for libraries
! 10521: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 10522:
! 10523: # Run-time system search path for libraries
! 10524: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 10525:
! 10526: # Fix the shell variable \$srcfile for the compiler.
! 10527: fix_srcfile_path="$fix_srcfile_path"
! 10528:
! 10529: # Set to yes if exported symbols are required.
! 10530: always_export_symbols=$always_export_symbols
! 10531:
! 10532: # The commands to list exported symbols.
! 10533: export_symbols_cmds=$lt_export_symbols_cmds
! 10534:
! 10535: # The commands to extract the exported symbol list from a shared archive.
! 10536: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 10537:
! 10538: # Symbols that should not be listed in the preloaded symbols.
! 10539: exclude_expsyms=$lt_exclude_expsyms
! 10540:
! 10541: # Symbols that must always be exported.
! 10542: include_expsyms=$lt_include_expsyms
! 10543:
! 10544: # ### END LIBTOOL CONFIG
! 10545:
! 10546: __EOF__
! 10547:
! 10548:
! 10549: case $host_os in
! 10550: aix3*)
! 10551: cat <<\EOF >> "$cfgfile"
! 10552:
! 10553: # AIX sometimes has problems with the GCC collect2 program. For some
! 10554: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 10555: # vanish in a puff of smoke.
! 10556: if test "X${COLLECT_NAMES+set}" != Xset; then
! 10557: COLLECT_NAMES=
! 10558: export COLLECT_NAMES
! 10559: fi
! 10560: EOF
! 10561: ;;
! 10562: esac
! 10563:
! 10564: # We use sed instead of cat because bash on DJGPP gets confused if
! 10565: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 10566: # text mode, it properly converts lines to CR/LF. This bash problem
! 10567: # is reportedly fixed, but why not run on old versions too?
! 10568: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
! 10569:
! 10570: mv -f "$cfgfile" "$ofile" || \
! 10571: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
! 10572: chmod +x "$ofile"
! 10573:
! 10574: else
! 10575: # If there is no Makefile yet, we rely on a make rule to execute
! 10576: # `config.status --recheck' to rerun these tests and create the
! 10577: # libtool script then.
! 10578: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 10579: if test -f "$ltmain_in"; then
! 10580: test -f Makefile && make "$ltmain"
! 10581: fi
! 10582: fi
! 10583:
! 10584:
! 10585: ac_ext=c
! 10586: ac_cpp='$CPP $CPPFLAGS'
! 10587: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10588: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10589: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 10590:
! 10591: CC="$lt_save_CC"
! 10592:
! 10593:
! 10594: # Check whether --with-tags was given.
! 10595: if test "${with_tags+set}" = set; then
! 10596: withval=$with_tags; tagnames="$withval"
! 10597: fi
! 10598:
! 10599:
! 10600: if test -f "$ltmain" && test -n "$tagnames"; then
! 10601: if test ! -f "${ofile}"; then
! 10602: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
! 10603: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
! 10604: fi
! 10605:
! 10606: if test -z "$LTCC"; then
! 10607: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
! 10608: if test -z "$LTCC"; then
! 10609: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
! 10610: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
! 10611: else
! 10612: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
! 10613: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
! 10614: fi
! 10615: fi
! 10616: if test -z "$LTCFLAGS"; then
! 10617: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
! 10618: fi
! 10619:
! 10620: # Extract list of available tagged configurations in $ofile.
! 10621: # Note that this assumes the entire list is on one line.
! 10622: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
! 10623:
! 10624: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 10625: for tagname in $tagnames; do
! 10626: IFS="$lt_save_ifs"
! 10627: # Check whether tagname contains only valid characters
! 10628: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
! 10629: "") ;;
! 10630: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
! 10631: echo "$as_me: error: invalid tag name: $tagname" >&2;}
! 10632: { (exit 1); exit 1; }; }
! 10633: ;;
! 10634: esac
! 10635:
! 10636: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
! 10637: then
! 10638: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
! 10639: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
! 10640: { (exit 1); exit 1; }; }
! 10641: fi
! 10642:
! 10643: # Update the list of available tags.
! 10644: if test -n "$tagname"; then
! 10645: echo appending configuration tag \"$tagname\" to $ofile
! 10646:
! 10647: case $tagname in
! 10648: CXX)
! 10649: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
! 10650: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
! 10651: (test "X$CXX" != "Xg++"))) ; then
! 10652: ac_ext=cpp
! 10653: ac_cpp='$CXXCPP $CPPFLAGS'
! 10654: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10655: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10656: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 10657:
! 10658:
! 10659:
! 10660:
! 10661: archive_cmds_need_lc_CXX=no
! 10662: allow_undefined_flag_CXX=
! 10663: always_export_symbols_CXX=no
! 10664: archive_expsym_cmds_CXX=
! 10665: export_dynamic_flag_spec_CXX=
! 10666: hardcode_direct_CXX=no
! 10667: hardcode_libdir_flag_spec_CXX=
! 10668: hardcode_libdir_flag_spec_ld_CXX=
! 10669: hardcode_libdir_separator_CXX=
! 10670: hardcode_minus_L_CXX=no
! 10671: hardcode_shlibpath_var_CXX=unsupported
! 10672: hardcode_automatic_CXX=no
! 10673: module_cmds_CXX=
! 10674: module_expsym_cmds_CXX=
! 10675: link_all_deplibs_CXX=unknown
! 10676: old_archive_cmds_CXX=$old_archive_cmds
! 10677: no_undefined_flag_CXX=
! 10678: whole_archive_flag_spec_CXX=
! 10679: enable_shared_with_static_runtimes_CXX=no
! 10680:
! 10681: # Dependencies to place before and after the object being linked:
! 10682: predep_objects_CXX=
! 10683: postdep_objects_CXX=
! 10684: predeps_CXX=
! 10685: postdeps_CXX=
! 10686: compiler_lib_search_path_CXX=
! 10687:
! 10688: # Source file extension for C++ test sources.
! 10689: ac_ext=cpp
! 10690:
! 10691: # Object file extension for compiled C++ test sources.
! 10692: objext=o
! 10693: objext_CXX=$objext
! 10694:
! 10695: # Code to be used in simple compile tests
! 10696: lt_simple_compile_test_code="int some_variable = 0;\n"
! 10697:
! 10698: # Code to be used in simple link tests
! 10699: lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
! 10700:
! 10701: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 10702:
! 10703: # If no C compiler was specified, use CC.
! 10704: LTCC=${LTCC-"$CC"}
! 10705:
! 10706: # If no C compiler flags were specified, use CFLAGS.
! 10707: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 10708:
! 10709: # Allow CC to be a program name with arguments.
! 10710: compiler=$CC
! 10711:
! 10712:
! 10713: # save warnings/boilerplate of simple test code
! 10714: ac_outfile=conftest.$ac_objext
! 10715: printf "$lt_simple_compile_test_code" >conftest.$ac_ext
! 10716: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 10717: _lt_compiler_boilerplate=`cat conftest.err`
! 10718: $rm conftest*
! 10719:
! 10720: ac_outfile=conftest.$ac_objext
! 10721: printf "$lt_simple_link_test_code" >conftest.$ac_ext
! 10722: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 10723: _lt_linker_boilerplate=`cat conftest.err`
! 10724: $rm conftest*
! 10725:
! 10726:
! 10727: # Allow CC to be a program name with arguments.
! 10728: lt_save_CC=$CC
! 10729: lt_save_LD=$LD
! 10730: lt_save_GCC=$GCC
! 10731: GCC=$GXX
! 10732: lt_save_with_gnu_ld=$with_gnu_ld
! 10733: lt_save_path_LD=$lt_cv_path_LD
! 10734: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
! 10735: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
! 10736: else
! 10737: $as_unset lt_cv_prog_gnu_ld
! 10738: fi
! 10739: if test -n "${lt_cv_path_LDCXX+set}"; then
! 10740: lt_cv_path_LD=$lt_cv_path_LDCXX
! 10741: else
! 10742: $as_unset lt_cv_path_LD
! 10743: fi
! 10744: test -z "${LDCXX+set}" || LD=$LDCXX
! 10745: CC=${CXX-"c++"}
! 10746: compiler=$CC
! 10747: compiler_CXX=$CC
! 10748: for cc_temp in $compiler""; do
! 10749: case $cc_temp in
! 10750: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 10751: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 10752: \-*) ;;
! 10753: *) break;;
! 10754: esac
! 10755: done
! 10756: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 10757:
! 10758:
! 10759: # We don't want -fno-exception wen compiling C++ code, so set the
! 10760: # no_builtin_flag separately
! 10761: if test "$GXX" = yes; then
! 10762: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
! 10763: else
! 10764: lt_prog_compiler_no_builtin_flag_CXX=
! 10765: fi
! 10766:
! 10767: if test "$GXX" = yes; then
! 10768: # Set up default GNU C++ configuration
! 10769:
! 10770:
! 10771: # Check whether --with-gnu-ld was given.
! 10772: if test "${with_gnu_ld+set}" = set; then
! 10773: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
! 10774: else
! 10775: with_gnu_ld=no
! 10776: fi
! 10777:
! 10778: ac_prog=ld
! 10779: if test "$GCC" = yes; then
! 10780: # Check if gcc -print-prog-name=ld gives a path.
! 10781: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 10782: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
! 10783: case $host in
! 10784: *-*-mingw*)
! 10785: # gcc leaves a trailing carriage return which upsets mingw
! 10786: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 10787: *)
! 10788: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 10789: esac
! 10790: case $ac_prog in
! 10791: # Accept absolute paths.
! 10792: [\\/]* | ?:[\\/]*)
! 10793: re_direlt='/[^/][^/]*/\.\./'
! 10794: # Canonicalize the pathname of ld
! 10795: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
! 10796: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
! 10797: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
! 10798: done
! 10799: test -z "$LD" && LD="$ac_prog"
! 10800: ;;
! 10801: "")
! 10802: # If it fails, then pretend we aren't using GCC.
! 10803: ac_prog=ld
! 10804: ;;
! 10805: *)
! 10806: # If it is relative, then search for the first ld in PATH.
! 10807: with_gnu_ld=unknown
! 10808: ;;
! 10809: esac
! 10810: elif test "$with_gnu_ld" = yes; then
! 10811: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 10812: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
! 10813: else
! 10814: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 10815: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
! 10816: fi
! 10817: if test "${lt_cv_path_LD+set}" = set; then
! 10818: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10819: else
! 10820: if test -z "$LD"; then
! 10821: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 10822: for ac_dir in $PATH; do
! 10823: IFS="$lt_save_ifs"
! 10824: test -z "$ac_dir" && ac_dir=.
! 10825: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
! 10826: lt_cv_path_LD="$ac_dir/$ac_prog"
! 10827: # Check to see if the program is GNU ld. I'd rather use --version,
! 10828: # but apparently some variants of GNU ld only accept -v.
! 10829: # Break only if it was the GNU/non-GNU ld that we prefer.
! 10830: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
! 10831: *GNU* | *'with BFD'*)
! 10832: test "$with_gnu_ld" != no && break
! 10833: ;;
! 10834: *)
! 10835: test "$with_gnu_ld" != yes && break
! 10836: ;;
! 10837: esac
! 10838: fi
! 10839: done
! 10840: IFS="$lt_save_ifs"
! 10841: else
! 10842: lt_cv_path_LD="$LD" # Let the user override the test with a path.
! 10843: fi
! 10844: fi
! 10845:
! 10846: LD="$lt_cv_path_LD"
! 10847: if test -n "$LD"; then
! 10848: { echo "$as_me:$LINENO: result: $LD" >&5
! 10849: echo "${ECHO_T}$LD" >&6; }
! 10850: else
! 10851: { echo "$as_me:$LINENO: result: no" >&5
! 10852: echo "${ECHO_T}no" >&6; }
! 10853: fi
! 10854: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 10855: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 10856: { (exit 1); exit 1; }; }
! 10857: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 10858: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
! 10859: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 10860: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10861: else
! 10862: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 10863: case `$LD -v 2>&1 </dev/null` in
! 10864: *GNU* | *'with BFD'*)
! 10865: lt_cv_prog_gnu_ld=yes
! 10866: ;;
! 10867: *)
! 10868: lt_cv_prog_gnu_ld=no
! 10869: ;;
! 10870: esac
! 10871: fi
! 10872: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 10873: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
! 10874: with_gnu_ld=$lt_cv_prog_gnu_ld
! 10875:
! 10876:
! 10877:
! 10878: # Check if GNU C++ uses GNU ld as the underlying linker, since the
! 10879: # archiving commands below assume that GNU ld is being used.
! 10880: if test "$with_gnu_ld" = yes; then
! 10881: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 10882: 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'
! 10883:
! 10884: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
! 10885: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 10886:
! 10887: # If archive_cmds runs LD, not CC, wlarc should be empty
! 10888: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
! 10889: # investigate it a little bit more. (MM)
! 10890: wlarc='${wl}'
! 10891:
! 10892: # ancient GNU ld didn't support --whole-archive et. al.
! 10893: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
! 10894: grep 'no-whole-archive' > /dev/null; then
! 10895: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 10896: else
! 10897: whole_archive_flag_spec_CXX=
! 10898: fi
! 10899: else
! 10900: with_gnu_ld=no
! 10901: wlarc=
! 10902:
! 10903: # A generic and very simple default shared library creation
! 10904: # command for GNU C++ for the case where it uses the native
! 10905: # linker, instead of GNU ld. If possible, this setting should
! 10906: # overridden to take advantage of the native linker features on
! 10907: # the platform it is being used on.
! 10908: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
! 10909: fi
! 10910:
! 10911: # Commands to make compiler produce verbose output that lists
! 10912: # what "hidden" libraries, object files and flags are used when
! 10913: # linking a shared library.
! 10914: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
! 10915:
! 10916: else
! 10917: GXX=no
! 10918: with_gnu_ld=no
! 10919: wlarc=
! 10920: fi
! 10921:
! 10922: # PORTME: fill in a description of your system's C++ link characteristics
! 10923: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 10924: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
! 10925: ld_shlibs_CXX=yes
! 10926: case $host_os in
! 10927: aix3*)
! 10928: # FIXME: insert proper C++ library support
! 10929: ld_shlibs_CXX=no
! 10930: ;;
! 10931: aix4* | aix5*)
! 10932: if test "$host_cpu" = ia64; then
! 10933: # On IA64, the linker does run time linking by default, so we don't
! 10934: # have to do anything special.
! 10935: aix_use_runtimelinking=no
! 10936: exp_sym_flag='-Bexport'
! 10937: no_entry_flag=""
! 10938: else
! 10939: aix_use_runtimelinking=no
! 10940:
! 10941: # Test if we are trying to use run time linking or normal
! 10942: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 10943: # need to do runtime linking.
! 10944: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 10945: for ld_flag in $LDFLAGS; do
! 10946: case $ld_flag in
! 10947: *-brtl*)
! 10948: aix_use_runtimelinking=yes
! 10949: break
! 10950: ;;
! 10951: esac
! 10952: done
! 10953: ;;
! 10954: esac
! 10955:
! 10956: exp_sym_flag='-bexport'
! 10957: no_entry_flag='-bnoentry'
! 10958: fi
! 10959:
! 10960: # When large executables or shared objects are built, AIX ld can
! 10961: # have problems creating the table of contents. If linking a library
! 10962: # or program results in "error TOC overflow" add -mminimal-toc to
! 10963: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 10964: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 10965:
! 10966: archive_cmds_CXX=''
! 10967: hardcode_direct_CXX=yes
! 10968: hardcode_libdir_separator_CXX=':'
! 10969: link_all_deplibs_CXX=yes
! 10970:
! 10971: if test "$GXX" = yes; then
! 10972: case $host_os in aix4.[012]|aix4.[012].*)
! 10973: # We only want to do this on AIX 4.2 and lower, the check
! 10974: # below for broken collect2 doesn't work under 4.3+
! 10975: collect2name=`${CC} -print-prog-name=collect2`
! 10976: if test -f "$collect2name" && \
! 10977: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 10978: then
! 10979: # We have reworked collect2
! 10980: hardcode_direct_CXX=yes
! 10981: else
! 10982: # We have old collect2
! 10983: hardcode_direct_CXX=unsupported
! 10984: # It fails to find uninstalled libraries when the uninstalled
! 10985: # path is not listed in the libpath. Setting hardcode_minus_L
! 10986: # to unsupported forces relinking
! 10987: hardcode_minus_L_CXX=yes
! 10988: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 10989: hardcode_libdir_separator_CXX=
! 10990: fi
! 10991: ;;
! 10992: esac
! 10993: shared_flag='-shared'
! 10994: if test "$aix_use_runtimelinking" = yes; then
! 10995: shared_flag="$shared_flag "'${wl}-G'
! 10996: fi
! 10997: else
! 10998: # not using gcc
! 10999: if test "$host_cpu" = ia64; then
! 11000: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 11001: # chokes on -Wl,-G. The following line is correct:
! 11002: shared_flag='-G'
! 11003: else
! 11004: if test "$aix_use_runtimelinking" = yes; then
! 11005: shared_flag='${wl}-G'
! 11006: else
! 11007: shared_flag='${wl}-bM:SRE'
! 11008: fi
! 11009: fi
! 11010: fi
! 11011:
! 11012: # It seems that -bexpall does not export symbols beginning with
! 11013: # underscore (_), so it is better to generate a list of symbols to export.
! 11014: always_export_symbols_CXX=yes
! 11015: if test "$aix_use_runtimelinking" = yes; then
! 11016: # Warning - without using the other runtime loading flags (-brtl),
! 11017: # -berok will link without error, but may produce a broken library.
! 11018: allow_undefined_flag_CXX='-berok'
! 11019: # Determine the default libpath from the value encoded in an empty executable.
! 11020: cat >conftest.$ac_ext <<_ACEOF
! 11021: /* confdefs.h. */
! 11022: _ACEOF
! 11023: cat confdefs.h >>conftest.$ac_ext
! 11024: cat >>conftest.$ac_ext <<_ACEOF
! 11025: /* end confdefs.h. */
! 11026:
! 11027: int
! 11028: main ()
! 11029: {
! 11030:
! 11031: ;
! 11032: return 0;
! 11033: }
! 11034: _ACEOF
! 11035: rm -f conftest.$ac_objext conftest$ac_exeext
! 11036: if { (ac_try="$ac_link"
! 11037: case "(($ac_try" in
! 11038: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11039: *) ac_try_echo=$ac_try;;
! 11040: esac
! 11041: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11042: (eval "$ac_link") 2>conftest.er1
! 11043: ac_status=$?
! 11044: grep -v '^ *+' conftest.er1 >conftest.err
! 11045: rm -f conftest.er1
! 11046: cat conftest.err >&5
! 11047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11048: (exit $ac_status); } && {
! 11049: test -z "$ac_cxx_werror_flag" ||
! 11050: test ! -s conftest.err
! 11051: } && test -s conftest$ac_exeext &&
! 11052: $as_test_x conftest$ac_exeext; then
! 11053:
! 11054: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 11055: }'`
! 11056: # Check for a 64-bit object if we didn't find anything.
! 11057: 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; }
! 11058: }'`; fi
! 11059: else
! 11060: echo "$as_me: failed program was:" >&5
! 11061: sed 's/^/| /' conftest.$ac_ext >&5
! 11062:
! 11063:
! 11064: fi
! 11065:
! 11066: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11067: conftest$ac_exeext conftest.$ac_ext
! 11068: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 11069:
! 11070: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
! 11071:
! 11072: 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"
! 11073: else
! 11074: if test "$host_cpu" = ia64; then
! 11075: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
! 11076: allow_undefined_flag_CXX="-z nodefs"
! 11077: 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"
! 11078: else
! 11079: # Determine the default libpath from the value encoded in an empty executable.
! 11080: cat >conftest.$ac_ext <<_ACEOF
! 11081: /* confdefs.h. */
! 11082: _ACEOF
! 11083: cat confdefs.h >>conftest.$ac_ext
! 11084: cat >>conftest.$ac_ext <<_ACEOF
! 11085: /* end confdefs.h. */
! 11086:
! 11087: int
! 11088: main ()
! 11089: {
! 11090:
! 11091: ;
! 11092: return 0;
! 11093: }
! 11094: _ACEOF
! 11095: rm -f conftest.$ac_objext conftest$ac_exeext
! 11096: if { (ac_try="$ac_link"
! 11097: case "(($ac_try" in
! 11098: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11099: *) ac_try_echo=$ac_try;;
! 11100: esac
! 11101: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11102: (eval "$ac_link") 2>conftest.er1
! 11103: ac_status=$?
! 11104: grep -v '^ *+' conftest.er1 >conftest.err
! 11105: rm -f conftest.er1
! 11106: cat conftest.err >&5
! 11107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11108: (exit $ac_status); } && {
! 11109: test -z "$ac_cxx_werror_flag" ||
! 11110: test ! -s conftest.err
! 11111: } && test -s conftest$ac_exeext &&
! 11112: $as_test_x conftest$ac_exeext; then
! 11113:
! 11114: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 11115: }'`
! 11116: # Check for a 64-bit object if we didn't find anything.
! 11117: 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; }
! 11118: }'`; fi
! 11119: else
! 11120: echo "$as_me: failed program was:" >&5
! 11121: sed 's/^/| /' conftest.$ac_ext >&5
! 11122:
! 11123:
! 11124: fi
! 11125:
! 11126: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11127: conftest$ac_exeext conftest.$ac_ext
! 11128: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 11129:
! 11130: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
! 11131: # Warning - without using the other run time loading flags,
! 11132: # -berok will link without error, but may produce a broken library.
! 11133: no_undefined_flag_CXX=' ${wl}-bernotok'
! 11134: allow_undefined_flag_CXX=' ${wl}-berok'
! 11135: # Exported symbols can be pulled into shared objects from archives
! 11136: whole_archive_flag_spec_CXX='$convenience'
! 11137: archive_cmds_need_lc_CXX=yes
! 11138: # This is similar to how AIX traditionally builds its shared libraries.
! 11139: 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'
! 11140: fi
! 11141: fi
! 11142: ;;
! 11143:
! 11144: beos*)
! 11145: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 11146: allow_undefined_flag_CXX=unsupported
! 11147: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 11148: # support --undefined. This deserves some investigation. FIXME
! 11149: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11150: else
! 11151: ld_shlibs_CXX=no
! 11152: fi
! 11153: ;;
! 11154:
! 11155: chorus*)
! 11156: case $cc_basename in
! 11157: *)
! 11158: # FIXME: insert proper C++ library support
! 11159: ld_shlibs_CXX=no
! 11160: ;;
! 11161: esac
! 11162: ;;
! 11163:
! 11164: cygwin* | mingw* | pw32*)
! 11165: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
! 11166: # as there is no search path for DLLs.
! 11167: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 11168: allow_undefined_flag_CXX=unsupported
! 11169: always_export_symbols_CXX=no
! 11170: enable_shared_with_static_runtimes_CXX=yes
! 11171:
! 11172: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 11173: 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'
! 11174: # If the export-symbols file already is a .def file (1st line
! 11175: # is EXPORTS), use it as is; otherwise, prepend...
! 11176: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 11177: cp $export_symbols $output_objdir/$soname.def;
! 11178: else
! 11179: echo EXPORTS > $output_objdir/$soname.def;
! 11180: cat $export_symbols >> $output_objdir/$soname.def;
! 11181: fi~
! 11182: $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'
! 11183: else
! 11184: ld_shlibs_CXX=no
! 11185: fi
! 11186: ;;
! 11187: darwin* | rhapsody*)
! 11188: case $host_os in
! 11189: rhapsody* | darwin1.[012])
! 11190: allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
! 11191: ;;
! 11192: *) # Darwin 1.3 on
! 11193: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 11194: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 11195: else
! 11196: case ${MACOSX_DEPLOYMENT_TARGET} in
! 11197: 10.[012])
! 11198: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 11199: ;;
! 11200: 10.*)
! 11201: allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
! 11202: ;;
! 11203: esac
! 11204: fi
! 11205: ;;
! 11206: esac
! 11207: archive_cmds_need_lc_CXX=no
! 11208: hardcode_direct_CXX=no
! 11209: hardcode_automatic_CXX=yes
! 11210: hardcode_shlibpath_var_CXX=unsupported
! 11211: whole_archive_flag_spec_CXX=''
! 11212: link_all_deplibs_CXX=yes
! 11213:
! 11214: if test "$GXX" = yes ; then
! 11215: lt_int_apple_cc_single_mod=no
! 11216: output_verbose_link_cmd='echo'
! 11217: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
! 11218: lt_int_apple_cc_single_mod=yes
! 11219: fi
! 11220: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 11221: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 11222: else
! 11223: 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'
! 11224: fi
! 11225: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 11226: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 11227: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 11228: 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}'
! 11229: else
! 11230: 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}'
! 11231: fi
! 11232: 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}'
! 11233: else
! 11234: case $cc_basename in
! 11235: xlc*)
! 11236: output_verbose_link_cmd='echo'
! 11237: 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'
! 11238: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 11239: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 11240: 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}'
! 11241: 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}'
! 11242: ;;
! 11243: *)
! 11244: ld_shlibs_CXX=no
! 11245: ;;
! 11246: esac
! 11247: fi
! 11248: ;;
! 11249:
! 11250: dgux*)
! 11251: case $cc_basename in
! 11252: ec++*)
! 11253: # FIXME: insert proper C++ library support
! 11254: ld_shlibs_CXX=no
! 11255: ;;
! 11256: ghcx*)
! 11257: # Green Hills C++ Compiler
! 11258: # FIXME: insert proper C++ library support
! 11259: ld_shlibs_CXX=no
! 11260: ;;
! 11261: *)
! 11262: # FIXME: insert proper C++ library support
! 11263: ld_shlibs_CXX=no
! 11264: ;;
! 11265: esac
! 11266: ;;
! 11267: freebsd[12]*)
! 11268: # C++ shared libraries reported to be fairly broken before switch to ELF
! 11269: ld_shlibs_CXX=no
! 11270: ;;
! 11271: freebsd-elf*)
! 11272: archive_cmds_need_lc_CXX=no
! 11273: ;;
! 11274: freebsd* | kfreebsd*-gnu | dragonfly*)
! 11275: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
! 11276: # conventions
! 11277: ld_shlibs_CXX=yes
! 11278: ;;
! 11279: gnu*)
! 11280: ;;
! 11281: hpux9*)
! 11282: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 11283: hardcode_libdir_separator_CXX=:
! 11284: export_dynamic_flag_spec_CXX='${wl}-E'
! 11285: hardcode_direct_CXX=yes
! 11286: hardcode_minus_L_CXX=yes # Not in the search PATH,
! 11287: # but as the default
! 11288: # location of the library.
! 11289:
! 11290: case $cc_basename in
! 11291: CC*)
! 11292: # FIXME: insert proper C++ library support
! 11293: ld_shlibs_CXX=no
! 11294: ;;
! 11295: aCC*)
! 11296: 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'
! 11297: # Commands to make compiler produce verbose output that lists
! 11298: # what "hidden" libraries, object files and flags are used when
! 11299: # linking a shared library.
! 11300: #
! 11301: # There doesn't appear to be a way to prevent this compiler from
! 11302: # explicitly linking system object files so we need to strip them
! 11303: # from the output so that they don't get included in the library
! 11304: # dependencies.
! 11305: 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'
! 11306: ;;
! 11307: *)
! 11308: if test "$GXX" = yes; then
! 11309: 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'
! 11310: else
! 11311: # FIXME: insert proper C++ library support
! 11312: ld_shlibs_CXX=no
! 11313: fi
! 11314: ;;
! 11315: esac
! 11316: ;;
! 11317: hpux10*|hpux11*)
! 11318: if test $with_gnu_ld = no; then
! 11319: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 11320: hardcode_libdir_separator_CXX=:
! 11321:
! 11322: case $host_cpu in
! 11323: hppa*64*|ia64*)
! 11324: hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
! 11325: ;;
! 11326: *)
! 11327: export_dynamic_flag_spec_CXX='${wl}-E'
! 11328: ;;
! 11329: esac
! 11330: fi
! 11331: case $host_cpu in
! 11332: hppa*64*|ia64*)
! 11333: hardcode_direct_CXX=no
! 11334: hardcode_shlibpath_var_CXX=no
! 11335: ;;
! 11336: *)
! 11337: hardcode_direct_CXX=yes
! 11338: hardcode_minus_L_CXX=yes # Not in the search PATH,
! 11339: # but as the default
! 11340: # location of the library.
! 11341: ;;
! 11342: esac
! 11343:
! 11344: case $cc_basename in
! 11345: CC*)
! 11346: # FIXME: insert proper C++ library support
! 11347: ld_shlibs_CXX=no
! 11348: ;;
! 11349: aCC*)
! 11350: case $host_cpu in
! 11351: hppa*64*)
! 11352: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11353: ;;
! 11354: ia64*)
! 11355: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11356: ;;
! 11357: *)
! 11358: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11359: ;;
! 11360: esac
! 11361: # Commands to make compiler produce verbose output that lists
! 11362: # what "hidden" libraries, object files and flags are used when
! 11363: # linking a shared library.
! 11364: #
! 11365: # There doesn't appear to be a way to prevent this compiler from
! 11366: # explicitly linking system object files so we need to strip them
! 11367: # from the output so that they don't get included in the library
! 11368: # dependencies.
! 11369: 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'
! 11370: ;;
! 11371: *)
! 11372: if test "$GXX" = yes; then
! 11373: if test $with_gnu_ld = no; then
! 11374: case $host_cpu in
! 11375: hppa*64*)
! 11376: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11377: ;;
! 11378: ia64*)
! 11379: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11380: ;;
! 11381: *)
! 11382: 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'
! 11383: ;;
! 11384: esac
! 11385: fi
! 11386: else
! 11387: # FIXME: insert proper C++ library support
! 11388: ld_shlibs_CXX=no
! 11389: fi
! 11390: ;;
! 11391: esac
! 11392: ;;
! 11393: interix3*)
! 11394: hardcode_direct_CXX=no
! 11395: hardcode_shlibpath_var_CXX=no
! 11396: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11397: export_dynamic_flag_spec_CXX='${wl}-E'
! 11398: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 11399: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 11400: # default) and relocated if they conflict, which is a slow very memory
! 11401: # consuming and fragmenting process. To avoid this, we pick a random,
! 11402: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 11403: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 11404: 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'
! 11405: 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'
! 11406: ;;
! 11407: irix5* | irix6*)
! 11408: case $cc_basename in
! 11409: CC*)
! 11410: # SGI C++
! 11411: 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'
! 11412:
! 11413: # Archives containing C++ object files must be created using
! 11414: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
! 11415: # necessary to make sure instantiated templates are included
! 11416: # in the archive.
! 11417: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
! 11418: ;;
! 11419: *)
! 11420: if test "$GXX" = yes; then
! 11421: if test "$with_gnu_ld" = no; then
! 11422: 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'
! 11423: else
! 11424: 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'
! 11425: fi
! 11426: fi
! 11427: link_all_deplibs_CXX=yes
! 11428: ;;
! 11429: esac
! 11430: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11431: hardcode_libdir_separator_CXX=:
! 11432: ;;
! 11433: linux*)
! 11434: case $cc_basename in
! 11435: KCC*)
! 11436: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 11437:
! 11438: # KCC will only create a shared library if the output file
! 11439: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 11440: # to its proper name (with version) after linking.
! 11441: 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'
! 11442: 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'
! 11443: # Commands to make compiler produce verbose output that lists
! 11444: # what "hidden" libraries, object files and flags are used when
! 11445: # linking a shared library.
! 11446: #
! 11447: # There doesn't appear to be a way to prevent this compiler from
! 11448: # explicitly linking system object files so we need to strip them
! 11449: # from the output so that they don't get included in the library
! 11450: # dependencies.
! 11451: 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'
! 11452:
! 11453: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
! 11454: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 11455:
! 11456: # Archives containing C++ object files must be created using
! 11457: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
! 11458: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
! 11459: ;;
! 11460: icpc*)
! 11461: # Intel C++
! 11462: with_gnu_ld=yes
! 11463: # version 8.0 and above of icpc choke on multiply defined symbols
! 11464: # if we add $predep_objects and $postdep_objects, however 7.1 and
! 11465: # earlier do not add the objects themselves.
! 11466: case `$CC -V 2>&1` in
! 11467: *"Version 7."*)
! 11468: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11469: 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'
! 11470: ;;
! 11471: *) # Version 8.0 or newer
! 11472: tmp_idyn=
! 11473: case $host_cpu in
! 11474: ia64*) tmp_idyn=' -i_dynamic';;
! 11475: esac
! 11476: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11477: 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'
! 11478: ;;
! 11479: esac
! 11480: archive_cmds_need_lc_CXX=no
! 11481: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11482: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 11483: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
! 11484: ;;
! 11485: pgCC*)
! 11486: # Portland Group C++ compiler
! 11487: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
! 11488: 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'
! 11489:
! 11490: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
! 11491: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 11492: 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'
! 11493: ;;
! 11494: cxx*)
! 11495: # Compaq C++
! 11496: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11497: 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'
! 11498:
! 11499: runpath_var=LD_RUN_PATH
! 11500: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
! 11501: hardcode_libdir_separator_CXX=:
! 11502:
! 11503: # Commands to make compiler produce verbose output that lists
! 11504: # what "hidden" libraries, object files and flags are used when
! 11505: # linking a shared library.
! 11506: #
! 11507: # There doesn't appear to be a way to prevent this compiler from
! 11508: # explicitly linking system object files so we need to strip them
! 11509: # from the output so that they don't get included in the library
! 11510: # dependencies.
! 11511: 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'
! 11512: ;;
! 11513: esac
! 11514: ;;
! 11515: lynxos*)
! 11516: # FIXME: insert proper C++ library support
! 11517: ld_shlibs_CXX=no
! 11518: ;;
! 11519: m88k*)
! 11520: # FIXME: insert proper C++ library support
! 11521: ld_shlibs_CXX=no
! 11522: ;;
! 11523: mvs*)
! 11524: case $cc_basename in
! 11525: cxx*)
! 11526: # FIXME: insert proper C++ library support
! 11527: ld_shlibs_CXX=no
! 11528: ;;
! 11529: *)
! 11530: # FIXME: insert proper C++ library support
! 11531: ld_shlibs_CXX=no
! 11532: ;;
! 11533: esac
! 11534: ;;
! 11535: netbsd*)
! 11536: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 11537: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
! 11538: wlarc=
! 11539: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 11540: hardcode_direct_CXX=yes
! 11541: hardcode_shlibpath_var_CXX=no
! 11542: fi
! 11543: # Workaround some broken pre-1.5 toolchains
! 11544: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
! 11545: ;;
! 11546: openbsd2*)
! 11547: # C++ shared libraries are fairly broken
! 11548: ld_shlibs_CXX=no
! 11549: ;;
! 11550: openbsd*)
! 11551: hardcode_direct_CXX=yes
! 11552: hardcode_shlibpath_var_CXX=no
! 11553: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
! 11554: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11555: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 11556: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
! 11557: export_dynamic_flag_spec_CXX='${wl}-E'
! 11558: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 11559: fi
! 11560: output_verbose_link_cmd='echo'
! 11561: ;;
! 11562: osf3*)
! 11563: case $cc_basename in
! 11564: KCC*)
! 11565: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 11566:
! 11567: # KCC will only create a shared library if the output file
! 11568: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 11569: # to its proper name (with version) after linking.
! 11570: 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'
! 11571:
! 11572: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11573: hardcode_libdir_separator_CXX=:
! 11574:
! 11575: # Archives containing C++ object files must be created using
! 11576: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
! 11577: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
! 11578:
! 11579: ;;
! 11580: RCC*)
! 11581: # Rational C++ 2.4.1
! 11582: # FIXME: insert proper C++ library support
! 11583: ld_shlibs_CXX=no
! 11584: ;;
! 11585: cxx*)
! 11586: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 11587: 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'
! 11588:
! 11589: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11590: hardcode_libdir_separator_CXX=:
! 11591:
! 11592: # Commands to make compiler produce verbose output that lists
! 11593: # what "hidden" libraries, object files and flags are used when
! 11594: # linking a shared library.
! 11595: #
! 11596: # There doesn't appear to be a way to prevent this compiler from
! 11597: # explicitly linking system object files so we need to strip them
! 11598: # from the output so that they don't get included in the library
! 11599: # dependencies.
! 11600: 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'
! 11601: ;;
! 11602: *)
! 11603: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11604: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 11605: 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'
! 11606:
! 11607: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11608: hardcode_libdir_separator_CXX=:
! 11609:
! 11610: # Commands to make compiler produce verbose output that lists
! 11611: # what "hidden" libraries, object files and flags are used when
! 11612: # linking a shared library.
! 11613: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
! 11614:
! 11615: else
! 11616: # FIXME: insert proper C++ library support
! 11617: ld_shlibs_CXX=no
! 11618: fi
! 11619: ;;
! 11620: esac
! 11621: ;;
! 11622: osf4* | osf5*)
! 11623: case $cc_basename in
! 11624: KCC*)
! 11625: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 11626:
! 11627: # KCC will only create a shared library if the output file
! 11628: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 11629: # to its proper name (with version) after linking.
! 11630: 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'
! 11631:
! 11632: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11633: hardcode_libdir_separator_CXX=:
! 11634:
! 11635: # Archives containing C++ object files must be created using
! 11636: # the KAI C++ compiler.
! 11637: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
! 11638: ;;
! 11639: RCC*)
! 11640: # Rational C++ 2.4.1
! 11641: # FIXME: insert proper C++ library support
! 11642: ld_shlibs_CXX=no
! 11643: ;;
! 11644: cxx*)
! 11645: allow_undefined_flag_CXX=' -expect_unresolved \*'
! 11646: 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'
! 11647: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
! 11648: echo "-hidden">> $lib.exp~
! 11649: $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~
! 11650: $rm $lib.exp'
! 11651:
! 11652: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
! 11653: hardcode_libdir_separator_CXX=:
! 11654:
! 11655: # Commands to make compiler produce verbose output that lists
! 11656: # what "hidden" libraries, object files and flags are used when
! 11657: # linking a shared library.
! 11658: #
! 11659: # There doesn't appear to be a way to prevent this compiler from
! 11660: # explicitly linking system object files so we need to strip them
! 11661: # from the output so that they don't get included in the library
! 11662: # dependencies.
! 11663: 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'
! 11664: ;;
! 11665: *)
! 11666: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11667: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 11668: 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'
! 11669:
! 11670: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11671: hardcode_libdir_separator_CXX=:
! 11672:
! 11673: # Commands to make compiler produce verbose output that lists
! 11674: # what "hidden" libraries, object files and flags are used when
! 11675: # linking a shared library.
! 11676: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
! 11677:
! 11678: else
! 11679: # FIXME: insert proper C++ library support
! 11680: ld_shlibs_CXX=no
! 11681: fi
! 11682: ;;
! 11683: esac
! 11684: ;;
! 11685: psos*)
! 11686: # FIXME: insert proper C++ library support
! 11687: ld_shlibs_CXX=no
! 11688: ;;
! 11689: sunos4*)
! 11690: case $cc_basename in
! 11691: CC*)
! 11692: # Sun C++ 4.x
! 11693: # FIXME: insert proper C++ library support
! 11694: ld_shlibs_CXX=no
! 11695: ;;
! 11696: lcc*)
! 11697: # Lucid
! 11698: # FIXME: insert proper C++ library support
! 11699: ld_shlibs_CXX=no
! 11700: ;;
! 11701: *)
! 11702: # FIXME: insert proper C++ library support
! 11703: ld_shlibs_CXX=no
! 11704: ;;
! 11705: esac
! 11706: ;;
! 11707: solaris*)
! 11708: case $cc_basename in
! 11709: CC*)
! 11710: # Sun C++ 4.2, 5.x and Centerline C++
! 11711: archive_cmds_need_lc_CXX=yes
! 11712: no_undefined_flag_CXX=' -zdefs'
! 11713: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11714: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11715: $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'
! 11716:
! 11717: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 11718: hardcode_shlibpath_var_CXX=no
! 11719: case $host_os in
! 11720: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 11721: *)
! 11722: # The C++ compiler is used as linker so we must use $wl
! 11723: # flag to pass the commands to the underlying system
! 11724: # linker. We must also pass each convience library through
! 11725: # to the system linker between allextract/defaultextract.
! 11726: # The C++ compiler will combine linker options so we
! 11727: # cannot just pass the convience library names through
! 11728: # without $wl.
! 11729: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 11730: 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'
! 11731: ;;
! 11732: esac
! 11733: link_all_deplibs_CXX=yes
! 11734:
! 11735: output_verbose_link_cmd='echo'
! 11736:
! 11737: # Archives containing C++ object files must be created using
! 11738: # "CC -xar", where "CC" is the Sun C++ compiler. This is
! 11739: # necessary to make sure instantiated templates are included
! 11740: # in the archive.
! 11741: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
! 11742: ;;
! 11743: gcx*)
! 11744: # Green Hills C++ Compiler
! 11745: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11746:
! 11747: # The C++ compiler must be used to create the archive.
! 11748: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
! 11749: ;;
! 11750: *)
! 11751: # GNU C++ compiler with Solaris linker
! 11752: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11753: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
! 11754: if $CC --version | grep -v '^2\.7' > /dev/null; then
! 11755: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11756: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11757: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
! 11758:
! 11759: # Commands to make compiler produce verbose output that lists
! 11760: # what "hidden" libraries, object files and flags are used when
! 11761: # linking a shared library.
! 11762: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
! 11763: else
! 11764: # g++ 2.7 appears to require `-G' NOT `-shared' on this
! 11765: # platform.
! 11766: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11767: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11768: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
! 11769:
! 11770: # Commands to make compiler produce verbose output that lists
! 11771: # what "hidden" libraries, object files and flags are used when
! 11772: # linking a shared library.
! 11773: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
! 11774: fi
! 11775:
! 11776: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
! 11777: fi
! 11778: ;;
! 11779: esac
! 11780: ;;
! 11781: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 11782: no_undefined_flag_CXX='${wl}-z,text'
! 11783: archive_cmds_need_lc_CXX=no
! 11784: hardcode_shlibpath_var_CXX=no
! 11785: runpath_var='LD_RUN_PATH'
! 11786:
! 11787: case $cc_basename in
! 11788: CC*)
! 11789: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11790: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11791: ;;
! 11792: *)
! 11793: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11794: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11795: ;;
! 11796: esac
! 11797: ;;
! 11798: sysv5* | sco3.2v5* | sco5v6*)
! 11799: # Note: We can NOT use -z defs as we might desire, because we do not
! 11800: # link with -lc, and that would cause any symbols used from libc to
! 11801: # always be unresolved, which means just about no library would
! 11802: # ever link correctly. If we're not using GNU ld we use -z text
! 11803: # though, which does catch some bad symbols but isn't as heavy-handed
! 11804: # as -z defs.
! 11805: # For security reasons, it is highly recommended that you always
! 11806: # use absolute paths for naming shared libraries, and exclude the
! 11807: # DT_RUNPATH tag from executables and libraries. But doing so
! 11808: # requires that you compile everything twice, which is a pain.
! 11809: # So that behaviour is only enabled if SCOABSPATH is set to a
! 11810: # non-empty value in the environment. Most likely only useful for
! 11811: # creating official distributions of packages.
! 11812: # This is a hack until libtool officially supports absolute path
! 11813: # names for shared libraries.
! 11814: no_undefined_flag_CXX='${wl}-z,text'
! 11815: allow_undefined_flag_CXX='${wl}-z,nodefs'
! 11816: archive_cmds_need_lc_CXX=no
! 11817: hardcode_shlibpath_var_CXX=no
! 11818: hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 11819: hardcode_libdir_separator_CXX=':'
! 11820: link_all_deplibs_CXX=yes
! 11821: export_dynamic_flag_spec_CXX='${wl}-Bexport'
! 11822: runpath_var='LD_RUN_PATH'
! 11823:
! 11824: case $cc_basename in
! 11825: CC*)
! 11826: archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11827: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11828: ;;
! 11829: *)
! 11830: archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11831: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 11832: ;;
! 11833: esac
! 11834: ;;
! 11835: tandem*)
! 11836: case $cc_basename in
! 11837: NCC*)
! 11838: # NonStop-UX NCC 3.20
! 11839: # FIXME: insert proper C++ library support
! 11840: ld_shlibs_CXX=no
! 11841: ;;
! 11842: *)
! 11843: # FIXME: insert proper C++ library support
! 11844: ld_shlibs_CXX=no
! 11845: ;;
! 11846: esac
! 11847: ;;
! 11848: vxworks*)
! 11849: # FIXME: insert proper C++ library support
! 11850: ld_shlibs_CXX=no
! 11851: ;;
! 11852: *)
! 11853: # FIXME: insert proper C++ library support
! 11854: ld_shlibs_CXX=no
! 11855: ;;
! 11856: esac
! 11857: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 11858: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
! 11859: test "$ld_shlibs_CXX" = no && can_build_shared=no
! 11860:
! 11861: GCC_CXX="$GXX"
! 11862: LD_CXX="$LD"
! 11863:
! 11864:
! 11865: cat > conftest.$ac_ext <<EOF
! 11866: class Foo
! 11867: {
! 11868: public:
! 11869: Foo (void) { a = 0; }
! 11870: private:
! 11871: int a;
! 11872: };
! 11873: EOF
! 11874:
! 11875: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 11876: (eval $ac_compile) 2>&5
! 11877: ac_status=$?
! 11878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11879: (exit $ac_status); }; then
! 11880: # Parse the compiler output and extract the necessary
! 11881: # objects, libraries and library flags.
! 11882:
! 11883: # Sentinel used to keep track of whether or not we are before
! 11884: # the conftest object file.
! 11885: pre_test_object_deps_done=no
! 11886:
! 11887: # The `*' in the case matches for architectures that use `case' in
! 11888: # $output_verbose_cmd can trigger glob expansion during the loop
! 11889: # eval without this substitution.
! 11890: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
! 11891:
! 11892: for p in `eval $output_verbose_link_cmd`; do
! 11893: case $p in
! 11894:
! 11895: -L* | -R* | -l*)
! 11896: # Some compilers place space between "-{L,R}" and the path.
! 11897: # Remove the space.
! 11898: if test $p = "-L" \
! 11899: || test $p = "-R"; then
! 11900: prev=$p
! 11901: continue
! 11902: else
! 11903: prev=
! 11904: fi
! 11905:
! 11906: if test "$pre_test_object_deps_done" = no; then
! 11907: case $p in
! 11908: -L* | -R*)
! 11909: # Internal compiler library paths should come after those
! 11910: # provided the user. The postdeps already come after the
! 11911: # user supplied libs so there is no need to process them.
! 11912: if test -z "$compiler_lib_search_path_CXX"; then
! 11913: compiler_lib_search_path_CXX="${prev}${p}"
! 11914: else
! 11915: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
! 11916: fi
! 11917: ;;
! 11918: # The "-l" case would never come before the object being
! 11919: # linked, so don't bother handling this case.
! 11920: esac
! 11921: else
! 11922: if test -z "$postdeps_CXX"; then
! 11923: postdeps_CXX="${prev}${p}"
! 11924: else
! 11925: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
! 11926: fi
! 11927: fi
! 11928: ;;
! 11929:
! 11930: *.$objext)
! 11931: # This assumes that the test object file only shows up
! 11932: # once in the compiler output.
! 11933: if test "$p" = "conftest.$objext"; then
! 11934: pre_test_object_deps_done=yes
! 11935: continue
! 11936: fi
! 11937:
! 11938: if test "$pre_test_object_deps_done" = no; then
! 11939: if test -z "$predep_objects_CXX"; then
! 11940: predep_objects_CXX="$p"
! 11941: else
! 11942: predep_objects_CXX="$predep_objects_CXX $p"
! 11943: fi
! 11944: else
! 11945: if test -z "$postdep_objects_CXX"; then
! 11946: postdep_objects_CXX="$p"
! 11947: else
! 11948: postdep_objects_CXX="$postdep_objects_CXX $p"
! 11949: fi
! 11950: fi
! 11951: ;;
! 11952:
! 11953: *) ;; # Ignore the rest.
! 11954:
! 11955: esac
! 11956: done
! 11957:
! 11958: # Clean up.
! 11959: rm -f a.out a.exe
! 11960: else
! 11961: echo "libtool.m4: error: problem compiling CXX test program"
! 11962: fi
! 11963:
! 11964: $rm -f confest.$objext
! 11965:
! 11966: # PORTME: override above test on systems where it is broken
! 11967: case $host_os in
! 11968: interix3*)
! 11969: # Interix 3.5 installs completely hosed .la files for C++, so rather than
! 11970: # hack all around it, let's just trust "g++" to DTRT.
! 11971: predep_objects_CXX=
! 11972: postdep_objects_CXX=
! 11973: postdeps_CXX=
! 11974: ;;
! 11975:
! 11976: solaris*)
! 11977: case $cc_basename in
! 11978: CC*)
! 11979: # Adding this requires a known-good setup of shared libraries for
! 11980: # Sun compiler versions before 5.6, else PIC objects from an old
! 11981: # archive will be linked into the output, leading to subtle bugs.
! 11982: postdeps_CXX='-lCstd -lCrun'
! 11983: ;;
! 11984: esac
! 11985: ;;
! 11986: esac
! 11987:
! 11988:
! 11989: case " $postdeps_CXX " in
! 11990: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
! 11991: esac
! 11992:
! 11993: lt_prog_compiler_wl_CXX=
! 11994: lt_prog_compiler_pic_CXX=
! 11995: lt_prog_compiler_static_CXX=
! 11996:
! 11997: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 11998: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
! 11999:
! 12000: # C++ specific cases for pic, static, wl, etc.
! 12001: if test "$GXX" = yes; then
! 12002: lt_prog_compiler_wl_CXX='-Wl,'
! 12003: lt_prog_compiler_static_CXX='-static'
! 12004:
! 12005: case $host_os in
! 12006: aix*)
! 12007: # All AIX code is PIC.
! 12008: if test "$host_cpu" = ia64; then
! 12009: # AIX 5 now supports IA64 processor
! 12010: lt_prog_compiler_static_CXX='-Bstatic'
! 12011: fi
! 12012: ;;
! 12013: amigaos*)
! 12014: # FIXME: we need at least 68020 code to build shared libraries, but
! 12015: # adding the `-m68020' flag to GCC prevents building anything better,
! 12016: # like `-m68040'.
! 12017: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
! 12018: ;;
! 12019: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 12020: # PIC is the default for these OSes.
! 12021: ;;
! 12022: mingw* | os2* | pw32*)
! 12023: # This hack is so that the source file can tell whether it is being
! 12024: # built for inclusion in a dll (and should export symbols for example).
! 12025: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
! 12026: ;;
! 12027: darwin* | rhapsody*)
! 12028: # PIC is the default on this platform
! 12029: # Common symbols not allowed in MH_DYLIB files
! 12030: lt_prog_compiler_pic_CXX='-fno-common'
! 12031: ;;
! 12032: *djgpp*)
! 12033: # DJGPP does not support shared libraries at all
! 12034: lt_prog_compiler_pic_CXX=
! 12035: ;;
! 12036: interix3*)
! 12037: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 12038: # Instead, we relocate shared libraries at runtime.
! 12039: ;;
! 12040: sysv4*MP*)
! 12041: if test -d /usr/nec; then
! 12042: lt_prog_compiler_pic_CXX=-Kconform_pic
! 12043: fi
! 12044: ;;
! 12045: hpux*)
! 12046: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 12047: # not for PA HP-UX.
! 12048: case $host_cpu in
! 12049: hppa*64*|ia64*)
! 12050: ;;
! 12051: *)
! 12052: lt_prog_compiler_pic_CXX='-fPIC'
! 12053: ;;
! 12054: esac
! 12055: ;;
! 12056: *)
! 12057: lt_prog_compiler_pic_CXX='-fPIC'
! 12058: ;;
! 12059: esac
! 12060: else
! 12061: case $host_os in
! 12062: aix4* | aix5*)
! 12063: # All AIX code is PIC.
! 12064: if test "$host_cpu" = ia64; then
! 12065: # AIX 5 now supports IA64 processor
! 12066: lt_prog_compiler_static_CXX='-Bstatic'
! 12067: else
! 12068: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
! 12069: fi
! 12070: ;;
! 12071: chorus*)
! 12072: case $cc_basename in
! 12073: cxch68*)
! 12074: # Green Hills C++ Compiler
! 12075: # _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"
! 12076: ;;
! 12077: esac
! 12078: ;;
! 12079: darwin*)
! 12080: # PIC is the default on this platform
! 12081: # Common symbols not allowed in MH_DYLIB files
! 12082: case $cc_basename in
! 12083: xlc*)
! 12084: lt_prog_compiler_pic_CXX='-qnocommon'
! 12085: lt_prog_compiler_wl_CXX='-Wl,'
! 12086: ;;
! 12087: esac
! 12088: ;;
! 12089: dgux*)
! 12090: case $cc_basename in
! 12091: ec++*)
! 12092: lt_prog_compiler_pic_CXX='-KPIC'
! 12093: ;;
! 12094: ghcx*)
! 12095: # Green Hills C++ Compiler
! 12096: lt_prog_compiler_pic_CXX='-pic'
! 12097: ;;
! 12098: *)
! 12099: ;;
! 12100: esac
! 12101: ;;
! 12102: freebsd* | kfreebsd*-gnu | dragonfly*)
! 12103: # FreeBSD uses GNU C++
! 12104: ;;
! 12105: hpux9* | hpux10* | hpux11*)
! 12106: case $cc_basename in
! 12107: CC*)
! 12108: lt_prog_compiler_wl_CXX='-Wl,'
! 12109: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
! 12110: if test "$host_cpu" != ia64; then
! 12111: lt_prog_compiler_pic_CXX='+Z'
! 12112: fi
! 12113: ;;
! 12114: aCC*)
! 12115: lt_prog_compiler_wl_CXX='-Wl,'
! 12116: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
! 12117: case $host_cpu in
! 12118: hppa*64*|ia64*)
! 12119: # +Z the default
! 12120: ;;
! 12121: *)
! 12122: lt_prog_compiler_pic_CXX='+Z'
! 12123: ;;
! 12124: esac
! 12125: ;;
! 12126: *)
! 12127: ;;
! 12128: esac
! 12129: ;;
! 12130: interix*)
! 12131: # This is c89, which is MS Visual C++ (no shared libs)
! 12132: # Anyone wants to do a port?
! 12133: ;;
! 12134: irix5* | irix6* | nonstopux*)
! 12135: case $cc_basename in
! 12136: CC*)
! 12137: lt_prog_compiler_wl_CXX='-Wl,'
! 12138: lt_prog_compiler_static_CXX='-non_shared'
! 12139: # CC pic flag -KPIC is the default.
! 12140: ;;
! 12141: *)
! 12142: ;;
! 12143: esac
! 12144: ;;
! 12145: linux*)
! 12146: case $cc_basename in
! 12147: KCC*)
! 12148: # KAI C++ Compiler
! 12149: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 12150: lt_prog_compiler_pic_CXX='-fPIC'
! 12151: ;;
! 12152: icpc* | ecpc*)
! 12153: # Intel C++
! 12154: lt_prog_compiler_wl_CXX='-Wl,'
! 12155: lt_prog_compiler_pic_CXX='-KPIC'
! 12156: lt_prog_compiler_static_CXX='-static'
! 12157: ;;
! 12158: pgCC*)
! 12159: # Portland Group C++ compiler.
! 12160: lt_prog_compiler_wl_CXX='-Wl,'
! 12161: lt_prog_compiler_pic_CXX='-fpic'
! 12162: lt_prog_compiler_static_CXX='-Bstatic'
! 12163: ;;
! 12164: cxx*)
! 12165: # Compaq C++
! 12166: # Make sure the PIC flag is empty. It appears that all Alpha
! 12167: # Linux and Compaq Tru64 Unix objects are PIC.
! 12168: lt_prog_compiler_pic_CXX=
! 12169: lt_prog_compiler_static_CXX='-non_shared'
! 12170: ;;
! 12171: *)
! 12172: ;;
! 12173: esac
! 12174: ;;
! 12175: lynxos*)
! 12176: ;;
! 12177: m88k*)
! 12178: ;;
! 12179: mvs*)
! 12180: case $cc_basename in
! 12181: cxx*)
! 12182: lt_prog_compiler_pic_CXX='-W c,exportall'
! 12183: ;;
! 12184: *)
! 12185: ;;
! 12186: esac
! 12187: ;;
! 12188: netbsd*)
! 12189: ;;
! 12190: osf3* | osf4* | osf5*)
! 12191: case $cc_basename in
! 12192: KCC*)
! 12193: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 12194: ;;
! 12195: RCC*)
! 12196: # Rational C++ 2.4.1
! 12197: lt_prog_compiler_pic_CXX='-pic'
! 12198: ;;
! 12199: cxx*)
! 12200: # Digital/Compaq C++
! 12201: lt_prog_compiler_wl_CXX='-Wl,'
! 12202: # Make sure the PIC flag is empty. It appears that all Alpha
! 12203: # Linux and Compaq Tru64 Unix objects are PIC.
! 12204: lt_prog_compiler_pic_CXX=
! 12205: lt_prog_compiler_static_CXX='-non_shared'
! 12206: ;;
! 12207: *)
! 12208: ;;
! 12209: esac
! 12210: ;;
! 12211: psos*)
! 12212: ;;
! 12213: solaris*)
! 12214: case $cc_basename in
! 12215: CC*)
! 12216: # Sun C++ 4.2, 5.x and Centerline C++
! 12217: lt_prog_compiler_pic_CXX='-KPIC'
! 12218: lt_prog_compiler_static_CXX='-Bstatic'
! 12219: lt_prog_compiler_wl_CXX='-Qoption ld '
! 12220: ;;
! 12221: gcx*)
! 12222: # Green Hills C++ Compiler
! 12223: lt_prog_compiler_pic_CXX='-PIC'
! 12224: ;;
! 12225: *)
! 12226: ;;
! 12227: esac
! 12228: ;;
! 12229: sunos4*)
! 12230: case $cc_basename in
! 12231: CC*)
! 12232: # Sun C++ 4.x
! 12233: lt_prog_compiler_pic_CXX='-pic'
! 12234: lt_prog_compiler_static_CXX='-Bstatic'
! 12235: ;;
! 12236: lcc*)
! 12237: # Lucid
! 12238: lt_prog_compiler_pic_CXX='-pic'
! 12239: ;;
! 12240: *)
! 12241: ;;
! 12242: esac
! 12243: ;;
! 12244: tandem*)
! 12245: case $cc_basename in
! 12246: NCC*)
! 12247: # NonStop-UX NCC 3.20
! 12248: lt_prog_compiler_pic_CXX='-KPIC'
! 12249: ;;
! 12250: *)
! 12251: ;;
! 12252: esac
! 12253: ;;
! 12254: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 12255: case $cc_basename in
! 12256: CC*)
! 12257: lt_prog_compiler_wl_CXX='-Wl,'
! 12258: lt_prog_compiler_pic_CXX='-KPIC'
! 12259: lt_prog_compiler_static_CXX='-Bstatic'
! 12260: ;;
! 12261: esac
! 12262: ;;
! 12263: vxworks*)
! 12264: ;;
! 12265: *)
! 12266: lt_prog_compiler_can_build_shared_CXX=no
! 12267: ;;
! 12268: esac
! 12269: fi
! 12270:
! 12271: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
! 12272: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
! 12273:
! 12274: #
! 12275: # Check to make sure the PIC flag actually works.
! 12276: #
! 12277: if test -n "$lt_prog_compiler_pic_CXX"; then
! 12278:
! 12279: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 12280: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
! 12281: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
! 12282: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12283: else
! 12284: lt_prog_compiler_pic_works_CXX=no
! 12285: ac_outfile=conftest.$ac_objext
! 12286: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 12287: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
! 12288: # Insert the option either (1) after the last *FLAGS variable, or
! 12289: # (2) before a word containing "conftest.", or (3) at the end.
! 12290: # Note that $ac_compile itself does not contain backslashes and begins
! 12291: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 12292: # The option is referenced via a variable to avoid confusing sed.
! 12293: lt_compile=`echo "$ac_compile" | $SED \
! 12294: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 12295: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 12296: -e 's:$: $lt_compiler_flag:'`
! 12297: (eval echo "\"\$as_me:12297: $lt_compile\"" >&5)
! 12298: (eval "$lt_compile" 2>conftest.err)
! 12299: ac_status=$?
! 12300: cat conftest.err >&5
! 12301: echo "$as_me:12301: \$? = $ac_status" >&5
! 12302: if (exit $ac_status) && test -s "$ac_outfile"; then
! 12303: # The compiler can only warn and ignore the option if not recognized
! 12304: # So say no if there are warnings other than the usual output.
! 12305: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 12306: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 12307: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 12308: lt_prog_compiler_pic_works_CXX=yes
! 12309: fi
! 12310: fi
! 12311: $rm conftest*
! 12312:
! 12313: fi
! 12314: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
! 12315: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
! 12316:
! 12317: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
! 12318: case $lt_prog_compiler_pic_CXX in
! 12319: "" | " "*) ;;
! 12320: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
! 12321: esac
! 12322: else
! 12323: lt_prog_compiler_pic_CXX=
! 12324: lt_prog_compiler_can_build_shared_CXX=no
! 12325: fi
! 12326:
! 12327: fi
! 12328: case $host_os in
! 12329: # For platforms which do not support PIC, -DPIC is meaningless:
! 12330: *djgpp*)
! 12331: lt_prog_compiler_pic_CXX=
! 12332: ;;
! 12333: *)
! 12334: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
! 12335: ;;
! 12336: esac
! 12337:
! 12338: #
! 12339: # Check to make sure the static flag actually works.
! 12340: #
! 12341: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
! 12342: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 12343: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 12344: if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
! 12345: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12346: else
! 12347: lt_prog_compiler_static_works_CXX=no
! 12348: save_LDFLAGS="$LDFLAGS"
! 12349: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 12350: printf "$lt_simple_link_test_code" > conftest.$ac_ext
! 12351: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 12352: # The linker can only warn and ignore the option if not recognized
! 12353: # So say no if there are warnings
! 12354: if test -s conftest.err; then
! 12355: # Append any errors to the config.log.
! 12356: cat conftest.err 1>&5
! 12357: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 12358: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 12359: if diff conftest.exp conftest.er2 >/dev/null; then
! 12360: lt_prog_compiler_static_works_CXX=yes
! 12361: fi
! 12362: else
! 12363: lt_prog_compiler_static_works_CXX=yes
! 12364: fi
! 12365: fi
! 12366: $rm conftest*
! 12367: LDFLAGS="$save_LDFLAGS"
! 12368:
! 12369: fi
! 12370: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
! 12371: echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
! 12372:
! 12373: if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
! 12374: :
! 12375: else
! 12376: lt_prog_compiler_static_CXX=
! 12377: fi
! 12378:
! 12379:
! 12380: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 12381: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 12382: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
! 12383: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12384: else
! 12385: lt_cv_prog_compiler_c_o_CXX=no
! 12386: $rm -r conftest 2>/dev/null
! 12387: mkdir conftest
! 12388: cd conftest
! 12389: mkdir out
! 12390: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 12391:
! 12392: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 12393: # Insert the option either (1) after the last *FLAGS variable, or
! 12394: # (2) before a word containing "conftest.", or (3) at the end.
! 12395: # Note that $ac_compile itself does not contain backslashes and begins
! 12396: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 12397: lt_compile=`echo "$ac_compile" | $SED \
! 12398: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 12399: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 12400: -e 's:$: $lt_compiler_flag:'`
! 12401: (eval echo "\"\$as_me:12401: $lt_compile\"" >&5)
! 12402: (eval "$lt_compile" 2>out/conftest.err)
! 12403: ac_status=$?
! 12404: cat out/conftest.err >&5
! 12405: echo "$as_me:12405: \$? = $ac_status" >&5
! 12406: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 12407: then
! 12408: # The compiler can only warn and ignore the option if not recognized
! 12409: # So say no if there are warnings
! 12410: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 12411: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 12412: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
! 12413: lt_cv_prog_compiler_c_o_CXX=yes
! 12414: fi
! 12415: fi
! 12416: chmod u+w . 2>&5
! 12417: $rm conftest*
! 12418: # SGI C++ compiler will create directory out/ii_files/ for
! 12419: # template instantiation
! 12420: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 12421: $rm out/* && rmdir out
! 12422: cd ..
! 12423: rmdir conftest
! 12424: $rm conftest*
! 12425:
! 12426: fi
! 12427: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 12428: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
! 12429:
! 12430:
! 12431: hard_links="nottested"
! 12432: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
! 12433: # do not overwrite the value of need_locks provided by the user
! 12434: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 12435: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
! 12436: hard_links=yes
! 12437: $rm conftest*
! 12438: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 12439: touch conftest.a
! 12440: ln conftest.a conftest.b 2>&5 || hard_links=no
! 12441: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 12442: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 12443: echo "${ECHO_T}$hard_links" >&6; }
! 12444: if test "$hard_links" = no; then
! 12445: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 12446: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 12447: need_locks=warn
! 12448: fi
! 12449: else
! 12450: need_locks=no
! 12451: fi
! 12452:
! 12453: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12454: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
! 12455:
! 12456: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 12457: case $host_os in
! 12458: aix4* | aix5*)
! 12459: # If we're using GNU nm, then we don't want the "-C" option.
! 12460: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 12461: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 12462: 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'
! 12463: else
! 12464: 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'
! 12465: fi
! 12466: ;;
! 12467: pw32*)
! 12468: export_symbols_cmds_CXX="$ltdll_cmds"
! 12469: ;;
! 12470: cygwin* | mingw*)
! 12471: 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'
! 12472: ;;
! 12473: *)
! 12474: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 12475: ;;
! 12476: esac
! 12477:
! 12478: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 12479: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
! 12480: test "$ld_shlibs_CXX" = no && can_build_shared=no
! 12481:
! 12482: #
! 12483: # Do we need to explicitly link libc?
! 12484: #
! 12485: case "x$archive_cmds_need_lc_CXX" in
! 12486: x|xyes)
! 12487: # Assume -lc should be added
! 12488: archive_cmds_need_lc_CXX=yes
! 12489:
! 12490: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 12491: case $archive_cmds_CXX in
! 12492: *'~'*)
! 12493: # FIXME: we may have to deal with multi-command sequences.
! 12494: ;;
! 12495: '$CC '*)
! 12496: # Test whether the compiler implicitly links with -lc since on some
! 12497: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 12498: # to ld, don't add -lc before -lgcc.
! 12499: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 12500: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 12501: $rm conftest*
! 12502: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 12503:
! 12504: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12505: (eval $ac_compile) 2>&5
! 12506: ac_status=$?
! 12507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12508: (exit $ac_status); } 2>conftest.err; then
! 12509: soname=conftest
! 12510: lib=conftest
! 12511: libobjs=conftest.$ac_objext
! 12512: deplibs=
! 12513: wl=$lt_prog_compiler_wl_CXX
! 12514: pic_flag=$lt_prog_compiler_pic_CXX
! 12515: compiler_flags=-v
! 12516: linker_flags=-v
! 12517: verstring=
! 12518: output_objdir=.
! 12519: libname=conftest
! 12520: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
! 12521: allow_undefined_flag_CXX=
! 12522: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 12523: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 12524: ac_status=$?
! 12525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12526: (exit $ac_status); }
! 12527: then
! 12528: archive_cmds_need_lc_CXX=no
! 12529: else
! 12530: archive_cmds_need_lc_CXX=yes
! 12531: fi
! 12532: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
! 12533: else
! 12534: cat conftest.err 1>&5
! 12535: fi
! 12536: $rm conftest*
! 12537: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
! 12538: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
! 12539: ;;
! 12540: esac
! 12541: fi
! 12542: ;;
! 12543: esac
! 12544:
! 12545: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 12546: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 12547: library_names_spec=
! 12548: libname_spec='lib$name'
! 12549: soname_spec=
! 12550: shrext_cmds=".so"
! 12551: postinstall_cmds=
! 12552: postuninstall_cmds=
! 12553: finish_cmds=
! 12554: finish_eval=
! 12555: shlibpath_var=
! 12556: shlibpath_overrides_runpath=unknown
! 12557: version_type=none
! 12558: dynamic_linker="$host_os ld.so"
! 12559: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 12560: if test "$GCC" = yes; then
! 12561: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 12562: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 12563: # if the path contains ";" then we assume it to be the separator
! 12564: # otherwise default to the standard path separator (i.e. ":") - it is
! 12565: # assumed that no part of a normal pathname contains ";" but that should
! 12566: # okay in the real world where ";" in dirpaths is itself problematic.
! 12567: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 12568: else
! 12569: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 12570: fi
! 12571: else
! 12572: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 12573: fi
! 12574: need_lib_prefix=unknown
! 12575: hardcode_into_libs=no
! 12576:
! 12577: # when you set need_version to no, make sure it does not cause -set_version
! 12578: # flags to be left without arguments
! 12579: need_version=unknown
! 12580:
! 12581: case $host_os in
! 12582: aix3*)
! 12583: version_type=linux
! 12584: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 12585: shlibpath_var=LIBPATH
! 12586:
! 12587: # AIX 3 has no versioning support, so we append a major version to the name.
! 12588: soname_spec='${libname}${release}${shared_ext}$major'
! 12589: ;;
! 12590:
! 12591: aix4* | aix5*)
! 12592: version_type=linux
! 12593: need_lib_prefix=no
! 12594: need_version=no
! 12595: hardcode_into_libs=yes
! 12596: if test "$host_cpu" = ia64; then
! 12597: # AIX 5 supports IA64
! 12598: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 12599: shlibpath_var=LD_LIBRARY_PATH
! 12600: else
! 12601: # With GCC up to 2.95.x, collect2 would create an import file
! 12602: # for dependence libraries. The import file would start with
! 12603: # the line `#! .'. This would cause the generated library to
! 12604: # depend on `.', always an invalid library. This was fixed in
! 12605: # development snapshots of GCC prior to 3.0.
! 12606: case $host_os in
! 12607: aix4 | aix4.[01] | aix4.[01].*)
! 12608: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 12609: echo ' yes '
! 12610: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 12611: :
! 12612: else
! 12613: can_build_shared=no
! 12614: fi
! 12615: ;;
! 12616: esac
! 12617: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 12618: # soname into executable. Probably we can add versioning support to
! 12619: # collect2, so additional links can be useful in future.
! 12620: if test "$aix_use_runtimelinking" = yes; then
! 12621: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 12622: # instead of lib<name>.a to let people know that these are not
! 12623: # typical AIX shared libraries.
! 12624: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12625: else
! 12626: # We preserve .a as extension for shared libraries through AIX4.2
! 12627: # and later when we are not doing run time linking.
! 12628: library_names_spec='${libname}${release}.a $libname.a'
! 12629: soname_spec='${libname}${release}${shared_ext}$major'
! 12630: fi
! 12631: shlibpath_var=LIBPATH
! 12632: fi
! 12633: ;;
! 12634:
! 12635: amigaos*)
! 12636: library_names_spec='$libname.ixlibrary $libname.a'
! 12637: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 12638: 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'
! 12639: ;;
! 12640:
! 12641: beos*)
! 12642: library_names_spec='${libname}${shared_ext}'
! 12643: dynamic_linker="$host_os ld.so"
! 12644: shlibpath_var=LIBRARY_PATH
! 12645: ;;
! 12646:
! 12647: bsdi[45]*)
! 12648: version_type=linux
! 12649: need_version=no
! 12650: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12651: soname_spec='${libname}${release}${shared_ext}$major'
! 12652: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 12653: shlibpath_var=LD_LIBRARY_PATH
! 12654: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 12655: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 12656: # the default ld.so.conf also contains /usr/contrib/lib and
! 12657: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 12658: # libtool to hard-code these into programs
! 12659: ;;
! 12660:
! 12661: cygwin* | mingw* | pw32*)
! 12662: version_type=windows
! 12663: shrext_cmds=".dll"
! 12664: need_version=no
! 12665: need_lib_prefix=no
! 12666:
! 12667: case $GCC,$host_os in
! 12668: yes,cygwin* | yes,mingw* | yes,pw32*)
! 12669: library_names_spec='$libname.dll.a'
! 12670: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 12671: postinstall_cmds='base_file=`basename \${file}`~
! 12672: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 12673: dldir=$destdir/`dirname \$dlpath`~
! 12674: test -d \$dldir || mkdir -p \$dldir~
! 12675: $install_prog $dir/$dlname \$dldir/$dlname~
! 12676: chmod a+x \$dldir/$dlname'
! 12677: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 12678: dlpath=$dir/\$dldll~
! 12679: $rm \$dlpath'
! 12680: shlibpath_overrides_runpath=yes
! 12681:
! 12682: case $host_os in
! 12683: cygwin*)
! 12684: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 12685: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 12686: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 12687: ;;
! 12688: mingw*)
! 12689: # MinGW DLLs use traditional 'lib' prefix
! 12690: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 12691: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 12692: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 12693: # It is most probably a Windows format PATH printed by
! 12694: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 12695: # path with ; separators, and with drive letters. We can handle the
! 12696: # drive letters (cygwin fileutils understands them), so leave them,
! 12697: # especially as we might pass files found there to a mingw objdump,
! 12698: # which wouldn't understand a cygwinified path. Ahh.
! 12699: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 12700: else
! 12701: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 12702: fi
! 12703: ;;
! 12704: pw32*)
! 12705: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 12706: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 12707: ;;
! 12708: esac
! 12709: ;;
! 12710:
! 12711: *)
! 12712: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 12713: ;;
! 12714: esac
! 12715: dynamic_linker='Win32 ld.exe'
! 12716: # FIXME: first we should search . and the directory the executable is in
! 12717: shlibpath_var=PATH
! 12718: ;;
! 12719:
! 12720: darwin* | rhapsody*)
! 12721: dynamic_linker="$host_os dyld"
! 12722: version_type=darwin
! 12723: need_lib_prefix=no
! 12724: need_version=no
! 12725: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 12726: soname_spec='${libname}${release}${major}$shared_ext'
! 12727: shlibpath_overrides_runpath=yes
! 12728: shlibpath_var=DYLD_LIBRARY_PATH
! 12729: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 12730: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 12731: if test "$GCC" = yes; then
! 12732: 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"`
! 12733: else
! 12734: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
! 12735: fi
! 12736: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 12737: ;;
! 12738:
! 12739: dgux*)
! 12740: version_type=linux
! 12741: need_lib_prefix=no
! 12742: need_version=no
! 12743: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 12744: soname_spec='${libname}${release}${shared_ext}$major'
! 12745: shlibpath_var=LD_LIBRARY_PATH
! 12746: ;;
! 12747:
! 12748: freebsd1*)
! 12749: dynamic_linker=no
! 12750: ;;
! 12751:
! 12752: kfreebsd*-gnu)
! 12753: version_type=linux
! 12754: need_lib_prefix=no
! 12755: need_version=no
! 12756: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 12757: soname_spec='${libname}${release}${shared_ext}$major'
! 12758: shlibpath_var=LD_LIBRARY_PATH
! 12759: shlibpath_overrides_runpath=no
! 12760: hardcode_into_libs=yes
! 12761: dynamic_linker='GNU ld.so'
! 12762: ;;
! 12763:
! 12764: freebsd* | dragonfly*)
! 12765: # DragonFly does not have aout. When/if they implement a new
! 12766: # versioning mechanism, adjust this.
! 12767: if test -x /usr/bin/objformat; then
! 12768: objformat=`/usr/bin/objformat`
! 12769: else
! 12770: case $host_os in
! 12771: freebsd[123]*) objformat=aout ;;
! 12772: *) objformat=elf ;;
! 12773: esac
! 12774: fi
! 12775: version_type=freebsd-$objformat
! 12776: case $version_type in
! 12777: freebsd-elf*)
! 12778: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 12779: need_version=no
! 12780: need_lib_prefix=no
! 12781: ;;
! 12782: freebsd-*)
! 12783: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 12784: need_version=yes
! 12785: ;;
! 12786: esac
! 12787: shlibpath_var=LD_LIBRARY_PATH
! 12788: case $host_os in
! 12789: freebsd2*)
! 12790: shlibpath_overrides_runpath=yes
! 12791: ;;
! 12792: freebsd3.[01]* | freebsdelf3.[01]*)
! 12793: shlibpath_overrides_runpath=yes
! 12794: hardcode_into_libs=yes
! 12795: ;;
! 12796: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 12797: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 12798: shlibpath_overrides_runpath=no
! 12799: hardcode_into_libs=yes
! 12800: ;;
! 12801: freebsd*) # from 4.6 on
! 12802: shlibpath_overrides_runpath=yes
! 12803: hardcode_into_libs=yes
! 12804: ;;
! 12805: esac
! 12806: ;;
! 12807:
! 12808: gnu*)
! 12809: version_type=linux
! 12810: need_lib_prefix=no
! 12811: need_version=no
! 12812: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 12813: soname_spec='${libname}${release}${shared_ext}$major'
! 12814: shlibpath_var=LD_LIBRARY_PATH
! 12815: hardcode_into_libs=yes
! 12816: ;;
! 12817:
! 12818: hpux9* | hpux10* | hpux11*)
! 12819: # Give a soname corresponding to the major version so that dld.sl refuses to
! 12820: # link against other versions.
! 12821: version_type=sunos
! 12822: need_lib_prefix=no
! 12823: need_version=no
! 12824: case $host_cpu in
! 12825: ia64*)
! 12826: shrext_cmds='.so'
! 12827: hardcode_into_libs=yes
! 12828: dynamic_linker="$host_os dld.so"
! 12829: shlibpath_var=LD_LIBRARY_PATH
! 12830: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 12831: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12832: soname_spec='${libname}${release}${shared_ext}$major'
! 12833: if test "X$HPUX_IA64_MODE" = X32; then
! 12834: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 12835: else
! 12836: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 12837: fi
! 12838: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 12839: ;;
! 12840: hppa*64*)
! 12841: shrext_cmds='.sl'
! 12842: hardcode_into_libs=yes
! 12843: dynamic_linker="$host_os dld.sl"
! 12844: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 12845: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 12846: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12847: soname_spec='${libname}${release}${shared_ext}$major'
! 12848: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 12849: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 12850: ;;
! 12851: *)
! 12852: shrext_cmds='.sl'
! 12853: dynamic_linker="$host_os dld.sl"
! 12854: shlibpath_var=SHLIB_PATH
! 12855: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 12856: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12857: soname_spec='${libname}${release}${shared_ext}$major'
! 12858: ;;
! 12859: esac
! 12860: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 12861: postinstall_cmds='chmod 555 $lib'
! 12862: ;;
! 12863:
! 12864: interix3*)
! 12865: version_type=linux
! 12866: need_lib_prefix=no
! 12867: need_version=no
! 12868: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 12869: soname_spec='${libname}${release}${shared_ext}$major'
! 12870: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 12871: shlibpath_var=LD_LIBRARY_PATH
! 12872: shlibpath_overrides_runpath=no
! 12873: hardcode_into_libs=yes
! 12874: ;;
! 12875:
! 12876: irix5* | irix6* | nonstopux*)
! 12877: case $host_os in
! 12878: nonstopux*) version_type=nonstopux ;;
! 12879: *)
! 12880: if test "$lt_cv_prog_gnu_ld" = yes; then
! 12881: version_type=linux
! 12882: else
! 12883: version_type=irix
! 12884: fi ;;
! 12885: esac
! 12886: need_lib_prefix=no
! 12887: need_version=no
! 12888: soname_spec='${libname}${release}${shared_ext}$major'
! 12889: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 12890: case $host_os in
! 12891: irix5* | nonstopux*)
! 12892: libsuff= shlibsuff=
! 12893: ;;
! 12894: *)
! 12895: case $LD in # libtool.m4 will add one of these switches to LD
! 12896: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 12897: libsuff= shlibsuff= libmagic=32-bit;;
! 12898: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 12899: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 12900: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 12901: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 12902: *) libsuff= shlibsuff= libmagic=never-match;;
! 12903: esac
! 12904: ;;
! 12905: esac
! 12906: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 12907: shlibpath_overrides_runpath=no
! 12908: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 12909: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 12910: hardcode_into_libs=yes
! 12911: ;;
! 12912:
! 12913: # No shared lib support for Linux oldld, aout, or coff.
! 12914: linux*oldld* | linux*aout* | linux*coff*)
! 12915: dynamic_linker=no
! 12916: ;;
! 12917:
! 12918: # This must be Linux ELF.
! 12919: linux*)
! 12920: version_type=linux
! 12921: need_lib_prefix=no
! 12922: need_version=no
! 12923: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12924: soname_spec='${libname}${release}${shared_ext}$major'
! 12925: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 12926: shlibpath_var=LD_LIBRARY_PATH
! 12927: shlibpath_overrides_runpath=no
! 12928: # This implies no fast_install, which is unacceptable.
! 12929: # Some rework will be needed to allow for fast_install
! 12930: # before this can be enabled.
! 12931: hardcode_into_libs=yes
! 12932:
! 12933: # Append ld.so.conf contents to the search path
! 12934: if test -f /etc/ld.so.conf; then
! 12935: 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' ' '`
! 12936: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 12937: fi
! 12938:
! 12939: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 12940: # powerpc, because MkLinux only supported shared libraries with the
! 12941: # GNU dynamic linker. Since this was broken with cross compilers,
! 12942: # most powerpc-linux boxes support dynamic linking these days and
! 12943: # people can always --disable-shared, the test was removed, and we
! 12944: # assume the GNU/Linux dynamic linker is in use.
! 12945: dynamic_linker='GNU/Linux ld.so'
! 12946: ;;
! 12947:
! 12948: knetbsd*-gnu)
! 12949: version_type=linux
! 12950: need_lib_prefix=no
! 12951: need_version=no
! 12952: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 12953: soname_spec='${libname}${release}${shared_ext}$major'
! 12954: shlibpath_var=LD_LIBRARY_PATH
! 12955: shlibpath_overrides_runpath=no
! 12956: hardcode_into_libs=yes
! 12957: dynamic_linker='GNU ld.so'
! 12958: ;;
! 12959:
! 12960: netbsd*)
! 12961: version_type=sunos
! 12962: need_lib_prefix=no
! 12963: need_version=no
! 12964: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 12965: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 12966: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 12967: dynamic_linker='NetBSD (a.out) ld.so'
! 12968: else
! 12969: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 12970: soname_spec='${libname}${release}${shared_ext}$major'
! 12971: dynamic_linker='NetBSD ld.elf_so'
! 12972: fi
! 12973: shlibpath_var=LD_LIBRARY_PATH
! 12974: shlibpath_overrides_runpath=yes
! 12975: hardcode_into_libs=yes
! 12976: ;;
! 12977:
! 12978: newsos6)
! 12979: version_type=linux
! 12980: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12981: shlibpath_var=LD_LIBRARY_PATH
! 12982: shlibpath_overrides_runpath=yes
! 12983: ;;
! 12984:
! 12985: nto-qnx*)
! 12986: version_type=linux
! 12987: need_lib_prefix=no
! 12988: need_version=no
! 12989: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12990: soname_spec='${libname}${release}${shared_ext}$major'
! 12991: shlibpath_var=LD_LIBRARY_PATH
! 12992: shlibpath_overrides_runpath=yes
! 12993: ;;
! 12994:
! 12995: openbsd*)
! 12996: version_type=sunos
! 12997: sys_lib_dlsearch_path_spec="/usr/lib"
! 12998: need_lib_prefix=no
! 12999: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 13000: case $host_os in
! 13001: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 13002: *) need_version=no ;;
! 13003: esac
! 13004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 13005: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 13006: shlibpath_var=LD_LIBRARY_PATH
! 13007: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 13008: case $host_os in
! 13009: openbsd2.[89] | openbsd2.[89].*)
! 13010: shlibpath_overrides_runpath=no
! 13011: ;;
! 13012: *)
! 13013: shlibpath_overrides_runpath=yes
! 13014: ;;
! 13015: esac
! 13016: else
! 13017: shlibpath_overrides_runpath=yes
! 13018: fi
! 13019: ;;
! 13020:
! 13021: os2*)
! 13022: libname_spec='$name'
! 13023: shrext_cmds=".dll"
! 13024: need_lib_prefix=no
! 13025: library_names_spec='$libname${shared_ext} $libname.a'
! 13026: dynamic_linker='OS/2 ld.exe'
! 13027: shlibpath_var=LIBPATH
! 13028: ;;
! 13029:
! 13030: osf3* | osf4* | osf5*)
! 13031: version_type=osf
! 13032: need_lib_prefix=no
! 13033: need_version=no
! 13034: soname_spec='${libname}${release}${shared_ext}$major'
! 13035: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 13036: shlibpath_var=LD_LIBRARY_PATH
! 13037: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 13038: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 13039: ;;
! 13040:
! 13041: solaris*)
! 13042: version_type=linux
! 13043: need_lib_prefix=no
! 13044: need_version=no
! 13045: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 13046: soname_spec='${libname}${release}${shared_ext}$major'
! 13047: shlibpath_var=LD_LIBRARY_PATH
! 13048: shlibpath_overrides_runpath=yes
! 13049: hardcode_into_libs=yes
! 13050: # ldd complains unless libraries are executable
! 13051: postinstall_cmds='chmod +x $lib'
! 13052: ;;
! 13053:
! 13054: sunos4*)
! 13055: version_type=sunos
! 13056: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 13057: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 13058: shlibpath_var=LD_LIBRARY_PATH
! 13059: shlibpath_overrides_runpath=yes
! 13060: if test "$with_gnu_ld" = yes; then
! 13061: need_lib_prefix=no
! 13062: fi
! 13063: need_version=yes
! 13064: ;;
! 13065:
! 13066: sysv4 | sysv4.3*)
! 13067: version_type=linux
! 13068: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 13069: soname_spec='${libname}${release}${shared_ext}$major'
! 13070: shlibpath_var=LD_LIBRARY_PATH
! 13071: case $host_vendor in
! 13072: sni)
! 13073: shlibpath_overrides_runpath=no
! 13074: need_lib_prefix=no
! 13075: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 13076: runpath_var=LD_RUN_PATH
! 13077: ;;
! 13078: siemens)
! 13079: need_lib_prefix=no
! 13080: ;;
! 13081: motorola)
! 13082: need_lib_prefix=no
! 13083: need_version=no
! 13084: shlibpath_overrides_runpath=no
! 13085: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 13086: ;;
! 13087: esac
! 13088: ;;
! 13089:
! 13090: sysv4*MP*)
! 13091: if test -d /usr/nec ;then
! 13092: version_type=linux
! 13093: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 13094: soname_spec='$libname${shared_ext}.$major'
! 13095: shlibpath_var=LD_LIBRARY_PATH
! 13096: fi
! 13097: ;;
! 13098:
! 13099: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 13100: version_type=freebsd-elf
! 13101: need_lib_prefix=no
! 13102: need_version=no
! 13103: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 13104: soname_spec='${libname}${release}${shared_ext}$major'
! 13105: shlibpath_var=LD_LIBRARY_PATH
! 13106: hardcode_into_libs=yes
! 13107: if test "$with_gnu_ld" = yes; then
! 13108: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 13109: shlibpath_overrides_runpath=no
! 13110: else
! 13111: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 13112: shlibpath_overrides_runpath=yes
! 13113: case $host_os in
! 13114: sco3.2v5*)
! 13115: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 13116: ;;
! 13117: esac
! 13118: fi
! 13119: sys_lib_dlsearch_path_spec='/usr/lib'
! 13120: ;;
! 13121:
! 13122: uts4*)
! 13123: version_type=linux
! 13124: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 13125: soname_spec='${libname}${release}${shared_ext}$major'
! 13126: shlibpath_var=LD_LIBRARY_PATH
! 13127: ;;
! 13128:
! 13129: *)
! 13130: dynamic_linker=no
! 13131: ;;
! 13132: esac
! 13133: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 13134: echo "${ECHO_T}$dynamic_linker" >&6; }
! 13135: test "$dynamic_linker" = no && can_build_shared=no
! 13136:
! 13137: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 13138: if test "$GCC" = yes; then
! 13139: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 13140: fi
! 13141:
! 13142: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 13143: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 13144: hardcode_action_CXX=
! 13145: if test -n "$hardcode_libdir_flag_spec_CXX" || \
! 13146: test -n "$runpath_var_CXX" || \
! 13147: test "X$hardcode_automatic_CXX" = "Xyes" ; then
! 13148:
! 13149: # We can hardcode non-existant directories.
! 13150: if test "$hardcode_direct_CXX" != no &&
! 13151: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 13152: # have to relink, otherwise we might link with an installed library
! 13153: # when we should be linking with a yet-to-be-installed one
! 13154: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
! 13155: test "$hardcode_minus_L_CXX" != no; then
! 13156: # Linking always hardcodes the temporary library directory.
! 13157: hardcode_action_CXX=relink
! 13158: else
! 13159: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 13160: hardcode_action_CXX=immediate
! 13161: fi
! 13162: else
! 13163: # We cannot hardcode anything, or else we can only hardcode existing
! 13164: # directories.
! 13165: hardcode_action_CXX=unsupported
! 13166: fi
! 13167: { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
! 13168: echo "${ECHO_T}$hardcode_action_CXX" >&6; }
! 13169:
! 13170: if test "$hardcode_action_CXX" = relink; then
! 13171: # Fast installation is not supported
! 13172: enable_fast_install=no
! 13173: elif test "$shlibpath_overrides_runpath" = yes ||
! 13174: test "$enable_shared" = no; then
! 13175: # Fast installation is not necessary
! 13176: enable_fast_install=needless
! 13177: fi
! 13178:
! 13179:
! 13180: # The else clause should only fire when bootstrapping the
! 13181: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 13182: # with your package, and you will get complaints that there are
! 13183: # no rules to generate ltmain.sh.
! 13184: if test -f "$ltmain"; then
! 13185: # See if we are running on zsh, and set the options which allow our commands through
! 13186: # without removal of \ escapes.
! 13187: if test -n "${ZSH_VERSION+set}" ; then
! 13188: setopt NO_GLOB_SUBST
! 13189: fi
! 13190: # Now quote all the things that may contain metacharacters while being
! 13191: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 13192: # variables and quote the copies for generation of the libtool script.
! 13193: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 13194: SED SHELL STRIP \
! 13195: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 13196: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 13197: deplibs_check_method reload_flag reload_cmds need_locks \
! 13198: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 13199: lt_cv_sys_global_symbol_to_c_name_address \
! 13200: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 13201: old_postinstall_cmds old_postuninstall_cmds \
! 13202: compiler_CXX \
! 13203: CC_CXX \
! 13204: LD_CXX \
! 13205: lt_prog_compiler_wl_CXX \
! 13206: lt_prog_compiler_pic_CXX \
! 13207: lt_prog_compiler_static_CXX \
! 13208: lt_prog_compiler_no_builtin_flag_CXX \
! 13209: export_dynamic_flag_spec_CXX \
! 13210: thread_safe_flag_spec_CXX \
! 13211: whole_archive_flag_spec_CXX \
! 13212: enable_shared_with_static_runtimes_CXX \
! 13213: old_archive_cmds_CXX \
! 13214: old_archive_from_new_cmds_CXX \
! 13215: predep_objects_CXX \
! 13216: postdep_objects_CXX \
! 13217: predeps_CXX \
! 13218: postdeps_CXX \
! 13219: compiler_lib_search_path_CXX \
! 13220: archive_cmds_CXX \
! 13221: archive_expsym_cmds_CXX \
! 13222: postinstall_cmds_CXX \
! 13223: postuninstall_cmds_CXX \
! 13224: old_archive_from_expsyms_cmds_CXX \
! 13225: allow_undefined_flag_CXX \
! 13226: no_undefined_flag_CXX \
! 13227: export_symbols_cmds_CXX \
! 13228: hardcode_libdir_flag_spec_CXX \
! 13229: hardcode_libdir_flag_spec_ld_CXX \
! 13230: hardcode_libdir_separator_CXX \
! 13231: hardcode_automatic_CXX \
! 13232: module_cmds_CXX \
! 13233: module_expsym_cmds_CXX \
! 13234: lt_cv_prog_compiler_c_o_CXX \
! 13235: exclude_expsyms_CXX \
! 13236: include_expsyms_CXX; do
! 13237:
! 13238: case $var in
! 13239: old_archive_cmds_CXX | \
! 13240: old_archive_from_new_cmds_CXX | \
! 13241: archive_cmds_CXX | \
! 13242: archive_expsym_cmds_CXX | \
! 13243: module_cmds_CXX | \
! 13244: module_expsym_cmds_CXX | \
! 13245: old_archive_from_expsyms_cmds_CXX | \
! 13246: export_symbols_cmds_CXX | \
! 13247: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 13248: postinstall_cmds | postuninstall_cmds | \
! 13249: old_postinstall_cmds | old_postuninstall_cmds | \
! 13250: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 13251: # Double-quote double-evaled strings.
! 13252: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 13253: ;;
! 13254: *)
! 13255: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 13256: ;;
! 13257: esac
! 13258: done
! 13259:
! 13260: case $lt_echo in
! 13261: *'\$0 --fallback-echo"')
! 13262: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 13263: ;;
! 13264: esac
! 13265:
! 13266: cfgfile="$ofile"
! 13267:
! 13268: cat <<__EOF__ >> "$cfgfile"
! 13269: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 13270:
! 13271: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 13272:
! 13273: # Shell to use when invoking shell scripts.
! 13274: SHELL=$lt_SHELL
! 13275:
! 13276: # Whether or not to build shared libraries.
! 13277: build_libtool_libs=$enable_shared
! 13278:
! 13279: # Whether or not to build static libraries.
! 13280: build_old_libs=$enable_static
! 13281:
! 13282: # Whether or not to add -lc for building shared libraries.
! 13283: build_libtool_need_lc=$archive_cmds_need_lc_CXX
! 13284:
! 13285: # Whether or not to disallow shared libs when runtime libs are static
! 13286: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
! 13287:
! 13288: # Whether or not to optimize for fast installation.
! 13289: fast_install=$enable_fast_install
! 13290:
! 13291: # The host system.
! 13292: host_alias=$host_alias
! 13293: host=$host
! 13294: host_os=$host_os
! 13295:
! 13296: # The build system.
! 13297: build_alias=$build_alias
! 13298: build=$build
! 13299: build_os=$build_os
! 13300:
! 13301: # An echo program that does not interpret backslashes.
! 13302: echo=$lt_echo
! 13303:
! 13304: # The archiver.
! 13305: AR=$lt_AR
! 13306: AR_FLAGS=$lt_AR_FLAGS
! 13307:
! 13308: # A C compiler.
! 13309: LTCC=$lt_LTCC
! 13310:
! 13311: # LTCC compiler flags.
! 13312: LTCFLAGS=$lt_LTCFLAGS
! 13313:
! 13314: # A language-specific compiler.
! 13315: CC=$lt_compiler_CXX
! 13316:
! 13317: # Is the compiler the GNU C compiler?
! 13318: with_gcc=$GCC_CXX
! 13319:
! 13320: # An ERE matcher.
! 13321: EGREP=$lt_EGREP
! 13322:
! 13323: # The linker used to build libraries.
! 13324: LD=$lt_LD_CXX
! 13325:
! 13326: # Whether we need hard or soft links.
! 13327: LN_S=$lt_LN_S
! 13328:
! 13329: # A BSD-compatible nm program.
! 13330: NM=$lt_NM
! 13331:
! 13332: # A symbol stripping program
! 13333: STRIP=$lt_STRIP
! 13334:
! 13335: # Used to examine libraries when file_magic_cmd begins "file"
! 13336: MAGIC_CMD=$MAGIC_CMD
! 13337:
! 13338: # Used on cygwin: DLL creation program.
! 13339: DLLTOOL="$DLLTOOL"
! 13340:
! 13341: # Used on cygwin: object dumper.
! 13342: OBJDUMP="$OBJDUMP"
! 13343:
! 13344: # Used on cygwin: assembler.
! 13345: AS="$AS"
! 13346:
! 13347: # The name of the directory that contains temporary libtool files.
! 13348: objdir=$objdir
! 13349:
! 13350: # How to create reloadable object files.
! 13351: reload_flag=$lt_reload_flag
! 13352: reload_cmds=$lt_reload_cmds
! 13353:
! 13354: # How to pass a linker flag through the compiler.
! 13355: wl=$lt_lt_prog_compiler_wl_CXX
! 13356:
! 13357: # Object file suffix (normally "o").
! 13358: objext="$ac_objext"
! 13359:
! 13360: # Old archive suffix (normally "a").
! 13361: libext="$libext"
! 13362:
! 13363: # Shared library suffix (normally ".so").
! 13364: shrext_cmds='$shrext_cmds'
! 13365:
! 13366: # Executable file suffix (normally "").
! 13367: exeext="$exeext"
! 13368:
! 13369: # Additional compiler flags for building library objects.
! 13370: pic_flag=$lt_lt_prog_compiler_pic_CXX
! 13371: pic_mode=$pic_mode
! 13372:
! 13373: # What is the maximum length of a command?
! 13374: max_cmd_len=$lt_cv_sys_max_cmd_len
! 13375:
! 13376: # Does compiler simultaneously support -c and -o options?
! 13377: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
! 13378:
! 13379: # Must we lock files when doing compilation?
! 13380: need_locks=$lt_need_locks
! 13381:
! 13382: # Do we need the lib prefix for modules?
! 13383: need_lib_prefix=$need_lib_prefix
! 13384:
! 13385: # Do we need a version for libraries?
! 13386: need_version=$need_version
! 13387:
! 13388: # Whether dlopen is supported.
! 13389: dlopen_support=$enable_dlopen
! 13390:
! 13391: # Whether dlopen of programs is supported.
! 13392: dlopen_self=$enable_dlopen_self
! 13393:
! 13394: # Whether dlopen of statically linked programs is supported.
! 13395: dlopen_self_static=$enable_dlopen_self_static
! 13396:
! 13397: # Compiler flag to prevent dynamic linking.
! 13398: link_static_flag=$lt_lt_prog_compiler_static_CXX
! 13399:
! 13400: # Compiler flag to turn off builtin functions.
! 13401: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
! 13402:
! 13403: # Compiler flag to allow reflexive dlopens.
! 13404: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
! 13405:
! 13406: # Compiler flag to generate shared objects directly from archives.
! 13407: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
! 13408:
! 13409: # Compiler flag to generate thread-safe objects.
! 13410: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
! 13411:
! 13412: # Library versioning type.
! 13413: version_type=$version_type
! 13414:
! 13415: # Format of library name prefix.
! 13416: libname_spec=$lt_libname_spec
! 13417:
! 13418: # List of archive names. First name is the real one, the rest are links.
! 13419: # The last name is the one that the linker finds with -lNAME.
! 13420: library_names_spec=$lt_library_names_spec
! 13421:
! 13422: # The coded name of the library, if different from the real name.
! 13423: soname_spec=$lt_soname_spec
! 13424:
! 13425: # Commands used to build and install an old-style archive.
! 13426: RANLIB=$lt_RANLIB
! 13427: old_archive_cmds=$lt_old_archive_cmds_CXX
! 13428: old_postinstall_cmds=$lt_old_postinstall_cmds
! 13429: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 13430:
! 13431: # Create an old-style archive from a shared archive.
! 13432: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
! 13433:
! 13434: # Create a temporary old-style archive to link instead of a shared archive.
! 13435: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
! 13436:
! 13437: # Commands used to build and install a shared archive.
! 13438: archive_cmds=$lt_archive_cmds_CXX
! 13439: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
! 13440: postinstall_cmds=$lt_postinstall_cmds
! 13441: postuninstall_cmds=$lt_postuninstall_cmds
! 13442:
! 13443: # Commands used to build a loadable module (assumed same as above if empty)
! 13444: module_cmds=$lt_module_cmds_CXX
! 13445: module_expsym_cmds=$lt_module_expsym_cmds_CXX
! 13446:
! 13447: # Commands to strip libraries.
! 13448: old_striplib=$lt_old_striplib
! 13449: striplib=$lt_striplib
! 13450:
! 13451: # Dependencies to place before the objects being linked to create a
! 13452: # shared library.
! 13453: predep_objects=$lt_predep_objects_CXX
! 13454:
! 13455: # Dependencies to place after the objects being linked to create a
! 13456: # shared library.
! 13457: postdep_objects=$lt_postdep_objects_CXX
! 13458:
! 13459: # Dependencies to place before the objects being linked to create a
! 13460: # shared library.
! 13461: predeps=$lt_predeps_CXX
! 13462:
! 13463: # Dependencies to place after the objects being linked to create a
! 13464: # shared library.
! 13465: postdeps=$lt_postdeps_CXX
! 13466:
! 13467: # The library search path used internally by the compiler when linking
! 13468: # a shared library.
! 13469: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
! 13470:
! 13471: # Method to check whether dependent libraries are shared objects.
! 13472: deplibs_check_method=$lt_deplibs_check_method
! 13473:
! 13474: # Command to use when deplibs_check_method == file_magic.
! 13475: file_magic_cmd=$lt_file_magic_cmd
! 13476:
! 13477: # Flag that allows shared libraries with undefined symbols to be built.
! 13478: allow_undefined_flag=$lt_allow_undefined_flag_CXX
! 13479:
! 13480: # Flag that forces no undefined symbols.
! 13481: no_undefined_flag=$lt_no_undefined_flag_CXX
! 13482:
! 13483: # Commands used to finish a libtool library installation in a directory.
! 13484: finish_cmds=$lt_finish_cmds
! 13485:
! 13486: # Same as above, but a single script fragment to be evaled but not shown.
! 13487: finish_eval=$lt_finish_eval
! 13488:
! 13489: # Take the output of nm and produce a listing of raw symbols and C names.
! 13490: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 13491:
! 13492: # Transform the output of nm in a proper C declaration
! 13493: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 13494:
! 13495: # Transform the output of nm in a C name address pair
! 13496: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 13497:
! 13498: # This is the shared library runtime path variable.
! 13499: runpath_var=$runpath_var
! 13500:
! 13501: # This is the shared library path variable.
! 13502: shlibpath_var=$shlibpath_var
! 13503:
! 13504: # Is shlibpath searched before the hard-coded library search path?
! 13505: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 13506:
! 13507: # How to hardcode a shared library path into an executable.
! 13508: hardcode_action=$hardcode_action_CXX
! 13509:
! 13510: # Whether we should hardcode library paths into libraries.
! 13511: hardcode_into_libs=$hardcode_into_libs
! 13512:
! 13513: # Flag to hardcode \$libdir into a binary during linking.
! 13514: # This must work even if \$libdir does not exist.
! 13515: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
! 13516:
! 13517: # If ld is used when linking, flag to hardcode \$libdir into
! 13518: # a binary during linking. This must work even if \$libdir does
! 13519: # not exist.
! 13520: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
! 13521:
! 13522: # Whether we need a single -rpath flag with a separated argument.
! 13523: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
! 13524:
! 13525: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 13526: # resulting binary.
! 13527: hardcode_direct=$hardcode_direct_CXX
! 13528:
! 13529: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 13530: # resulting binary.
! 13531: hardcode_minus_L=$hardcode_minus_L_CXX
! 13532:
! 13533: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 13534: # the resulting binary.
! 13535: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
! 13536:
! 13537: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 13538: # and all subsequent libraries and executables linked against it.
! 13539: hardcode_automatic=$hardcode_automatic_CXX
! 13540:
! 13541: # Variables whose values should be saved in libtool wrapper scripts and
! 13542: # restored at relink time.
! 13543: variables_saved_for_relink="$variables_saved_for_relink"
! 13544:
! 13545: # Whether libtool must link a program against all its dependency libraries.
! 13546: link_all_deplibs=$link_all_deplibs_CXX
! 13547:
! 13548: # Compile-time system search path for libraries
! 13549: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 13550:
! 13551: # Run-time system search path for libraries
! 13552: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 13553:
! 13554: # Fix the shell variable \$srcfile for the compiler.
! 13555: fix_srcfile_path="$fix_srcfile_path_CXX"
! 13556:
! 13557: # Set to yes if exported symbols are required.
! 13558: always_export_symbols=$always_export_symbols_CXX
! 13559:
! 13560: # The commands to list exported symbols.
! 13561: export_symbols_cmds=$lt_export_symbols_cmds_CXX
! 13562:
! 13563: # The commands to extract the exported symbol list from a shared archive.
! 13564: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 13565:
! 13566: # Symbols that should not be listed in the preloaded symbols.
! 13567: exclude_expsyms=$lt_exclude_expsyms_CXX
! 13568:
! 13569: # Symbols that must always be exported.
! 13570: include_expsyms=$lt_include_expsyms_CXX
! 13571:
! 13572: # ### END LIBTOOL TAG CONFIG: $tagname
! 13573:
! 13574: __EOF__
! 13575:
! 13576:
! 13577: else
! 13578: # If there is no Makefile yet, we rely on a make rule to execute
! 13579: # `config.status --recheck' to rerun these tests and create the
! 13580: # libtool script then.
! 13581: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 13582: if test -f "$ltmain_in"; then
! 13583: test -f Makefile && make "$ltmain"
! 13584: fi
! 13585: fi
! 13586:
! 13587:
! 13588: ac_ext=c
! 13589: ac_cpp='$CPP $CPPFLAGS'
! 13590: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 13591: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 13592: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 13593:
! 13594: CC=$lt_save_CC
! 13595: LDCXX=$LD
! 13596: LD=$lt_save_LD
! 13597: GCC=$lt_save_GCC
! 13598: with_gnu_ldcxx=$with_gnu_ld
! 13599: with_gnu_ld=$lt_save_with_gnu_ld
! 13600: lt_cv_path_LDCXX=$lt_cv_path_LD
! 13601: lt_cv_path_LD=$lt_save_path_LD
! 13602: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
! 13603: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
! 13604:
! 13605: else
! 13606: tagname=""
! 13607: fi
! 13608: ;;
! 13609:
! 13610: F77)
! 13611: if test -n "$F77" && test "X$F77" != "Xno"; then
! 13612:
! 13613: ac_ext=f
! 13614: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
! 13615: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 13616: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
! 13617:
! 13618:
! 13619: archive_cmds_need_lc_F77=no
! 13620: allow_undefined_flag_F77=
! 13621: always_export_symbols_F77=no
! 13622: archive_expsym_cmds_F77=
! 13623: export_dynamic_flag_spec_F77=
! 13624: hardcode_direct_F77=no
! 13625: hardcode_libdir_flag_spec_F77=
! 13626: hardcode_libdir_flag_spec_ld_F77=
! 13627: hardcode_libdir_separator_F77=
! 13628: hardcode_minus_L_F77=no
! 13629: hardcode_automatic_F77=no
! 13630: module_cmds_F77=
! 13631: module_expsym_cmds_F77=
! 13632: link_all_deplibs_F77=unknown
! 13633: old_archive_cmds_F77=$old_archive_cmds
! 13634: no_undefined_flag_F77=
! 13635: whole_archive_flag_spec_F77=
! 13636: enable_shared_with_static_runtimes_F77=no
! 13637:
! 13638: # Source file extension for f77 test sources.
! 13639: ac_ext=f
! 13640:
! 13641: # Object file extension for compiled f77 test sources.
! 13642: objext=o
! 13643: objext_F77=$objext
! 13644:
! 13645: # Code to be used in simple compile tests
! 13646: lt_simple_compile_test_code=" subroutine t\n return\n end\n"
! 13647:
! 13648: # Code to be used in simple link tests
! 13649: lt_simple_link_test_code=" program t\n end\n"
! 13650:
! 13651: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 13652:
! 13653: # If no C compiler was specified, use CC.
! 13654: LTCC=${LTCC-"$CC"}
! 13655:
! 13656: # If no C compiler flags were specified, use CFLAGS.
! 13657: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 13658:
! 13659: # Allow CC to be a program name with arguments.
! 13660: compiler=$CC
! 13661:
! 13662:
! 13663: # save warnings/boilerplate of simple test code
! 13664: ac_outfile=conftest.$ac_objext
! 13665: printf "$lt_simple_compile_test_code" >conftest.$ac_ext
! 13666: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 13667: _lt_compiler_boilerplate=`cat conftest.err`
! 13668: $rm conftest*
! 13669:
! 13670: ac_outfile=conftest.$ac_objext
! 13671: printf "$lt_simple_link_test_code" >conftest.$ac_ext
! 13672: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 13673: _lt_linker_boilerplate=`cat conftest.err`
! 13674: $rm conftest*
! 13675:
! 13676:
! 13677: # Allow CC to be a program name with arguments.
! 13678: lt_save_CC="$CC"
! 13679: CC=${F77-"f77"}
! 13680: compiler=$CC
! 13681: compiler_F77=$CC
! 13682: for cc_temp in $compiler""; do
! 13683: case $cc_temp in
! 13684: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 13685: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 13686: \-*) ;;
! 13687: *) break;;
! 13688: esac
! 13689: done
! 13690: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 13691:
! 13692:
! 13693: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 13694: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 13695: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 13696: echo "${ECHO_T}$can_build_shared" >&6; }
! 13697:
! 13698: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 13699: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
! 13700: test "$can_build_shared" = "no" && enable_shared=no
! 13701:
! 13702: # On AIX, shared libraries and static libraries use the same namespace, and
! 13703: # are all built from PIC.
! 13704: case $host_os in
! 13705: aix3*)
! 13706: test "$enable_shared" = yes && enable_static=no
! 13707: if test -n "$RANLIB"; then
! 13708: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 13709: postinstall_cmds='$RANLIB $lib'
! 13710: fi
! 13711: ;;
! 13712: aix4* | aix5*)
! 13713: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 13714: test "$enable_shared" = yes && enable_static=no
! 13715: fi
! 13716: ;;
! 13717: esac
! 13718: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 13719: echo "${ECHO_T}$enable_shared" >&6; }
! 13720:
! 13721: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 13722: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
! 13723: # Make sure either enable_shared or enable_static is yes.
! 13724: test "$enable_shared" = yes || enable_static=yes
! 13725: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 13726: echo "${ECHO_T}$enable_static" >&6; }
! 13727:
! 13728: GCC_F77="$G77"
! 13729: LD_F77="$LD"
! 13730:
! 13731: lt_prog_compiler_wl_F77=
! 13732: lt_prog_compiler_pic_F77=
! 13733: lt_prog_compiler_static_F77=
! 13734:
! 13735: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 13736: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
! 13737:
! 13738: if test "$GCC" = yes; then
! 13739: lt_prog_compiler_wl_F77='-Wl,'
! 13740: lt_prog_compiler_static_F77='-static'
! 13741:
! 13742: case $host_os in
! 13743: aix*)
! 13744: # All AIX code is PIC.
! 13745: if test "$host_cpu" = ia64; then
! 13746: # AIX 5 now supports IA64 processor
! 13747: lt_prog_compiler_static_F77='-Bstatic'
! 13748: fi
! 13749: ;;
! 13750:
! 13751: amigaos*)
! 13752: # FIXME: we need at least 68020 code to build shared libraries, but
! 13753: # adding the `-m68020' flag to GCC prevents building anything better,
! 13754: # like `-m68040'.
! 13755: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
! 13756: ;;
! 13757:
! 13758: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 13759: # PIC is the default for these OSes.
! 13760: ;;
! 13761:
! 13762: mingw* | pw32* | os2*)
! 13763: # This hack is so that the source file can tell whether it is being
! 13764: # built for inclusion in a dll (and should export symbols for example).
! 13765: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
! 13766: ;;
! 13767:
! 13768: darwin* | rhapsody*)
! 13769: # PIC is the default on this platform
! 13770: # Common symbols not allowed in MH_DYLIB files
! 13771: lt_prog_compiler_pic_F77='-fno-common'
! 13772: ;;
! 13773:
! 13774: interix3*)
! 13775: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 13776: # Instead, we relocate shared libraries at runtime.
! 13777: ;;
! 13778:
! 13779: msdosdjgpp*)
! 13780: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 13781: # on systems that don't support them.
! 13782: lt_prog_compiler_can_build_shared_F77=no
! 13783: enable_shared=no
! 13784: ;;
! 13785:
! 13786: sysv4*MP*)
! 13787: if test -d /usr/nec; then
! 13788: lt_prog_compiler_pic_F77=-Kconform_pic
! 13789: fi
! 13790: ;;
! 13791:
! 13792: hpux*)
! 13793: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 13794: # not for PA HP-UX.
! 13795: case $host_cpu in
! 13796: hppa*64*|ia64*)
! 13797: # +Z the default
! 13798: ;;
! 13799: *)
! 13800: lt_prog_compiler_pic_F77='-fPIC'
! 13801: ;;
! 13802: esac
! 13803: ;;
! 13804:
! 13805: *)
! 13806: lt_prog_compiler_pic_F77='-fPIC'
! 13807: ;;
! 13808: esac
! 13809: else
! 13810: # PORTME Check for flag to pass linker flags through the system compiler.
! 13811: case $host_os in
! 13812: aix*)
! 13813: lt_prog_compiler_wl_F77='-Wl,'
! 13814: if test "$host_cpu" = ia64; then
! 13815: # AIX 5 now supports IA64 processor
! 13816: lt_prog_compiler_static_F77='-Bstatic'
! 13817: else
! 13818: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
! 13819: fi
! 13820: ;;
! 13821: darwin*)
! 13822: # PIC is the default on this platform
! 13823: # Common symbols not allowed in MH_DYLIB files
! 13824: case $cc_basename in
! 13825: xlc*)
! 13826: lt_prog_compiler_pic_F77='-qnocommon'
! 13827: lt_prog_compiler_wl_F77='-Wl,'
! 13828: ;;
! 13829: esac
! 13830: ;;
! 13831:
! 13832: mingw* | pw32* | os2*)
! 13833: # This hack is so that the source file can tell whether it is being
! 13834: # built for inclusion in a dll (and should export symbols for example).
! 13835: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
! 13836: ;;
! 13837:
! 13838: hpux9* | hpux10* | hpux11*)
! 13839: lt_prog_compiler_wl_F77='-Wl,'
! 13840: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 13841: # not for PA HP-UX.
! 13842: case $host_cpu in
! 13843: hppa*64*|ia64*)
! 13844: # +Z the default
! 13845: ;;
! 13846: *)
! 13847: lt_prog_compiler_pic_F77='+Z'
! 13848: ;;
! 13849: esac
! 13850: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 13851: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
! 13852: ;;
! 13853:
! 13854: irix5* | irix6* | nonstopux*)
! 13855: lt_prog_compiler_wl_F77='-Wl,'
! 13856: # PIC (with -KPIC) is the default.
! 13857: lt_prog_compiler_static_F77='-non_shared'
! 13858: ;;
! 13859:
! 13860: newsos6)
! 13861: lt_prog_compiler_pic_F77='-KPIC'
! 13862: lt_prog_compiler_static_F77='-Bstatic'
! 13863: ;;
! 13864:
! 13865: linux*)
! 13866: case $cc_basename in
! 13867: icc* | ecc*)
! 13868: lt_prog_compiler_wl_F77='-Wl,'
! 13869: lt_prog_compiler_pic_F77='-KPIC'
! 13870: lt_prog_compiler_static_F77='-static'
! 13871: ;;
! 13872: pgcc* | pgf77* | pgf90* | pgf95*)
! 13873: # Portland Group compilers (*not* the Pentium gcc compiler,
! 13874: # which looks to be a dead project)
! 13875: lt_prog_compiler_wl_F77='-Wl,'
! 13876: lt_prog_compiler_pic_F77='-fpic'
! 13877: lt_prog_compiler_static_F77='-Bstatic'
! 13878: ;;
! 13879: ccc*)
! 13880: lt_prog_compiler_wl_F77='-Wl,'
! 13881: # All Alpha code is PIC.
! 13882: lt_prog_compiler_static_F77='-non_shared'
! 13883: ;;
! 13884: esac
! 13885: ;;
! 13886:
! 13887: osf3* | osf4* | osf5*)
! 13888: lt_prog_compiler_wl_F77='-Wl,'
! 13889: # All OSF/1 code is PIC.
! 13890: lt_prog_compiler_static_F77='-non_shared'
! 13891: ;;
! 13892:
! 13893: solaris*)
! 13894: lt_prog_compiler_pic_F77='-KPIC'
! 13895: lt_prog_compiler_static_F77='-Bstatic'
! 13896: case $cc_basename in
! 13897: f77* | f90* | f95*)
! 13898: lt_prog_compiler_wl_F77='-Qoption ld ';;
! 13899: *)
! 13900: lt_prog_compiler_wl_F77='-Wl,';;
! 13901: esac
! 13902: ;;
! 13903:
! 13904: sunos4*)
! 13905: lt_prog_compiler_wl_F77='-Qoption ld '
! 13906: lt_prog_compiler_pic_F77='-PIC'
! 13907: lt_prog_compiler_static_F77='-Bstatic'
! 13908: ;;
! 13909:
! 13910: sysv4 | sysv4.2uw2* | sysv4.3*)
! 13911: lt_prog_compiler_wl_F77='-Wl,'
! 13912: lt_prog_compiler_pic_F77='-KPIC'
! 13913: lt_prog_compiler_static_F77='-Bstatic'
! 13914: ;;
! 13915:
! 13916: sysv4*MP*)
! 13917: if test -d /usr/nec ;then
! 13918: lt_prog_compiler_pic_F77='-Kconform_pic'
! 13919: lt_prog_compiler_static_F77='-Bstatic'
! 13920: fi
! 13921: ;;
! 13922:
! 13923: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 13924: lt_prog_compiler_wl_F77='-Wl,'
! 13925: lt_prog_compiler_pic_F77='-KPIC'
! 13926: lt_prog_compiler_static_F77='-Bstatic'
! 13927: ;;
! 13928:
! 13929: unicos*)
! 13930: lt_prog_compiler_wl_F77='-Wl,'
! 13931: lt_prog_compiler_can_build_shared_F77=no
! 13932: ;;
! 13933:
! 13934: uts4*)
! 13935: lt_prog_compiler_pic_F77='-pic'
! 13936: lt_prog_compiler_static_F77='-Bstatic'
! 13937: ;;
! 13938:
! 13939: *)
! 13940: lt_prog_compiler_can_build_shared_F77=no
! 13941: ;;
! 13942: esac
! 13943: fi
! 13944:
! 13945: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
! 13946: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
! 13947:
! 13948: #
! 13949: # Check to make sure the PIC flag actually works.
! 13950: #
! 13951: if test -n "$lt_prog_compiler_pic_F77"; then
! 13952:
! 13953: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
! 13954: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
! 13955: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
! 13956: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13957: else
! 13958: lt_prog_compiler_pic_works_F77=no
! 13959: ac_outfile=conftest.$ac_objext
! 13960: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 13961: lt_compiler_flag="$lt_prog_compiler_pic_F77"
! 13962: # Insert the option either (1) after the last *FLAGS variable, or
! 13963: # (2) before a word containing "conftest.", or (3) at the end.
! 13964: # Note that $ac_compile itself does not contain backslashes and begins
! 13965: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 13966: # The option is referenced via a variable to avoid confusing sed.
! 13967: lt_compile=`echo "$ac_compile" | $SED \
! 13968: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 13969: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 13970: -e 's:$: $lt_compiler_flag:'`
! 13971: (eval echo "\"\$as_me:13971: $lt_compile\"" >&5)
! 13972: (eval "$lt_compile" 2>conftest.err)
! 13973: ac_status=$?
! 13974: cat conftest.err >&5
! 13975: echo "$as_me:13975: \$? = $ac_status" >&5
! 13976: if (exit $ac_status) && test -s "$ac_outfile"; then
! 13977: # The compiler can only warn and ignore the option if not recognized
! 13978: # So say no if there are warnings other than the usual output.
! 13979: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 13980: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 13981: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 13982: lt_prog_compiler_pic_works_F77=yes
! 13983: fi
! 13984: fi
! 13985: $rm conftest*
! 13986:
! 13987: fi
! 13988: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
! 13989: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
! 13990:
! 13991: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
! 13992: case $lt_prog_compiler_pic_F77 in
! 13993: "" | " "*) ;;
! 13994: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
! 13995: esac
! 13996: else
! 13997: lt_prog_compiler_pic_F77=
! 13998: lt_prog_compiler_can_build_shared_F77=no
! 13999: fi
! 14000:
! 14001: fi
! 14002: case $host_os in
! 14003: # For platforms which do not support PIC, -DPIC is meaningless:
! 14004: *djgpp*)
! 14005: lt_prog_compiler_pic_F77=
! 14006: ;;
! 14007: *)
! 14008: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
! 14009: ;;
! 14010: esac
! 14011:
! 14012: #
! 14013: # Check to make sure the static flag actually works.
! 14014: #
! 14015: wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
! 14016: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 14017: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 14018: if test "${lt_prog_compiler_static_works_F77+set}" = set; then
! 14019: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14020: else
! 14021: lt_prog_compiler_static_works_F77=no
! 14022: save_LDFLAGS="$LDFLAGS"
! 14023: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 14024: printf "$lt_simple_link_test_code" > conftest.$ac_ext
! 14025: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 14026: # The linker can only warn and ignore the option if not recognized
! 14027: # So say no if there are warnings
! 14028: if test -s conftest.err; then
! 14029: # Append any errors to the config.log.
! 14030: cat conftest.err 1>&5
! 14031: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 14032: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 14033: if diff conftest.exp conftest.er2 >/dev/null; then
! 14034: lt_prog_compiler_static_works_F77=yes
! 14035: fi
! 14036: else
! 14037: lt_prog_compiler_static_works_F77=yes
! 14038: fi
! 14039: fi
! 14040: $rm conftest*
! 14041: LDFLAGS="$save_LDFLAGS"
! 14042:
! 14043: fi
! 14044: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
! 14045: echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
! 14046:
! 14047: if test x"$lt_prog_compiler_static_works_F77" = xyes; then
! 14048: :
! 14049: else
! 14050: lt_prog_compiler_static_F77=
! 14051: fi
! 14052:
! 14053:
! 14054: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14055: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 14056: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
! 14057: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14058: else
! 14059: lt_cv_prog_compiler_c_o_F77=no
! 14060: $rm -r conftest 2>/dev/null
! 14061: mkdir conftest
! 14062: cd conftest
! 14063: mkdir out
! 14064: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 14065:
! 14066: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 14067: # Insert the option either (1) after the last *FLAGS variable, or
! 14068: # (2) before a word containing "conftest.", or (3) at the end.
! 14069: # Note that $ac_compile itself does not contain backslashes and begins
! 14070: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 14071: lt_compile=`echo "$ac_compile" | $SED \
! 14072: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 14073: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 14074: -e 's:$: $lt_compiler_flag:'`
! 14075: (eval echo "\"\$as_me:14075: $lt_compile\"" >&5)
! 14076: (eval "$lt_compile" 2>out/conftest.err)
! 14077: ac_status=$?
! 14078: cat out/conftest.err >&5
! 14079: echo "$as_me:14079: \$? = $ac_status" >&5
! 14080: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 14081: then
! 14082: # The compiler can only warn and ignore the option if not recognized
! 14083: # So say no if there are warnings
! 14084: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 14085: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 14086: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
! 14087: lt_cv_prog_compiler_c_o_F77=yes
! 14088: fi
! 14089: fi
! 14090: chmod u+w . 2>&5
! 14091: $rm conftest*
! 14092: # SGI C++ compiler will create directory out/ii_files/ for
! 14093: # template instantiation
! 14094: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 14095: $rm out/* && rmdir out
! 14096: cd ..
! 14097: rmdir conftest
! 14098: $rm conftest*
! 14099:
! 14100: fi
! 14101: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
! 14102: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
! 14103:
! 14104:
! 14105: hard_links="nottested"
! 14106: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
! 14107: # do not overwrite the value of need_locks provided by the user
! 14108: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 14109: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
! 14110: hard_links=yes
! 14111: $rm conftest*
! 14112: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 14113: touch conftest.a
! 14114: ln conftest.a conftest.b 2>&5 || hard_links=no
! 14115: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 14116: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 14117: echo "${ECHO_T}$hard_links" >&6; }
! 14118: if test "$hard_links" = no; then
! 14119: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 14120: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 14121: need_locks=warn
! 14122: fi
! 14123: else
! 14124: need_locks=no
! 14125: fi
! 14126:
! 14127: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 14128: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
! 14129:
! 14130: runpath_var=
! 14131: allow_undefined_flag_F77=
! 14132: enable_shared_with_static_runtimes_F77=no
! 14133: archive_cmds_F77=
! 14134: archive_expsym_cmds_F77=
! 14135: old_archive_From_new_cmds_F77=
! 14136: old_archive_from_expsyms_cmds_F77=
! 14137: export_dynamic_flag_spec_F77=
! 14138: whole_archive_flag_spec_F77=
! 14139: thread_safe_flag_spec_F77=
! 14140: hardcode_libdir_flag_spec_F77=
! 14141: hardcode_libdir_flag_spec_ld_F77=
! 14142: hardcode_libdir_separator_F77=
! 14143: hardcode_direct_F77=no
! 14144: hardcode_minus_L_F77=no
! 14145: hardcode_shlibpath_var_F77=unsupported
! 14146: link_all_deplibs_F77=unknown
! 14147: hardcode_automatic_F77=no
! 14148: module_cmds_F77=
! 14149: module_expsym_cmds_F77=
! 14150: always_export_symbols_F77=no
! 14151: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 14152: # include_expsyms should be a list of space-separated symbols to be *always*
! 14153: # included in the symbol list
! 14154: include_expsyms_F77=
! 14155: # exclude_expsyms can be an extended regexp of symbols to exclude
! 14156: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 14157: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 14158: # as well as any symbol that contains `d'.
! 14159: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
! 14160: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 14161: # platforms (ab)use it in PIC code, but their linkers get confused if
! 14162: # the symbol is explicitly referenced. Since portable code cannot
! 14163: # rely on this symbol name, it's probably fine to never include it in
! 14164: # preloaded symbol tables.
! 14165: extract_expsyms_cmds=
! 14166: # Just being paranoid about ensuring that cc_basename is set.
! 14167: for cc_temp in $compiler""; do
! 14168: case $cc_temp in
! 14169: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 14170: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 14171: \-*) ;;
! 14172: *) break;;
! 14173: esac
! 14174: done
! 14175: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 14176:
! 14177: case $host_os in
! 14178: cygwin* | mingw* | pw32*)
! 14179: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 14180: # When not using gcc, we currently assume that we are using
! 14181: # Microsoft Visual C++.
! 14182: if test "$GCC" != yes; then
! 14183: with_gnu_ld=no
! 14184: fi
! 14185: ;;
! 14186: interix*)
! 14187: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 14188: with_gnu_ld=yes
! 14189: ;;
! 14190: openbsd*)
! 14191: with_gnu_ld=no
! 14192: ;;
! 14193: esac
! 14194:
! 14195: ld_shlibs_F77=yes
! 14196: if test "$with_gnu_ld" = yes; then
! 14197: # If archive_cmds runs LD, not CC, wlarc should be empty
! 14198: wlarc='${wl}'
! 14199:
! 14200: # Set some defaults for GNU ld with shared library support. These
! 14201: # are reset later if shared libraries are not supported. Putting them
! 14202: # here allows them to be overridden if necessary.
! 14203: runpath_var=LD_RUN_PATH
! 14204: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
! 14205: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
! 14206: # ancient GNU ld didn't support --whole-archive et. al.
! 14207: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 14208: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 14209: else
! 14210: whole_archive_flag_spec_F77=
! 14211: fi
! 14212: supports_anon_versioning=no
! 14213: case `$LD -v 2>/dev/null` in
! 14214: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 14215: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 14216: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 14217: *\ 2.11.*) ;; # other 2.11 versions
! 14218: *) supports_anon_versioning=yes ;;
! 14219: esac
! 14220:
! 14221: # See if GNU ld supports shared libraries.
! 14222: case $host_os in
! 14223: aix3* | aix4* | aix5*)
! 14224: # On AIX/PPC, the GNU linker is very broken
! 14225: if test "$host_cpu" != ia64; then
! 14226: ld_shlibs_F77=no
! 14227: cat <<EOF 1>&2
! 14228:
! 14229: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 14230: *** to be unable to reliably create shared libraries on AIX.
! 14231: *** Therefore, libtool is disabling shared libraries support. If you
! 14232: *** really care for shared libraries, you may want to modify your PATH
! 14233: *** so that a non-GNU linker is found, and then restart.
! 14234:
! 14235: EOF
! 14236: fi
! 14237: ;;
! 14238:
! 14239: amigaos*)
! 14240: 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)'
! 14241: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14242: hardcode_minus_L_F77=yes
! 14243:
! 14244: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 14245: # that the semantics of dynamic libraries on AmigaOS, at least up
! 14246: # to version 4, is to share data among multiple programs linked
! 14247: # with the same dynamic library. Since this doesn't match the
! 14248: # behavior of shared libraries on other platforms, we can't use
! 14249: # them.
! 14250: ld_shlibs_F77=no
! 14251: ;;
! 14252:
! 14253: beos*)
! 14254: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14255: allow_undefined_flag_F77=unsupported
! 14256: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 14257: # support --undefined. This deserves some investigation. FIXME
! 14258: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14259: else
! 14260: ld_shlibs_F77=no
! 14261: fi
! 14262: ;;
! 14263:
! 14264: cygwin* | mingw* | pw32*)
! 14265: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
! 14266: # as there is no search path for DLLs.
! 14267: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14268: allow_undefined_flag_F77=unsupported
! 14269: always_export_symbols_F77=no
! 14270: enable_shared_with_static_runtimes_F77=yes
! 14271: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 14272:
! 14273: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 14274: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 14275: # If the export-symbols file already is a .def file (1st line
! 14276: # is EXPORTS), use it as is; otherwise, prepend...
! 14277: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 14278: cp $export_symbols $output_objdir/$soname.def;
! 14279: else
! 14280: echo EXPORTS > $output_objdir/$soname.def;
! 14281: cat $export_symbols >> $output_objdir/$soname.def;
! 14282: fi~
! 14283: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 14284: else
! 14285: ld_shlibs_F77=no
! 14286: fi
! 14287: ;;
! 14288:
! 14289: interix3*)
! 14290: hardcode_direct_F77=no
! 14291: hardcode_shlibpath_var_F77=no
! 14292: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 14293: export_dynamic_flag_spec_F77='${wl}-E'
! 14294: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 14295: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 14296: # default) and relocated if they conflict, which is a slow very memory
! 14297: # consuming and fragmenting process. To avoid this, we pick a random,
! 14298: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 14299: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 14300: 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'
! 14301: 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'
! 14302: ;;
! 14303:
! 14304: linux*)
! 14305: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14306: tmp_addflag=
! 14307: case $cc_basename,$host_cpu in
! 14308: pgcc*) # Portland Group C compiler
! 14309: 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'
! 14310: tmp_addflag=' $pic_flag'
! 14311: ;;
! 14312: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 14313: 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'
! 14314: tmp_addflag=' $pic_flag -Mnomain' ;;
! 14315: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 14316: tmp_addflag=' -i_dynamic' ;;
! 14317: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 14318: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 14319: ifc* | ifort*) # Intel Fortran compiler
! 14320: tmp_addflag=' -nofor_main' ;;
! 14321: esac
! 14322: archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14323:
! 14324: if test $supports_anon_versioning = yes; then
! 14325: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
! 14326: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 14327: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 14328: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 14329: fi
! 14330: else
! 14331: ld_shlibs_F77=no
! 14332: fi
! 14333: ;;
! 14334:
! 14335: netbsd*)
! 14336: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 14337: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 14338: wlarc=
! 14339: else
! 14340: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14341: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 14342: fi
! 14343: ;;
! 14344:
! 14345: solaris*)
! 14346: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 14347: ld_shlibs_F77=no
! 14348: cat <<EOF 1>&2
! 14349:
! 14350: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 14351: *** create shared libraries on Solaris systems. Therefore, libtool
! 14352: *** is disabling shared libraries support. We urge you to upgrade GNU
! 14353: *** binutils to release 2.9.1 or newer. Another option is to modify
! 14354: *** your PATH or compiler configuration so that the native linker is
! 14355: *** used, and then restart.
! 14356:
! 14357: EOF
! 14358: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14359: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14360: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 14361: else
! 14362: ld_shlibs_F77=no
! 14363: fi
! 14364: ;;
! 14365:
! 14366: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 14367: case `$LD -v 2>&1` in
! 14368: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 14369: ld_shlibs_F77=no
! 14370: cat <<_LT_EOF 1>&2
! 14371:
! 14372: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 14373: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 14374: *** is disabling shared libraries support. We urge you to upgrade GNU
! 14375: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 14376: *** your PATH or compiler configuration so that the native linker is
! 14377: *** used, and then restart.
! 14378:
! 14379: _LT_EOF
! 14380: ;;
! 14381: *)
! 14382: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14383: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 14384: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 14385: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 14386: else
! 14387: ld_shlibs_F77=no
! 14388: fi
! 14389: ;;
! 14390: esac
! 14391: ;;
! 14392:
! 14393: sunos4*)
! 14394: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14395: wlarc=
! 14396: hardcode_direct_F77=yes
! 14397: hardcode_shlibpath_var_F77=no
! 14398: ;;
! 14399:
! 14400: *)
! 14401: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14402: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14403: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 14404: else
! 14405: ld_shlibs_F77=no
! 14406: fi
! 14407: ;;
! 14408: esac
! 14409:
! 14410: if test "$ld_shlibs_F77" = no; then
! 14411: runpath_var=
! 14412: hardcode_libdir_flag_spec_F77=
! 14413: export_dynamic_flag_spec_F77=
! 14414: whole_archive_flag_spec_F77=
! 14415: fi
! 14416: else
! 14417: # PORTME fill in a description of your system's linker (not GNU ld)
! 14418: case $host_os in
! 14419: aix3*)
! 14420: allow_undefined_flag_F77=unsupported
! 14421: always_export_symbols_F77=yes
! 14422: 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'
! 14423: # Note: this linker hardcodes the directories in LIBPATH if there
! 14424: # are no directories specified by -L.
! 14425: hardcode_minus_L_F77=yes
! 14426: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
! 14427: # Neither direct hardcoding nor static linking is supported with a
! 14428: # broken collect2.
! 14429: hardcode_direct_F77=unsupported
! 14430: fi
! 14431: ;;
! 14432:
! 14433: aix4* | aix5*)
! 14434: if test "$host_cpu" = ia64; then
! 14435: # On IA64, the linker does run time linking by default, so we don't
! 14436: # have to do anything special.
! 14437: aix_use_runtimelinking=no
! 14438: exp_sym_flag='-Bexport'
! 14439: no_entry_flag=""
! 14440: else
! 14441: # If we're using GNU nm, then we don't want the "-C" option.
! 14442: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 14443: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 14444: 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'
! 14445: else
! 14446: 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'
! 14447: fi
! 14448: aix_use_runtimelinking=no
! 14449:
! 14450: # Test if we are trying to use run time linking or normal
! 14451: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 14452: # need to do runtime linking.
! 14453: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 14454: for ld_flag in $LDFLAGS; do
! 14455: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 14456: aix_use_runtimelinking=yes
! 14457: break
! 14458: fi
! 14459: done
! 14460: ;;
! 14461: esac
! 14462:
! 14463: exp_sym_flag='-bexport'
! 14464: no_entry_flag='-bnoentry'
! 14465: fi
! 14466:
! 14467: # When large executables or shared objects are built, AIX ld can
! 14468: # have problems creating the table of contents. If linking a library
! 14469: # or program results in "error TOC overflow" add -mminimal-toc to
! 14470: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 14471: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 14472:
! 14473: archive_cmds_F77=''
! 14474: hardcode_direct_F77=yes
! 14475: hardcode_libdir_separator_F77=':'
! 14476: link_all_deplibs_F77=yes
! 14477:
! 14478: if test "$GCC" = yes; then
! 14479: case $host_os in aix4.[012]|aix4.[012].*)
! 14480: # We only want to do this on AIX 4.2 and lower, the check
! 14481: # below for broken collect2 doesn't work under 4.3+
! 14482: collect2name=`${CC} -print-prog-name=collect2`
! 14483: if test -f "$collect2name" && \
! 14484: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 14485: then
! 14486: # We have reworked collect2
! 14487: hardcode_direct_F77=yes
! 14488: else
! 14489: # We have old collect2
! 14490: hardcode_direct_F77=unsupported
! 14491: # It fails to find uninstalled libraries when the uninstalled
! 14492: # path is not listed in the libpath. Setting hardcode_minus_L
! 14493: # to unsupported forces relinking
! 14494: hardcode_minus_L_F77=yes
! 14495: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14496: hardcode_libdir_separator_F77=
! 14497: fi
! 14498: ;;
! 14499: esac
! 14500: shared_flag='-shared'
! 14501: if test "$aix_use_runtimelinking" = yes; then
! 14502: shared_flag="$shared_flag "'${wl}-G'
! 14503: fi
! 14504: else
! 14505: # not using gcc
! 14506: if test "$host_cpu" = ia64; then
! 14507: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 14508: # chokes on -Wl,-G. The following line is correct:
! 14509: shared_flag='-G'
! 14510: else
! 14511: if test "$aix_use_runtimelinking" = yes; then
! 14512: shared_flag='${wl}-G'
! 14513: else
! 14514: shared_flag='${wl}-bM:SRE'
! 14515: fi
! 14516: fi
! 14517: fi
! 14518:
! 14519: # It seems that -bexpall does not export symbols beginning with
! 14520: # underscore (_), so it is better to generate a list of symbols to export.
! 14521: always_export_symbols_F77=yes
! 14522: if test "$aix_use_runtimelinking" = yes; then
! 14523: # Warning - without using the other runtime loading flags (-brtl),
! 14524: # -berok will link without error, but may produce a broken library.
! 14525: allow_undefined_flag_F77='-berok'
! 14526: # Determine the default libpath from the value encoded in an empty executable.
! 14527: cat >conftest.$ac_ext <<_ACEOF
! 14528: program main
! 14529:
! 14530: end
! 14531: _ACEOF
! 14532: rm -f conftest.$ac_objext conftest$ac_exeext
! 14533: if { (ac_try="$ac_link"
! 14534: case "(($ac_try" in
! 14535: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14536: *) ac_try_echo=$ac_try;;
! 14537: esac
! 14538: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14539: (eval "$ac_link") 2>conftest.er1
! 14540: ac_status=$?
! 14541: grep -v '^ *+' conftest.er1 >conftest.err
! 14542: rm -f conftest.er1
! 14543: cat conftest.err >&5
! 14544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14545: (exit $ac_status); } && {
! 14546: test -z "$ac_f77_werror_flag" ||
! 14547: test ! -s conftest.err
! 14548: } && test -s conftest$ac_exeext &&
! 14549: $as_test_x conftest$ac_exeext; then
! 14550:
! 14551: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 14552: }'`
! 14553: # Check for a 64-bit object if we didn't find anything.
! 14554: 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; }
! 14555: }'`; fi
! 14556: else
! 14557: echo "$as_me: failed program was:" >&5
! 14558: sed 's/^/| /' conftest.$ac_ext >&5
! 14559:
! 14560:
! 14561: fi
! 14562:
! 14563: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 14564: conftest$ac_exeext conftest.$ac_ext
! 14565: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 14566:
! 14567: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
! 14568: 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"
! 14569: else
! 14570: if test "$host_cpu" = ia64; then
! 14571: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
! 14572: allow_undefined_flag_F77="-z nodefs"
! 14573: 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"
! 14574: else
! 14575: # Determine the default libpath from the value encoded in an empty executable.
! 14576: cat >conftest.$ac_ext <<_ACEOF
! 14577: program main
! 14578:
! 14579: end
! 14580: _ACEOF
! 14581: rm -f conftest.$ac_objext conftest$ac_exeext
! 14582: if { (ac_try="$ac_link"
! 14583: case "(($ac_try" in
! 14584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 14585: *) ac_try_echo=$ac_try;;
! 14586: esac
! 14587: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 14588: (eval "$ac_link") 2>conftest.er1
! 14589: ac_status=$?
! 14590: grep -v '^ *+' conftest.er1 >conftest.err
! 14591: rm -f conftest.er1
! 14592: cat conftest.err >&5
! 14593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14594: (exit $ac_status); } && {
! 14595: test -z "$ac_f77_werror_flag" ||
! 14596: test ! -s conftest.err
! 14597: } && test -s conftest$ac_exeext &&
! 14598: $as_test_x conftest$ac_exeext; then
! 14599:
! 14600: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 14601: }'`
! 14602: # Check for a 64-bit object if we didn't find anything.
! 14603: 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; }
! 14604: }'`; fi
! 14605: else
! 14606: echo "$as_me: failed program was:" >&5
! 14607: sed 's/^/| /' conftest.$ac_ext >&5
! 14608:
! 14609:
! 14610: fi
! 14611:
! 14612: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 14613: conftest$ac_exeext conftest.$ac_ext
! 14614: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 14615:
! 14616: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
! 14617: # Warning - without using the other run time loading flags,
! 14618: # -berok will link without error, but may produce a broken library.
! 14619: no_undefined_flag_F77=' ${wl}-bernotok'
! 14620: allow_undefined_flag_F77=' ${wl}-berok'
! 14621: # Exported symbols can be pulled into shared objects from archives
! 14622: whole_archive_flag_spec_F77='$convenience'
! 14623: archive_cmds_need_lc_F77=yes
! 14624: # This is similar to how AIX traditionally builds its shared libraries.
! 14625: 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'
! 14626: fi
! 14627: fi
! 14628: ;;
! 14629:
! 14630: amigaos*)
! 14631: 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)'
! 14632: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14633: hardcode_minus_L_F77=yes
! 14634: # see comment about different semantics on the GNU ld section
! 14635: ld_shlibs_F77=no
! 14636: ;;
! 14637:
! 14638: bsdi[45]*)
! 14639: export_dynamic_flag_spec_F77=-rdynamic
! 14640: ;;
! 14641:
! 14642: cygwin* | mingw* | pw32*)
! 14643: # When not using gcc, we currently assume that we are using
! 14644: # Microsoft Visual C++.
! 14645: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 14646: # no search path for DLLs.
! 14647: hardcode_libdir_flag_spec_F77=' '
! 14648: allow_undefined_flag_F77=unsupported
! 14649: # Tell ltmain to make .lib files, not .a files.
! 14650: libext=lib
! 14651: # Tell ltmain to make .dll files, not .so files.
! 14652: shrext_cmds=".dll"
! 14653: # FIXME: Setting linknames here is a bad hack.
! 14654: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 14655: # The linker will automatically build a .lib file if we build a DLL.
! 14656: old_archive_From_new_cmds_F77='true'
! 14657: # FIXME: Should let the user specify the lib program.
! 14658: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 14659: fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
! 14660: enable_shared_with_static_runtimes_F77=yes
! 14661: ;;
! 14662:
! 14663: darwin* | rhapsody*)
! 14664: case $host_os in
! 14665: rhapsody* | darwin1.[012])
! 14666: allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
! 14667: ;;
! 14668: *) # Darwin 1.3 on
! 14669: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 14670: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 14671: else
! 14672: case ${MACOSX_DEPLOYMENT_TARGET} in
! 14673: 10.[012])
! 14674: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 14675: ;;
! 14676: 10.*)
! 14677: allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
! 14678: ;;
! 14679: esac
! 14680: fi
! 14681: ;;
! 14682: esac
! 14683: archive_cmds_need_lc_F77=no
! 14684: hardcode_direct_F77=no
! 14685: hardcode_automatic_F77=yes
! 14686: hardcode_shlibpath_var_F77=unsupported
! 14687: whole_archive_flag_spec_F77=''
! 14688: link_all_deplibs_F77=yes
! 14689: if test "$GCC" = yes ; then
! 14690: output_verbose_link_cmd='echo'
! 14691: archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 14692: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 14693: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 14694: 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}'
! 14695: 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}'
! 14696: else
! 14697: case $cc_basename in
! 14698: xlc*)
! 14699: output_verbose_link_cmd='echo'
! 14700: archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
! 14701: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 14702: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 14703: 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}'
! 14704: 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}'
! 14705: ;;
! 14706: *)
! 14707: ld_shlibs_F77=no
! 14708: ;;
! 14709: esac
! 14710: fi
! 14711: ;;
! 14712:
! 14713: dgux*)
! 14714: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14715: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14716: hardcode_shlibpath_var_F77=no
! 14717: ;;
! 14718:
! 14719: freebsd1*)
! 14720: ld_shlibs_F77=no
! 14721: ;;
! 14722:
! 14723: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 14724: # support. Future versions do this automatically, but an explicit c++rt0.o
! 14725: # does not break anything, and helps significantly (at the cost of a little
! 14726: # extra space).
! 14727: freebsd2.2*)
! 14728: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 14729: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14730: hardcode_direct_F77=yes
! 14731: hardcode_shlibpath_var_F77=no
! 14732: ;;
! 14733:
! 14734: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 14735: freebsd2*)
! 14736: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14737: hardcode_direct_F77=yes
! 14738: hardcode_minus_L_F77=yes
! 14739: hardcode_shlibpath_var_F77=no
! 14740: ;;
! 14741:
! 14742: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 14743: freebsd* | kfreebsd*-gnu | dragonfly*)
! 14744: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 14745: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14746: hardcode_direct_F77=yes
! 14747: hardcode_shlibpath_var_F77=no
! 14748: ;;
! 14749:
! 14750: hpux9*)
! 14751: if test "$GCC" = yes; then
! 14752: 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'
! 14753: else
! 14754: 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'
! 14755: fi
! 14756: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 14757: hardcode_libdir_separator_F77=:
! 14758: hardcode_direct_F77=yes
! 14759:
! 14760: # hardcode_minus_L: Not really in the search PATH,
! 14761: # but as the default location of the library.
! 14762: hardcode_minus_L_F77=yes
! 14763: export_dynamic_flag_spec_F77='${wl}-E'
! 14764: ;;
! 14765:
! 14766: hpux10*)
! 14767: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 14768: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 14769: else
! 14770: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 14771: fi
! 14772: if test "$with_gnu_ld" = no; then
! 14773: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 14774: hardcode_libdir_separator_F77=:
! 14775:
! 14776: hardcode_direct_F77=yes
! 14777: export_dynamic_flag_spec_F77='${wl}-E'
! 14778:
! 14779: # hardcode_minus_L: Not really in the search PATH,
! 14780: # but as the default location of the library.
! 14781: hardcode_minus_L_F77=yes
! 14782: fi
! 14783: ;;
! 14784:
! 14785: hpux11*)
! 14786: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 14787: case $host_cpu in
! 14788: hppa*64*)
! 14789: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14790: ;;
! 14791: ia64*)
! 14792: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 14793: ;;
! 14794: *)
! 14795: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 14796: ;;
! 14797: esac
! 14798: else
! 14799: case $host_cpu in
! 14800: hppa*64*)
! 14801: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14802: ;;
! 14803: ia64*)
! 14804: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 14805: ;;
! 14806: *)
! 14807: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 14808: ;;
! 14809: esac
! 14810: fi
! 14811: if test "$with_gnu_ld" = no; then
! 14812: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 14813: hardcode_libdir_separator_F77=:
! 14814:
! 14815: case $host_cpu in
! 14816: hppa*64*|ia64*)
! 14817: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
! 14818: hardcode_direct_F77=no
! 14819: hardcode_shlibpath_var_F77=no
! 14820: ;;
! 14821: *)
! 14822: hardcode_direct_F77=yes
! 14823: export_dynamic_flag_spec_F77='${wl}-E'
! 14824:
! 14825: # hardcode_minus_L: Not really in the search PATH,
! 14826: # but as the default location of the library.
! 14827: hardcode_minus_L_F77=yes
! 14828: ;;
! 14829: esac
! 14830: fi
! 14831: ;;
! 14832:
! 14833: irix5* | irix6* | nonstopux*)
! 14834: if test "$GCC" = yes; then
! 14835: 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'
! 14836: else
! 14837: 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'
! 14838: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
! 14839: fi
! 14840: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 14841: hardcode_libdir_separator_F77=:
! 14842: link_all_deplibs_F77=yes
! 14843: ;;
! 14844:
! 14845: netbsd*)
! 14846: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 14847: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 14848: else
! 14849: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 14850: fi
! 14851: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14852: hardcode_direct_F77=yes
! 14853: hardcode_shlibpath_var_F77=no
! 14854: ;;
! 14855:
! 14856: newsos6)
! 14857: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14858: hardcode_direct_F77=yes
! 14859: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 14860: hardcode_libdir_separator_F77=:
! 14861: hardcode_shlibpath_var_F77=no
! 14862: ;;
! 14863:
! 14864: openbsd*)
! 14865: hardcode_direct_F77=yes
! 14866: hardcode_shlibpath_var_F77=no
! 14867: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 14868: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 14869: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 14870: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 14871: export_dynamic_flag_spec_F77='${wl}-E'
! 14872: else
! 14873: case $host_os in
! 14874: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 14875: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14876: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14877: ;;
! 14878: *)
! 14879: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 14880: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 14881: ;;
! 14882: esac
! 14883: fi
! 14884: ;;
! 14885:
! 14886: os2*)
! 14887: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14888: hardcode_minus_L_F77=yes
! 14889: allow_undefined_flag_F77=unsupported
! 14890: 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'
! 14891: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 14892: ;;
! 14893:
! 14894: osf3*)
! 14895: if test "$GCC" = yes; then
! 14896: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
! 14897: 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'
! 14898: else
! 14899: allow_undefined_flag_F77=' -expect_unresolved \*'
! 14900: 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'
! 14901: fi
! 14902: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 14903: hardcode_libdir_separator_F77=:
! 14904: ;;
! 14905:
! 14906: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 14907: if test "$GCC" = yes; then
! 14908: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
! 14909: 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'
! 14910: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 14911: else
! 14912: allow_undefined_flag_F77=' -expect_unresolved \*'
! 14913: 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'
! 14914: 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~
! 14915: $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'
! 14916:
! 14917: # Both c and cxx compiler support -rpath directly
! 14918: hardcode_libdir_flag_spec_F77='-rpath $libdir'
! 14919: fi
! 14920: hardcode_libdir_separator_F77=:
! 14921: ;;
! 14922:
! 14923: solaris*)
! 14924: no_undefined_flag_F77=' -z text'
! 14925: if test "$GCC" = yes; then
! 14926: wlarc='${wl}'
! 14927: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14928: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 14929: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 14930: else
! 14931: wlarc=''
! 14932: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14933: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 14934: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 14935: fi
! 14936: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14937: hardcode_shlibpath_var_F77=no
! 14938: case $host_os in
! 14939: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 14940: *)
! 14941: # The compiler driver will combine linker options so we
! 14942: # cannot just pass the convience library names through
! 14943: # without $wl, iff we do not link with $LD.
! 14944: # Luckily, gcc supports the same syntax we need for Sun Studio.
! 14945: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 14946: case $wlarc in
! 14947: '')
! 14948: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
! 14949: *)
! 14950: 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' ;;
! 14951: esac ;;
! 14952: esac
! 14953: link_all_deplibs_F77=yes
! 14954: ;;
! 14955:
! 14956: sunos4*)
! 14957: if test "x$host_vendor" = xsequent; then
! 14958: # Use $CC to link under sequent, because it throws in some extra .o
! 14959: # files that make .init and .fini sections work.
! 14960: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 14961: else
! 14962: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 14963: fi
! 14964: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14965: hardcode_direct_F77=yes
! 14966: hardcode_minus_L_F77=yes
! 14967: hardcode_shlibpath_var_F77=no
! 14968: ;;
! 14969:
! 14970: sysv4)
! 14971: case $host_vendor in
! 14972: sni)
! 14973: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14974: hardcode_direct_F77=yes # is this really true???
! 14975: ;;
! 14976: siemens)
! 14977: ## LD is ld it makes a PLAMLIB
! 14978: ## CC just makes a GrossModule.
! 14979: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 14980: reload_cmds_F77='$CC -r -o $output$reload_objs'
! 14981: hardcode_direct_F77=no
! 14982: ;;
! 14983: motorola)
! 14984: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14985: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
! 14986: ;;
! 14987: esac
! 14988: runpath_var='LD_RUN_PATH'
! 14989: hardcode_shlibpath_var_F77=no
! 14990: ;;
! 14991:
! 14992: sysv4.3*)
! 14993: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14994: hardcode_shlibpath_var_F77=no
! 14995: export_dynamic_flag_spec_F77='-Bexport'
! 14996: ;;
! 14997:
! 14998: sysv4*MP*)
! 14999: if test -d /usr/nec; then
! 15000: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15001: hardcode_shlibpath_var_F77=no
! 15002: runpath_var=LD_RUN_PATH
! 15003: hardcode_runpath_var=yes
! 15004: ld_shlibs_F77=yes
! 15005: fi
! 15006: ;;
! 15007:
! 15008: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
! 15009: no_undefined_flag_F77='${wl}-z,text'
! 15010: archive_cmds_need_lc_F77=no
! 15011: hardcode_shlibpath_var_F77=no
! 15012: runpath_var='LD_RUN_PATH'
! 15013:
! 15014: if test "$GCC" = yes; then
! 15015: archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15016: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15017: else
! 15018: archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15019: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15020: fi
! 15021: ;;
! 15022:
! 15023: sysv5* | sco3.2v5* | sco5v6*)
! 15024: # Note: We can NOT use -z defs as we might desire, because we do not
! 15025: # link with -lc, and that would cause any symbols used from libc to
! 15026: # always be unresolved, which means just about no library would
! 15027: # ever link correctly. If we're not using GNU ld we use -z text
! 15028: # though, which does catch some bad symbols but isn't as heavy-handed
! 15029: # as -z defs.
! 15030: no_undefined_flag_F77='${wl}-z,text'
! 15031: allow_undefined_flag_F77='${wl}-z,nodefs'
! 15032: archive_cmds_need_lc_F77=no
! 15033: hardcode_shlibpath_var_F77=no
! 15034: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 15035: hardcode_libdir_separator_F77=':'
! 15036: link_all_deplibs_F77=yes
! 15037: export_dynamic_flag_spec_F77='${wl}-Bexport'
! 15038: runpath_var='LD_RUN_PATH'
! 15039:
! 15040: if test "$GCC" = yes; then
! 15041: archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15042: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15043: else
! 15044: archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15045: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15046: fi
! 15047: ;;
! 15048:
! 15049: uts4*)
! 15050: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15051: hardcode_libdir_flag_spec_F77='-L$libdir'
! 15052: hardcode_shlibpath_var_F77=no
! 15053: ;;
! 15054:
! 15055: *)
! 15056: ld_shlibs_F77=no
! 15057: ;;
! 15058: esac
! 15059: fi
! 15060:
! 15061: { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
! 15062: echo "${ECHO_T}$ld_shlibs_F77" >&6; }
! 15063: test "$ld_shlibs_F77" = no && can_build_shared=no
! 15064:
! 15065: #
! 15066: # Do we need to explicitly link libc?
! 15067: #
! 15068: case "x$archive_cmds_need_lc_F77" in
! 15069: x|xyes)
! 15070: # Assume -lc should be added
! 15071: archive_cmds_need_lc_F77=yes
! 15072:
! 15073: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 15074: case $archive_cmds_F77 in
! 15075: *'~'*)
! 15076: # FIXME: we may have to deal with multi-command sequences.
! 15077: ;;
! 15078: '$CC '*)
! 15079: # Test whether the compiler implicitly links with -lc since on some
! 15080: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 15081: # to ld, don't add -lc before -lgcc.
! 15082: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 15083: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 15084: $rm conftest*
! 15085: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 15086:
! 15087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 15088: (eval $ac_compile) 2>&5
! 15089: ac_status=$?
! 15090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15091: (exit $ac_status); } 2>conftest.err; then
! 15092: soname=conftest
! 15093: lib=conftest
! 15094: libobjs=conftest.$ac_objext
! 15095: deplibs=
! 15096: wl=$lt_prog_compiler_wl_F77
! 15097: pic_flag=$lt_prog_compiler_pic_F77
! 15098: compiler_flags=-v
! 15099: linker_flags=-v
! 15100: verstring=
! 15101: output_objdir=.
! 15102: libname=conftest
! 15103: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
! 15104: allow_undefined_flag_F77=
! 15105: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 15106: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 15107: ac_status=$?
! 15108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15109: (exit $ac_status); }
! 15110: then
! 15111: archive_cmds_need_lc_F77=no
! 15112: else
! 15113: archive_cmds_need_lc_F77=yes
! 15114: fi
! 15115: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
! 15116: else
! 15117: cat conftest.err 1>&5
! 15118: fi
! 15119: $rm conftest*
! 15120: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
! 15121: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
! 15122: ;;
! 15123: esac
! 15124: fi
! 15125: ;;
! 15126: esac
! 15127:
! 15128: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 15129: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 15130: library_names_spec=
! 15131: libname_spec='lib$name'
! 15132: soname_spec=
! 15133: shrext_cmds=".so"
! 15134: postinstall_cmds=
! 15135: postuninstall_cmds=
! 15136: finish_cmds=
! 15137: finish_eval=
! 15138: shlibpath_var=
! 15139: shlibpath_overrides_runpath=unknown
! 15140: version_type=none
! 15141: dynamic_linker="$host_os ld.so"
! 15142: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 15143: if test "$GCC" = yes; then
! 15144: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 15145: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 15146: # if the path contains ";" then we assume it to be the separator
! 15147: # otherwise default to the standard path separator (i.e. ":") - it is
! 15148: # assumed that no part of a normal pathname contains ";" but that should
! 15149: # okay in the real world where ";" in dirpaths is itself problematic.
! 15150: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 15151: else
! 15152: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 15153: fi
! 15154: else
! 15155: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 15156: fi
! 15157: need_lib_prefix=unknown
! 15158: hardcode_into_libs=no
! 15159:
! 15160: # when you set need_version to no, make sure it does not cause -set_version
! 15161: # flags to be left without arguments
! 15162: need_version=unknown
! 15163:
! 15164: case $host_os in
! 15165: aix3*)
! 15166: version_type=linux
! 15167: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 15168: shlibpath_var=LIBPATH
! 15169:
! 15170: # AIX 3 has no versioning support, so we append a major version to the name.
! 15171: soname_spec='${libname}${release}${shared_ext}$major'
! 15172: ;;
! 15173:
! 15174: aix4* | aix5*)
! 15175: version_type=linux
! 15176: need_lib_prefix=no
! 15177: need_version=no
! 15178: hardcode_into_libs=yes
! 15179: if test "$host_cpu" = ia64; then
! 15180: # AIX 5 supports IA64
! 15181: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 15182: shlibpath_var=LD_LIBRARY_PATH
! 15183: else
! 15184: # With GCC up to 2.95.x, collect2 would create an import file
! 15185: # for dependence libraries. The import file would start with
! 15186: # the line `#! .'. This would cause the generated library to
! 15187: # depend on `.', always an invalid library. This was fixed in
! 15188: # development snapshots of GCC prior to 3.0.
! 15189: case $host_os in
! 15190: aix4 | aix4.[01] | aix4.[01].*)
! 15191: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 15192: echo ' yes '
! 15193: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 15194: :
! 15195: else
! 15196: can_build_shared=no
! 15197: fi
! 15198: ;;
! 15199: esac
! 15200: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 15201: # soname into executable. Probably we can add versioning support to
! 15202: # collect2, so additional links can be useful in future.
! 15203: if test "$aix_use_runtimelinking" = yes; then
! 15204: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 15205: # instead of lib<name>.a to let people know that these are not
! 15206: # typical AIX shared libraries.
! 15207: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15208: else
! 15209: # We preserve .a as extension for shared libraries through AIX4.2
! 15210: # and later when we are not doing run time linking.
! 15211: library_names_spec='${libname}${release}.a $libname.a'
! 15212: soname_spec='${libname}${release}${shared_ext}$major'
! 15213: fi
! 15214: shlibpath_var=LIBPATH
! 15215: fi
! 15216: ;;
! 15217:
! 15218: amigaos*)
! 15219: library_names_spec='$libname.ixlibrary $libname.a'
! 15220: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 15221: 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'
! 15222: ;;
! 15223:
! 15224: beos*)
! 15225: library_names_spec='${libname}${shared_ext}'
! 15226: dynamic_linker="$host_os ld.so"
! 15227: shlibpath_var=LIBRARY_PATH
! 15228: ;;
! 15229:
! 15230: bsdi[45]*)
! 15231: version_type=linux
! 15232: need_version=no
! 15233: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15234: soname_spec='${libname}${release}${shared_ext}$major'
! 15235: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 15236: shlibpath_var=LD_LIBRARY_PATH
! 15237: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 15238: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 15239: # the default ld.so.conf also contains /usr/contrib/lib and
! 15240: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 15241: # libtool to hard-code these into programs
! 15242: ;;
! 15243:
! 15244: cygwin* | mingw* | pw32*)
! 15245: version_type=windows
! 15246: shrext_cmds=".dll"
! 15247: need_version=no
! 15248: need_lib_prefix=no
! 15249:
! 15250: case $GCC,$host_os in
! 15251: yes,cygwin* | yes,mingw* | yes,pw32*)
! 15252: library_names_spec='$libname.dll.a'
! 15253: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 15254: postinstall_cmds='base_file=`basename \${file}`~
! 15255: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 15256: dldir=$destdir/`dirname \$dlpath`~
! 15257: test -d \$dldir || mkdir -p \$dldir~
! 15258: $install_prog $dir/$dlname \$dldir/$dlname~
! 15259: chmod a+x \$dldir/$dlname'
! 15260: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 15261: dlpath=$dir/\$dldll~
! 15262: $rm \$dlpath'
! 15263: shlibpath_overrides_runpath=yes
! 15264:
! 15265: case $host_os in
! 15266: cygwin*)
! 15267: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 15268: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 15269: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 15270: ;;
! 15271: mingw*)
! 15272: # MinGW DLLs use traditional 'lib' prefix
! 15273: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 15274: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 15275: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 15276: # It is most probably a Windows format PATH printed by
! 15277: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 15278: # path with ; separators, and with drive letters. We can handle the
! 15279: # drive letters (cygwin fileutils understands them), so leave them,
! 15280: # especially as we might pass files found there to a mingw objdump,
! 15281: # which wouldn't understand a cygwinified path. Ahh.
! 15282: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 15283: else
! 15284: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 15285: fi
! 15286: ;;
! 15287: pw32*)
! 15288: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 15289: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 15290: ;;
! 15291: esac
! 15292: ;;
! 15293:
! 15294: *)
! 15295: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 15296: ;;
! 15297: esac
! 15298: dynamic_linker='Win32 ld.exe'
! 15299: # FIXME: first we should search . and the directory the executable is in
! 15300: shlibpath_var=PATH
! 15301: ;;
! 15302:
! 15303: darwin* | rhapsody*)
! 15304: dynamic_linker="$host_os dyld"
! 15305: version_type=darwin
! 15306: need_lib_prefix=no
! 15307: need_version=no
! 15308: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 15309: soname_spec='${libname}${release}${major}$shared_ext'
! 15310: shlibpath_overrides_runpath=yes
! 15311: shlibpath_var=DYLD_LIBRARY_PATH
! 15312: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 15313: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 15314: if test "$GCC" = yes; then
! 15315: 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"`
! 15316: else
! 15317: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
! 15318: fi
! 15319: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 15320: ;;
! 15321:
! 15322: dgux*)
! 15323: version_type=linux
! 15324: need_lib_prefix=no
! 15325: need_version=no
! 15326: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 15327: soname_spec='${libname}${release}${shared_ext}$major'
! 15328: shlibpath_var=LD_LIBRARY_PATH
! 15329: ;;
! 15330:
! 15331: freebsd1*)
! 15332: dynamic_linker=no
! 15333: ;;
! 15334:
! 15335: kfreebsd*-gnu)
! 15336: version_type=linux
! 15337: need_lib_prefix=no
! 15338: need_version=no
! 15339: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 15340: soname_spec='${libname}${release}${shared_ext}$major'
! 15341: shlibpath_var=LD_LIBRARY_PATH
! 15342: shlibpath_overrides_runpath=no
! 15343: hardcode_into_libs=yes
! 15344: dynamic_linker='GNU ld.so'
! 15345: ;;
! 15346:
! 15347: freebsd* | dragonfly*)
! 15348: # DragonFly does not have aout. When/if they implement a new
! 15349: # versioning mechanism, adjust this.
! 15350: if test -x /usr/bin/objformat; then
! 15351: objformat=`/usr/bin/objformat`
! 15352: else
! 15353: case $host_os in
! 15354: freebsd[123]*) objformat=aout ;;
! 15355: *) objformat=elf ;;
! 15356: esac
! 15357: fi
! 15358: version_type=freebsd-$objformat
! 15359: case $version_type in
! 15360: freebsd-elf*)
! 15361: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 15362: need_version=no
! 15363: need_lib_prefix=no
! 15364: ;;
! 15365: freebsd-*)
! 15366: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 15367: need_version=yes
! 15368: ;;
! 15369: esac
! 15370: shlibpath_var=LD_LIBRARY_PATH
! 15371: case $host_os in
! 15372: freebsd2*)
! 15373: shlibpath_overrides_runpath=yes
! 15374: ;;
! 15375: freebsd3.[01]* | freebsdelf3.[01]*)
! 15376: shlibpath_overrides_runpath=yes
! 15377: hardcode_into_libs=yes
! 15378: ;;
! 15379: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 15380: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 15381: shlibpath_overrides_runpath=no
! 15382: hardcode_into_libs=yes
! 15383: ;;
! 15384: freebsd*) # from 4.6 on
! 15385: shlibpath_overrides_runpath=yes
! 15386: hardcode_into_libs=yes
! 15387: ;;
! 15388: esac
! 15389: ;;
! 15390:
! 15391: gnu*)
! 15392: version_type=linux
! 15393: need_lib_prefix=no
! 15394: need_version=no
! 15395: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 15396: soname_spec='${libname}${release}${shared_ext}$major'
! 15397: shlibpath_var=LD_LIBRARY_PATH
! 15398: hardcode_into_libs=yes
! 15399: ;;
! 15400:
! 15401: hpux9* | hpux10* | hpux11*)
! 15402: # Give a soname corresponding to the major version so that dld.sl refuses to
! 15403: # link against other versions.
! 15404: version_type=sunos
! 15405: need_lib_prefix=no
! 15406: need_version=no
! 15407: case $host_cpu in
! 15408: ia64*)
! 15409: shrext_cmds='.so'
! 15410: hardcode_into_libs=yes
! 15411: dynamic_linker="$host_os dld.so"
! 15412: shlibpath_var=LD_LIBRARY_PATH
! 15413: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 15414: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15415: soname_spec='${libname}${release}${shared_ext}$major'
! 15416: if test "X$HPUX_IA64_MODE" = X32; then
! 15417: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 15418: else
! 15419: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 15420: fi
! 15421: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 15422: ;;
! 15423: hppa*64*)
! 15424: shrext_cmds='.sl'
! 15425: hardcode_into_libs=yes
! 15426: dynamic_linker="$host_os dld.sl"
! 15427: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 15428: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 15429: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15430: soname_spec='${libname}${release}${shared_ext}$major'
! 15431: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 15432: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 15433: ;;
! 15434: *)
! 15435: shrext_cmds='.sl'
! 15436: dynamic_linker="$host_os dld.sl"
! 15437: shlibpath_var=SHLIB_PATH
! 15438: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 15439: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15440: soname_spec='${libname}${release}${shared_ext}$major'
! 15441: ;;
! 15442: esac
! 15443: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 15444: postinstall_cmds='chmod 555 $lib'
! 15445: ;;
! 15446:
! 15447: interix3*)
! 15448: version_type=linux
! 15449: need_lib_prefix=no
! 15450: need_version=no
! 15451: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 15452: soname_spec='${libname}${release}${shared_ext}$major'
! 15453: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 15454: shlibpath_var=LD_LIBRARY_PATH
! 15455: shlibpath_overrides_runpath=no
! 15456: hardcode_into_libs=yes
! 15457: ;;
! 15458:
! 15459: irix5* | irix6* | nonstopux*)
! 15460: case $host_os in
! 15461: nonstopux*) version_type=nonstopux ;;
! 15462: *)
! 15463: if test "$lt_cv_prog_gnu_ld" = yes; then
! 15464: version_type=linux
! 15465: else
! 15466: version_type=irix
! 15467: fi ;;
! 15468: esac
! 15469: need_lib_prefix=no
! 15470: need_version=no
! 15471: soname_spec='${libname}${release}${shared_ext}$major'
! 15472: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 15473: case $host_os in
! 15474: irix5* | nonstopux*)
! 15475: libsuff= shlibsuff=
! 15476: ;;
! 15477: *)
! 15478: case $LD in # libtool.m4 will add one of these switches to LD
! 15479: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 15480: libsuff= shlibsuff= libmagic=32-bit;;
! 15481: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 15482: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 15483: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 15484: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 15485: *) libsuff= shlibsuff= libmagic=never-match;;
! 15486: esac
! 15487: ;;
! 15488: esac
! 15489: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 15490: shlibpath_overrides_runpath=no
! 15491: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 15492: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 15493: hardcode_into_libs=yes
! 15494: ;;
! 15495:
! 15496: # No shared lib support for Linux oldld, aout, or coff.
! 15497: linux*oldld* | linux*aout* | linux*coff*)
! 15498: dynamic_linker=no
! 15499: ;;
! 15500:
! 15501: # This must be Linux ELF.
! 15502: linux*)
! 15503: version_type=linux
! 15504: need_lib_prefix=no
! 15505: need_version=no
! 15506: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15507: soname_spec='${libname}${release}${shared_ext}$major'
! 15508: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 15509: shlibpath_var=LD_LIBRARY_PATH
! 15510: shlibpath_overrides_runpath=no
! 15511: # This implies no fast_install, which is unacceptable.
! 15512: # Some rework will be needed to allow for fast_install
! 15513: # before this can be enabled.
! 15514: hardcode_into_libs=yes
! 15515:
! 15516: # Append ld.so.conf contents to the search path
! 15517: if test -f /etc/ld.so.conf; then
! 15518: 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' ' '`
! 15519: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 15520: fi
! 15521:
! 15522: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 15523: # powerpc, because MkLinux only supported shared libraries with the
! 15524: # GNU dynamic linker. Since this was broken with cross compilers,
! 15525: # most powerpc-linux boxes support dynamic linking these days and
! 15526: # people can always --disable-shared, the test was removed, and we
! 15527: # assume the GNU/Linux dynamic linker is in use.
! 15528: dynamic_linker='GNU/Linux ld.so'
! 15529: ;;
! 15530:
! 15531: knetbsd*-gnu)
! 15532: version_type=linux
! 15533: need_lib_prefix=no
! 15534: need_version=no
! 15535: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 15536: soname_spec='${libname}${release}${shared_ext}$major'
! 15537: shlibpath_var=LD_LIBRARY_PATH
! 15538: shlibpath_overrides_runpath=no
! 15539: hardcode_into_libs=yes
! 15540: dynamic_linker='GNU ld.so'
! 15541: ;;
! 15542:
! 15543: netbsd*)
! 15544: version_type=sunos
! 15545: need_lib_prefix=no
! 15546: need_version=no
! 15547: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 15548: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 15549: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 15550: dynamic_linker='NetBSD (a.out) ld.so'
! 15551: else
! 15552: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 15553: soname_spec='${libname}${release}${shared_ext}$major'
! 15554: dynamic_linker='NetBSD ld.elf_so'
! 15555: fi
! 15556: shlibpath_var=LD_LIBRARY_PATH
! 15557: shlibpath_overrides_runpath=yes
! 15558: hardcode_into_libs=yes
! 15559: ;;
! 15560:
! 15561: newsos6)
! 15562: version_type=linux
! 15563: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15564: shlibpath_var=LD_LIBRARY_PATH
! 15565: shlibpath_overrides_runpath=yes
! 15566: ;;
! 15567:
! 15568: nto-qnx*)
! 15569: version_type=linux
! 15570: need_lib_prefix=no
! 15571: need_version=no
! 15572: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15573: soname_spec='${libname}${release}${shared_ext}$major'
! 15574: shlibpath_var=LD_LIBRARY_PATH
! 15575: shlibpath_overrides_runpath=yes
! 15576: ;;
! 15577:
! 15578: openbsd*)
! 15579: version_type=sunos
! 15580: sys_lib_dlsearch_path_spec="/usr/lib"
! 15581: need_lib_prefix=no
! 15582: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 15583: case $host_os in
! 15584: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 15585: *) need_version=no ;;
! 15586: esac
! 15587: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 15588: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 15589: shlibpath_var=LD_LIBRARY_PATH
! 15590: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 15591: case $host_os in
! 15592: openbsd2.[89] | openbsd2.[89].*)
! 15593: shlibpath_overrides_runpath=no
! 15594: ;;
! 15595: *)
! 15596: shlibpath_overrides_runpath=yes
! 15597: ;;
! 15598: esac
! 15599: else
! 15600: shlibpath_overrides_runpath=yes
! 15601: fi
! 15602: ;;
! 15603:
! 15604: os2*)
! 15605: libname_spec='$name'
! 15606: shrext_cmds=".dll"
! 15607: need_lib_prefix=no
! 15608: library_names_spec='$libname${shared_ext} $libname.a'
! 15609: dynamic_linker='OS/2 ld.exe'
! 15610: shlibpath_var=LIBPATH
! 15611: ;;
! 15612:
! 15613: osf3* | osf4* | osf5*)
! 15614: version_type=osf
! 15615: need_lib_prefix=no
! 15616: need_version=no
! 15617: soname_spec='${libname}${release}${shared_ext}$major'
! 15618: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15619: shlibpath_var=LD_LIBRARY_PATH
! 15620: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 15621: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 15622: ;;
! 15623:
! 15624: solaris*)
! 15625: version_type=linux
! 15626: need_lib_prefix=no
! 15627: need_version=no
! 15628: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15629: soname_spec='${libname}${release}${shared_ext}$major'
! 15630: shlibpath_var=LD_LIBRARY_PATH
! 15631: shlibpath_overrides_runpath=yes
! 15632: hardcode_into_libs=yes
! 15633: # ldd complains unless libraries are executable
! 15634: postinstall_cmds='chmod +x $lib'
! 15635: ;;
! 15636:
! 15637: sunos4*)
! 15638: version_type=sunos
! 15639: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 15640: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 15641: shlibpath_var=LD_LIBRARY_PATH
! 15642: shlibpath_overrides_runpath=yes
! 15643: if test "$with_gnu_ld" = yes; then
! 15644: need_lib_prefix=no
! 15645: fi
! 15646: need_version=yes
! 15647: ;;
! 15648:
! 15649: sysv4 | sysv4.3*)
! 15650: version_type=linux
! 15651: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15652: soname_spec='${libname}${release}${shared_ext}$major'
! 15653: shlibpath_var=LD_LIBRARY_PATH
! 15654: case $host_vendor in
! 15655: sni)
! 15656: shlibpath_overrides_runpath=no
! 15657: need_lib_prefix=no
! 15658: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 15659: runpath_var=LD_RUN_PATH
! 15660: ;;
! 15661: siemens)
! 15662: need_lib_prefix=no
! 15663: ;;
! 15664: motorola)
! 15665: need_lib_prefix=no
! 15666: need_version=no
! 15667: shlibpath_overrides_runpath=no
! 15668: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 15669: ;;
! 15670: esac
! 15671: ;;
! 15672:
! 15673: sysv4*MP*)
! 15674: if test -d /usr/nec ;then
! 15675: version_type=linux
! 15676: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 15677: soname_spec='$libname${shared_ext}.$major'
! 15678: shlibpath_var=LD_LIBRARY_PATH
! 15679: fi
! 15680: ;;
! 15681:
! 15682: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 15683: version_type=freebsd-elf
! 15684: need_lib_prefix=no
! 15685: need_version=no
! 15686: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 15687: soname_spec='${libname}${release}${shared_ext}$major'
! 15688: shlibpath_var=LD_LIBRARY_PATH
! 15689: hardcode_into_libs=yes
! 15690: if test "$with_gnu_ld" = yes; then
! 15691: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 15692: shlibpath_overrides_runpath=no
! 15693: else
! 15694: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 15695: shlibpath_overrides_runpath=yes
! 15696: case $host_os in
! 15697: sco3.2v5*)
! 15698: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 15699: ;;
! 15700: esac
! 15701: fi
! 15702: sys_lib_dlsearch_path_spec='/usr/lib'
! 15703: ;;
! 15704:
! 15705: uts4*)
! 15706: version_type=linux
! 15707: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15708: soname_spec='${libname}${release}${shared_ext}$major'
! 15709: shlibpath_var=LD_LIBRARY_PATH
! 15710: ;;
! 15711:
! 15712: *)
! 15713: dynamic_linker=no
! 15714: ;;
! 15715: esac
! 15716: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 15717: echo "${ECHO_T}$dynamic_linker" >&6; }
! 15718: test "$dynamic_linker" = no && can_build_shared=no
! 15719:
! 15720: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 15721: if test "$GCC" = yes; then
! 15722: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 15723: fi
! 15724:
! 15725: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 15726: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 15727: hardcode_action_F77=
! 15728: if test -n "$hardcode_libdir_flag_spec_F77" || \
! 15729: test -n "$runpath_var_F77" || \
! 15730: test "X$hardcode_automatic_F77" = "Xyes" ; then
! 15731:
! 15732: # We can hardcode non-existant directories.
! 15733: if test "$hardcode_direct_F77" != no &&
! 15734: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 15735: # have to relink, otherwise we might link with an installed library
! 15736: # when we should be linking with a yet-to-be-installed one
! 15737: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
! 15738: test "$hardcode_minus_L_F77" != no; then
! 15739: # Linking always hardcodes the temporary library directory.
! 15740: hardcode_action_F77=relink
! 15741: else
! 15742: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 15743: hardcode_action_F77=immediate
! 15744: fi
! 15745: else
! 15746: # We cannot hardcode anything, or else we can only hardcode existing
! 15747: # directories.
! 15748: hardcode_action_F77=unsupported
! 15749: fi
! 15750: { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
! 15751: echo "${ECHO_T}$hardcode_action_F77" >&6; }
! 15752:
! 15753: if test "$hardcode_action_F77" = relink; then
! 15754: # Fast installation is not supported
! 15755: enable_fast_install=no
! 15756: elif test "$shlibpath_overrides_runpath" = yes ||
! 15757: test "$enable_shared" = no; then
! 15758: # Fast installation is not necessary
! 15759: enable_fast_install=needless
! 15760: fi
! 15761:
! 15762:
! 15763: # The else clause should only fire when bootstrapping the
! 15764: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 15765: # with your package, and you will get complaints that there are
! 15766: # no rules to generate ltmain.sh.
! 15767: if test -f "$ltmain"; then
! 15768: # See if we are running on zsh, and set the options which allow our commands through
! 15769: # without removal of \ escapes.
! 15770: if test -n "${ZSH_VERSION+set}" ; then
! 15771: setopt NO_GLOB_SUBST
! 15772: fi
! 15773: # Now quote all the things that may contain metacharacters while being
! 15774: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 15775: # variables and quote the copies for generation of the libtool script.
! 15776: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 15777: SED SHELL STRIP \
! 15778: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 15779: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 15780: deplibs_check_method reload_flag reload_cmds need_locks \
! 15781: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 15782: lt_cv_sys_global_symbol_to_c_name_address \
! 15783: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 15784: old_postinstall_cmds old_postuninstall_cmds \
! 15785: compiler_F77 \
! 15786: CC_F77 \
! 15787: LD_F77 \
! 15788: lt_prog_compiler_wl_F77 \
! 15789: lt_prog_compiler_pic_F77 \
! 15790: lt_prog_compiler_static_F77 \
! 15791: lt_prog_compiler_no_builtin_flag_F77 \
! 15792: export_dynamic_flag_spec_F77 \
! 15793: thread_safe_flag_spec_F77 \
! 15794: whole_archive_flag_spec_F77 \
! 15795: enable_shared_with_static_runtimes_F77 \
! 15796: old_archive_cmds_F77 \
! 15797: old_archive_from_new_cmds_F77 \
! 15798: predep_objects_F77 \
! 15799: postdep_objects_F77 \
! 15800: predeps_F77 \
! 15801: postdeps_F77 \
! 15802: compiler_lib_search_path_F77 \
! 15803: archive_cmds_F77 \
! 15804: archive_expsym_cmds_F77 \
! 15805: postinstall_cmds_F77 \
! 15806: postuninstall_cmds_F77 \
! 15807: old_archive_from_expsyms_cmds_F77 \
! 15808: allow_undefined_flag_F77 \
! 15809: no_undefined_flag_F77 \
! 15810: export_symbols_cmds_F77 \
! 15811: hardcode_libdir_flag_spec_F77 \
! 15812: hardcode_libdir_flag_spec_ld_F77 \
! 15813: hardcode_libdir_separator_F77 \
! 15814: hardcode_automatic_F77 \
! 15815: module_cmds_F77 \
! 15816: module_expsym_cmds_F77 \
! 15817: lt_cv_prog_compiler_c_o_F77 \
! 15818: exclude_expsyms_F77 \
! 15819: include_expsyms_F77; do
! 15820:
! 15821: case $var in
! 15822: old_archive_cmds_F77 | \
! 15823: old_archive_from_new_cmds_F77 | \
! 15824: archive_cmds_F77 | \
! 15825: archive_expsym_cmds_F77 | \
! 15826: module_cmds_F77 | \
! 15827: module_expsym_cmds_F77 | \
! 15828: old_archive_from_expsyms_cmds_F77 | \
! 15829: export_symbols_cmds_F77 | \
! 15830: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 15831: postinstall_cmds | postuninstall_cmds | \
! 15832: old_postinstall_cmds | old_postuninstall_cmds | \
! 15833: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 15834: # Double-quote double-evaled strings.
! 15835: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 15836: ;;
! 15837: *)
! 15838: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 15839: ;;
! 15840: esac
! 15841: done
! 15842:
! 15843: case $lt_echo in
! 15844: *'\$0 --fallback-echo"')
! 15845: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 15846: ;;
! 15847: esac
! 15848:
! 15849: cfgfile="$ofile"
! 15850:
! 15851: cat <<__EOF__ >> "$cfgfile"
! 15852: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 15853:
! 15854: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 15855:
! 15856: # Shell to use when invoking shell scripts.
! 15857: SHELL=$lt_SHELL
! 15858:
! 15859: # Whether or not to build shared libraries.
! 15860: build_libtool_libs=$enable_shared
! 15861:
! 15862: # Whether or not to build static libraries.
! 15863: build_old_libs=$enable_static
! 15864:
! 15865: # Whether or not to add -lc for building shared libraries.
! 15866: build_libtool_need_lc=$archive_cmds_need_lc_F77
! 15867:
! 15868: # Whether or not to disallow shared libs when runtime libs are static
! 15869: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
! 15870:
! 15871: # Whether or not to optimize for fast installation.
! 15872: fast_install=$enable_fast_install
! 15873:
! 15874: # The host system.
! 15875: host_alias=$host_alias
! 15876: host=$host
! 15877: host_os=$host_os
! 15878:
! 15879: # The build system.
! 15880: build_alias=$build_alias
! 15881: build=$build
! 15882: build_os=$build_os
! 15883:
! 15884: # An echo program that does not interpret backslashes.
! 15885: echo=$lt_echo
! 15886:
! 15887: # The archiver.
! 15888: AR=$lt_AR
! 15889: AR_FLAGS=$lt_AR_FLAGS
! 15890:
! 15891: # A C compiler.
! 15892: LTCC=$lt_LTCC
! 15893:
! 15894: # LTCC compiler flags.
! 15895: LTCFLAGS=$lt_LTCFLAGS
! 15896:
! 15897: # A language-specific compiler.
! 15898: CC=$lt_compiler_F77
! 15899:
! 15900: # Is the compiler the GNU C compiler?
! 15901: with_gcc=$GCC_F77
! 15902:
! 15903: # An ERE matcher.
! 15904: EGREP=$lt_EGREP
! 15905:
! 15906: # The linker used to build libraries.
! 15907: LD=$lt_LD_F77
! 15908:
! 15909: # Whether we need hard or soft links.
! 15910: LN_S=$lt_LN_S
! 15911:
! 15912: # A BSD-compatible nm program.
! 15913: NM=$lt_NM
! 15914:
! 15915: # A symbol stripping program
! 15916: STRIP=$lt_STRIP
! 15917:
! 15918: # Used to examine libraries when file_magic_cmd begins "file"
! 15919: MAGIC_CMD=$MAGIC_CMD
! 15920:
! 15921: # Used on cygwin: DLL creation program.
! 15922: DLLTOOL="$DLLTOOL"
! 15923:
! 15924: # Used on cygwin: object dumper.
! 15925: OBJDUMP="$OBJDUMP"
! 15926:
! 15927: # Used on cygwin: assembler.
! 15928: AS="$AS"
! 15929:
! 15930: # The name of the directory that contains temporary libtool files.
! 15931: objdir=$objdir
! 15932:
! 15933: # How to create reloadable object files.
! 15934: reload_flag=$lt_reload_flag
! 15935: reload_cmds=$lt_reload_cmds
! 15936:
! 15937: # How to pass a linker flag through the compiler.
! 15938: wl=$lt_lt_prog_compiler_wl_F77
! 15939:
! 15940: # Object file suffix (normally "o").
! 15941: objext="$ac_objext"
! 15942:
! 15943: # Old archive suffix (normally "a").
! 15944: libext="$libext"
! 15945:
! 15946: # Shared library suffix (normally ".so").
! 15947: shrext_cmds='$shrext_cmds'
! 15948:
! 15949: # Executable file suffix (normally "").
! 15950: exeext="$exeext"
! 15951:
! 15952: # Additional compiler flags for building library objects.
! 15953: pic_flag=$lt_lt_prog_compiler_pic_F77
! 15954: pic_mode=$pic_mode
! 15955:
! 15956: # What is the maximum length of a command?
! 15957: max_cmd_len=$lt_cv_sys_max_cmd_len
! 15958:
! 15959: # Does compiler simultaneously support -c and -o options?
! 15960: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
! 15961:
! 15962: # Must we lock files when doing compilation?
! 15963: need_locks=$lt_need_locks
! 15964:
! 15965: # Do we need the lib prefix for modules?
! 15966: need_lib_prefix=$need_lib_prefix
! 15967:
! 15968: # Do we need a version for libraries?
! 15969: need_version=$need_version
! 15970:
! 15971: # Whether dlopen is supported.
! 15972: dlopen_support=$enable_dlopen
! 15973:
! 15974: # Whether dlopen of programs is supported.
! 15975: dlopen_self=$enable_dlopen_self
! 15976:
! 15977: # Whether dlopen of statically linked programs is supported.
! 15978: dlopen_self_static=$enable_dlopen_self_static
! 15979:
! 15980: # Compiler flag to prevent dynamic linking.
! 15981: link_static_flag=$lt_lt_prog_compiler_static_F77
! 15982:
! 15983: # Compiler flag to turn off builtin functions.
! 15984: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
! 15985:
! 15986: # Compiler flag to allow reflexive dlopens.
! 15987: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
! 15988:
! 15989: # Compiler flag to generate shared objects directly from archives.
! 15990: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
! 15991:
! 15992: # Compiler flag to generate thread-safe objects.
! 15993: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
! 15994:
! 15995: # Library versioning type.
! 15996: version_type=$version_type
! 15997:
! 15998: # Format of library name prefix.
! 15999: libname_spec=$lt_libname_spec
! 16000:
! 16001: # List of archive names. First name is the real one, the rest are links.
! 16002: # The last name is the one that the linker finds with -lNAME.
! 16003: library_names_spec=$lt_library_names_spec
! 16004:
! 16005: # The coded name of the library, if different from the real name.
! 16006: soname_spec=$lt_soname_spec
! 16007:
! 16008: # Commands used to build and install an old-style archive.
! 16009: RANLIB=$lt_RANLIB
! 16010: old_archive_cmds=$lt_old_archive_cmds_F77
! 16011: old_postinstall_cmds=$lt_old_postinstall_cmds
! 16012: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 16013:
! 16014: # Create an old-style archive from a shared archive.
! 16015: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
! 16016:
! 16017: # Create a temporary old-style archive to link instead of a shared archive.
! 16018: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
! 16019:
! 16020: # Commands used to build and install a shared archive.
! 16021: archive_cmds=$lt_archive_cmds_F77
! 16022: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
! 16023: postinstall_cmds=$lt_postinstall_cmds
! 16024: postuninstall_cmds=$lt_postuninstall_cmds
! 16025:
! 16026: # Commands used to build a loadable module (assumed same as above if empty)
! 16027: module_cmds=$lt_module_cmds_F77
! 16028: module_expsym_cmds=$lt_module_expsym_cmds_F77
! 16029:
! 16030: # Commands to strip libraries.
! 16031: old_striplib=$lt_old_striplib
! 16032: striplib=$lt_striplib
! 16033:
! 16034: # Dependencies to place before the objects being linked to create a
! 16035: # shared library.
! 16036: predep_objects=$lt_predep_objects_F77
! 16037:
! 16038: # Dependencies to place after the objects being linked to create a
! 16039: # shared library.
! 16040: postdep_objects=$lt_postdep_objects_F77
! 16041:
! 16042: # Dependencies to place before the objects being linked to create a
! 16043: # shared library.
! 16044: predeps=$lt_predeps_F77
! 16045:
! 16046: # Dependencies to place after the objects being linked to create a
! 16047: # shared library.
! 16048: postdeps=$lt_postdeps_F77
! 16049:
! 16050: # The library search path used internally by the compiler when linking
! 16051: # a shared library.
! 16052: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
! 16053:
! 16054: # Method to check whether dependent libraries are shared objects.
! 16055: deplibs_check_method=$lt_deplibs_check_method
! 16056:
! 16057: # Command to use when deplibs_check_method == file_magic.
! 16058: file_magic_cmd=$lt_file_magic_cmd
! 16059:
! 16060: # Flag that allows shared libraries with undefined symbols to be built.
! 16061: allow_undefined_flag=$lt_allow_undefined_flag_F77
! 16062:
! 16063: # Flag that forces no undefined symbols.
! 16064: no_undefined_flag=$lt_no_undefined_flag_F77
! 16065:
! 16066: # Commands used to finish a libtool library installation in a directory.
! 16067: finish_cmds=$lt_finish_cmds
! 16068:
! 16069: # Same as above, but a single script fragment to be evaled but not shown.
! 16070: finish_eval=$lt_finish_eval
! 16071:
! 16072: # Take the output of nm and produce a listing of raw symbols and C names.
! 16073: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 16074:
! 16075: # Transform the output of nm in a proper C declaration
! 16076: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 16077:
! 16078: # Transform the output of nm in a C name address pair
! 16079: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 16080:
! 16081: # This is the shared library runtime path variable.
! 16082: runpath_var=$runpath_var
! 16083:
! 16084: # This is the shared library path variable.
! 16085: shlibpath_var=$shlibpath_var
! 16086:
! 16087: # Is shlibpath searched before the hard-coded library search path?
! 16088: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 16089:
! 16090: # How to hardcode a shared library path into an executable.
! 16091: hardcode_action=$hardcode_action_F77
! 16092:
! 16093: # Whether we should hardcode library paths into libraries.
! 16094: hardcode_into_libs=$hardcode_into_libs
! 16095:
! 16096: # Flag to hardcode \$libdir into a binary during linking.
! 16097: # This must work even if \$libdir does not exist.
! 16098: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
! 16099:
! 16100: # If ld is used when linking, flag to hardcode \$libdir into
! 16101: # a binary during linking. This must work even if \$libdir does
! 16102: # not exist.
! 16103: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
! 16104:
! 16105: # Whether we need a single -rpath flag with a separated argument.
! 16106: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
! 16107:
! 16108: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 16109: # resulting binary.
! 16110: hardcode_direct=$hardcode_direct_F77
! 16111:
! 16112: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 16113: # resulting binary.
! 16114: hardcode_minus_L=$hardcode_minus_L_F77
! 16115:
! 16116: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 16117: # the resulting binary.
! 16118: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
! 16119:
! 16120: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 16121: # and all subsequent libraries and executables linked against it.
! 16122: hardcode_automatic=$hardcode_automatic_F77
! 16123:
! 16124: # Variables whose values should be saved in libtool wrapper scripts and
! 16125: # restored at relink time.
! 16126: variables_saved_for_relink="$variables_saved_for_relink"
! 16127:
! 16128: # Whether libtool must link a program against all its dependency libraries.
! 16129: link_all_deplibs=$link_all_deplibs_F77
! 16130:
! 16131: # Compile-time system search path for libraries
! 16132: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 16133:
! 16134: # Run-time system search path for libraries
! 16135: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 16136:
! 16137: # Fix the shell variable \$srcfile for the compiler.
! 16138: fix_srcfile_path="$fix_srcfile_path_F77"
! 16139:
! 16140: # Set to yes if exported symbols are required.
! 16141: always_export_symbols=$always_export_symbols_F77
! 16142:
! 16143: # The commands to list exported symbols.
! 16144: export_symbols_cmds=$lt_export_symbols_cmds_F77
! 16145:
! 16146: # The commands to extract the exported symbol list from a shared archive.
! 16147: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 16148:
! 16149: # Symbols that should not be listed in the preloaded symbols.
! 16150: exclude_expsyms=$lt_exclude_expsyms_F77
! 16151:
! 16152: # Symbols that must always be exported.
! 16153: include_expsyms=$lt_include_expsyms_F77
! 16154:
! 16155: # ### END LIBTOOL TAG CONFIG: $tagname
! 16156:
! 16157: __EOF__
! 16158:
! 16159:
! 16160: else
! 16161: # If there is no Makefile yet, we rely on a make rule to execute
! 16162: # `config.status --recheck' to rerun these tests and create the
! 16163: # libtool script then.
! 16164: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 16165: if test -f "$ltmain_in"; then
! 16166: test -f Makefile && make "$ltmain"
! 16167: fi
! 16168: fi
! 16169:
! 16170:
! 16171: ac_ext=c
! 16172: ac_cpp='$CPP $CPPFLAGS'
! 16173: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 16174: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 16175: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 16176:
! 16177: CC="$lt_save_CC"
! 16178:
! 16179: else
! 16180: tagname=""
! 16181: fi
! 16182: ;;
! 16183:
! 16184: GCJ)
! 16185: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
! 16186:
! 16187:
! 16188: # Source file extension for Java test sources.
! 16189: ac_ext=java
! 16190:
! 16191: # Object file extension for compiled Java test sources.
! 16192: objext=o
! 16193: objext_GCJ=$objext
! 16194:
! 16195: # Code to be used in simple compile tests
! 16196: lt_simple_compile_test_code="class foo {}\n"
! 16197:
! 16198: # Code to be used in simple link tests
! 16199: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
! 16200:
! 16201: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 16202:
! 16203: # If no C compiler was specified, use CC.
! 16204: LTCC=${LTCC-"$CC"}
! 16205:
! 16206: # If no C compiler flags were specified, use CFLAGS.
! 16207: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 16208:
! 16209: # Allow CC to be a program name with arguments.
! 16210: compiler=$CC
! 16211:
! 16212:
! 16213: # save warnings/boilerplate of simple test code
! 16214: ac_outfile=conftest.$ac_objext
! 16215: printf "$lt_simple_compile_test_code" >conftest.$ac_ext
! 16216: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 16217: _lt_compiler_boilerplate=`cat conftest.err`
! 16218: $rm conftest*
! 16219:
! 16220: ac_outfile=conftest.$ac_objext
! 16221: printf "$lt_simple_link_test_code" >conftest.$ac_ext
! 16222: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 16223: _lt_linker_boilerplate=`cat conftest.err`
! 16224: $rm conftest*
! 16225:
! 16226:
! 16227: # Allow CC to be a program name with arguments.
! 16228: lt_save_CC="$CC"
! 16229: CC=${GCJ-"gcj"}
! 16230: compiler=$CC
! 16231: compiler_GCJ=$CC
! 16232: for cc_temp in $compiler""; do
! 16233: case $cc_temp in
! 16234: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 16235: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 16236: \-*) ;;
! 16237: *) break;;
! 16238: esac
! 16239: done
! 16240: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 16241:
! 16242:
! 16243: # GCJ did not exist at the time GCC didn't implicitly link libc in.
! 16244: archive_cmds_need_lc_GCJ=no
! 16245:
! 16246: old_archive_cmds_GCJ=$old_archive_cmds
! 16247:
! 16248:
! 16249: lt_prog_compiler_no_builtin_flag_GCJ=
! 16250:
! 16251: if test "$GCC" = yes; then
! 16252: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
! 16253:
! 16254:
! 16255: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 16256: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
! 16257: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 16258: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16259: else
! 16260: lt_cv_prog_compiler_rtti_exceptions=no
! 16261: ac_outfile=conftest.$ac_objext
! 16262: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 16263: lt_compiler_flag="-fno-rtti -fno-exceptions"
! 16264: # Insert the option either (1) after the last *FLAGS variable, or
! 16265: # (2) before a word containing "conftest.", or (3) at the end.
! 16266: # Note that $ac_compile itself does not contain backslashes and begins
! 16267: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 16268: # The option is referenced via a variable to avoid confusing sed.
! 16269: lt_compile=`echo "$ac_compile" | $SED \
! 16270: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 16271: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 16272: -e 's:$: $lt_compiler_flag:'`
! 16273: (eval echo "\"\$as_me:16273: $lt_compile\"" >&5)
! 16274: (eval "$lt_compile" 2>conftest.err)
! 16275: ac_status=$?
! 16276: cat conftest.err >&5
! 16277: echo "$as_me:16277: \$? = $ac_status" >&5
! 16278: if (exit $ac_status) && test -s "$ac_outfile"; then
! 16279: # The compiler can only warn and ignore the option if not recognized
! 16280: # So say no if there are warnings other than the usual output.
! 16281: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 16282: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 16283: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 16284: lt_cv_prog_compiler_rtti_exceptions=yes
! 16285: fi
! 16286: fi
! 16287: $rm conftest*
! 16288:
! 16289: fi
! 16290: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 16291: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
! 16292:
! 16293: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 16294: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
! 16295: else
! 16296: :
! 16297: fi
! 16298:
! 16299: fi
! 16300:
! 16301: lt_prog_compiler_wl_GCJ=
! 16302: lt_prog_compiler_pic_GCJ=
! 16303: lt_prog_compiler_static_GCJ=
! 16304:
! 16305: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 16306: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
! 16307:
! 16308: if test "$GCC" = yes; then
! 16309: lt_prog_compiler_wl_GCJ='-Wl,'
! 16310: lt_prog_compiler_static_GCJ='-static'
! 16311:
! 16312: case $host_os in
! 16313: aix*)
! 16314: # All AIX code is PIC.
! 16315: if test "$host_cpu" = ia64; then
! 16316: # AIX 5 now supports IA64 processor
! 16317: lt_prog_compiler_static_GCJ='-Bstatic'
! 16318: fi
! 16319: ;;
! 16320:
! 16321: amigaos*)
! 16322: # FIXME: we need at least 68020 code to build shared libraries, but
! 16323: # adding the `-m68020' flag to GCC prevents building anything better,
! 16324: # like `-m68040'.
! 16325: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
! 16326: ;;
! 16327:
! 16328: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 16329: # PIC is the default for these OSes.
! 16330: ;;
! 16331:
! 16332: mingw* | pw32* | os2*)
! 16333: # This hack is so that the source file can tell whether it is being
! 16334: # built for inclusion in a dll (and should export symbols for example).
! 16335: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
! 16336: ;;
! 16337:
! 16338: darwin* | rhapsody*)
! 16339: # PIC is the default on this platform
! 16340: # Common symbols not allowed in MH_DYLIB files
! 16341: lt_prog_compiler_pic_GCJ='-fno-common'
! 16342: ;;
! 16343:
! 16344: interix3*)
! 16345: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 16346: # Instead, we relocate shared libraries at runtime.
! 16347: ;;
! 16348:
! 16349: msdosdjgpp*)
! 16350: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 16351: # on systems that don't support them.
! 16352: lt_prog_compiler_can_build_shared_GCJ=no
! 16353: enable_shared=no
! 16354: ;;
! 16355:
! 16356: sysv4*MP*)
! 16357: if test -d /usr/nec; then
! 16358: lt_prog_compiler_pic_GCJ=-Kconform_pic
! 16359: fi
! 16360: ;;
! 16361:
! 16362: hpux*)
! 16363: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 16364: # not for PA HP-UX.
! 16365: case $host_cpu in
! 16366: hppa*64*|ia64*)
! 16367: # +Z the default
! 16368: ;;
! 16369: *)
! 16370: lt_prog_compiler_pic_GCJ='-fPIC'
! 16371: ;;
! 16372: esac
! 16373: ;;
! 16374:
! 16375: *)
! 16376: lt_prog_compiler_pic_GCJ='-fPIC'
! 16377: ;;
! 16378: esac
! 16379: else
! 16380: # PORTME Check for flag to pass linker flags through the system compiler.
! 16381: case $host_os in
! 16382: aix*)
! 16383: lt_prog_compiler_wl_GCJ='-Wl,'
! 16384: if test "$host_cpu" = ia64; then
! 16385: # AIX 5 now supports IA64 processor
! 16386: lt_prog_compiler_static_GCJ='-Bstatic'
! 16387: else
! 16388: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
! 16389: fi
! 16390: ;;
! 16391: darwin*)
! 16392: # PIC is the default on this platform
! 16393: # Common symbols not allowed in MH_DYLIB files
! 16394: case $cc_basename in
! 16395: xlc*)
! 16396: lt_prog_compiler_pic_GCJ='-qnocommon'
! 16397: lt_prog_compiler_wl_GCJ='-Wl,'
! 16398: ;;
! 16399: esac
! 16400: ;;
! 16401:
! 16402: mingw* | pw32* | os2*)
! 16403: # This hack is so that the source file can tell whether it is being
! 16404: # built for inclusion in a dll (and should export symbols for example).
! 16405: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
! 16406: ;;
! 16407:
! 16408: hpux9* | hpux10* | hpux11*)
! 16409: lt_prog_compiler_wl_GCJ='-Wl,'
! 16410: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 16411: # not for PA HP-UX.
! 16412: case $host_cpu in
! 16413: hppa*64*|ia64*)
! 16414: # +Z the default
! 16415: ;;
! 16416: *)
! 16417: lt_prog_compiler_pic_GCJ='+Z'
! 16418: ;;
! 16419: esac
! 16420: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 16421: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
! 16422: ;;
! 16423:
! 16424: irix5* | irix6* | nonstopux*)
! 16425: lt_prog_compiler_wl_GCJ='-Wl,'
! 16426: # PIC (with -KPIC) is the default.
! 16427: lt_prog_compiler_static_GCJ='-non_shared'
! 16428: ;;
! 16429:
! 16430: newsos6)
! 16431: lt_prog_compiler_pic_GCJ='-KPIC'
! 16432: lt_prog_compiler_static_GCJ='-Bstatic'
! 16433: ;;
! 16434:
! 16435: linux*)
! 16436: case $cc_basename in
! 16437: icc* | ecc*)
! 16438: lt_prog_compiler_wl_GCJ='-Wl,'
! 16439: lt_prog_compiler_pic_GCJ='-KPIC'
! 16440: lt_prog_compiler_static_GCJ='-static'
! 16441: ;;
! 16442: pgcc* | pgf77* | pgf90* | pgf95*)
! 16443: # Portland Group compilers (*not* the Pentium gcc compiler,
! 16444: # which looks to be a dead project)
! 16445: lt_prog_compiler_wl_GCJ='-Wl,'
! 16446: lt_prog_compiler_pic_GCJ='-fpic'
! 16447: lt_prog_compiler_static_GCJ='-Bstatic'
! 16448: ;;
! 16449: ccc*)
! 16450: lt_prog_compiler_wl_GCJ='-Wl,'
! 16451: # All Alpha code is PIC.
! 16452: lt_prog_compiler_static_GCJ='-non_shared'
! 16453: ;;
! 16454: esac
! 16455: ;;
! 16456:
! 16457: osf3* | osf4* | osf5*)
! 16458: lt_prog_compiler_wl_GCJ='-Wl,'
! 16459: # All OSF/1 code is PIC.
! 16460: lt_prog_compiler_static_GCJ='-non_shared'
! 16461: ;;
! 16462:
! 16463: solaris*)
! 16464: lt_prog_compiler_pic_GCJ='-KPIC'
! 16465: lt_prog_compiler_static_GCJ='-Bstatic'
! 16466: case $cc_basename in
! 16467: f77* | f90* | f95*)
! 16468: lt_prog_compiler_wl_GCJ='-Qoption ld ';;
! 16469: *)
! 16470: lt_prog_compiler_wl_GCJ='-Wl,';;
! 16471: esac
! 16472: ;;
! 16473:
! 16474: sunos4*)
! 16475: lt_prog_compiler_wl_GCJ='-Qoption ld '
! 16476: lt_prog_compiler_pic_GCJ='-PIC'
! 16477: lt_prog_compiler_static_GCJ='-Bstatic'
! 16478: ;;
! 16479:
! 16480: sysv4 | sysv4.2uw2* | sysv4.3*)
! 16481: lt_prog_compiler_wl_GCJ='-Wl,'
! 16482: lt_prog_compiler_pic_GCJ='-KPIC'
! 16483: lt_prog_compiler_static_GCJ='-Bstatic'
! 16484: ;;
! 16485:
! 16486: sysv4*MP*)
! 16487: if test -d /usr/nec ;then
! 16488: lt_prog_compiler_pic_GCJ='-Kconform_pic'
! 16489: lt_prog_compiler_static_GCJ='-Bstatic'
! 16490: fi
! 16491: ;;
! 16492:
! 16493: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 16494: lt_prog_compiler_wl_GCJ='-Wl,'
! 16495: lt_prog_compiler_pic_GCJ='-KPIC'
! 16496: lt_prog_compiler_static_GCJ='-Bstatic'
! 16497: ;;
! 16498:
! 16499: unicos*)
! 16500: lt_prog_compiler_wl_GCJ='-Wl,'
! 16501: lt_prog_compiler_can_build_shared_GCJ=no
! 16502: ;;
! 16503:
! 16504: uts4*)
! 16505: lt_prog_compiler_pic_GCJ='-pic'
! 16506: lt_prog_compiler_static_GCJ='-Bstatic'
! 16507: ;;
! 16508:
! 16509: *)
! 16510: lt_prog_compiler_can_build_shared_GCJ=no
! 16511: ;;
! 16512: esac
! 16513: fi
! 16514:
! 16515: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
! 16516: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
! 16517:
! 16518: #
! 16519: # Check to make sure the PIC flag actually works.
! 16520: #
! 16521: if test -n "$lt_prog_compiler_pic_GCJ"; then
! 16522:
! 16523: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
! 16524: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
! 16525: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
! 16526: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16527: else
! 16528: lt_prog_compiler_pic_works_GCJ=no
! 16529: ac_outfile=conftest.$ac_objext
! 16530: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 16531: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
! 16532: # Insert the option either (1) after the last *FLAGS variable, or
! 16533: # (2) before a word containing "conftest.", or (3) at the end.
! 16534: # Note that $ac_compile itself does not contain backslashes and begins
! 16535: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 16536: # The option is referenced via a variable to avoid confusing sed.
! 16537: lt_compile=`echo "$ac_compile" | $SED \
! 16538: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 16539: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 16540: -e 's:$: $lt_compiler_flag:'`
! 16541: (eval echo "\"\$as_me:16541: $lt_compile\"" >&5)
! 16542: (eval "$lt_compile" 2>conftest.err)
! 16543: ac_status=$?
! 16544: cat conftest.err >&5
! 16545: echo "$as_me:16545: \$? = $ac_status" >&5
! 16546: if (exit $ac_status) && test -s "$ac_outfile"; then
! 16547: # The compiler can only warn and ignore the option if not recognized
! 16548: # So say no if there are warnings other than the usual output.
! 16549: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 16550: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 16551: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 16552: lt_prog_compiler_pic_works_GCJ=yes
! 16553: fi
! 16554: fi
! 16555: $rm conftest*
! 16556:
! 16557: fi
! 16558: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
! 16559: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
! 16560:
! 16561: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
! 16562: case $lt_prog_compiler_pic_GCJ in
! 16563: "" | " "*) ;;
! 16564: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
! 16565: esac
! 16566: else
! 16567: lt_prog_compiler_pic_GCJ=
! 16568: lt_prog_compiler_can_build_shared_GCJ=no
! 16569: fi
! 16570:
! 16571: fi
! 16572: case $host_os in
! 16573: # For platforms which do not support PIC, -DPIC is meaningless:
! 16574: *djgpp*)
! 16575: lt_prog_compiler_pic_GCJ=
! 16576: ;;
! 16577: *)
! 16578: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
! 16579: ;;
! 16580: esac
! 16581:
! 16582: #
! 16583: # Check to make sure the static flag actually works.
! 16584: #
! 16585: wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
! 16586: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 16587: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 16588: if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
! 16589: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16590: else
! 16591: lt_prog_compiler_static_works_GCJ=no
! 16592: save_LDFLAGS="$LDFLAGS"
! 16593: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 16594: printf "$lt_simple_link_test_code" > conftest.$ac_ext
! 16595: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 16596: # The linker can only warn and ignore the option if not recognized
! 16597: # So say no if there are warnings
! 16598: if test -s conftest.err; then
! 16599: # Append any errors to the config.log.
! 16600: cat conftest.err 1>&5
! 16601: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 16602: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 16603: if diff conftest.exp conftest.er2 >/dev/null; then
! 16604: lt_prog_compiler_static_works_GCJ=yes
! 16605: fi
! 16606: else
! 16607: lt_prog_compiler_static_works_GCJ=yes
! 16608: fi
! 16609: fi
! 16610: $rm conftest*
! 16611: LDFLAGS="$save_LDFLAGS"
! 16612:
! 16613: fi
! 16614: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
! 16615: echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
! 16616:
! 16617: if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
! 16618: :
! 16619: else
! 16620: lt_prog_compiler_static_GCJ=
! 16621: fi
! 16622:
! 16623:
! 16624: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 16625: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 16626: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
! 16627: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16628: else
! 16629: lt_cv_prog_compiler_c_o_GCJ=no
! 16630: $rm -r conftest 2>/dev/null
! 16631: mkdir conftest
! 16632: cd conftest
! 16633: mkdir out
! 16634: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 16635:
! 16636: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 16637: # Insert the option either (1) after the last *FLAGS variable, or
! 16638: # (2) before a word containing "conftest.", or (3) at the end.
! 16639: # Note that $ac_compile itself does not contain backslashes and begins
! 16640: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 16641: lt_compile=`echo "$ac_compile" | $SED \
! 16642: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 16643: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 16644: -e 's:$: $lt_compiler_flag:'`
! 16645: (eval echo "\"\$as_me:16645: $lt_compile\"" >&5)
! 16646: (eval "$lt_compile" 2>out/conftest.err)
! 16647: ac_status=$?
! 16648: cat out/conftest.err >&5
! 16649: echo "$as_me:16649: \$? = $ac_status" >&5
! 16650: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 16651: then
! 16652: # The compiler can only warn and ignore the option if not recognized
! 16653: # So say no if there are warnings
! 16654: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 16655: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 16656: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
! 16657: lt_cv_prog_compiler_c_o_GCJ=yes
! 16658: fi
! 16659: fi
! 16660: chmod u+w . 2>&5
! 16661: $rm conftest*
! 16662: # SGI C++ compiler will create directory out/ii_files/ for
! 16663: # template instantiation
! 16664: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 16665: $rm out/* && rmdir out
! 16666: cd ..
! 16667: rmdir conftest
! 16668: $rm conftest*
! 16669:
! 16670: fi
! 16671: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
! 16672: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
! 16673:
! 16674:
! 16675: hard_links="nottested"
! 16676: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
! 16677: # do not overwrite the value of need_locks provided by the user
! 16678: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 16679: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
! 16680: hard_links=yes
! 16681: $rm conftest*
! 16682: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 16683: touch conftest.a
! 16684: ln conftest.a conftest.b 2>&5 || hard_links=no
! 16685: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 16686: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 16687: echo "${ECHO_T}$hard_links" >&6; }
! 16688: if test "$hard_links" = no; then
! 16689: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 16690: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 16691: need_locks=warn
! 16692: fi
! 16693: else
! 16694: need_locks=no
! 16695: fi
! 16696:
! 16697: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 16698: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
! 16699:
! 16700: runpath_var=
! 16701: allow_undefined_flag_GCJ=
! 16702: enable_shared_with_static_runtimes_GCJ=no
! 16703: archive_cmds_GCJ=
! 16704: archive_expsym_cmds_GCJ=
! 16705: old_archive_From_new_cmds_GCJ=
! 16706: old_archive_from_expsyms_cmds_GCJ=
! 16707: export_dynamic_flag_spec_GCJ=
! 16708: whole_archive_flag_spec_GCJ=
! 16709: thread_safe_flag_spec_GCJ=
! 16710: hardcode_libdir_flag_spec_GCJ=
! 16711: hardcode_libdir_flag_spec_ld_GCJ=
! 16712: hardcode_libdir_separator_GCJ=
! 16713: hardcode_direct_GCJ=no
! 16714: hardcode_minus_L_GCJ=no
! 16715: hardcode_shlibpath_var_GCJ=unsupported
! 16716: link_all_deplibs_GCJ=unknown
! 16717: hardcode_automatic_GCJ=no
! 16718: module_cmds_GCJ=
! 16719: module_expsym_cmds_GCJ=
! 16720: always_export_symbols_GCJ=no
! 16721: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 16722: # include_expsyms should be a list of space-separated symbols to be *always*
! 16723: # included in the symbol list
! 16724: include_expsyms_GCJ=
! 16725: # exclude_expsyms can be an extended regexp of symbols to exclude
! 16726: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 16727: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 16728: # as well as any symbol that contains `d'.
! 16729: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
! 16730: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 16731: # platforms (ab)use it in PIC code, but their linkers get confused if
! 16732: # the symbol is explicitly referenced. Since portable code cannot
! 16733: # rely on this symbol name, it's probably fine to never include it in
! 16734: # preloaded symbol tables.
! 16735: extract_expsyms_cmds=
! 16736: # Just being paranoid about ensuring that cc_basename is set.
! 16737: for cc_temp in $compiler""; do
! 16738: case $cc_temp in
! 16739: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 16740: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 16741: \-*) ;;
! 16742: *) break;;
! 16743: esac
! 16744: done
! 16745: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 16746:
! 16747: case $host_os in
! 16748: cygwin* | mingw* | pw32*)
! 16749: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 16750: # When not using gcc, we currently assume that we are using
! 16751: # Microsoft Visual C++.
! 16752: if test "$GCC" != yes; then
! 16753: with_gnu_ld=no
! 16754: fi
! 16755: ;;
! 16756: interix*)
! 16757: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 16758: with_gnu_ld=yes
! 16759: ;;
! 16760: openbsd*)
! 16761: with_gnu_ld=no
! 16762: ;;
! 16763: esac
! 16764:
! 16765: ld_shlibs_GCJ=yes
! 16766: if test "$with_gnu_ld" = yes; then
! 16767: # If archive_cmds runs LD, not CC, wlarc should be empty
! 16768: wlarc='${wl}'
! 16769:
! 16770: # Set some defaults for GNU ld with shared library support. These
! 16771: # are reset later if shared libraries are not supported. Putting them
! 16772: # here allows them to be overridden if necessary.
! 16773: runpath_var=LD_RUN_PATH
! 16774: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
! 16775: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
! 16776: # ancient GNU ld didn't support --whole-archive et. al.
! 16777: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 16778: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 16779: else
! 16780: whole_archive_flag_spec_GCJ=
! 16781: fi
! 16782: supports_anon_versioning=no
! 16783: case `$LD -v 2>/dev/null` in
! 16784: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 16785: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 16786: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 16787: *\ 2.11.*) ;; # other 2.11 versions
! 16788: *) supports_anon_versioning=yes ;;
! 16789: esac
! 16790:
! 16791: # See if GNU ld supports shared libraries.
! 16792: case $host_os in
! 16793: aix3* | aix4* | aix5*)
! 16794: # On AIX/PPC, the GNU linker is very broken
! 16795: if test "$host_cpu" != ia64; then
! 16796: ld_shlibs_GCJ=no
! 16797: cat <<EOF 1>&2
! 16798:
! 16799: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 16800: *** to be unable to reliably create shared libraries on AIX.
! 16801: *** Therefore, libtool is disabling shared libraries support. If you
! 16802: *** really care for shared libraries, you may want to modify your PATH
! 16803: *** so that a non-GNU linker is found, and then restart.
! 16804:
! 16805: EOF
! 16806: fi
! 16807: ;;
! 16808:
! 16809: amigaos*)
! 16810: 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)'
! 16811: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 16812: hardcode_minus_L_GCJ=yes
! 16813:
! 16814: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 16815: # that the semantics of dynamic libraries on AmigaOS, at least up
! 16816: # to version 4, is to share data among multiple programs linked
! 16817: # with the same dynamic library. Since this doesn't match the
! 16818: # behavior of shared libraries on other platforms, we can't use
! 16819: # them.
! 16820: ld_shlibs_GCJ=no
! 16821: ;;
! 16822:
! 16823: beos*)
! 16824: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16825: allow_undefined_flag_GCJ=unsupported
! 16826: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 16827: # support --undefined. This deserves some investigation. FIXME
! 16828: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16829: else
! 16830: ld_shlibs_GCJ=no
! 16831: fi
! 16832: ;;
! 16833:
! 16834: cygwin* | mingw* | pw32*)
! 16835: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
! 16836: # as there is no search path for DLLs.
! 16837: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 16838: allow_undefined_flag_GCJ=unsupported
! 16839: always_export_symbols_GCJ=no
! 16840: enable_shared_with_static_runtimes_GCJ=yes
! 16841: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 16842:
! 16843: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 16844: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 16845: # If the export-symbols file already is a .def file (1st line
! 16846: # is EXPORTS), use it as is; otherwise, prepend...
! 16847: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 16848: cp $export_symbols $output_objdir/$soname.def;
! 16849: else
! 16850: echo EXPORTS > $output_objdir/$soname.def;
! 16851: cat $export_symbols >> $output_objdir/$soname.def;
! 16852: fi~
! 16853: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 16854: else
! 16855: ld_shlibs_GCJ=no
! 16856: fi
! 16857: ;;
! 16858:
! 16859: interix3*)
! 16860: hardcode_direct_GCJ=no
! 16861: hardcode_shlibpath_var_GCJ=no
! 16862: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 16863: export_dynamic_flag_spec_GCJ='${wl}-E'
! 16864: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 16865: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 16866: # default) and relocated if they conflict, which is a slow very memory
! 16867: # consuming and fragmenting process. To avoid this, we pick a random,
! 16868: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 16869: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 16870: 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'
! 16871: 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'
! 16872: ;;
! 16873:
! 16874: linux*)
! 16875: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16876: tmp_addflag=
! 16877: case $cc_basename,$host_cpu in
! 16878: pgcc*) # Portland Group C compiler
! 16879: 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'
! 16880: tmp_addflag=' $pic_flag'
! 16881: ;;
! 16882: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 16883: 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'
! 16884: tmp_addflag=' $pic_flag -Mnomain' ;;
! 16885: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 16886: tmp_addflag=' -i_dynamic' ;;
! 16887: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 16888: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 16889: ifc* | ifort*) # Intel Fortran compiler
! 16890: tmp_addflag=' -nofor_main' ;;
! 16891: esac
! 16892: archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16893:
! 16894: if test $supports_anon_versioning = yes; then
! 16895: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
! 16896: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 16897: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 16898: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 16899: fi
! 16900: else
! 16901: ld_shlibs_GCJ=no
! 16902: fi
! 16903: ;;
! 16904:
! 16905: netbsd*)
! 16906: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 16907: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 16908: wlarc=
! 16909: else
! 16910: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16911: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 16912: fi
! 16913: ;;
! 16914:
! 16915: solaris*)
! 16916: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 16917: ld_shlibs_GCJ=no
! 16918: cat <<EOF 1>&2
! 16919:
! 16920: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 16921: *** create shared libraries on Solaris systems. Therefore, libtool
! 16922: *** is disabling shared libraries support. We urge you to upgrade GNU
! 16923: *** binutils to release 2.9.1 or newer. Another option is to modify
! 16924: *** your PATH or compiler configuration so that the native linker is
! 16925: *** used, and then restart.
! 16926:
! 16927: EOF
! 16928: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16929: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16930: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 16931: else
! 16932: ld_shlibs_GCJ=no
! 16933: fi
! 16934: ;;
! 16935:
! 16936: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 16937: case `$LD -v 2>&1` in
! 16938: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 16939: ld_shlibs_GCJ=no
! 16940: cat <<_LT_EOF 1>&2
! 16941:
! 16942: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 16943: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 16944: *** is disabling shared libraries support. We urge you to upgrade GNU
! 16945: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 16946: *** your PATH or compiler configuration so that the native linker is
! 16947: *** used, and then restart.
! 16948:
! 16949: _LT_EOF
! 16950: ;;
! 16951: *)
! 16952: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16953: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 16954: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 16955: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 16956: else
! 16957: ld_shlibs_GCJ=no
! 16958: fi
! 16959: ;;
! 16960: esac
! 16961: ;;
! 16962:
! 16963: sunos4*)
! 16964: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 16965: wlarc=
! 16966: hardcode_direct_GCJ=yes
! 16967: hardcode_shlibpath_var_GCJ=no
! 16968: ;;
! 16969:
! 16970: *)
! 16971: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16972: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16973: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 16974: else
! 16975: ld_shlibs_GCJ=no
! 16976: fi
! 16977: ;;
! 16978: esac
! 16979:
! 16980: if test "$ld_shlibs_GCJ" = no; then
! 16981: runpath_var=
! 16982: hardcode_libdir_flag_spec_GCJ=
! 16983: export_dynamic_flag_spec_GCJ=
! 16984: whole_archive_flag_spec_GCJ=
! 16985: fi
! 16986: else
! 16987: # PORTME fill in a description of your system's linker (not GNU ld)
! 16988: case $host_os in
! 16989: aix3*)
! 16990: allow_undefined_flag_GCJ=unsupported
! 16991: always_export_symbols_GCJ=yes
! 16992: 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'
! 16993: # Note: this linker hardcodes the directories in LIBPATH if there
! 16994: # are no directories specified by -L.
! 16995: hardcode_minus_L_GCJ=yes
! 16996: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
! 16997: # Neither direct hardcoding nor static linking is supported with a
! 16998: # broken collect2.
! 16999: hardcode_direct_GCJ=unsupported
! 17000: fi
! 17001: ;;
! 17002:
! 17003: aix4* | aix5*)
! 17004: if test "$host_cpu" = ia64; then
! 17005: # On IA64, the linker does run time linking by default, so we don't
! 17006: # have to do anything special.
! 17007: aix_use_runtimelinking=no
! 17008: exp_sym_flag='-Bexport'
! 17009: no_entry_flag=""
! 17010: else
! 17011: # If we're using GNU nm, then we don't want the "-C" option.
! 17012: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 17013: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 17014: 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'
! 17015: else
! 17016: 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'
! 17017: fi
! 17018: aix_use_runtimelinking=no
! 17019:
! 17020: # Test if we are trying to use run time linking or normal
! 17021: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 17022: # need to do runtime linking.
! 17023: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 17024: for ld_flag in $LDFLAGS; do
! 17025: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 17026: aix_use_runtimelinking=yes
! 17027: break
! 17028: fi
! 17029: done
! 17030: ;;
! 17031: esac
! 17032:
! 17033: exp_sym_flag='-bexport'
! 17034: no_entry_flag='-bnoentry'
! 17035: fi
! 17036:
! 17037: # When large executables or shared objects are built, AIX ld can
! 17038: # have problems creating the table of contents. If linking a library
! 17039: # or program results in "error TOC overflow" add -mminimal-toc to
! 17040: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 17041: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 17042:
! 17043: archive_cmds_GCJ=''
! 17044: hardcode_direct_GCJ=yes
! 17045: hardcode_libdir_separator_GCJ=':'
! 17046: link_all_deplibs_GCJ=yes
! 17047:
! 17048: if test "$GCC" = yes; then
! 17049: case $host_os in aix4.[012]|aix4.[012].*)
! 17050: # We only want to do this on AIX 4.2 and lower, the check
! 17051: # below for broken collect2 doesn't work under 4.3+
! 17052: collect2name=`${CC} -print-prog-name=collect2`
! 17053: if test -f "$collect2name" && \
! 17054: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 17055: then
! 17056: # We have reworked collect2
! 17057: hardcode_direct_GCJ=yes
! 17058: else
! 17059: # We have old collect2
! 17060: hardcode_direct_GCJ=unsupported
! 17061: # It fails to find uninstalled libraries when the uninstalled
! 17062: # path is not listed in the libpath. Setting hardcode_minus_L
! 17063: # to unsupported forces relinking
! 17064: hardcode_minus_L_GCJ=yes
! 17065: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17066: hardcode_libdir_separator_GCJ=
! 17067: fi
! 17068: ;;
! 17069: esac
! 17070: shared_flag='-shared'
! 17071: if test "$aix_use_runtimelinking" = yes; then
! 17072: shared_flag="$shared_flag "'${wl}-G'
! 17073: fi
! 17074: else
! 17075: # not using gcc
! 17076: if test "$host_cpu" = ia64; then
! 17077: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 17078: # chokes on -Wl,-G. The following line is correct:
! 17079: shared_flag='-G'
! 17080: else
! 17081: if test "$aix_use_runtimelinking" = yes; then
! 17082: shared_flag='${wl}-G'
! 17083: else
! 17084: shared_flag='${wl}-bM:SRE'
! 17085: fi
! 17086: fi
! 17087: fi
! 17088:
! 17089: # It seems that -bexpall does not export symbols beginning with
! 17090: # underscore (_), so it is better to generate a list of symbols to export.
! 17091: always_export_symbols_GCJ=yes
! 17092: if test "$aix_use_runtimelinking" = yes; then
! 17093: # Warning - without using the other runtime loading flags (-brtl),
! 17094: # -berok will link without error, but may produce a broken library.
! 17095: allow_undefined_flag_GCJ='-berok'
! 17096: # Determine the default libpath from the value encoded in an empty executable.
! 17097: cat >conftest.$ac_ext <<_ACEOF
! 17098: /* confdefs.h. */
! 17099: _ACEOF
! 17100: cat confdefs.h >>conftest.$ac_ext
! 17101: cat >>conftest.$ac_ext <<_ACEOF
! 17102: /* end confdefs.h. */
! 17103:
! 17104: int
! 17105: main ()
! 17106: {
! 17107:
! 17108: ;
! 17109: return 0;
! 17110: }
! 17111: _ACEOF
! 17112: rm -f conftest.$ac_objext conftest$ac_exeext
! 17113: if { (ac_try="$ac_link"
! 17114: case "(($ac_try" in
! 17115: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17116: *) ac_try_echo=$ac_try;;
! 17117: esac
! 17118: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17119: (eval "$ac_link") 2>conftest.er1
! 17120: ac_status=$?
! 17121: grep -v '^ *+' conftest.er1 >conftest.err
! 17122: rm -f conftest.er1
! 17123: cat conftest.err >&5
! 17124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17125: (exit $ac_status); } && {
! 17126: test -z "$ac_c_werror_flag" ||
! 17127: test ! -s conftest.err
! 17128: } && test -s conftest$ac_exeext &&
! 17129: $as_test_x conftest$ac_exeext; then
! 17130:
! 17131: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 17132: }'`
! 17133: # Check for a 64-bit object if we didn't find anything.
! 17134: 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; }
! 17135: }'`; fi
! 17136: else
! 17137: echo "$as_me: failed program was:" >&5
! 17138: sed 's/^/| /' conftest.$ac_ext >&5
! 17139:
! 17140:
! 17141: fi
! 17142:
! 17143: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17144: conftest$ac_exeext conftest.$ac_ext
! 17145: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 17146:
! 17147: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
! 17148: 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"
! 17149: else
! 17150: if test "$host_cpu" = ia64; then
! 17151: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
! 17152: allow_undefined_flag_GCJ="-z nodefs"
! 17153: 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"
! 17154: else
! 17155: # Determine the default libpath from the value encoded in an empty executable.
! 17156: cat >conftest.$ac_ext <<_ACEOF
! 17157: /* confdefs.h. */
! 17158: _ACEOF
! 17159: cat confdefs.h >>conftest.$ac_ext
! 17160: cat >>conftest.$ac_ext <<_ACEOF
! 17161: /* end confdefs.h. */
! 17162:
! 17163: int
! 17164: main ()
! 17165: {
! 17166:
! 17167: ;
! 17168: return 0;
! 17169: }
! 17170: _ACEOF
! 17171: rm -f conftest.$ac_objext conftest$ac_exeext
! 17172: if { (ac_try="$ac_link"
! 17173: case "(($ac_try" in
! 17174: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17175: *) ac_try_echo=$ac_try;;
! 17176: esac
! 17177: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17178: (eval "$ac_link") 2>conftest.er1
! 17179: ac_status=$?
! 17180: grep -v '^ *+' conftest.er1 >conftest.err
! 17181: rm -f conftest.er1
! 17182: cat conftest.err >&5
! 17183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17184: (exit $ac_status); } && {
! 17185: test -z "$ac_c_werror_flag" ||
! 17186: test ! -s conftest.err
! 17187: } && test -s conftest$ac_exeext &&
! 17188: $as_test_x conftest$ac_exeext; then
! 17189:
! 17190: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 17191: }'`
! 17192: # Check for a 64-bit object if we didn't find anything.
! 17193: 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; }
! 17194: }'`; fi
! 17195: else
! 17196: echo "$as_me: failed program was:" >&5
! 17197: sed 's/^/| /' conftest.$ac_ext >&5
! 17198:
! 17199:
! 17200: fi
! 17201:
! 17202: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17203: conftest$ac_exeext conftest.$ac_ext
! 17204: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 17205:
! 17206: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
! 17207: # Warning - without using the other run time loading flags,
! 17208: # -berok will link without error, but may produce a broken library.
! 17209: no_undefined_flag_GCJ=' ${wl}-bernotok'
! 17210: allow_undefined_flag_GCJ=' ${wl}-berok'
! 17211: # Exported symbols can be pulled into shared objects from archives
! 17212: whole_archive_flag_spec_GCJ='$convenience'
! 17213: archive_cmds_need_lc_GCJ=yes
! 17214: # This is similar to how AIX traditionally builds its shared libraries.
! 17215: 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'
! 17216: fi
! 17217: fi
! 17218: ;;
! 17219:
! 17220: amigaos*)
! 17221: 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)'
! 17222: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17223: hardcode_minus_L_GCJ=yes
! 17224: # see comment about different semantics on the GNU ld section
! 17225: ld_shlibs_GCJ=no
! 17226: ;;
! 17227:
! 17228: bsdi[45]*)
! 17229: export_dynamic_flag_spec_GCJ=-rdynamic
! 17230: ;;
! 17231:
! 17232: cygwin* | mingw* | pw32*)
! 17233: # When not using gcc, we currently assume that we are using
! 17234: # Microsoft Visual C++.
! 17235: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 17236: # no search path for DLLs.
! 17237: hardcode_libdir_flag_spec_GCJ=' '
! 17238: allow_undefined_flag_GCJ=unsupported
! 17239: # Tell ltmain to make .lib files, not .a files.
! 17240: libext=lib
! 17241: # Tell ltmain to make .dll files, not .so files.
! 17242: shrext_cmds=".dll"
! 17243: # FIXME: Setting linknames here is a bad hack.
! 17244: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 17245: # The linker will automatically build a .lib file if we build a DLL.
! 17246: old_archive_From_new_cmds_GCJ='true'
! 17247: # FIXME: Should let the user specify the lib program.
! 17248: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 17249: fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
! 17250: enable_shared_with_static_runtimes_GCJ=yes
! 17251: ;;
! 17252:
! 17253: darwin* | rhapsody*)
! 17254: case $host_os in
! 17255: rhapsody* | darwin1.[012])
! 17256: allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
! 17257: ;;
! 17258: *) # Darwin 1.3 on
! 17259: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 17260: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 17261: else
! 17262: case ${MACOSX_DEPLOYMENT_TARGET} in
! 17263: 10.[012])
! 17264: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 17265: ;;
! 17266: 10.*)
! 17267: allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
! 17268: ;;
! 17269: esac
! 17270: fi
! 17271: ;;
! 17272: esac
! 17273: archive_cmds_need_lc_GCJ=no
! 17274: hardcode_direct_GCJ=no
! 17275: hardcode_automatic_GCJ=yes
! 17276: hardcode_shlibpath_var_GCJ=unsupported
! 17277: whole_archive_flag_spec_GCJ=''
! 17278: link_all_deplibs_GCJ=yes
! 17279: if test "$GCC" = yes ; then
! 17280: output_verbose_link_cmd='echo'
! 17281: archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 17282: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 17283: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 17284: 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}'
! 17285: 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}'
! 17286: else
! 17287: case $cc_basename in
! 17288: xlc*)
! 17289: output_verbose_link_cmd='echo'
! 17290: archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
! 17291: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 17292: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 17293: 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}'
! 17294: 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}'
! 17295: ;;
! 17296: *)
! 17297: ld_shlibs_GCJ=no
! 17298: ;;
! 17299: esac
! 17300: fi
! 17301: ;;
! 17302:
! 17303: dgux*)
! 17304: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17305: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17306: hardcode_shlibpath_var_GCJ=no
! 17307: ;;
! 17308:
! 17309: freebsd1*)
! 17310: ld_shlibs_GCJ=no
! 17311: ;;
! 17312:
! 17313: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 17314: # support. Future versions do this automatically, but an explicit c++rt0.o
! 17315: # does not break anything, and helps significantly (at the cost of a little
! 17316: # extra space).
! 17317: freebsd2.2*)
! 17318: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 17319: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17320: hardcode_direct_GCJ=yes
! 17321: hardcode_shlibpath_var_GCJ=no
! 17322: ;;
! 17323:
! 17324: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 17325: freebsd2*)
! 17326: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 17327: hardcode_direct_GCJ=yes
! 17328: hardcode_minus_L_GCJ=yes
! 17329: hardcode_shlibpath_var_GCJ=no
! 17330: ;;
! 17331:
! 17332: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 17333: freebsd* | kfreebsd*-gnu | dragonfly*)
! 17334: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 17335: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17336: hardcode_direct_GCJ=yes
! 17337: hardcode_shlibpath_var_GCJ=no
! 17338: ;;
! 17339:
! 17340: hpux9*)
! 17341: if test "$GCC" = yes; then
! 17342: 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'
! 17343: else
! 17344: 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'
! 17345: fi
! 17346: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 17347: hardcode_libdir_separator_GCJ=:
! 17348: hardcode_direct_GCJ=yes
! 17349:
! 17350: # hardcode_minus_L: Not really in the search PATH,
! 17351: # but as the default location of the library.
! 17352: hardcode_minus_L_GCJ=yes
! 17353: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17354: ;;
! 17355:
! 17356: hpux10*)
! 17357: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 17358: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 17359: else
! 17360: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 17361: fi
! 17362: if test "$with_gnu_ld" = no; then
! 17363: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 17364: hardcode_libdir_separator_GCJ=:
! 17365:
! 17366: hardcode_direct_GCJ=yes
! 17367: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17368:
! 17369: # hardcode_minus_L: Not really in the search PATH,
! 17370: # but as the default location of the library.
! 17371: hardcode_minus_L_GCJ=yes
! 17372: fi
! 17373: ;;
! 17374:
! 17375: hpux11*)
! 17376: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 17377: case $host_cpu in
! 17378: hppa*64*)
! 17379: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17380: ;;
! 17381: ia64*)
! 17382: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 17383: ;;
! 17384: *)
! 17385: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 17386: ;;
! 17387: esac
! 17388: else
! 17389: case $host_cpu in
! 17390: hppa*64*)
! 17391: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17392: ;;
! 17393: ia64*)
! 17394: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 17395: ;;
! 17396: *)
! 17397: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 17398: ;;
! 17399: esac
! 17400: fi
! 17401: if test "$with_gnu_ld" = no; then
! 17402: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 17403: hardcode_libdir_separator_GCJ=:
! 17404:
! 17405: case $host_cpu in
! 17406: hppa*64*|ia64*)
! 17407: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
! 17408: hardcode_direct_GCJ=no
! 17409: hardcode_shlibpath_var_GCJ=no
! 17410: ;;
! 17411: *)
! 17412: hardcode_direct_GCJ=yes
! 17413: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17414:
! 17415: # hardcode_minus_L: Not really in the search PATH,
! 17416: # but as the default location of the library.
! 17417: hardcode_minus_L_GCJ=yes
! 17418: ;;
! 17419: esac
! 17420: fi
! 17421: ;;
! 17422:
! 17423: irix5* | irix6* | nonstopux*)
! 17424: if test "$GCC" = yes; then
! 17425: 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'
! 17426: else
! 17427: 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'
! 17428: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
! 17429: fi
! 17430: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17431: hardcode_libdir_separator_GCJ=:
! 17432: link_all_deplibs_GCJ=yes
! 17433: ;;
! 17434:
! 17435: netbsd*)
! 17436: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 17437: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 17438: else
! 17439: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 17440: fi
! 17441: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17442: hardcode_direct_GCJ=yes
! 17443: hardcode_shlibpath_var_GCJ=no
! 17444: ;;
! 17445:
! 17446: newsos6)
! 17447: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17448: hardcode_direct_GCJ=yes
! 17449: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17450: hardcode_libdir_separator_GCJ=:
! 17451: hardcode_shlibpath_var_GCJ=no
! 17452: ;;
! 17453:
! 17454: openbsd*)
! 17455: hardcode_direct_GCJ=yes
! 17456: hardcode_shlibpath_var_GCJ=no
! 17457: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 17458: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 17459: archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 17460: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 17461: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17462: else
! 17463: case $host_os in
! 17464: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 17465: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 17466: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17467: ;;
! 17468: *)
! 17469: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 17470: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 17471: ;;
! 17472: esac
! 17473: fi
! 17474: ;;
! 17475:
! 17476: os2*)
! 17477: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17478: hardcode_minus_L_GCJ=yes
! 17479: allow_undefined_flag_GCJ=unsupported
! 17480: 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'
! 17481: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 17482: ;;
! 17483:
! 17484: osf3*)
! 17485: if test "$GCC" = yes; then
! 17486: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
! 17487: 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'
! 17488: else
! 17489: allow_undefined_flag_GCJ=' -expect_unresolved \*'
! 17490: 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'
! 17491: fi
! 17492: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17493: hardcode_libdir_separator_GCJ=:
! 17494: ;;
! 17495:
! 17496: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 17497: if test "$GCC" = yes; then
! 17498: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
! 17499: 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'
! 17500: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17501: else
! 17502: allow_undefined_flag_GCJ=' -expect_unresolved \*'
! 17503: 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'
! 17504: 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~
! 17505: $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'
! 17506:
! 17507: # Both c and cxx compiler support -rpath directly
! 17508: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
! 17509: fi
! 17510: hardcode_libdir_separator_GCJ=:
! 17511: ;;
! 17512:
! 17513: solaris*)
! 17514: no_undefined_flag_GCJ=' -z text'
! 17515: if test "$GCC" = yes; then
! 17516: wlarc='${wl}'
! 17517: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17518: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 17519: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 17520: else
! 17521: wlarc=''
! 17522: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17523: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 17524: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 17525: fi
! 17526: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17527: hardcode_shlibpath_var_GCJ=no
! 17528: case $host_os in
! 17529: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 17530: *)
! 17531: # The compiler driver will combine linker options so we
! 17532: # cannot just pass the convience library names through
! 17533: # without $wl, iff we do not link with $LD.
! 17534: # Luckily, gcc supports the same syntax we need for Sun Studio.
! 17535: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 17536: case $wlarc in
! 17537: '')
! 17538: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
! 17539: *)
! 17540: 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' ;;
! 17541: esac ;;
! 17542: esac
! 17543: link_all_deplibs_GCJ=yes
! 17544: ;;
! 17545:
! 17546: sunos4*)
! 17547: if test "x$host_vendor" = xsequent; then
! 17548: # Use $CC to link under sequent, because it throws in some extra .o
! 17549: # files that make .init and .fini sections work.
! 17550: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 17551: else
! 17552: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 17553: fi
! 17554: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17555: hardcode_direct_GCJ=yes
! 17556: hardcode_minus_L_GCJ=yes
! 17557: hardcode_shlibpath_var_GCJ=no
! 17558: ;;
! 17559:
! 17560: sysv4)
! 17561: case $host_vendor in
! 17562: sni)
! 17563: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17564: hardcode_direct_GCJ=yes # is this really true???
! 17565: ;;
! 17566: siemens)
! 17567: ## LD is ld it makes a PLAMLIB
! 17568: ## CC just makes a GrossModule.
! 17569: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 17570: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
! 17571: hardcode_direct_GCJ=no
! 17572: ;;
! 17573: motorola)
! 17574: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17575: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
! 17576: ;;
! 17577: esac
! 17578: runpath_var='LD_RUN_PATH'
! 17579: hardcode_shlibpath_var_GCJ=no
! 17580: ;;
! 17581:
! 17582: sysv4.3*)
! 17583: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17584: hardcode_shlibpath_var_GCJ=no
! 17585: export_dynamic_flag_spec_GCJ='-Bexport'
! 17586: ;;
! 17587:
! 17588: sysv4*MP*)
! 17589: if test -d /usr/nec; then
! 17590: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17591: hardcode_shlibpath_var_GCJ=no
! 17592: runpath_var=LD_RUN_PATH
! 17593: hardcode_runpath_var=yes
! 17594: ld_shlibs_GCJ=yes
! 17595: fi
! 17596: ;;
! 17597:
! 17598: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
! 17599: no_undefined_flag_GCJ='${wl}-z,text'
! 17600: archive_cmds_need_lc_GCJ=no
! 17601: hardcode_shlibpath_var_GCJ=no
! 17602: runpath_var='LD_RUN_PATH'
! 17603:
! 17604: if test "$GCC" = yes; then
! 17605: archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17606: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17607: else
! 17608: archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17609: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17610: fi
! 17611: ;;
! 17612:
! 17613: sysv5* | sco3.2v5* | sco5v6*)
! 17614: # Note: We can NOT use -z defs as we might desire, because we do not
! 17615: # link with -lc, and that would cause any symbols used from libc to
! 17616: # always be unresolved, which means just about no library would
! 17617: # ever link correctly. If we're not using GNU ld we use -z text
! 17618: # though, which does catch some bad symbols but isn't as heavy-handed
! 17619: # as -z defs.
! 17620: no_undefined_flag_GCJ='${wl}-z,text'
! 17621: allow_undefined_flag_GCJ='${wl}-z,nodefs'
! 17622: archive_cmds_need_lc_GCJ=no
! 17623: hardcode_shlibpath_var_GCJ=no
! 17624: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 17625: hardcode_libdir_separator_GCJ=':'
! 17626: link_all_deplibs_GCJ=yes
! 17627: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
! 17628: runpath_var='LD_RUN_PATH'
! 17629:
! 17630: if test "$GCC" = yes; then
! 17631: archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17632: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17633: else
! 17634: archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17635: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17636: fi
! 17637: ;;
! 17638:
! 17639: uts4*)
! 17640: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17641: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17642: hardcode_shlibpath_var_GCJ=no
! 17643: ;;
! 17644:
! 17645: *)
! 17646: ld_shlibs_GCJ=no
! 17647: ;;
! 17648: esac
! 17649: fi
! 17650:
! 17651: { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
! 17652: echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
! 17653: test "$ld_shlibs_GCJ" = no && can_build_shared=no
! 17654:
! 17655: #
! 17656: # Do we need to explicitly link libc?
! 17657: #
! 17658: case "x$archive_cmds_need_lc_GCJ" in
! 17659: x|xyes)
! 17660: # Assume -lc should be added
! 17661: archive_cmds_need_lc_GCJ=yes
! 17662:
! 17663: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 17664: case $archive_cmds_GCJ in
! 17665: *'~'*)
! 17666: # FIXME: we may have to deal with multi-command sequences.
! 17667: ;;
! 17668: '$CC '*)
! 17669: # Test whether the compiler implicitly links with -lc since on some
! 17670: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 17671: # to ld, don't add -lc before -lgcc.
! 17672: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 17673: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 17674: $rm conftest*
! 17675: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 17676:
! 17677: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 17678: (eval $ac_compile) 2>&5
! 17679: ac_status=$?
! 17680: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17681: (exit $ac_status); } 2>conftest.err; then
! 17682: soname=conftest
! 17683: lib=conftest
! 17684: libobjs=conftest.$ac_objext
! 17685: deplibs=
! 17686: wl=$lt_prog_compiler_wl_GCJ
! 17687: pic_flag=$lt_prog_compiler_pic_GCJ
! 17688: compiler_flags=-v
! 17689: linker_flags=-v
! 17690: verstring=
! 17691: output_objdir=.
! 17692: libname=conftest
! 17693: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
! 17694: allow_undefined_flag_GCJ=
! 17695: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 17696: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 17697: ac_status=$?
! 17698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17699: (exit $ac_status); }
! 17700: then
! 17701: archive_cmds_need_lc_GCJ=no
! 17702: else
! 17703: archive_cmds_need_lc_GCJ=yes
! 17704: fi
! 17705: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
! 17706: else
! 17707: cat conftest.err 1>&5
! 17708: fi
! 17709: $rm conftest*
! 17710: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
! 17711: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
! 17712: ;;
! 17713: esac
! 17714: fi
! 17715: ;;
! 17716: esac
! 17717:
! 17718: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 17719: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 17720: library_names_spec=
! 17721: libname_spec='lib$name'
! 17722: soname_spec=
! 17723: shrext_cmds=".so"
! 17724: postinstall_cmds=
! 17725: postuninstall_cmds=
! 17726: finish_cmds=
! 17727: finish_eval=
! 17728: shlibpath_var=
! 17729: shlibpath_overrides_runpath=unknown
! 17730: version_type=none
! 17731: dynamic_linker="$host_os ld.so"
! 17732: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 17733: if test "$GCC" = yes; then
! 17734: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 17735: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 17736: # if the path contains ";" then we assume it to be the separator
! 17737: # otherwise default to the standard path separator (i.e. ":") - it is
! 17738: # assumed that no part of a normal pathname contains ";" but that should
! 17739: # okay in the real world where ";" in dirpaths is itself problematic.
! 17740: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 17741: else
! 17742: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 17743: fi
! 17744: else
! 17745: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 17746: fi
! 17747: need_lib_prefix=unknown
! 17748: hardcode_into_libs=no
! 17749:
! 17750: # when you set need_version to no, make sure it does not cause -set_version
! 17751: # flags to be left without arguments
! 17752: need_version=unknown
! 17753:
! 17754: case $host_os in
! 17755: aix3*)
! 17756: version_type=linux
! 17757: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 17758: shlibpath_var=LIBPATH
! 17759:
! 17760: # AIX 3 has no versioning support, so we append a major version to the name.
! 17761: soname_spec='${libname}${release}${shared_ext}$major'
! 17762: ;;
! 17763:
! 17764: aix4* | aix5*)
! 17765: version_type=linux
! 17766: need_lib_prefix=no
! 17767: need_version=no
! 17768: hardcode_into_libs=yes
! 17769: if test "$host_cpu" = ia64; then
! 17770: # AIX 5 supports IA64
! 17771: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 17772: shlibpath_var=LD_LIBRARY_PATH
! 17773: else
! 17774: # With GCC up to 2.95.x, collect2 would create an import file
! 17775: # for dependence libraries. The import file would start with
! 17776: # the line `#! .'. This would cause the generated library to
! 17777: # depend on `.', always an invalid library. This was fixed in
! 17778: # development snapshots of GCC prior to 3.0.
! 17779: case $host_os in
! 17780: aix4 | aix4.[01] | aix4.[01].*)
! 17781: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 17782: echo ' yes '
! 17783: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 17784: :
! 17785: else
! 17786: can_build_shared=no
! 17787: fi
! 17788: ;;
! 17789: esac
! 17790: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 17791: # soname into executable. Probably we can add versioning support to
! 17792: # collect2, so additional links can be useful in future.
! 17793: if test "$aix_use_runtimelinking" = yes; then
! 17794: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 17795: # instead of lib<name>.a to let people know that these are not
! 17796: # typical AIX shared libraries.
! 17797: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17798: else
! 17799: # We preserve .a as extension for shared libraries through AIX4.2
! 17800: # and later when we are not doing run time linking.
! 17801: library_names_spec='${libname}${release}.a $libname.a'
! 17802: soname_spec='${libname}${release}${shared_ext}$major'
! 17803: fi
! 17804: shlibpath_var=LIBPATH
! 17805: fi
! 17806: ;;
! 17807:
! 17808: amigaos*)
! 17809: library_names_spec='$libname.ixlibrary $libname.a'
! 17810: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 17811: 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'
! 17812: ;;
! 17813:
! 17814: beos*)
! 17815: library_names_spec='${libname}${shared_ext}'
! 17816: dynamic_linker="$host_os ld.so"
! 17817: shlibpath_var=LIBRARY_PATH
! 17818: ;;
! 17819:
! 17820: bsdi[45]*)
! 17821: version_type=linux
! 17822: need_version=no
! 17823: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17824: soname_spec='${libname}${release}${shared_ext}$major'
! 17825: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 17826: shlibpath_var=LD_LIBRARY_PATH
! 17827: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 17828: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 17829: # the default ld.so.conf also contains /usr/contrib/lib and
! 17830: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 17831: # libtool to hard-code these into programs
! 17832: ;;
! 17833:
! 17834: cygwin* | mingw* | pw32*)
! 17835: version_type=windows
! 17836: shrext_cmds=".dll"
! 17837: need_version=no
! 17838: need_lib_prefix=no
! 17839:
! 17840: case $GCC,$host_os in
! 17841: yes,cygwin* | yes,mingw* | yes,pw32*)
! 17842: library_names_spec='$libname.dll.a'
! 17843: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 17844: postinstall_cmds='base_file=`basename \${file}`~
! 17845: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 17846: dldir=$destdir/`dirname \$dlpath`~
! 17847: test -d \$dldir || mkdir -p \$dldir~
! 17848: $install_prog $dir/$dlname \$dldir/$dlname~
! 17849: chmod a+x \$dldir/$dlname'
! 17850: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 17851: dlpath=$dir/\$dldll~
! 17852: $rm \$dlpath'
! 17853: shlibpath_overrides_runpath=yes
! 17854:
! 17855: case $host_os in
! 17856: cygwin*)
! 17857: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 17858: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 17859: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 17860: ;;
! 17861: mingw*)
! 17862: # MinGW DLLs use traditional 'lib' prefix
! 17863: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 17864: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 17865: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 17866: # It is most probably a Windows format PATH printed by
! 17867: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 17868: # path with ; separators, and with drive letters. We can handle the
! 17869: # drive letters (cygwin fileutils understands them), so leave them,
! 17870: # especially as we might pass files found there to a mingw objdump,
! 17871: # which wouldn't understand a cygwinified path. Ahh.
! 17872: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 17873: else
! 17874: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 17875: fi
! 17876: ;;
! 17877: pw32*)
! 17878: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 17879: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 17880: ;;
! 17881: esac
! 17882: ;;
! 17883:
! 17884: *)
! 17885: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 17886: ;;
! 17887: esac
! 17888: dynamic_linker='Win32 ld.exe'
! 17889: # FIXME: first we should search . and the directory the executable is in
! 17890: shlibpath_var=PATH
! 17891: ;;
! 17892:
! 17893: darwin* | rhapsody*)
! 17894: dynamic_linker="$host_os dyld"
! 17895: version_type=darwin
! 17896: need_lib_prefix=no
! 17897: need_version=no
! 17898: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 17899: soname_spec='${libname}${release}${major}$shared_ext'
! 17900: shlibpath_overrides_runpath=yes
! 17901: shlibpath_var=DYLD_LIBRARY_PATH
! 17902: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 17903: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 17904: if test "$GCC" = yes; then
! 17905: 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"`
! 17906: else
! 17907: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
! 17908: fi
! 17909: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 17910: ;;
! 17911:
! 17912: dgux*)
! 17913: version_type=linux
! 17914: need_lib_prefix=no
! 17915: need_version=no
! 17916: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 17917: soname_spec='${libname}${release}${shared_ext}$major'
! 17918: shlibpath_var=LD_LIBRARY_PATH
! 17919: ;;
! 17920:
! 17921: freebsd1*)
! 17922: dynamic_linker=no
! 17923: ;;
! 17924:
! 17925: kfreebsd*-gnu)
! 17926: version_type=linux
! 17927: need_lib_prefix=no
! 17928: need_version=no
! 17929: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 17930: soname_spec='${libname}${release}${shared_ext}$major'
! 17931: shlibpath_var=LD_LIBRARY_PATH
! 17932: shlibpath_overrides_runpath=no
! 17933: hardcode_into_libs=yes
! 17934: dynamic_linker='GNU ld.so'
! 17935: ;;
! 17936:
! 17937: freebsd* | dragonfly*)
! 17938: # DragonFly does not have aout. When/if they implement a new
! 17939: # versioning mechanism, adjust this.
! 17940: if test -x /usr/bin/objformat; then
! 17941: objformat=`/usr/bin/objformat`
! 17942: else
! 17943: case $host_os in
! 17944: freebsd[123]*) objformat=aout ;;
! 17945: *) objformat=elf ;;
! 17946: esac
! 17947: fi
! 17948: version_type=freebsd-$objformat
! 17949: case $version_type in
! 17950: freebsd-elf*)
! 17951: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 17952: need_version=no
! 17953: need_lib_prefix=no
! 17954: ;;
! 17955: freebsd-*)
! 17956: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 17957: need_version=yes
! 17958: ;;
! 17959: esac
! 17960: shlibpath_var=LD_LIBRARY_PATH
! 17961: case $host_os in
! 17962: freebsd2*)
! 17963: shlibpath_overrides_runpath=yes
! 17964: ;;
! 17965: freebsd3.[01]* | freebsdelf3.[01]*)
! 17966: shlibpath_overrides_runpath=yes
! 17967: hardcode_into_libs=yes
! 17968: ;;
! 17969: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 17970: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 17971: shlibpath_overrides_runpath=no
! 17972: hardcode_into_libs=yes
! 17973: ;;
! 17974: freebsd*) # from 4.6 on
! 17975: shlibpath_overrides_runpath=yes
! 17976: hardcode_into_libs=yes
! 17977: ;;
! 17978: esac
! 17979: ;;
! 17980:
! 17981: gnu*)
! 17982: version_type=linux
! 17983: need_lib_prefix=no
! 17984: need_version=no
! 17985: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 17986: soname_spec='${libname}${release}${shared_ext}$major'
! 17987: shlibpath_var=LD_LIBRARY_PATH
! 17988: hardcode_into_libs=yes
! 17989: ;;
! 17990:
! 17991: hpux9* | hpux10* | hpux11*)
! 17992: # Give a soname corresponding to the major version so that dld.sl refuses to
! 17993: # link against other versions.
! 17994: version_type=sunos
! 17995: need_lib_prefix=no
! 17996: need_version=no
! 17997: case $host_cpu in
! 17998: ia64*)
! 17999: shrext_cmds='.so'
! 18000: hardcode_into_libs=yes
! 18001: dynamic_linker="$host_os dld.so"
! 18002: shlibpath_var=LD_LIBRARY_PATH
! 18003: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 18004: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18005: soname_spec='${libname}${release}${shared_ext}$major'
! 18006: if test "X$HPUX_IA64_MODE" = X32; then
! 18007: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 18008: else
! 18009: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 18010: fi
! 18011: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 18012: ;;
! 18013: hppa*64*)
! 18014: shrext_cmds='.sl'
! 18015: hardcode_into_libs=yes
! 18016: dynamic_linker="$host_os dld.sl"
! 18017: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 18018: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 18019: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18020: soname_spec='${libname}${release}${shared_ext}$major'
! 18021: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 18022: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 18023: ;;
! 18024: *)
! 18025: shrext_cmds='.sl'
! 18026: dynamic_linker="$host_os dld.sl"
! 18027: shlibpath_var=SHLIB_PATH
! 18028: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 18029: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18030: soname_spec='${libname}${release}${shared_ext}$major'
! 18031: ;;
! 18032: esac
! 18033: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 18034: postinstall_cmds='chmod 555 $lib'
! 18035: ;;
! 18036:
! 18037: interix3*)
! 18038: version_type=linux
! 18039: need_lib_prefix=no
! 18040: need_version=no
! 18041: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18042: soname_spec='${libname}${release}${shared_ext}$major'
! 18043: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 18044: shlibpath_var=LD_LIBRARY_PATH
! 18045: shlibpath_overrides_runpath=no
! 18046: hardcode_into_libs=yes
! 18047: ;;
! 18048:
! 18049: irix5* | irix6* | nonstopux*)
! 18050: case $host_os in
! 18051: nonstopux*) version_type=nonstopux ;;
! 18052: *)
! 18053: if test "$lt_cv_prog_gnu_ld" = yes; then
! 18054: version_type=linux
! 18055: else
! 18056: version_type=irix
! 18057: fi ;;
! 18058: esac
! 18059: need_lib_prefix=no
! 18060: need_version=no
! 18061: soname_spec='${libname}${release}${shared_ext}$major'
! 18062: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 18063: case $host_os in
! 18064: irix5* | nonstopux*)
! 18065: libsuff= shlibsuff=
! 18066: ;;
! 18067: *)
! 18068: case $LD in # libtool.m4 will add one of these switches to LD
! 18069: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 18070: libsuff= shlibsuff= libmagic=32-bit;;
! 18071: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 18072: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 18073: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 18074: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 18075: *) libsuff= shlibsuff= libmagic=never-match;;
! 18076: esac
! 18077: ;;
! 18078: esac
! 18079: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 18080: shlibpath_overrides_runpath=no
! 18081: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 18082: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 18083: hardcode_into_libs=yes
! 18084: ;;
! 18085:
! 18086: # No shared lib support for Linux oldld, aout, or coff.
! 18087: linux*oldld* | linux*aout* | linux*coff*)
! 18088: dynamic_linker=no
! 18089: ;;
! 18090:
! 18091: # This must be Linux ELF.
! 18092: linux*)
! 18093: version_type=linux
! 18094: need_lib_prefix=no
! 18095: need_version=no
! 18096: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18097: soname_spec='${libname}${release}${shared_ext}$major'
! 18098: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 18099: shlibpath_var=LD_LIBRARY_PATH
! 18100: shlibpath_overrides_runpath=no
! 18101: # This implies no fast_install, which is unacceptable.
! 18102: # Some rework will be needed to allow for fast_install
! 18103: # before this can be enabled.
! 18104: hardcode_into_libs=yes
! 18105:
! 18106: # Append ld.so.conf contents to the search path
! 18107: if test -f /etc/ld.so.conf; then
! 18108: 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' ' '`
! 18109: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 18110: fi
! 18111:
! 18112: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 18113: # powerpc, because MkLinux only supported shared libraries with the
! 18114: # GNU dynamic linker. Since this was broken with cross compilers,
! 18115: # most powerpc-linux boxes support dynamic linking these days and
! 18116: # people can always --disable-shared, the test was removed, and we
! 18117: # assume the GNU/Linux dynamic linker is in use.
! 18118: dynamic_linker='GNU/Linux ld.so'
! 18119: ;;
! 18120:
! 18121: knetbsd*-gnu)
! 18122: version_type=linux
! 18123: need_lib_prefix=no
! 18124: need_version=no
! 18125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18126: soname_spec='${libname}${release}${shared_ext}$major'
! 18127: shlibpath_var=LD_LIBRARY_PATH
! 18128: shlibpath_overrides_runpath=no
! 18129: hardcode_into_libs=yes
! 18130: dynamic_linker='GNU ld.so'
! 18131: ;;
! 18132:
! 18133: netbsd*)
! 18134: version_type=sunos
! 18135: need_lib_prefix=no
! 18136: need_version=no
! 18137: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 18138: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 18139: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 18140: dynamic_linker='NetBSD (a.out) ld.so'
! 18141: else
! 18142: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18143: soname_spec='${libname}${release}${shared_ext}$major'
! 18144: dynamic_linker='NetBSD ld.elf_so'
! 18145: fi
! 18146: shlibpath_var=LD_LIBRARY_PATH
! 18147: shlibpath_overrides_runpath=yes
! 18148: hardcode_into_libs=yes
! 18149: ;;
! 18150:
! 18151: newsos6)
! 18152: version_type=linux
! 18153: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18154: shlibpath_var=LD_LIBRARY_PATH
! 18155: shlibpath_overrides_runpath=yes
! 18156: ;;
! 18157:
! 18158: nto-qnx*)
! 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: shlibpath_overrides_runpath=yes
! 18166: ;;
! 18167:
! 18168: openbsd*)
! 18169: version_type=sunos
! 18170: sys_lib_dlsearch_path_spec="/usr/lib"
! 18171: need_lib_prefix=no
! 18172: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 18173: case $host_os in
! 18174: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 18175: *) need_version=no ;;
! 18176: esac
! 18177: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 18178: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 18179: shlibpath_var=LD_LIBRARY_PATH
! 18180: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 18181: case $host_os in
! 18182: openbsd2.[89] | openbsd2.[89].*)
! 18183: shlibpath_overrides_runpath=no
! 18184: ;;
! 18185: *)
! 18186: shlibpath_overrides_runpath=yes
! 18187: ;;
! 18188: esac
! 18189: else
! 18190: shlibpath_overrides_runpath=yes
! 18191: fi
! 18192: ;;
! 18193:
! 18194: os2*)
! 18195: libname_spec='$name'
! 18196: shrext_cmds=".dll"
! 18197: need_lib_prefix=no
! 18198: library_names_spec='$libname${shared_ext} $libname.a'
! 18199: dynamic_linker='OS/2 ld.exe'
! 18200: shlibpath_var=LIBPATH
! 18201: ;;
! 18202:
! 18203: osf3* | osf4* | osf5*)
! 18204: version_type=osf
! 18205: need_lib_prefix=no
! 18206: need_version=no
! 18207: soname_spec='${libname}${release}${shared_ext}$major'
! 18208: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18209: shlibpath_var=LD_LIBRARY_PATH
! 18210: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 18211: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 18212: ;;
! 18213:
! 18214: solaris*)
! 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: shlibpath_var=LD_LIBRARY_PATH
! 18221: shlibpath_overrides_runpath=yes
! 18222: hardcode_into_libs=yes
! 18223: # ldd complains unless libraries are executable
! 18224: postinstall_cmds='chmod +x $lib'
! 18225: ;;
! 18226:
! 18227: sunos4*)
! 18228: version_type=sunos
! 18229: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 18230: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 18231: shlibpath_var=LD_LIBRARY_PATH
! 18232: shlibpath_overrides_runpath=yes
! 18233: if test "$with_gnu_ld" = yes; then
! 18234: need_lib_prefix=no
! 18235: fi
! 18236: need_version=yes
! 18237: ;;
! 18238:
! 18239: sysv4 | sysv4.3*)
! 18240: version_type=linux
! 18241: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18242: soname_spec='${libname}${release}${shared_ext}$major'
! 18243: shlibpath_var=LD_LIBRARY_PATH
! 18244: case $host_vendor in
! 18245: sni)
! 18246: shlibpath_overrides_runpath=no
! 18247: need_lib_prefix=no
! 18248: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 18249: runpath_var=LD_RUN_PATH
! 18250: ;;
! 18251: siemens)
! 18252: need_lib_prefix=no
! 18253: ;;
! 18254: motorola)
! 18255: need_lib_prefix=no
! 18256: need_version=no
! 18257: shlibpath_overrides_runpath=no
! 18258: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 18259: ;;
! 18260: esac
! 18261: ;;
! 18262:
! 18263: sysv4*MP*)
! 18264: if test -d /usr/nec ;then
! 18265: version_type=linux
! 18266: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 18267: soname_spec='$libname${shared_ext}.$major'
! 18268: shlibpath_var=LD_LIBRARY_PATH
! 18269: fi
! 18270: ;;
! 18271:
! 18272: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 18273: version_type=freebsd-elf
! 18274: need_lib_prefix=no
! 18275: need_version=no
! 18276: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 18277: soname_spec='${libname}${release}${shared_ext}$major'
! 18278: shlibpath_var=LD_LIBRARY_PATH
! 18279: hardcode_into_libs=yes
! 18280: if test "$with_gnu_ld" = yes; then
! 18281: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 18282: shlibpath_overrides_runpath=no
! 18283: else
! 18284: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 18285: shlibpath_overrides_runpath=yes
! 18286: case $host_os in
! 18287: sco3.2v5*)
! 18288: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 18289: ;;
! 18290: esac
! 18291: fi
! 18292: sys_lib_dlsearch_path_spec='/usr/lib'
! 18293: ;;
! 18294:
! 18295: uts4*)
! 18296: version_type=linux
! 18297: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18298: soname_spec='${libname}${release}${shared_ext}$major'
! 18299: shlibpath_var=LD_LIBRARY_PATH
! 18300: ;;
! 18301:
! 18302: *)
! 18303: dynamic_linker=no
! 18304: ;;
! 18305: esac
! 18306: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 18307: echo "${ECHO_T}$dynamic_linker" >&6; }
! 18308: test "$dynamic_linker" = no && can_build_shared=no
! 18309:
! 18310: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 18311: if test "$GCC" = yes; then
! 18312: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 18313: fi
! 18314:
! 18315: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 18316: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 18317: hardcode_action_GCJ=
! 18318: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
! 18319: test -n "$runpath_var_GCJ" || \
! 18320: test "X$hardcode_automatic_GCJ" = "Xyes" ; then
! 18321:
! 18322: # We can hardcode non-existant directories.
! 18323: if test "$hardcode_direct_GCJ" != no &&
! 18324: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 18325: # have to relink, otherwise we might link with an installed library
! 18326: # when we should be linking with a yet-to-be-installed one
! 18327: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
! 18328: test "$hardcode_minus_L_GCJ" != no; then
! 18329: # Linking always hardcodes the temporary library directory.
! 18330: hardcode_action_GCJ=relink
! 18331: else
! 18332: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 18333: hardcode_action_GCJ=immediate
! 18334: fi
! 18335: else
! 18336: # We cannot hardcode anything, or else we can only hardcode existing
! 18337: # directories.
! 18338: hardcode_action_GCJ=unsupported
! 18339: fi
! 18340: { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
! 18341: echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
! 18342:
! 18343: if test "$hardcode_action_GCJ" = relink; then
! 18344: # Fast installation is not supported
! 18345: enable_fast_install=no
! 18346: elif test "$shlibpath_overrides_runpath" = yes ||
! 18347: test "$enable_shared" = no; then
! 18348: # Fast installation is not necessary
! 18349: enable_fast_install=needless
! 18350: fi
! 18351:
! 18352:
! 18353: # The else clause should only fire when bootstrapping the
! 18354: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 18355: # with your package, and you will get complaints that there are
! 18356: # no rules to generate ltmain.sh.
! 18357: if test -f "$ltmain"; then
! 18358: # See if we are running on zsh, and set the options which allow our commands through
! 18359: # without removal of \ escapes.
! 18360: if test -n "${ZSH_VERSION+set}" ; then
! 18361: setopt NO_GLOB_SUBST
! 18362: fi
! 18363: # Now quote all the things that may contain metacharacters while being
! 18364: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 18365: # variables and quote the copies for generation of the libtool script.
! 18366: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 18367: SED SHELL STRIP \
! 18368: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 18369: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 18370: deplibs_check_method reload_flag reload_cmds need_locks \
! 18371: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 18372: lt_cv_sys_global_symbol_to_c_name_address \
! 18373: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 18374: old_postinstall_cmds old_postuninstall_cmds \
! 18375: compiler_GCJ \
! 18376: CC_GCJ \
! 18377: LD_GCJ \
! 18378: lt_prog_compiler_wl_GCJ \
! 18379: lt_prog_compiler_pic_GCJ \
! 18380: lt_prog_compiler_static_GCJ \
! 18381: lt_prog_compiler_no_builtin_flag_GCJ \
! 18382: export_dynamic_flag_spec_GCJ \
! 18383: thread_safe_flag_spec_GCJ \
! 18384: whole_archive_flag_spec_GCJ \
! 18385: enable_shared_with_static_runtimes_GCJ \
! 18386: old_archive_cmds_GCJ \
! 18387: old_archive_from_new_cmds_GCJ \
! 18388: predep_objects_GCJ \
! 18389: postdep_objects_GCJ \
! 18390: predeps_GCJ \
! 18391: postdeps_GCJ \
! 18392: compiler_lib_search_path_GCJ \
! 18393: archive_cmds_GCJ \
! 18394: archive_expsym_cmds_GCJ \
! 18395: postinstall_cmds_GCJ \
! 18396: postuninstall_cmds_GCJ \
! 18397: old_archive_from_expsyms_cmds_GCJ \
! 18398: allow_undefined_flag_GCJ \
! 18399: no_undefined_flag_GCJ \
! 18400: export_symbols_cmds_GCJ \
! 18401: hardcode_libdir_flag_spec_GCJ \
! 18402: hardcode_libdir_flag_spec_ld_GCJ \
! 18403: hardcode_libdir_separator_GCJ \
! 18404: hardcode_automatic_GCJ \
! 18405: module_cmds_GCJ \
! 18406: module_expsym_cmds_GCJ \
! 18407: lt_cv_prog_compiler_c_o_GCJ \
! 18408: exclude_expsyms_GCJ \
! 18409: include_expsyms_GCJ; do
! 18410:
! 18411: case $var in
! 18412: old_archive_cmds_GCJ | \
! 18413: old_archive_from_new_cmds_GCJ | \
! 18414: archive_cmds_GCJ | \
! 18415: archive_expsym_cmds_GCJ | \
! 18416: module_cmds_GCJ | \
! 18417: module_expsym_cmds_GCJ | \
! 18418: old_archive_from_expsyms_cmds_GCJ | \
! 18419: export_symbols_cmds_GCJ | \
! 18420: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 18421: postinstall_cmds | postuninstall_cmds | \
! 18422: old_postinstall_cmds | old_postuninstall_cmds | \
! 18423: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 18424: # Double-quote double-evaled strings.
! 18425: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 18426: ;;
! 18427: *)
! 18428: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 18429: ;;
! 18430: esac
! 18431: done
! 18432:
! 18433: case $lt_echo in
! 18434: *'\$0 --fallback-echo"')
! 18435: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 18436: ;;
! 18437: esac
! 18438:
! 18439: cfgfile="$ofile"
! 18440:
! 18441: cat <<__EOF__ >> "$cfgfile"
! 18442: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 18443:
! 18444: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 18445:
! 18446: # Shell to use when invoking shell scripts.
! 18447: SHELL=$lt_SHELL
! 18448:
! 18449: # Whether or not to build shared libraries.
! 18450: build_libtool_libs=$enable_shared
! 18451:
! 18452: # Whether or not to build static libraries.
! 18453: build_old_libs=$enable_static
! 18454:
! 18455: # Whether or not to add -lc for building shared libraries.
! 18456: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
! 18457:
! 18458: # Whether or not to disallow shared libs when runtime libs are static
! 18459: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
! 18460:
! 18461: # Whether or not to optimize for fast installation.
! 18462: fast_install=$enable_fast_install
! 18463:
! 18464: # The host system.
! 18465: host_alias=$host_alias
! 18466: host=$host
! 18467: host_os=$host_os
! 18468:
! 18469: # The build system.
! 18470: build_alias=$build_alias
! 18471: build=$build
! 18472: build_os=$build_os
! 18473:
! 18474: # An echo program that does not interpret backslashes.
! 18475: echo=$lt_echo
! 18476:
! 18477: # The archiver.
! 18478: AR=$lt_AR
! 18479: AR_FLAGS=$lt_AR_FLAGS
! 18480:
! 18481: # A C compiler.
! 18482: LTCC=$lt_LTCC
! 18483:
! 18484: # LTCC compiler flags.
! 18485: LTCFLAGS=$lt_LTCFLAGS
! 18486:
! 18487: # A language-specific compiler.
! 18488: CC=$lt_compiler_GCJ
! 18489:
! 18490: # Is the compiler the GNU C compiler?
! 18491: with_gcc=$GCC_GCJ
! 18492:
! 18493: # An ERE matcher.
! 18494: EGREP=$lt_EGREP
! 18495:
! 18496: # The linker used to build libraries.
! 18497: LD=$lt_LD_GCJ
! 18498:
! 18499: # Whether we need hard or soft links.
! 18500: LN_S=$lt_LN_S
! 18501:
! 18502: # A BSD-compatible nm program.
! 18503: NM=$lt_NM
! 18504:
! 18505: # A symbol stripping program
! 18506: STRIP=$lt_STRIP
! 18507:
! 18508: # Used to examine libraries when file_magic_cmd begins "file"
! 18509: MAGIC_CMD=$MAGIC_CMD
! 18510:
! 18511: # Used on cygwin: DLL creation program.
! 18512: DLLTOOL="$DLLTOOL"
! 18513:
! 18514: # Used on cygwin: object dumper.
! 18515: OBJDUMP="$OBJDUMP"
! 18516:
! 18517: # Used on cygwin: assembler.
! 18518: AS="$AS"
! 18519:
! 18520: # The name of the directory that contains temporary libtool files.
! 18521: objdir=$objdir
! 18522:
! 18523: # How to create reloadable object files.
! 18524: reload_flag=$lt_reload_flag
! 18525: reload_cmds=$lt_reload_cmds
! 18526:
! 18527: # How to pass a linker flag through the compiler.
! 18528: wl=$lt_lt_prog_compiler_wl_GCJ
! 18529:
! 18530: # Object file suffix (normally "o").
! 18531: objext="$ac_objext"
! 18532:
! 18533: # Old archive suffix (normally "a").
! 18534: libext="$libext"
! 18535:
! 18536: # Shared library suffix (normally ".so").
! 18537: shrext_cmds='$shrext_cmds'
! 18538:
! 18539: # Executable file suffix (normally "").
! 18540: exeext="$exeext"
! 18541:
! 18542: # Additional compiler flags for building library objects.
! 18543: pic_flag=$lt_lt_prog_compiler_pic_GCJ
! 18544: pic_mode=$pic_mode
! 18545:
! 18546: # What is the maximum length of a command?
! 18547: max_cmd_len=$lt_cv_sys_max_cmd_len
! 18548:
! 18549: # Does compiler simultaneously support -c and -o options?
! 18550: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
! 18551:
! 18552: # Must we lock files when doing compilation?
! 18553: need_locks=$lt_need_locks
! 18554:
! 18555: # Do we need the lib prefix for modules?
! 18556: need_lib_prefix=$need_lib_prefix
! 18557:
! 18558: # Do we need a version for libraries?
! 18559: need_version=$need_version
! 18560:
! 18561: # Whether dlopen is supported.
! 18562: dlopen_support=$enable_dlopen
! 18563:
! 18564: # Whether dlopen of programs is supported.
! 18565: dlopen_self=$enable_dlopen_self
! 18566:
! 18567: # Whether dlopen of statically linked programs is supported.
! 18568: dlopen_self_static=$enable_dlopen_self_static
! 18569:
! 18570: # Compiler flag to prevent dynamic linking.
! 18571: link_static_flag=$lt_lt_prog_compiler_static_GCJ
! 18572:
! 18573: # Compiler flag to turn off builtin functions.
! 18574: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
! 18575:
! 18576: # Compiler flag to allow reflexive dlopens.
! 18577: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
! 18578:
! 18579: # Compiler flag to generate shared objects directly from archives.
! 18580: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
! 18581:
! 18582: # Compiler flag to generate thread-safe objects.
! 18583: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
! 18584:
! 18585: # Library versioning type.
! 18586: version_type=$version_type
! 18587:
! 18588: # Format of library name prefix.
! 18589: libname_spec=$lt_libname_spec
! 18590:
! 18591: # List of archive names. First name is the real one, the rest are links.
! 18592: # The last name is the one that the linker finds with -lNAME.
! 18593: library_names_spec=$lt_library_names_spec
! 18594:
! 18595: # The coded name of the library, if different from the real name.
! 18596: soname_spec=$lt_soname_spec
! 18597:
! 18598: # Commands used to build and install an old-style archive.
! 18599: RANLIB=$lt_RANLIB
! 18600: old_archive_cmds=$lt_old_archive_cmds_GCJ
! 18601: old_postinstall_cmds=$lt_old_postinstall_cmds
! 18602: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 18603:
! 18604: # Create an old-style archive from a shared archive.
! 18605: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
! 18606:
! 18607: # Create a temporary old-style archive to link instead of a shared archive.
! 18608: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
! 18609:
! 18610: # Commands used to build and install a shared archive.
! 18611: archive_cmds=$lt_archive_cmds_GCJ
! 18612: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
! 18613: postinstall_cmds=$lt_postinstall_cmds
! 18614: postuninstall_cmds=$lt_postuninstall_cmds
! 18615:
! 18616: # Commands used to build a loadable module (assumed same as above if empty)
! 18617: module_cmds=$lt_module_cmds_GCJ
! 18618: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
! 18619:
! 18620: # Commands to strip libraries.
! 18621: old_striplib=$lt_old_striplib
! 18622: striplib=$lt_striplib
! 18623:
! 18624: # Dependencies to place before the objects being linked to create a
! 18625: # shared library.
! 18626: predep_objects=$lt_predep_objects_GCJ
! 18627:
! 18628: # Dependencies to place after the objects being linked to create a
! 18629: # shared library.
! 18630: postdep_objects=$lt_postdep_objects_GCJ
! 18631:
! 18632: # Dependencies to place before the objects being linked to create a
! 18633: # shared library.
! 18634: predeps=$lt_predeps_GCJ
! 18635:
! 18636: # Dependencies to place after the objects being linked to create a
! 18637: # shared library.
! 18638: postdeps=$lt_postdeps_GCJ
! 18639:
! 18640: # The library search path used internally by the compiler when linking
! 18641: # a shared library.
! 18642: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
! 18643:
! 18644: # Method to check whether dependent libraries are shared objects.
! 18645: deplibs_check_method=$lt_deplibs_check_method
! 18646:
! 18647: # Command to use when deplibs_check_method == file_magic.
! 18648: file_magic_cmd=$lt_file_magic_cmd
! 18649:
! 18650: # Flag that allows shared libraries with undefined symbols to be built.
! 18651: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
! 18652:
! 18653: # Flag that forces no undefined symbols.
! 18654: no_undefined_flag=$lt_no_undefined_flag_GCJ
! 18655:
! 18656: # Commands used to finish a libtool library installation in a directory.
! 18657: finish_cmds=$lt_finish_cmds
! 18658:
! 18659: # Same as above, but a single script fragment to be evaled but not shown.
! 18660: finish_eval=$lt_finish_eval
! 18661:
! 18662: # Take the output of nm and produce a listing of raw symbols and C names.
! 18663: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 18664:
! 18665: # Transform the output of nm in a proper C declaration
! 18666: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 18667:
! 18668: # Transform the output of nm in a C name address pair
! 18669: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 18670:
! 18671: # This is the shared library runtime path variable.
! 18672: runpath_var=$runpath_var
! 18673:
! 18674: # This is the shared library path variable.
! 18675: shlibpath_var=$shlibpath_var
! 18676:
! 18677: # Is shlibpath searched before the hard-coded library search path?
! 18678: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 18679:
! 18680: # How to hardcode a shared library path into an executable.
! 18681: hardcode_action=$hardcode_action_GCJ
! 18682:
! 18683: # Whether we should hardcode library paths into libraries.
! 18684: hardcode_into_libs=$hardcode_into_libs
! 18685:
! 18686: # Flag to hardcode \$libdir into a binary during linking.
! 18687: # This must work even if \$libdir does not exist.
! 18688: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
! 18689:
! 18690: # If ld is used when linking, flag to hardcode \$libdir into
! 18691: # a binary during linking. This must work even if \$libdir does
! 18692: # not exist.
! 18693: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
! 18694:
! 18695: # Whether we need a single -rpath flag with a separated argument.
! 18696: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
! 18697:
! 18698: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 18699: # resulting binary.
! 18700: hardcode_direct=$hardcode_direct_GCJ
! 18701:
! 18702: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 18703: # resulting binary.
! 18704: hardcode_minus_L=$hardcode_minus_L_GCJ
! 18705:
! 18706: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 18707: # the resulting binary.
! 18708: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
! 18709:
! 18710: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 18711: # and all subsequent libraries and executables linked against it.
! 18712: hardcode_automatic=$hardcode_automatic_GCJ
! 18713:
! 18714: # Variables whose values should be saved in libtool wrapper scripts and
! 18715: # restored at relink time.
! 18716: variables_saved_for_relink="$variables_saved_for_relink"
! 18717:
! 18718: # Whether libtool must link a program against all its dependency libraries.
! 18719: link_all_deplibs=$link_all_deplibs_GCJ
! 18720:
! 18721: # Compile-time system search path for libraries
! 18722: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 18723:
! 18724: # Run-time system search path for libraries
! 18725: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 18726:
! 18727: # Fix the shell variable \$srcfile for the compiler.
! 18728: fix_srcfile_path="$fix_srcfile_path_GCJ"
! 18729:
! 18730: # Set to yes if exported symbols are required.
! 18731: always_export_symbols=$always_export_symbols_GCJ
! 18732:
! 18733: # The commands to list exported symbols.
! 18734: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
! 18735:
! 18736: # The commands to extract the exported symbol list from a shared archive.
! 18737: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 18738:
! 18739: # Symbols that should not be listed in the preloaded symbols.
! 18740: exclude_expsyms=$lt_exclude_expsyms_GCJ
! 18741:
! 18742: # Symbols that must always be exported.
! 18743: include_expsyms=$lt_include_expsyms_GCJ
! 18744:
! 18745: # ### END LIBTOOL TAG CONFIG: $tagname
! 18746:
! 18747: __EOF__
! 18748:
! 18749:
! 18750: else
! 18751: # If there is no Makefile yet, we rely on a make rule to execute
! 18752: # `config.status --recheck' to rerun these tests and create the
! 18753: # libtool script then.
! 18754: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 18755: if test -f "$ltmain_in"; then
! 18756: test -f Makefile && make "$ltmain"
! 18757: fi
! 18758: fi
! 18759:
! 18760:
! 18761: ac_ext=c
! 18762: ac_cpp='$CPP $CPPFLAGS'
! 18763: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 18764: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 18765: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 18766:
! 18767: CC="$lt_save_CC"
! 18768:
! 18769: else
! 18770: tagname=""
! 18771: fi
! 18772: ;;
! 18773:
! 18774: RC)
! 18775:
! 18776:
! 18777: # Source file extension for RC test sources.
! 18778: ac_ext=rc
! 18779:
! 18780: # Object file extension for compiled RC test sources.
! 18781: objext=o
! 18782: objext_RC=$objext
! 18783:
! 18784: # Code to be used in simple compile tests
! 18785: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
! 18786:
! 18787: # Code to be used in simple link tests
! 18788: lt_simple_link_test_code="$lt_simple_compile_test_code"
! 18789:
! 18790: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 18791:
! 18792: # If no C compiler was specified, use CC.
! 18793: LTCC=${LTCC-"$CC"}
! 18794:
! 18795: # If no C compiler flags were specified, use CFLAGS.
! 18796: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 18797:
! 18798: # Allow CC to be a program name with arguments.
! 18799: compiler=$CC
! 18800:
! 18801:
! 18802: # save warnings/boilerplate of simple test code
! 18803: ac_outfile=conftest.$ac_objext
! 18804: printf "$lt_simple_compile_test_code" >conftest.$ac_ext
! 18805: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 18806: _lt_compiler_boilerplate=`cat conftest.err`
! 18807: $rm conftest*
! 18808:
! 18809: ac_outfile=conftest.$ac_objext
! 18810: printf "$lt_simple_link_test_code" >conftest.$ac_ext
! 18811: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 18812: _lt_linker_boilerplate=`cat conftest.err`
! 18813: $rm conftest*
! 18814:
! 18815:
! 18816: # Allow CC to be a program name with arguments.
! 18817: lt_save_CC="$CC"
! 18818: CC=${RC-"windres"}
! 18819: compiler=$CC
! 18820: compiler_RC=$CC
! 18821: for cc_temp in $compiler""; do
! 18822: case $cc_temp in
! 18823: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 18824: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 18825: \-*) ;;
! 18826: *) break;;
! 18827: esac
! 18828: done
! 18829: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 18830:
! 18831: lt_cv_prog_compiler_c_o_RC=yes
! 18832:
! 18833: # The else clause should only fire when bootstrapping the
! 18834: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 18835: # with your package, and you will get complaints that there are
! 18836: # no rules to generate ltmain.sh.
! 18837: if test -f "$ltmain"; then
! 18838: # See if we are running on zsh, and set the options which allow our commands through
! 18839: # without removal of \ escapes.
! 18840: if test -n "${ZSH_VERSION+set}" ; then
! 18841: setopt NO_GLOB_SUBST
! 18842: fi
! 18843: # Now quote all the things that may contain metacharacters while being
! 18844: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 18845: # variables and quote the copies for generation of the libtool script.
! 18846: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 18847: SED SHELL STRIP \
! 18848: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 18849: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 18850: deplibs_check_method reload_flag reload_cmds need_locks \
! 18851: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 18852: lt_cv_sys_global_symbol_to_c_name_address \
! 18853: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 18854: old_postinstall_cmds old_postuninstall_cmds \
! 18855: compiler_RC \
! 18856: CC_RC \
! 18857: LD_RC \
! 18858: lt_prog_compiler_wl_RC \
! 18859: lt_prog_compiler_pic_RC \
! 18860: lt_prog_compiler_static_RC \
! 18861: lt_prog_compiler_no_builtin_flag_RC \
! 18862: export_dynamic_flag_spec_RC \
! 18863: thread_safe_flag_spec_RC \
! 18864: whole_archive_flag_spec_RC \
! 18865: enable_shared_with_static_runtimes_RC \
! 18866: old_archive_cmds_RC \
! 18867: old_archive_from_new_cmds_RC \
! 18868: predep_objects_RC \
! 18869: postdep_objects_RC \
! 18870: predeps_RC \
! 18871: postdeps_RC \
! 18872: compiler_lib_search_path_RC \
! 18873: archive_cmds_RC \
! 18874: archive_expsym_cmds_RC \
! 18875: postinstall_cmds_RC \
! 18876: postuninstall_cmds_RC \
! 18877: old_archive_from_expsyms_cmds_RC \
! 18878: allow_undefined_flag_RC \
! 18879: no_undefined_flag_RC \
! 18880: export_symbols_cmds_RC \
! 18881: hardcode_libdir_flag_spec_RC \
! 18882: hardcode_libdir_flag_spec_ld_RC \
! 18883: hardcode_libdir_separator_RC \
! 18884: hardcode_automatic_RC \
! 18885: module_cmds_RC \
! 18886: module_expsym_cmds_RC \
! 18887: lt_cv_prog_compiler_c_o_RC \
! 18888: exclude_expsyms_RC \
! 18889: include_expsyms_RC; do
! 18890:
! 18891: case $var in
! 18892: old_archive_cmds_RC | \
! 18893: old_archive_from_new_cmds_RC | \
! 18894: archive_cmds_RC | \
! 18895: archive_expsym_cmds_RC | \
! 18896: module_cmds_RC | \
! 18897: module_expsym_cmds_RC | \
! 18898: old_archive_from_expsyms_cmds_RC | \
! 18899: export_symbols_cmds_RC | \
! 18900: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 18901: postinstall_cmds | postuninstall_cmds | \
! 18902: old_postinstall_cmds | old_postuninstall_cmds | \
! 18903: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 18904: # Double-quote double-evaled strings.
! 18905: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 18906: ;;
! 18907: *)
! 18908: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 18909: ;;
! 18910: esac
! 18911: done
! 18912:
! 18913: case $lt_echo in
! 18914: *'\$0 --fallback-echo"')
! 18915: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 18916: ;;
! 18917: esac
! 18918:
! 18919: cfgfile="$ofile"
! 18920:
! 18921: cat <<__EOF__ >> "$cfgfile"
! 18922: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 18923:
! 18924: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 18925:
! 18926: # Shell to use when invoking shell scripts.
! 18927: SHELL=$lt_SHELL
! 18928:
! 18929: # Whether or not to build shared libraries.
! 18930: build_libtool_libs=$enable_shared
! 18931:
! 18932: # Whether or not to build static libraries.
! 18933: build_old_libs=$enable_static
! 18934:
! 18935: # Whether or not to add -lc for building shared libraries.
! 18936: build_libtool_need_lc=$archive_cmds_need_lc_RC
! 18937:
! 18938: # Whether or not to disallow shared libs when runtime libs are static
! 18939: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
! 18940:
! 18941: # Whether or not to optimize for fast installation.
! 18942: fast_install=$enable_fast_install
! 18943:
! 18944: # The host system.
! 18945: host_alias=$host_alias
! 18946: host=$host
! 18947: host_os=$host_os
! 18948:
! 18949: # The build system.
! 18950: build_alias=$build_alias
! 18951: build=$build
! 18952: build_os=$build_os
! 18953:
! 18954: # An echo program that does not interpret backslashes.
! 18955: echo=$lt_echo
! 18956:
! 18957: # The archiver.
! 18958: AR=$lt_AR
! 18959: AR_FLAGS=$lt_AR_FLAGS
! 18960:
! 18961: # A C compiler.
! 18962: LTCC=$lt_LTCC
! 18963:
! 18964: # LTCC compiler flags.
! 18965: LTCFLAGS=$lt_LTCFLAGS
! 18966:
! 18967: # A language-specific compiler.
! 18968: CC=$lt_compiler_RC
! 18969:
! 18970: # Is the compiler the GNU C compiler?
! 18971: with_gcc=$GCC_RC
! 18972:
! 18973: # An ERE matcher.
! 18974: EGREP=$lt_EGREP
! 18975:
! 18976: # The linker used to build libraries.
! 18977: LD=$lt_LD_RC
! 18978:
! 18979: # Whether we need hard or soft links.
! 18980: LN_S=$lt_LN_S
! 18981:
! 18982: # A BSD-compatible nm program.
! 18983: NM=$lt_NM
! 18984:
! 18985: # A symbol stripping program
! 18986: STRIP=$lt_STRIP
! 18987:
! 18988: # Used to examine libraries when file_magic_cmd begins "file"
! 18989: MAGIC_CMD=$MAGIC_CMD
! 18990:
! 18991: # Used on cygwin: DLL creation program.
! 18992: DLLTOOL="$DLLTOOL"
! 18993:
! 18994: # Used on cygwin: object dumper.
! 18995: OBJDUMP="$OBJDUMP"
! 18996:
! 18997: # Used on cygwin: assembler.
! 18998: AS="$AS"
! 18999:
! 19000: # The name of the directory that contains temporary libtool files.
! 19001: objdir=$objdir
! 19002:
! 19003: # How to create reloadable object files.
! 19004: reload_flag=$lt_reload_flag
! 19005: reload_cmds=$lt_reload_cmds
! 19006:
! 19007: # How to pass a linker flag through the compiler.
! 19008: wl=$lt_lt_prog_compiler_wl_RC
! 19009:
! 19010: # Object file suffix (normally "o").
! 19011: objext="$ac_objext"
! 19012:
! 19013: # Old archive suffix (normally "a").
! 19014: libext="$libext"
! 19015:
! 19016: # Shared library suffix (normally ".so").
! 19017: shrext_cmds='$shrext_cmds'
! 19018:
! 19019: # Executable file suffix (normally "").
! 19020: exeext="$exeext"
! 19021:
! 19022: # Additional compiler flags for building library objects.
! 19023: pic_flag=$lt_lt_prog_compiler_pic_RC
! 19024: pic_mode=$pic_mode
! 19025:
! 19026: # What is the maximum length of a command?
! 19027: max_cmd_len=$lt_cv_sys_max_cmd_len
! 19028:
! 19029: # Does compiler simultaneously support -c and -o options?
! 19030: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
! 19031:
! 19032: # Must we lock files when doing compilation?
! 19033: need_locks=$lt_need_locks
! 19034:
! 19035: # Do we need the lib prefix for modules?
! 19036: need_lib_prefix=$need_lib_prefix
! 19037:
! 19038: # Do we need a version for libraries?
! 19039: need_version=$need_version
! 19040:
! 19041: # Whether dlopen is supported.
! 19042: dlopen_support=$enable_dlopen
! 19043:
! 19044: # Whether dlopen of programs is supported.
! 19045: dlopen_self=$enable_dlopen_self
! 19046:
! 19047: # Whether dlopen of statically linked programs is supported.
! 19048: dlopen_self_static=$enable_dlopen_self_static
! 19049:
! 19050: # Compiler flag to prevent dynamic linking.
! 19051: link_static_flag=$lt_lt_prog_compiler_static_RC
! 19052:
! 19053: # Compiler flag to turn off builtin functions.
! 19054: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
! 19055:
! 19056: # Compiler flag to allow reflexive dlopens.
! 19057: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
! 19058:
! 19059: # Compiler flag to generate shared objects directly from archives.
! 19060: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
! 19061:
! 19062: # Compiler flag to generate thread-safe objects.
! 19063: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
! 19064:
! 19065: # Library versioning type.
! 19066: version_type=$version_type
! 19067:
! 19068: # Format of library name prefix.
! 19069: libname_spec=$lt_libname_spec
! 19070:
! 19071: # List of archive names. First name is the real one, the rest are links.
! 19072: # The last name is the one that the linker finds with -lNAME.
! 19073: library_names_spec=$lt_library_names_spec
! 19074:
! 19075: # The coded name of the library, if different from the real name.
! 19076: soname_spec=$lt_soname_spec
! 19077:
! 19078: # Commands used to build and install an old-style archive.
! 19079: RANLIB=$lt_RANLIB
! 19080: old_archive_cmds=$lt_old_archive_cmds_RC
! 19081: old_postinstall_cmds=$lt_old_postinstall_cmds
! 19082: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 19083:
! 19084: # Create an old-style archive from a shared archive.
! 19085: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
! 19086:
! 19087: # Create a temporary old-style archive to link instead of a shared archive.
! 19088: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
! 19089:
! 19090: # Commands used to build and install a shared archive.
! 19091: archive_cmds=$lt_archive_cmds_RC
! 19092: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
! 19093: postinstall_cmds=$lt_postinstall_cmds
! 19094: postuninstall_cmds=$lt_postuninstall_cmds
! 19095:
! 19096: # Commands used to build a loadable module (assumed same as above if empty)
! 19097: module_cmds=$lt_module_cmds_RC
! 19098: module_expsym_cmds=$lt_module_expsym_cmds_RC
! 19099:
! 19100: # Commands to strip libraries.
! 19101: old_striplib=$lt_old_striplib
! 19102: striplib=$lt_striplib
! 19103:
! 19104: # Dependencies to place before the objects being linked to create a
! 19105: # shared library.
! 19106: predep_objects=$lt_predep_objects_RC
! 19107:
! 19108: # Dependencies to place after the objects being linked to create a
! 19109: # shared library.
! 19110: postdep_objects=$lt_postdep_objects_RC
! 19111:
! 19112: # Dependencies to place before the objects being linked to create a
! 19113: # shared library.
! 19114: predeps=$lt_predeps_RC
! 19115:
! 19116: # Dependencies to place after the objects being linked to create a
! 19117: # shared library.
! 19118: postdeps=$lt_postdeps_RC
! 19119:
! 19120: # The library search path used internally by the compiler when linking
! 19121: # a shared library.
! 19122: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
! 19123:
! 19124: # Method to check whether dependent libraries are shared objects.
! 19125: deplibs_check_method=$lt_deplibs_check_method
! 19126:
! 19127: # Command to use when deplibs_check_method == file_magic.
! 19128: file_magic_cmd=$lt_file_magic_cmd
! 19129:
! 19130: # Flag that allows shared libraries with undefined symbols to be built.
! 19131: allow_undefined_flag=$lt_allow_undefined_flag_RC
! 19132:
! 19133: # Flag that forces no undefined symbols.
! 19134: no_undefined_flag=$lt_no_undefined_flag_RC
! 19135:
! 19136: # Commands used to finish a libtool library installation in a directory.
! 19137: finish_cmds=$lt_finish_cmds
! 19138:
! 19139: # Same as above, but a single script fragment to be evaled but not shown.
! 19140: finish_eval=$lt_finish_eval
! 19141:
! 19142: # Take the output of nm and produce a listing of raw symbols and C names.
! 19143: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 19144:
! 19145: # Transform the output of nm in a proper C declaration
! 19146: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 19147:
! 19148: # Transform the output of nm in a C name address pair
! 19149: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 19150:
! 19151: # This is the shared library runtime path variable.
! 19152: runpath_var=$runpath_var
! 19153:
! 19154: # This is the shared library path variable.
! 19155: shlibpath_var=$shlibpath_var
! 19156:
! 19157: # Is shlibpath searched before the hard-coded library search path?
! 19158: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 19159:
! 19160: # How to hardcode a shared library path into an executable.
! 19161: hardcode_action=$hardcode_action_RC
! 19162:
! 19163: # Whether we should hardcode library paths into libraries.
! 19164: hardcode_into_libs=$hardcode_into_libs
! 19165:
! 19166: # Flag to hardcode \$libdir into a binary during linking.
! 19167: # This must work even if \$libdir does not exist.
! 19168: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
! 19169:
! 19170: # If ld is used when linking, flag to hardcode \$libdir into
! 19171: # a binary during linking. This must work even if \$libdir does
! 19172: # not exist.
! 19173: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
! 19174:
! 19175: # Whether we need a single -rpath flag with a separated argument.
! 19176: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
! 19177:
! 19178: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 19179: # resulting binary.
! 19180: hardcode_direct=$hardcode_direct_RC
! 19181:
! 19182: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 19183: # resulting binary.
! 19184: hardcode_minus_L=$hardcode_minus_L_RC
! 19185:
! 19186: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 19187: # the resulting binary.
! 19188: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
! 19189:
! 19190: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 19191: # and all subsequent libraries and executables linked against it.
! 19192: hardcode_automatic=$hardcode_automatic_RC
! 19193:
! 19194: # Variables whose values should be saved in libtool wrapper scripts and
! 19195: # restored at relink time.
! 19196: variables_saved_for_relink="$variables_saved_for_relink"
! 19197:
! 19198: # Whether libtool must link a program against all its dependency libraries.
! 19199: link_all_deplibs=$link_all_deplibs_RC
! 19200:
! 19201: # Compile-time system search path for libraries
! 19202: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 19203:
! 19204: # Run-time system search path for libraries
! 19205: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 19206:
! 19207: # Fix the shell variable \$srcfile for the compiler.
! 19208: fix_srcfile_path="$fix_srcfile_path_RC"
! 19209:
! 19210: # Set to yes if exported symbols are required.
! 19211: always_export_symbols=$always_export_symbols_RC
! 19212:
! 19213: # The commands to list exported symbols.
! 19214: export_symbols_cmds=$lt_export_symbols_cmds_RC
! 19215:
! 19216: # The commands to extract the exported symbol list from a shared archive.
! 19217: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 19218:
! 19219: # Symbols that should not be listed in the preloaded symbols.
! 19220: exclude_expsyms=$lt_exclude_expsyms_RC
! 19221:
! 19222: # Symbols that must always be exported.
! 19223: include_expsyms=$lt_include_expsyms_RC
! 19224:
! 19225: # ### END LIBTOOL TAG CONFIG: $tagname
! 19226:
! 19227: __EOF__
! 19228:
! 19229:
1.7 ohara 19230: else
1.9 ! ohara 19231: # If there is no Makefile yet, we rely on a make rule to execute
! 19232: # `config.status --recheck' to rerun these tests and create the
! 19233: # libtool script then.
! 19234: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 19235: if test -f "$ltmain_in"; then
! 19236: test -f Makefile && make "$ltmain"
! 19237: fi
1.7 ohara 19238: fi
19239:
19240:
1.9 ! ohara 19241: ac_ext=c
! 19242: ac_cpp='$CPP $CPPFLAGS'
! 19243: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 19244: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 19245: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 19246:
! 19247: CC="$lt_save_CC"
1.7 ohara 19248:
1.9 ! ohara 19249: ;;
1.7 ohara 19250:
1.9 ! ohara 19251: *)
! 19252: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
! 19253: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
! 19254: { (exit 1); exit 1; }; }
! 19255: ;;
! 19256: esac
1.7 ohara 19257:
1.9 ! ohara 19258: # Append the new tag name to the list of available tags.
! 19259: if test -n "$tagname" ; then
! 19260: available_tags="$available_tags $tagname"
! 19261: fi
! 19262: fi
! 19263: done
! 19264: IFS="$lt_save_ifs"
1.7 ohara 19265:
1.9 ! ohara 19266: # Now substitute the updated list of available tags.
! 19267: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
! 19268: mv "${ofile}T" "$ofile"
! 19269: chmod +x "$ofile"
1.7 ohara 19270: else
1.9 ! ohara 19271: rm -f "${ofile}T"
! 19272: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
! 19273: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
! 19274: { (exit 1); exit 1; }; }
1.7 ohara 19275: fi
19276: fi
19277:
19278:
19279:
19280: # This can be used to rebuild libtool when needed
1.9 ! ohara 19281: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.7 ohara 19282:
19283: # Always use our own libtool.
19284: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19285:
1.9 ! ohara 19286: # Prevent multiple expansion
! 19287:
! 19288:
! 19289:
! 19290:
! 19291:
! 19292:
! 19293:
! 19294:
! 19295:
! 19296:
1.7 ohara 19297:
1.4 takayama 19298:
19299:
19300:
19301:
19302:
19303:
1.1 ohara 19304:
1.4 takayama 19305:
19306:
1.9 ! ohara 19307: { echo "$as_me:$LINENO: checking for X" >&5
! 19308: echo $ECHO_N "checking for X... $ECHO_C" >&6; }
1.4 takayama 19309:
1.1 ohara 19310:
1.9 ! ohara 19311: # Check whether --with-x was given.
1.1 ohara 19312: if test "${with_x+set}" = set; then
1.9 ! ohara 19313: withval=$with_x;
! 19314: fi
1.1 ohara 19315:
19316: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19317: if test "x$with_x" = xno; then
19318: # The user explicitly disabled X.
19319: have_x=disabled
19320: else
1.9 ! ohara 19321: case $x_includes,$x_libraries in #(
! 19322: *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
! 19323: echo "$as_me: error: Cannot use X directory names containing '" >&2;}
! 19324: { (exit 1); exit 1; }; };; #(
! 19325: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
1.4 takayama 19326: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 19327: else
19328: # One or both of the vars are not set, and there is no cached value.
1.4 takayama 19329: ac_x_includes=no ac_x_libraries=no
1.9 ! ohara 19330: rm -f -r conftest.dir
1.4 takayama 19331: if mkdir conftest.dir; then
19332: cd conftest.dir
19333: cat >Imakefile <<'_ACEOF'
1.9 ! ohara 19334: incroot:
! 19335: @echo incroot='${INCROOT}'
! 19336: usrlibdir:
! 19337: @echo usrlibdir='${USRLIBDIR}'
! 19338: libdir:
! 19339: @echo libdir='${LIBDIR}'
1.4 takayama 19340: _ACEOF
1.9 ! ohara 19341: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.1 ohara 19342: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.9 ! ohara 19343: for ac_var in incroot usrlibdir libdir; do
! 19344: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
! 19345: done
1.1 ohara 19346: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19347: for ac_extension in a so sl; do
1.9 ! ohara 19348: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
! 19349: test -f "$ac_im_libdir/libX11.$ac_extension"; then
! 19350: ac_im_usrlibdir=$ac_im_libdir; break
1.1 ohara 19351: fi
19352: done
19353: # Screen out bogus values from the imake configuration. They are
19354: # bogus both because they are the default anyway, and because
19355: # using them would break gcc on systems where it needs fixed includes.
1.4 takayama 19356: case $ac_im_incroot in
1.9 ! ohara 19357: /usr/include) ac_x_includes= ;;
1.4 takayama 19358: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
1.1 ohara 19359: esac
1.4 takayama 19360: case $ac_im_usrlibdir in
1.1 ohara 19361: /usr/lib | /lib) ;;
1.4 takayama 19362: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
1.1 ohara 19363: esac
19364: fi
19365: cd ..
1.9 ! ohara 19366: rm -f -r conftest.dir
1.1 ohara 19367: fi
19368:
1.4 takayama 19369: # Standard set of common directories for X headers.
19370: # Check X11 before X11Rn because it is often a symlink to the current release.
19371: ac_x_header_dirs='
19372: /usr/X11/include
19373: /usr/X11R6/include
19374: /usr/X11R5/include
19375: /usr/X11R4/include
19376:
19377: /usr/include/X11
19378: /usr/include/X11R6
19379: /usr/include/X11R5
19380: /usr/include/X11R4
19381:
19382: /usr/local/X11/include
19383: /usr/local/X11R6/include
19384: /usr/local/X11R5/include
19385: /usr/local/X11R4/include
19386:
19387: /usr/local/include/X11
19388: /usr/local/include/X11R6
19389: /usr/local/include/X11R5
19390: /usr/local/include/X11R4
19391:
19392: /usr/X386/include
19393: /usr/x386/include
19394: /usr/XFree86/include/X11
19395:
19396: /usr/include
19397: /usr/local/include
19398: /usr/unsupported/include
19399: /usr/athena/include
19400: /usr/local/x11r5/include
19401: /usr/lpp/Xamples/include
19402:
19403: /usr/openwin/include
19404: /usr/openwin/share/include'
1.1 ohara 19405:
1.4 takayama 19406: if test "$ac_x_includes" = no; then
1.9 ! ohara 19407: # Guess where to find include files, by looking for Xlib.h.
1.1 ohara 19408: # First, try using that file with no special directory specified.
1.4 takayama 19409: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19410: /* confdefs.h. */
! 19411: _ACEOF
! 19412: cat confdefs.h >>conftest.$ac_ext
! 19413: cat >>conftest.$ac_ext <<_ACEOF
! 19414: /* end confdefs.h. */
! 19415: #include <X11/Xlib.h>
1.4 takayama 19416: _ACEOF
1.9 ! ohara 19417: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 19418: case "(($ac_try" in
! 19419: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19420: *) ac_try_echo=$ac_try;;
! 19421: esac
! 19422: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19423: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.4 takayama 19424: ac_status=$?
1.9 ! ohara 19425: grep -v '^ *+' conftest.er1 >conftest.err
1.4 takayama 19426: rm -f conftest.er1
19427: cat conftest.err >&5
19428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19429: (exit $ac_status); } >/dev/null && {
! 19430: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 19431: test ! -s conftest.err
! 19432: }; then
1.1 ohara 19433: # We can compile using X headers with no special include directory.
19434: ac_x_includes=
19435: else
1.4 takayama 19436: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19437: sed 's/^/| /' conftest.$ac_ext >&5
! 19438:
1.4 takayama 19439: for ac_dir in $ac_x_header_dirs; do
1.9 ! ohara 19440: if test -r "$ac_dir/X11/Xlib.h"; then
1.4 takayama 19441: ac_x_includes=$ac_dir
19442: break
19443: fi
19444: done
1.1 ohara 19445: fi
1.9 ! ohara 19446:
1.4 takayama 19447: rm -f conftest.err conftest.$ac_ext
19448: fi # $ac_x_includes = no
1.1 ohara 19449:
1.4 takayama 19450: if test "$ac_x_libraries" = no; then
1.1 ohara 19451: # Check for the libraries.
19452: # See if we find them without any special options.
19453: # Don't add to $LIBS permanently.
1.4 takayama 19454: ac_save_LIBS=$LIBS
1.9 ! ohara 19455: LIBS="-lX11 $LIBS"
1.4 takayama 19456: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19457: /* confdefs.h. */
! 19458: _ACEOF
! 19459: cat confdefs.h >>conftest.$ac_ext
! 19460: cat >>conftest.$ac_ext <<_ACEOF
! 19461: /* end confdefs.h. */
! 19462: #include <X11/Xlib.h>
1.4 takayama 19463: int
19464: main ()
19465: {
1.9 ! ohara 19466: XrmInitialize ()
1.4 takayama 19467: ;
19468: return 0;
19469: }
19470: _ACEOF
19471: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19472: if { (ac_try="$ac_link"
! 19473: case "(($ac_try" in
! 19474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19475: *) ac_try_echo=$ac_try;;
! 19476: esac
! 19477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19478: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19479: ac_status=$?
1.9 ! ohara 19480: grep -v '^ *+' conftest.er1 >conftest.err
! 19481: rm -f conftest.er1
! 19482: cat conftest.err >&5
1.4 takayama 19483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19484: (exit $ac_status); } && {
! 19485: test -z "$ac_c_werror_flag" ||
! 19486: test ! -s conftest.err
! 19487: } && test -s conftest$ac_exeext &&
! 19488: $as_test_x conftest$ac_exeext; then
1.4 takayama 19489: LIBS=$ac_save_LIBS
1.1 ohara 19490: # We can link X programs with no special library path.
19491: ac_x_libraries=
19492: else
1.4 takayama 19493: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19494: sed 's/^/| /' conftest.$ac_ext >&5
! 19495:
! 19496: LIBS=$ac_save_LIBS
1.4 takayama 19497: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.1 ohara 19498: do
1.4 takayama 19499: # Don't even attempt the hair of trying to link an X program!
1.1 ohara 19500: for ac_extension in a so sl; do
1.9 ! ohara 19501: if test -r "$ac_dir/libX11.$ac_extension"; then
1.1 ohara 19502: ac_x_libraries=$ac_dir
19503: break 2
19504: fi
19505: done
19506: done
19507: fi
1.9 ! ohara 19508:
! 19509: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19510: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 19511: fi # $ac_x_libraries = no
1.9 ! ohara 19512:
! 19513: case $ac_x_includes,$ac_x_libraries in #(
! 19514: no,* | *,no | *\'*)
! 19515: # Didn't find X, or a directory has "'" in its name.
! 19516: ac_cv_have_x="have_x=no";; #(
! 19517: *)
! 19518: # Record where we found X for the cache.
! 19519: ac_cv_have_x="have_x=yes\
! 19520: ac_x_includes='$ac_x_includes'\
! 19521: ac_x_libraries='$ac_x_libraries'"
! 19522: esac
1.1 ohara 19523: fi
1.9 ! ohara 19524: ;; #(
! 19525: *) have_x=yes;;
! 19526: esac
1.1 ohara 19527: eval "$ac_cv_have_x"
19528: fi # $with_x != no
19529:
19530: if test "$have_x" != yes; then
1.9 ! ohara 19531: { echo "$as_me:$LINENO: result: $have_x" >&5
! 19532: echo "${ECHO_T}$have_x" >&6; }
1.1 ohara 19533: no_x=yes
19534: else
19535: # If each of the values was on the command line, it overrides each guess.
19536: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19537: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19538: # Update the cache value to reflect the command line values.
1.9 ! ohara 19539: ac_cv_have_x="have_x=yes\
! 19540: ac_x_includes='$x_includes'\
! 19541: ac_x_libraries='$x_libraries'"
! 19542: { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
! 19543: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
1.1 ohara 19544: fi
19545:
19546: if test "$no_x" = yes; then
19547: # Not all programs may use this symbol, but it does not hurt to define it.
1.4 takayama 19548:
19549: cat >>confdefs.h <<\_ACEOF
1.1 ohara 19550: #define X_DISPLAY_MISSING 1
1.4 takayama 19551: _ACEOF
1.1 ohara 19552:
19553: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19554: else
19555: if test -n "$x_includes"; then
19556: X_CFLAGS="$X_CFLAGS -I$x_includes"
19557: fi
19558:
19559: # It would also be nice to do this for all -L options, not just this one.
19560: if test -n "$x_libraries"; then
19561: X_LIBS="$X_LIBS -L$x_libraries"
19562: # For Solaris; some versions of Sun CC require a space after -R and
19563: # others require no space. Words are not sufficient . . . .
1.9 ! ohara 19564: { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
! 19565: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
! 19566: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
! 19567: ac_xsave_c_werror_flag=$ac_c_werror_flag
! 19568: ac_c_werror_flag=yes
! 19569: cat >conftest.$ac_ext <<_ACEOF
! 19570: /* confdefs.h. */
! 19571: _ACEOF
! 19572: cat confdefs.h >>conftest.$ac_ext
! 19573: cat >>conftest.$ac_ext <<_ACEOF
! 19574: /* end confdefs.h. */
1.1 ohara 19575:
1.4 takayama 19576: int
19577: main ()
19578: {
19579:
19580: ;
19581: return 0;
19582: }
19583: _ACEOF
19584: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19585: if { (ac_try="$ac_link"
! 19586: case "(($ac_try" in
! 19587: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19588: *) ac_try_echo=$ac_try;;
! 19589: esac
! 19590: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19591: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19592: ac_status=$?
1.9 ! ohara 19593: grep -v '^ *+' conftest.er1 >conftest.err
! 19594: rm -f conftest.er1
! 19595: cat conftest.err >&5
1.4 takayama 19596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19597: (exit $ac_status); } && {
! 19598: test -z "$ac_c_werror_flag" ||
! 19599: test ! -s conftest.err
! 19600: } && test -s conftest$ac_exeext &&
! 19601: $as_test_x conftest$ac_exeext; then
! 19602: { echo "$as_me:$LINENO: result: no" >&5
! 19603: echo "${ECHO_T}no" >&6; }
! 19604: X_LIBS="$X_LIBS -R$x_libraries"
1.1 ohara 19605: else
1.4 takayama 19606: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19607: sed 's/^/| /' conftest.$ac_ext >&5
! 19608:
1.1 ohara 19609: LIBS="$ac_xsave_LIBS -R $x_libraries"
1.9 ! ohara 19610: cat >conftest.$ac_ext <<_ACEOF
! 19611: /* confdefs.h. */
! 19612: _ACEOF
! 19613: cat confdefs.h >>conftest.$ac_ext
! 19614: cat >>conftest.$ac_ext <<_ACEOF
! 19615: /* end confdefs.h. */
1.1 ohara 19616:
1.4 takayama 19617: int
19618: main ()
19619: {
19620:
19621: ;
19622: return 0;
19623: }
19624: _ACEOF
19625: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19626: if { (ac_try="$ac_link"
! 19627: case "(($ac_try" in
! 19628: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19629: *) ac_try_echo=$ac_try;;
! 19630: esac
! 19631: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19632: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19633: ac_status=$?
1.9 ! ohara 19634: grep -v '^ *+' conftest.er1 >conftest.err
! 19635: rm -f conftest.er1
! 19636: cat conftest.err >&5
1.4 takayama 19637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19638: (exit $ac_status); } && {
! 19639: test -z "$ac_c_werror_flag" ||
! 19640: test ! -s conftest.err
! 19641: } && test -s conftest$ac_exeext &&
! 19642: $as_test_x conftest$ac_exeext; then
! 19643: { echo "$as_me:$LINENO: result: yes" >&5
! 19644: echo "${ECHO_T}yes" >&6; }
! 19645: X_LIBS="$X_LIBS -R $x_libraries"
1.1 ohara 19646: else
1.4 takayama 19647: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19648: sed 's/^/| /' conftest.$ac_ext >&5
! 19649:
! 19650: { echo "$as_me:$LINENO: result: neither works" >&5
! 19651: echo "${ECHO_T}neither works" >&6; }
! 19652: fi
! 19653:
! 19654: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19655: conftest$ac_exeext conftest.$ac_ext
1.1 ohara 19656: fi
1.9 ! ohara 19657:
! 19658: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19659: conftest$ac_exeext conftest.$ac_ext
! 19660: ac_c_werror_flag=$ac_xsave_c_werror_flag
! 19661: LIBS=$ac_xsave_LIBS
1.1 ohara 19662: fi
19663:
19664: # Check for system-dependent libraries X programs must link with.
19665: # Do this before checking for the system-independent R6 libraries
19666: # (-lICE), since we may need -lsocket or whatever for X linking.
19667:
19668: if test "$ISC" = yes; then
19669: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19670: else
1.4 takayama 19671: # Martyn Johnson says this is needed for Ultrix, if the X
19672: # libraries were built with DECnet support. And Karl Berry says
1.1 ohara 19673: # the Alpha needs dnet_stub (dnet does not exist).
1.4 takayama 19674: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19675: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19676: /* confdefs.h. */
! 19677: _ACEOF
! 19678: cat confdefs.h >>conftest.$ac_ext
! 19679: cat >>conftest.$ac_ext <<_ACEOF
! 19680: /* end confdefs.h. */
1.4 takayama 19681:
1.9 ! ohara 19682: /* Override any GCC internal prototype to avoid an error.
! 19683: Use char because int might match the return type of a GCC
! 19684: builtin and then its argument prototype would still apply. */
1.4 takayama 19685: #ifdef __cplusplus
19686: extern "C"
19687: #endif
19688: char XOpenDisplay ();
19689: int
19690: main ()
19691: {
1.9 ! ohara 19692: return XOpenDisplay ();
1.4 takayama 19693: ;
19694: return 0;
19695: }
19696: _ACEOF
19697: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19698: if { (ac_try="$ac_link"
! 19699: case "(($ac_try" in
! 19700: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19701: *) ac_try_echo=$ac_try;;
! 19702: esac
! 19703: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19704: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19705: ac_status=$?
1.9 ! ohara 19706: grep -v '^ *+' conftest.er1 >conftest.err
! 19707: rm -f conftest.er1
! 19708: cat conftest.err >&5
1.4 takayama 19709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19710: (exit $ac_status); } && {
! 19711: test -z "$ac_c_werror_flag" ||
! 19712: test ! -s conftest.err
! 19713: } && test -s conftest$ac_exeext &&
! 19714: $as_test_x conftest$ac_exeext; then
1.4 takayama 19715: :
1.1 ohara 19716: else
1.4 takayama 19717: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19718: sed 's/^/| /' conftest.$ac_ext >&5
! 19719:
! 19720: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
! 19721: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
1.4 takayama 19722: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19723: echo $ECHO_N "(cached) $ECHO_C" >&6
19724: else
19725: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 19726: LIBS="-ldnet $LIBS"
1.4 takayama 19727: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19728: /* confdefs.h. */
! 19729: _ACEOF
! 19730: cat confdefs.h >>conftest.$ac_ext
! 19731: cat >>conftest.$ac_ext <<_ACEOF
! 19732: /* end confdefs.h. */
1.4 takayama 19733:
1.9 ! ohara 19734: /* Override any GCC internal prototype to avoid an error.
! 19735: Use char because int might match the return type of a GCC
! 19736: builtin and then its argument prototype would still apply. */
1.4 takayama 19737: #ifdef __cplusplus
19738: extern "C"
19739: #endif
19740: char dnet_ntoa ();
19741: int
19742: main ()
19743: {
1.9 ! ohara 19744: return dnet_ntoa ();
1.4 takayama 19745: ;
19746: return 0;
19747: }
19748: _ACEOF
19749: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19750: if { (ac_try="$ac_link"
! 19751: case "(($ac_try" in
! 19752: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19753: *) ac_try_echo=$ac_try;;
! 19754: esac
! 19755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19756: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19757: ac_status=$?
1.9 ! ohara 19758: grep -v '^ *+' conftest.er1 >conftest.err
! 19759: rm -f conftest.er1
! 19760: cat conftest.err >&5
1.4 takayama 19761: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19762: (exit $ac_status); } && {
! 19763: test -z "$ac_c_werror_flag" ||
! 19764: test ! -s conftest.err
! 19765: } && test -s conftest$ac_exeext &&
! 19766: $as_test_x conftest$ac_exeext; then
1.4 takayama 19767: ac_cv_lib_dnet_dnet_ntoa=yes
19768: else
19769: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19770: sed 's/^/| /' conftest.$ac_ext >&5
! 19771:
! 19772: ac_cv_lib_dnet_dnet_ntoa=no
1.4 takayama 19773: fi
1.9 ! ohara 19774:
! 19775: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19776: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 19777: LIBS=$ac_check_lib_save_LIBS
19778: fi
1.9 ! ohara 19779: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
! 19780: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.4 takayama 19781: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
1.1 ohara 19782: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19783: fi
19784:
19785: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.9 ! ohara 19786: { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
! 19787: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
1.4 takayama 19788: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 19790: else
1.4 takayama 19791: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 19792: LIBS="-ldnet_stub $LIBS"
1.4 takayama 19793: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19794: /* confdefs.h. */
! 19795: _ACEOF
! 19796: cat confdefs.h >>conftest.$ac_ext
! 19797: cat >>conftest.$ac_ext <<_ACEOF
! 19798: /* end confdefs.h. */
1.4 takayama 19799:
1.9 ! ohara 19800: /* Override any GCC internal prototype to avoid an error.
! 19801: Use char because int might match the return type of a GCC
! 19802: builtin and then its argument prototype would still apply. */
1.4 takayama 19803: #ifdef __cplusplus
19804: extern "C"
19805: #endif
19806: char dnet_ntoa ();
19807: int
19808: main ()
19809: {
1.9 ! ohara 19810: return dnet_ntoa ();
1.4 takayama 19811: ;
19812: return 0;
19813: }
19814: _ACEOF
19815: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19816: if { (ac_try="$ac_link"
! 19817: case "(($ac_try" in
! 19818: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19819: *) ac_try_echo=$ac_try;;
! 19820: esac
! 19821: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19822: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19823: ac_status=$?
1.9 ! ohara 19824: grep -v '^ *+' conftest.er1 >conftest.err
! 19825: rm -f conftest.er1
! 19826: cat conftest.err >&5
1.4 takayama 19827: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19828: (exit $ac_status); } && {
! 19829: test -z "$ac_c_werror_flag" ||
! 19830: test ! -s conftest.err
! 19831: } && test -s conftest$ac_exeext &&
! 19832: $as_test_x conftest$ac_exeext; then
1.4 takayama 19833: ac_cv_lib_dnet_stub_dnet_ntoa=yes
19834: else
19835: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19836: sed 's/^/| /' conftest.$ac_ext >&5
! 19837:
! 19838: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.4 takayama 19839: fi
1.9 ! ohara 19840:
! 19841: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19842: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 19843: LIBS=$ac_check_lib_save_LIBS
19844: fi
1.9 ! ohara 19845: { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
! 19846: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.4 takayama 19847: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
1.1 ohara 19848: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19849: fi
19850:
19851: fi
1.4 takayama 19852: fi
1.9 ! ohara 19853:
! 19854: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19855: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 19856: LIBS="$ac_xsave_LIBS"
1.1 ohara 19857:
19858: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19859: # to get the SysV transport functions.
1.4 takayama 19860: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
1.1 ohara 19861: # needs -lnsl.
19862: # The nsl library prevents programs from opening the X display
1.4 takayama 19863: # on Irix 5.2, according to T.E. Dickey.
19864: # The functions gethostbyname, getservbyname, and inet_addr are
19865: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.9 ! ohara 19866: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 19867: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
1.4 takayama 19868: if test "${ac_cv_func_gethostbyname+set}" = set; then
19869: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 19870: else
1.4 takayama 19871: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19872: /* confdefs.h. */
! 19873: _ACEOF
! 19874: cat confdefs.h >>conftest.$ac_ext
! 19875: cat >>conftest.$ac_ext <<_ACEOF
! 19876: /* end confdefs.h. */
! 19877: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
! 19878: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 19879: #define gethostbyname innocuous_gethostbyname
! 19880:
1.1 ohara 19881: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 19882: which can conflict with char gethostbyname (); below.
! 19883: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 19884: <limits.h> exists even on freestanding compilers. */
! 19885:
! 19886: #ifdef __STDC__
! 19887: # include <limits.h>
! 19888: #else
! 19889: # include <assert.h>
! 19890: #endif
! 19891:
! 19892: #undef gethostbyname
! 19893:
! 19894: /* Override any GCC internal prototype to avoid an error.
! 19895: Use char because int might match the return type of a GCC
! 19896: builtin and then its argument prototype would still apply. */
1.4 takayama 19897: #ifdef __cplusplus
19898: extern "C"
19899: #endif
19900: char gethostbyname ();
1.1 ohara 19901: /* The GNU C library defines this for functions which it implements
19902: to always fail with ENOSYS. Some functions are actually named
19903: something starting with __ and the normal name is an alias. */
1.9 ! ohara 19904: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.1 ohara 19905: choke me
19906: #endif
19907:
1.9 ! ohara 19908: int
! 19909: main ()
! 19910: {
! 19911: return gethostbyname ();
1.4 takayama 19912: ;
19913: return 0;
19914: }
19915: _ACEOF
19916: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19917: if { (ac_try="$ac_link"
! 19918: case "(($ac_try" in
! 19919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19920: *) ac_try_echo=$ac_try;;
! 19921: esac
! 19922: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19923: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19924: ac_status=$?
1.9 ! ohara 19925: grep -v '^ *+' conftest.er1 >conftest.err
! 19926: rm -f conftest.er1
! 19927: cat conftest.err >&5
1.4 takayama 19928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19929: (exit $ac_status); } && {
! 19930: test -z "$ac_c_werror_flag" ||
! 19931: test ! -s conftest.err
! 19932: } && test -s conftest$ac_exeext &&
! 19933: $as_test_x conftest$ac_exeext; then
1.4 takayama 19934: ac_cv_func_gethostbyname=yes
19935: else
19936: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19937: sed 's/^/| /' conftest.$ac_ext >&5
! 19938:
! 19939: ac_cv_func_gethostbyname=no
1.1 ohara 19940: fi
1.9 ! ohara 19941:
! 19942: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 19943: conftest$ac_exeext conftest.$ac_ext
1.1 ohara 19944: fi
1.9 ! ohara 19945: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 19946: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
1.1 ohara 19947:
19948: if test $ac_cv_func_gethostbyname = no; then
1.9 ! ohara 19949: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 19950: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
1.4 takayama 19951: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19952: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 19953: else
1.4 takayama 19954: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 19955: LIBS="-lnsl $LIBS"
1.4 takayama 19956: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 19957: /* confdefs.h. */
! 19958: _ACEOF
! 19959: cat confdefs.h >>conftest.$ac_ext
! 19960: cat >>conftest.$ac_ext <<_ACEOF
! 19961: /* end confdefs.h. */
1.4 takayama 19962:
1.9 ! ohara 19963: /* Override any GCC internal prototype to avoid an error.
! 19964: Use char because int might match the return type of a GCC
! 19965: builtin and then its argument prototype would still apply. */
1.4 takayama 19966: #ifdef __cplusplus
19967: extern "C"
19968: #endif
19969: char gethostbyname ();
19970: int
19971: main ()
19972: {
1.9 ! ohara 19973: return gethostbyname ();
1.4 takayama 19974: ;
19975: return 0;
19976: }
19977: _ACEOF
19978: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 19979: if { (ac_try="$ac_link"
! 19980: case "(($ac_try" in
! 19981: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 19982: *) ac_try_echo=$ac_try;;
! 19983: esac
! 19984: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 19985: (eval "$ac_link") 2>conftest.er1
1.4 takayama 19986: ac_status=$?
1.9 ! ohara 19987: grep -v '^ *+' conftest.er1 >conftest.err
! 19988: rm -f conftest.er1
! 19989: cat conftest.err >&5
1.4 takayama 19990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 19991: (exit $ac_status); } && {
! 19992: test -z "$ac_c_werror_flag" ||
! 19993: test ! -s conftest.err
! 19994: } && test -s conftest$ac_exeext &&
! 19995: $as_test_x conftest$ac_exeext; then
1.4 takayama 19996: ac_cv_lib_nsl_gethostbyname=yes
19997: else
19998: echo "$as_me: failed program was:" >&5
1.9 ! ohara 19999: sed 's/^/| /' conftest.$ac_ext >&5
! 20000:
! 20001: ac_cv_lib_nsl_gethostbyname=no
1.4 takayama 20002: fi
1.9 ! ohara 20003:
! 20004: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20005: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20006: LIBS=$ac_check_lib_save_LIBS
20007: fi
1.9 ! ohara 20008: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 20009: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
1.4 takayama 20010: if test $ac_cv_lib_nsl_gethostbyname = yes; then
20011: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20012: fi
1.1 ohara 20013:
1.4 takayama 20014: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.9 ! ohara 20015: { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
! 20016: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
1.4 takayama 20017: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20018: echo $ECHO_N "(cached) $ECHO_C" >&6
20019: else
20020: ac_check_lib_save_LIBS=$LIBS
20021: LIBS="-lbsd $LIBS"
20022: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20023: /* confdefs.h. */
! 20024: _ACEOF
! 20025: cat confdefs.h >>conftest.$ac_ext
! 20026: cat >>conftest.$ac_ext <<_ACEOF
! 20027: /* end confdefs.h. */
1.1 ohara 20028:
1.9 ! ohara 20029: /* Override any GCC internal prototype to avoid an error.
! 20030: Use char because int might match the return type of a GCC
! 20031: builtin and then its argument prototype would still apply. */
1.4 takayama 20032: #ifdef __cplusplus
20033: extern "C"
20034: #endif
20035: char gethostbyname ();
20036: int
20037: main ()
20038: {
1.9 ! ohara 20039: return gethostbyname ();
1.4 takayama 20040: ;
20041: return 0;
20042: }
20043: _ACEOF
20044: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20045: if { (ac_try="$ac_link"
! 20046: case "(($ac_try" in
! 20047: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20048: *) ac_try_echo=$ac_try;;
! 20049: esac
! 20050: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20051: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20052: ac_status=$?
1.9 ! ohara 20053: grep -v '^ *+' conftest.er1 >conftest.err
! 20054: rm -f conftest.er1
! 20055: cat conftest.err >&5
1.4 takayama 20056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20057: (exit $ac_status); } && {
! 20058: test -z "$ac_c_werror_flag" ||
! 20059: test ! -s conftest.err
! 20060: } && test -s conftest$ac_exeext &&
! 20061: $as_test_x conftest$ac_exeext; then
1.4 takayama 20062: ac_cv_lib_bsd_gethostbyname=yes
20063: else
20064: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20065: sed 's/^/| /' conftest.$ac_ext >&5
! 20066:
! 20067: ac_cv_lib_bsd_gethostbyname=no
1.4 takayama 20068: fi
1.9 ! ohara 20069:
! 20070: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20071: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20072: LIBS=$ac_check_lib_save_LIBS
20073: fi
1.9 ! ohara 20074: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
! 20075: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
1.4 takayama 20076: if test $ac_cv_lib_bsd_gethostbyname = yes; then
20077: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
1.1 ohara 20078: fi
20079:
1.4 takayama 20080: fi
1.1 ohara 20081: fi
20082:
20083: # lieder@skyler.mavd.honeywell.com says without -lsocket,
20084: # socket/setsockopt and other routines are undefined under SCO ODT
20085: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1.4 takayama 20086: # on later versions), says Simon Leinen: it contains gethostby*
1.9 ! ohara 20087: # variants that don't use the name server (or something). -lsocket
1.4 takayama 20088: # must be given before -lnsl if both are needed. We assume that
20089: # if connect needs -lnsl, so does gethostbyname.
1.9 ! ohara 20090: { echo "$as_me:$LINENO: checking for connect" >&5
! 20091: echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
1.4 takayama 20092: if test "${ac_cv_func_connect+set}" = set; then
20093: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20094: else
1.4 takayama 20095: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20096: /* confdefs.h. */
! 20097: _ACEOF
! 20098: cat confdefs.h >>conftest.$ac_ext
! 20099: cat >>conftest.$ac_ext <<_ACEOF
! 20100: /* end confdefs.h. */
! 20101: /* Define connect to an innocuous variant, in case <limits.h> declares connect.
! 20102: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20103: #define connect innocuous_connect
! 20104:
1.1 ohara 20105: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 20106: which can conflict with char connect (); below.
! 20107: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20108: <limits.h> exists even on freestanding compilers. */
! 20109:
! 20110: #ifdef __STDC__
! 20111: # include <limits.h>
! 20112: #else
! 20113: # include <assert.h>
! 20114: #endif
! 20115:
! 20116: #undef connect
! 20117:
! 20118: /* Override any GCC internal prototype to avoid an error.
! 20119: Use char because int might match the return type of a GCC
! 20120: builtin and then its argument prototype would still apply. */
1.4 takayama 20121: #ifdef __cplusplus
20122: extern "C"
20123: #endif
20124: char connect ();
1.1 ohara 20125: /* The GNU C library defines this for functions which it implements
20126: to always fail with ENOSYS. Some functions are actually named
20127: something starting with __ and the normal name is an alias. */
1.9 ! ohara 20128: #if defined __stub_connect || defined __stub___connect
1.1 ohara 20129: choke me
20130: #endif
20131:
1.9 ! ohara 20132: int
! 20133: main ()
! 20134: {
! 20135: return connect ();
1.4 takayama 20136: ;
20137: return 0;
20138: }
20139: _ACEOF
20140: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20141: if { (ac_try="$ac_link"
! 20142: case "(($ac_try" in
! 20143: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20144: *) ac_try_echo=$ac_try;;
! 20145: esac
! 20146: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20147: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20148: ac_status=$?
1.9 ! ohara 20149: grep -v '^ *+' conftest.er1 >conftest.err
! 20150: rm -f conftest.er1
! 20151: cat conftest.err >&5
1.4 takayama 20152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20153: (exit $ac_status); } && {
! 20154: test -z "$ac_c_werror_flag" ||
! 20155: test ! -s conftest.err
! 20156: } && test -s conftest$ac_exeext &&
! 20157: $as_test_x conftest$ac_exeext; then
1.4 takayama 20158: ac_cv_func_connect=yes
20159: else
20160: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20161: sed 's/^/| /' conftest.$ac_ext >&5
! 20162:
! 20163: ac_cv_func_connect=no
1.1 ohara 20164: fi
1.9 ! ohara 20165:
! 20166: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20167: conftest$ac_exeext conftest.$ac_ext
1.1 ohara 20168: fi
1.9 ! ohara 20169: { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
! 20170: echo "${ECHO_T}$ac_cv_func_connect" >&6; }
1.1 ohara 20171:
20172: if test $ac_cv_func_connect = no; then
1.9 ! ohara 20173: { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
! 20174: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
1.4 takayama 20175: if test "${ac_cv_lib_socket_connect+set}" = set; then
20176: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20177: else
1.4 takayama 20178: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 20179: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.4 takayama 20180: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20181: /* confdefs.h. */
! 20182: _ACEOF
! 20183: cat confdefs.h >>conftest.$ac_ext
! 20184: cat >>conftest.$ac_ext <<_ACEOF
! 20185: /* end confdefs.h. */
1.4 takayama 20186:
1.9 ! ohara 20187: /* Override any GCC internal prototype to avoid an error.
! 20188: Use char because int might match the return type of a GCC
! 20189: builtin and then its argument prototype would still apply. */
1.4 takayama 20190: #ifdef __cplusplus
20191: extern "C"
20192: #endif
20193: char connect ();
20194: int
20195: main ()
20196: {
1.9 ! ohara 20197: return connect ();
1.4 takayama 20198: ;
20199: return 0;
20200: }
20201: _ACEOF
20202: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20203: if { (ac_try="$ac_link"
! 20204: case "(($ac_try" in
! 20205: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20206: *) ac_try_echo=$ac_try;;
! 20207: esac
! 20208: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20209: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20210: ac_status=$?
1.9 ! ohara 20211: grep -v '^ *+' conftest.er1 >conftest.err
! 20212: rm -f conftest.er1
! 20213: cat conftest.err >&5
1.4 takayama 20214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20215: (exit $ac_status); } && {
! 20216: test -z "$ac_c_werror_flag" ||
! 20217: test ! -s conftest.err
! 20218: } && test -s conftest$ac_exeext &&
! 20219: $as_test_x conftest$ac_exeext; then
1.4 takayama 20220: ac_cv_lib_socket_connect=yes
20221: else
20222: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20223: sed 's/^/| /' conftest.$ac_ext >&5
! 20224:
! 20225: ac_cv_lib_socket_connect=no
1.4 takayama 20226: fi
1.9 ! ohara 20227:
! 20228: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20229: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20230: LIBS=$ac_check_lib_save_LIBS
20231: fi
1.9 ! ohara 20232: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
! 20233: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
1.4 takayama 20234: if test $ac_cv_lib_socket_connect = yes; then
1.1 ohara 20235: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20236: fi
20237:
20238: fi
20239:
1.4 takayama 20240: # Guillermo Gomez says -lposix is necessary on A/UX.
1.9 ! ohara 20241: { echo "$as_me:$LINENO: checking for remove" >&5
! 20242: echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
1.4 takayama 20243: if test "${ac_cv_func_remove+set}" = set; then
20244: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20245: else
1.4 takayama 20246: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20247: /* confdefs.h. */
! 20248: _ACEOF
! 20249: cat confdefs.h >>conftest.$ac_ext
! 20250: cat >>conftest.$ac_ext <<_ACEOF
! 20251: /* end confdefs.h. */
! 20252: /* Define remove to an innocuous variant, in case <limits.h> declares remove.
! 20253: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20254: #define remove innocuous_remove
! 20255:
1.1 ohara 20256: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 20257: which can conflict with char remove (); below.
! 20258: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20259: <limits.h> exists even on freestanding compilers. */
! 20260:
! 20261: #ifdef __STDC__
! 20262: # include <limits.h>
! 20263: #else
! 20264: # include <assert.h>
! 20265: #endif
! 20266:
! 20267: #undef remove
! 20268:
! 20269: /* Override any GCC internal prototype to avoid an error.
! 20270: Use char because int might match the return type of a GCC
! 20271: builtin and then its argument prototype would still apply. */
1.4 takayama 20272: #ifdef __cplusplus
20273: extern "C"
20274: #endif
20275: char remove ();
1.1 ohara 20276: /* The GNU C library defines this for functions which it implements
20277: to always fail with ENOSYS. Some functions are actually named
20278: something starting with __ and the normal name is an alias. */
1.9 ! ohara 20279: #if defined __stub_remove || defined __stub___remove
1.1 ohara 20280: choke me
20281: #endif
20282:
1.9 ! ohara 20283: int
! 20284: main ()
! 20285: {
! 20286: return remove ();
1.4 takayama 20287: ;
20288: return 0;
20289: }
20290: _ACEOF
20291: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20292: if { (ac_try="$ac_link"
! 20293: case "(($ac_try" in
! 20294: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20295: *) ac_try_echo=$ac_try;;
! 20296: esac
! 20297: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20298: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20299: ac_status=$?
1.9 ! ohara 20300: grep -v '^ *+' conftest.er1 >conftest.err
! 20301: rm -f conftest.er1
! 20302: cat conftest.err >&5
1.4 takayama 20303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20304: (exit $ac_status); } && {
! 20305: test -z "$ac_c_werror_flag" ||
! 20306: test ! -s conftest.err
! 20307: } && test -s conftest$ac_exeext &&
! 20308: $as_test_x conftest$ac_exeext; then
1.4 takayama 20309: ac_cv_func_remove=yes
20310: else
20311: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20312: sed 's/^/| /' conftest.$ac_ext >&5
! 20313:
! 20314: ac_cv_func_remove=no
1.1 ohara 20315: fi
1.9 ! ohara 20316:
! 20317: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20318: conftest$ac_exeext conftest.$ac_ext
1.1 ohara 20319: fi
1.9 ! ohara 20320: { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
! 20321: echo "${ECHO_T}$ac_cv_func_remove" >&6; }
1.1 ohara 20322:
20323: if test $ac_cv_func_remove = no; then
1.9 ! ohara 20324: { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
! 20325: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
1.4 takayama 20326: if test "${ac_cv_lib_posix_remove+set}" = set; then
20327: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20328: else
1.4 takayama 20329: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 20330: LIBS="-lposix $LIBS"
1.4 takayama 20331: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20332: /* confdefs.h. */
! 20333: _ACEOF
! 20334: cat confdefs.h >>conftest.$ac_ext
! 20335: cat >>conftest.$ac_ext <<_ACEOF
! 20336: /* end confdefs.h. */
1.4 takayama 20337:
1.9 ! ohara 20338: /* Override any GCC internal prototype to avoid an error.
! 20339: Use char because int might match the return type of a GCC
! 20340: builtin and then its argument prototype would still apply. */
1.4 takayama 20341: #ifdef __cplusplus
20342: extern "C"
20343: #endif
20344: char remove ();
20345: int
20346: main ()
20347: {
1.9 ! ohara 20348: return remove ();
1.4 takayama 20349: ;
20350: return 0;
20351: }
20352: _ACEOF
20353: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20354: if { (ac_try="$ac_link"
! 20355: case "(($ac_try" in
! 20356: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20357: *) ac_try_echo=$ac_try;;
! 20358: esac
! 20359: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20360: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20361: ac_status=$?
1.9 ! ohara 20362: grep -v '^ *+' conftest.er1 >conftest.err
! 20363: rm -f conftest.er1
! 20364: cat conftest.err >&5
1.4 takayama 20365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20366: (exit $ac_status); } && {
! 20367: test -z "$ac_c_werror_flag" ||
! 20368: test ! -s conftest.err
! 20369: } && test -s conftest$ac_exeext &&
! 20370: $as_test_x conftest$ac_exeext; then
1.4 takayama 20371: ac_cv_lib_posix_remove=yes
20372: else
20373: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20374: sed 's/^/| /' conftest.$ac_ext >&5
! 20375:
! 20376: ac_cv_lib_posix_remove=no
1.4 takayama 20377: fi
1.9 ! ohara 20378:
! 20379: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20380: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20381: LIBS=$ac_check_lib_save_LIBS
20382: fi
1.9 ! ohara 20383: { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
! 20384: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
1.4 takayama 20385: if test $ac_cv_lib_posix_remove = yes; then
1.1 ohara 20386: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20387: fi
20388:
20389: fi
20390:
20391: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.9 ! ohara 20392: { echo "$as_me:$LINENO: checking for shmat" >&5
! 20393: echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
1.4 takayama 20394: if test "${ac_cv_func_shmat+set}" = set; then
20395: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20396: else
1.4 takayama 20397: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20398: /* confdefs.h. */
! 20399: _ACEOF
! 20400: cat confdefs.h >>conftest.$ac_ext
! 20401: cat >>conftest.$ac_ext <<_ACEOF
! 20402: /* end confdefs.h. */
! 20403: /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
! 20404: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20405: #define shmat innocuous_shmat
! 20406:
1.1 ohara 20407: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 20408: which can conflict with char shmat (); below.
! 20409: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20410: <limits.h> exists even on freestanding compilers. */
! 20411:
! 20412: #ifdef __STDC__
! 20413: # include <limits.h>
! 20414: #else
! 20415: # include <assert.h>
! 20416: #endif
! 20417:
! 20418: #undef shmat
! 20419:
! 20420: /* Override any GCC internal prototype to avoid an error.
! 20421: Use char because int might match the return type of a GCC
! 20422: builtin and then its argument prototype would still apply. */
1.4 takayama 20423: #ifdef __cplusplus
20424: extern "C"
20425: #endif
20426: char shmat ();
1.1 ohara 20427: /* The GNU C library defines this for functions which it implements
20428: to always fail with ENOSYS. Some functions are actually named
20429: something starting with __ and the normal name is an alias. */
1.9 ! ohara 20430: #if defined __stub_shmat || defined __stub___shmat
1.1 ohara 20431: choke me
20432: #endif
20433:
1.9 ! ohara 20434: int
! 20435: main ()
! 20436: {
! 20437: return shmat ();
1.4 takayama 20438: ;
20439: return 0;
20440: }
20441: _ACEOF
20442: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20443: if { (ac_try="$ac_link"
! 20444: case "(($ac_try" in
! 20445: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20446: *) ac_try_echo=$ac_try;;
! 20447: esac
! 20448: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20449: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20450: ac_status=$?
1.9 ! ohara 20451: grep -v '^ *+' conftest.er1 >conftest.err
! 20452: rm -f conftest.er1
! 20453: cat conftest.err >&5
1.4 takayama 20454: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20455: (exit $ac_status); } && {
! 20456: test -z "$ac_c_werror_flag" ||
! 20457: test ! -s conftest.err
! 20458: } && test -s conftest$ac_exeext &&
! 20459: $as_test_x conftest$ac_exeext; then
1.4 takayama 20460: ac_cv_func_shmat=yes
20461: else
20462: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20463: sed 's/^/| /' conftest.$ac_ext >&5
! 20464:
! 20465: ac_cv_func_shmat=no
1.1 ohara 20466: fi
1.9 ! ohara 20467:
! 20468: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20469: conftest$ac_exeext conftest.$ac_ext
1.1 ohara 20470: fi
1.9 ! ohara 20471: { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
! 20472: echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
1.1 ohara 20473:
20474: if test $ac_cv_func_shmat = no; then
1.9 ! ohara 20475: { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
! 20476: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
1.4 takayama 20477: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20478: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20479: else
1.4 takayama 20480: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 20481: LIBS="-lipc $LIBS"
1.4 takayama 20482: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20483: /* confdefs.h. */
! 20484: _ACEOF
! 20485: cat confdefs.h >>conftest.$ac_ext
! 20486: cat >>conftest.$ac_ext <<_ACEOF
! 20487: /* end confdefs.h. */
1.4 takayama 20488:
1.9 ! ohara 20489: /* Override any GCC internal prototype to avoid an error.
! 20490: Use char because int might match the return type of a GCC
! 20491: builtin and then its argument prototype would still apply. */
1.4 takayama 20492: #ifdef __cplusplus
20493: extern "C"
20494: #endif
20495: char shmat ();
20496: int
20497: main ()
20498: {
1.9 ! ohara 20499: return shmat ();
1.4 takayama 20500: ;
20501: return 0;
20502: }
20503: _ACEOF
20504: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20505: if { (ac_try="$ac_link"
! 20506: case "(($ac_try" in
! 20507: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20508: *) ac_try_echo=$ac_try;;
! 20509: esac
! 20510: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20511: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20512: ac_status=$?
1.9 ! ohara 20513: grep -v '^ *+' conftest.er1 >conftest.err
! 20514: rm -f conftest.er1
! 20515: cat conftest.err >&5
1.4 takayama 20516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20517: (exit $ac_status); } && {
! 20518: test -z "$ac_c_werror_flag" ||
! 20519: test ! -s conftest.err
! 20520: } && test -s conftest$ac_exeext &&
! 20521: $as_test_x conftest$ac_exeext; then
1.4 takayama 20522: ac_cv_lib_ipc_shmat=yes
20523: else
20524: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20525: sed 's/^/| /' conftest.$ac_ext >&5
! 20526:
! 20527: ac_cv_lib_ipc_shmat=no
1.4 takayama 20528: fi
1.9 ! ohara 20529:
! 20530: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20531: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20532: LIBS=$ac_check_lib_save_LIBS
20533: fi
1.9 ! ohara 20534: { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
! 20535: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
1.4 takayama 20536: if test $ac_cv_lib_ipc_shmat = yes; then
1.1 ohara 20537: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20538: fi
20539:
20540: fi
20541: fi
20542:
20543: # Check for libraries that X11R6 Xt/Xaw programs need.
1.4 takayama 20544: ac_save_LDFLAGS=$LDFLAGS
1.1 ohara 20545: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20546: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20547: # check for ICE first), but we must link in the order -lSM -lICE or
20548: # we get undefined symbols. So assume we have SM if we have ICE.
20549: # These have to be linked with before -lX11, unlike the other
20550: # libraries we check for below, so use a different variable.
1.4 takayama 20551: # John Interrante, Karl Berry
1.9 ! ohara 20552: { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
! 20553: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
1.4 takayama 20554: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20555: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20556: else
1.4 takayama 20557: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 20558: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.4 takayama 20559: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20560: /* confdefs.h. */
! 20561: _ACEOF
! 20562: cat confdefs.h >>conftest.$ac_ext
! 20563: cat >>conftest.$ac_ext <<_ACEOF
! 20564: /* end confdefs.h. */
1.4 takayama 20565:
1.9 ! ohara 20566: /* Override any GCC internal prototype to avoid an error.
! 20567: Use char because int might match the return type of a GCC
! 20568: builtin and then its argument prototype would still apply. */
1.4 takayama 20569: #ifdef __cplusplus
20570: extern "C"
20571: #endif
20572: char IceConnectionNumber ();
20573: int
20574: main ()
20575: {
1.9 ! ohara 20576: return IceConnectionNumber ();
1.4 takayama 20577: ;
20578: return 0;
20579: }
20580: _ACEOF
20581: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20582: if { (ac_try="$ac_link"
! 20583: case "(($ac_try" in
! 20584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20585: *) ac_try_echo=$ac_try;;
! 20586: esac
! 20587: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20588: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20589: ac_status=$?
1.9 ! ohara 20590: grep -v '^ *+' conftest.er1 >conftest.err
! 20591: rm -f conftest.er1
! 20592: cat conftest.err >&5
1.4 takayama 20593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20594: (exit $ac_status); } && {
! 20595: test -z "$ac_c_werror_flag" ||
! 20596: test ! -s conftest.err
! 20597: } && test -s conftest$ac_exeext &&
! 20598: $as_test_x conftest$ac_exeext; then
1.4 takayama 20599: ac_cv_lib_ICE_IceConnectionNumber=yes
20600: else
20601: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20602: sed 's/^/| /' conftest.$ac_ext >&5
! 20603:
! 20604: ac_cv_lib_ICE_IceConnectionNumber=no
1.4 takayama 20605: fi
1.9 ! ohara 20606:
! 20607: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20608: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20609: LIBS=$ac_check_lib_save_LIBS
20610: fi
1.9 ! ohara 20611: { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
! 20612: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.4 takayama 20613: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
1.1 ohara 20614: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20615: fi
20616:
1.4 takayama 20617: LDFLAGS=$ac_save_LDFLAGS
1.1 ohara 20618:
20619: fi
20620:
20621:
1.7 ohara 20622: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
20623: CFLAGS="${CFLAGS} -finline-functions"
20624: fi
20625:
1.5 ohara 20626: case "${host}" in
20627: i[3-6]86-*-interix*)
20628: cat >>confdefs.h <<\_ACEOF
20629: #define _ALL_SOURCE 1
20630: _ACEOF
20631:
20632: ;;
20633: *)
20634: ;;
20635: esac
20636:
1.9 ! ohara 20637: { echo "$as_me:$LINENO: checking for socket" >&5
! 20638: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
1.4 takayama 20639: if test "${ac_cv_func_socket+set}" = set; then
20640: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20641: else
1.4 takayama 20642: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20643: /* confdefs.h. */
! 20644: _ACEOF
! 20645: cat confdefs.h >>conftest.$ac_ext
! 20646: cat >>conftest.$ac_ext <<_ACEOF
! 20647: /* end confdefs.h. */
! 20648: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
! 20649: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20650: #define socket innocuous_socket
! 20651:
1.1 ohara 20652: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 20653: which can conflict with char socket (); below.
! 20654: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20655: <limits.h> exists even on freestanding compilers. */
! 20656:
! 20657: #ifdef __STDC__
! 20658: # include <limits.h>
! 20659: #else
! 20660: # include <assert.h>
! 20661: #endif
! 20662:
! 20663: #undef socket
! 20664:
! 20665: /* Override any GCC internal prototype to avoid an error.
! 20666: Use char because int might match the return type of a GCC
! 20667: builtin and then its argument prototype would still apply. */
1.4 takayama 20668: #ifdef __cplusplus
20669: extern "C"
20670: #endif
20671: char socket ();
1.1 ohara 20672: /* The GNU C library defines this for functions which it implements
20673: to always fail with ENOSYS. Some functions are actually named
20674: something starting with __ and the normal name is an alias. */
1.9 ! ohara 20675: #if defined __stub_socket || defined __stub___socket
1.1 ohara 20676: choke me
20677: #endif
20678:
1.9 ! ohara 20679: int
! 20680: main ()
! 20681: {
! 20682: return socket ();
1.4 takayama 20683: ;
20684: return 0;
20685: }
20686: _ACEOF
20687: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20688: if { (ac_try="$ac_link"
! 20689: case "(($ac_try" in
! 20690: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20691: *) ac_try_echo=$ac_try;;
! 20692: esac
! 20693: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20694: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20695: ac_status=$?
1.9 ! ohara 20696: grep -v '^ *+' conftest.er1 >conftest.err
! 20697: rm -f conftest.er1
! 20698: cat conftest.err >&5
1.4 takayama 20699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20700: (exit $ac_status); } && {
! 20701: test -z "$ac_c_werror_flag" ||
! 20702: test ! -s conftest.err
! 20703: } && test -s conftest$ac_exeext &&
! 20704: $as_test_x conftest$ac_exeext; then
1.4 takayama 20705: ac_cv_func_socket=yes
20706: else
20707: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20708: sed 's/^/| /' conftest.$ac_ext >&5
! 20709:
! 20710: ac_cv_func_socket=no
1.4 takayama 20711: fi
1.9 ! ohara 20712:
! 20713: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20714: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20715: fi
1.9 ! ohara 20716: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
! 20717: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
1.4 takayama 20718: if test $ac_cv_func_socket = yes; then
20719: :
1.1 ohara 20720: else
20721:
1.9 ! ohara 20722: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
! 20723: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
1.4 takayama 20724: if test "${ac_cv_lib_socket_socket+set}" = set; then
20725: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20726: else
1.4 takayama 20727: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 20728: LIBS="-lsocket $LIBS"
1.4 takayama 20729: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20730: /* confdefs.h. */
! 20731: _ACEOF
! 20732: cat confdefs.h >>conftest.$ac_ext
! 20733: cat >>conftest.$ac_ext <<_ACEOF
! 20734: /* end confdefs.h. */
1.4 takayama 20735:
1.9 ! ohara 20736: /* Override any GCC internal prototype to avoid an error.
! 20737: Use char because int might match the return type of a GCC
! 20738: builtin and then its argument prototype would still apply. */
1.4 takayama 20739: #ifdef __cplusplus
20740: extern "C"
20741: #endif
20742: char socket ();
20743: int
20744: main ()
20745: {
1.9 ! ohara 20746: return socket ();
1.4 takayama 20747: ;
20748: return 0;
20749: }
20750: _ACEOF
20751: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20752: if { (ac_try="$ac_link"
! 20753: case "(($ac_try" in
! 20754: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20755: *) ac_try_echo=$ac_try;;
! 20756: esac
! 20757: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20758: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20759: ac_status=$?
1.9 ! ohara 20760: grep -v '^ *+' conftest.er1 >conftest.err
! 20761: rm -f conftest.er1
! 20762: cat conftest.err >&5
1.4 takayama 20763: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20764: (exit $ac_status); } && {
! 20765: test -z "$ac_c_werror_flag" ||
! 20766: test ! -s conftest.err
! 20767: } && test -s conftest$ac_exeext &&
! 20768: $as_test_x conftest$ac_exeext; then
1.4 takayama 20769: ac_cv_lib_socket_socket=yes
20770: else
20771: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20772: sed 's/^/| /' conftest.$ac_ext >&5
! 20773:
! 20774: ac_cv_lib_socket_socket=no
1.4 takayama 20775: fi
1.9 ! ohara 20776:
! 20777: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20778: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20779: LIBS=$ac_check_lib_save_LIBS
20780: fi
1.9 ! ohara 20781: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
! 20782: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
1.4 takayama 20783: if test $ac_cv_lib_socket_socket = yes; then
20784: cat >>confdefs.h <<_ACEOF
20785: #define HAVE_LIBSOCKET 1
20786: _ACEOF
1.1 ohara 20787:
20788: LIBS="-lsocket $LIBS"
20789:
20790: fi
20791:
20792: fi
1.2 ohara 20793:
1.9 ! ohara 20794: { echo "$as_me:$LINENO: checking for gethostbyname" >&5
! 20795: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
1.4 takayama 20796: if test "${ac_cv_func_gethostbyname+set}" = set; then
20797: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20798: else
1.4 takayama 20799: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20800: /* confdefs.h. */
! 20801: _ACEOF
! 20802: cat confdefs.h >>conftest.$ac_ext
! 20803: cat >>conftest.$ac_ext <<_ACEOF
! 20804: /* end confdefs.h. */
! 20805: /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
! 20806: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20807: #define gethostbyname innocuous_gethostbyname
! 20808:
1.1 ohara 20809: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 20810: which can conflict with char gethostbyname (); below.
! 20811: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20812: <limits.h> exists even on freestanding compilers. */
! 20813:
! 20814: #ifdef __STDC__
! 20815: # include <limits.h>
! 20816: #else
! 20817: # include <assert.h>
! 20818: #endif
! 20819:
! 20820: #undef gethostbyname
! 20821:
! 20822: /* Override any GCC internal prototype to avoid an error.
! 20823: Use char because int might match the return type of a GCC
! 20824: builtin and then its argument prototype would still apply. */
1.4 takayama 20825: #ifdef __cplusplus
20826: extern "C"
20827: #endif
20828: char gethostbyname ();
1.1 ohara 20829: /* The GNU C library defines this for functions which it implements
20830: to always fail with ENOSYS. Some functions are actually named
20831: something starting with __ and the normal name is an alias. */
1.9 ! ohara 20832: #if defined __stub_gethostbyname || defined __stub___gethostbyname
1.1 ohara 20833: choke me
20834: #endif
20835:
1.9 ! ohara 20836: int
! 20837: main ()
! 20838: {
! 20839: return gethostbyname ();
1.4 takayama 20840: ;
20841: return 0;
20842: }
20843: _ACEOF
20844: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20845: if { (ac_try="$ac_link"
! 20846: case "(($ac_try" in
! 20847: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20848: *) ac_try_echo=$ac_try;;
! 20849: esac
! 20850: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20851: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20852: ac_status=$?
1.9 ! ohara 20853: grep -v '^ *+' conftest.er1 >conftest.err
! 20854: rm -f conftest.er1
! 20855: cat conftest.err >&5
1.4 takayama 20856: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20857: (exit $ac_status); } && {
! 20858: test -z "$ac_c_werror_flag" ||
! 20859: test ! -s conftest.err
! 20860: } && test -s conftest$ac_exeext &&
! 20861: $as_test_x conftest$ac_exeext; then
1.4 takayama 20862: ac_cv_func_gethostbyname=yes
20863: else
20864: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20865: sed 's/^/| /' conftest.$ac_ext >&5
! 20866:
! 20867: ac_cv_func_gethostbyname=no
1.4 takayama 20868: fi
1.9 ! ohara 20869:
! 20870: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20871: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20872: fi
1.9 ! ohara 20873: { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
! 20874: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
1.4 takayama 20875: if test $ac_cv_func_gethostbyname = yes; then
20876: :
1.1 ohara 20877: else
20878:
1.9 ! ohara 20879: { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
! 20880: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
1.4 takayama 20881: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20882: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 ohara 20883: else
1.4 takayama 20884: ac_check_lib_save_LIBS=$LIBS
1.1 ohara 20885: LIBS="-lnsl $LIBS"
1.4 takayama 20886: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20887: /* confdefs.h. */
! 20888: _ACEOF
! 20889: cat confdefs.h >>conftest.$ac_ext
! 20890: cat >>conftest.$ac_ext <<_ACEOF
! 20891: /* end confdefs.h. */
1.4 takayama 20892:
1.9 ! ohara 20893: /* Override any GCC internal prototype to avoid an error.
! 20894: Use char because int might match the return type of a GCC
! 20895: builtin and then its argument prototype would still apply. */
1.4 takayama 20896: #ifdef __cplusplus
20897: extern "C"
20898: #endif
20899: char gethostbyname ();
20900: int
20901: main ()
20902: {
1.9 ! ohara 20903: return gethostbyname ();
1.4 takayama 20904: ;
20905: return 0;
20906: }
20907: _ACEOF
20908: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 20909: if { (ac_try="$ac_link"
! 20910: case "(($ac_try" in
! 20911: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20912: *) ac_try_echo=$ac_try;;
! 20913: esac
! 20914: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20915: (eval "$ac_link") 2>conftest.er1
1.4 takayama 20916: ac_status=$?
1.9 ! ohara 20917: grep -v '^ *+' conftest.er1 >conftest.err
! 20918: rm -f conftest.er1
! 20919: cat conftest.err >&5
1.4 takayama 20920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 20921: (exit $ac_status); } && {
! 20922: test -z "$ac_c_werror_flag" ||
! 20923: test ! -s conftest.err
! 20924: } && test -s conftest$ac_exeext &&
! 20925: $as_test_x conftest$ac_exeext; then
1.4 takayama 20926: ac_cv_lib_nsl_gethostbyname=yes
20927: else
20928: echo "$as_me: failed program was:" >&5
1.9 ! ohara 20929: sed 's/^/| /' conftest.$ac_ext >&5
! 20930:
! 20931: ac_cv_lib_nsl_gethostbyname=no
1.4 takayama 20932: fi
1.9 ! ohara 20933:
! 20934: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20935: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 20936: LIBS=$ac_check_lib_save_LIBS
20937: fi
1.9 ! ohara 20938: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 20939: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
1.4 takayama 20940: if test $ac_cv_lib_nsl_gethostbyname = yes; then
20941: cat >>confdefs.h <<_ACEOF
20942: #define HAVE_LIBNSL 1
20943: _ACEOF
20944:
20945: LIBS="-lnsl $LIBS"
1.1 ohara 20946:
20947: fi
20948:
20949: fi
20950:
1.9 ! ohara 20951: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 20952: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
1.4 takayama 20953: if test "${ac_cv_func_dlopen+set}" = set; then
20954: echo $ECHO_N "(cached) $ECHO_C" >&6
20955: else
20956: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 20957: /* confdefs.h. */
! 20958: _ACEOF
! 20959: cat confdefs.h >>conftest.$ac_ext
! 20960: cat >>conftest.$ac_ext <<_ACEOF
! 20961: /* end confdefs.h. */
! 20962: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 20963: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20964: #define dlopen innocuous_dlopen
! 20965:
1.4 takayama 20966: /* System header to define __stub macros and hopefully few prototypes,
1.9 ! ohara 20967: which can conflict with char dlopen (); below.
! 20968: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20969: <limits.h> exists even on freestanding compilers. */
! 20970:
! 20971: #ifdef __STDC__
! 20972: # include <limits.h>
! 20973: #else
! 20974: # include <assert.h>
! 20975: #endif
! 20976:
! 20977: #undef dlopen
! 20978:
! 20979: /* Override any GCC internal prototype to avoid an error.
! 20980: Use char because int might match the return type of a GCC
! 20981: builtin and then its argument prototype would still apply. */
1.4 takayama 20982: #ifdef __cplusplus
20983: extern "C"
20984: #endif
20985: char dlopen ();
20986: /* The GNU C library defines this for functions which it implements
20987: to always fail with ENOSYS. Some functions are actually named
20988: something starting with __ and the normal name is an alias. */
1.9 ! ohara 20989: #if defined __stub_dlopen || defined __stub___dlopen
1.4 takayama 20990: choke me
20991: #endif
1.1 ohara 20992:
1.9 ! ohara 20993: int
! 20994: main ()
! 20995: {
! 20996: return dlopen ();
1.4 takayama 20997: ;
20998: return 0;
20999: }
21000: _ACEOF
21001: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 21002: if { (ac_try="$ac_link"
! 21003: case "(($ac_try" in
! 21004: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21005: *) ac_try_echo=$ac_try;;
! 21006: esac
! 21007: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21008: (eval "$ac_link") 2>conftest.er1
1.4 takayama 21009: ac_status=$?
1.9 ! ohara 21010: grep -v '^ *+' conftest.er1 >conftest.err
! 21011: rm -f conftest.er1
! 21012: cat conftest.err >&5
1.4 takayama 21013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 21014: (exit $ac_status); } && {
! 21015: test -z "$ac_c_werror_flag" ||
! 21016: test ! -s conftest.err
! 21017: } && test -s conftest$ac_exeext &&
! 21018: $as_test_x conftest$ac_exeext; then
1.4 takayama 21019: ac_cv_func_dlopen=yes
21020: else
21021: echo "$as_me: failed program was:" >&5
1.9 ! ohara 21022: sed 's/^/| /' conftest.$ac_ext >&5
! 21023:
! 21024: ac_cv_func_dlopen=no
1.4 takayama 21025: fi
1.9 ! ohara 21026:
! 21027: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21028: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 21029: fi
1.9 ! ohara 21030: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 21031: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
1.4 takayama 21032: if test $ac_cv_func_dlopen = yes; then
21033: :
1.1 ohara 21034: else
1.4 takayama 21035:
1.9 ! ohara 21036: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 21037: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
1.4 takayama 21038: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21039: echo $ECHO_N "(cached) $ECHO_C" >&6
21040: else
21041: ac_check_lib_save_LIBS=$LIBS
21042: LIBS="-ldl $LIBS"
21043: cat >conftest.$ac_ext <<_ACEOF
1.9 ! ohara 21044: /* confdefs.h. */
! 21045: _ACEOF
! 21046: cat confdefs.h >>conftest.$ac_ext
! 21047: cat >>conftest.$ac_ext <<_ACEOF
! 21048: /* end confdefs.h. */
1.4 takayama 21049:
1.9 ! ohara 21050: /* Override any GCC internal prototype to avoid an error.
! 21051: Use char because int might match the return type of a GCC
! 21052: builtin and then its argument prototype would still apply. */
1.4 takayama 21053: #ifdef __cplusplus
21054: extern "C"
21055: #endif
21056: char dlopen ();
21057: int
21058: main ()
21059: {
1.9 ! ohara 21060: return dlopen ();
1.4 takayama 21061: ;
21062: return 0;
21063: }
21064: _ACEOF
21065: rm -f conftest.$ac_objext conftest$ac_exeext
1.9 ! ohara 21066: if { (ac_try="$ac_link"
! 21067: case "(($ac_try" in
! 21068: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21069: *) ac_try_echo=$ac_try;;
! 21070: esac
! 21071: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21072: (eval "$ac_link") 2>conftest.er1
1.4 takayama 21073: ac_status=$?
1.9 ! ohara 21074: grep -v '^ *+' conftest.er1 >conftest.err
! 21075: rm -f conftest.er1
! 21076: cat conftest.err >&5
1.4 takayama 21077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 ! ohara 21078: (exit $ac_status); } && {
! 21079: test -z "$ac_c_werror_flag" ||
! 21080: test ! -s conftest.err
! 21081: } && test -s conftest$ac_exeext &&
! 21082: $as_test_x conftest$ac_exeext; then
1.4 takayama 21083: ac_cv_lib_dl_dlopen=yes
21084: else
21085: echo "$as_me: failed program was:" >&5
1.9 ! ohara 21086: sed 's/^/| /' conftest.$ac_ext >&5
! 21087:
! 21088: ac_cv_lib_dl_dlopen=no
1.4 takayama 21089: fi
1.9 ! ohara 21090:
! 21091: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21092: conftest$ac_exeext conftest.$ac_ext
1.4 takayama 21093: LIBS=$ac_check_lib_save_LIBS
21094: fi
1.9 ! ohara 21095: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 21096: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
1.4 takayama 21097: if test $ac_cv_lib_dl_dlopen = yes; then
21098: cat >>confdefs.h <<_ACEOF
21099: #define HAVE_LIBDL 1
21100: _ACEOF
21101:
21102: LIBS="-ldl $LIBS"
21103:
1.1 ohara 21104: fi
21105:
21106: fi
21107:
1.2 ohara 21108:
1.4 takayama 21109: ac_config_files="$ac_config_files Makefile"
1.9 ! ohara 21110:
1.4 takayama 21111: cat >confcache <<\_ACEOF
1.1 ohara 21112: # This file is a shell script that caches the results of configure
21113: # tests run on this system so they can be shared between configure
1.4 takayama 21114: # scripts and configure runs, see configure's option --config-cache.
21115: # It is not useful on other systems. If it contains results you don't
21116: # want to keep, you may remove or edit it.
1.1 ohara 21117: #
1.4 takayama 21118: # config.status only pays attention to the cache file if you give it
21119: # the --recheck option to rerun configure.
1.1 ohara 21120: #
1.9 ! ohara 21121: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.4 takayama 21122: # loading this file, other *unset* `ac_cv_foo' will be assigned the
21123: # following values.
21124:
21125: _ACEOF
21126:
1.1 ohara 21127: # The following way of writing the cache mishandles newlines in values,
21128: # but we know of no workaround that is simple, portable, and efficient.
1.9 ! ohara 21129: # So, we kill variables containing newlines.
1.1 ohara 21130: # Ultrix sh set writes to stderr and can't be redirected directly,
21131: # and sets the high bit in the cache file unless we assign to the vars.
1.9 ! ohara 21132: (
! 21133: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 21134: eval ac_val=\$$ac_var
! 21135: case $ac_val in #(
! 21136: *${as_nl}*)
! 21137: case $ac_var in #(
! 21138: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 21139: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 21140: esac
! 21141: case $ac_var in #(
! 21142: _ | IFS | as_nl) ;; #(
! 21143: *) $as_unset $ac_var ;;
! 21144: esac ;;
! 21145: esac
! 21146: done
! 21147:
1.4 takayama 21148: (set) 2>&1 |
1.9 ! ohara 21149: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 21150: *${as_nl}ac_space=\ *)
1.4 takayama 21151: # `set' does not quote correctly, so add quotes (double-quote
21152: # substitution turns \\\\ into \\, and sed turns \\ into \).
21153: sed -n \
1.9 ! ohara 21154: "s/'/'\\\\''/g;
! 21155: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 21156: ;; #(
1.4 takayama 21157: *)
21158: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.9 ! ohara 21159: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.4 takayama 21160: ;;
1.9 ! ohara 21161: esac |
! 21162: sort
! 21163: ) |
1.4 takayama 21164: sed '
1.9 ! ohara 21165: /^ac_cv_env_/b end
1.4 takayama 21166: t clear
1.9 ! ohara 21167: :clear
1.4 takayama 21168: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21169: t end
1.9 ! ohara 21170: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 21171: :end' >>confcache
! 21172: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 21173: if test -w "$cache_file"; then
! 21174: test "x$cache_file" != "x/dev/null" &&
! 21175: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 21176: echo "$as_me: updating cache $cache_file" >&6;}
1.4 takayama 21177: cat confcache >$cache_file
1.1 ohara 21178: else
1.9 ! ohara 21179: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 21180: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 ohara 21181: fi
21182: fi
21183: rm -f confcache
21184:
21185: test "x$prefix" = xNONE && prefix=$ac_default_prefix
21186: # Let make expand exec_prefix.
21187: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21188:
21189: # Transform confdefs.h into DEFS.
21190: # Protect against shell expansion while executing Makefile rules.
21191: # Protect against Makefile macro expansion.
1.4 takayama 21192: #
21193: # If the first sed substitution is executed (which looks for macros that
1.9 ! ohara 21194: # take arguments), then branch to the quote section. Otherwise,
1.4 takayama 21195: # look for a macro that doesn't take arguments.
1.9 ! ohara 21196: ac_script='
1.4 takayama 21197: t clear
1.9 ! ohara 21198: :clear
! 21199: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1.4 takayama 21200: t quote
1.9 ! ohara 21201: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1.4 takayama 21202: t quote
1.9 ! ohara 21203: b any
! 21204: :quote
! 21205: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
! 21206: s/\[/\\&/g
! 21207: s/\]/\\&/g
! 21208: s/\$/$$/g
! 21209: H
! 21210: :any
! 21211: ${
! 21212: g
! 21213: s/^\n//
! 21214: s/\n/ /g
! 21215: p
! 21216: }
! 21217: '
! 21218: DEFS=`sed -n "$ac_script" confdefs.h`
! 21219:
! 21220:
! 21221: ac_libobjs=
! 21222: ac_ltlibobjs=
! 21223: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
! 21224: # 1. Remove the extension, and $U if already installed.
! 21225: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 21226: ac_i=`echo "$ac_i" | sed "$ac_script"`
! 21227: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 21228: # will be set to the directory where LIBOBJS objects are built.
! 21229: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 21230: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
! 21231: done
! 21232: LIBOBJS=$ac_libobjs
1.4 takayama 21233:
1.9 ! ohara 21234: LTLIBOBJS=$ac_ltlibobjs
1.1 ohara 21235:
21236:
1.9 ! ohara 21237: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
! 21238: { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
! 21239: Usually this means the macro was only invoked conditionally." >&5
! 21240: echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
! 21241: Usually this means the macro was only invoked conditionally." >&2;}
! 21242: { (exit 1); exit 1; }; }
! 21243: fi
! 21244: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
! 21245: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
! 21246: Usually this means the macro was only invoked conditionally." >&5
! 21247: echo "$as_me: error: conditional \"AMDEP\" was never defined.
! 21248: Usually this means the macro was only invoked conditionally." >&2;}
! 21249: { (exit 1); exit 1; }; }
! 21250: fi
! 21251: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
! 21252: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
! 21253: Usually this means the macro was only invoked conditionally." >&5
! 21254: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
! 21255: Usually this means the macro was only invoked conditionally." >&2;}
! 21256: { (exit 1); exit 1; }; }
! 21257: fi
! 21258: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
! 21259: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
! 21260: Usually this means the macro was only invoked conditionally." >&5
! 21261: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
! 21262: Usually this means the macro was only invoked conditionally." >&2;}
! 21263: { (exit 1); exit 1; }; }
! 21264: fi
! 21265:
1.1 ohara 21266: : ${CONFIG_STATUS=./config.status}
1.4 takayama 21267: ac_clean_files_save=$ac_clean_files
21268: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21269: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21270: echo "$as_me: creating $CONFIG_STATUS" >&6;}
21271: cat >$CONFIG_STATUS <<_ACEOF
21272: #! $SHELL
21273: # Generated by $as_me.
1.1 ohara 21274: # Run this file to recreate the current configuration.
21275: # Compiler output produced by configure, useful for debugging
1.4 takayama 21276: # configure, is in config.log if it exists.
21277:
21278: debug=false
1.9 ! ohara 21279: ac_cs_recheck=false
! 21280: ac_cs_silent=false
1.4 takayama 21281: SHELL=\${CONFIG_SHELL-$SHELL}
21282: _ACEOF
21283:
21284: cat >>$CONFIG_STATUS <<\_ACEOF
21285: ## --------------------- ##
21286: ## M4sh Initialization. ##
21287: ## --------------------- ##
21288:
1.9 ! ohara 21289: # Be more Bourne compatible
! 21290: DUALCASE=1; export DUALCASE # for MKS sh
1.4 takayama 21291: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21292: emulate sh
21293: NULLCMD=:
1.9 ! ohara 21294: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 21295: # is contrary to our usage. Disable this feature.
! 21296: alias -g '${1+"$@"}'='"$@"'
! 21297: setopt NO_GLOB_SUBST
! 21298: else
! 21299: case `(set -o) 2>/dev/null` in
! 21300: *posix*) set -o posix ;;
! 21301: esac
! 21302:
! 21303: fi
! 21304:
! 21305:
! 21306:
! 21307:
! 21308: # PATH needs CR
! 21309: # Avoid depending upon Character Ranges.
! 21310: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 21311: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 21312: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 21313: as_cr_digits='0123456789'
! 21314: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 21315:
! 21316: # The user is always right.
! 21317: if test "${PATH_SEPARATOR+set}" != set; then
! 21318: echo "#! /bin/sh" >conf$$.sh
! 21319: echo "exit 0" >>conf$$.sh
! 21320: chmod +x conf$$.sh
! 21321: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 21322: PATH_SEPARATOR=';'
! 21323: else
! 21324: PATH_SEPARATOR=:
! 21325: fi
! 21326: rm -f conf$$.sh
1.4 takayama 21327: fi
21328:
21329: # Support unset when possible.
1.9 ! ohara 21330: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.4 takayama 21331: as_unset=unset
21332: else
21333: as_unset=false
21334: fi
21335:
1.9 ! ohara 21336:
! 21337: # IFS
! 21338: # We need space, tab and new line, in precisely that order. Quoting is
! 21339: # there to prevent editors from complaining about space-tab.
! 21340: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 21341: # splitting by setting IFS to empty value.)
! 21342: as_nl='
! 21343: '
! 21344: IFS=" "" $as_nl"
! 21345:
! 21346: # Find who we are. Look in the path if we contain no directory separator.
! 21347: case $0 in
! 21348: *[\\/]* ) as_myself=$0 ;;
! 21349: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 21350: for as_dir in $PATH
! 21351: do
! 21352: IFS=$as_save_IFS
! 21353: test -z "$as_dir" && as_dir=.
! 21354: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 21355: done
! 21356: IFS=$as_save_IFS
! 21357:
! 21358: ;;
! 21359: esac
! 21360: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 21361: # in which case we are not to be found in the path.
! 21362: if test "x$as_myself" = x; then
! 21363: as_myself=$0
! 21364: fi
! 21365: if test ! -f "$as_myself"; then
! 21366: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 21367: { (exit 1); exit 1; }
! 21368: fi
! 21369:
! 21370: # Work around bugs in pre-3.0 UWIN ksh.
! 21371: for as_var in ENV MAIL MAILPATH
! 21372: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 21373: done
! 21374: PS1='$ '
! 21375: PS2='> '
! 21376: PS4='+ '
! 21377:
! 21378: # NLS nuisances.
! 21379: for as_var in \
! 21380: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 21381: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 21382: LC_TELEPHONE LC_TIME
! 21383: do
! 21384: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 21385: eval $as_var=C; export $as_var
! 21386: else
! 21387: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 21388: fi
! 21389: done
! 21390:
! 21391: # Required to use basename.
! 21392: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 21393: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 21394: as_expr=expr
! 21395: else
! 21396: as_expr=false
! 21397: fi
! 21398:
! 21399: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 21400: as_basename=basename
! 21401: else
! 21402: as_basename=false
! 21403: fi
1.4 takayama 21404:
21405:
21406: # Name of the executable.
1.9 ! ohara 21407: as_me=`$as_basename -- "$0" ||
1.4 takayama 21408: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21409: X"$0" : 'X\(//\)$' \| \
1.9 ! ohara 21410: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.4 takayama 21411: echo X/"$0" |
1.9 ! ohara 21412: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 21413: s//\1/
! 21414: q
! 21415: }
! 21416: /^X\/\(\/\/\)$/{
! 21417: s//\1/
! 21418: q
! 21419: }
! 21420: /^X\/\(\/\).*/{
! 21421: s//\1/
! 21422: q
! 21423: }
! 21424: s/.*/./; q'`
1.4 takayama 21425:
1.9 ! ohara 21426: # CDPATH.
! 21427: $as_unset CDPATH
1.4 takayama 21428:
1.1 ohara 21429:
1.4 takayama 21430:
21431: as_lineno_1=$LINENO
21432: as_lineno_2=$LINENO
21433: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.9 ! ohara 21434: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.4 takayama 21435:
21436: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21437: # uniformly replaced by the line number. The first 'sed' inserts a
1.9 ! ohara 21438: # line-number line after each line using $LINENO; the second 'sed'
! 21439: # does the real work. The second script uses 'N' to pair each
! 21440: # line-number line with the line containing $LINENO, and appends
! 21441: # trailing '-' during substitution so that $LINENO is not a special
! 21442: # case at line end.
1.4 takayama 21443: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.9 ! ohara 21444: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 21445: # E. McMahon (1931-1989) for sed's syntax. :-)
! 21446: sed -n '
! 21447: p
! 21448: /[$]LINENO/=
! 21449: ' <$as_myself |
1.4 takayama 21450: sed '
1.9 ! ohara 21451: s/[$]LINENO.*/&-/
! 21452: t lineno
! 21453: b
! 21454: :lineno
1.4 takayama 21455: N
1.9 ! ohara 21456: :loop
! 21457: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.4 takayama 21458: t loop
1.9 ! ohara 21459: s/-\n.*//
1.4 takayama 21460: ' >$as_me.lineno &&
1.9 ! ohara 21461: chmod +x "$as_me.lineno" ||
! 21462: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.4 takayama 21463: { (exit 1); exit 1; }; }
21464:
21465: # Don't try to exec as it changes $[0], causing all sort of problems
21466: # (the dirname of $[0] is not the place where we might find the
1.9 ! ohara 21467: # original and so on. Autoconf is especially sensitive to this).
! 21468: . "./$as_me.lineno"
1.4 takayama 21469: # Exit status is that of the last command.
21470: exit
21471: }
21472:
21473:
1.9 ! ohara 21474: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 21475: as_dirname=dirname
! 21476: else
! 21477: as_dirname=false
! 21478: fi
! 21479:
! 21480: ECHO_C= ECHO_N= ECHO_T=
! 21481: case `echo -n x` in
! 21482: -n*)
! 21483: case `echo 'x\c'` in
! 21484: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 21485: *) ECHO_C='\c';;
! 21486: esac;;
! 21487: *)
! 21488: ECHO_N='-n';;
1.4 takayama 21489: esac
21490:
1.9 ! ohara 21491: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 21492: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.4 takayama 21493: as_expr=expr
21494: else
21495: as_expr=false
21496: fi
21497:
21498: rm -f conf$$ conf$$.exe conf$$.file
1.9 ! ohara 21499: if test -d conf$$.dir; then
! 21500: rm -f conf$$.dir/conf$$.file
! 21501: else
! 21502: rm -f conf$$.dir
! 21503: mkdir conf$$.dir
! 21504: fi
1.4 takayama 21505: echo >conf$$.file
21506: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.9 ! ohara 21507: as_ln_s='ln -s'
! 21508: # ... but there are two gotchas:
! 21509: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 21510: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 21511: # In both cases, we have to default to `cp -p'.
! 21512: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.4 takayama 21513: as_ln_s='cp -p'
21514: elif ln conf$$.file conf$$ 2>/dev/null; then
21515: as_ln_s=ln
21516: else
21517: as_ln_s='cp -p'
21518: fi
1.9 ! ohara 21519: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 21520: rmdir conf$$.dir 2>/dev/null
! 21521:
! 21522: if mkdir -p . 2>/dev/null; then
! 21523: as_mkdir_p=:
! 21524: else
! 21525: test -d ./-p && rmdir ./-p
! 21526: as_mkdir_p=false
! 21527: fi
1.4 takayama 21528:
1.9 ! ohara 21529: if test -x / >/dev/null 2>&1; then
! 21530: as_test_x='test -x'
! 21531: else
! 21532: if ls -dL / >/dev/null 2>&1; then
! 21533: as_ls_L_option=L
! 21534: else
! 21535: as_ls_L_option=
! 21536: fi
! 21537: as_test_x='
! 21538: eval sh -c '\''
! 21539: if test -d "$1"; then
! 21540: test -d "$1/.";
! 21541: else
! 21542: case $1 in
! 21543: -*)set "./$1";;
! 21544: esac;
! 21545: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 21546: ???[sx]*):;;*)false;;esac;fi
! 21547: '\'' sh
! 21548: '
! 21549: fi
! 21550: as_executable_p=$as_test_x
1.4 takayama 21551:
21552: # Sed expression to map a string onto a valid CPP name.
1.9 ! ohara 21553: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.4 takayama 21554:
21555: # Sed expression to map a string onto a valid variable name.
1.9 ! ohara 21556: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.4 takayama 21557:
21558:
21559: exec 6>&1
21560:
1.9 ! ohara 21561: # Save the log message, to keep $[0] and so on meaningful, and to
1.4 takayama 21562: # report actual input values of CONFIG_FILES etc. instead of their
1.9 ! ohara 21563: # values after options handling.
! 21564: ac_log="
1.4 takayama 21565: This file was extended by $as_me, which was
1.9 ! ohara 21566: generated by GNU Autoconf 2.61. Invocation command line was
1.4 takayama 21567:
21568: CONFIG_FILES = $CONFIG_FILES
21569: CONFIG_HEADERS = $CONFIG_HEADERS
21570: CONFIG_LINKS = $CONFIG_LINKS
21571: CONFIG_COMMANDS = $CONFIG_COMMANDS
21572: $ $0 $@
21573:
1.9 ! ohara 21574: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 21575: "
! 21576:
1.4 takayama 21577: _ACEOF
21578:
1.9 ! ohara 21579: cat >>$CONFIG_STATUS <<_ACEOF
1.4 takayama 21580: # Files that config.status was made for.
1.9 ! ohara 21581: config_files="$ac_config_files"
! 21582: config_commands="$ac_config_commands"
1.4 takayama 21583:
1.9 ! ohara 21584: _ACEOF
1.4 takayama 21585:
21586: cat >>$CONFIG_STATUS <<\_ACEOF
21587: ac_cs_usage="\
21588: \`$as_me' instantiates files from templates according to the
21589: current configuration.
21590:
21591: Usage: $0 [OPTIONS] [FILE]...
21592:
21593: -h, --help print this help, then exit
1.9 ! ohara 21594: -V, --version print version number and configuration settings, then exit
! 21595: -q, --quiet do not print progress messages
1.4 takayama 21596: -d, --debug don't remove temporary files
21597: --recheck update $as_me by reconfiguring in the same conditions
21598: --file=FILE[:TEMPLATE]
1.9 ! ohara 21599: instantiate the configuration file FILE
1.4 takayama 21600:
21601: Configuration files:
21602: $config_files
21603:
1.7 ohara 21604: Configuration commands:
21605: $config_commands
21606:
1.4 takayama 21607: Report bugs to <bug-autoconf@gnu.org>."
1.9 ! ohara 21608:
1.4 takayama 21609: _ACEOF
21610: cat >>$CONFIG_STATUS <<_ACEOF
21611: ac_cs_version="\\
21612: config.status
1.9 ! ohara 21613: configured by $0, generated by GNU Autoconf 2.61,
! 21614: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.4 takayama 21615:
1.9 ! ohara 21616: Copyright (C) 2006 Free Software Foundation, Inc.
1.4 takayama 21617: This config.status script is free software; the Free Software Foundation
21618: gives unlimited permission to copy, distribute and modify it."
1.9 ! ohara 21619:
! 21620: ac_pwd='$ac_pwd'
! 21621: srcdir='$srcdir'
! 21622: INSTALL='$INSTALL'
! 21623: MKDIR_P='$MKDIR_P'
1.4 takayama 21624: _ACEOF
21625:
21626: cat >>$CONFIG_STATUS <<\_ACEOF
21627: # If no file are specified by the user, then we need to provide default
21628: # value. By we need to know if files were specified by the user.
21629: ac_need_defaults=:
21630: while test $# != 0
1.1 ohara 21631: do
1.4 takayama 21632: case $1 in
21633: --*=*)
1.9 ! ohara 21634: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 21635: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
! 21636: ac_shift=:
! 21637: ;;
! 21638: *)
! 21639: ac_option=$1
! 21640: ac_optarg=$2
! 21641: ac_shift=shift
1.4 takayama 21642: ;;
21643: esac
21644:
1.9 ! ohara 21645: case $ac_option in
1.4 takayama 21646: # Handling of the options.
1.1 ohara 21647: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.9 ! ohara 21648: ac_cs_recheck=: ;;
! 21649: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 21650: echo "$ac_cs_version"; exit ;;
! 21651: --debug | --debu | --deb | --de | --d | -d )
1.4 takayama 21652: debug=: ;;
21653: --file | --fil | --fi | --f )
1.9 ! ohara 21654: $ac_shift
! 21655: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.4 takayama 21656: ac_need_defaults=false;;
1.9 ! ohara 21657: --he | --h | --help | --hel | -h )
! 21658: echo "$ac_cs_usage"; exit ;;
! 21659: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 21660: | -silent | --silent | --silen | --sile | --sil | --si | --s)
! 21661: ac_cs_silent=: ;;
1.4 takayama 21662:
21663: # This is an error.
1.9 ! ohara 21664: -*) { echo "$as_me: error: unrecognized option: $1
! 21665: Try \`$0 --help' for more information." >&2
1.4 takayama 21666: { (exit 1); exit 1; }; } ;;
21667:
1.9 ! ohara 21668: *) ac_config_targets="$ac_config_targets $1"
! 21669: ac_need_defaults=false ;;
1.4 takayama 21670:
21671: esac
21672: shift
21673: done
21674:
1.9 ! ohara 21675: ac_configure_extra_args=
! 21676:
! 21677: if $ac_cs_silent; then
! 21678: exec 6>/dev/null
! 21679: ac_configure_extra_args="$ac_configure_extra_args --silent"
! 21680: fi
! 21681:
! 21682: _ACEOF
! 21683: cat >>$CONFIG_STATUS <<_ACEOF
! 21684: if \$ac_cs_recheck; then
! 21685: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 21686: CONFIG_SHELL=$SHELL
! 21687: export CONFIG_SHELL
! 21688: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 21689: fi
! 21690:
1.4 takayama 21691: _ACEOF
1.9 ! ohara 21692: cat >>$CONFIG_STATUS <<\_ACEOF
! 21693: exec 5>>config.log
! 21694: {
! 21695: echo
! 21696: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 21697: ## Running $as_me. ##
! 21698: _ASBOX
! 21699: echo "$ac_log"
! 21700: } >&5
1.4 takayama 21701:
1.9 ! ohara 21702: _ACEOF
1.7 ohara 21703: cat >>$CONFIG_STATUS <<_ACEOF
21704: #
1.9 ! ohara 21705: # INIT-COMMANDS
1.7 ohara 21706: #
1.9 ! ohara 21707: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.4 takayama 21708:
1.7 ohara 21709: _ACEOF
1.4 takayama 21710:
1.9 ! ohara 21711: cat >>$CONFIG_STATUS <<\_ACEOF
1.4 takayama 21712:
1.9 ! ohara 21713: # Handling of arguments.
1.4 takayama 21714: for ac_config_target in $ac_config_targets
21715: do
1.9 ! ohara 21716: case $ac_config_target in
! 21717: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 21718: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 21719:
1.4 takayama 21720: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21721: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21722: { (exit 1); exit 1; }; };;
1.1 ohara 21723: esac
21724: done
21725:
1.9 ! ohara 21726:
1.4 takayama 21727: # If the user did not use the arguments to specify the items to instantiate,
21728: # then the envvar interface is used. Set only those that are not.
21729: # We use the long form for the default assignment because of an extremely
21730: # bizarre bug on SunOS 4.1.3.
21731: if $ac_need_defaults; then
21732: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.7 ohara 21733: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1.4 takayama 21734: fi
21735:
1.9 ! ohara 21736: # Have a temporary directory for convenience. Make it in the build tree
! 21737: # simply because there is no reason against having it here, and in addition,
! 21738: # creating and moving files from /tmp can sometimes cause problems.
! 21739: # Hook for its removal unless debugging.
! 21740: # Note that there is a small window in which the directory will not be cleaned:
! 21741: # after its creation but before its name has been assigned to `$tmp'.
1.4 takayama 21742: $debug ||
21743: {
1.9 ! ohara 21744: tmp=
! 21745: trap 'exit_status=$?
! 21746: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 21747: ' 0
1.4 takayama 21748: trap '{ (exit 1); exit 1; }' 1 2 13 15
21749: }
1.9 ! ohara 21750: # Create a (secure) tmp directory for tmp files.
1.4 takayama 21751:
21752: {
1.9 ! ohara 21753: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.4 takayama 21754: test -n "$tmp" && test -d "$tmp"
21755: } ||
21756: {
1.9 ! ohara 21757: tmp=./conf$$-$RANDOM
! 21758: (umask 077 && mkdir "$tmp")
1.4 takayama 21759: } ||
21760: {
1.9 ! ohara 21761: echo "$me: cannot create a temporary directory in ." >&2
1.4 takayama 21762: { (exit 1); exit 1; }
21763: }
21764:
1.9 ! ohara 21765: #
! 21766: # Set up the sed scripts for CONFIG_FILES section.
! 21767: #
! 21768:
! 21769: # No need to generate the scripts if there are no CONFIG_FILES.
! 21770: # This happens for instance when ./config.status config.h
! 21771: if test -n "$CONFIG_FILES"; then
! 21772:
1.4 takayama 21773: _ACEOF
1.1 ohara 21774:
1.9 ! ohara 21775:
! 21776:
! 21777: ac_delim='%!_!# '
! 21778: for ac_last_try in false false false false false :; do
! 21779: cat >conf$$subs.sed <<_ACEOF
! 21780: SHELL!$SHELL$ac_delim
! 21781: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 21782: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 21783: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 21784: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 21785: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 21786: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 21787: exec_prefix!$exec_prefix$ac_delim
! 21788: prefix!$prefix$ac_delim
! 21789: program_transform_name!$program_transform_name$ac_delim
! 21790: bindir!$bindir$ac_delim
! 21791: sbindir!$sbindir$ac_delim
! 21792: libexecdir!$libexecdir$ac_delim
! 21793: datarootdir!$datarootdir$ac_delim
! 21794: datadir!$datadir$ac_delim
! 21795: sysconfdir!$sysconfdir$ac_delim
! 21796: sharedstatedir!$sharedstatedir$ac_delim
! 21797: localstatedir!$localstatedir$ac_delim
! 21798: includedir!$includedir$ac_delim
! 21799: oldincludedir!$oldincludedir$ac_delim
! 21800: docdir!$docdir$ac_delim
! 21801: infodir!$infodir$ac_delim
! 21802: htmldir!$htmldir$ac_delim
! 21803: dvidir!$dvidir$ac_delim
! 21804: pdfdir!$pdfdir$ac_delim
! 21805: psdir!$psdir$ac_delim
! 21806: libdir!$libdir$ac_delim
! 21807: localedir!$localedir$ac_delim
! 21808: mandir!$mandir$ac_delim
! 21809: DEFS!$DEFS$ac_delim
! 21810: ECHO_C!$ECHO_C$ac_delim
! 21811: ECHO_N!$ECHO_N$ac_delim
! 21812: ECHO_T!$ECHO_T$ac_delim
! 21813: LIBS!$LIBS$ac_delim
! 21814: build_alias!$build_alias$ac_delim
! 21815: host_alias!$host_alias$ac_delim
! 21816: target_alias!$target_alias$ac_delim
! 21817: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
! 21818: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
! 21819: INSTALL_DATA!$INSTALL_DATA$ac_delim
! 21820: am__isrc!$am__isrc$ac_delim
! 21821: CYGPATH_W!$CYGPATH_W$ac_delim
! 21822: PACKAGE!$PACKAGE$ac_delim
! 21823: VERSION!$VERSION$ac_delim
! 21824: ACLOCAL!$ACLOCAL$ac_delim
! 21825: AUTOCONF!$AUTOCONF$ac_delim
! 21826: AUTOMAKE!$AUTOMAKE$ac_delim
! 21827: AUTOHEADER!$AUTOHEADER$ac_delim
! 21828: MAKEINFO!$MAKEINFO$ac_delim
! 21829: install_sh!$install_sh$ac_delim
! 21830: STRIP!$STRIP$ac_delim
! 21831: INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
! 21832: mkdir_p!$mkdir_p$ac_delim
! 21833: AWK!$AWK$ac_delim
! 21834: SET_MAKE!$SET_MAKE$ac_delim
! 21835: am__leading_dot!$am__leading_dot$ac_delim
! 21836: AMTAR!$AMTAR$ac_delim
! 21837: am__tar!$am__tar$ac_delim
! 21838: am__untar!$am__untar$ac_delim
! 21839: MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
! 21840: MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
! 21841: MAINT!$MAINT$ac_delim
! 21842: build!$build$ac_delim
! 21843: build_cpu!$build_cpu$ac_delim
! 21844: build_vendor!$build_vendor$ac_delim
! 21845: build_os!$build_os$ac_delim
! 21846: host!$host$ac_delim
! 21847: host_cpu!$host_cpu$ac_delim
! 21848: host_vendor!$host_vendor$ac_delim
! 21849: host_os!$host_os$ac_delim
! 21850: target!$target$ac_delim
! 21851: target_cpu!$target_cpu$ac_delim
! 21852: target_vendor!$target_vendor$ac_delim
! 21853: target_os!$target_os$ac_delim
! 21854: CC!$CC$ac_delim
! 21855: CFLAGS!$CFLAGS$ac_delim
! 21856: LDFLAGS!$LDFLAGS$ac_delim
! 21857: CPPFLAGS!$CPPFLAGS$ac_delim
! 21858: ac_ct_CC!$ac_ct_CC$ac_delim
! 21859: EXEEXT!$EXEEXT$ac_delim
! 21860: OBJEXT!$OBJEXT$ac_delim
! 21861: DEPDIR!$DEPDIR$ac_delim
! 21862: am__include!$am__include$ac_delim
! 21863: am__quote!$am__quote$ac_delim
! 21864: AMDEP_TRUE!$AMDEP_TRUE$ac_delim
! 21865: AMDEP_FALSE!$AMDEP_FALSE$ac_delim
! 21866: AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
! 21867: CCDEPMODE!$CCDEPMODE$ac_delim
! 21868: am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
! 21869: am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
! 21870: GREP!$GREP$ac_delim
! 21871: EGREP!$EGREP$ac_delim
! 21872: LN_S!$LN_S$ac_delim
! 21873: ECHO!$ECHO$ac_delim
! 21874: AR!$AR$ac_delim
! 21875: RANLIB!$RANLIB$ac_delim
! 21876: CPP!$CPP$ac_delim
! 21877: _ACEOF
! 21878:
! 21879: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
! 21880: break
! 21881: elif $ac_last_try; then
! 21882: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 21883: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 21884: { (exit 1); exit 1; }; }
! 21885: else
! 21886: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 21887: fi
! 21888: done
! 21889:
! 21890: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 21891: if test -n "$ac_eof"; then
! 21892: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 21893: ac_eof=`expr $ac_eof + 1`
! 21894: fi
! 21895:
1.4 takayama 21896: cat >>$CONFIG_STATUS <<_ACEOF
1.9 ! ohara 21897: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 21898: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 21899: _ACEOF
! 21900: sed '
! 21901: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 21902: s/^/s,@/; s/!/@,|#_!!_#|/
! 21903: :n
! 21904: t n
! 21905: s/'"$ac_delim"'$/,g/; t
! 21906: s/$/\\/; p
! 21907: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 21908: ' >>$CONFIG_STATUS <conf$$subs.sed
! 21909: rm -f conf$$subs.sed
! 21910: cat >>$CONFIG_STATUS <<_ACEOF
! 21911: CEOF$ac_eof
! 21912: _ACEOF
1.4 takayama 21913:
1.1 ohara 21914:
1.9 ! ohara 21915: ac_delim='%!_!# '
! 21916: for ac_last_try in false false false false false :; do
! 21917: cat >conf$$subs.sed <<_ACEOF
! 21918: CXX!$CXX$ac_delim
! 21919: CXXFLAGS!$CXXFLAGS$ac_delim
! 21920: ac_ct_CXX!$ac_ct_CXX$ac_delim
! 21921: CXXDEPMODE!$CXXDEPMODE$ac_delim
! 21922: am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
! 21923: am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
! 21924: CXXCPP!$CXXCPP$ac_delim
! 21925: F77!$F77$ac_delim
! 21926: FFLAGS!$FFLAGS$ac_delim
! 21927: ac_ct_F77!$ac_ct_F77$ac_delim
! 21928: LIBTOOL!$LIBTOOL$ac_delim
! 21929: XMKMF!$XMKMF$ac_delim
! 21930: X_CFLAGS!$X_CFLAGS$ac_delim
! 21931: X_PRE_LIBS!$X_PRE_LIBS$ac_delim
! 21932: X_LIBS!$X_LIBS$ac_delim
! 21933: X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
! 21934: LIBOBJS!$LIBOBJS$ac_delim
! 21935: LTLIBOBJS!$LTLIBOBJS$ac_delim
! 21936: _ACEOF
! 21937:
! 21938: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
! 21939: break
! 21940: elif $ac_last_try; then
! 21941: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 21942: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 21943: { (exit 1); exit 1; }; }
! 21944: else
! 21945: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 ohara 21946: fi
1.9 ! ohara 21947: done
! 21948:
! 21949: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 21950: if test -n "$ac_eof"; then
! 21951: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 21952: ac_eof=`expr $ac_eof + 1`
! 21953: fi
1.1 ohara 21954:
1.9 ! ohara 21955: cat >>$CONFIG_STATUS <<_ACEOF
! 21956: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
! 21957: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
! 21958: _ACEOF
! 21959: sed '
! 21960: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 21961: s/^/s,@/; s/!/@,|#_!!_#|/
! 21962: :n
! 21963: t n
! 21964: s/'"$ac_delim"'$/,g/; t
! 21965: s/$/\\/; p
! 21966: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 21967: ' >>$CONFIG_STATUS <conf$$subs.sed
! 21968: rm -f conf$$subs.sed
! 21969: cat >>$CONFIG_STATUS <<_ACEOF
! 21970: :end
! 21971: s/|#_!!_#|//g
! 21972: CEOF$ac_eof
1.4 takayama 21973: _ACEOF
1.9 ! ohara 21974:
! 21975:
! 21976: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 21977: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 21978: # trailing colons and then remove the whole line if VPATH becomes empty
! 21979: # (actually we leave an empty line to preserve line numbers).
! 21980: if test "x$srcdir" = x.; then
! 21981: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 21982: s/:*\$(srcdir):*/:/
! 21983: s/:*\${srcdir}:*/:/
! 21984: s/:*@srcdir@:*/:/
! 21985: s/^\([^=]*=[ ]*\):*/\1/
! 21986: s/:*$//
! 21987: s/^[^=]*=[ ]*$//
! 21988: }'
! 21989: fi
! 21990:
1.4 takayama 21991: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 ! ohara 21992: fi # test -n "$CONFIG_FILES"
! 21993:
! 21994:
! 21995: for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
! 21996: do
! 21997: case $ac_tag in
! 21998: :[FHLC]) ac_mode=$ac_tag; continue;;
! 21999: esac
! 22000: case $ac_mode$ac_tag in
! 22001: :[FHL]*:*);;
! 22002: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 22003: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 22004: { (exit 1); exit 1; }; };;
! 22005: :[FH]-) ac_tag=-:-;;
! 22006: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 22007: esac
! 22008: ac_save_IFS=$IFS
! 22009: IFS=:
! 22010: set x $ac_tag
! 22011: IFS=$ac_save_IFS
! 22012: shift
! 22013: ac_file=$1
! 22014: shift
! 22015:
! 22016: case $ac_mode in
! 22017: :L) ac_source=$1;;
! 22018: :[FH])
! 22019: ac_file_inputs=
! 22020: for ac_f
! 22021: do
! 22022: case $ac_f in
! 22023: -) ac_f="$tmp/stdin";;
! 22024: *) # Look for the file first in the build tree, then in the source tree
! 22025: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 22026: # because $ac_f cannot contain `:'.
! 22027: test -f "$ac_f" ||
! 22028: case $ac_f in
! 22029: [\\/$]*) false;;
! 22030: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 22031: esac ||
! 22032: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 22033: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 22034: { (exit 1); exit 1; }; };;
! 22035: esac
! 22036: ac_file_inputs="$ac_file_inputs $ac_f"
! 22037: done
! 22038:
! 22039: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 22040: # use $as_me), people would be surprised to read:
! 22041: # /* config.h. Generated by config.status. */
! 22042: configure_input="Generated from "`IFS=:
! 22043: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
! 22044: if test x"$ac_file" != x-; then
! 22045: configure_input="$ac_file. $configure_input"
! 22046: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 22047: echo "$as_me: creating $ac_file" >&6;}
! 22048: fi
! 22049:
! 22050: case $ac_tag in
! 22051: *:-:* | *:-) cat >"$tmp/stdin";;
! 22052: esac
! 22053: ;;
1.4 takayama 22054: esac
1.1 ohara 22055:
1.9 ! ohara 22056: ac_dir=`$as_dirname -- "$ac_file" ||
1.4 takayama 22057: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 ! ohara 22058: X"$ac_file" : 'X\(//\)[^/]' \| \
! 22059: X"$ac_file" : 'X\(//\)$' \| \
! 22060: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.4 takayama 22061: echo X"$ac_file" |
1.9 ! ohara 22062: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22063: s//\1/
! 22064: q
! 22065: }
! 22066: /^X\(\/\/\)[^/].*/{
! 22067: s//\1/
! 22068: q
! 22069: }
! 22070: /^X\(\/\/\)$/{
! 22071: s//\1/
! 22072: q
! 22073: }
! 22074: /^X\(\/\).*/{
! 22075: s//\1/
! 22076: q
! 22077: }
! 22078: s/.*/./; q'`
! 22079: { as_dir="$ac_dir"
! 22080: case $as_dir in #(
! 22081: -*) as_dir=./$as_dir;;
1.1 ohara 22082: esac
1.9 ! ohara 22083: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
! 22084: as_dirs=
! 22085: while :; do
! 22086: case $as_dir in #(
! 22087: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 22088: *) as_qdir=$as_dir;;
! 22089: esac
! 22090: as_dirs="'$as_qdir' $as_dirs"
! 22091: as_dir=`$as_dirname -- "$as_dir" ||
! 22092: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22093: X"$as_dir" : 'X\(//\)[^/]' \| \
! 22094: X"$as_dir" : 'X\(//\)$' \| \
! 22095: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 22096: echo X"$as_dir" |
! 22097: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22098: s//\1/
! 22099: q
! 22100: }
! 22101: /^X\(\/\/\)[^/].*/{
! 22102: s//\1/
! 22103: q
! 22104: }
! 22105: /^X\(\/\/\)$/{
! 22106: s//\1/
! 22107: q
! 22108: }
! 22109: /^X\(\/\).*/{
! 22110: s//\1/
! 22111: q
! 22112: }
! 22113: s/.*/./; q'`
! 22114: test -d "$as_dir" && break
! 22115: done
! 22116: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 22117: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 22118: echo "$as_me: error: cannot create directory $as_dir" >&2;}
! 22119: { (exit 1); exit 1; }; }; }
1.4 takayama 22120: ac_builddir=.
1.1 ohara 22121:
1.9 ! ohara 22122: case "$ac_dir" in
! 22123: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 22124: *)
1.4 takayama 22125: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.9 ! ohara 22126: # A ".." for each directory in $ac_dir_suffix.
! 22127: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 22128: case $ac_top_builddir_sub in
! 22129: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 22130: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 22131: esac ;;
! 22132: esac
! 22133: ac_abs_top_builddir=$ac_pwd
! 22134: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 22135: # for backward compatibility:
! 22136: ac_top_builddir=$ac_top_build_prefix
1.1 ohara 22137:
1.4 takayama 22138: case $srcdir in
1.9 ! ohara 22139: .) # We are building in place.
1.4 takayama 22140: ac_srcdir=.
1.9 ! ohara 22141: ac_top_srcdir=$ac_top_builddir_sub
! 22142: ac_abs_top_srcdir=$ac_pwd ;;
! 22143: [\\/]* | ?:[\\/]* ) # Absolute name.
1.4 takayama 22144: ac_srcdir=$srcdir$ac_dir_suffix;
1.9 ! ohara 22145: ac_top_srcdir=$srcdir
! 22146: ac_abs_top_srcdir=$srcdir ;;
! 22147: *) # Relative name.
! 22148: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 22149: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 22150: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 22151: esac
! 22152: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.4 takayama 22153:
1.1 ohara 22154:
1.9 ! ohara 22155: case $ac_mode in
! 22156: :F)
! 22157: #
! 22158: # CONFIG_FILE
! 22159: #
! 22160:
1.6 ohara 22161: case $INSTALL in
22162: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.9 ! ohara 22163: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
! 22164: esac
! 22165: ac_MKDIR_P=$MKDIR_P
! 22166: case $MKDIR_P in
! 22167: [\\/$]* | ?:[\\/]* ) ;;
! 22168: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.6 ohara 22169: esac
1.9 ! ohara 22170: _ACEOF
1.1 ohara 22171:
1.9 ! ohara 22172: cat >>$CONFIG_STATUS <<\_ACEOF
! 22173: # If the template does not know about datarootdir, expand it.
! 22174: # FIXME: This hack should be removed a few years after 2.60.
! 22175: ac_datarootdir_hack=; ac_datarootdir_seen=
! 22176:
! 22177: case `sed -n '/datarootdir/ {
! 22178: p
! 22179: q
! 22180: }
! 22181: /@datadir@/p
! 22182: /@docdir@/p
! 22183: /@infodir@/p
! 22184: /@localedir@/p
! 22185: /@mandir@/p
! 22186: ' $ac_file_inputs` in
! 22187: *datarootdir*) ac_datarootdir_seen=yes;;
! 22188: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 22189: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 22190: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 22191: _ACEOF
! 22192: cat >>$CONFIG_STATUS <<_ACEOF
! 22193: ac_datarootdir_hack='
! 22194: s&@datadir@&$datadir&g
! 22195: s&@docdir@&$docdir&g
! 22196: s&@infodir@&$infodir&g
! 22197: s&@localedir@&$localedir&g
! 22198: s&@mandir@&$mandir&g
! 22199: s&\\\${datarootdir}&$datarootdir&g' ;;
! 22200: esac
1.4 takayama 22201: _ACEOF
1.9 ! ohara 22202:
! 22203: # Neutralize VPATH when `$srcdir' = `.'.
! 22204: # Shell code in configure.ac might set extrasub.
! 22205: # FIXME: do we really want to maintain this feature?
1.4 takayama 22206: cat >>$CONFIG_STATUS <<_ACEOF
22207: sed "$ac_vpsub
22208: $extrasub
22209: _ACEOF
22210: cat >>$CONFIG_STATUS <<\_ACEOF
22211: :t
22212: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.9 ! ohara 22213: s&@configure_input@&$configure_input&;t t
! 22214: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 22215: s&@srcdir@&$ac_srcdir&;t t
! 22216: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 22217: s&@top_srcdir@&$ac_top_srcdir&;t t
! 22218: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 22219: s&@builddir@&$ac_builddir&;t t
! 22220: s&@abs_builddir@&$ac_abs_builddir&;t t
! 22221: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 22222: s&@INSTALL@&$ac_INSTALL&;t t
! 22223: s&@MKDIR_P@&$ac_MKDIR_P&;t t
! 22224: $ac_datarootdir_hack
! 22225: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
! 22226:
! 22227: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 22228: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 22229: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 22230: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 22231: which seems to be undefined. Please make sure it is defined." >&5
! 22232: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 22233: which seems to be undefined. Please make sure it is defined." >&2;}
! 22234:
! 22235: rm -f "$tmp/stdin"
! 22236: case $ac_file in
! 22237: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 22238: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
! 22239: esac
! 22240: ;;
1.1 ohara 22241:
1.7 ohara 22242:
1.9 ! ohara 22243: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
! 22244: echo "$as_me: executing $ac_file commands" >&6;}
! 22245: ;;
! 22246: esac
1.7 ohara 22247:
22248:
1.9 ! ohara 22249: case $ac_file$ac_mode in
! 22250: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
! 22251: # Strip MF so we end up with the name of the file.
! 22252: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 22253: # Check whether this is an Automake generated Makefile or not.
! 22254: # We used to match only the files named `Makefile.in', but
! 22255: # some people rename them; so instead we look at the file content.
! 22256: # Grep'ing the first line is not enough: some people post-process
! 22257: # each Makefile.in and add a new line on top of each file to say so.
! 22258: # Grep'ing the whole file is not good either: AIX grep has a line
! 22259: # limit of 2048, but all sed's we know have understand at least 4000.
! 22260: if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
! 22261: dirpart=`$as_dirname -- "$mf" ||
! 22262: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22263: X"$mf" : 'X\(//\)[^/]' \| \
! 22264: X"$mf" : 'X\(//\)$' \| \
! 22265: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
! 22266: echo X"$mf" |
! 22267: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22268: s//\1/
! 22269: q
! 22270: }
! 22271: /^X\(\/\/\)[^/].*/{
! 22272: s//\1/
! 22273: q
! 22274: }
! 22275: /^X\(\/\/\)$/{
! 22276: s//\1/
! 22277: q
! 22278: }
! 22279: /^X\(\/\).*/{
! 22280: s//\1/
! 22281: q
! 22282: }
! 22283: s/.*/./; q'`
! 22284: else
! 22285: continue
! 22286: fi
! 22287: # Extract the definition of DEPDIR, am__include, and am__quote
! 22288: # from the Makefile without running `make'.
! 22289: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.7 ohara 22290: test -z "$DEPDIR" && continue
1.9 ! ohara 22291: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 22292: test -z "am__include" && continue
! 22293: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.7 ohara 22294: # When using ansi2knr, U may be empty or an underscore; expand it
1.9 ! ohara 22295: U=`sed -n 's/^U = //p' < "$mf"`
! 22296: # Find all dependency output files, they are included files with
! 22297: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 22298: # simplest approach to changing $(DEPDIR) to its actual value in the
! 22299: # expansion.
! 22300: for file in `sed -n "
! 22301: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.7 ohara 22302: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22303: # Make sure the directory exists.
22304: test -f "$dirpart/$file" && continue
1.9 ! ohara 22305: fdir=`$as_dirname -- "$file" ||
! 22306: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22307: X"$file" : 'X\(//\)[^/]' \| \
! 22308: X"$file" : 'X\(//\)$' \| \
! 22309: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
! 22310: echo X"$file" |
! 22311: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22312: s//\1/
! 22313: q
! 22314: }
! 22315: /^X\(\/\/\)[^/].*/{
! 22316: s//\1/
! 22317: q
! 22318: }
! 22319: /^X\(\/\/\)$/{
! 22320: s//\1/
! 22321: q
! 22322: }
! 22323: /^X\(\/\).*/{
! 22324: s//\1/
! 22325: q
! 22326: }
! 22327: s/.*/./; q'`
! 22328: { as_dir=$dirpart/$fdir
! 22329: case $as_dir in #(
! 22330: -*) as_dir=./$as_dir;;
! 22331: esac
! 22332: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
! 22333: as_dirs=
! 22334: while :; do
! 22335: case $as_dir in #(
! 22336: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 22337: *) as_qdir=$as_dir;;
! 22338: esac
! 22339: as_dirs="'$as_qdir' $as_dirs"
! 22340: as_dir=`$as_dirname -- "$as_dir" ||
! 22341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 22342: X"$as_dir" : 'X\(//\)[^/]' \| \
! 22343: X"$as_dir" : 'X\(//\)$' \| \
! 22344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 22345: echo X"$as_dir" |
! 22346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 22347: s//\1/
! 22348: q
! 22349: }
! 22350: /^X\(\/\/\)[^/].*/{
! 22351: s//\1/
! 22352: q
! 22353: }
! 22354: /^X\(\/\/\)$/{
! 22355: s//\1/
! 22356: q
! 22357: }
! 22358: /^X\(\/\).*/{
! 22359: s//\1/
! 22360: q
! 22361: }
! 22362: s/.*/./; q'`
! 22363: test -d "$as_dir" && break
! 22364: done
! 22365: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 22366: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 22367: echo "$as_me: error: cannot create directory $as_dir" >&2;}
! 22368: { (exit 1); exit 1; }; }; }
1.7 ohara 22369: # echo "creating $dirpart/$file"
22370: echo '# dummy' > "$dirpart/$file"
22371: done
22372: done
22373: ;;
1.9 ! ohara 22374:
1.7 ohara 22375: esac
1.9 ! ohara 22376: done # for ac_tag
1.1 ohara 22377:
22378:
1.4 takayama 22379: { (exit 0); exit 0; }
22380: _ACEOF
1.1 ohara 22381: chmod +x $CONFIG_STATUS
1.4 takayama 22382: ac_clean_files=$ac_clean_files_save
22383:
22384:
22385: # configure is writing to config.log, and then calls config.status.
22386: # config.status does its own redirection, appending to config.log.
22387: # Unfortunately, on DOS this fails, as config.log is still kept open
22388: # by configure, so config.status won't be able to write to it; its
22389: # output is simply discarded. So we exec the FD to /dev/null,
22390: # effectively closing config.log, so it can be properly (re)opened and
22391: # appended to by config.status. When coming back to configure, we
22392: # need to make the FD available again.
22393: if test "$no_create" != yes; then
22394: ac_cs_success=:
1.9 ! ohara 22395: ac_config_status_args=
! 22396: test "$silent" = yes &&
! 22397: ac_config_status_args="$ac_config_status_args --quiet"
1.4 takayama 22398: exec 5>/dev/null
1.9 ! ohara 22399: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.4 takayama 22400: exec 5>>config.log
22401: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22402: # would make configure fail if this is the last instruction.
22403: $ac_cs_success || { (exit 1); exit 1; }
22404: fi
1.2 ohara 22405:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>