|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.2 ! root 3: # Generated by GNU Autoconf 2.61 for libltdl 1.2.
1.1 root 4: #
5: # Report bugs to <[email protected]>.
6: #
1.1.1.2 ! root 7: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 8: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## --------------------- ##
12: ## M4sh Initialization. ##
13: ## --------------------- ##
14:
1.1.1.2 ! root 15: # Be more Bourne compatible
! 16: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18: emulate sh
19: NULLCMD=:
20: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
1.1.1.2 ! root 23: setopt NO_GLOB_SUBST
! 24: else
! 25: case `(set -o) 2>/dev/null` in
! 26: *posix*) set -o posix ;;
! 27: esac
! 28:
! 29: fi
! 30:
! 31:
! 32:
! 33:
! 34: # PATH needs CR
! 35: # Avoid depending upon Character Ranges.
! 36: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 37: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 38: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 39: as_cr_digits='0123456789'
! 40: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 41:
! 42: # The user is always right.
! 43: if test "${PATH_SEPARATOR+set}" != set; then
! 44: echo "#! /bin/sh" >conf$$.sh
! 45: echo "exit 0" >>conf$$.sh
! 46: chmod +x conf$$.sh
! 47: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 48: PATH_SEPARATOR=';'
! 49: else
! 50: PATH_SEPARATOR=:
! 51: fi
! 52: rm -f conf$$.sh
1.1 root 53: fi
54:
55: # Support unset when possible.
1.1.1.2 ! root 56: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 57: as_unset=unset
58: else
59: as_unset=false
60: fi
61:
62:
1.1.1.2 ! root 63: # IFS
! 64: # We need space, tab and new line, in precisely that order. Quoting is
! 65: # there to prevent editors from complaining about space-tab.
! 66: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 67: # splitting by setting IFS to empty value.)
! 68: as_nl='
! 69: '
! 70: IFS=" "" $as_nl"
! 71:
! 72: # Find who we are. Look in the path if we contain no directory separator.
! 73: case $0 in
! 74: *[\\/]* ) as_myself=$0 ;;
! 75: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 76: for as_dir in $PATH
! 77: do
! 78: IFS=$as_save_IFS
! 79: test -z "$as_dir" && as_dir=.
! 80: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 81: done
! 82: IFS=$as_save_IFS
! 83:
! 84: ;;
! 85: esac
! 86: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 87: # in which case we are not to be found in the path.
! 88: if test "x$as_myself" = x; then
! 89: as_myself=$0
! 90: fi
! 91: if test ! -f "$as_myself"; then
! 92: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 93: { (exit 1); exit 1; }
! 94: fi
! 95:
1.1 root 96: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.2 ! root 97: for as_var in ENV MAIL MAILPATH
! 98: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 99: done
1.1 root 100: PS1='$ '
101: PS2='> '
102: PS4='+ '
103:
104: # NLS nuisances.
105: for as_var in \
106: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108: LC_TELEPHONE LC_TIME
109: do
1.1.1.2 ! root 110: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.1 root 111: eval $as_var=C; export $as_var
112: else
1.1.1.2 ! root 113: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1 root 114: fi
115: done
116:
117: # Required to use basename.
1.1.1.2 ! root 118: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 119: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 120: as_expr=expr
121: else
122: as_expr=false
123: fi
124:
1.1.1.2 ! root 125: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 root 126: as_basename=basename
127: else
128: as_basename=false
129: fi
130:
131:
132: # Name of the executable.
1.1.1.2 ! root 133: as_me=`$as_basename -- "$0" ||
1.1 root 134: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135: X"$0" : 'X\(//\)$' \| \
1.1.1.2 ! root 136: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 137: echo X/"$0" |
1.1.1.2 ! root 138: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 139: s//\1/
! 140: q
! 141: }
! 142: /^X\/\(\/\/\)$/{
! 143: s//\1/
! 144: q
! 145: }
! 146: /^X\/\(\/\).*/{
! 147: s//\1/
! 148: q
! 149: }
! 150: s/.*/./; q'`
1.1 root 151:
1.1.1.2 ! root 152: # CDPATH.
! 153: $as_unset CDPATH
1.1 root 154:
155:
1.1.1.2 ! root 156: if test "x$CONFIG_SHELL" = x; then
! 157: if (eval ":") 2>/dev/null; then
! 158: as_have_required=yes
! 159: else
! 160: as_have_required=no
! 161: fi
! 162:
! 163: if test $as_have_required = yes && (eval ":
! 164: (as_func_return () {
! 165: (exit \$1)
! 166: }
! 167: as_func_success () {
! 168: as_func_return 0
! 169: }
! 170: as_func_failure () {
! 171: as_func_return 1
! 172: }
! 173: as_func_ret_success () {
! 174: return 0
! 175: }
! 176: as_func_ret_failure () {
! 177: return 1
! 178: }
! 179:
! 180: exitcode=0
! 181: if as_func_success; then
! 182: :
! 183: else
! 184: exitcode=1
! 185: echo as_func_success failed.
1.1 root 186: fi
187:
1.1.1.2 ! root 188: if as_func_failure; then
! 189: exitcode=1
! 190: echo as_func_failure succeeded.
! 191: fi
1.1 root 192:
1.1.1.2 ! root 193: if as_func_ret_success; then
! 194: :
! 195: else
! 196: exitcode=1
! 197: echo as_func_ret_success failed.
! 198: fi
1.1 root 199:
1.1.1.2 ! root 200: if as_func_ret_failure; then
! 201: exitcode=1
! 202: echo as_func_ret_failure succeeded.
! 203: fi
! 204:
! 205: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 206: :
! 207: else
! 208: exitcode=1
! 209: echo positional parameters were not saved.
! 210: fi
! 211:
! 212: test \$exitcode = 0) || { (exit 1); exit 1; }
! 213:
! 214: (
! 215: as_lineno_1=\$LINENO
! 216: as_lineno_2=\$LINENO
! 217: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
! 218: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
! 219: ") 2> /dev/null; then
! 220: :
! 221: else
! 222: as_candidate_shells=
1.1 root 223: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225: do
226: IFS=$as_save_IFS
227: test -z "$as_dir" && as_dir=.
1.1.1.2 ! root 228: case $as_dir in
1.1 root 229: /*)
1.1.1.2 ! root 230: for as_base in sh bash ksh sh5; do
! 231: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
! 232: done;;
! 233: esac
! 234: done
! 235: IFS=$as_save_IFS
! 236:
! 237:
! 238: for as_shell in $as_candidate_shells $SHELL; do
! 239: # Try only shells that exist, to save several forks.
! 240: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 241: { ("$as_shell") 2> /dev/null <<\_ASEOF
! 242: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 243: emulate sh
! 244: NULLCMD=:
! 245: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 246: # is contrary to our usage. Disable this feature.
! 247: alias -g '${1+"$@"}'='"$@"'
! 248: setopt NO_GLOB_SUBST
! 249: else
! 250: case `(set -o) 2>/dev/null` in
! 251: *posix*) set -o posix ;;
! 252: esac
! 253:
! 254: fi
! 255:
! 256:
! 257: :
! 258: _ASEOF
! 259: }; then
! 260: CONFIG_SHELL=$as_shell
! 261: as_have_required=yes
! 262: if { "$as_shell" 2> /dev/null <<\_ASEOF
! 263: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 264: emulate sh
! 265: NULLCMD=:
! 266: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 267: # is contrary to our usage. Disable this feature.
! 268: alias -g '${1+"$@"}'='"$@"'
! 269: setopt NO_GLOB_SUBST
! 270: else
! 271: case `(set -o) 2>/dev/null` in
! 272: *posix*) set -o posix ;;
! 273: esac
! 274:
! 275: fi
! 276:
! 277:
! 278: :
! 279: (as_func_return () {
! 280: (exit $1)
! 281: }
! 282: as_func_success () {
! 283: as_func_return 0
! 284: }
! 285: as_func_failure () {
! 286: as_func_return 1
! 287: }
! 288: as_func_ret_success () {
! 289: return 0
! 290: }
! 291: as_func_ret_failure () {
! 292: return 1
! 293: }
! 294:
! 295: exitcode=0
! 296: if as_func_success; then
! 297: :
! 298: else
! 299: exitcode=1
! 300: echo as_func_success failed.
! 301: fi
! 302:
! 303: if as_func_failure; then
! 304: exitcode=1
! 305: echo as_func_failure succeeded.
! 306: fi
! 307:
! 308: if as_func_ret_success; then
! 309: :
! 310: else
! 311: exitcode=1
! 312: echo as_func_ret_success failed.
! 313: fi
! 314:
! 315: if as_func_ret_failure; then
! 316: exitcode=1
! 317: echo as_func_ret_failure succeeded.
! 318: fi
! 319:
! 320: if ( set x; as_func_ret_success y && test x = "$1" ); then
! 321: :
! 322: else
! 323: exitcode=1
! 324: echo positional parameters were not saved.
! 325: fi
! 326:
! 327: test $exitcode = 0) || { (exit 1); exit 1; }
! 328:
! 329: (
1.1 root 330: as_lineno_1=$LINENO
331: as_lineno_2=$LINENO
332: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.2 ! root 333: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
! 334:
! 335: _ASEOF
! 336: }; then
! 337: break
! 338: fi
! 339:
! 340: fi
! 341:
! 342: done
! 343:
! 344: if test "x$CONFIG_SHELL" != x; then
! 345: for as_var in BASH_ENV ENV
! 346: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 347: done
! 348: export CONFIG_SHELL
! 349: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 350: fi
! 351:
! 352:
! 353: if test $as_have_required = no; then
! 354: echo This script requires a shell more modern than all the
! 355: echo shells that I found on your system. Please install a
! 356: echo modern shell, or manually run the script under such a
! 357: echo shell if you do have one.
! 358: { (exit 1); exit 1; }
! 359: fi
! 360:
! 361:
! 362: fi
! 363:
! 364: fi
! 365:
! 366:
! 367:
! 368: (eval "as_func_return () {
! 369: (exit \$1)
! 370: }
! 371: as_func_success () {
! 372: as_func_return 0
! 373: }
! 374: as_func_failure () {
! 375: as_func_return 1
! 376: }
! 377: as_func_ret_success () {
! 378: return 0
! 379: }
! 380: as_func_ret_failure () {
! 381: return 1
! 382: }
! 383:
! 384: exitcode=0
! 385: if as_func_success; then
! 386: :
! 387: else
! 388: exitcode=1
! 389: echo as_func_success failed.
! 390: fi
! 391:
! 392: if as_func_failure; then
! 393: exitcode=1
! 394: echo as_func_failure succeeded.
! 395: fi
! 396:
! 397: if as_func_ret_success; then
! 398: :
! 399: else
! 400: exitcode=1
! 401: echo as_func_ret_success failed.
! 402: fi
! 403:
! 404: if as_func_ret_failure; then
! 405: exitcode=1
! 406: echo as_func_ret_failure succeeded.
! 407: fi
! 408:
! 409: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
! 410: :
! 411: else
! 412: exitcode=1
! 413: echo positional parameters were not saved.
! 414: fi
! 415:
! 416: test \$exitcode = 0") || {
! 417: echo No shell found that supports shell functions.
! 418: echo Please tell [email protected] about your system,
! 419: echo including any error possibly output before this
! 420: echo message
! 421: }
! 422:
! 423:
! 424:
! 425: as_lineno_1=$LINENO
! 426: as_lineno_2=$LINENO
! 427: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 428: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 429:
430: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.2 ! root 432: # line-number line after each line using $LINENO; the second 'sed'
! 433: # does the real work. The second script uses 'N' to pair each
! 434: # line-number line with the line containing $LINENO, and appends
! 435: # trailing '-' during substitution so that $LINENO is not a special
! 436: # case at line end.
1.1 root 437: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.2 ! root 438: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 439: # E. McMahon (1931-1989) for sed's syntax. :-)
! 440: sed -n '
! 441: p
! 442: /[$]LINENO/=
! 443: ' <$as_myself |
1.1 root 444: sed '
1.1.1.2 ! root 445: s/[$]LINENO.*/&-/
! 446: t lineno
! 447: b
! 448: :lineno
1.1 root 449: N
1.1.1.2 ! root 450: :loop
! 451: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 452: t loop
1.1.1.2 ! root 453: s/-\n.*//
1.1 root 454: ' >$as_me.lineno &&
1.1.1.2 ! root 455: chmod +x "$as_me.lineno" ||
1.1 root 456: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457: { (exit 1); exit 1; }; }
458:
459: # Don't try to exec as it changes $[0], causing all sort of problems
460: # (the dirname of $[0] is not the place where we might find the
1.1.1.2 ! root 461: # original and so on. Autoconf is especially sensitive to this).
! 462: . "./$as_me.lineno"
1.1 root 463: # Exit status is that of the last command.
464: exit
465: }
466:
467:
1.1.1.2 ! root 468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 469: as_dirname=dirname
! 470: else
! 471: as_dirname=false
! 472: fi
! 473:
! 474: ECHO_C= ECHO_N= ECHO_T=
! 475: case `echo -n x` in
! 476: -n*)
! 477: case `echo 'x\c'` in
! 478: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 479: *) ECHO_C='\c';;
! 480: esac;;
! 481: *)
! 482: ECHO_N='-n';;
1.1 root 483: esac
484:
1.1.1.2 ! root 485: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 486: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 487: as_expr=expr
488: else
489: as_expr=false
490: fi
491:
492: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.2 ! root 493: if test -d conf$$.dir; then
! 494: rm -f conf$$.dir/conf$$.file
! 495: else
! 496: rm -f conf$$.dir
! 497: mkdir conf$$.dir
! 498: fi
1.1 root 499: echo >conf$$.file
500: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.2 ! root 501: as_ln_s='ln -s'
! 502: # ... but there are two gotchas:
! 503: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 504: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 505: # In both cases, we have to default to `cp -p'.
! 506: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 507: as_ln_s='cp -p'
508: elif ln conf$$.file conf$$ 2>/dev/null; then
509: as_ln_s=ln
510: else
511: as_ln_s='cp -p'
512: fi
1.1.1.2 ! root 513: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 514: rmdir conf$$.dir 2>/dev/null
1.1 root 515:
516: if mkdir -p . 2>/dev/null; then
517: as_mkdir_p=:
518: else
1.1.1.2 ! root 519: test -d ./-p && rmdir ./-p
1.1 root 520: as_mkdir_p=false
521: fi
522:
1.1.1.2 ! root 523: if test -x / >/dev/null 2>&1; then
! 524: as_test_x='test -x'
! 525: else
! 526: if ls -dL / >/dev/null 2>&1; then
! 527: as_ls_L_option=L
! 528: else
! 529: as_ls_L_option=
! 530: fi
! 531: as_test_x='
! 532: eval sh -c '\''
! 533: if test -d "$1"; then
! 534: test -d "$1/.";
! 535: else
! 536: case $1 in
! 537: -*)set "./$1";;
! 538: esac;
! 539: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 540: ???[sx]*):;;*)false;;esac;fi
! 541: '\'' sh
! 542: '
! 543: fi
! 544: as_executable_p=$as_test_x
1.1 root 545:
546: # Sed expression to map a string onto a valid CPP name.
1.1.1.2 ! root 547: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 548:
549: # Sed expression to map a string onto a valid variable name.
1.1.1.2 ! root 550: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 551:
552:
553:
554:
555: # Check that we are running under the correct shell.
556: SHELL=${CONFIG_SHELL-/bin/sh}
557:
558: case X$ECHO in
559: X*--fallback-echo)
560: # Remove one level of quotation (which was required for Make).
561: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562: ;;
563: esac
564:
565: echo=${ECHO-echo}
566: if test "X$1" = X--no-reexec; then
567: # Discard the --no-reexec flag, and continue.
568: shift
569: elif test "X$1" = X--fallback-echo; then
570: # Avoid inline document here, it may be left over
571: :
572: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573: # Yippee, $echo works!
574: :
575: else
576: # Restart under the correct shell.
577: exec $SHELL "$0" --no-reexec ${1+"$@"}
578: fi
579:
580: if test "X$1" = X--fallback-echo; then
581: # used as fallback echo
582: shift
583: cat <<EOF
584: $*
585: EOF
586: exit 0
587: fi
588:
589: # The HP-UX ksh and POSIX shell print the target directory to stdout
590: # if CDPATH is set.
1.1.1.2 ! root 591: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 root 592:
593: if test -z "$ECHO"; then
594: if test "X${echo_test_string+set}" != Xset; then
595: # find a string as large as possible, as long as the shell can cope with it
596: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1.1.1.2 ! root 598: if (echo_test_string=`eval $cmd`) 2>/dev/null &&
! 599: echo_test_string=`eval $cmd` &&
1.1 root 600: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601: then
602: break
603: fi
604: done
605: fi
606:
607: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609: test "X$echo_testing_string" = "X$echo_test_string"; then
610: :
611: else
612: # The Solaris, AIX, and Digital Unix default echo programs unquote
613: # backslashes. This makes it impossible to quote backslashes using
614: # echo "$something" | sed 's/\\/\\\\/g'
615: #
616: # So, first we look for a working echo in the user's PATH.
617:
618: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619: for dir in $PATH /usr/ucb; do
620: IFS="$lt_save_ifs"
621: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624: test "X$echo_testing_string" = "X$echo_test_string"; then
625: echo="$dir/echo"
626: break
627: fi
628: done
629: IFS="$lt_save_ifs"
630:
631: if test "X$echo" = Xecho; then
632: # We didn't find a better echo, so look for alternatives.
1.1.1.2 ! root 633: if test "X`(print -r - '\t') 2>/dev/null`" = 'X\t' &&
1.1 root 634: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635: test "X$echo_testing_string" = "X$echo_test_string"; then
636: # This shell has a builtin print -r that does the trick.
1.1.1.2 ! root 637: echo='print -r -'
1.1 root 638: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639: test "X$CONFIG_SHELL" != X/bin/ksh; then
640: # If we have ksh, try running configure again with it.
641: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642: export ORIGINAL_CONFIG_SHELL
643: CONFIG_SHELL=/bin/ksh
644: export CONFIG_SHELL
645: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646: else
647: # Try using printf.
648: echo='printf %s\n'
649: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651: test "X$echo_testing_string" = "X$echo_test_string"; then
652: # Cool, printf works
653: :
654: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655: test "X$echo_testing_string" = 'X\t' &&
656: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657: test "X$echo_testing_string" = "X$echo_test_string"; then
658: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659: export CONFIG_SHELL
660: SHELL="$CONFIG_SHELL"
661: export SHELL
662: echo="$CONFIG_SHELL $0 --fallback-echo"
663: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664: test "X$echo_testing_string" = 'X\t' &&
665: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666: test "X$echo_testing_string" = "X$echo_test_string"; then
667: echo="$CONFIG_SHELL $0 --fallback-echo"
668: else
669: # maybe with a smaller string...
670: prev=:
671:
672: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674: then
675: break
676: fi
677: prev="$cmd"
678: done
679:
680: if test "$prev" != 'sed 50q "$0"'; then
681: echo_test_string=`eval $prev`
682: export echo_test_string
683: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684: else
685: # Oops. We lost completely, so just stick with echo.
686: echo=echo
687: fi
688: fi
689: fi
690: fi
691: fi
692: fi
693:
694: # Copy echo and quote the copy suitably for passing to libtool from
695: # the Makefile, instead of quoting the original, which is used later.
696: ECHO=$echo
697: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699: fi
700:
701:
702:
703:
1.1.1.2 ! root 704: tagnames=${tagnames+${tagnames},}CXX
! 705:
! 706: tagnames=${tagnames+${tagnames},}F77
1.1 root 707:
1.1.1.2 ! root 708: exec 7<&0 </dev/null 6>&1
1.1 root 709:
710: # Name of the host.
711: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712: # so uname gets run too.
713: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714:
715: #
716: # Initializations.
717: #
718: ac_default_prefix=/usr/local
1.1.1.2 ! root 719: ac_clean_files=
1.1 root 720: ac_config_libobj_dir=.
1.1.1.2 ! root 721: LIBOBJS=
1.1 root 722: cross_compiling=no
723: subdirs=
724: MFLAGS=
725: MAKEFLAGS=
726: SHELL=${CONFIG_SHELL-/bin/sh}
727:
728: # Identity of this package.
729: PACKAGE_NAME='libltdl'
730: PACKAGE_TARNAME='libltdl'
731: PACKAGE_VERSION='1.2'
732: PACKAGE_STRING='libltdl 1.2'
733: PACKAGE_BUGREPORT='[email protected]'
734:
735: ac_unique_file="ltdl.c"
736: # Factoring default headers for most tests.
737: ac_includes_default="\
738: #include <stdio.h>
1.1.1.2 ! root 739: #ifdef HAVE_SYS_TYPES_H
1.1 root 740: # include <sys/types.h>
741: #endif
1.1.1.2 ! root 742: #ifdef HAVE_SYS_STAT_H
1.1 root 743: # include <sys/stat.h>
744: #endif
1.1.1.2 ! root 745: #ifdef STDC_HEADERS
1.1 root 746: # include <stdlib.h>
747: # include <stddef.h>
748: #else
1.1.1.2 ! root 749: # ifdef HAVE_STDLIB_H
1.1 root 750: # include <stdlib.h>
751: # endif
752: #endif
1.1.1.2 ! root 753: #ifdef HAVE_STRING_H
! 754: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 root 755: # include <memory.h>
756: # endif
757: # include <string.h>
758: #endif
1.1.1.2 ! root 759: #ifdef HAVE_STRINGS_H
1.1 root 760: # include <strings.h>
761: #endif
1.1.1.2 ! root 762: #ifdef HAVE_INTTYPES_H
1.1 root 763: # include <inttypes.h>
764: #endif
1.1.1.2 ! root 765: #ifdef HAVE_STDINT_H
! 766: # include <stdint.h>
! 767: #endif
! 768: #ifdef HAVE_UNISTD_H
1.1 root 769: # include <unistd.h>
770: #endif"
771:
1.1.1.2 ! root 772: ac_subst_vars='SHELL
! 773: PATH_SEPARATOR
! 774: PACKAGE_NAME
! 775: PACKAGE_TARNAME
! 776: PACKAGE_VERSION
! 777: PACKAGE_STRING
! 778: PACKAGE_BUGREPORT
! 779: exec_prefix
! 780: prefix
! 781: program_transform_name
! 782: bindir
! 783: sbindir
! 784: libexecdir
! 785: datarootdir
! 786: datadir
! 787: sysconfdir
! 788: sharedstatedir
! 789: localstatedir
! 790: includedir
! 791: oldincludedir
! 792: docdir
! 793: infodir
! 794: htmldir
! 795: dvidir
! 796: pdfdir
! 797: psdir
! 798: libdir
! 799: localedir
! 800: mandir
! 801: DEFS
! 802: ECHO_C
! 803: ECHO_N
! 804: ECHO_T
! 805: LIBS
! 806: build_alias
! 807: host_alias
! 808: target_alias
! 809: INSTALL_PROGRAM
! 810: INSTALL_SCRIPT
! 811: INSTALL_DATA
! 812: am__isrc
! 813: CYGPATH_W
! 814: PACKAGE
! 815: VERSION
! 816: ACLOCAL
! 817: AUTOCONF
! 818: AUTOMAKE
! 819: AUTOHEADER
! 820: MAKEINFO
! 821: install_sh
! 822: STRIP
! 823: INSTALL_STRIP_PROGRAM
! 824: mkdir_p
! 825: AWK
! 826: SET_MAKE
! 827: am__leading_dot
! 828: AMTAR
! 829: am__tar
! 830: am__untar
! 831: CC
! 832: CFLAGS
! 833: LDFLAGS
! 834: CPPFLAGS
! 835: ac_ct_CC
! 836: EXEEXT
! 837: OBJEXT
! 838: DEPDIR
! 839: am__include
! 840: am__quote
! 841: AMDEP_TRUE
! 842: AMDEP_FALSE
! 843: AMDEPBACKSLASH
! 844: CCDEPMODE
! 845: am__fastdepCC_TRUE
! 846: am__fastdepCC_FALSE
! 847: build
! 848: build_cpu
! 849: build_vendor
! 850: build_os
! 851: host
! 852: host_cpu
! 853: host_vendor
! 854: host_os
! 855: SED
! 856: GREP
! 857: EGREP
! 858: LN_S
! 859: ECHO
! 860: AR
! 861: RANLIB
! 862: DLLTOOL
! 863: AS
! 864: OBJDUMP
! 865: CPP
! 866: CXX
! 867: CXXFLAGS
! 868: ac_ct_CXX
! 869: CXXDEPMODE
! 870: am__fastdepCXX_TRUE
! 871: am__fastdepCXX_FALSE
! 872: CXXCPP
! 873: F77
! 874: FFLAGS
! 875: ac_ct_F77
! 876: LIBTOOL
! 877: LIBTOOL_DEPS
! 878: INSTALL_LTDL_TRUE
! 879: INSTALL_LTDL_FALSE
! 880: CONVENIENCE_LTDL_TRUE
! 881: CONVENIENCE_LTDL_FALSE
! 882: LIBADD_DL
! 883: LIBOBJS
! 884: LTLIBOBJS'
1.1 root 885: ac_subst_files=''
1.1.1.2 ! root 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:
1.1 root 902:
903: # Initialize some variables set by options.
904: ac_init_help=
905: ac_init_version=false
906: # The variables have the same names as the options, with
907: # dashes changed to underlines.
908: cache_file=/dev/null
909: exec_prefix=NONE
910: no_create=
911: no_recursion=
912: prefix=NONE
913: program_prefix=NONE
914: program_suffix=NONE
915: program_transform_name=s,x,x,
916: silent=
917: site=
918: srcdir=
919: verbose=
920: x_includes=NONE
921: x_libraries=NONE
922:
923: # Installation directory options.
924: # These are left unexpanded so users can "make install exec_prefix=/foo"
925: # and all the variables that are supposed to be based on exec_prefix
926: # by default will actually change.
927: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1.1.2 ! root 928: # (The list follows the same order as the GNU Coding Standards.)
1.1 root 929: bindir='${exec_prefix}/bin'
930: sbindir='${exec_prefix}/sbin'
931: libexecdir='${exec_prefix}/libexec'
1.1.1.2 ! root 932: datarootdir='${prefix}/share'
! 933: datadir='${datarootdir}'
1.1 root 934: sysconfdir='${prefix}/etc'
935: sharedstatedir='${prefix}/com'
936: localstatedir='${prefix}/var'
937: includedir='${prefix}/include'
938: oldincludedir='/usr/include'
1.1.1.2 ! root 939: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
! 940: infodir='${datarootdir}/info'
! 941: htmldir='${docdir}'
! 942: dvidir='${docdir}'
! 943: pdfdir='${docdir}'
! 944: psdir='${docdir}'
! 945: libdir='${exec_prefix}/lib'
! 946: localedir='${datarootdir}/locale'
! 947: mandir='${datarootdir}/man'
1.1 root 948:
949: ac_prev=
1.1.1.2 ! root 950: ac_dashdash=
1.1 root 951: for ac_option
952: do
953: # If the previous option needs an argument, assign it.
954: if test -n "$ac_prev"; then
1.1.1.2 ! root 955: eval $ac_prev=\$ac_option
1.1 root 956: ac_prev=
957: continue
958: fi
959:
1.1.1.2 ! root 960: case $ac_option in
! 961: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 962: *) ac_optarg=yes ;;
! 963: esac
1.1 root 964:
965: # Accept the important Cygnus configure options, so we can diagnose typos.
966:
1.1.1.2 ! root 967: case $ac_dashdash$ac_option in
! 968: --)
! 969: ac_dashdash=yes ;;
1.1 root 970:
971: -bindir | --bindir | --bindi | --bind | --bin | --bi)
972: ac_prev=bindir ;;
973: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974: bindir=$ac_optarg ;;
975:
976: -build | --build | --buil | --bui | --bu)
977: ac_prev=build_alias ;;
978: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979: build_alias=$ac_optarg ;;
980:
981: -cache-file | --cache-file | --cache-fil | --cache-fi \
982: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983: ac_prev=cache_file ;;
984: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986: cache_file=$ac_optarg ;;
987:
988: --config-cache | -C)
989: cache_file=config.cache ;;
990:
1.1.1.2 ! root 991: -datadir | --datadir | --datadi | --datad)
1.1 root 992: ac_prev=datadir ;;
1.1.1.2 ! root 993: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 root 994: datadir=$ac_optarg ;;
995:
1.1.1.2 ! root 996: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 997: | --dataroo | --dataro | --datar)
! 998: ac_prev=datarootdir ;;
! 999: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 1000: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 1001: datarootdir=$ac_optarg ;;
! 1002:
1.1 root 1003: -disable-* | --disable-*)
1004: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005: # Reject names that are not valid shell variable names.
1.1.1.2 ! root 1006: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1007: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008: { (exit 1); exit 1; }; }
1.1.1.2 ! root 1009: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1010: eval enable_$ac_feature=no ;;
! 1011:
! 1012: -docdir | --docdir | --docdi | --doc | --do)
! 1013: ac_prev=docdir ;;
! 1014: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 1015: docdir=$ac_optarg ;;
! 1016:
! 1017: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 1018: ac_prev=dvidir ;;
! 1019: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 1020: dvidir=$ac_optarg ;;
1.1 root 1021:
1022: -enable-* | --enable-*)
1023: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024: # Reject names that are not valid shell variable names.
1.1.1.2 ! root 1025: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1026: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027: { (exit 1); exit 1; }; }
1.1.1.2 ! root 1028: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
! 1029: eval enable_$ac_feature=\$ac_optarg ;;
1.1 root 1030:
1031: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033: | --exec | --exe | --ex)
1034: ac_prev=exec_prefix ;;
1035: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037: | --exec=* | --exe=* | --ex=*)
1038: exec_prefix=$ac_optarg ;;
1039:
1040: -gas | --gas | --ga | --g)
1041: # Obsolete; use --with-gas.
1042: with_gas=yes ;;
1043:
1044: -help | --help | --hel | --he | -h)
1045: ac_init_help=long ;;
1046: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047: ac_init_help=recursive ;;
1048: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049: ac_init_help=short ;;
1050:
1051: -host | --host | --hos | --ho)
1052: ac_prev=host_alias ;;
1053: -host=* | --host=* | --hos=* | --ho=*)
1054: host_alias=$ac_optarg ;;
1055:
1.1.1.2 ! root 1056: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 1057: ac_prev=htmldir ;;
! 1058: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 1059: | --ht=*)
! 1060: htmldir=$ac_optarg ;;
! 1061:
1.1 root 1062: -includedir | --includedir | --includedi | --included | --include \
1063: | --includ | --inclu | --incl | --inc)
1064: ac_prev=includedir ;;
1065: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066: | --includ=* | --inclu=* | --incl=* | --inc=*)
1067: includedir=$ac_optarg ;;
1068:
1069: -infodir | --infodir | --infodi | --infod | --info | --inf)
1070: ac_prev=infodir ;;
1071: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072: infodir=$ac_optarg ;;
1073:
1074: -libdir | --libdir | --libdi | --libd)
1075: ac_prev=libdir ;;
1076: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077: libdir=$ac_optarg ;;
1078:
1079: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080: | --libexe | --libex | --libe)
1081: ac_prev=libexecdir ;;
1082: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083: | --libexe=* | --libex=* | --libe=*)
1084: libexecdir=$ac_optarg ;;
1085:
1.1.1.2 ! root 1086: -localedir | --localedir | --localedi | --localed | --locale)
! 1087: ac_prev=localedir ;;
! 1088: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 1089: localedir=$ac_optarg ;;
! 1090:
1.1 root 1091: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.1.1.2 ! root 1092: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 root 1093: ac_prev=localstatedir ;;
1094: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.1.1.2 ! root 1095: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 root 1096: localstatedir=$ac_optarg ;;
1097:
1098: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099: ac_prev=mandir ;;
1100: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101: mandir=$ac_optarg ;;
1102:
1103: -nfp | --nfp | --nf)
1104: # Obsolete; use --without-fp.
1105: with_fp=no ;;
1106:
1107: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108: | --no-cr | --no-c | -n)
1109: no_create=yes ;;
1110:
1111: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113: no_recursion=yes ;;
1114:
1115: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117: | --oldin | --oldi | --old | --ol | --o)
1118: ac_prev=oldincludedir ;;
1119: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122: oldincludedir=$ac_optarg ;;
1123:
1124: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125: ac_prev=prefix ;;
1126: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127: prefix=$ac_optarg ;;
1128:
1129: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130: | --program-pre | --program-pr | --program-p)
1131: ac_prev=program_prefix ;;
1132: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134: program_prefix=$ac_optarg ;;
1135:
1136: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137: | --program-suf | --program-su | --program-s)
1138: ac_prev=program_suffix ;;
1139: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141: program_suffix=$ac_optarg ;;
1142:
1143: -program-transform-name | --program-transform-name \
1144: | --program-transform-nam | --program-transform-na \
1145: | --program-transform-n | --program-transform- \
1146: | --program-transform | --program-transfor \
1147: | --program-transfo | --program-transf \
1148: | --program-trans | --program-tran \
1149: | --progr-tra | --program-tr | --program-t)
1150: ac_prev=program_transform_name ;;
1151: -program-transform-name=* | --program-transform-name=* \
1152: | --program-transform-nam=* | --program-transform-na=* \
1153: | --program-transform-n=* | --program-transform-=* \
1154: | --program-transform=* | --program-transfor=* \
1155: | --program-transfo=* | --program-transf=* \
1156: | --program-trans=* | --program-tran=* \
1157: | --progr-tra=* | --program-tr=* | --program-t=*)
1158: program_transform_name=$ac_optarg ;;
1159:
1.1.1.2 ! root 1160: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 1161: ac_prev=pdfdir ;;
! 1162: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 1163: pdfdir=$ac_optarg ;;
! 1164:
! 1165: -psdir | --psdir | --psdi | --psd | --ps)
! 1166: ac_prev=psdir ;;
! 1167: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 1168: psdir=$ac_optarg ;;
! 1169:
1.1 root 1170: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171: | -silent | --silent | --silen | --sile | --sil)
1172: silent=yes ;;
1173:
1174: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175: ac_prev=sbindir ;;
1176: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177: | --sbi=* | --sb=*)
1178: sbindir=$ac_optarg ;;
1179:
1180: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182: | --sharedst | --shareds | --shared | --share | --shar \
1183: | --sha | --sh)
1184: ac_prev=sharedstatedir ;;
1185: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188: | --sha=* | --sh=*)
1189: sharedstatedir=$ac_optarg ;;
1190:
1191: -site | --site | --sit)
1192: ac_prev=site ;;
1193: -site=* | --site=* | --sit=*)
1194: site=$ac_optarg ;;
1195:
1196: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197: ac_prev=srcdir ;;
1198: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199: srcdir=$ac_optarg ;;
1200:
1201: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202: | --syscon | --sysco | --sysc | --sys | --sy)
1203: ac_prev=sysconfdir ;;
1204: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206: sysconfdir=$ac_optarg ;;
1207:
1208: -target | --target | --targe | --targ | --tar | --ta | --t)
1209: ac_prev=target_alias ;;
1210: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211: target_alias=$ac_optarg ;;
1212:
1213: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214: verbose=yes ;;
1215:
1216: -version | --version | --versio | --versi | --vers | -V)
1217: ac_init_version=: ;;
1218:
1219: -with-* | --with-*)
1220: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221: # Reject names that are not valid shell variable names.
1.1.1.2 ! root 1222: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1223: { echo "$as_me: error: invalid package name: $ac_package" >&2
1224: { (exit 1); exit 1; }; }
1.1.1.2 ! root 1225: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1226: eval with_$ac_package=\$ac_optarg ;;
1.1 root 1227:
1228: -without-* | --without-*)
1229: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230: # Reject names that are not valid shell variable names.
1.1.1.2 ! root 1231: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1 root 1232: { echo "$as_me: error: invalid package name: $ac_package" >&2
1233: { (exit 1); exit 1; }; }
1.1.1.2 ! root 1234: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
! 1235: eval with_$ac_package=no ;;
1.1 root 1236:
1237: --x)
1238: # Obsolete; use --with-x.
1239: with_x=yes ;;
1240:
1241: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242: | --x-incl | --x-inc | --x-in | --x-i)
1243: ac_prev=x_includes ;;
1244: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246: x_includes=$ac_optarg ;;
1247:
1248: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250: ac_prev=x_libraries ;;
1251: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253: x_libraries=$ac_optarg ;;
1254:
1255: -*) { echo "$as_me: error: unrecognized option: $ac_option
1256: Try \`$0 --help' for more information." >&2
1257: { (exit 1); exit 1; }; }
1258: ;;
1259:
1260: *=*)
1261: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262: # Reject names that are not valid shell variable names.
1263: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265: { (exit 1); exit 1; }; }
1.1.1.2 ! root 1266: eval $ac_envvar=\$ac_optarg
1.1 root 1267: export $ac_envvar ;;
1268:
1269: *)
1270: # FIXME: should be removed in autoconf 3.0.
1271: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275: ;;
1276:
1277: esac
1278: done
1279:
1280: if test -n "$ac_prev"; then
1281: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282: { echo "$as_me: error: missing argument to $ac_option" >&2
1283: { (exit 1); exit 1; }; }
1284: fi
1285:
1.1.1.2 ! root 1286: # Be sure to have absolute directory names.
! 1287: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1288: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1289: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1290: libdir localedir mandir
1.1 root 1291: do
1.1.1.2 ! root 1292: eval ac_val=\$$ac_var
1.1 root 1293: case $ac_val in
1.1.1.2 ! root 1294: [\\/$]* | ?:[\\/]* ) continue;;
! 1295: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 root 1296: esac
1.1.1.2 ! root 1297: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
! 1298: { (exit 1); exit 1; }; }
1.1 root 1299: done
1300:
1301: # There might be people who depend on the old broken behavior: `$host'
1302: # used to hold the argument of --host etc.
1303: # FIXME: To remove some day.
1304: build=$build_alias
1305: host=$host_alias
1306: target=$target_alias
1307:
1308: # FIXME: To remove some day.
1309: if test "x$host_alias" != x; then
1310: if test "x$build_alias" = x; then
1311: cross_compiling=maybe
1312: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313: If a cross compiler is detected then cross compile mode will be used." >&2
1314: elif test "x$build_alias" != "x$host_alias"; then
1315: cross_compiling=yes
1316: fi
1317: fi
1318:
1319: ac_tool_prefix=
1320: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321:
1322: test "$silent" = yes && exec 6>/dev/null
1323:
1324:
1.1.1.2 ! root 1325: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1326: ac_ls_di=`ls -di .` &&
! 1327: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1328: { echo "$as_me: error: Working directory cannot be determined" >&2
! 1329: { (exit 1); exit 1; }; }
! 1330: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1331: { echo "$as_me: error: pwd does not report name of working directory" >&2
! 1332: { (exit 1); exit 1; }; }
! 1333:
! 1334:
! 1335: # Find the source files, if location was not specified.
! 1336: if test -z "$srcdir"; then
! 1337: ac_srcdir_defaulted=yes
! 1338: # Try the directory containing this script, then the parent directory.
! 1339: ac_confdir=`$as_dirname -- "$0" ||
1.1 root 1340: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 1341: X"$0" : 'X\(//\)[^/]' \| \
! 1342: X"$0" : 'X\(//\)$' \| \
! 1343: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 1344: echo X"$0" |
1.1.1.2 ! root 1345: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1346: s//\1/
! 1347: q
! 1348: }
! 1349: /^X\(\/\/\)[^/].*/{
! 1350: s//\1/
! 1351: q
! 1352: }
! 1353: /^X\(\/\/\)$/{
! 1354: s//\1/
! 1355: q
! 1356: }
! 1357: /^X\(\/\).*/{
! 1358: s//\1/
! 1359: q
! 1360: }
! 1361: s/.*/./; q'`
1.1 root 1362: srcdir=$ac_confdir
1.1.1.2 ! root 1363: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 root 1364: srcdir=..
1365: fi
1366: else
1367: ac_srcdir_defaulted=no
1368: fi
1.1.1.2 ! root 1369: if test ! -r "$srcdir/$ac_unique_file"; then
! 1370: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1371: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.1 root 1372: { (exit 1); exit 1; }; }
1373: fi
1.1.1.2 ! root 1374: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1375: ac_abs_confdir=`(
! 1376: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1.1 root 1377: { (exit 1); exit 1; }; }
1.1.1.2 ! root 1378: pwd)`
! 1379: # When building in place, set srcdir=.
! 1380: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1381: srcdir=.
! 1382: fi
! 1383: # Remove unnecessary trailing slashes from srcdir.
! 1384: # Double slashes in file names in object file debugging info
! 1385: # mess up M-x gdb in Emacs.
! 1386: case $srcdir in
! 1387: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1388: esac
! 1389: for ac_var in $ac_precious_vars; do
! 1390: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1391: eval ac_env_${ac_var}_value=\$${ac_var}
! 1392: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1393: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1394: done
1.1 root 1395:
1396: #
1397: # Report the --help message.
1398: #
1399: if test "$ac_init_help" = "long"; then
1400: # Omit some internal or obsolete options to make the list less imposing.
1401: # This message is too long to be a string in the A/UX 3.1 sh.
1402: cat <<_ACEOF
1403: \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1404:
1405: Usage: $0 [OPTION]... [VAR=VALUE]...
1406:
1407: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408: VAR=VALUE. See below for descriptions of some of the useful variables.
1409:
1410: Defaults for the options are specified in brackets.
1411:
1412: Configuration:
1413: -h, --help display this help and exit
1414: --help=short display options specific to this package
1415: --help=recursive display the short help of all the included packages
1416: -V, --version display version information and exit
1417: -q, --quiet, --silent do not print \`checking...' messages
1418: --cache-file=FILE cache test results in FILE [disabled]
1419: -C, --config-cache alias for \`--cache-file=config.cache'
1420: -n, --no-create do not create output files
1421: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422:
1423: Installation directories:
1424: --prefix=PREFIX install architecture-independent files in PREFIX
1.1.1.2 ! root 1425: [$ac_default_prefix]
1.1 root 1426: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.1.1.2 ! root 1427: [PREFIX]
1.1 root 1428:
1429: By default, \`make install' will install all the files in
1430: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432: for instance \`--prefix=\$HOME'.
1433:
1434: For better control, use the options below.
1435:
1436: Fine tuning of the installation directories:
1437: --bindir=DIR user executables [EPREFIX/bin]
1438: --sbindir=DIR system admin executables [EPREFIX/sbin]
1439: --libexecdir=DIR program executables [EPREFIX/libexec]
1440: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443: --libdir=DIR object code libraries [EPREFIX/lib]
1444: --includedir=DIR C header files [PREFIX/include]
1445: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1.1.2 ! root 1446: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1447: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1448: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1449: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1450: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1451: --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
! 1452: --htmldir=DIR html documentation [DOCDIR]
! 1453: --dvidir=DIR dvi documentation [DOCDIR]
! 1454: --pdfdir=DIR pdf documentation [DOCDIR]
! 1455: --psdir=DIR ps documentation [DOCDIR]
1.1 root 1456: _ACEOF
1457:
1458: cat <<\_ACEOF
1459:
1460: Program names:
1461: --program-prefix=PREFIX prepend PREFIX to installed program names
1462: --program-suffix=SUFFIX append SUFFIX to installed program names
1463: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464:
1465: System types:
1466: --build=BUILD configure for building on BUILD [guessed]
1467: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468: _ACEOF
1469: fi
1470:
1471: if test -n "$ac_init_help"; then
1472: case $ac_init_help in
1473: short | recursive ) echo "Configuration of libltdl 1.2:";;
1474: esac
1475: cat <<\_ACEOF
1476:
1477: Optional Features:
1478: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.2 ! root 1480: --disable-dependency-tracking speeds up one-time build
! 1481: --enable-dependency-tracking do not reject slow dependency extractors
! 1482: --enable-shared[=PKGS] build shared libraries [default=yes]
! 1483: --enable-static[=PKGS] build static libraries [default=yes]
1.1 root 1484: --enable-fast-install[=PKGS]
1485: optimize for fast installation [default=yes]
1486: --disable-libtool-lock avoid locking (might break parallel builds)
1487: --enable-ltdl-install install libltdl
1488:
1489: Optional Packages:
1490: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493: --with-pic try to use only PIC/non-PIC objects [default=use
1494: both]
1.1.1.2 ! root 1495: --with-tags[=TAGS] include additional configurations [automatic]
1.1 root 1496:
1497: Some influential environment variables:
1498: CC C compiler command
1499: CFLAGS C compiler flags
1500: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501: nonstandard directory <lib dir>
1.1.1.2 ! root 1502: LIBS libraries to pass to the linker, e.g. -l<library>
! 1503: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
! 1504: you have headers in a nonstandard directory <include dir>
1.1 root 1505: CPP C preprocessor
1506: CXX C++ compiler command
1507: CXXFLAGS C++ compiler flags
1508: CXXCPP C++ preprocessor
1509: F77 Fortran 77 compiler command
1510: FFLAGS Fortran 77 compiler flags
1511:
1512: Use these variables to override the choices made by `configure' or to help
1513: it to find libraries and programs with nonstandard names/locations.
1514:
1515: Report bugs to <[email protected]>.
1516: _ACEOF
1.1.1.2 ! root 1517: ac_status=$?
1.1 root 1518: fi
1519:
1520: if test "$ac_init_help" = "recursive"; then
1521: # If there are subdirs, report their specific --help.
1522: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1.1.2 ! root 1523: test -d "$ac_dir" || continue
1.1 root 1524: ac_builddir=.
1525:
1.1.1.2 ! root 1526: case "$ac_dir" in
! 1527: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1528: *)
1.1 root 1529: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.2 ! root 1530: # A ".." for each directory in $ac_dir_suffix.
! 1531: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 1532: case $ac_top_builddir_sub in
! 1533: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1534: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1535: esac ;;
! 1536: esac
! 1537: ac_abs_top_builddir=$ac_pwd
! 1538: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1539: # for backward compatibility:
! 1540: ac_top_builddir=$ac_top_build_prefix
1.1 root 1541:
1542: case $srcdir in
1.1.1.2 ! root 1543: .) # We are building in place.
1.1 root 1544: ac_srcdir=.
1.1.1.2 ! root 1545: ac_top_srcdir=$ac_top_builddir_sub
! 1546: ac_abs_top_srcdir=$ac_pwd ;;
! 1547: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 1548: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.2 ! root 1549: ac_top_srcdir=$srcdir
! 1550: ac_abs_top_srcdir=$srcdir ;;
! 1551: *) # Relative name.
! 1552: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1553: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1554: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 1555: esac
! 1556: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
! 1557:
! 1558: cd "$ac_dir" || { ac_status=$?; continue; }
! 1559: # Check for guested configure.
! 1560: if test -f "$ac_srcdir/configure.gnu"; then
! 1561: echo &&
! 1562: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1563: elif test -f "$ac_srcdir/configure"; then
! 1564: echo &&
! 1565: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 root 1566: else
1567: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1.1.2 ! root 1568: fi || ac_status=$?
! 1569: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 root 1570: done
1571: fi
1572:
1.1.1.2 ! root 1573: test -n "$ac_init_help" && exit $ac_status
1.1 root 1574: if $ac_init_version; then
1575: cat <<\_ACEOF
1576: libltdl configure 1.2
1.1.1.2 ! root 1577: generated by GNU Autoconf 2.61
1.1 root 1578:
1.1.1.2 ! root 1579: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 1580: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 root 1581: This configure script is free software; the Free Software Foundation
1582: gives unlimited permission to copy, distribute and modify it.
1583: _ACEOF
1.1.1.2 ! root 1584: exit
1.1 root 1585: fi
1.1.1.2 ! root 1586: cat >config.log <<_ACEOF
1.1 root 1587: This file contains any messages produced by compilers while
1588: running configure, to aid debugging if configure makes a mistake.
1589:
1590: It was created by libltdl $as_me 1.2, which was
1.1.1.2 ! root 1591: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 1592:
1593: $ $0 $@
1594:
1595: _ACEOF
1.1.1.2 ! root 1596: exec 5>>config.log
1.1 root 1597: {
1598: cat <<_ASUNAME
1599: ## --------- ##
1600: ## Platform. ##
1601: ## --------- ##
1602:
1603: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608:
1609: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611:
1612: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1.1.2 ! root 1615: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 root 1616: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619:
1620: _ASUNAME
1621:
1622: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623: for as_dir in $PATH
1624: do
1625: IFS=$as_save_IFS
1626: test -z "$as_dir" && as_dir=.
1627: echo "PATH: $as_dir"
1628: done
1.1.1.2 ! root 1629: IFS=$as_save_IFS
1.1 root 1630:
1631: } >&5
1632:
1633: cat >&5 <<_ACEOF
1634:
1635:
1636: ## ----------- ##
1637: ## Core tests. ##
1638: ## ----------- ##
1639:
1640: _ACEOF
1641:
1642:
1643: # Keep a trace of the command line.
1644: # Strip out --no-create and --no-recursion so they do not pile up.
1645: # Strip out --silent because we don't want to record it for future runs.
1646: # Also quote any args containing shell meta-characters.
1647: # Make two passes to allow for proper duplicate-argument suppression.
1648: ac_configure_args=
1649: ac_configure_args0=
1650: ac_configure_args1=
1651: ac_must_keep_next=false
1652: for ac_pass in 1 2
1653: do
1654: for ac_arg
1655: do
1656: case $ac_arg in
1657: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659: | -silent | --silent | --silen | --sile | --sil)
1660: continue ;;
1.1.1.2 ! root 1661: *\'*)
1.1 root 1662: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663: esac
1664: case $ac_pass in
1665: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666: 2)
1667: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668: if test $ac_must_keep_next = true; then
1.1.1.2 ! root 1669: ac_must_keep_next=false # Got value, back to normal.
1.1 root 1670: else
1.1.1.2 ! root 1671: case $ac_arg in
! 1672: *=* | --config-cache | -C | -disable-* | --disable-* \
! 1673: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
! 1674: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
! 1675: | -with-* | --with-* | -without-* | --without-* | --x)
! 1676: case "$ac_configure_args0 " in
! 1677: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
! 1678: esac
! 1679: ;;
! 1680: -* ) ac_must_keep_next=true ;;
! 1681: esac
1.1 root 1682: fi
1.1.1.2 ! root 1683: ac_configure_args="$ac_configure_args '$ac_arg'"
1.1 root 1684: ;;
1685: esac
1686: done
1687: done
1688: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690:
1691: # When interrupted or exit'd, cleanup temporary files, and complete
1692: # config.log. We remove comments because anyway the quotes in there
1693: # would cause problems or look ugly.
1.1.1.2 ! root 1694: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 1695: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 root 1696: trap 'exit_status=$?
1697: # Save into config.log some information that might help in debugging.
1698: {
1699: echo
1700:
1701: cat <<\_ASBOX
1702: ## ---------------- ##
1703: ## Cache variables. ##
1704: ## ---------------- ##
1705: _ASBOX
1706: echo
1707: # The following way of writing the cache mishandles newlines in values,
1.1.1.2 ! root 1708: (
! 1709: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 1710: eval ac_val=\$$ac_var
! 1711: case $ac_val in #(
! 1712: *${as_nl}*)
! 1713: case $ac_var in #(
! 1714: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 1715: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 1716: esac
! 1717: case $ac_var in #(
! 1718: _ | IFS | as_nl) ;; #(
! 1719: *) $as_unset $ac_var ;;
! 1720: esac ;;
! 1721: esac
! 1722: done
1.1 root 1723: (set) 2>&1 |
1.1.1.2 ! root 1724: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 1725: *${as_nl}ac_space=\ *)
1.1 root 1726: sed -n \
1.1.1.2 ! root 1727: "s/'\''/'\''\\\\'\'''\''/g;
! 1728: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 1729: ;; #(
1.1 root 1730: *)
1.1.1.2 ! root 1731: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 1732: ;;
1.1.1.2 ! root 1733: esac |
! 1734: sort
! 1735: )
1.1 root 1736: echo
1737:
1738: cat <<\_ASBOX
1739: ## ----------------- ##
1740: ## Output variables. ##
1741: ## ----------------- ##
1742: _ASBOX
1743: echo
1744: for ac_var in $ac_subst_vars
1745: do
1.1.1.2 ! root 1746: eval ac_val=\$$ac_var
! 1747: case $ac_val in
! 1748: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1749: esac
! 1750: echo "$ac_var='\''$ac_val'\''"
1.1 root 1751: done | sort
1752: echo
1753:
1754: if test -n "$ac_subst_files"; then
1755: cat <<\_ASBOX
1.1.1.2 ! root 1756: ## ------------------- ##
! 1757: ## File substitutions. ##
! 1758: ## ------------------- ##
1.1 root 1759: _ASBOX
1760: echo
1761: for ac_var in $ac_subst_files
1762: do
1.1.1.2 ! root 1763: eval ac_val=\$$ac_var
! 1764: case $ac_val in
! 1765: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 1766: esac
! 1767: echo "$ac_var='\''$ac_val'\''"
1.1 root 1768: done | sort
1769: echo
1770: fi
1771:
1772: if test -s confdefs.h; then
1773: cat <<\_ASBOX
1774: ## ----------- ##
1775: ## confdefs.h. ##
1776: ## ----------- ##
1777: _ASBOX
1778: echo
1.1.1.2 ! root 1779: cat confdefs.h
1.1 root 1780: echo
1781: fi
1782: test "$ac_signal" != 0 &&
1783: echo "$as_me: caught signal $ac_signal"
1784: echo "$as_me: exit $exit_status"
1785: } >&5
1.1.1.2 ! root 1786: rm -f core *.core core.conftest.* &&
! 1787: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 root 1788: exit $exit_status
1.1.1.2 ! root 1789: ' 0
1.1 root 1790: for ac_signal in 1 2 13 15; do
1791: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792: done
1793: ac_signal=0
1794:
1795: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1.1.2 ! root 1796: rm -f -r conftest* confdefs.h
1.1 root 1797:
1798: # Predefined preprocessor variables.
1799:
1800: cat >>confdefs.h <<_ACEOF
1801: #define PACKAGE_NAME "$PACKAGE_NAME"
1802: _ACEOF
1803:
1804:
1805: cat >>confdefs.h <<_ACEOF
1806: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807: _ACEOF
1808:
1809:
1810: cat >>confdefs.h <<_ACEOF
1811: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812: _ACEOF
1813:
1814:
1815: cat >>confdefs.h <<_ACEOF
1816: #define PACKAGE_STRING "$PACKAGE_STRING"
1817: _ACEOF
1818:
1819:
1820: cat >>confdefs.h <<_ACEOF
1821: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822: _ACEOF
1823:
1824:
1825: # Let the site file select an alternate cache file if it wants to.
1826: # Prefer explicitly selected file to automatically selected ones.
1.1.1.2 ! root 1827: if test -n "$CONFIG_SITE"; then
! 1828: set x "$CONFIG_SITE"
! 1829: elif test "x$prefix" != xNONE; then
! 1830: set x "$prefix/share/config.site" "$prefix/etc/config.site"
! 1831: else
! 1832: set x "$ac_default_prefix/share/config.site" \
! 1833: "$ac_default_prefix/etc/config.site"
1.1 root 1834: fi
1.1.1.2 ! root 1835: shift
! 1836: for ac_site_file
! 1837: do
1.1 root 1838: if test -r "$ac_site_file"; then
1839: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840: echo "$as_me: loading site script $ac_site_file" >&6;}
1841: sed 's/^/| /' "$ac_site_file" >&5
1842: . "$ac_site_file"
1843: fi
1844: done
1845:
1846: if test -r "$cache_file"; then
1847: # Some versions of bash will fail to source /dev/null (special
1848: # files actually), so we avoid doing that.
1849: if test -f "$cache_file"; then
1850: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851: echo "$as_me: loading cache $cache_file" >&6;}
1852: case $cache_file in
1.1.1.2 ! root 1853: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 1854: *) . "./$cache_file";;
1.1 root 1855: esac
1856: fi
1857: else
1858: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859: echo "$as_me: creating cache $cache_file" >&6;}
1860: >$cache_file
1861: fi
1862:
1863: # Check that the precious variables saved in the cache have kept the same
1864: # value.
1865: ac_cache_corrupted=false
1.1.1.2 ! root 1866: for ac_var in $ac_precious_vars; do
1.1 root 1867: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868: eval ac_new_set=\$ac_env_${ac_var}_set
1.1.1.2 ! root 1869: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 1870: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 root 1871: case $ac_old_set,$ac_new_set in
1872: set,)
1873: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875: ac_cache_corrupted=: ;;
1876: ,set)
1877: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879: ac_cache_corrupted=: ;;
1880: ,);;
1881: *)
1882: if test "x$ac_old_val" != "x$ac_new_val"; then
1.1.1.2 ! root 1883: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1 root 1884: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1.1.2 ! root 1885: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.1 root 1886: echo "$as_me: former value: $ac_old_val" >&2;}
1.1.1.2 ! root 1887: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.1 root 1888: echo "$as_me: current value: $ac_new_val" >&2;}
1.1.1.2 ! root 1889: ac_cache_corrupted=:
1.1 root 1890: fi;;
1891: esac
1892: # Pass precious variables to config.status.
1893: if test "$ac_new_set" = set; then
1894: case $ac_new_val in
1.1.1.2 ! root 1895: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 1896: *) ac_arg=$ac_var=$ac_new_val ;;
1897: esac
1898: case " $ac_configure_args " in
1899: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901: esac
1902: fi
1903: done
1904: if $ac_cache_corrupted; then
1905: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909: { (exit 1); exit 1; }; }
1910: fi
1911:
1912:
1913:
1914:
1915:
1916:
1917:
1918:
1919:
1920:
1921:
1922:
1923:
1924:
1925:
1926:
1927:
1928:
1929:
1930:
1931:
1932:
1933:
1934:
1935:
1.1.1.2 ! root 1936: ac_ext=c
! 1937: ac_cpp='$CPP $CPPFLAGS'
! 1938: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 1939: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 1940: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 1941:
1942:
1943:
1944:
1945:
1946: ## ------------------------------- ##
1947: ## Libltdl specific configuration. ##
1948: ## ------------------------------- ##
1949:
1950: ac_aux_dir=
1.1.1.2 ! root 1951: for ac_dir in . "$srcdir"/.; do
! 1952: if test -f "$ac_dir/install-sh"; then
1.1 root 1953: ac_aux_dir=$ac_dir
1954: ac_install_sh="$ac_aux_dir/install-sh -c"
1955: break
1.1.1.2 ! root 1956: elif test -f "$ac_dir/install.sh"; then
1.1 root 1957: ac_aux_dir=$ac_dir
1958: ac_install_sh="$ac_aux_dir/install.sh -c"
1959: break
1.1.1.2 ! root 1960: elif test -f "$ac_dir/shtool"; then
1.1 root 1961: ac_aux_dir=$ac_dir
1962: ac_install_sh="$ac_aux_dir/shtool install -c"
1963: break
1964: fi
1965: done
1966: if test -z "$ac_aux_dir"; then
1.1.1.2 ! root 1967: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
! 1968: echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1.1 root 1969: { (exit 1); exit 1; }; }
1970: fi
1.1.1.2 ! root 1971:
! 1972: # These three variables are undocumented and unsupported,
! 1973: # and are intended to be withdrawn in a future Autoconf release.
! 1974: # They can cause serious problems if a builder's source tree is in a directory
! 1975: # whose full name contains unusual characters.
! 1976: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 1977: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 1978: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 1979:
1.1 root 1980:
1981:
1982: if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1983: if test -f ${srcdir}/ltmain.sh; then
1984: # if libltdl is libtoolized, it is assumed to be stand-alone and
1985: # installed unless the command line overrides it (tested above)
1986: enable_ltdl_install=yes
1987: else
1988: { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1989: echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1990: { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1991: echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1992: { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1993: echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1994: { (exit 1); exit 1; }; }
1995: fi
1996: fi
1997:
1998:
1999: ## ------------------------ ##
2000: ## Automake Initialisation. ##
2001: ## ------------------------ ##
1.1.1.2 ! root 2002: am__api_version='1.10'
! 2003:
1.1 root 2004: # Find a good install program. We prefer a C program (faster),
2005: # so one script is as good as another. But avoid the broken or
2006: # incompatible versions:
2007: # SysV /etc/install, /usr/sbin/install
2008: # SunOS /usr/etc/install
2009: # IRIX /sbin/install
2010: # AIX /bin/install
2011: # AmigaOS /C/install, which installs bootblocks on floppy discs
2012: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1.1.2 ! root 2015: # OS/2's system install, which has a completely different semantic
1.1 root 2016: # ./install, which can be erroneously created by make from ./install.sh.
1.1.1.2 ! root 2017: { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 2018: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1.1 root 2019: if test -z "$INSTALL"; then
2020: if test "${ac_cv_path_install+set}" = set; then
2021: echo $ECHO_N "(cached) $ECHO_C" >&6
2022: else
2023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024: for as_dir in $PATH
2025: do
2026: IFS=$as_save_IFS
2027: test -z "$as_dir" && as_dir=.
2028: # Account for people who put trailing slashes in PATH elements.
2029: case $as_dir/ in
2030: ./ | .// | /cC/* | \
2031: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1.1.2 ! root 2032: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1 root 2033: /usr/ucb/* ) ;;
2034: *)
2035: # OSF1 and SCO ODT 3.0 have their own names for install.
2036: # Don't use installbsd from OSF since it installs stuff as root
2037: # by default.
2038: for ac_prog in ginstall scoinst install; do
2039: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2040: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
! 2041: if test $ac_prog = install &&
! 2042: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 2043: # AIX install. It has an incompatible calling convention.
! 2044: :
! 2045: elif test $ac_prog = install &&
! 2046: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 2047: # program-specific install script used by HP pwplus--don't use.
! 2048: :
! 2049: else
! 2050: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 2051: break 3
! 2052: fi
! 2053: fi
1.1 root 2054: done
2055: done
2056: ;;
2057: esac
2058: done
1.1.1.2 ! root 2059: IFS=$as_save_IFS
1.1 root 2060:
2061:
2062: fi
2063: if test "${ac_cv_path_install+set}" = set; then
2064: INSTALL=$ac_cv_path_install
2065: else
1.1.1.2 ! root 2066: # As a last resort, use the slow shell script. Don't cache a
! 2067: # value for INSTALL within a source directory, because that will
1.1 root 2068: # break other packages using the cache if that directory is
1.1.1.2 ! root 2069: # removed, or if the value is a relative name.
1.1 root 2070: INSTALL=$ac_install_sh
2071: fi
2072: fi
1.1.1.2 ! root 2073: { echo "$as_me:$LINENO: result: $INSTALL" >&5
! 2074: echo "${ECHO_T}$INSTALL" >&6; }
1.1 root 2075:
2076: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077: # It thinks the first close brace ends the variable substitution.
2078: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079:
2080: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081:
2082: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083:
1.1.1.2 ! root 2084: { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
! 2085: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1.1 root 2086: # Just in case
2087: sleep 1
2088: echo timestamp > conftest.file
2089: # Do `set' in a subshell so we don't clobber the current shell's
2090: # arguments. Must try -L first in case configure is actually a
2091: # symlink; some systems play weird games with the mod time of symlinks
2092: # (eg FreeBSD returns the mod time of the symlink's containing
2093: # directory).
2094: if (
2095: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096: if test "$*" = "X"; then
2097: # -L didn't work.
2098: set X `ls -t $srcdir/configure conftest.file`
2099: fi
2100: rm -f conftest.file
2101: if test "$*" != "X $srcdir/configure conftest.file" \
2102: && test "$*" != "X conftest.file $srcdir/configure"; then
2103:
2104: # If neither matched, then we have a broken ls. This can happen
2105: # if, for instance, CONFIG_SHELL is bash and it inherits a
2106: # broken ls alias from the environment. This has actually
2107: # happened. Such a system could not be considered "sane".
2108: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109: alias in your environment" >&5
2110: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111: alias in your environment" >&2;}
2112: { (exit 1); exit 1; }; }
2113: fi
2114:
2115: test "$2" = conftest.file
2116: )
2117: then
2118: # Ok.
2119: :
2120: else
2121: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122: Check your system clock" >&5
2123: echo "$as_me: error: newly created file is older than distributed files!
2124: Check your system clock" >&2;}
2125: { (exit 1); exit 1; }; }
2126: fi
1.1.1.2 ! root 2127: { echo "$as_me:$LINENO: result: yes" >&5
! 2128: echo "${ECHO_T}yes" >&6; }
1.1 root 2129: test "$program_prefix" != NONE &&
1.1.1.2 ! root 2130: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 root 2131: # Use a double $ so make ignores it.
2132: test "$program_suffix" != NONE &&
1.1.1.2 ! root 2133: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.1 root 2134: # Double any \ or $. echo might interpret backslashes.
2135: # By default was `s,x,x', remove it if useless.
2136: cat <<\_ACEOF >conftest.sed
2137: s/[\\$]/&&/g;s/;s,x,x,$//
2138: _ACEOF
2139: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1.1.1.2 ! root 2140: rm -f conftest.sed
1.1 root 2141:
2142: # expand $ac_aux_dir to an absolute path
2143: am_aux_dir=`cd $ac_aux_dir && pwd`
2144:
2145: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146: # Use eval to expand $SHELL
2147: if eval "$MISSING --run true"; then
2148: am_missing_run="$MISSING --run "
2149: else
2150: am_missing_run=
2151: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2153: fi
2154:
1.1.1.2 ! root 2155: { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
! 2156: echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
! 2157: if test -z "$MKDIR_P"; then
! 2158: if test "${ac_cv_path_mkdir+set}" = set; then
! 2159: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2160: else
! 2161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2162: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
! 2163: do
! 2164: IFS=$as_save_IFS
! 2165: test -z "$as_dir" && as_dir=.
! 2166: for ac_prog in mkdir gmkdir; do
! 2167: for ac_exec_ext in '' $ac_executable_extensions; do
! 2168: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
! 2169: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 2170: 'mkdir (GNU coreutils) '* | \
! 2171: 'mkdir (coreutils) '* | \
! 2172: 'mkdir (fileutils) '4.1*)
! 2173: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
! 2174: break 3;;
! 2175: esac
! 2176: done
! 2177: done
! 2178: done
! 2179: IFS=$as_save_IFS
! 2180:
! 2181: fi
! 2182:
! 2183: if test "${ac_cv_path_mkdir+set}" = set; then
! 2184: MKDIR_P="$ac_cv_path_mkdir -p"
! 2185: else
! 2186: # As a last resort, use the slow shell script. Don't cache a
! 2187: # value for MKDIR_P within a source directory, because that will
! 2188: # break other packages using the cache if that directory is
! 2189: # removed, or if the value is a relative name.
! 2190: test -d ./--version && rmdir ./--version
! 2191: MKDIR_P="$ac_install_sh -d"
! 2192: fi
! 2193: fi
! 2194: { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
! 2195: echo "${ECHO_T}$MKDIR_P" >&6; }
! 2196:
! 2197: mkdir_p="$MKDIR_P"
! 2198: case $mkdir_p in
! 2199: [\\/$]* | ?:[\\/]*) ;;
! 2200: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
! 2201: esac
! 2202:
1.1 root 2203: for ac_prog in gawk mawk nawk awk
2204: do
2205: # Extract the first word of "$ac_prog", so it can be a program name with args.
2206: set dummy $ac_prog; ac_word=$2
1.1.1.2 ! root 2207: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2208: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2209: if test "${ac_cv_prog_AWK+set}" = set; then
2210: echo $ECHO_N "(cached) $ECHO_C" >&6
2211: else
2212: if test -n "$AWK"; then
2213: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214: else
2215: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216: for as_dir in $PATH
2217: do
2218: IFS=$as_save_IFS
2219: test -z "$as_dir" && as_dir=.
2220: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2221: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2222: ac_cv_prog_AWK="$ac_prog"
2223: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224: break 2
2225: fi
2226: done
2227: done
1.1.1.2 ! root 2228: IFS=$as_save_IFS
1.1 root 2229:
2230: fi
2231: fi
2232: AWK=$ac_cv_prog_AWK
2233: if test -n "$AWK"; then
1.1.1.2 ! root 2234: { echo "$as_me:$LINENO: result: $AWK" >&5
! 2235: echo "${ECHO_T}$AWK" >&6; }
1.1 root 2236: else
1.1.1.2 ! root 2237: { echo "$as_me:$LINENO: result: no" >&5
! 2238: echo "${ECHO_T}no" >&6; }
1.1 root 2239: fi
2240:
1.1.1.2 ! root 2241:
1.1 root 2242: test -n "$AWK" && break
2243: done
2244:
1.1.1.2 ! root 2245: { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 2246: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
! 2247: set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 2248: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 2249: echo $ECHO_N "(cached) $ECHO_C" >&6
2250: else
2251: cat >conftest.make <<\_ACEOF
1.1.1.2 ! root 2252: SHELL = /bin/sh
1.1 root 2253: all:
1.1.1.2 ! root 2254: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1 root 2255: _ACEOF
2256: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1.1.2 ! root 2257: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 2258: *@@@%%%=?*=@@@%%%*)
! 2259: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 2260: *)
! 2261: eval ac_cv_prog_make_${ac_make}_set=no;;
! 2262: esac
1.1 root 2263: rm -f conftest.make
2264: fi
1.1.1.2 ! root 2265: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 2266: { echo "$as_me:$LINENO: result: yes" >&5
! 2267: echo "${ECHO_T}yes" >&6; }
1.1 root 2268: SET_MAKE=
2269: else
1.1.1.2 ! root 2270: { echo "$as_me:$LINENO: result: no" >&5
! 2271: echo "${ECHO_T}no" >&6; }
1.1 root 2272: SET_MAKE="MAKE=${MAKE-make}"
2273: fi
2274:
2275: rm -rf .tst 2>/dev/null
2276: mkdir .tst 2>/dev/null
2277: if test -d .tst; then
2278: am__leading_dot=.
2279: else
2280: am__leading_dot=_
2281: fi
2282: rmdir .tst 2>/dev/null
2283:
1.1.1.2 ! root 2284: if test "`cd $srcdir && pwd`" != "`pwd`"; then
! 2285: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
! 2286: # is not polluted with repeated "-I."
! 2287: am__isrc=' -I$(srcdir)'
! 2288: # test to see if srcdir already configured
! 2289: if test -f $srcdir/config.status; then
! 2290: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1.1 root 2291: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292: { (exit 1); exit 1; }; }
1.1.1.2 ! root 2293: fi
1.1 root 2294: fi
2295:
2296: # test whether we have cygpath
2297: if test -z "$CYGPATH_W"; then
2298: if (cygpath --version) >/dev/null 2>/dev/null; then
2299: CYGPATH_W='cygpath -w'
2300: else
2301: CYGPATH_W=echo
2302: fi
2303: fi
2304:
2305:
2306: # Define the identity of the package.
2307: PACKAGE=libltdl
2308: VERSION=1.2
2309:
2310:
2311: # Some tools Automake needs.
2312:
2313: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2314:
2315:
2316: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2317:
2318:
2319: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2320:
2321:
2322: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2323:
2324:
2325: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2326:
1.1.1.2 ! root 2327: install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1.1 root 2328:
2329: # Installed binaries are usually stripped using `strip' when the user
2330: # run `make install-strip'. However `strip' might not be the right
2331: # tool to use in cross-compilation environments, therefore Automake
2332: # will honor the `STRIP' environment variable to overrule this program.
2333: if test "$cross_compiling" != no; then
2334: if test -n "$ac_tool_prefix"; then
2335: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.2 ! root 2337: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2338: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2339: if test "${ac_cv_prog_STRIP+set}" = set; then
2340: echo $ECHO_N "(cached) $ECHO_C" >&6
2341: else
2342: if test -n "$STRIP"; then
2343: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344: else
2345: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346: for as_dir in $PATH
2347: do
2348: IFS=$as_save_IFS
2349: test -z "$as_dir" && as_dir=.
2350: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2351: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2352: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354: break 2
2355: fi
2356: done
2357: done
1.1.1.2 ! root 2358: IFS=$as_save_IFS
1.1 root 2359:
2360: fi
2361: fi
2362: STRIP=$ac_cv_prog_STRIP
2363: if test -n "$STRIP"; then
1.1.1.2 ! root 2364: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 2365: echo "${ECHO_T}$STRIP" >&6; }
1.1 root 2366: else
1.1.1.2 ! root 2367: { echo "$as_me:$LINENO: result: no" >&5
! 2368: echo "${ECHO_T}no" >&6; }
1.1 root 2369: fi
2370:
1.1.1.2 ! root 2371:
1.1 root 2372: fi
2373: if test -z "$ac_cv_prog_STRIP"; then
2374: ac_ct_STRIP=$STRIP
2375: # Extract the first word of "strip", so it can be a program name with args.
2376: set dummy strip; ac_word=$2
1.1.1.2 ! root 2377: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2378: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2379: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380: echo $ECHO_N "(cached) $ECHO_C" >&6
2381: else
2382: if test -n "$ac_ct_STRIP"; then
2383: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384: else
2385: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386: for as_dir in $PATH
2387: do
2388: IFS=$as_save_IFS
2389: test -z "$as_dir" && as_dir=.
2390: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2391: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2392: ac_cv_prog_ac_ct_STRIP="strip"
2393: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394: break 2
2395: fi
2396: done
2397: done
1.1.1.2 ! root 2398: IFS=$as_save_IFS
1.1 root 2399:
2400: fi
2401: fi
2402: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403: if test -n "$ac_ct_STRIP"; then
1.1.1.2 ! root 2404: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 2405: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1.1 root 2406: else
1.1.1.2 ! root 2407: { echo "$as_me:$LINENO: result: no" >&5
! 2408: echo "${ECHO_T}no" >&6; }
1.1 root 2409: fi
2410:
1.1.1.2 ! root 2411: if test "x$ac_ct_STRIP" = x; then
! 2412: STRIP=":"
! 2413: else
! 2414: case $cross_compiling:$ac_tool_warned in
! 2415: yes:)
! 2416: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2417: whose name does not start with the host triplet. If you think this
! 2418: configuration is useful to you, please write to [email protected]." >&5
! 2419: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2420: whose name does not start with the host triplet. If you think this
! 2421: configuration is useful to you, please write to [email protected]." >&2;}
! 2422: ac_tool_warned=yes ;;
! 2423: esac
! 2424: STRIP=$ac_ct_STRIP
! 2425: fi
1.1 root 2426: else
2427: STRIP="$ac_cv_prog_STRIP"
2428: fi
2429:
2430: fi
1.1.1.2 ! root 2431: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 root 2432:
2433: # We need awk for the "check" target. The system "awk" is bad on
2434: # some platforms.
1.1.1.2 ! root 2435: # Always define AMTAR for backward compatibility.
! 2436:
! 2437: AMTAR=${AMTAR-"${am_missing_run}tar"}
! 2438:
! 2439: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1.1 root 2440:
2441:
2442:
1.1.1.2 ! root 2443:
! 2444:
! 2445: ac_config_headers="$ac_config_headers config.h:config-h.in"
1.1 root 2446:
2447:
2448:
2449: ## ------------------ ##
2450: ## C compiler checks. ##
2451: ## ------------------ ##
2452: ac_ext=c
2453: ac_cpp='$CPP $CPPFLAGS'
2454: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457: if test -n "$ac_tool_prefix"; then
2458: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.2 ! root 2460: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2461: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2462: if test "${ac_cv_prog_CC+set}" = set; then
2463: echo $ECHO_N "(cached) $ECHO_C" >&6
2464: else
2465: if test -n "$CC"; then
2466: ac_cv_prog_CC="$CC" # Let the user override the test.
2467: else
2468: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469: for as_dir in $PATH
2470: do
2471: IFS=$as_save_IFS
2472: test -z "$as_dir" && as_dir=.
2473: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2474: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2475: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2476: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477: break 2
2478: fi
2479: done
2480: done
1.1.1.2 ! root 2481: IFS=$as_save_IFS
1.1 root 2482:
2483: fi
2484: fi
2485: CC=$ac_cv_prog_CC
2486: if test -n "$CC"; then
1.1.1.2 ! root 2487: { echo "$as_me:$LINENO: result: $CC" >&5
! 2488: echo "${ECHO_T}$CC" >&6; }
1.1 root 2489: else
1.1.1.2 ! root 2490: { echo "$as_me:$LINENO: result: no" >&5
! 2491: echo "${ECHO_T}no" >&6; }
1.1 root 2492: fi
2493:
1.1.1.2 ! root 2494:
1.1 root 2495: fi
2496: if test -z "$ac_cv_prog_CC"; then
2497: ac_ct_CC=$CC
2498: # Extract the first word of "gcc", so it can be a program name with args.
2499: set dummy gcc; ac_word=$2
1.1.1.2 ! root 2500: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2501: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2502: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2503: echo $ECHO_N "(cached) $ECHO_C" >&6
2504: else
2505: if test -n "$ac_ct_CC"; then
2506: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507: else
2508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509: for as_dir in $PATH
2510: do
2511: IFS=$as_save_IFS
2512: test -z "$as_dir" && as_dir=.
2513: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2514: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2515: ac_cv_prog_ac_ct_CC="gcc"
2516: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517: break 2
2518: fi
2519: done
2520: done
1.1.1.2 ! root 2521: IFS=$as_save_IFS
1.1 root 2522:
2523: fi
2524: fi
2525: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526: if test -n "$ac_ct_CC"; then
1.1.1.2 ! root 2527: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2528: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 2529: else
1.1.1.2 ! root 2530: { echo "$as_me:$LINENO: result: no" >&5
! 2531: echo "${ECHO_T}no" >&6; }
1.1 root 2532: fi
2533:
1.1.1.2 ! root 2534: if test "x$ac_ct_CC" = x; then
! 2535: CC=""
! 2536: else
! 2537: case $cross_compiling:$ac_tool_warned in
! 2538: yes:)
! 2539: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2540: whose name does not start with the host triplet. If you think this
! 2541: configuration is useful to you, please write to [email protected]." >&5
! 2542: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2543: whose name does not start with the host triplet. If you think this
! 2544: configuration is useful to you, please write to [email protected]." >&2;}
! 2545: ac_tool_warned=yes ;;
! 2546: esac
! 2547: CC=$ac_ct_CC
! 2548: fi
1.1 root 2549: else
2550: CC="$ac_cv_prog_CC"
2551: fi
2552:
2553: if test -z "$CC"; then
1.1.1.2 ! root 2554: if test -n "$ac_tool_prefix"; then
! 2555: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 root 2556: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.2 ! root 2557: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2558: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2559: if test "${ac_cv_prog_CC+set}" = set; then
2560: echo $ECHO_N "(cached) $ECHO_C" >&6
2561: else
2562: if test -n "$CC"; then
2563: ac_cv_prog_CC="$CC" # Let the user override the test.
2564: else
2565: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566: for as_dir in $PATH
2567: do
2568: IFS=$as_save_IFS
2569: test -z "$as_dir" && as_dir=.
2570: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2571: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2572: ac_cv_prog_CC="${ac_tool_prefix}cc"
2573: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574: break 2
2575: fi
2576: done
2577: done
1.1.1.2 ! root 2578: IFS=$as_save_IFS
1.1 root 2579:
2580: fi
2581: fi
2582: CC=$ac_cv_prog_CC
2583: if test -n "$CC"; then
1.1.1.2 ! root 2584: { echo "$as_me:$LINENO: result: $CC" >&5
! 2585: echo "${ECHO_T}$CC" >&6; }
1.1 root 2586: else
1.1.1.2 ! root 2587: { echo "$as_me:$LINENO: result: no" >&5
! 2588: echo "${ECHO_T}no" >&6; }
1.1 root 2589: fi
2590:
2591:
1.1.1.2 ! root 2592: fi
1.1 root 2593: fi
2594: if test -z "$CC"; then
2595: # Extract the first word of "cc", so it can be a program name with args.
2596: set dummy cc; ac_word=$2
1.1.1.2 ! root 2597: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2598: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2599: if test "${ac_cv_prog_CC+set}" = set; then
2600: echo $ECHO_N "(cached) $ECHO_C" >&6
2601: else
2602: if test -n "$CC"; then
2603: ac_cv_prog_CC="$CC" # Let the user override the test.
2604: else
2605: ac_prog_rejected=no
2606: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607: for as_dir in $PATH
2608: do
2609: IFS=$as_save_IFS
2610: test -z "$as_dir" && as_dir=.
2611: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2612: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2613: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614: ac_prog_rejected=yes
2615: continue
2616: fi
2617: ac_cv_prog_CC="cc"
2618: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619: break 2
2620: fi
2621: done
2622: done
1.1.1.2 ! root 2623: IFS=$as_save_IFS
1.1 root 2624:
2625: if test $ac_prog_rejected = yes; then
2626: # We found a bogon in the path, so make sure we never use it.
2627: set dummy $ac_cv_prog_CC
2628: shift
2629: if test $# != 0; then
2630: # We chose a different compiler from the bogus one.
2631: # However, it has the same basename, so the bogon will be chosen
2632: # first if we set CC to just the basename; use the full file name.
2633: shift
2634: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635: fi
2636: fi
2637: fi
2638: fi
2639: CC=$ac_cv_prog_CC
2640: if test -n "$CC"; then
1.1.1.2 ! root 2641: { echo "$as_me:$LINENO: result: $CC" >&5
! 2642: echo "${ECHO_T}$CC" >&6; }
1.1 root 2643: else
1.1.1.2 ! root 2644: { echo "$as_me:$LINENO: result: no" >&5
! 2645: echo "${ECHO_T}no" >&6; }
1.1 root 2646: fi
2647:
1.1.1.2 ! root 2648:
1.1 root 2649: fi
2650: if test -z "$CC"; then
2651: if test -n "$ac_tool_prefix"; then
1.1.1.2 ! root 2652: for ac_prog in cl.exe
1.1 root 2653: do
2654: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 ! root 2656: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2657: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2658: if test "${ac_cv_prog_CC+set}" = set; then
2659: echo $ECHO_N "(cached) $ECHO_C" >&6
2660: else
2661: if test -n "$CC"; then
2662: ac_cv_prog_CC="$CC" # Let the user override the test.
2663: else
2664: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665: for as_dir in $PATH
2666: do
2667: IFS=$as_save_IFS
2668: test -z "$as_dir" && as_dir=.
2669: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2670: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2671: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673: break 2
2674: fi
2675: done
2676: done
1.1.1.2 ! root 2677: IFS=$as_save_IFS
1.1 root 2678:
2679: fi
2680: fi
2681: CC=$ac_cv_prog_CC
2682: if test -n "$CC"; then
1.1.1.2 ! root 2683: { echo "$as_me:$LINENO: result: $CC" >&5
! 2684: echo "${ECHO_T}$CC" >&6; }
1.1 root 2685: else
1.1.1.2 ! root 2686: { echo "$as_me:$LINENO: result: no" >&5
! 2687: echo "${ECHO_T}no" >&6; }
1.1 root 2688: fi
2689:
1.1.1.2 ! root 2690:
1.1 root 2691: test -n "$CC" && break
2692: done
2693: fi
2694: if test -z "$CC"; then
2695: ac_ct_CC=$CC
1.1.1.2 ! root 2696: for ac_prog in cl.exe
1.1 root 2697: do
2698: # Extract the first word of "$ac_prog", so it can be a program name with args.
2699: set dummy $ac_prog; ac_word=$2
1.1.1.2 ! root 2700: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 2701: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 2702: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703: echo $ECHO_N "(cached) $ECHO_C" >&6
2704: else
2705: if test -n "$ac_ct_CC"; then
2706: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707: else
2708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709: for as_dir in $PATH
2710: do
2711: IFS=$as_save_IFS
2712: test -z "$as_dir" && as_dir=.
2713: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 2714: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 2715: ac_cv_prog_ac_ct_CC="$ac_prog"
2716: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717: break 2
2718: fi
2719: done
2720: done
1.1.1.2 ! root 2721: IFS=$as_save_IFS
1.1 root 2722:
2723: fi
2724: fi
2725: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726: if test -n "$ac_ct_CC"; then
1.1.1.2 ! root 2727: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
! 2728: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 root 2729: else
1.1.1.2 ! root 2730: { echo "$as_me:$LINENO: result: no" >&5
! 2731: echo "${ECHO_T}no" >&6; }
1.1 root 2732: fi
2733:
1.1.1.2 ! root 2734:
1.1 root 2735: test -n "$ac_ct_CC" && break
2736: done
2737:
1.1.1.2 ! root 2738: if test "x$ac_ct_CC" = x; then
! 2739: CC=""
! 2740: else
! 2741: case $cross_compiling:$ac_tool_warned in
! 2742: yes:)
! 2743: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 2744: whose name does not start with the host triplet. If you think this
! 2745: configuration is useful to you, please write to [email protected]." >&5
! 2746: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 2747: whose name does not start with the host triplet. If you think this
! 2748: configuration is useful to you, please write to [email protected]." >&2;}
! 2749: ac_tool_warned=yes ;;
! 2750: esac
! 2751: CC=$ac_ct_CC
! 2752: fi
1.1 root 2753: fi
2754:
2755: fi
2756:
2757:
2758: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2759: See \`config.log' for more details." >&5
2760: echo "$as_me: error: no acceptable C compiler found in \$PATH
2761: See \`config.log' for more details." >&2;}
2762: { (exit 1); exit 1; }; }
2763:
2764: # Provide some information about the compiler.
1.1.1.2 ! root 2765: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.1 root 2766: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.2 ! root 2767: { (ac_try="$ac_compiler --version >&5"
! 2768: case "(($ac_try" in
! 2769: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2770: *) ac_try_echo=$ac_try;;
! 2771: esac
! 2772: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2773: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 2774: ac_status=$?
2775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776: (exit $ac_status); }
1.1.1.2 ! root 2777: { (ac_try="$ac_compiler -v >&5"
! 2778: case "(($ac_try" in
! 2779: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2780: *) ac_try_echo=$ac_try;;
! 2781: esac
! 2782: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2783: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 2784: ac_status=$?
2785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786: (exit $ac_status); }
1.1.1.2 ! root 2787: { (ac_try="$ac_compiler -V >&5"
! 2788: case "(($ac_try" in
! 2789: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2790: *) ac_try_echo=$ac_try;;
! 2791: esac
! 2792: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2793: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 2794: ac_status=$?
2795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796: (exit $ac_status); }
2797:
2798: cat >conftest.$ac_ext <<_ACEOF
2799: /* confdefs.h. */
2800: _ACEOF
2801: cat confdefs.h >>conftest.$ac_ext
2802: cat >>conftest.$ac_ext <<_ACEOF
2803: /* end confdefs.h. */
2804:
2805: int
2806: main ()
2807: {
2808:
2809: ;
2810: return 0;
2811: }
2812: _ACEOF
2813: ac_clean_files_save=$ac_clean_files
2814: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2815: # Try to create an executable without -o first, disregard a.out.
2816: # It will help us diagnose broken compilers, and finding out an intuition
2817: # of exeext.
1.1.1.2 ! root 2818: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 2819: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.1 root 2820: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1.1.2 ! root 2821: #
! 2822: # List of possible output files, starting from the most likely.
! 2823: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
! 2824: # only as a last resort. b.out is created by i960 compilers.
! 2825: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
! 2826: #
! 2827: # The IRIX 6 linker writes into existing files which may not be
! 2828: # executable, retaining their permissions. Remove them first so a
! 2829: # subsequent execution test works.
! 2830: ac_rmfiles=
! 2831: for ac_file in $ac_files
! 2832: do
! 2833: case $ac_file in
! 2834: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
! 2835: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 2836: esac
! 2837: done
! 2838: rm -f $ac_rmfiles
! 2839:
! 2840: if { (ac_try="$ac_link_default"
! 2841: case "(($ac_try" in
! 2842: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2843: *) ac_try_echo=$ac_try;;
! 2844: esac
! 2845: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2846: (eval "$ac_link_default") 2>&5
1.1 root 2847: ac_status=$?
2848: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849: (exit $ac_status); }; then
1.1.1.2 ! root 2850: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 2851: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 2852: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 2853: # so that the user can short-circuit this test for compilers unknown to
! 2854: # Autoconf.
! 2855: for ac_file in $ac_files ''
1.1 root 2856: do
2857: test -f "$ac_file" || continue
2858: case $ac_file in
1.1.1.2 ! root 2859: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
! 2860: ;;
1.1 root 2861: [ab].out )
1.1.1.2 ! root 2862: # We found the default executable, but exeext='' is most
! 2863: # certainly right.
! 2864: break;;
1.1 root 2865: *.* )
1.1.1.2 ! root 2866: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 2867: then :; else
! 2868: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 2869: fi
! 2870: # We set ac_cv_exeext here because the later test for it is not
! 2871: # safe: cross compilers may not add the suffix if given an `-o'
! 2872: # argument, so we may need to know it at that point already.
! 2873: # Even if this section looks crufty: it has the advantage of
! 2874: # actually working.
! 2875: break;;
1.1 root 2876: * )
1.1.1.2 ! root 2877: break;;
1.1 root 2878: esac
2879: done
1.1.1.2 ! root 2880: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 2881:
1.1 root 2882: else
1.1.1.2 ! root 2883: ac_file=''
! 2884: fi
! 2885:
! 2886: { echo "$as_me:$LINENO: result: $ac_file" >&5
! 2887: echo "${ECHO_T}$ac_file" >&6; }
! 2888: if test -z "$ac_file"; then
1.1 root 2889: echo "$as_me: failed program was:" >&5
2890: sed 's/^/| /' conftest.$ac_ext >&5
2891:
2892: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2893: See \`config.log' for more details." >&5
2894: echo "$as_me: error: C compiler cannot create executables
2895: See \`config.log' for more details." >&2;}
2896: { (exit 77); exit 77; }; }
2897: fi
2898:
2899: ac_exeext=$ac_cv_exeext
2900:
1.1.1.2 ! root 2901: # Check that the compiler produces executables we can run. If not, either
1.1 root 2902: # the compiler is broken, or we cross compile.
1.1.1.2 ! root 2903: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
! 2904: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.1 root 2905: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2906: # If not cross compiling, check that we can run a simple program.
2907: if test "$cross_compiling" != yes; then
2908: if { ac_try='./$ac_file'
1.1.1.2 ! root 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_try") 2>&5
1.1 root 2915: ac_status=$?
2916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917: (exit $ac_status); }; }; then
2918: cross_compiling=no
2919: else
2920: if test "$cross_compiling" = maybe; then
2921: cross_compiling=yes
2922: else
2923: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2924: If you meant to cross compile, use \`--host'.
2925: See \`config.log' for more details." >&5
2926: echo "$as_me: error: cannot run C compiled programs.
2927: If you meant to cross compile, use \`--host'.
2928: See \`config.log' for more details." >&2;}
2929: { (exit 1); exit 1; }; }
2930: fi
2931: fi
2932: fi
1.1.1.2 ! root 2933: { echo "$as_me:$LINENO: result: yes" >&5
! 2934: echo "${ECHO_T}yes" >&6; }
1.1 root 2935:
2936: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2937: ac_clean_files=$ac_clean_files_save
1.1.1.2 ! root 2938: # Check that the compiler produces executables we can run. If not, either
1.1 root 2939: # the compiler is broken, or we cross compile.
1.1.1.2 ! root 2940: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
! 2941: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
! 2942: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
! 2943: echo "${ECHO_T}$cross_compiling" >&6; }
! 2944:
! 2945: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
! 2946: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
! 2947: if { (ac_try="$ac_link"
! 2948: case "(($ac_try" in
! 2949: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2950: *) ac_try_echo=$ac_try;;
! 2951: esac
! 2952: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 2953: (eval "$ac_link") 2>&5
1.1 root 2954: ac_status=$?
2955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956: (exit $ac_status); }; then
2957: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2958: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2959: # work properly (i.e., refer to `conftest.exe'), while it won't with
2960: # `rm'.
2961: for ac_file in conftest.exe conftest conftest.*; do
2962: test -f "$ac_file" || continue
2963: case $ac_file in
1.1.1.2 ! root 2964: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.1 root 2965: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.1.1.2 ! root 2966: break;;
1.1 root 2967: * ) break;;
2968: esac
2969: done
2970: else
2971: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2972: See \`config.log' for more details." >&5
2973: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2974: See \`config.log' for more details." >&2;}
2975: { (exit 1); exit 1; }; }
2976: fi
2977:
2978: rm -f conftest$ac_cv_exeext
1.1.1.2 ! root 2979: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
! 2980: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 root 2981:
2982: rm -f conftest.$ac_ext
2983: EXEEXT=$ac_cv_exeext
2984: ac_exeext=$EXEEXT
1.1.1.2 ! root 2985: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
! 2986: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.1 root 2987: if test "${ac_cv_objext+set}" = set; then
2988: echo $ECHO_N "(cached) $ECHO_C" >&6
2989: else
2990: cat >conftest.$ac_ext <<_ACEOF
2991: /* confdefs.h. */
2992: _ACEOF
2993: cat confdefs.h >>conftest.$ac_ext
2994: cat >>conftest.$ac_ext <<_ACEOF
2995: /* end confdefs.h. */
2996:
2997: int
2998: main ()
2999: {
3000:
3001: ;
3002: return 0;
3003: }
3004: _ACEOF
3005: rm -f conftest.o conftest.obj
1.1.1.2 ! root 3006: if { (ac_try="$ac_compile"
! 3007: case "(($ac_try" in
! 3008: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3009: *) ac_try_echo=$ac_try;;
! 3010: esac
! 3011: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3012: (eval "$ac_compile") 2>&5
1.1 root 3013: ac_status=$?
3014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015: (exit $ac_status); }; then
1.1.1.2 ! root 3016: for ac_file in conftest.o conftest.obj conftest.*; do
! 3017: test -f "$ac_file" || continue;
1.1 root 3018: case $ac_file in
1.1.1.2 ! root 3019: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.1 root 3020: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021: break;;
3022: esac
3023: done
3024: else
3025: echo "$as_me: failed program was:" >&5
3026: sed 's/^/| /' conftest.$ac_ext >&5
3027:
3028: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3029: See \`config.log' for more details." >&5
3030: echo "$as_me: error: cannot compute suffix of object files: cannot compile
3031: See \`config.log' for more details." >&2;}
3032: { (exit 1); exit 1; }; }
3033: fi
3034:
3035: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036: fi
1.1.1.2 ! root 3037: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
! 3038: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.1 root 3039: OBJEXT=$ac_cv_objext
3040: ac_objext=$OBJEXT
1.1.1.2 ! root 3041: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
! 3042: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.1 root 3043: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3044: echo $ECHO_N "(cached) $ECHO_C" >&6
3045: else
3046: cat >conftest.$ac_ext <<_ACEOF
3047: /* confdefs.h. */
3048: _ACEOF
3049: cat confdefs.h >>conftest.$ac_ext
3050: cat >>conftest.$ac_ext <<_ACEOF
3051: /* end confdefs.h. */
3052:
3053: int
3054: main ()
3055: {
3056: #ifndef __GNUC__
3057: choke me
3058: #endif
3059:
3060: ;
3061: return 0;
3062: }
3063: _ACEOF
3064: rm -f conftest.$ac_objext
1.1.1.2 ! root 3065: if { (ac_try="$ac_compile"
! 3066: case "(($ac_try" in
! 3067: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3068: *) ac_try_echo=$ac_try;;
! 3069: esac
! 3070: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3071: (eval "$ac_compile") 2>conftest.er1
1.1 root 3072: ac_status=$?
1.1.1.2 ! root 3073: grep -v '^ *+' conftest.er1 >conftest.err
! 3074: rm -f conftest.er1
! 3075: cat conftest.err >&5
1.1 root 3076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 3077: (exit $ac_status); } && {
! 3078: test -z "$ac_c_werror_flag" ||
! 3079: test ! -s conftest.err
! 3080: } && test -s conftest.$ac_objext; then
1.1 root 3081: ac_compiler_gnu=yes
3082: else
3083: echo "$as_me: failed program was:" >&5
3084: sed 's/^/| /' conftest.$ac_ext >&5
3085:
1.1.1.2 ! root 3086: ac_compiler_gnu=no
1.1 root 3087: fi
1.1.1.2 ! root 3088:
! 3089: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 3090: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091:
3092: fi
1.1.1.2 ! root 3093: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
! 3094: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.1 root 3095: GCC=`test $ac_compiler_gnu = yes && echo yes`
3096: ac_test_CFLAGS=${CFLAGS+set}
3097: ac_save_CFLAGS=$CFLAGS
1.1.1.2 ! root 3098: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
! 3099: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.1 root 3100: if test "${ac_cv_prog_cc_g+set}" = set; then
3101: echo $ECHO_N "(cached) $ECHO_C" >&6
3102: else
1.1.1.2 ! root 3103: ac_save_c_werror_flag=$ac_c_werror_flag
! 3104: ac_c_werror_flag=yes
! 3105: ac_cv_prog_cc_g=no
! 3106: CFLAGS="-g"
! 3107: cat >conftest.$ac_ext <<_ACEOF
1.1 root 3108: /* confdefs.h. */
3109: _ACEOF
3110: cat confdefs.h >>conftest.$ac_ext
3111: cat >>conftest.$ac_ext <<_ACEOF
3112: /* end confdefs.h. */
3113:
3114: int
3115: main ()
3116: {
3117:
3118: ;
3119: return 0;
3120: }
3121: _ACEOF
3122: rm -f conftest.$ac_objext
1.1.1.2 ! root 3123: if { (ac_try="$ac_compile"
! 3124: case "(($ac_try" in
! 3125: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3126: *) ac_try_echo=$ac_try;;
! 3127: esac
! 3128: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3129: (eval "$ac_compile") 2>conftest.er1
! 3130: ac_status=$?
! 3131: grep -v '^ *+' conftest.er1 >conftest.err
! 3132: rm -f conftest.er1
! 3133: cat conftest.err >&5
! 3134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3135: (exit $ac_status); } && {
! 3136: test -z "$ac_c_werror_flag" ||
! 3137: test ! -s conftest.err
! 3138: } && test -s conftest.$ac_objext; then
! 3139: ac_cv_prog_cc_g=yes
! 3140: else
! 3141: echo "$as_me: failed program was:" >&5
! 3142: sed 's/^/| /' conftest.$ac_ext >&5
! 3143:
! 3144: CFLAGS=""
! 3145: cat >conftest.$ac_ext <<_ACEOF
! 3146: /* confdefs.h. */
! 3147: _ACEOF
! 3148: cat confdefs.h >>conftest.$ac_ext
! 3149: cat >>conftest.$ac_ext <<_ACEOF
! 3150: /* end confdefs.h. */
! 3151:
! 3152: int
! 3153: main ()
! 3154: {
! 3155:
! 3156: ;
! 3157: return 0;
! 3158: }
! 3159: _ACEOF
! 3160: rm -f conftest.$ac_objext
! 3161: if { (ac_try="$ac_compile"
! 3162: case "(($ac_try" in
! 3163: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3164: *) ac_try_echo=$ac_try;;
! 3165: esac
! 3166: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3167: (eval "$ac_compile") 2>conftest.er1
1.1 root 3168: ac_status=$?
1.1.1.2 ! root 3169: grep -v '^ *+' conftest.er1 >conftest.err
! 3170: rm -f conftest.er1
! 3171: cat conftest.err >&5
1.1 root 3172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 3173: (exit $ac_status); } && {
! 3174: test -z "$ac_c_werror_flag" ||
! 3175: test ! -s conftest.err
! 3176: } && test -s conftest.$ac_objext; then
! 3177: :
! 3178: else
! 3179: echo "$as_me: failed program was:" >&5
! 3180: sed 's/^/| /' conftest.$ac_ext >&5
! 3181:
! 3182: ac_c_werror_flag=$ac_save_c_werror_flag
! 3183: CFLAGS="-g"
! 3184: cat >conftest.$ac_ext <<_ACEOF
! 3185: /* confdefs.h. */
! 3186: _ACEOF
! 3187: cat confdefs.h >>conftest.$ac_ext
! 3188: cat >>conftest.$ac_ext <<_ACEOF
! 3189: /* end confdefs.h. */
! 3190:
! 3191: int
! 3192: main ()
! 3193: {
! 3194:
! 3195: ;
! 3196: return 0;
! 3197: }
! 3198: _ACEOF
! 3199: rm -f conftest.$ac_objext
! 3200: if { (ac_try="$ac_compile"
! 3201: case "(($ac_try" in
! 3202: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3203: *) ac_try_echo=$ac_try;;
! 3204: esac
! 3205: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3206: (eval "$ac_compile") 2>conftest.er1
1.1 root 3207: ac_status=$?
1.1.1.2 ! root 3208: grep -v '^ *+' conftest.er1 >conftest.err
! 3209: rm -f conftest.er1
! 3210: cat conftest.err >&5
1.1 root 3211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 3212: (exit $ac_status); } && {
! 3213: test -z "$ac_c_werror_flag" ||
! 3214: test ! -s conftest.err
! 3215: } && test -s conftest.$ac_objext; then
1.1 root 3216: ac_cv_prog_cc_g=yes
3217: else
3218: echo "$as_me: failed program was:" >&5
3219: sed 's/^/| /' conftest.$ac_ext >&5
3220:
1.1.1.2 ! root 3221:
! 3222: fi
! 3223:
! 3224: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3225: fi
! 3226:
! 3227: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 3228: fi
1.1.1.2 ! root 3229:
! 3230: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3231: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 root 3232: fi
1.1.1.2 ! root 3233: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
! 3234: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.1 root 3235: if test "$ac_test_CFLAGS" = set; then
3236: CFLAGS=$ac_save_CFLAGS
3237: elif test $ac_cv_prog_cc_g = yes; then
3238: if test "$GCC" = yes; then
3239: CFLAGS="-g -O2"
3240: else
3241: CFLAGS="-g"
3242: fi
3243: else
3244: if test "$GCC" = yes; then
3245: CFLAGS="-O2"
3246: else
3247: CFLAGS=
3248: fi
3249: fi
1.1.1.2 ! root 3250: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
! 3251: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
! 3252: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.1 root 3253: echo $ECHO_N "(cached) $ECHO_C" >&6
3254: else
1.1.1.2 ! root 3255: ac_cv_prog_cc_c89=no
1.1 root 3256: ac_save_CC=$CC
3257: cat >conftest.$ac_ext <<_ACEOF
3258: /* confdefs.h. */
3259: _ACEOF
3260: cat confdefs.h >>conftest.$ac_ext
3261: cat >>conftest.$ac_ext <<_ACEOF
3262: /* end confdefs.h. */
3263: #include <stdarg.h>
3264: #include <stdio.h>
3265: #include <sys/types.h>
3266: #include <sys/stat.h>
3267: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268: struct buf { int x; };
3269: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270: static char *e (p, i)
3271: char **p;
3272: int i;
3273: {
3274: return p[i];
3275: }
3276: static char *f (char * (*g) (char **, int), char **p, ...)
3277: {
3278: char *s;
3279: va_list v;
3280: va_start (v,p);
3281: s = g (p, va_arg (v,int));
3282: va_end (v);
3283: return s;
3284: }
1.1.1.2 ! root 3285:
! 3286: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 3287: function prototypes and stuff, but not '\xHH' hex character constants.
! 3288: These don't provoke an error unfortunately, instead are silently treated
! 3289: as 'x'. The following induces an error, until -std is added to get
! 3290: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
! 3291: array size at least. It's necessary to write '\x00'==0 to get something
! 3292: that's true only with -std. */
! 3293: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
! 3294:
! 3295: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 3296: inside strings and character constants. */
! 3297: #define FOO(x) 'x'
! 3298: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 3299:
1.1 root 3300: int test (int i, double x);
3301: struct s1 {int (*f) (int a);};
3302: struct s2 {int (*f) (double a);};
3303: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304: int argc;
3305: char **argv;
3306: int
3307: main ()
3308: {
3309: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310: ;
3311: return 0;
3312: }
3313: _ACEOF
1.1.1.2 ! root 3314: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 3315: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 root 3316: do
3317: CC="$ac_save_CC $ac_arg"
3318: rm -f conftest.$ac_objext
1.1.1.2 ! root 3319: if { (ac_try="$ac_compile"
! 3320: case "(($ac_try" in
! 3321: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3322: *) ac_try_echo=$ac_try;;
! 3323: esac
! 3324: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3325: (eval "$ac_compile") 2>conftest.er1
1.1 root 3326: ac_status=$?
1.1.1.2 ! root 3327: grep -v '^ *+' conftest.er1 >conftest.err
! 3328: rm -f conftest.er1
! 3329: cat conftest.err >&5
1.1 root 3330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 3331: (exit $ac_status); } && {
! 3332: test -z "$ac_c_werror_flag" ||
! 3333: test ! -s conftest.err
! 3334: } && test -s conftest.$ac_objext; then
! 3335: ac_cv_prog_cc_c89=$ac_arg
1.1 root 3336: else
3337: echo "$as_me: failed program was:" >&5
3338: sed 's/^/| /' conftest.$ac_ext >&5
3339:
1.1.1.2 ! root 3340:
1.1 root 3341: fi
1.1.1.2 ! root 3342:
! 3343: rm -f core conftest.err conftest.$ac_objext
! 3344: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1 root 3345: done
1.1.1.2 ! root 3346: rm -f conftest.$ac_ext
1.1 root 3347: CC=$ac_save_CC
3348:
3349: fi
1.1.1.2 ! root 3350: # AC_CACHE_VAL
! 3351: case "x$ac_cv_prog_cc_c89" in
! 3352: x)
! 3353: { echo "$as_me:$LINENO: result: none needed" >&5
! 3354: echo "${ECHO_T}none needed" >&6; } ;;
! 3355: xno)
! 3356: { echo "$as_me:$LINENO: result: unsupported" >&5
! 3357: echo "${ECHO_T}unsupported" >&6; } ;;
1.1 root 3358: *)
1.1.1.2 ! root 3359: CC="$CC $ac_cv_prog_cc_c89"
! 3360: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
! 3361: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.1 root 3362: esac
3363:
3364:
3365: ac_ext=c
3366: ac_cpp='$CPP $CPPFLAGS'
3367: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370: DEPDIR="${am__leading_dot}deps"
3371:
1.1.1.2 ! root 3372: ac_config_commands="$ac_config_commands depfiles"
1.1 root 3373:
3374:
3375: am_make=${MAKE-make}
3376: cat > confinc << 'END'
1.1.1.2 ! root 3377: am__doit:
1.1 root 3378: @echo done
1.1.1.2 ! root 3379: .PHONY: am__doit
1.1 root 3380: END
3381: # If we don't find an include directive, just comment out the code.
1.1.1.2 ! root 3382: { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
! 3383: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
1.1 root 3384: am__include="#"
3385: am__quote=
3386: _am_result=none
3387: # First try GNU make style include.
3388: echo "include confinc" > confmf
3389: # We grep out `Entering directory' and `Leaving directory'
3390: # messages which can occur if `w' ends up in MAKEFLAGS.
3391: # In particular we don't look at `^make:' because GNU make might
3392: # be invoked under some other name (usually "gmake"), in which
3393: # case it prints its new name instead of `make'.
3394: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3395: am__include=include
3396: am__quote=
3397: _am_result=GNU
3398: fi
3399: # Now try BSD make style include.
3400: if test "$am__include" = "#"; then
3401: echo '.include "confinc"' > confmf
3402: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3403: am__include=.include
3404: am__quote="\""
3405: _am_result=BSD
3406: fi
3407: fi
3408:
3409:
1.1.1.2 ! root 3410: { echo "$as_me:$LINENO: result: $_am_result" >&5
! 3411: echo "${ECHO_T}$_am_result" >&6; }
1.1 root 3412: rm -f confinc confmf
3413:
1.1.1.2 ! root 3414: # Check whether --enable-dependency-tracking was given.
1.1 root 3415: if test "${enable_dependency_tracking+set}" = set; then
1.1.1.2 ! root 3416: enableval=$enable_dependency_tracking;
! 3417: fi
1.1 root 3418:
3419: if test "x$enable_dependency_tracking" != xno; then
3420: am_depcomp="$ac_aux_dir/depcomp"
3421: AMDEPBACKSLASH='\'
3422: fi
1.1.1.2 ! root 3423: if test "x$enable_dependency_tracking" != xno; then
1.1 root 3424: AMDEP_TRUE=
3425: AMDEP_FALSE='#'
3426: else
3427: AMDEP_TRUE='#'
3428: AMDEP_FALSE=
3429: fi
3430:
3431:
3432:
3433: depcc="$CC" am_compiler_list=
3434:
1.1.1.2 ! root 3435: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 3436: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1 root 3437: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438: echo $ECHO_N "(cached) $ECHO_C" >&6
3439: else
3440: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441: # We make a subdir and do the tests there. Otherwise we can end up
3442: # making bogus files that we don't know about and never remove. For
3443: # instance it was reported that on HP-UX the gcc test will end up
3444: # making a dummy file named `D' -- because `-MD' means `put the output
3445: # in D'.
3446: mkdir conftest.dir
3447: # Copy depcomp to subdir because otherwise we won't find it if we're
3448: # using a relative directory.
3449: cp "$am_depcomp" conftest.dir
3450: cd conftest.dir
1.1.1.2 ! root 3451: # We will build objects and dependencies in a subdirectory because
! 3452: # it helps to detect inapplicable dependency modes. For instance
! 3453: # both Tru64's cc and ICC support -MD to output dependencies as a
! 3454: # side effect of compilation, but ICC will put the dependencies in
! 3455: # the current directory while Tru64 will put them in the object
! 3456: # directory.
! 3457: mkdir sub
1.1 root 3458:
3459: am_cv_CC_dependencies_compiler_type=none
3460: if test "$am_compiler_list" = ""; then
3461: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462: fi
3463: for depmode in $am_compiler_list; do
1.1.1.2 ! root 3464: # Setup a source with many dependencies, because some compilers
! 3465: # like to wrap large dependency lists on column 80 (with \), and
! 3466: # we should not choose a depcomp mode which is confused by this.
! 3467: #
1.1 root 3468: # We need to recreate these files for each test, as the compiler may
3469: # overwrite some of them when testing with obscure command lines.
3470: # This happens at least with the AIX C compiler.
1.1.1.2 ! root 3471: : > sub/conftest.c
! 3472: for i in 1 2 3 4 5 6; do
! 3473: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 3474: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 3475: # Solaris 8's {/usr,}/bin/sh.
! 3476: touch sub/conftst$i.h
! 3477: done
! 3478: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1 root 3479:
3480: case $depmode in
3481: nosideeffect)
3482: # after this tag, mechanisms are not by side-effect, so they'll
3483: # only be used when explicitly requested
3484: if test "x$enable_dependency_tracking" = xyes; then
3485: continue
3486: else
3487: break
3488: fi
3489: ;;
3490: none) break ;;
3491: esac
3492: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493: # mode. It turns out that the SunPro C++ compiler does not properly
3494: # handle `-M -o', and we need to detect this.
3495: if depmode=$depmode \
1.1.1.2 ! root 3496: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
! 3497: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 3498: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1 root 3499: >/dev/null 2>conftest.err &&
1.1.1.2 ! root 3500: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 3501: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 3502: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1 root 3503: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504: # icc doesn't choke on unknown options, it will just issue warnings
1.1.1.2 ! root 3505: # or remarks (even with -Werror). So we grep stderr for any message
! 3506: # that says an option was ignored or not supported.
! 3507: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 3508: # icc: Command line warning: ignoring option '-M'; no argument required
! 3509: # The diagnosis changed in icc 8.0:
! 3510: # icc: Command line remark: option '-MP' not supported
! 3511: if (grep 'ignoring option' conftest.err ||
! 3512: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1 root 3513: am_cv_CC_dependencies_compiler_type=$depmode
3514: break
3515: fi
3516: fi
3517: done
3518:
3519: cd ..
3520: rm -rf conftest.dir
3521: else
3522: am_cv_CC_dependencies_compiler_type=none
3523: fi
3524:
3525: fi
1.1.1.2 ! root 3526: { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3527: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 root 3528: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529:
1.1.1.2 ! root 3530: if
1.1 root 3531: test "x$enable_dependency_tracking" != xno \
3532: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533: am__fastdepCC_TRUE=
3534: am__fastdepCC_FALSE='#'
3535: else
3536: am__fastdepCC_TRUE='#'
3537: am__fastdepCC_FALSE=
3538: fi
3539:
3540:
3541:
1.1.1.2 ! root 3542: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 3543: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.1 root 3544: if test "${ac_cv_c_const+set}" = set; then
3545: echo $ECHO_N "(cached) $ECHO_C" >&6
3546: else
3547: cat >conftest.$ac_ext <<_ACEOF
3548: /* confdefs.h. */
3549: _ACEOF
3550: cat confdefs.h >>conftest.$ac_ext
3551: cat >>conftest.$ac_ext <<_ACEOF
3552: /* end confdefs.h. */
3553:
3554: int
3555: main ()
3556: {
3557: /* FIXME: Include the comments suggested by Paul. */
3558: #ifndef __cplusplus
3559: /* Ultrix mips cc rejects this. */
3560: typedef int charset[2];
1.1.1.2 ! root 3561: const charset cs;
1.1 root 3562: /* SunOS 4.1.1 cc rejects this. */
1.1.1.2 ! root 3563: char const *const *pcpcc;
! 3564: char **ppc;
1.1 root 3565: /* NEC SVR4.0.2 mips cc rejects this. */
3566: struct point {int x, y;};
3567: static struct point const zero = {0,0};
3568: /* AIX XL C 1.02.0.0 rejects this.
3569: It does not let you subtract one const X* pointer from another in
3570: an arm of an if-expression whose if-part is not a constant
3571: expression */
3572: const char *g = "string";
1.1.1.2 ! root 3573: pcpcc = &g + (g ? g-g : 0);
1.1 root 3574: /* HPUX 7.0 cc rejects these. */
1.1.1.2 ! root 3575: ++pcpcc;
! 3576: ppc = (char**) pcpcc;
! 3577: pcpcc = (char const *const *) ppc;
1.1 root 3578: { /* SCO 3.2v4 cc rejects this. */
3579: char *t;
3580: char const *s = 0 ? (char *) 0 : (char const *) 0;
3581:
3582: *t++ = 0;
1.1.1.2 ! root 3583: if (s) return 0;
1.1 root 3584: }
3585: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3586: int x[] = {25, 17};
3587: const int *foo = &x[0];
3588: ++foo;
3589: }
3590: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591: typedef const int *iptr;
3592: iptr p = 0;
3593: ++p;
3594: }
3595: { /* AIX XL C 1.02.0.0 rejects this saying
3596: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597: struct s { int j; const int *ap[3]; };
3598: struct s *b; b->j = 5;
3599: }
3600: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3601: const int foo = 10;
1.1.1.2 ! root 3602: if (!foo) return 0;
1.1 root 3603: }
1.1.1.2 ! root 3604: return !cs[0] && !zero.x;
1.1 root 3605: #endif
3606:
3607: ;
3608: return 0;
3609: }
3610: _ACEOF
3611: rm -f conftest.$ac_objext
1.1.1.2 ! root 3612: if { (ac_try="$ac_compile"
! 3613: case "(($ac_try" in
! 3614: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3615: *) ac_try_echo=$ac_try;;
! 3616: esac
! 3617: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3618: (eval "$ac_compile") 2>conftest.er1
1.1 root 3619: ac_status=$?
1.1.1.2 ! root 3620: grep -v '^ *+' conftest.er1 >conftest.err
! 3621: rm -f conftest.er1
! 3622: cat conftest.err >&5
1.1 root 3623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 3624: (exit $ac_status); } && {
! 3625: test -z "$ac_c_werror_flag" ||
! 3626: test ! -s conftest.err
! 3627: } && test -s conftest.$ac_objext; then
1.1 root 3628: ac_cv_c_const=yes
3629: else
3630: echo "$as_me: failed program was:" >&5
3631: sed 's/^/| /' conftest.$ac_ext >&5
3632:
1.1.1.2 ! root 3633: ac_cv_c_const=no
1.1 root 3634: fi
1.1.1.2 ! root 3635:
! 3636: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 3637: fi
1.1.1.2 ! root 3638: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 3639: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.1 root 3640: if test $ac_cv_c_const = no; then
3641:
3642: cat >>confdefs.h <<\_ACEOF
3643: #define const
3644: _ACEOF
3645:
3646: fi
3647:
1.1.1.2 ! root 3648: { echo "$as_me:$LINENO: checking for inline" >&5
! 3649: echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
1.1 root 3650: if test "${ac_cv_c_inline+set}" = set; then
3651: echo $ECHO_N "(cached) $ECHO_C" >&6
3652: else
3653: ac_cv_c_inline=no
3654: for ac_kw in inline __inline__ __inline; do
3655: cat >conftest.$ac_ext <<_ACEOF
3656: /* confdefs.h. */
3657: _ACEOF
3658: cat confdefs.h >>conftest.$ac_ext
3659: cat >>conftest.$ac_ext <<_ACEOF
3660: /* end confdefs.h. */
3661: #ifndef __cplusplus
3662: typedef int foo_t;
3663: static $ac_kw foo_t static_foo () {return 0; }
3664: $ac_kw foo_t foo () {return 0; }
3665: #endif
3666:
3667: _ACEOF
3668: rm -f conftest.$ac_objext
1.1.1.2 ! root 3669: if { (ac_try="$ac_compile"
! 3670: case "(($ac_try" in
! 3671: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3672: *) ac_try_echo=$ac_try;;
! 3673: esac
! 3674: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 3675: (eval "$ac_compile") 2>conftest.er1
1.1 root 3676: ac_status=$?
1.1.1.2 ! root 3677: grep -v '^ *+' conftest.er1 >conftest.err
! 3678: rm -f conftest.er1
! 3679: cat conftest.err >&5
1.1 root 3680: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 3681: (exit $ac_status); } && {
! 3682: test -z "$ac_c_werror_flag" ||
! 3683: test ! -s conftest.err
! 3684: } && test -s conftest.$ac_objext; then
! 3685: ac_cv_c_inline=$ac_kw
1.1 root 3686: else
3687: echo "$as_me: failed program was:" >&5
3688: sed 's/^/| /' conftest.$ac_ext >&5
3689:
1.1.1.2 ! root 3690:
1.1 root 3691: fi
1.1.1.2 ! root 3692:
! 3693: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3694: test "$ac_cv_c_inline" != no && break
1.1 root 3695: done
3696:
3697: fi
1.1.1.2 ! root 3698: { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
! 3699: echo "${ECHO_T}$ac_cv_c_inline" >&6; }
! 3700:
! 3701:
1.1 root 3702: case $ac_cv_c_inline in
3703: inline | yes) ;;
1.1.1.2 ! root 3704: *)
! 3705: case $ac_cv_c_inline in
! 3706: no) ac_val=;;
! 3707: *) ac_val=$ac_cv_c_inline;;
! 3708: esac
! 3709: cat >>confdefs.h <<_ACEOF
! 3710: #ifndef __cplusplus
! 3711: #define inline $ac_val
! 3712: #endif
1.1 root 3713: _ACEOF
1.1.1.2 ! root 3714: ;;
1.1 root 3715: esac
3716:
3717:
3718:
3719: ## ----------------------- ##
3720: ## Libtool initialisation. ##
3721: ## ----------------------- ##
3722:
3723:
1.1.1.2 ! root 3724: # Check whether --enable-shared was given.
1.1 root 3725: if test "${enable_shared+set}" = set; then
1.1.1.2 ! root 3726: enableval=$enable_shared; p=${PACKAGE-default}
1.1 root 3727: case $enableval in
3728: yes) enable_shared=yes ;;
3729: no) enable_shared=no ;;
3730: *)
3731: enable_shared=no
3732: # Look at the argument we got. We use all the common list separators.
3733: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734: for pkg in $enableval; do
3735: IFS="$lt_save_ifs"
3736: if test "X$pkg" = "X$p"; then
3737: enable_shared=yes
3738: fi
3739: done
3740: IFS="$lt_save_ifs"
3741: ;;
3742: esac
3743: else
3744: enable_shared=yes
1.1.1.2 ! root 3745: fi
! 3746:
1.1 root 3747:
1.1.1.2 ! root 3748: # Check whether --enable-static was given.
1.1 root 3749: if test "${enable_static+set}" = set; then
1.1.1.2 ! root 3750: enableval=$enable_static; p=${PACKAGE-default}
1.1 root 3751: case $enableval in
3752: yes) enable_static=yes ;;
3753: no) enable_static=no ;;
3754: *)
3755: enable_static=no
3756: # Look at the argument we got. We use all the common list separators.
3757: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758: for pkg in $enableval; do
3759: IFS="$lt_save_ifs"
3760: if test "X$pkg" = "X$p"; then
3761: enable_static=yes
3762: fi
3763: done
3764: IFS="$lt_save_ifs"
3765: ;;
3766: esac
3767: else
3768: enable_static=yes
1.1.1.2 ! root 3769: fi
! 3770:
1.1 root 3771:
1.1.1.2 ! root 3772: # Check whether --enable-fast-install was given.
1.1 root 3773: if test "${enable_fast_install+set}" = set; then
1.1.1.2 ! root 3774: enableval=$enable_fast_install; p=${PACKAGE-default}
1.1 root 3775: case $enableval in
3776: yes) enable_fast_install=yes ;;
3777: no) enable_fast_install=no ;;
3778: *)
3779: enable_fast_install=no
3780: # Look at the argument we got. We use all the common list separators.
3781: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782: for pkg in $enableval; do
3783: IFS="$lt_save_ifs"
3784: if test "X$pkg" = "X$p"; then
3785: enable_fast_install=yes
3786: fi
3787: done
3788: IFS="$lt_save_ifs"
3789: ;;
3790: esac
3791: else
3792: enable_fast_install=yes
1.1.1.2 ! root 3793: fi
! 3794:
1.1 root 3795:
3796: # Make sure we can run config.sub.
1.1.1.2 ! root 3797: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 3798: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
! 3799: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.1 root 3800: { (exit 1); exit 1; }; }
3801:
1.1.1.2 ! root 3802: { echo "$as_me:$LINENO: checking build system type" >&5
! 3803: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.1 root 3804: if test "${ac_cv_build+set}" = set; then
3805: echo $ECHO_N "(cached) $ECHO_C" >&6
3806: else
1.1.1.2 ! root 3807: ac_build_alias=$build_alias
! 3808: test "x$ac_build_alias" = x &&
! 3809: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 3810: test "x$ac_build_alias" = x &&
1.1 root 3811: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813: { (exit 1); exit 1; }; }
1.1.1.2 ! root 3814: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 3815: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
! 3816: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.1 root 3817: { (exit 1); exit 1; }; }
3818:
3819: fi
1.1.1.2 ! root 3820: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 3821: echo "${ECHO_T}$ac_cv_build" >&6; }
! 3822: case $ac_cv_build in
! 3823: *-*-*) ;;
! 3824: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
! 3825: echo "$as_me: error: invalid value of canonical build" >&2;}
! 3826: { (exit 1); exit 1; }; };;
! 3827: esac
1.1 root 3828: build=$ac_cv_build
1.1.1.2 ! root 3829: ac_save_IFS=$IFS; IFS='-'
! 3830: set x $ac_cv_build
! 3831: shift
! 3832: build_cpu=$1
! 3833: build_vendor=$2
! 3834: shift; shift
! 3835: # Remember, the first character of IFS is used to create $*,
! 3836: # except with old shells:
! 3837: build_os=$*
! 3838: IFS=$ac_save_IFS
! 3839: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1 root 3840:
3841:
1.1.1.2 ! root 3842: { echo "$as_me:$LINENO: checking host system type" >&5
! 3843: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.1 root 3844: if test "${ac_cv_host+set}" = set; then
3845: echo $ECHO_N "(cached) $ECHO_C" >&6
3846: else
1.1.1.2 ! root 3847: if test "x$host_alias" = x; then
! 3848: ac_cv_host=$ac_cv_build
! 3849: else
! 3850: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 3851: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
! 3852: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.1 root 3853: { (exit 1); exit 1; }; }
1.1.1.2 ! root 3854: fi
1.1 root 3855:
3856: fi
1.1.1.2 ! root 3857: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 3858: echo "${ECHO_T}$ac_cv_host" >&6; }
! 3859: case $ac_cv_host in
! 3860: *-*-*) ;;
! 3861: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
! 3862: echo "$as_me: error: invalid value of canonical host" >&2;}
! 3863: { (exit 1); exit 1; }; };;
! 3864: esac
1.1 root 3865: host=$ac_cv_host
1.1.1.2 ! root 3866: ac_save_IFS=$IFS; IFS='-'
! 3867: set x $ac_cv_host
! 3868: shift
! 3869: host_cpu=$1
! 3870: host_vendor=$2
! 3871: shift; shift
! 3872: # Remember, the first character of IFS is used to create $*,
! 3873: # except with old shells:
! 3874: host_os=$*
! 3875: IFS=$ac_save_IFS
! 3876: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 root 3877:
3878:
1.1.1.2 ! root 3879: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 3880: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.1 root 3881: if test "${lt_cv_path_SED+set}" = set; then
3882: echo $ECHO_N "(cached) $ECHO_C" >&6
3883: else
3884: # Loop through the user's path and test for sed and gsed.
3885: # Then use that list of sed's as ones to test for truncation.
3886: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887: for as_dir in $PATH
3888: do
3889: IFS=$as_save_IFS
3890: test -z "$as_dir" && as_dir=.
3891: for lt_ac_prog in sed gsed; do
3892: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 3893: if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1.1 root 3894: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3895: fi
3896: done
3897: done
3898: done
1.1.1.2 ! root 3899: IFS=$as_save_IFS
1.1 root 3900: lt_ac_max=0
3901: lt_ac_count=0
3902: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903: # along with /bin/sed that truncates output.
3904: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.1.1.2 ! root 3905: test ! -f $lt_ac_sed && continue
1.1 root 3906: cat /dev/null > conftest.in
3907: lt_ac_count=0
3908: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909: # Check for GNU sed and select it if it is found.
3910: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911: lt_cv_path_SED=$lt_ac_sed
3912: break
3913: fi
3914: while true; do
3915: cat conftest.in conftest.in >conftest.tmp
3916: mv conftest.tmp conftest.in
3917: cp conftest.in conftest.nl
3918: echo >>conftest.nl
3919: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920: cmp -s conftest.out conftest.nl || break
3921: # 10000 chars as input seems more than enough
3922: test $lt_ac_count -gt 10 && break
3923: lt_ac_count=`expr $lt_ac_count + 1`
3924: if test $lt_ac_count -gt $lt_ac_max; then
3925: lt_ac_max=$lt_ac_count
3926: lt_cv_path_SED=$lt_ac_sed
3927: fi
3928: done
3929: done
1.1.1.2 ! root 3930:
! 3931: fi
! 3932:
1.1 root 3933: SED=$lt_cv_path_SED
3934:
1.1.1.2 ! root 3935: { echo "$as_me:$LINENO: result: $SED" >&5
! 3936: echo "${ECHO_T}$SED" >&6; }
! 3937:
! 3938: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
! 3939: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
! 3940: if test "${ac_cv_path_GREP+set}" = set; then
! 3941: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3942: else
! 3943: # Extract the first word of "grep ggrep" to use in msg output
! 3944: if test -z "$GREP"; then
! 3945: set dummy grep ggrep; ac_prog_name=$2
! 3946: if test "${ac_cv_path_GREP+set}" = set; then
! 3947: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3948: else
! 3949: ac_path_GREP_found=false
! 3950: # Loop through the user's path and test for each of PROGNAME-LIST
! 3951: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3952: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 3953: do
! 3954: IFS=$as_save_IFS
! 3955: test -z "$as_dir" && as_dir=.
! 3956: for ac_prog in grep ggrep; do
! 3957: for ac_exec_ext in '' $ac_executable_extensions; do
! 3958: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 3959: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 3960: # Check for GNU ac_path_GREP and select it if it is found.
! 3961: # Check for GNU $ac_path_GREP
! 3962: case `"$ac_path_GREP" --version 2>&1` in
! 3963: *GNU*)
! 3964: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 3965: *)
! 3966: ac_count=0
! 3967: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 3968: while :
! 3969: do
! 3970: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 3971: mv "conftest.tmp" "conftest.in"
! 3972: cp "conftest.in" "conftest.nl"
! 3973: echo 'GREP' >> "conftest.nl"
! 3974: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 3975: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 3976: ac_count=`expr $ac_count + 1`
! 3977: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 3978: # Best one so far, save it but keep looking for a better one
! 3979: ac_cv_path_GREP="$ac_path_GREP"
! 3980: ac_path_GREP_max=$ac_count
! 3981: fi
! 3982: # 10*(2^10) chars as input seems more than enough
! 3983: test $ac_count -gt 10 && break
! 3984: done
! 3985: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 3986: esac
! 3987:
! 3988:
! 3989: $ac_path_GREP_found && break 3
! 3990: done
! 3991: done
! 3992:
! 3993: done
! 3994: IFS=$as_save_IFS
! 3995:
! 3996:
! 3997: fi
! 3998:
! 3999: GREP="$ac_cv_path_GREP"
! 4000: if test -z "$GREP"; then
! 4001: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 4002: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 4003: { (exit 1); exit 1; }; }
! 4004: fi
! 4005:
! 4006: else
! 4007: ac_cv_path_GREP=$GREP
1.1 root 4008: fi
4009:
4010:
1.1.1.2 ! root 4011: fi
! 4012: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
! 4013: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
! 4014: GREP="$ac_cv_path_GREP"
! 4015:
! 4016:
! 4017: { echo "$as_me:$LINENO: checking for egrep" >&5
! 4018: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
! 4019: if test "${ac_cv_path_EGREP+set}" = set; then
! 4020: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4021: else
! 4022: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 4023: then ac_cv_path_EGREP="$GREP -E"
! 4024: else
! 4025: # Extract the first word of "egrep" to use in msg output
! 4026: if test -z "$EGREP"; then
! 4027: set dummy egrep; ac_prog_name=$2
! 4028: if test "${ac_cv_path_EGREP+set}" = set; then
1.1 root 4029: echo $ECHO_N "(cached) $ECHO_C" >&6
4030: else
1.1.1.2 ! root 4031: ac_path_EGREP_found=false
! 4032: # Loop through the user's path and test for each of PROGNAME-LIST
! 4033: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4034: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4035: do
! 4036: IFS=$as_save_IFS
! 4037: test -z "$as_dir" && as_dir=.
! 4038: for ac_prog in egrep; do
! 4039: for ac_exec_ext in '' $ac_executable_extensions; do
! 4040: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4041: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 4042: # Check for GNU ac_path_EGREP and select it if it is found.
! 4043: # Check for GNU $ac_path_EGREP
! 4044: case `"$ac_path_EGREP" --version 2>&1` in
! 4045: *GNU*)
! 4046: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 4047: *)
! 4048: ac_count=0
! 4049: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
! 4050: while :
! 4051: do
! 4052: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4053: mv "conftest.tmp" "conftest.in"
! 4054: cp "conftest.in" "conftest.nl"
! 4055: echo 'EGREP' >> "conftest.nl"
! 4056: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4057: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4058: ac_count=`expr $ac_count + 1`
! 4059: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 4060: # Best one so far, save it but keep looking for a better one
! 4061: ac_cv_path_EGREP="$ac_path_EGREP"
! 4062: ac_path_EGREP_max=$ac_count
1.1 root 4063: fi
1.1.1.2 ! root 4064: # 10*(2^10) chars as input seems more than enough
! 4065: test $ac_count -gt 10 && break
! 4066: done
! 4067: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4068: esac
! 4069:
! 4070:
! 4071: $ac_path_EGREP_found && break 3
! 4072: done
! 4073: done
! 4074:
! 4075: done
! 4076: IFS=$as_save_IFS
! 4077:
! 4078:
! 4079: fi
! 4080:
! 4081: EGREP="$ac_cv_path_EGREP"
! 4082: if test -z "$EGREP"; then
! 4083: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
! 4084: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
! 4085: { (exit 1); exit 1; }; }
! 4086: fi
! 4087:
! 4088: else
! 4089: ac_cv_path_EGREP=$EGREP
! 4090: fi
! 4091:
! 4092:
! 4093: fi
1.1 root 4094: fi
1.1.1.2 ! root 4095: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
! 4096: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
! 4097: EGREP="$ac_cv_path_EGREP"
1.1 root 4098:
4099:
4100:
1.1.1.2 ! root 4101: # Check whether --with-gnu-ld was given.
1.1 root 4102: if test "${with_gnu_ld+set}" = set; then
1.1.1.2 ! root 4103: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 root 4104: else
4105: with_gnu_ld=no
1.1.1.2 ! root 4106: fi
! 4107:
1.1 root 4108: ac_prog=ld
4109: if test "$GCC" = yes; then
4110: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.2 ! root 4111: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 4112: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.1 root 4113: case $host in
4114: *-*-mingw*)
4115: # gcc leaves a trailing carriage return which upsets mingw
4116: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4117: *)
4118: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119: esac
4120: case $ac_prog in
4121: # Accept absolute paths.
4122: [\\/]* | ?:[\\/]*)
4123: re_direlt='/[^/][^/]*/\.\./'
1.1.1.2 ! root 4124: # Canonicalize the pathname of ld
1.1 root 4125: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128: done
4129: test -z "$LD" && LD="$ac_prog"
4130: ;;
4131: "")
4132: # If it fails, then pretend we aren't using GCC.
4133: ac_prog=ld
4134: ;;
4135: *)
4136: # If it is relative, then search for the first ld in PATH.
4137: with_gnu_ld=unknown
4138: ;;
4139: esac
4140: elif test "$with_gnu_ld" = yes; then
1.1.1.2 ! root 4141: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 4142: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.1 root 4143: else
1.1.1.2 ! root 4144: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 4145: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.1 root 4146: fi
4147: if test "${lt_cv_path_LD+set}" = set; then
4148: echo $ECHO_N "(cached) $ECHO_C" >&6
4149: else
4150: if test -z "$LD"; then
4151: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152: for ac_dir in $PATH; do
4153: IFS="$lt_save_ifs"
4154: test -z "$ac_dir" && ac_dir=.
4155: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156: lt_cv_path_LD="$ac_dir/$ac_prog"
4157: # Check to see if the program is GNU ld. I'd rather use --version,
1.1.1.2 ! root 4158: # but apparently some variants of GNU ld only accept -v.
1.1 root 4159: # Break only if it was the GNU/non-GNU ld that we prefer.
4160: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161: *GNU* | *'with BFD'*)
4162: test "$with_gnu_ld" != no && break
4163: ;;
4164: *)
4165: test "$with_gnu_ld" != yes && break
4166: ;;
4167: esac
4168: fi
4169: done
4170: IFS="$lt_save_ifs"
4171: else
4172: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4173: fi
4174: fi
4175:
4176: LD="$lt_cv_path_LD"
4177: if test -n "$LD"; then
1.1.1.2 ! root 4178: { echo "$as_me:$LINENO: result: $LD" >&5
! 4179: echo "${ECHO_T}$LD" >&6; }
1.1 root 4180: else
1.1.1.2 ! root 4181: { echo "$as_me:$LINENO: result: no" >&5
! 4182: echo "${ECHO_T}no" >&6; }
1.1 root 4183: fi
4184: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186: { (exit 1); exit 1; }; }
1.1.1.2 ! root 4187: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 4188: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.1 root 4189: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190: echo $ECHO_N "(cached) $ECHO_C" >&6
4191: else
1.1.1.2 ! root 4192: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 4193: case `$LD -v 2>&1 </dev/null` in
1.1 root 4194: *GNU* | *'with BFD'*)
4195: lt_cv_prog_gnu_ld=yes
4196: ;;
4197: *)
4198: lt_cv_prog_gnu_ld=no
4199: ;;
4200: esac
4201: fi
1.1.1.2 ! root 4202: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 4203: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.1 root 4204: with_gnu_ld=$lt_cv_prog_gnu_ld
4205:
4206:
1.1.1.2 ! root 4207: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 4208: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
1.1 root 4209: if test "${lt_cv_ld_reload_flag+set}" = set; then
4210: echo $ECHO_N "(cached) $ECHO_C" >&6
4211: else
4212: lt_cv_ld_reload_flag='-r'
4213: fi
1.1.1.2 ! root 4214: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 4215: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
1.1 root 4216: reload_flag=$lt_cv_ld_reload_flag
4217: case $reload_flag in
4218: "" | " "*) ;;
4219: *) reload_flag=" $reload_flag" ;;
4220: esac
4221: reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.1.1.2 ! root 4222: case $host_os in
! 4223: darwin*)
! 4224: if test "$GCC" = yes; then
! 4225: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
! 4226: else
! 4227: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 4228: fi
! 4229: ;;
! 4230: esac
1.1 root 4231:
1.1.1.2 ! root 4232: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 4233: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.1 root 4234: if test "${lt_cv_path_NM+set}" = set; then
4235: echo $ECHO_N "(cached) $ECHO_C" >&6
4236: else
4237: if test -n "$NM"; then
4238: # Let the user override the test.
4239: lt_cv_path_NM="$NM"
4240: else
1.1.1.2 ! root 4241: lt_nm_to_check="${ac_tool_prefix}nm"
! 4242: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
! 4243: lt_nm_to_check="$lt_nm_to_check nm"
! 4244: fi
! 4245: for lt_tmp_nm in $lt_nm_to_check; do
! 4246: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 4247: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
! 4248: IFS="$lt_save_ifs"
! 4249: test -z "$ac_dir" && ac_dir=.
! 4250: tmp_nm="$ac_dir/$lt_tmp_nm"
! 4251: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 4252: # Check to see if the nm accepts a BSD-compat flag.
! 4253: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 4254: # nm: unknown option "B" ignored
! 4255: # Tru64's nm complains that /dev/null is an invalid object file
! 4256: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
! 4257: */dev/null* | *'Invalid file or object type'*)
! 4258: lt_cv_path_NM="$tmp_nm -B"
1.1 root 4259: break
4260: ;;
4261: *)
1.1.1.2 ! root 4262: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
! 4263: */dev/null*)
! 4264: lt_cv_path_NM="$tmp_nm -p"
! 4265: break
! 4266: ;;
! 4267: *)
! 4268: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 4269: continue # so that we can try to find one that supports BSD flags
! 4270: ;;
! 4271: esac
1.1 root 4272: ;;
4273: esac
1.1.1.2 ! root 4274: fi
! 4275: done
! 4276: IFS="$lt_save_ifs"
1.1 root 4277: done
4278: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4279: fi
4280: fi
1.1.1.2 ! root 4281: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 4282: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.1 root 4283: NM="$lt_cv_path_NM"
4284:
1.1.1.2 ! root 4285: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 4286: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.1 root 4287: LN_S=$as_ln_s
4288: if test "$LN_S" = "ln -s"; then
1.1.1.2 ! root 4289: { echo "$as_me:$LINENO: result: yes" >&5
! 4290: echo "${ECHO_T}yes" >&6; }
1.1 root 4291: else
1.1.1.2 ! root 4292: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 4293: echo "${ECHO_T}no, using $LN_S" >&6; }
1.1 root 4294: fi
4295:
1.1.1.2 ! root 4296: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
! 4297: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.1 root 4298: if test "${lt_cv_deplibs_check_method+set}" = set; then
4299: echo $ECHO_N "(cached) $ECHO_C" >&6
4300: else
4301: lt_cv_file_magic_cmd='$MAGIC_CMD'
4302: lt_cv_file_magic_test_file=
4303: lt_cv_deplibs_check_method='unknown'
4304: # Need to set the preceding variable on all platforms that support
4305: # interlibrary dependencies.
4306: # 'none' -- dependencies not supported.
4307: # `unknown' -- same as none, but documents that we really don't know.
4308: # 'pass_all' -- all dependencies passed with no checks.
4309: # 'test_compile' -- check by making test program.
4310: # 'file_magic [[regex]]' -- check by looking for files in library path
4311: # which responds to the $file_magic_cmd with a given extended regex.
4312: # If you have `file' or equivalent on your system and you're not sure
4313: # whether `pass_all' will *always* work, you probably want this one.
4314:
4315: case $host_os in
4316: aix4* | aix5*)
4317: lt_cv_deplibs_check_method=pass_all
4318: ;;
4319:
4320: beos*)
4321: lt_cv_deplibs_check_method=pass_all
4322: ;;
4323:
1.1.1.2 ! root 4324: bsdi[45]*)
1.1 root 4325: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326: lt_cv_file_magic_cmd='/usr/bin/file -L'
4327: lt_cv_file_magic_test_file=/shlib/libc.so
4328: ;;
4329:
1.1.1.2 ! root 4330: cygwin*)
! 4331: # func_win32_libid is a shell function defined in ltmain.sh
1.1 root 4332: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.1.1.2 ! root 4333: lt_cv_file_magic_cmd='func_win32_libid'
! 4334: ;;
! 4335:
! 4336: mingw* | pw32*)
! 4337: # Base MSYS/MinGW do not provide the 'file' command needed by
! 4338: # func_win32_libid shell function, so use a weaker test based on 'objdump',
! 4339: # unless we find 'file', for example because we are cross-compiling.
! 4340: if ( file / ) >/dev/null 2>&1; then
! 4341: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
! 4342: lt_cv_file_magic_cmd='func_win32_libid'
! 4343: else
! 4344: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 4345: lt_cv_file_magic_cmd='$OBJDUMP -f'
! 4346: fi
1.1 root 4347: ;;
4348:
4349: darwin* | rhapsody*)
4350: lt_cv_deplibs_check_method=pass_all
4351: ;;
4352:
1.1.1.2 ! root 4353: freebsd* | dragonfly*)
1.1 root 4354: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4355: case $host_cpu in
4356: i*86 )
4357: # Not sure whether the presence of OpenBSD here was a mistake.
4358: # Let's accept both of them until this is cleared up.
1.1.1.2 ! root 4359: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 root 4360: lt_cv_file_magic_cmd=/usr/bin/file
4361: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4362: ;;
4363: esac
4364: else
4365: lt_cv_deplibs_check_method=pass_all
4366: fi
4367: ;;
4368:
4369: gnu*)
4370: lt_cv_deplibs_check_method=pass_all
4371: ;;
4372:
4373: hpux10.20* | hpux11*)
4374: lt_cv_file_magic_cmd=/usr/bin/file
1.1.1.2 ! root 4375: case $host_cpu in
1.1 root 4376: ia64*)
4377: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4379: ;;
4380: hppa*64*)
4381: 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]'
4382: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4383: ;;
4384: *)
4385: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386: lt_cv_file_magic_test_file=/usr/lib/libc.sl
4387: ;;
4388: esac
4389: ;;
4390:
1.1.1.2 ! root 4391: interix[3-9]*)
! 4392: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
! 4393: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
! 4394: ;;
! 4395:
! 4396: interix3*)
! 4397: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
! 4398: ;;
! 4399:
1.1 root 4400: irix5* | irix6* | nonstopux*)
1.1.1.2 ! root 4401: case $LD in
! 4402: *-32|*"-32 ") libmagic=32-bit;;
! 4403: *-n32|*"-n32 ") libmagic=N32;;
! 4404: *-64|*"-64 ") libmagic=64-bit;;
! 4405: *) libmagic=never-match;;
1.1 root 4406: esac
4407: lt_cv_deplibs_check_method=pass_all
4408: ;;
4409:
4410: # This must be Linux ELF.
1.1.1.2 ! root 4411: linux* | k*bsd*-gnu)
! 4412: lt_cv_deplibs_check_method=pass_all
1.1 root 4413: ;;
4414:
4415: netbsd*)
4416: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4417: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4418: else
4419: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4420: fi
4421: ;;
4422:
4423: newos6*)
4424: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4425: lt_cv_file_magic_cmd=/usr/bin/file
4426: lt_cv_file_magic_test_file=/usr/lib/libnls.so
4427: ;;
4428:
1.1.1.2 ! root 4429: nto-qnx*)
! 4430: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|S\.a)$'
1.1 root 4431: ;;
4432:
4433: openbsd*)
4434: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.1.1.2 ! root 4435: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 root 4436: else
1.1.1.2 ! root 4437: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 root 4438: fi
4439: ;;
4440:
4441: osf3* | osf4* | osf5*)
4442: lt_cv_deplibs_check_method=pass_all
4443: ;;
4444:
1.1.1.2 ! root 4445: rdos*)
1.1 root 4446: lt_cv_deplibs_check_method=pass_all
4447: ;;
4448:
4449: solaris*)
4450: lt_cv_deplibs_check_method=pass_all
4451: ;;
4452:
1.1.1.2 ! root 4453: sysv4 | sysv4.3*)
1.1 root 4454: case $host_vendor in
4455: motorola)
4456: 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]'
4457: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4458: ;;
4459: ncr)
4460: lt_cv_deplibs_check_method=pass_all
4461: ;;
4462: sequent)
4463: lt_cv_file_magic_cmd='/bin/file'
4464: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4465: ;;
4466: sni)
4467: lt_cv_file_magic_cmd='/bin/file'
4468: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4469: lt_cv_file_magic_test_file=/lib/libc.so
4470: ;;
4471: siemens)
4472: lt_cv_deplibs_check_method=pass_all
4473: ;;
1.1.1.2 ! root 4474: pc)
! 4475: lt_cv_deplibs_check_method=pass_all
! 4476: ;;
1.1 root 4477: esac
4478: ;;
4479:
1.1.1.2 ! root 4480: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 root 4481: lt_cv_deplibs_check_method=pass_all
4482: ;;
4483: esac
4484:
4485: fi
1.1.1.2 ! root 4486: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 4487: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.1 root 4488: file_magic_cmd=$lt_cv_file_magic_cmd
4489: deplibs_check_method=$lt_cv_deplibs_check_method
4490: test -z "$deplibs_check_method" && deplibs_check_method=unknown
4491:
4492:
4493:
4494:
4495: # If no C compiler was specified, use CC.
4496: LTCC=${LTCC-"$CC"}
4497:
1.1.1.2 ! root 4498: # If no C compiler flags were specified, use CFLAGS.
! 4499: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 4500:
1.1 root 4501: # Allow CC to be a program name with arguments.
4502: compiler=$CC
4503:
1.1.1.2 ! root 4504: # Check whether --enable-libtool-lock was given.
1.1 root 4505: if test "${enable_libtool_lock+set}" = set; then
1.1.1.2 ! root 4506: enableval=$enable_libtool_lock;
! 4507: fi
1.1 root 4508:
4509: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4510:
4511: # Some flags need to be propagated to the compiler or linker for good
4512: # libtool support.
4513: case $host in
4514: ia64-*-hpux*)
4515: # Find out which ABI we are using.
4516: echo 'int i;' > conftest.$ac_ext
4517: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518: (eval $ac_compile) 2>&5
4519: ac_status=$?
4520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521: (exit $ac_status); }; then
4522: case `/usr/bin/file conftest.$ac_objext` in
4523: *ELF-32*)
4524: HPUX_IA64_MODE="32"
4525: ;;
4526: *ELF-64*)
4527: HPUX_IA64_MODE="64"
4528: ;;
4529: esac
4530: fi
4531: rm -rf conftest*
4532: ;;
4533: *-*-irix6*)
4534: # Find out which ABI we are using.
1.1.1.2 ! root 4535: echo '#line 4531 "configure"' > conftest.$ac_ext
1.1 root 4536: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537: (eval $ac_compile) 2>&5
4538: ac_status=$?
4539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540: (exit $ac_status); }; then
4541: if test "$lt_cv_prog_gnu_ld" = yes; then
4542: case `/usr/bin/file conftest.$ac_objext` in
4543: *32-bit*)
4544: LD="${LD-ld} -melf32bsmip"
4545: ;;
4546: *N32*)
4547: LD="${LD-ld} -melf32bmipn32"
4548: ;;
4549: *64-bit*)
4550: LD="${LD-ld} -melf64bmip"
4551: ;;
4552: esac
4553: else
4554: case `/usr/bin/file conftest.$ac_objext` in
4555: *32-bit*)
4556: LD="${LD-ld} -32"
4557: ;;
4558: *N32*)
4559: LD="${LD-ld} -n32"
4560: ;;
4561: *64-bit*)
4562: LD="${LD-ld} -64"
4563: ;;
4564: esac
4565: fi
4566: fi
4567: rm -rf conftest*
4568: ;;
4569:
1.1.1.2 ! root 4570: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
! 4571: s390*-*linux*|sparc*-*linux*)
1.1 root 4572: # Find out which ABI we are using.
4573: echo 'int i;' > conftest.$ac_ext
4574: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575: (eval $ac_compile) 2>&5
4576: ac_status=$?
4577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578: (exit $ac_status); }; then
1.1.1.2 ! root 4579: case `/usr/bin/file conftest.o` in
1.1 root 4580: *32-bit*)
4581: case $host in
1.1.1.2 ! root 4582: x86_64-*kfreebsd*-gnu)
! 4583: LD="${LD-ld} -m elf_i386_fbsd"
! 4584: ;;
1.1 root 4585: x86_64-*linux*)
4586: LD="${LD-ld} -m elf_i386"
4587: ;;
1.1.1.2 ! root 4588: ppc64-*linux*|powerpc64-*linux*)
1.1 root 4589: LD="${LD-ld} -m elf32ppclinux"
4590: ;;
4591: s390x-*linux*)
4592: LD="${LD-ld} -m elf_s390"
4593: ;;
4594: sparc64-*linux*)
4595: LD="${LD-ld} -m elf32_sparc"
4596: ;;
4597: esac
4598: ;;
4599: *64-bit*)
4600: case $host in
1.1.1.2 ! root 4601: x86_64-*kfreebsd*-gnu)
! 4602: LD="${LD-ld} -m elf_x86_64_fbsd"
! 4603: ;;
1.1 root 4604: x86_64-*linux*)
4605: LD="${LD-ld} -m elf_x86_64"
4606: ;;
4607: ppc*-*linux*|powerpc*-*linux*)
4608: LD="${LD-ld} -m elf64ppc"
4609: ;;
4610: s390*-*linux*)
4611: LD="${LD-ld} -m elf64_s390"
4612: ;;
4613: sparc*-*linux*)
4614: LD="${LD-ld} -m elf64_sparc"
4615: ;;
4616: esac
4617: ;;
4618: esac
4619: fi
4620: rm -rf conftest*
4621: ;;
4622:
4623: *-*-sco3.2v5*)
4624: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4625: SAVE_CFLAGS="$CFLAGS"
4626: CFLAGS="$CFLAGS -belf"
1.1.1.2 ! root 4627: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 4628: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
1.1 root 4629: if test "${lt_cv_cc_needs_belf+set}" = set; then
4630: echo $ECHO_N "(cached) $ECHO_C" >&6
4631: else
4632: ac_ext=c
4633: ac_cpp='$CPP $CPPFLAGS'
4634: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637:
4638: cat >conftest.$ac_ext <<_ACEOF
4639: /* confdefs.h. */
4640: _ACEOF
4641: cat confdefs.h >>conftest.$ac_ext
4642: cat >>conftest.$ac_ext <<_ACEOF
4643: /* end confdefs.h. */
4644:
4645: int
4646: main ()
4647: {
4648:
4649: ;
4650: return 0;
4651: }
4652: _ACEOF
4653: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 4654: if { (ac_try="$ac_link"
! 4655: case "(($ac_try" in
! 4656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4657: *) ac_try_echo=$ac_try;;
! 4658: esac
! 4659: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 4660: (eval "$ac_link") 2>conftest.er1
1.1 root 4661: ac_status=$?
1.1.1.2 ! root 4662: grep -v '^ *+' conftest.er1 >conftest.err
! 4663: rm -f conftest.er1
! 4664: cat conftest.err >&5
1.1 root 4665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 4666: (exit $ac_status); } && {
! 4667: test -z "$ac_c_werror_flag" ||
! 4668: test ! -s conftest.err
! 4669: } && test -s conftest$ac_exeext &&
! 4670: $as_test_x conftest$ac_exeext; then
1.1 root 4671: lt_cv_cc_needs_belf=yes
4672: else
4673: echo "$as_me: failed program was:" >&5
4674: sed 's/^/| /' conftest.$ac_ext >&5
4675:
1.1.1.2 ! root 4676: lt_cv_cc_needs_belf=no
1.1 root 4677: fi
1.1.1.2 ! root 4678:
! 4679: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 4680: conftest$ac_exeext conftest.$ac_ext
1.1 root 4681: ac_ext=c
4682: ac_cpp='$CPP $CPPFLAGS'
4683: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686:
4687: fi
1.1.1.2 ! root 4688: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 4689: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
1.1 root 4690: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4691: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4692: CFLAGS="$SAVE_CFLAGS"
4693: fi
4694: ;;
1.1.1.2 ! root 4695: sparc*-*solaris*)
! 4696: # Find out which ABI we are using.
! 4697: echo 'int i;' > conftest.$ac_ext
! 4698: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 4699: (eval $ac_compile) 2>&5
! 4700: ac_status=$?
! 4701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4702: (exit $ac_status); }; then
! 4703: case `/usr/bin/file conftest.o` in
! 4704: *64-bit*)
! 4705: case $lt_cv_prog_gnu_ld in
! 4706: yes*) LD="${LD-ld} -m elf64_sparc" ;;
! 4707: *) LD="${LD-ld} -64" ;;
! 4708: esac
! 4709: ;;
! 4710: esac
! 4711: fi
! 4712: rm -rf conftest*
! 4713: ;;
! 4714:
1.1 root 4715: *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4716: if test -n "$ac_tool_prefix"; then
4717: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4718: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.1.1.2 ! root 4719: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4720: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 4721: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4722: echo $ECHO_N "(cached) $ECHO_C" >&6
4723: else
4724: if test -n "$DLLTOOL"; then
4725: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4726: else
4727: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728: for as_dir in $PATH
4729: do
4730: IFS=$as_save_IFS
4731: test -z "$as_dir" && as_dir=.
4732: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 4733: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 4734: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4735: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736: break 2
4737: fi
4738: done
4739: done
1.1.1.2 ! root 4740: IFS=$as_save_IFS
1.1 root 4741:
4742: fi
4743: fi
4744: DLLTOOL=$ac_cv_prog_DLLTOOL
4745: if test -n "$DLLTOOL"; then
1.1.1.2 ! root 4746: { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
! 4747: echo "${ECHO_T}$DLLTOOL" >&6; }
1.1 root 4748: else
1.1.1.2 ! root 4749: { echo "$as_me:$LINENO: result: no" >&5
! 4750: echo "${ECHO_T}no" >&6; }
1.1 root 4751: fi
4752:
1.1.1.2 ! root 4753:
1.1 root 4754: fi
4755: if test -z "$ac_cv_prog_DLLTOOL"; then
4756: ac_ct_DLLTOOL=$DLLTOOL
4757: # Extract the first word of "dlltool", so it can be a program name with args.
4758: set dummy dlltool; ac_word=$2
1.1.1.2 ! root 4759: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4760: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 4761: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4762: echo $ECHO_N "(cached) $ECHO_C" >&6
4763: else
4764: if test -n "$ac_ct_DLLTOOL"; then
4765: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4766: else
4767: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768: for as_dir in $PATH
4769: do
4770: IFS=$as_save_IFS
4771: test -z "$as_dir" && as_dir=.
4772: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 4773: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 4774: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4775: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776: break 2
4777: fi
4778: done
4779: done
1.1.1.2 ! root 4780: IFS=$as_save_IFS
1.1 root 4781:
4782: fi
4783: fi
4784: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4785: if test -n "$ac_ct_DLLTOOL"; then
1.1.1.2 ! root 4786: { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
! 4787: echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
1.1 root 4788: else
1.1.1.2 ! root 4789: { echo "$as_me:$LINENO: result: no" >&5
! 4790: echo "${ECHO_T}no" >&6; }
1.1 root 4791: fi
4792:
1.1.1.2 ! root 4793: if test "x$ac_ct_DLLTOOL" = x; then
! 4794: DLLTOOL="false"
! 4795: else
! 4796: case $cross_compiling:$ac_tool_warned in
! 4797: yes:)
! 4798: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 4799: whose name does not start with the host triplet. If you think this
! 4800: configuration is useful to you, please write to [email protected]." >&5
! 4801: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 4802: whose name does not start with the host triplet. If you think this
! 4803: configuration is useful to you, please write to [email protected]." >&2;}
! 4804: ac_tool_warned=yes ;;
! 4805: esac
! 4806: DLLTOOL=$ac_ct_DLLTOOL
! 4807: fi
1.1 root 4808: else
4809: DLLTOOL="$ac_cv_prog_DLLTOOL"
4810: fi
4811:
4812: if test -n "$ac_tool_prefix"; then
4813: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4814: set dummy ${ac_tool_prefix}as; ac_word=$2
1.1.1.2 ! root 4815: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4816: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 4817: if test "${ac_cv_prog_AS+set}" = set; then
4818: echo $ECHO_N "(cached) $ECHO_C" >&6
4819: else
4820: if test -n "$AS"; then
4821: ac_cv_prog_AS="$AS" # Let the user override the test.
4822: else
4823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824: for as_dir in $PATH
4825: do
4826: IFS=$as_save_IFS
4827: test -z "$as_dir" && as_dir=.
4828: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 4829: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 4830: ac_cv_prog_AS="${ac_tool_prefix}as"
4831: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832: break 2
4833: fi
4834: done
4835: done
1.1.1.2 ! root 4836: IFS=$as_save_IFS
1.1 root 4837:
4838: fi
4839: fi
4840: AS=$ac_cv_prog_AS
4841: if test -n "$AS"; then
1.1.1.2 ! root 4842: { echo "$as_me:$LINENO: result: $AS" >&5
! 4843: echo "${ECHO_T}$AS" >&6; }
1.1 root 4844: else
1.1.1.2 ! root 4845: { echo "$as_me:$LINENO: result: no" >&5
! 4846: echo "${ECHO_T}no" >&6; }
1.1 root 4847: fi
4848:
1.1.1.2 ! root 4849:
1.1 root 4850: fi
4851: if test -z "$ac_cv_prog_AS"; then
4852: ac_ct_AS=$AS
4853: # Extract the first word of "as", so it can be a program name with args.
4854: set dummy as; ac_word=$2
1.1.1.2 ! root 4855: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4856: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 4857: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4858: echo $ECHO_N "(cached) $ECHO_C" >&6
4859: else
4860: if test -n "$ac_ct_AS"; then
4861: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4862: else
4863: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864: for as_dir in $PATH
4865: do
4866: IFS=$as_save_IFS
4867: test -z "$as_dir" && as_dir=.
4868: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 4869: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 4870: ac_cv_prog_ac_ct_AS="as"
4871: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872: break 2
4873: fi
4874: done
4875: done
1.1.1.2 ! root 4876: IFS=$as_save_IFS
1.1 root 4877:
4878: fi
4879: fi
4880: ac_ct_AS=$ac_cv_prog_ac_ct_AS
4881: if test -n "$ac_ct_AS"; then
1.1.1.2 ! root 4882: { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
! 4883: echo "${ECHO_T}$ac_ct_AS" >&6; }
1.1 root 4884: else
1.1.1.2 ! root 4885: { echo "$as_me:$LINENO: result: no" >&5
! 4886: echo "${ECHO_T}no" >&6; }
1.1 root 4887: fi
4888:
1.1.1.2 ! root 4889: if test "x$ac_ct_AS" = x; then
! 4890: AS="false"
! 4891: else
! 4892: case $cross_compiling:$ac_tool_warned in
! 4893: yes:)
! 4894: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 4895: whose name does not start with the host triplet. If you think this
! 4896: configuration is useful to you, please write to [email protected]." >&5
! 4897: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 4898: whose name does not start with the host triplet. If you think this
! 4899: configuration is useful to you, please write to [email protected]." >&2;}
! 4900: ac_tool_warned=yes ;;
! 4901: esac
! 4902: AS=$ac_ct_AS
! 4903: fi
1.1 root 4904: else
4905: AS="$ac_cv_prog_AS"
4906: fi
4907:
4908: if test -n "$ac_tool_prefix"; then
4909: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4910: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.1.1.2 ! root 4911: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4912: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 4913: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4914: echo $ECHO_N "(cached) $ECHO_C" >&6
4915: else
4916: if test -n "$OBJDUMP"; then
4917: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4918: else
4919: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920: for as_dir in $PATH
4921: do
4922: IFS=$as_save_IFS
4923: test -z "$as_dir" && as_dir=.
4924: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 4925: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 4926: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4927: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928: break 2
4929: fi
4930: done
4931: done
1.1.1.2 ! root 4932: IFS=$as_save_IFS
1.1 root 4933:
4934: fi
4935: fi
4936: OBJDUMP=$ac_cv_prog_OBJDUMP
4937: if test -n "$OBJDUMP"; then
1.1.1.2 ! root 4938: { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
! 4939: echo "${ECHO_T}$OBJDUMP" >&6; }
1.1 root 4940: else
1.1.1.2 ! root 4941: { echo "$as_me:$LINENO: result: no" >&5
! 4942: echo "${ECHO_T}no" >&6; }
1.1 root 4943: fi
4944:
1.1.1.2 ! root 4945:
1.1 root 4946: fi
4947: if test -z "$ac_cv_prog_OBJDUMP"; then
4948: ac_ct_OBJDUMP=$OBJDUMP
4949: # Extract the first word of "objdump", so it can be a program name with args.
4950: set dummy objdump; ac_word=$2
1.1.1.2 ! root 4951: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 4952: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 4953: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4954: echo $ECHO_N "(cached) $ECHO_C" >&6
4955: else
4956: if test -n "$ac_ct_OBJDUMP"; then
4957: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4958: else
4959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960: for as_dir in $PATH
4961: do
4962: IFS=$as_save_IFS
4963: test -z "$as_dir" && as_dir=.
4964: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 4965: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 4966: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4967: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968: break 2
4969: fi
4970: done
4971: done
1.1.1.2 ! root 4972: IFS=$as_save_IFS
1.1 root 4973:
4974: fi
4975: fi
4976: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4977: if test -n "$ac_ct_OBJDUMP"; then
1.1.1.2 ! root 4978: { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
! 4979: echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
1.1 root 4980: else
1.1.1.2 ! root 4981: { echo "$as_me:$LINENO: result: no" >&5
! 4982: echo "${ECHO_T}no" >&6; }
1.1 root 4983: fi
4984:
1.1.1.2 ! root 4985: if test "x$ac_ct_OBJDUMP" = x; then
! 4986: OBJDUMP="false"
! 4987: else
! 4988: case $cross_compiling:$ac_tool_warned in
! 4989: yes:)
! 4990: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 4991: whose name does not start with the host triplet. If you think this
! 4992: configuration is useful to you, please write to [email protected]." >&5
! 4993: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 4994: whose name does not start with the host triplet. If you think this
! 4995: configuration is useful to you, please write to [email protected]." >&2;}
! 4996: ac_tool_warned=yes ;;
! 4997: esac
! 4998: OBJDUMP=$ac_ct_OBJDUMP
! 4999: fi
1.1 root 5000: else
5001: OBJDUMP="$ac_cv_prog_OBJDUMP"
5002: fi
5003:
5004: ;;
5005:
5006: esac
5007:
5008: need_locks="$enable_libtool_lock"
5009:
5010:
5011: ac_ext=c
5012: ac_cpp='$CPP $CPPFLAGS'
5013: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.2 ! root 5016: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
! 5017: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 root 5018: # On Suns, sometimes $CPP names a directory.
5019: if test -n "$CPP" && test -d "$CPP"; then
5020: CPP=
5021: fi
5022: if test -z "$CPP"; then
5023: if test "${ac_cv_prog_CPP+set}" = set; then
5024: echo $ECHO_N "(cached) $ECHO_C" >&6
5025: else
5026: # Double quotes because CPP needs to be expanded
5027: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028: do
5029: ac_preproc_ok=false
5030: for ac_c_preproc_warn_flag in '' yes
5031: do
5032: # Use a header file that comes with gcc, so configuring glibc
5033: # with a fresh cross-compiler works.
5034: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035: # <limits.h> exists even on freestanding compilers.
5036: # On the NeXT, cc -E runs the code through the compiler's parser,
5037: # not just through cpp. "Syntax error" is here to catch this case.
5038: cat >conftest.$ac_ext <<_ACEOF
5039: /* confdefs.h. */
5040: _ACEOF
5041: cat confdefs.h >>conftest.$ac_ext
5042: cat >>conftest.$ac_ext <<_ACEOF
5043: /* end confdefs.h. */
5044: #ifdef __STDC__
5045: # include <limits.h>
5046: #else
5047: # include <assert.h>
5048: #endif
1.1.1.2 ! root 5049: Syntax error
1.1 root 5050: _ACEOF
1.1.1.2 ! root 5051: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5052: case "(($ac_try" in
! 5053: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5054: *) ac_try_echo=$ac_try;;
! 5055: esac
! 5056: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5057: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 5058: ac_status=$?
5059: grep -v '^ *+' conftest.er1 >conftest.err
5060: rm -f conftest.er1
5061: cat conftest.err >&5
5062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5063: (exit $ac_status); } >/dev/null && {
! 5064: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5065: test ! -s conftest.err
! 5066: }; then
1.1 root 5067: :
5068: else
5069: echo "$as_me: failed program was:" >&5
5070: sed 's/^/| /' conftest.$ac_ext >&5
5071:
5072: # Broken: fails on valid input.
5073: continue
5074: fi
1.1.1.2 ! root 5075:
1.1 root 5076: rm -f conftest.err conftest.$ac_ext
5077:
1.1.1.2 ! root 5078: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 5079: # can be detected and how.
5080: cat >conftest.$ac_ext <<_ACEOF
5081: /* confdefs.h. */
5082: _ACEOF
5083: cat confdefs.h >>conftest.$ac_ext
5084: cat >>conftest.$ac_ext <<_ACEOF
5085: /* end confdefs.h. */
5086: #include <ac_nonexistent.h>
5087: _ACEOF
1.1.1.2 ! root 5088: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5089: case "(($ac_try" in
! 5090: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5091: *) ac_try_echo=$ac_try;;
! 5092: esac
! 5093: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5094: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 5095: ac_status=$?
5096: grep -v '^ *+' conftest.er1 >conftest.err
5097: rm -f conftest.er1
5098: cat conftest.err >&5
5099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5100: (exit $ac_status); } >/dev/null && {
! 5101: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5102: test ! -s conftest.err
! 5103: }; then
1.1 root 5104: # Broken: success on invalid input.
5105: continue
5106: else
5107: echo "$as_me: failed program was:" >&5
5108: sed 's/^/| /' conftest.$ac_ext >&5
5109:
5110: # Passes both tests.
5111: ac_preproc_ok=:
5112: break
5113: fi
1.1.1.2 ! root 5114:
1.1 root 5115: rm -f conftest.err conftest.$ac_ext
5116:
5117: done
5118: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119: rm -f conftest.err conftest.$ac_ext
5120: if $ac_preproc_ok; then
5121: break
5122: fi
5123:
5124: done
5125: ac_cv_prog_CPP=$CPP
5126:
5127: fi
5128: CPP=$ac_cv_prog_CPP
5129: else
5130: ac_cv_prog_CPP=$CPP
5131: fi
1.1.1.2 ! root 5132: { echo "$as_me:$LINENO: result: $CPP" >&5
! 5133: echo "${ECHO_T}$CPP" >&6; }
1.1 root 5134: ac_preproc_ok=false
5135: for ac_c_preproc_warn_flag in '' yes
5136: do
5137: # Use a header file that comes with gcc, so configuring glibc
5138: # with a fresh cross-compiler works.
5139: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140: # <limits.h> exists even on freestanding compilers.
5141: # On the NeXT, cc -E runs the code through the compiler's parser,
5142: # not just through cpp. "Syntax error" is here to catch this case.
5143: cat >conftest.$ac_ext <<_ACEOF
5144: /* confdefs.h. */
5145: _ACEOF
5146: cat confdefs.h >>conftest.$ac_ext
5147: cat >>conftest.$ac_ext <<_ACEOF
5148: /* end confdefs.h. */
5149: #ifdef __STDC__
5150: # include <limits.h>
5151: #else
5152: # include <assert.h>
5153: #endif
1.1.1.2 ! root 5154: Syntax error
1.1 root 5155: _ACEOF
1.1.1.2 ! root 5156: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5157: case "(($ac_try" in
! 5158: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5159: *) ac_try_echo=$ac_try;;
! 5160: esac
! 5161: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5162: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 5163: ac_status=$?
5164: grep -v '^ *+' conftest.er1 >conftest.err
5165: rm -f conftest.er1
5166: cat conftest.err >&5
5167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5168: (exit $ac_status); } >/dev/null && {
! 5169: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5170: test ! -s conftest.err
! 5171: }; then
1.1 root 5172: :
5173: else
5174: echo "$as_me: failed program was:" >&5
5175: sed 's/^/| /' conftest.$ac_ext >&5
5176:
5177: # Broken: fails on valid input.
5178: continue
5179: fi
1.1.1.2 ! root 5180:
1.1 root 5181: rm -f conftest.err conftest.$ac_ext
5182:
1.1.1.2 ! root 5183: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 5184: # can be detected and how.
5185: cat >conftest.$ac_ext <<_ACEOF
5186: /* confdefs.h. */
5187: _ACEOF
5188: cat confdefs.h >>conftest.$ac_ext
5189: cat >>conftest.$ac_ext <<_ACEOF
5190: /* end confdefs.h. */
5191: #include <ac_nonexistent.h>
5192: _ACEOF
1.1.1.2 ! root 5193: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5194: case "(($ac_try" in
! 5195: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5196: *) ac_try_echo=$ac_try;;
! 5197: esac
! 5198: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5199: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 5200: ac_status=$?
5201: grep -v '^ *+' conftest.er1 >conftest.err
5202: rm -f conftest.er1
5203: cat conftest.err >&5
5204: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5205: (exit $ac_status); } >/dev/null && {
! 5206: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5207: test ! -s conftest.err
! 5208: }; then
1.1 root 5209: # Broken: success on invalid input.
5210: continue
5211: else
5212: echo "$as_me: failed program was:" >&5
5213: sed 's/^/| /' conftest.$ac_ext >&5
5214:
5215: # Passes both tests.
5216: ac_preproc_ok=:
5217: break
5218: fi
1.1.1.2 ! root 5219:
1.1 root 5220: rm -f conftest.err conftest.$ac_ext
5221:
5222: done
5223: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224: rm -f conftest.err conftest.$ac_ext
5225: if $ac_preproc_ok; then
5226: :
5227: else
5228: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5229: See \`config.log' for more details." >&5
5230: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5231: See \`config.log' for more details." >&2;}
5232: { (exit 1); exit 1; }; }
5233: fi
5234:
5235: ac_ext=c
5236: ac_cpp='$CPP $CPPFLAGS'
5237: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240:
5241:
1.1.1.2 ! root 5242: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 5243: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.1 root 5244: if test "${ac_cv_header_stdc+set}" = set; then
5245: echo $ECHO_N "(cached) $ECHO_C" >&6
5246: else
5247: cat >conftest.$ac_ext <<_ACEOF
5248: /* confdefs.h. */
5249: _ACEOF
5250: cat confdefs.h >>conftest.$ac_ext
5251: cat >>conftest.$ac_ext <<_ACEOF
5252: /* end confdefs.h. */
5253: #include <stdlib.h>
5254: #include <stdarg.h>
5255: #include <string.h>
5256: #include <float.h>
5257:
5258: int
5259: main ()
5260: {
5261:
5262: ;
5263: return 0;
5264: }
5265: _ACEOF
5266: rm -f conftest.$ac_objext
1.1.1.2 ! root 5267: if { (ac_try="$ac_compile"
! 5268: case "(($ac_try" in
! 5269: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5270: *) ac_try_echo=$ac_try;;
! 5271: esac
! 5272: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5273: (eval "$ac_compile") 2>conftest.er1
1.1 root 5274: ac_status=$?
1.1.1.2 ! root 5275: grep -v '^ *+' conftest.er1 >conftest.err
! 5276: rm -f conftest.er1
! 5277: cat conftest.err >&5
1.1 root 5278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5279: (exit $ac_status); } && {
! 5280: test -z "$ac_c_werror_flag" ||
! 5281: test ! -s conftest.err
! 5282: } && test -s conftest.$ac_objext; then
1.1 root 5283: ac_cv_header_stdc=yes
5284: else
5285: echo "$as_me: failed program was:" >&5
5286: sed 's/^/| /' conftest.$ac_ext >&5
5287:
1.1.1.2 ! root 5288: ac_cv_header_stdc=no
1.1 root 5289: fi
1.1.1.2 ! root 5290:
! 5291: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5292:
5293: if test $ac_cv_header_stdc = yes; then
5294: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5295: cat >conftest.$ac_ext <<_ACEOF
5296: /* confdefs.h. */
5297: _ACEOF
5298: cat confdefs.h >>conftest.$ac_ext
5299: cat >>conftest.$ac_ext <<_ACEOF
5300: /* end confdefs.h. */
5301: #include <string.h>
5302:
5303: _ACEOF
5304: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5305: $EGREP "memchr" >/dev/null 2>&1; then
5306: :
5307: else
5308: ac_cv_header_stdc=no
5309: fi
5310: rm -f conftest*
5311:
5312: fi
5313:
5314: if test $ac_cv_header_stdc = yes; then
5315: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5316: cat >conftest.$ac_ext <<_ACEOF
5317: /* confdefs.h. */
5318: _ACEOF
5319: cat confdefs.h >>conftest.$ac_ext
5320: cat >>conftest.$ac_ext <<_ACEOF
5321: /* end confdefs.h. */
5322: #include <stdlib.h>
5323:
5324: _ACEOF
5325: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326: $EGREP "free" >/dev/null 2>&1; then
5327: :
5328: else
5329: ac_cv_header_stdc=no
5330: fi
5331: rm -f conftest*
5332:
5333: fi
5334:
5335: if test $ac_cv_header_stdc = yes; then
5336: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5337: if test "$cross_compiling" = yes; then
5338: :
5339: else
5340: cat >conftest.$ac_ext <<_ACEOF
5341: /* confdefs.h. */
5342: _ACEOF
5343: cat confdefs.h >>conftest.$ac_ext
5344: cat >>conftest.$ac_ext <<_ACEOF
5345: /* end confdefs.h. */
5346: #include <ctype.h>
1.1.1.2 ! root 5347: #include <stdlib.h>
1.1 root 5348: #if ((' ' & 0x0FF) == 0x020)
5349: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5350: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5351: #else
5352: # define ISLOWER(c) \
1.1.1.2 ! root 5353: (('a' <= (c) && (c) <= 'i') \
! 5354: || ('j' <= (c) && (c) <= 'r') \
! 5355: || ('s' <= (c) && (c) <= 'z'))
1.1 root 5356: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5357: #endif
5358:
5359: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5360: int
5361: main ()
5362: {
5363: int i;
5364: for (i = 0; i < 256; i++)
5365: if (XOR (islower (i), ISLOWER (i))
1.1.1.2 ! root 5366: || toupper (i) != TOUPPER (i))
! 5367: return 2;
! 5368: return 0;
1.1 root 5369: }
5370: _ACEOF
5371: rm -f conftest$ac_exeext
1.1.1.2 ! root 5372: if { (ac_try="$ac_link"
! 5373: case "(($ac_try" in
! 5374: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5375: *) ac_try_echo=$ac_try;;
! 5376: esac
! 5377: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5378: (eval "$ac_link") 2>&5
1.1 root 5379: ac_status=$?
5380: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.1.1.2 ! root 5382: { (case "(($ac_try" in
! 5383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5384: *) ac_try_echo=$ac_try;;
! 5385: esac
! 5386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5387: (eval "$ac_try") 2>&5
1.1 root 5388: ac_status=$?
5389: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390: (exit $ac_status); }; }; then
5391: :
5392: else
5393: echo "$as_me: program exited with status $ac_status" >&5
5394: echo "$as_me: failed program was:" >&5
5395: sed 's/^/| /' conftest.$ac_ext >&5
5396:
5397: ( exit $ac_status )
5398: ac_cv_header_stdc=no
5399: fi
1.1.1.2 ! root 5400: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 root 5401: fi
1.1.1.2 ! root 5402:
! 5403:
1.1 root 5404: fi
5405: fi
1.1.1.2 ! root 5406: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 5407: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.1 root 5408: if test $ac_cv_header_stdc = yes; then
5409:
5410: cat >>confdefs.h <<\_ACEOF
5411: #define STDC_HEADERS 1
5412: _ACEOF
5413:
5414: fi
5415:
5416: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5417:
5418:
5419:
5420:
5421:
5422:
5423:
5424:
5425:
5426: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.1.1.2 ! root 5427: inttypes.h stdint.h unistd.h
1.1 root 5428: do
5429: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.2 ! root 5430: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5431: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 5432: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 5433: echo $ECHO_N "(cached) $ECHO_C" >&6
5434: else
5435: cat >conftest.$ac_ext <<_ACEOF
5436: /* confdefs.h. */
5437: _ACEOF
5438: cat confdefs.h >>conftest.$ac_ext
5439: cat >>conftest.$ac_ext <<_ACEOF
5440: /* end confdefs.h. */
5441: $ac_includes_default
5442:
5443: #include <$ac_header>
5444: _ACEOF
5445: rm -f conftest.$ac_objext
1.1.1.2 ! root 5446: if { (ac_try="$ac_compile"
! 5447: case "(($ac_try" in
! 5448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5449: *) ac_try_echo=$ac_try;;
! 5450: esac
! 5451: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5452: (eval "$ac_compile") 2>conftest.er1
1.1 root 5453: ac_status=$?
1.1.1.2 ! root 5454: grep -v '^ *+' conftest.er1 >conftest.err
! 5455: rm -f conftest.er1
! 5456: cat conftest.err >&5
1.1 root 5457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5458: (exit $ac_status); } && {
! 5459: test -z "$ac_c_werror_flag" ||
! 5460: test ! -s conftest.err
! 5461: } && test -s conftest.$ac_objext; then
1.1 root 5462: eval "$as_ac_Header=yes"
5463: else
5464: echo "$as_me: failed program was:" >&5
5465: sed 's/^/| /' conftest.$ac_ext >&5
5466:
1.1.1.2 ! root 5467: eval "$as_ac_Header=no"
1.1 root 5468: fi
1.1.1.2 ! root 5469:
! 5470: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5471: fi
1.1.1.2 ! root 5472: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5473: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5474: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 5475: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476: cat >>confdefs.h <<_ACEOF
5477: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478: _ACEOF
5479:
5480: fi
5481:
5482: done
5483:
5484:
5485:
5486: for ac_header in dlfcn.h
5487: do
5488: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.2 ! root 5489: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 5490: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5491: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 5492: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 5493: echo $ECHO_N "(cached) $ECHO_C" >&6
5494: fi
1.1.1.2 ! root 5495: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5496: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5497: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 5498: else
5499: # Is the header compilable?
1.1.1.2 ! root 5500: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 5501: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 5502: cat >conftest.$ac_ext <<_ACEOF
5503: /* confdefs.h. */
5504: _ACEOF
5505: cat confdefs.h >>conftest.$ac_ext
5506: cat >>conftest.$ac_ext <<_ACEOF
5507: /* end confdefs.h. */
5508: $ac_includes_default
5509: #include <$ac_header>
5510: _ACEOF
5511: rm -f conftest.$ac_objext
1.1.1.2 ! root 5512: if { (ac_try="$ac_compile"
! 5513: case "(($ac_try" in
! 5514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5515: *) ac_try_echo=$ac_try;;
! 5516: esac
! 5517: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5518: (eval "$ac_compile") 2>conftest.er1
1.1 root 5519: ac_status=$?
1.1.1.2 ! root 5520: grep -v '^ *+' conftest.er1 >conftest.err
! 5521: rm -f conftest.er1
! 5522: cat conftest.err >&5
1.1 root 5523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5524: (exit $ac_status); } && {
! 5525: test -z "$ac_c_werror_flag" ||
! 5526: test ! -s conftest.err
! 5527: } && test -s conftest.$ac_objext; then
1.1 root 5528: ac_header_compiler=yes
5529: else
5530: echo "$as_me: failed program was:" >&5
5531: sed 's/^/| /' conftest.$ac_ext >&5
5532:
1.1.1.2 ! root 5533: ac_header_compiler=no
1.1 root 5534: fi
1.1.1.2 ! root 5535:
! 5536: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5537: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 5538: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 5539:
5540: # Is the header present?
1.1.1.2 ! root 5541: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 5542: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 5543: cat >conftest.$ac_ext <<_ACEOF
5544: /* confdefs.h. */
5545: _ACEOF
5546: cat confdefs.h >>conftest.$ac_ext
5547: cat >>conftest.$ac_ext <<_ACEOF
5548: /* end confdefs.h. */
5549: #include <$ac_header>
5550: _ACEOF
1.1.1.2 ! root 5551: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 5552: case "(($ac_try" in
! 5553: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5554: *) ac_try_echo=$ac_try;;
! 5555: esac
! 5556: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5557: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 5558: ac_status=$?
5559: grep -v '^ *+' conftest.er1 >conftest.err
5560: rm -f conftest.er1
5561: cat conftest.err >&5
5562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5563: (exit $ac_status); } >/dev/null && {
! 5564: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 5565: test ! -s conftest.err
! 5566: }; then
1.1 root 5567: ac_header_preproc=yes
5568: else
5569: echo "$as_me: failed program was:" >&5
5570: sed 's/^/| /' conftest.$ac_ext >&5
5571:
5572: ac_header_preproc=no
5573: fi
1.1.1.2 ! root 5574:
1.1 root 5575: rm -f conftest.err conftest.$ac_ext
1.1.1.2 ! root 5576: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 5577: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 5578:
5579: # So? What about this header?
1.1.1.2 ! root 5580: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 5581: yes:no: )
1.1 root 5582: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5583: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.2 ! root 5584: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 5585: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 5586: ac_header_preproc=yes
1.1 root 5587: ;;
1.1.1.2 ! root 5588: no:yes:* )
1.1 root 5589: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5590: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.2 ! root 5591: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 5592: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 5593: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 5594: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 5595: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 5596: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 5597: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5598: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.2 ! root 5599: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 5600: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 5601: ( cat <<\_ASBOX
! 5602: ## ---------------------------------- ##
! 5603: ## Report this to [email protected] ##
! 5604: ## ---------------------------------- ##
1.1 root 5605: _ASBOX
1.1.1.2 ! root 5606: ) | sed "s/^/$as_me: WARNING: /" >&2
1.1 root 5607: ;;
5608: esac
1.1.1.2 ! root 5609: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5610: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 5611: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 5612: echo $ECHO_N "(cached) $ECHO_C" >&6
5613: else
1.1.1.2 ! root 5614: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 5615: fi
1.1.1.2 ! root 5616: ac_res=`eval echo '${'$as_ac_Header'}'`
! 5617: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 5618: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 5619:
5620: fi
5621: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5622: cat >>confdefs.h <<_ACEOF
5623: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624: _ACEOF
5625:
5626: fi
5627:
5628: done
5629:
1.1.1.2 ! root 5630: ac_ext=cpp
1.1 root 5631: ac_cpp='$CXXCPP $CPPFLAGS'
5632: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.1.2 ! root 5635: if test -z "$CXX"; then
! 5636: if test -n "$CCC"; then
! 5637: CXX=$CCC
! 5638: else
! 5639: if test -n "$ac_tool_prefix"; then
! 5640: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 root 5641: do
5642: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 ! root 5644: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5645: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 5646: if test "${ac_cv_prog_CXX+set}" = set; then
5647: echo $ECHO_N "(cached) $ECHO_C" >&6
5648: else
5649: if test -n "$CXX"; then
5650: ac_cv_prog_CXX="$CXX" # Let the user override the test.
5651: else
5652: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653: for as_dir in $PATH
5654: do
5655: IFS=$as_save_IFS
5656: test -z "$as_dir" && as_dir=.
5657: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 5658: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 5659: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5660: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661: break 2
5662: fi
5663: done
5664: done
1.1.1.2 ! root 5665: IFS=$as_save_IFS
1.1 root 5666:
5667: fi
5668: fi
5669: CXX=$ac_cv_prog_CXX
5670: if test -n "$CXX"; then
1.1.1.2 ! root 5671: { echo "$as_me:$LINENO: result: $CXX" >&5
! 5672: echo "${ECHO_T}$CXX" >&6; }
1.1 root 5673: else
1.1.1.2 ! root 5674: { echo "$as_me:$LINENO: result: no" >&5
! 5675: echo "${ECHO_T}no" >&6; }
1.1 root 5676: fi
5677:
1.1.1.2 ! root 5678:
1.1 root 5679: test -n "$CXX" && break
5680: done
5681: fi
5682: if test -z "$CXX"; then
5683: ac_ct_CXX=$CXX
1.1.1.2 ! root 5684: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 root 5685: do
5686: # Extract the first word of "$ac_prog", so it can be a program name with args.
5687: set dummy $ac_prog; ac_word=$2
1.1.1.2 ! root 5688: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5689: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 5690: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5691: echo $ECHO_N "(cached) $ECHO_C" >&6
5692: else
5693: if test -n "$ac_ct_CXX"; then
5694: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5695: else
5696: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697: for as_dir in $PATH
5698: do
5699: IFS=$as_save_IFS
5700: test -z "$as_dir" && as_dir=.
5701: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 5702: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 5703: ac_cv_prog_ac_ct_CXX="$ac_prog"
5704: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705: break 2
5706: fi
5707: done
5708: done
1.1.1.2 ! root 5709: IFS=$as_save_IFS
1.1 root 5710:
5711: fi
5712: fi
5713: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5714: if test -n "$ac_ct_CXX"; then
1.1.1.2 ! root 5715: { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 5716: echo "${ECHO_T}$ac_ct_CXX" >&6; }
1.1 root 5717: else
1.1.1.2 ! root 5718: { echo "$as_me:$LINENO: result: no" >&5
! 5719: echo "${ECHO_T}no" >&6; }
1.1 root 5720: fi
5721:
1.1.1.2 ! root 5722:
1.1 root 5723: test -n "$ac_ct_CXX" && break
5724: done
5725:
1.1.1.2 ! root 5726: if test "x$ac_ct_CXX" = x; then
! 5727: CXX="g++"
! 5728: else
! 5729: case $cross_compiling:$ac_tool_warned in
! 5730: yes:)
! 5731: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 5732: whose name does not start with the host triplet. If you think this
! 5733: configuration is useful to you, please write to [email protected]." >&5
! 5734: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 5735: whose name does not start with the host triplet. If you think this
! 5736: configuration is useful to you, please write to [email protected]." >&2;}
! 5737: ac_tool_warned=yes ;;
! 5738: esac
! 5739: CXX=$ac_ct_CXX
! 5740: fi
1.1 root 5741: fi
5742:
1.1.1.2 ! root 5743: fi
! 5744: fi
1.1 root 5745: # Provide some information about the compiler.
1.1.1.2 ! root 5746: echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1.1 root 5747: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.2 ! root 5748: { (ac_try="$ac_compiler --version >&5"
! 5749: case "(($ac_try" in
! 5750: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5751: *) ac_try_echo=$ac_try;;
! 5752: esac
! 5753: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5754: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 5755: ac_status=$?
5756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757: (exit $ac_status); }
1.1.1.2 ! root 5758: { (ac_try="$ac_compiler -v >&5"
! 5759: case "(($ac_try" in
! 5760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5761: *) ac_try_echo=$ac_try;;
! 5762: esac
! 5763: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5764: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 5765: ac_status=$?
5766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767: (exit $ac_status); }
1.1.1.2 ! root 5768: { (ac_try="$ac_compiler -V >&5"
! 5769: case "(($ac_try" in
! 5770: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5771: *) ac_try_echo=$ac_try;;
! 5772: esac
! 5773: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5774: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 5775: ac_status=$?
5776: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777: (exit $ac_status); }
5778:
1.1.1.2 ! root 5779: { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 5780: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
1.1 root 5781: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5782: echo $ECHO_N "(cached) $ECHO_C" >&6
5783: else
5784: cat >conftest.$ac_ext <<_ACEOF
5785: /* confdefs.h. */
5786: _ACEOF
5787: cat confdefs.h >>conftest.$ac_ext
5788: cat >>conftest.$ac_ext <<_ACEOF
5789: /* end confdefs.h. */
5790:
5791: int
5792: main ()
5793: {
5794: #ifndef __GNUC__
5795: choke me
5796: #endif
5797:
5798: ;
5799: return 0;
5800: }
5801: _ACEOF
5802: rm -f conftest.$ac_objext
1.1.1.2 ! root 5803: if { (ac_try="$ac_compile"
! 5804: case "(($ac_try" in
! 5805: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5806: *) ac_try_echo=$ac_try;;
! 5807: esac
! 5808: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5809: (eval "$ac_compile") 2>conftest.er1
1.1 root 5810: ac_status=$?
1.1.1.2 ! root 5811: grep -v '^ *+' conftest.er1 >conftest.err
! 5812: rm -f conftest.er1
! 5813: cat conftest.err >&5
1.1 root 5814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5815: (exit $ac_status); } && {
! 5816: test -z "$ac_cxx_werror_flag" ||
! 5817: test ! -s conftest.err
! 5818: } && test -s conftest.$ac_objext; then
1.1 root 5819: ac_compiler_gnu=yes
5820: else
5821: echo "$as_me: failed program was:" >&5
5822: sed 's/^/| /' conftest.$ac_ext >&5
5823:
1.1.1.2 ! root 5824: ac_compiler_gnu=no
1.1 root 5825: fi
1.1.1.2 ! root 5826:
! 5827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5828: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5829:
5830: fi
1.1.1.2 ! root 5831: { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 5832: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
1.1 root 5833: GXX=`test $ac_compiler_gnu = yes && echo yes`
5834: ac_test_CXXFLAGS=${CXXFLAGS+set}
5835: ac_save_CXXFLAGS=$CXXFLAGS
1.1.1.2 ! root 5836: { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 5837: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
1.1 root 5838: if test "${ac_cv_prog_cxx_g+set}" = set; then
5839: echo $ECHO_N "(cached) $ECHO_C" >&6
5840: else
1.1.1.2 ! root 5841: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 5842: ac_cxx_werror_flag=yes
! 5843: ac_cv_prog_cxx_g=no
! 5844: CXXFLAGS="-g"
! 5845: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5846: /* confdefs.h. */
5847: _ACEOF
5848: cat confdefs.h >>conftest.$ac_ext
5849: cat >>conftest.$ac_ext <<_ACEOF
5850: /* end confdefs.h. */
5851:
5852: int
5853: main ()
5854: {
5855:
5856: ;
5857: return 0;
5858: }
5859: _ACEOF
5860: rm -f conftest.$ac_objext
1.1.1.2 ! root 5861: if { (ac_try="$ac_compile"
! 5862: case "(($ac_try" in
! 5863: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5864: *) ac_try_echo=$ac_try;;
! 5865: esac
! 5866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5867: (eval "$ac_compile") 2>conftest.er1
1.1 root 5868: ac_status=$?
1.1.1.2 ! root 5869: grep -v '^ *+' conftest.er1 >conftest.err
! 5870: rm -f conftest.er1
! 5871: cat conftest.err >&5
1.1 root 5872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5873: (exit $ac_status); } && {
! 5874: test -z "$ac_cxx_werror_flag" ||
! 5875: test ! -s conftest.err
! 5876: } && test -s conftest.$ac_objext; then
1.1 root 5877: ac_cv_prog_cxx_g=yes
5878: else
5879: echo "$as_me: failed program was:" >&5
5880: sed 's/^/| /' conftest.$ac_ext >&5
5881:
1.1.1.2 ! root 5882: CXXFLAGS=""
! 5883: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5884: /* confdefs.h. */
5885: _ACEOF
5886: cat confdefs.h >>conftest.$ac_ext
5887: cat >>conftest.$ac_ext <<_ACEOF
5888: /* end confdefs.h. */
1.1.1.2 ! root 5889:
1.1 root 5890: int
5891: main ()
5892: {
1.1.1.2 ! root 5893:
1.1 root 5894: ;
5895: return 0;
5896: }
5897: _ACEOF
5898: rm -f conftest.$ac_objext
1.1.1.2 ! root 5899: if { (ac_try="$ac_compile"
! 5900: case "(($ac_try" in
! 5901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5902: *) ac_try_echo=$ac_try;;
! 5903: esac
! 5904: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5905: (eval "$ac_compile") 2>conftest.er1
1.1 root 5906: ac_status=$?
1.1.1.2 ! root 5907: grep -v '^ *+' conftest.er1 >conftest.err
! 5908: rm -f conftest.er1
! 5909: cat conftest.err >&5
1.1 root 5910: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5911: (exit $ac_status); } && {
! 5912: test -z "$ac_cxx_werror_flag" ||
! 5913: test ! -s conftest.err
! 5914: } && test -s conftest.$ac_objext; then
1.1 root 5915: :
5916: else
5917: echo "$as_me: failed program was:" >&5
5918: sed 's/^/| /' conftest.$ac_ext >&5
5919:
1.1.1.2 ! root 5920: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 5921: CXXFLAGS="-g"
! 5922: cat >conftest.$ac_ext <<_ACEOF
1.1 root 5923: /* confdefs.h. */
5924: _ACEOF
5925: cat confdefs.h >>conftest.$ac_ext
5926: cat >>conftest.$ac_ext <<_ACEOF
5927: /* end confdefs.h. */
1.1.1.2 ! root 5928:
1.1 root 5929: int
5930: main ()
5931: {
1.1.1.2 ! root 5932:
1.1 root 5933: ;
5934: return 0;
5935: }
5936: _ACEOF
5937: rm -f conftest.$ac_objext
1.1.1.2 ! root 5938: if { (ac_try="$ac_compile"
! 5939: case "(($ac_try" in
! 5940: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5941: *) ac_try_echo=$ac_try;;
! 5942: esac
! 5943: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 5944: (eval "$ac_compile") 2>conftest.er1
1.1 root 5945: ac_status=$?
1.1.1.2 ! root 5946: grep -v '^ *+' conftest.er1 >conftest.err
! 5947: rm -f conftest.er1
! 5948: cat conftest.err >&5
1.1 root 5949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 5950: (exit $ac_status); } && {
! 5951: test -z "$ac_cxx_werror_flag" ||
! 5952: test ! -s conftest.err
! 5953: } && test -s conftest.$ac_objext; then
! 5954: ac_cv_prog_cxx_g=yes
1.1 root 5955: else
5956: echo "$as_me: failed program was:" >&5
5957: sed 's/^/| /' conftest.$ac_ext >&5
5958:
1.1.1.2 ! root 5959:
1.1 root 5960: fi
1.1.1.2 ! root 5961:
! 5962: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5963: fi
! 5964:
! 5965: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5966: fi
5967:
1.1.1.2 ! root 5968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5969: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 5970: fi
! 5971: { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 5972: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
! 5973: if test "$ac_test_CXXFLAGS" = set; then
! 5974: CXXFLAGS=$ac_save_CXXFLAGS
! 5975: elif test $ac_cv_prog_cxx_g = yes; then
! 5976: if test "$GXX" = yes; then
! 5977: CXXFLAGS="-g -O2"
! 5978: else
! 5979: CXXFLAGS="-g"
! 5980: fi
! 5981: else
! 5982: if test "$GXX" = yes; then
! 5983: CXXFLAGS="-O2"
! 5984: else
! 5985: CXXFLAGS=
! 5986: fi
! 5987: fi
! 5988: ac_ext=cpp
1.1 root 5989: ac_cpp='$CXXCPP $CPPFLAGS'
5990: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5993:
5994: depcc="$CXX" am_compiler_list=
5995:
1.1.1.2 ! root 5996: { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
! 5997: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
1.1 root 5998: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5999: echo $ECHO_N "(cached) $ECHO_C" >&6
6000: else
6001: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6002: # We make a subdir and do the tests there. Otherwise we can end up
6003: # making bogus files that we don't know about and never remove. For
6004: # instance it was reported that on HP-UX the gcc test will end up
6005: # making a dummy file named `D' -- because `-MD' means `put the output
6006: # in D'.
6007: mkdir conftest.dir
6008: # Copy depcomp to subdir because otherwise we won't find it if we're
6009: # using a relative directory.
6010: cp "$am_depcomp" conftest.dir
6011: cd conftest.dir
1.1.1.2 ! root 6012: # We will build objects and dependencies in a subdirectory because
! 6013: # it helps to detect inapplicable dependency modes. For instance
! 6014: # both Tru64's cc and ICC support -MD to output dependencies as a
! 6015: # side effect of compilation, but ICC will put the dependencies in
! 6016: # the current directory while Tru64 will put them in the object
! 6017: # directory.
! 6018: mkdir sub
1.1 root 6019:
6020: am_cv_CXX_dependencies_compiler_type=none
6021: if test "$am_compiler_list" = ""; then
6022: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6023: fi
6024: for depmode in $am_compiler_list; do
1.1.1.2 ! root 6025: # Setup a source with many dependencies, because some compilers
! 6026: # like to wrap large dependency lists on column 80 (with \), and
! 6027: # we should not choose a depcomp mode which is confused by this.
! 6028: #
1.1 root 6029: # We need to recreate these files for each test, as the compiler may
6030: # overwrite some of them when testing with obscure command lines.
6031: # This happens at least with the AIX C compiler.
1.1.1.2 ! root 6032: : > sub/conftest.c
! 6033: for i in 1 2 3 4 5 6; do
! 6034: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 6035: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
! 6036: # Solaris 8's {/usr,}/bin/sh.
! 6037: touch sub/conftst$i.h
! 6038: done
! 6039: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1 root 6040:
6041: case $depmode in
6042: nosideeffect)
6043: # after this tag, mechanisms are not by side-effect, so they'll
6044: # only be used when explicitly requested
6045: if test "x$enable_dependency_tracking" = xyes; then
6046: continue
6047: else
6048: break
6049: fi
6050: ;;
6051: none) break ;;
6052: esac
6053: # We check with `-c' and `-o' for the sake of the "dashmstdout"
6054: # mode. It turns out that the SunPro C++ compiler does not properly
6055: # handle `-M -o', and we need to detect this.
6056: if depmode=$depmode \
1.1.1.2 ! root 6057: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
! 6058: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 6059: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.1 root 6060: >/dev/null 2>conftest.err &&
1.1.1.2 ! root 6061: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 6062: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 6063: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.1 root 6064: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6065: # icc doesn't choke on unknown options, it will just issue warnings
1.1.1.2 ! root 6066: # or remarks (even with -Werror). So we grep stderr for any message
! 6067: # that says an option was ignored or not supported.
! 6068: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 6069: # icc: Command line warning: ignoring option '-M'; no argument required
! 6070: # The diagnosis changed in icc 8.0:
! 6071: # icc: Command line remark: option '-MP' not supported
! 6072: if (grep 'ignoring option' conftest.err ||
! 6073: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.1 root 6074: am_cv_CXX_dependencies_compiler_type=$depmode
6075: break
6076: fi
6077: fi
6078: done
6079:
6080: cd ..
6081: rm -rf conftest.dir
6082: else
6083: am_cv_CXX_dependencies_compiler_type=none
6084: fi
6085:
6086: fi
1.1.1.2 ! root 6087: { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 6088: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
1.1 root 6089: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6090:
1.1.1.2 ! root 6091: if
1.1 root 6092: test "x$enable_dependency_tracking" != xno \
6093: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6094: am__fastdepCXX_TRUE=
6095: am__fastdepCXX_FALSE='#'
6096: else
6097: am__fastdepCXX_TRUE='#'
6098: am__fastdepCXX_FALSE=
6099: fi
6100:
6101:
1.1.1.2 ! root 6102: ac_ext=cpp
1.1 root 6103: ac_cpp='$CXXCPP $CPPFLAGS'
6104: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1.1.2 ! root 6107: { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 6108: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
1.1 root 6109: if test -z "$CXXCPP"; then
6110: if test "${ac_cv_prog_CXXCPP+set}" = set; then
6111: echo $ECHO_N "(cached) $ECHO_C" >&6
6112: else
6113: # Double quotes because CXXCPP needs to be expanded
6114: for CXXCPP in "$CXX -E" "/lib/cpp"
6115: do
6116: ac_preproc_ok=false
6117: for ac_cxx_preproc_warn_flag in '' yes
6118: do
6119: # Use a header file that comes with gcc, so configuring glibc
6120: # with a fresh cross-compiler works.
6121: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6122: # <limits.h> exists even on freestanding compilers.
6123: # On the NeXT, cc -E runs the code through the compiler's parser,
6124: # not just through cpp. "Syntax error" is here to catch this case.
6125: cat >conftest.$ac_ext <<_ACEOF
6126: /* confdefs.h. */
6127: _ACEOF
6128: cat confdefs.h >>conftest.$ac_ext
6129: cat >>conftest.$ac_ext <<_ACEOF
6130: /* end confdefs.h. */
6131: #ifdef __STDC__
6132: # include <limits.h>
6133: #else
6134: # include <assert.h>
6135: #endif
1.1.1.2 ! root 6136: Syntax error
1.1 root 6137: _ACEOF
1.1.1.2 ! root 6138: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6139: case "(($ac_try" in
! 6140: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6141: *) ac_try_echo=$ac_try;;
! 6142: esac
! 6143: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6144: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6145: ac_status=$?
6146: grep -v '^ *+' conftest.er1 >conftest.err
6147: rm -f conftest.er1
6148: cat conftest.err >&5
6149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 6150: (exit $ac_status); } >/dev/null && {
! 6151: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 6152: test ! -s conftest.err
! 6153: }; then
1.1 root 6154: :
6155: else
6156: echo "$as_me: failed program was:" >&5
6157: sed 's/^/| /' conftest.$ac_ext >&5
6158:
6159: # Broken: fails on valid input.
6160: continue
6161: fi
1.1.1.2 ! root 6162:
1.1 root 6163: rm -f conftest.err conftest.$ac_ext
6164:
1.1.1.2 ! root 6165: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 6166: # can be detected and how.
6167: cat >conftest.$ac_ext <<_ACEOF
6168: /* confdefs.h. */
6169: _ACEOF
6170: cat confdefs.h >>conftest.$ac_ext
6171: cat >>conftest.$ac_ext <<_ACEOF
6172: /* end confdefs.h. */
6173: #include <ac_nonexistent.h>
6174: _ACEOF
1.1.1.2 ! root 6175: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6176: case "(($ac_try" in
! 6177: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6178: *) ac_try_echo=$ac_try;;
! 6179: esac
! 6180: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6181: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6182: ac_status=$?
6183: grep -v '^ *+' conftest.er1 >conftest.err
6184: rm -f conftest.er1
6185: cat conftest.err >&5
6186: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 6187: (exit $ac_status); } >/dev/null && {
! 6188: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 6189: test ! -s conftest.err
! 6190: }; then
1.1 root 6191: # Broken: success on invalid input.
6192: continue
6193: else
6194: echo "$as_me: failed program was:" >&5
6195: sed 's/^/| /' conftest.$ac_ext >&5
6196:
6197: # Passes both tests.
6198: ac_preproc_ok=:
6199: break
6200: fi
1.1.1.2 ! root 6201:
1.1 root 6202: rm -f conftest.err conftest.$ac_ext
6203:
6204: done
6205: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6206: rm -f conftest.err conftest.$ac_ext
6207: if $ac_preproc_ok; then
6208: break
6209: fi
6210:
6211: done
6212: ac_cv_prog_CXXCPP=$CXXCPP
6213:
6214: fi
6215: CXXCPP=$ac_cv_prog_CXXCPP
6216: else
6217: ac_cv_prog_CXXCPP=$CXXCPP
6218: fi
1.1.1.2 ! root 6219: { echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 6220: echo "${ECHO_T}$CXXCPP" >&6; }
1.1 root 6221: ac_preproc_ok=false
6222: for ac_cxx_preproc_warn_flag in '' yes
6223: do
6224: # Use a header file that comes with gcc, so configuring glibc
6225: # with a fresh cross-compiler works.
6226: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227: # <limits.h> exists even on freestanding compilers.
6228: # On the NeXT, cc -E runs the code through the compiler's parser,
6229: # not just through cpp. "Syntax error" is here to catch this case.
6230: cat >conftest.$ac_ext <<_ACEOF
6231: /* confdefs.h. */
6232: _ACEOF
6233: cat confdefs.h >>conftest.$ac_ext
6234: cat >>conftest.$ac_ext <<_ACEOF
6235: /* end confdefs.h. */
6236: #ifdef __STDC__
6237: # include <limits.h>
6238: #else
6239: # include <assert.h>
6240: #endif
1.1.1.2 ! root 6241: Syntax error
1.1 root 6242: _ACEOF
1.1.1.2 ! root 6243: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6244: case "(($ac_try" in
! 6245: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6246: *) ac_try_echo=$ac_try;;
! 6247: esac
! 6248: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6249: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6250: ac_status=$?
6251: grep -v '^ *+' conftest.er1 >conftest.err
6252: rm -f conftest.er1
6253: cat conftest.err >&5
6254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 6255: (exit $ac_status); } >/dev/null && {
! 6256: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 6257: test ! -s conftest.err
! 6258: }; then
1.1 root 6259: :
6260: else
6261: echo "$as_me: failed program was:" >&5
6262: sed 's/^/| /' conftest.$ac_ext >&5
6263:
6264: # Broken: fails on valid input.
6265: continue
6266: fi
1.1.1.2 ! root 6267:
1.1 root 6268: rm -f conftest.err conftest.$ac_ext
6269:
1.1.1.2 ! root 6270: # OK, works on sane cases. Now check whether nonexistent headers
1.1 root 6271: # can be detected and how.
6272: cat >conftest.$ac_ext <<_ACEOF
6273: /* confdefs.h. */
6274: _ACEOF
6275: cat confdefs.h >>conftest.$ac_ext
6276: cat >>conftest.$ac_ext <<_ACEOF
6277: /* end confdefs.h. */
6278: #include <ac_nonexistent.h>
6279: _ACEOF
1.1.1.2 ! root 6280: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 6281: case "(($ac_try" in
! 6282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6283: *) ac_try_echo=$ac_try;;
! 6284: esac
! 6285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6286: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 6287: ac_status=$?
6288: grep -v '^ *+' conftest.er1 >conftest.err
6289: rm -f conftest.er1
6290: cat conftest.err >&5
6291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 6292: (exit $ac_status); } >/dev/null && {
! 6293: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 6294: test ! -s conftest.err
! 6295: }; then
1.1 root 6296: # Broken: success on invalid input.
6297: continue
6298: else
6299: echo "$as_me: failed program was:" >&5
6300: sed 's/^/| /' conftest.$ac_ext >&5
6301:
6302: # Passes both tests.
6303: ac_preproc_ok=:
6304: break
6305: fi
1.1.1.2 ! root 6306:
1.1 root 6307: rm -f conftest.err conftest.$ac_ext
6308:
6309: done
6310: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6311: rm -f conftest.err conftest.$ac_ext
6312: if $ac_preproc_ok; then
6313: :
6314: else
6315: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6316: See \`config.log' for more details." >&5
6317: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6318: See \`config.log' for more details." >&2;}
6319: { (exit 1); exit 1; }; }
6320: fi
6321:
1.1.1.2 ! root 6322: ac_ext=cpp
1.1 root 6323: ac_cpp='$CXXCPP $CPPFLAGS'
6324: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327:
6328:
6329: ac_ext=f
6330: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6331: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6333: if test -n "$ac_tool_prefix"; then
1.1.1.2 ! root 6334: 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
1.1 root 6335: do
6336: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6337: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.2 ! root 6338: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6339: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 6340: if test "${ac_cv_prog_F77+set}" = set; then
6341: echo $ECHO_N "(cached) $ECHO_C" >&6
6342: else
6343: if test -n "$F77"; then
6344: ac_cv_prog_F77="$F77" # Let the user override the test.
6345: else
6346: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347: for as_dir in $PATH
6348: do
6349: IFS=$as_save_IFS
6350: test -z "$as_dir" && as_dir=.
6351: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 6352: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 6353: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6354: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355: break 2
6356: fi
6357: done
6358: done
1.1.1.2 ! root 6359: IFS=$as_save_IFS
1.1 root 6360:
6361: fi
6362: fi
6363: F77=$ac_cv_prog_F77
6364: if test -n "$F77"; then
1.1.1.2 ! root 6365: { echo "$as_me:$LINENO: result: $F77" >&5
! 6366: echo "${ECHO_T}$F77" >&6; }
1.1 root 6367: else
1.1.1.2 ! root 6368: { echo "$as_me:$LINENO: result: no" >&5
! 6369: echo "${ECHO_T}no" >&6; }
1.1 root 6370: fi
6371:
1.1.1.2 ! root 6372:
1.1 root 6373: test -n "$F77" && break
6374: done
6375: fi
6376: if test -z "$F77"; then
6377: ac_ct_F77=$F77
1.1.1.2 ! root 6378: 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
1.1 root 6379: do
6380: # Extract the first word of "$ac_prog", so it can be a program name with args.
6381: set dummy $ac_prog; ac_word=$2
1.1.1.2 ! root 6382: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6383: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 6384: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6385: echo $ECHO_N "(cached) $ECHO_C" >&6
6386: else
6387: if test -n "$ac_ct_F77"; then
6388: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6389: else
6390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391: for as_dir in $PATH
6392: do
6393: IFS=$as_save_IFS
6394: test -z "$as_dir" && as_dir=.
6395: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 6396: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 6397: ac_cv_prog_ac_ct_F77="$ac_prog"
6398: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399: break 2
6400: fi
6401: done
6402: done
1.1.1.2 ! root 6403: IFS=$as_save_IFS
1.1 root 6404:
6405: fi
6406: fi
6407: ac_ct_F77=$ac_cv_prog_ac_ct_F77
6408: if test -n "$ac_ct_F77"; then
1.1.1.2 ! root 6409: { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
! 6410: echo "${ECHO_T}$ac_ct_F77" >&6; }
1.1 root 6411: else
1.1.1.2 ! root 6412: { echo "$as_me:$LINENO: result: no" >&5
! 6413: echo "${ECHO_T}no" >&6; }
1.1 root 6414: fi
6415:
1.1.1.2 ! root 6416:
1.1 root 6417: test -n "$ac_ct_F77" && break
6418: done
6419:
1.1.1.2 ! root 6420: if test "x$ac_ct_F77" = x; then
! 6421: F77=""
! 6422: else
! 6423: case $cross_compiling:$ac_tool_warned in
! 6424: yes:)
! 6425: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 6426: whose name does not start with the host triplet. If you think this
! 6427: configuration is useful to you, please write to [email protected]." >&5
! 6428: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 6429: whose name does not start with the host triplet. If you think this
! 6430: configuration is useful to you, please write to [email protected]." >&2;}
! 6431: ac_tool_warned=yes ;;
! 6432: esac
! 6433: F77=$ac_ct_F77
! 6434: fi
1.1 root 6435: fi
6436:
6437:
6438: # Provide some information about the compiler.
1.1.1.2 ! root 6439: echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
1.1 root 6440: ac_compiler=`set X $ac_compile; echo $2`
1.1.1.2 ! root 6441: { (ac_try="$ac_compiler --version >&5"
! 6442: case "(($ac_try" in
! 6443: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6444: *) ac_try_echo=$ac_try;;
! 6445: esac
! 6446: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6447: (eval "$ac_compiler --version >&5") 2>&5
1.1 root 6448: ac_status=$?
6449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450: (exit $ac_status); }
1.1.1.2 ! root 6451: { (ac_try="$ac_compiler -v >&5"
! 6452: case "(($ac_try" in
! 6453: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6454: *) ac_try_echo=$ac_try;;
! 6455: esac
! 6456: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6457: (eval "$ac_compiler -v >&5") 2>&5
1.1 root 6458: ac_status=$?
6459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460: (exit $ac_status); }
1.1.1.2 ! root 6461: { (ac_try="$ac_compiler -V >&5"
! 6462: case "(($ac_try" in
! 6463: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6464: *) ac_try_echo=$ac_try;;
! 6465: esac
! 6466: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6467: (eval "$ac_compiler -V >&5") 2>&5
1.1 root 6468: ac_status=$?
6469: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470: (exit $ac_status); }
1.1.1.2 ! root 6471: rm -f a.out
1.1 root 6472:
6473: # If we don't use `.F' as extension, the preprocessor is not run on the
1.1.1.2 ! root 6474: # input file. (Note that this only needs to work for GNU compilers.)
1.1 root 6475: ac_save_ext=$ac_ext
6476: ac_ext=F
1.1.1.2 ! root 6477: { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
! 6478: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
1.1 root 6479: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6480: echo $ECHO_N "(cached) $ECHO_C" >&6
6481: else
6482: cat >conftest.$ac_ext <<_ACEOF
6483: program main
6484: #ifndef __GNUC__
6485: choke me
6486: #endif
6487:
6488: end
6489: _ACEOF
6490: rm -f conftest.$ac_objext
1.1.1.2 ! root 6491: if { (ac_try="$ac_compile"
! 6492: case "(($ac_try" in
! 6493: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6494: *) ac_try_echo=$ac_try;;
! 6495: esac
! 6496: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6497: (eval "$ac_compile") 2>conftest.er1
1.1 root 6498: ac_status=$?
1.1.1.2 ! root 6499: grep -v '^ *+' conftest.er1 >conftest.err
! 6500: rm -f conftest.er1
! 6501: cat conftest.err >&5
1.1 root 6502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 6503: (exit $ac_status); } && {
! 6504: test -z "$ac_f77_werror_flag" ||
! 6505: test ! -s conftest.err
! 6506: } && test -s conftest.$ac_objext; then
1.1 root 6507: ac_compiler_gnu=yes
6508: else
6509: echo "$as_me: failed program was:" >&5
6510: sed 's/^/| /' conftest.$ac_ext >&5
6511:
1.1.1.2 ! root 6512: ac_compiler_gnu=no
1.1 root 6513: fi
1.1.1.2 ! root 6514:
! 6515: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6516: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6517:
6518: fi
1.1.1.2 ! root 6519: { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
! 6520: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
1.1 root 6521: ac_ext=$ac_save_ext
6522: ac_test_FFLAGS=${FFLAGS+set}
6523: ac_save_FFLAGS=$FFLAGS
6524: FFLAGS=
1.1.1.2 ! root 6525: { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
! 6526: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
1.1 root 6527: if test "${ac_cv_prog_f77_g+set}" = set; then
6528: echo $ECHO_N "(cached) $ECHO_C" >&6
6529: else
6530: FFLAGS=-g
6531: cat >conftest.$ac_ext <<_ACEOF
6532: program main
6533:
6534: end
6535: _ACEOF
6536: rm -f conftest.$ac_objext
1.1.1.2 ! root 6537: if { (ac_try="$ac_compile"
! 6538: case "(($ac_try" in
! 6539: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 6540: *) ac_try_echo=$ac_try;;
! 6541: esac
! 6542: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 6543: (eval "$ac_compile") 2>conftest.er1
1.1 root 6544: ac_status=$?
1.1.1.2 ! root 6545: grep -v '^ *+' conftest.er1 >conftest.err
! 6546: rm -f conftest.er1
! 6547: cat conftest.err >&5
1.1 root 6548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 6549: (exit $ac_status); } && {
! 6550: test -z "$ac_f77_werror_flag" ||
! 6551: test ! -s conftest.err
! 6552: } && test -s conftest.$ac_objext; then
1.1 root 6553: ac_cv_prog_f77_g=yes
6554: else
6555: echo "$as_me: failed program was:" >&5
6556: sed 's/^/| /' conftest.$ac_ext >&5
6557:
1.1.1.2 ! root 6558: ac_cv_prog_f77_g=no
1.1 root 6559: fi
1.1.1.2 ! root 6560:
! 6561: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 6562:
6563: fi
1.1.1.2 ! root 6564: { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
! 6565: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
1.1 root 6566: if test "$ac_test_FFLAGS" = set; then
6567: FFLAGS=$ac_save_FFLAGS
6568: elif test $ac_cv_prog_f77_g = yes; then
1.1.1.2 ! root 6569: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
1.1 root 6570: FFLAGS="-g -O2"
6571: else
6572: FFLAGS="-g"
6573: fi
6574: else
1.1.1.2 ! root 6575: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
1.1 root 6576: FFLAGS="-O2"
6577: else
6578: FFLAGS=
6579: fi
6580: fi
1.1.1.2 ! root 6581:
! 6582: G77=`test $ac_compiler_gnu = yes && echo yes`
1.1 root 6583: ac_ext=c
6584: ac_cpp='$CPP $CPPFLAGS'
6585: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588:
6589:
6590:
6591: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6592:
6593: # find the maximum length of command line arguments
1.1.1.2 ! root 6594: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 6595: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
1.1 root 6596: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6597: echo $ECHO_N "(cached) $ECHO_C" >&6
6598: else
6599: i=0
1.1.1.2 ! root 6600: teststring="ABCD"
1.1 root 6601:
6602: case $build_os in
6603: msdosdjgpp*)
6604: # On DJGPP, this test can blow up pretty badly due to problems in libc
6605: # (any single argument exceeding 2000 bytes causes a buffer overrun
6606: # during glob expansion). Even if it were fixed, the result of this
6607: # check would be larger than it should be.
6608: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6609: ;;
6610:
6611: gnu*)
6612: # Under GNU Hurd, this test is not required because there is
6613: # no limit to the length of command line arguments.
6614: # Libtool will interpret -1 as no limit whatsoever
6615: lt_cv_sys_max_cmd_len=-1;
6616: ;;
6617:
6618: cygwin* | mingw*)
6619: # On Win9x/ME, this test blows up -- it succeeds, but takes
6620: # about 5 minutes as the teststring grows exponentially.
6621: # Worse, since 9x/ME are not pre-emptively multitasking,
6622: # you end up with a "frozen" computer, even though with patience
6623: # the test eventually succeeds (with a max line length of 256k).
6624: # Instead, let's just punt: use the minimum linelength reported by
6625: # all of the supported platforms: 8192 (on NT/2K/XP).
6626: lt_cv_sys_max_cmd_len=8192;
6627: ;;
6628:
1.1.1.2 ! root 6629: amigaos*)
! 6630: # On AmigaOS with pdksh, this test takes hours, literally.
! 6631: # So we just punt and use a minimum line length of 8192.
! 6632: lt_cv_sys_max_cmd_len=8192;
! 6633: ;;
! 6634:
! 6635: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
! 6636: # This has been around since 386BSD, at least. Likely further.
! 6637: if test -x /sbin/sysctl; then
! 6638: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
! 6639: elif test -x /usr/sbin/sysctl; then
! 6640: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
! 6641: else
! 6642: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
! 6643: fi
! 6644: # And add a safety zone
! 6645: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 6646: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 6647: ;;
! 6648:
! 6649: interix*)
! 6650: # We know the value 262144 and hardcode it with a safety zone (like BSD)
! 6651: lt_cv_sys_max_cmd_len=196608
! 6652: ;;
! 6653:
! 6654: osf*)
! 6655: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
! 6656: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
! 6657: # nice to cause kernel panics so lets avoid the loop below.
! 6658: # First set a reasonable default.
! 6659: lt_cv_sys_max_cmd_len=16384
! 6660: #
! 6661: if test -x /sbin/sysconfig; then
! 6662: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
! 6663: *1*) lt_cv_sys_max_cmd_len=-1 ;;
! 6664: esac
! 6665: fi
! 6666: ;;
! 6667: sco3.2v5*)
! 6668: lt_cv_sys_max_cmd_len=102400
! 6669: ;;
! 6670: sysv5* | sco5v6* | sysv4.2uw2*)
! 6671: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
! 6672: if test -n "$kargmax"; then
! 6673: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
! 6674: else
! 6675: lt_cv_sys_max_cmd_len=32768
! 6676: fi
! 6677: ;;
! 6678: *)
! 6679: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
! 6680: if test -n "$lt_cv_sys_max_cmd_len"; then
! 6681: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 6682: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
! 6683: else
! 6684: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
! 6685: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
! 6686: = "XX$teststring") >/dev/null 2>&1 &&
! 6687: new_result=`expr "X$teststring" : ".*" 2>&1` &&
! 6688: lt_cv_sys_max_cmd_len=$new_result &&
! 6689: test $i != 17 # 1/2 MB should be enough
! 6690: do
! 6691: i=`expr $i + 1`
! 6692: teststring=$teststring$teststring
! 6693: done
! 6694: teststring=
! 6695: # Add a significant safety factor because C++ compilers can tack on massive
! 6696: # amounts of additional arguments before passing them to the linker.
! 6697: # It appears as though 1/2 is a usable value.
! 6698: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
! 6699: fi
1.1 root 6700: ;;
6701: esac
6702:
6703: fi
6704:
6705: if test -n $lt_cv_sys_max_cmd_len ; then
1.1.1.2 ! root 6706: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 6707: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
1.1 root 6708: else
1.1.1.2 ! root 6709: { echo "$as_me:$LINENO: result: none" >&5
! 6710: echo "${ECHO_T}none" >&6; }
1.1 root 6711: fi
6712:
6713:
6714:
6715:
1.1.1.2 ! root 6716:
1.1 root 6717: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.1.1.2 ! root 6718: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 6719: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
1.1 root 6720: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6721: echo $ECHO_N "(cached) $ECHO_C" >&6
6722: else
6723:
6724: # These are sane defaults that work on at least a few old systems.
6725: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6726:
6727: # Character class describing NM global symbol codes.
6728: symcode='[BCDEGRST]'
6729:
6730: # Regexp to match symbols that can be accessed directly from C.
6731: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6732:
6733: # Transform an extracted symbol line into a proper C declaration
6734: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6735:
6736: # Transform an extracted symbol line into symbol name and symbol address
6737: 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'"
6738:
6739: # Define system-specific variables.
6740: case $host_os in
6741: aix*)
6742: symcode='[BCDT]'
6743: ;;
6744: cygwin* | mingw* | pw32*)
6745: symcode='[ABCDGISTW]'
6746: ;;
6747: hpux*) # Its linker distinguishes data from code symbols
6748: if test "$host_cpu" = ia64; then
6749: symcode='[ABCDEGRST]'
6750: fi
6751: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6752: 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'"
6753: ;;
1.1.1.2 ! root 6754: linux* | k*bsd*-gnu)
! 6755: if test "$host_cpu" = ia64; then
! 6756: symcode='[ABCDGIRSTW]'
! 6757: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6758: 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'"
! 6759: fi
! 6760: ;;
1.1 root 6761: irix* | nonstopux*)
6762: symcode='[BCDEGRST]'
6763: ;;
6764: osf*)
6765: symcode='[BCDEGQRST]'
6766: ;;
1.1.1.2 ! root 6767: solaris*)
! 6768: symcode='[BDRT]'
! 6769: ;;
! 6770: sco3.2v5*)
! 6771: symcode='[DT]'
! 6772: ;;
! 6773: sysv4.2uw2*)
! 6774: symcode='[DT]'
! 6775: ;;
! 6776: sysv5* | sco5v6* | unixware* | OpenUNIX*)
! 6777: symcode='[ABDT]'
1.1 root 6778: ;;
6779: sysv4)
6780: symcode='[DFNSTU]'
6781: ;;
6782: esac
6783:
6784: # Handle CRLF in mingw tool chain
6785: opt_cr=
6786: case $build_os in
6787: mingw*)
6788: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6789: ;;
6790: esac
6791:
6792: # If we're using GNU nm, then use its standard symbol codes.
6793: case `$NM -V 2>&1` in
6794: *GNU* | *'with BFD'*)
1.1.1.2 ! root 6795: symcode='[ABCDGIRSTW]' ;;
1.1 root 6796: esac
6797:
6798: # Try without a prefix undercore, then with it.
6799: for ac_symprfx in "" "_"; do
6800:
1.1.1.2 ! root 6801: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
! 6802: symxfrm="\\1 $ac_symprfx\\2 \\2"
! 6803:
1.1 root 6804: # Write the raw and C identifiers.
1.1.1.2 ! root 6805: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.1 root 6806:
6807: # Check to see that the pipe works correctly.
6808: pipe_works=no
6809:
6810: rm -f conftest*
6811: cat > conftest.$ac_ext <<EOF
6812: #ifdef __cplusplus
6813: extern "C" {
6814: #endif
6815: char nm_test_var;
6816: void nm_test_func(){}
6817: #ifdef __cplusplus
6818: }
6819: #endif
6820: int main(){nm_test_var='a';nm_test_func();return(0);}
6821: EOF
6822:
6823: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824: (eval $ac_compile) 2>&5
6825: ac_status=$?
6826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827: (exit $ac_status); }; then
6828: # Now try to grab the symbols.
6829: nlist=conftest.nm
6830: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6831: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6832: ac_status=$?
6833: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834: (exit $ac_status); } && test -s "$nlist"; then
6835: # Try sorting and uniquifying the output.
6836: if sort "$nlist" | uniq > "$nlist"T; then
6837: mv -f "$nlist"T "$nlist"
6838: else
6839: rm -f "$nlist"T
6840: fi
6841:
6842: # Make sure that we snagged all the symbols we need.
6843: if grep ' nm_test_var$' "$nlist" >/dev/null; then
6844: if grep ' nm_test_func$' "$nlist" >/dev/null; then
6845: cat <<EOF > conftest.$ac_ext
6846: #ifdef __cplusplus
6847: extern "C" {
6848: #endif
6849:
6850: EOF
6851: # Now generate the symbol file.
6852: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6853:
6854: cat <<EOF >> conftest.$ac_ext
6855: #if defined (__STDC__) && __STDC__
6856: # define lt_ptr_t void *
6857: #else
6858: # define lt_ptr_t char *
6859: # define const
6860: #endif
6861:
6862: /* The mapping between symbol names and symbols. */
6863: const struct {
6864: const char *name;
6865: lt_ptr_t address;
6866: }
6867: lt_preloaded_symbols[] =
6868: {
6869: EOF
6870: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6871: cat <<\EOF >> conftest.$ac_ext
6872: {0, (lt_ptr_t) 0}
6873: };
6874:
6875: #ifdef __cplusplus
6876: }
6877: #endif
6878: EOF
6879: # Now try linking the two files.
6880: mv conftest.$ac_objext conftstm.$ac_objext
6881: lt_save_LIBS="$LIBS"
6882: lt_save_CFLAGS="$CFLAGS"
6883: LIBS="conftstm.$ac_objext"
6884: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6885: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886: (eval $ac_link) 2>&5
6887: ac_status=$?
6888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889: (exit $ac_status); } && test -s conftest${ac_exeext}; then
6890: pipe_works=yes
6891: fi
6892: LIBS="$lt_save_LIBS"
6893: CFLAGS="$lt_save_CFLAGS"
6894: else
6895: echo "cannot find nm_test_func in $nlist" >&5
6896: fi
6897: else
6898: echo "cannot find nm_test_var in $nlist" >&5
6899: fi
6900: else
6901: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6902: fi
6903: else
6904: echo "$progname: failed program was:" >&5
6905: cat conftest.$ac_ext >&5
6906: fi
6907: rm -f conftest* conftst*
6908:
6909: # Do not use the global_symbol_pipe unless it works.
6910: if test "$pipe_works" = yes; then
6911: break
6912: else
6913: lt_cv_sys_global_symbol_pipe=
6914: fi
6915: done
6916:
6917: fi
6918:
6919: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6920: lt_cv_sys_global_symbol_to_cdecl=
6921: fi
6922: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.1.1.2 ! root 6923: { echo "$as_me:$LINENO: result: failed" >&5
! 6924: echo "${ECHO_T}failed" >&6; }
1.1 root 6925: else
1.1.1.2 ! root 6926: { echo "$as_me:$LINENO: result: ok" >&5
! 6927: echo "${ECHO_T}ok" >&6; }
1.1 root 6928: fi
6929:
1.1.1.2 ! root 6930: { echo "$as_me:$LINENO: checking for objdir" >&5
! 6931: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
1.1 root 6932: if test "${lt_cv_objdir+set}" = set; then
6933: echo $ECHO_N "(cached) $ECHO_C" >&6
6934: else
6935: rm -f .libs 2>/dev/null
6936: mkdir .libs 2>/dev/null
6937: if test -d .libs; then
6938: lt_cv_objdir=.libs
6939: else
6940: # MS-DOS does not allow filenames that begin with a dot.
6941: lt_cv_objdir=_libs
6942: fi
6943: rmdir .libs 2>/dev/null
6944: fi
1.1.1.2 ! root 6945: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 6946: echo "${ECHO_T}$lt_cv_objdir" >&6; }
1.1 root 6947: objdir=$lt_cv_objdir
6948:
6949:
6950:
6951:
6952:
6953: case $host_os in
6954: aix3*)
6955: # AIX sometimes has problems with the GCC collect2 program. For some
6956: # reason, if we set the COLLECT_NAMES environment variable, the problems
6957: # vanish in a puff of smoke.
6958: if test "X${COLLECT_NAMES+set}" != Xset; then
6959: COLLECT_NAMES=
6960: export COLLECT_NAMES
6961: fi
6962: ;;
6963: esac
6964:
6965: # Sed substitution that helps us do robust quoting. It backslashifies
6966: # metacharacters that are still active within double-quoted strings.
1.1.1.2 ! root 6967: Xsed='sed -e 1s/^X//'
1.1 root 6968: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6969:
6970: # Same as above, but do not quote variable references.
6971: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6972:
6973: # Sed substitution to delay expansion of an escaped shell variable in a
6974: # double_quote_subst'ed string.
6975: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6976:
6977: # Sed substitution to avoid accidental globbing in evaled expressions
6978: no_glob_subst='s/\*/\\\*/g'
6979:
6980: # Constants:
6981: rm="rm -f"
6982:
6983: # Global variables:
6984: default_ofile=libtool
6985: can_build_shared=yes
6986:
1.1.1.2 ! root 6987: # All known linkers require a `.a' archive for static linking (except MSVC,
1.1 root 6988: # which needs '.lib').
6989: libext=a
6990: ltmain="$ac_aux_dir/ltmain.sh"
6991: ofile="$default_ofile"
6992: with_gnu_ld="$lt_cv_prog_gnu_ld"
6993:
6994: if test -n "$ac_tool_prefix"; then
6995: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6996: set dummy ${ac_tool_prefix}ar; ac_word=$2
1.1.1.2 ! root 6997: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6998: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 6999: if test "${ac_cv_prog_AR+set}" = set; then
7000: echo $ECHO_N "(cached) $ECHO_C" >&6
7001: else
7002: if test -n "$AR"; then
7003: ac_cv_prog_AR="$AR" # Let the user override the test.
7004: else
7005: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006: for as_dir in $PATH
7007: do
7008: IFS=$as_save_IFS
7009: test -z "$as_dir" && as_dir=.
7010: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 7011: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 7012: ac_cv_prog_AR="${ac_tool_prefix}ar"
7013: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014: break 2
7015: fi
7016: done
7017: done
1.1.1.2 ! root 7018: IFS=$as_save_IFS
1.1 root 7019:
7020: fi
7021: fi
7022: AR=$ac_cv_prog_AR
7023: if test -n "$AR"; then
1.1.1.2 ! root 7024: { echo "$as_me:$LINENO: result: $AR" >&5
! 7025: echo "${ECHO_T}$AR" >&6; }
1.1 root 7026: else
1.1.1.2 ! root 7027: { echo "$as_me:$LINENO: result: no" >&5
! 7028: echo "${ECHO_T}no" >&6; }
1.1 root 7029: fi
7030:
1.1.1.2 ! root 7031:
1.1 root 7032: fi
7033: if test -z "$ac_cv_prog_AR"; then
7034: ac_ct_AR=$AR
7035: # Extract the first word of "ar", so it can be a program name with args.
7036: set dummy ar; ac_word=$2
1.1.1.2 ! root 7037: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7038: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 7039: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7040: echo $ECHO_N "(cached) $ECHO_C" >&6
7041: else
7042: if test -n "$ac_ct_AR"; then
7043: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7044: else
7045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046: for as_dir in $PATH
7047: do
7048: IFS=$as_save_IFS
7049: test -z "$as_dir" && as_dir=.
7050: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 7051: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 7052: ac_cv_prog_ac_ct_AR="ar"
7053: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054: break 2
7055: fi
7056: done
7057: done
1.1.1.2 ! root 7058: IFS=$as_save_IFS
1.1 root 7059:
7060: fi
7061: fi
7062: ac_ct_AR=$ac_cv_prog_ac_ct_AR
7063: if test -n "$ac_ct_AR"; then
1.1.1.2 ! root 7064: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 7065: echo "${ECHO_T}$ac_ct_AR" >&6; }
1.1 root 7066: else
1.1.1.2 ! root 7067: { echo "$as_me:$LINENO: result: no" >&5
! 7068: echo "${ECHO_T}no" >&6; }
1.1 root 7069: fi
7070:
1.1.1.2 ! root 7071: if test "x$ac_ct_AR" = x; then
! 7072: AR="false"
! 7073: else
! 7074: case $cross_compiling:$ac_tool_warned in
! 7075: yes:)
! 7076: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 7077: whose name does not start with the host triplet. If you think this
! 7078: configuration is useful to you, please write to [email protected]." >&5
! 7079: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 7080: whose name does not start with the host triplet. If you think this
! 7081: configuration is useful to you, please write to [email protected]." >&2;}
! 7082: ac_tool_warned=yes ;;
! 7083: esac
! 7084: AR=$ac_ct_AR
! 7085: fi
1.1 root 7086: else
7087: AR="$ac_cv_prog_AR"
7088: fi
7089:
7090: if test -n "$ac_tool_prefix"; then
7091: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7092: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.1.1.2 ! root 7093: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7094: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 7095: if test "${ac_cv_prog_RANLIB+set}" = set; then
7096: echo $ECHO_N "(cached) $ECHO_C" >&6
7097: else
7098: if test -n "$RANLIB"; then
7099: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7100: else
7101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102: for as_dir in $PATH
7103: do
7104: IFS=$as_save_IFS
7105: test -z "$as_dir" && as_dir=.
7106: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 7107: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 7108: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7109: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110: break 2
7111: fi
7112: done
7113: done
1.1.1.2 ! root 7114: IFS=$as_save_IFS
1.1 root 7115:
7116: fi
7117: fi
7118: RANLIB=$ac_cv_prog_RANLIB
7119: if test -n "$RANLIB"; then
1.1.1.2 ! root 7120: { echo "$as_me:$LINENO: result: $RANLIB" >&5
! 7121: echo "${ECHO_T}$RANLIB" >&6; }
1.1 root 7122: else
1.1.1.2 ! root 7123: { echo "$as_me:$LINENO: result: no" >&5
! 7124: echo "${ECHO_T}no" >&6; }
1.1 root 7125: fi
7126:
1.1.1.2 ! root 7127:
1.1 root 7128: fi
7129: if test -z "$ac_cv_prog_RANLIB"; then
7130: ac_ct_RANLIB=$RANLIB
7131: # Extract the first word of "ranlib", so it can be a program name with args.
7132: set dummy ranlib; ac_word=$2
1.1.1.2 ! root 7133: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7134: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 7135: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7136: echo $ECHO_N "(cached) $ECHO_C" >&6
7137: else
7138: if test -n "$ac_ct_RANLIB"; then
7139: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7140: else
7141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142: for as_dir in $PATH
7143: do
7144: IFS=$as_save_IFS
7145: test -z "$as_dir" && as_dir=.
7146: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 7147: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 7148: ac_cv_prog_ac_ct_RANLIB="ranlib"
7149: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150: break 2
7151: fi
7152: done
7153: done
1.1.1.2 ! root 7154: IFS=$as_save_IFS
1.1 root 7155:
7156: fi
7157: fi
7158: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7159: if test -n "$ac_ct_RANLIB"; then
1.1.1.2 ! root 7160: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 7161: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.1 root 7162: else
1.1.1.2 ! root 7163: { echo "$as_me:$LINENO: result: no" >&5
! 7164: echo "${ECHO_T}no" >&6; }
1.1 root 7165: fi
7166:
1.1.1.2 ! root 7167: if test "x$ac_ct_RANLIB" = x; then
! 7168: RANLIB=":"
! 7169: else
! 7170: case $cross_compiling:$ac_tool_warned in
! 7171: yes:)
! 7172: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 7173: whose name does not start with the host triplet. If you think this
! 7174: configuration is useful to you, please write to [email protected]." >&5
! 7175: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 7176: whose name does not start with the host triplet. If you think this
! 7177: configuration is useful to you, please write to [email protected]." >&2;}
! 7178: ac_tool_warned=yes ;;
! 7179: esac
! 7180: RANLIB=$ac_ct_RANLIB
! 7181: fi
1.1 root 7182: else
7183: RANLIB="$ac_cv_prog_RANLIB"
7184: fi
7185:
7186: if test -n "$ac_tool_prefix"; then
7187: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7188: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.1.1.2 ! root 7189: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7190: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 7191: if test "${ac_cv_prog_STRIP+set}" = set; then
7192: echo $ECHO_N "(cached) $ECHO_C" >&6
7193: else
7194: if test -n "$STRIP"; then
7195: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7196: else
7197: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198: for as_dir in $PATH
7199: do
7200: IFS=$as_save_IFS
7201: test -z "$as_dir" && as_dir=.
7202: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 7203: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 7204: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7205: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206: break 2
7207: fi
7208: done
7209: done
1.1.1.2 ! root 7210: IFS=$as_save_IFS
1.1 root 7211:
7212: fi
7213: fi
7214: STRIP=$ac_cv_prog_STRIP
7215: if test -n "$STRIP"; then
1.1.1.2 ! root 7216: { echo "$as_me:$LINENO: result: $STRIP" >&5
! 7217: echo "${ECHO_T}$STRIP" >&6; }
1.1 root 7218: else
1.1.1.2 ! root 7219: { echo "$as_me:$LINENO: result: no" >&5
! 7220: echo "${ECHO_T}no" >&6; }
1.1 root 7221: fi
7222:
1.1.1.2 ! root 7223:
1.1 root 7224: fi
7225: if test -z "$ac_cv_prog_STRIP"; then
7226: ac_ct_STRIP=$STRIP
7227: # Extract the first word of "strip", so it can be a program name with args.
7228: set dummy strip; ac_word=$2
1.1.1.2 ! root 7229: { echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7230: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.1 root 7231: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7232: echo $ECHO_N "(cached) $ECHO_C" >&6
7233: else
7234: if test -n "$ac_ct_STRIP"; then
7235: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7236: else
7237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238: for as_dir in $PATH
7239: do
7240: IFS=$as_save_IFS
7241: test -z "$as_dir" && as_dir=.
7242: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.2 ! root 7243: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 root 7244: ac_cv_prog_ac_ct_STRIP="strip"
7245: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246: break 2
7247: fi
7248: done
7249: done
1.1.1.2 ! root 7250: IFS=$as_save_IFS
1.1 root 7251:
7252: fi
7253: fi
7254: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7255: if test -n "$ac_ct_STRIP"; then
1.1.1.2 ! root 7256: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 7257: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1.1 root 7258: else
1.1.1.2 ! root 7259: { echo "$as_me:$LINENO: result: no" >&5
! 7260: echo "${ECHO_T}no" >&6; }
1.1 root 7261: fi
7262:
1.1.1.2 ! root 7263: if test "x$ac_ct_STRIP" = x; then
! 7264: STRIP=":"
! 7265: else
! 7266: case $cross_compiling:$ac_tool_warned in
! 7267: yes:)
! 7268: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
! 7269: whose name does not start with the host triplet. If you think this
! 7270: configuration is useful to you, please write to [email protected]." >&5
! 7271: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
! 7272: whose name does not start with the host triplet. If you think this
! 7273: configuration is useful to you, please write to [email protected]." >&2;}
! 7274: ac_tool_warned=yes ;;
! 7275: esac
! 7276: STRIP=$ac_ct_STRIP
! 7277: fi
1.1 root 7278: else
7279: STRIP="$ac_cv_prog_STRIP"
7280: fi
7281:
7282:
7283: old_CC="$CC"
7284: old_CFLAGS="$CFLAGS"
7285:
7286: # Set sane defaults for various variables
7287: test -z "$AR" && AR=ar
7288: test -z "$AR_FLAGS" && AR_FLAGS=cru
7289: test -z "$AS" && AS=as
7290: test -z "$CC" && CC=cc
7291: test -z "$LTCC" && LTCC=$CC
1.1.1.2 ! root 7292: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1.1 root 7293: test -z "$DLLTOOL" && DLLTOOL=dlltool
7294: test -z "$LD" && LD=ld
7295: test -z "$LN_S" && LN_S="ln -s"
7296: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7297: test -z "$NM" && NM=nm
7298: test -z "$SED" && SED=sed
7299: test -z "$OBJDUMP" && OBJDUMP=objdump
7300: test -z "$RANLIB" && RANLIB=:
7301: test -z "$STRIP" && STRIP=:
7302: test -z "$ac_objext" && ac_objext=o
7303:
7304: # Determine commands to create old-style static archives.
1.1.1.2 ! root 7305: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1.1 root 7306: old_postinstall_cmds='chmod 644 $oldlib'
7307: old_postuninstall_cmds=
7308:
7309: if test -n "$RANLIB"; then
7310: case $host_os in
7311: openbsd*)
1.1.1.2 ! root 7312: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1.1 root 7313: ;;
7314: *)
1.1.1.2 ! root 7315: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1.1 root 7316: ;;
7317: esac
7318: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7319: fi
7320:
1.1.1.2 ! root 7321: for cc_temp in $compiler""; do
! 7322: case $cc_temp in
! 7323: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 7324: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 7325: \-*) ;;
! 7326: *) break;;
! 7327: esac
! 7328: done
! 7329: # Return the actual command name, not our pkgsrc wrapper name because several
! 7330: # decisions are made only based on compiler names
! 7331: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 7332: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 7333:
! 7334:
1.1 root 7335: # Only perform the check for file, if the check method requires it
7336: case $deplibs_check_method in
7337: file_magic*)
7338: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.1.1.2 ! root 7339: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 7340: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
1.1 root 7341: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7342: echo $ECHO_N "(cached) $ECHO_C" >&6
7343: else
7344: case $MAGIC_CMD in
7345: [\\/*] | ?:[\\/]*)
7346: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7347: ;;
7348: *)
7349: lt_save_MAGIC_CMD="$MAGIC_CMD"
7350: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7351: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7352: for ac_dir in $ac_dummy; do
7353: IFS="$lt_save_ifs"
7354: test -z "$ac_dir" && ac_dir=.
7355: if test -f $ac_dir/${ac_tool_prefix}file; then
7356: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7357: if test -n "$file_magic_test_file"; then
7358: case $deplibs_check_method in
7359: "file_magic "*)
1.1.1.2 ! root 7360: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1 root 7361: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7363: $EGREP "$file_magic_regex" > /dev/null; then
7364: :
7365: else
7366: cat <<EOF 1>&2
7367:
7368: *** Warning: the command libtool uses to detect shared libraries,
7369: *** $file_magic_cmd, produces output that libtool cannot recognize.
7370: *** The result is that libtool may fail to recognize shared libraries
7371: *** as such. This will affect the creation of libtool libraries that
7372: *** depend on shared libraries, but programs linked with such libtool
7373: *** libraries will work regardless of this problem. Nevertheless, you
7374: *** may want to report the problem to your system manager and/or to
7375: *** [email protected]
7376:
7377: EOF
7378: fi ;;
7379: esac
7380: fi
7381: break
7382: fi
7383: done
7384: IFS="$lt_save_ifs"
7385: MAGIC_CMD="$lt_save_MAGIC_CMD"
7386: ;;
7387: esac
7388: fi
7389:
7390: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7391: if test -n "$MAGIC_CMD"; then
1.1.1.2 ! root 7392: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7393: echo "${ECHO_T}$MAGIC_CMD" >&6; }
1.1 root 7394: else
1.1.1.2 ! root 7395: { echo "$as_me:$LINENO: result: no" >&5
! 7396: echo "${ECHO_T}no" >&6; }
1.1 root 7397: fi
7398:
7399: if test -z "$lt_cv_path_MAGIC_CMD"; then
7400: if test -n "$ac_tool_prefix"; then
1.1.1.2 ! root 7401: { echo "$as_me:$LINENO: checking for file" >&5
! 7402: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
1.1 root 7403: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7404: echo $ECHO_N "(cached) $ECHO_C" >&6
7405: else
7406: case $MAGIC_CMD in
7407: [\\/*] | ?:[\\/]*)
7408: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7409: ;;
7410: *)
7411: lt_save_MAGIC_CMD="$MAGIC_CMD"
7412: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7413: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7414: for ac_dir in $ac_dummy; do
7415: IFS="$lt_save_ifs"
7416: test -z "$ac_dir" && ac_dir=.
7417: if test -f $ac_dir/file; then
7418: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7419: if test -n "$file_magic_test_file"; then
7420: case $deplibs_check_method in
7421: "file_magic "*)
1.1.1.2 ! root 7422: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.1 root 7423: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7425: $EGREP "$file_magic_regex" > /dev/null; then
7426: :
7427: else
7428: cat <<EOF 1>&2
7429:
7430: *** Warning: the command libtool uses to detect shared libraries,
7431: *** $file_magic_cmd, produces output that libtool cannot recognize.
7432: *** The result is that libtool may fail to recognize shared libraries
7433: *** as such. This will affect the creation of libtool libraries that
7434: *** depend on shared libraries, but programs linked with such libtool
7435: *** libraries will work regardless of this problem. Nevertheless, you
7436: *** may want to report the problem to your system manager and/or to
7437: *** [email protected]
7438:
7439: EOF
7440: fi ;;
7441: esac
7442: fi
7443: break
7444: fi
7445: done
7446: IFS="$lt_save_ifs"
7447: MAGIC_CMD="$lt_save_MAGIC_CMD"
7448: ;;
7449: esac
7450: fi
7451:
7452: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453: if test -n "$MAGIC_CMD"; then
1.1.1.2 ! root 7454: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7455: echo "${ECHO_T}$MAGIC_CMD" >&6; }
1.1 root 7456: else
1.1.1.2 ! root 7457: { echo "$as_me:$LINENO: result: no" >&5
! 7458: echo "${ECHO_T}no" >&6; }
1.1 root 7459: fi
7460:
7461: else
7462: MAGIC_CMD=:
7463: fi
7464: fi
7465:
7466: fi
7467: ;;
7468: esac
7469:
7470: enable_dlopen=no
7471: enable_win32_dll=yes
7472:
1.1.1.2 ! root 7473: # Check whether --enable-libtool-lock was given.
1.1 root 7474: if test "${enable_libtool_lock+set}" = set; then
1.1.1.2 ! root 7475: enableval=$enable_libtool_lock;
! 7476: fi
1.1 root 7477:
7478: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7479:
7480:
1.1.1.2 ! root 7481: # Check whether --with-pic was given.
1.1 root 7482: if test "${with_pic+set}" = set; then
1.1.1.2 ! root 7483: withval=$with_pic; pic_mode="$withval"
1.1 root 7484: else
7485: pic_mode=default
1.1.1.2 ! root 7486: fi
! 7487:
1.1 root 7488: test -z "$pic_mode" && pic_mode=default
7489:
7490: # Use C for the default configuration in the libtool script
7491: tagname=
7492: lt_save_CC="$CC"
7493: ac_ext=c
7494: ac_cpp='$CPP $CPPFLAGS'
7495: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498:
7499:
7500: # Source file extension for C test sources.
7501: ac_ext=c
7502:
7503: # Object file extension for compiled C test sources.
7504: objext=o
7505: objext=$objext
7506:
7507: # Code to be used in simple compile tests
1.1.1.2 ! root 7508: lt_simple_compile_test_code="int some_variable = 0;"
1.1 root 7509:
7510: # Code to be used in simple link tests
1.1.1.2 ! root 7511: lt_simple_link_test_code='int main(){return(0);}'
1.1 root 7512:
7513:
7514: # If no C compiler was specified, use CC.
7515: LTCC=${LTCC-"$CC"}
7516:
1.1.1.2 ! root 7517: # If no C compiler flags were specified, use CFLAGS.
! 7518: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 7519:
1.1 root 7520: # Allow CC to be a program name with arguments.
7521: compiler=$CC
7522:
7523:
1.1.1.2 ! root 7524: # save warnings/boilerplate of simple test code
! 7525: ac_outfile=conftest.$ac_objext
! 7526: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 7527: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 7528: _lt_compiler_boilerplate=`cat conftest.err`
! 7529: $rm conftest*
! 7530:
! 7531: ac_outfile=conftest.$ac_objext
! 7532: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 7533: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 7534: _lt_linker_boilerplate=`cat conftest.err`
! 7535: $rm conftest*
! 7536:
! 7537:
! 7538: ## CAVEAT EMPTOR:
! 7539: ## There is no encapsulation within the following macros, do not change
! 7540: ## the running order or otherwise move them around unless you know exactly
! 7541: ## what you are doing...
1.1 root 7542:
7543: lt_prog_compiler_no_builtin_flag=
7544:
7545: if test "$GCC" = yes; then
7546: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7547:
1.1.1.2 ! root 7548:
! 7549: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7550: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
1.1 root 7551: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7552: echo $ECHO_N "(cached) $ECHO_C" >&6
7553: else
7554: lt_cv_prog_compiler_rtti_exceptions=no
7555: ac_outfile=conftest.$ac_objext
1.1.1.2 ! root 7556: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 7557: lt_compiler_flag="-fno-rtti -fno-exceptions"
7558: # Insert the option either (1) after the last *FLAGS variable, or
7559: # (2) before a word containing "conftest.", or (3) at the end.
7560: # Note that $ac_compile itself does not contain backslashes and begins
7561: # with a dollar sign (not a hyphen), so the echo should work correctly.
7562: # The option is referenced via a variable to avoid confusing sed.
7563: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 7564: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 7565: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 7567: (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
1.1 root 7568: (eval "$lt_compile" 2>conftest.err)
7569: ac_status=$?
7570: cat conftest.err >&5
1.1.1.2 ! root 7571: echo "$as_me:7571: \$? = $ac_status" >&5
1.1 root 7572: if (exit $ac_status) && test -s "$ac_outfile"; then
7573: # The compiler can only warn and ignore the option if not recognized
1.1.1.2 ! root 7574: # So say no if there are warnings other than the usual output.
! 7575: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 7576: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7577: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 7578: lt_cv_prog_compiler_rtti_exceptions=yes
7579: fi
7580: fi
7581: $rm conftest*
7582:
7583: fi
1.1.1.2 ! root 7584: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 7585: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 root 7586:
7587: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7588: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7589: else
7590: :
7591: fi
7592:
7593: fi
7594:
7595: lt_prog_compiler_wl=
7596: lt_prog_compiler_pic=
7597: lt_prog_compiler_static=
7598:
1.1.1.2 ! root 7599: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 7600: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 7601:
7602: if test "$GCC" = yes; then
7603: lt_prog_compiler_wl='-Wl,'
7604: lt_prog_compiler_static='-static'
7605:
7606: case $host_os in
7607: aix*)
7608: # All AIX code is PIC.
7609: if test "$host_cpu" = ia64; then
7610: # AIX 5 now supports IA64 processor
7611: lt_prog_compiler_static='-Bstatic'
7612: fi
7613: ;;
7614:
7615: amigaos*)
7616: # FIXME: we need at least 68020 code to build shared libraries, but
7617: # adding the `-m68020' flag to GCC prevents building anything better,
7618: # like `-m68040'.
7619: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7620: ;;
7621:
1.1.1.2 ! root 7622: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 7623: # PIC is the default for these OSes.
7624: ;;
7625:
1.1.1.2 ! root 7626: mingw* | cygwin* | pw32* | os2*)
1.1 root 7627: # This hack is so that the source file can tell whether it is being
7628: # built for inclusion in a dll (and should export symbols for example).
1.1.1.2 ! root 7629: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 7630: # (--disable-auto-import) libraries
1.1 root 7631: lt_prog_compiler_pic='-DDLL_EXPORT'
7632: ;;
7633:
7634: darwin* | rhapsody*)
1.1.1.2 ! root 7635: # PIC is the default on this platform, and static linking of
! 7636: # binaries generally doesn't work
1.1 root 7637: # Common symbols not allowed in MH_DYLIB files
7638: lt_prog_compiler_pic='-fno-common'
1.1.1.2 ! root 7639: lt_prog_compiler_static=''
! 7640: ;;
! 7641:
! 7642: interix[3-9]*)
! 7643: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 7644: # Instead, we relocate shared libraries at runtime.
1.1 root 7645: ;;
7646:
7647: msdosdjgpp*)
7648: # Just because we use GCC doesn't mean we suddenly get shared libraries
7649: # on systems that don't support them.
7650: lt_prog_compiler_can_build_shared=no
7651: enable_shared=no
7652: ;;
7653:
7654: sysv4*MP*)
7655: if test -d /usr/nec; then
7656: lt_prog_compiler_pic=-Kconform_pic
7657: fi
7658: ;;
7659:
7660: hpux*)
7661: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662: # not for PA HP-UX.
1.1.1.2 ! root 7663: case $host_cpu in
1.1 root 7664: hppa*64*|ia64*)
7665: # +Z the default
7666: ;;
7667: *)
7668: lt_prog_compiler_pic='-fPIC'
7669: ;;
7670: esac
7671: ;;
7672:
1.1.1.2 ! root 7673: interix3*)
! 7674: # Interix 3.0-3.5 -fPIC option generates borked code.
! 7675: # (Instead, shlibs are relocated at runtime.)
! 7676: ;;
! 7677:
1.1 root 7678: *)
7679: lt_prog_compiler_pic='-fPIC'
7680: ;;
7681: esac
7682: else
7683: # PORTME Check for flag to pass linker flags through the system compiler.
7684: case $host_os in
7685: aix*)
7686: lt_prog_compiler_wl='-Wl,'
7687: if test "$host_cpu" = ia64; then
7688: # AIX 5 now supports IA64 processor
7689: lt_prog_compiler_static='-Bstatic'
7690: else
7691: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7692: fi
7693: ;;
1.1.1.2 ! root 7694: darwin*)
! 7695: # PIC is the default on this platform
! 7696: # Common symbols not allowed in MH_DYLIB files
! 7697: case $cc_basename in
! 7698: xlc*)
! 7699: lt_prog_compiler_pic='-qnocommon'
! 7700: lt_prog_compiler_wl='-Wl,'
! 7701: ;;
! 7702: esac
! 7703: ;;
1.1 root 7704:
1.1.1.2 ! root 7705: mingw* | cygwin* | pw32* | os2*)
1.1 root 7706: # This hack is so that the source file can tell whether it is being
7707: # built for inclusion in a dll (and should export symbols for example).
7708: lt_prog_compiler_pic='-DDLL_EXPORT'
7709: ;;
7710:
7711: hpux9* | hpux10* | hpux11*)
7712: lt_prog_compiler_wl='-Wl,'
7713: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7714: # not for PA HP-UX.
1.1.1.2 ! root 7715: case $host_cpu in
1.1 root 7716: hppa*64*|ia64*)
7717: # +Z the default
7718: ;;
7719: *)
7720: lt_prog_compiler_pic='+Z'
7721: ;;
7722: esac
7723: # Is there a better lt_prog_compiler_static that works with the bundled CC?
7724: lt_prog_compiler_static='${wl}-a ${wl}archive'
7725: ;;
7726:
7727: irix5* | irix6* | nonstopux*)
7728: lt_prog_compiler_wl='-Wl,'
7729: # PIC (with -KPIC) is the default.
7730: lt_prog_compiler_static='-non_shared'
7731: ;;
7732:
7733: newsos6)
7734: lt_prog_compiler_pic='-KPIC'
7735: lt_prog_compiler_static='-Bstatic'
7736: ;;
7737:
1.1.1.2 ! root 7738: linux* | k*bsd*-gnu)
! 7739: case $cc_basename in
! 7740: icc* | ecc*)
1.1 root 7741: lt_prog_compiler_wl='-Wl,'
7742: lt_prog_compiler_pic='-KPIC'
7743: lt_prog_compiler_static='-static'
7744: ;;
1.1.1.2 ! root 7745: pgcc* | pgf77* | pgf90* | pgf95*)
! 7746: # Portland Group compilers (*not* the Pentium gcc compiler,
! 7747: # which looks to be a dead project)
! 7748: lt_prog_compiler_wl='-Wl,'
! 7749: lt_prog_compiler_pic='-fpic'
! 7750: lt_prog_compiler_static='-Bstatic'
! 7751: ;;
! 7752: ccc*)
1.1 root 7753: lt_prog_compiler_wl='-Wl,'
7754: # All Alpha code is PIC.
7755: lt_prog_compiler_static='-non_shared'
7756: ;;
1.1.1.2 ! root 7757: *)
! 7758: case `$CC -V 2>&1 | sed 5q` in
! 7759: *Sun\ C*)
! 7760: # Sun C 5.9
! 7761: lt_prog_compiler_pic='-KPIC'
! 7762: lt_prog_compiler_static='-Bstatic'
! 7763: lt_prog_compiler_wl='-Wl,'
! 7764: ;;
! 7765: *Sun\ F*)
! 7766: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 7767: lt_prog_compiler_pic='-KPIC'
! 7768: lt_prog_compiler_static='-Bstatic'
! 7769: lt_prog_compiler_wl=''
! 7770: ;;
! 7771: esac
! 7772: ;;
1.1 root 7773: esac
7774: ;;
7775:
7776: osf3* | osf4* | osf5*)
7777: lt_prog_compiler_wl='-Wl,'
7778: # All OSF/1 code is PIC.
7779: lt_prog_compiler_static='-non_shared'
7780: ;;
7781:
1.1.1.2 ! root 7782: rdos*)
! 7783: lt_prog_compiler_static='-non_shared'
1.1 root 7784: ;;
7785:
7786: solaris*)
7787: lt_prog_compiler_pic='-KPIC'
7788: lt_prog_compiler_static='-Bstatic'
1.1.1.2 ! root 7789: case $cc_basename in
! 7790: f77* | f90* | f95*)
! 7791: lt_prog_compiler_wl='-Qoption ld ';;
! 7792: *)
! 7793: lt_prog_compiler_wl='-Wl,';;
! 7794: esac
1.1 root 7795: ;;
7796:
7797: sunos4*)
7798: lt_prog_compiler_wl='-Qoption ld '
7799: lt_prog_compiler_pic='-PIC'
7800: lt_prog_compiler_static='-Bstatic'
7801: ;;
7802:
1.1.1.2 ! root 7803: sysv4 | sysv4.2uw2* | sysv4.3*)
1.1 root 7804: lt_prog_compiler_wl='-Wl,'
7805: lt_prog_compiler_pic='-KPIC'
7806: lt_prog_compiler_static='-Bstatic'
7807: ;;
7808:
7809: sysv4*MP*)
7810: if test -d /usr/nec ;then
7811: lt_prog_compiler_pic='-Kconform_pic'
7812: lt_prog_compiler_static='-Bstatic'
7813: fi
7814: ;;
7815:
1.1.1.2 ! root 7816: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 7817: lt_prog_compiler_wl='-Wl,'
! 7818: lt_prog_compiler_pic='-KPIC'
! 7819: lt_prog_compiler_static='-Bstatic'
! 7820: ;;
! 7821:
! 7822: unicos*)
! 7823: lt_prog_compiler_wl='-Wl,'
! 7824: lt_prog_compiler_can_build_shared=no
! 7825: ;;
! 7826:
1.1 root 7827: uts4*)
7828: lt_prog_compiler_pic='-pic'
7829: lt_prog_compiler_static='-Bstatic'
7830: ;;
7831:
1.1.1.2 ! root 7832: nto-qnx*)
! 7833: lt_prog_compiler_pic='-fPIC'
! 7834: ;;
! 7835:
1.1 root 7836: *)
7837: lt_prog_compiler_can_build_shared=no
7838: ;;
7839: esac
7840: fi
7841:
1.1.1.2 ! root 7842: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 7843: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.1 root 7844:
7845: #
7846: # Check to make sure the PIC flag actually works.
7847: #
7848: if test -n "$lt_prog_compiler_pic"; then
1.1.1.2 ! root 7849:
! 7850: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 7851: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
1.1 root 7852: if test "${lt_prog_compiler_pic_works+set}" = set; then
7853: echo $ECHO_N "(cached) $ECHO_C" >&6
7854: else
7855: lt_prog_compiler_pic_works=no
7856: ac_outfile=conftest.$ac_objext
1.1.1.2 ! root 7857: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 7858: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7859: # Insert the option either (1) after the last *FLAGS variable, or
7860: # (2) before a word containing "conftest.", or (3) at the end.
7861: # Note that $ac_compile itself does not contain backslashes and begins
7862: # with a dollar sign (not a hyphen), so the echo should work correctly.
7863: # The option is referenced via a variable to avoid confusing sed.
7864: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 7865: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 7866: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7867: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 7868: (eval echo "\"\$as_me:7857: $lt_compile\"" >&5)
1.1 root 7869: (eval "$lt_compile" 2>conftest.err)
7870: ac_status=$?
7871: cat conftest.err >&5
1.1.1.2 ! root 7872: echo "$as_me:7861: \$? = $ac_status" >&5
1.1 root 7873: if (exit $ac_status) && test -s "$ac_outfile"; then
7874: # The compiler can only warn and ignore the option if not recognized
1.1.1.2 ! root 7875: # So say no if there are warnings other than the usual output.
! 7876: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 7877: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7878: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 7879: lt_prog_compiler_pic_works=yes
7880: fi
7881: fi
7882: $rm conftest*
7883:
7884: fi
1.1.1.2 ! root 7885: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
! 7886: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
1.1 root 7887:
7888: if test x"$lt_prog_compiler_pic_works" = xyes; then
7889: case $lt_prog_compiler_pic in
7890: "" | " "*) ;;
7891: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7892: esac
7893: else
7894: lt_prog_compiler_pic=
7895: lt_prog_compiler_can_build_shared=no
7896: fi
7897:
7898: fi
1.1.1.2 ! root 7899: case $host_os in
1.1 root 7900: # For platforms which do not support PIC, -DPIC is meaningless:
7901: *djgpp*)
7902: lt_prog_compiler_pic=
7903: ;;
7904: *)
7905: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7906: ;;
7907: esac
7908:
1.1.1.2 ! root 7909: #
! 7910: # Check to make sure the static flag actually works.
! 7911: #
! 7912: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
! 7913: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 7914: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 7915: if test "${lt_prog_compiler_static_works+set}" = set; then
! 7916: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7917: else
! 7918: lt_prog_compiler_static_works=no
! 7919: save_LDFLAGS="$LDFLAGS"
! 7920: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 7921: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 7922: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 7923: # The linker can only warn and ignore the option if not recognized
! 7924: # So say no if there are warnings
! 7925: if test -s conftest.err; then
! 7926: # Append any errors to the config.log.
! 7927: cat conftest.err 1>&5
! 7928: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 7929: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 7930: if diff conftest.exp conftest.er2 >/dev/null; then
! 7931: lt_prog_compiler_static_works=yes
! 7932: fi
! 7933: else
! 7934: lt_prog_compiler_static_works=yes
! 7935: fi
! 7936: fi
! 7937: $rm conftest*
! 7938: LDFLAGS="$save_LDFLAGS"
! 7939:
! 7940: fi
! 7941: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
! 7942: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
! 7943:
! 7944: if test x"$lt_prog_compiler_static_works" = xyes; then
! 7945: :
! 7946: else
! 7947: lt_prog_compiler_static=
! 7948: fi
! 7949:
! 7950:
! 7951: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 7952: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
1.1 root 7953: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7954: echo $ECHO_N "(cached) $ECHO_C" >&6
7955: else
7956: lt_cv_prog_compiler_c_o=no
7957: $rm -r conftest 2>/dev/null
7958: mkdir conftest
7959: cd conftest
7960: mkdir out
1.1.1.2 ! root 7961: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 7962:
7963: lt_compiler_flag="-o out/conftest2.$ac_objext"
7964: # Insert the option either (1) after the last *FLAGS variable, or
7965: # (2) before a word containing "conftest.", or (3) at the end.
7966: # Note that $ac_compile itself does not contain backslashes and begins
7967: # with a dollar sign (not a hyphen), so the echo should work correctly.
7968: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 7969: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 7970: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 7972: (eval echo "\"\$as_me:7961: $lt_compile\"" >&5)
1.1 root 7973: (eval "$lt_compile" 2>out/conftest.err)
7974: ac_status=$?
7975: cat out/conftest.err >&5
1.1.1.2 ! root 7976: echo "$as_me:7965: \$? = $ac_status" >&5
1.1 root 7977: if (exit $ac_status) && test -s out/conftest2.$ac_objext
7978: then
7979: # The compiler can only warn and ignore the option if not recognized
7980: # So say no if there are warnings
1.1.1.2 ! root 7981: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 7982: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 7983: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 7984: lt_cv_prog_compiler_c_o=yes
7985: fi
7986: fi
1.1.1.2 ! root 7987: chmod u+w . 2>&5
! 7988: $rm conftest*
! 7989: # SGI C++ compiler will create directory out/ii_files/ for
! 7990: # template instantiation
! 7991: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 7992: $rm out/* && rmdir out
1.1 root 7993: cd ..
7994: rmdir conftest
7995: $rm conftest*
7996:
7997: fi
1.1.1.2 ! root 7998: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 7999: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
1.1 root 8000:
8001:
8002: hard_links="nottested"
8003: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8004: # do not overwrite the value of need_locks provided by the user
1.1.1.2 ! root 8005: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 8006: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 8007: hard_links=yes
8008: $rm conftest*
8009: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010: touch conftest.a
8011: ln conftest.a conftest.b 2>&5 || hard_links=no
8012: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.2 ! root 8013: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 8014: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 8015: if test "$hard_links" = no; then
8016: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8017: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8018: need_locks=warn
8019: fi
8020: else
8021: need_locks=no
8022: fi
8023:
1.1.1.2 ! root 8024: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 8025: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 8026:
8027: runpath_var=
8028: allow_undefined_flag=
8029: enable_shared_with_static_runtimes=no
8030: archive_cmds=
8031: archive_expsym_cmds=
8032: old_archive_From_new_cmds=
8033: old_archive_from_expsyms_cmds=
8034: export_dynamic_flag_spec=
8035: whole_archive_flag_spec=
8036: thread_safe_flag_spec=
8037: hardcode_libdir_flag_spec=
8038: hardcode_libdir_flag_spec_ld=
8039: hardcode_libdir_separator=
8040: hardcode_direct=no
8041: hardcode_minus_L=no
8042: hardcode_shlibpath_var=unsupported
8043: link_all_deplibs=unknown
8044: hardcode_automatic=no
8045: module_cmds=
8046: module_expsym_cmds=
8047: always_export_symbols=no
8048: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8049: # include_expsyms should be a list of space-separated symbols to be *always*
8050: # included in the symbol list
8051: include_expsyms=
8052: # exclude_expsyms can be an extended regexp of symbols to exclude
8053: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8054: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8055: # as well as any symbol that contains `d'.
8056: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8057: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8058: # platforms (ab)use it in PIC code, but their linkers get confused if
8059: # the symbol is explicitly referenced. Since portable code cannot
8060: # rely on this symbol name, it's probably fine to never include it in
8061: # preloaded symbol tables.
8062: extract_expsyms_cmds=
1.1.1.2 ! root 8063: # Just being paranoid about ensuring that cc_basename is set.
! 8064: for cc_temp in $compiler""; do
! 8065: case $cc_temp in
! 8066: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 8067: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 8068: \-*) ;;
! 8069: *) break;;
! 8070: esac
! 8071: done
! 8072: # Return the actual command name, not our pkgsrc wrapper name because several
! 8073: # decisions are made only based on compiler names
! 8074: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 8075: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 8076:
8077: case $host_os in
8078: cygwin* | mingw* | pw32*)
8079: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8080: # When not using gcc, we currently assume that we are using
8081: # Microsoft Visual C++.
8082: if test "$GCC" != yes; then
8083: with_gnu_ld=no
8084: fi
8085: ;;
1.1.1.2 ! root 8086: interix*)
! 8087: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 8088: with_gnu_ld=yes
! 8089: ;;
1.1 root 8090: openbsd*)
8091: with_gnu_ld=no
8092: ;;
8093: esac
8094:
8095: ld_shlibs=yes
8096: if test "$with_gnu_ld" = yes; then
8097: # If archive_cmds runs LD, not CC, wlarc should be empty
8098: wlarc='${wl}'
8099:
1.1.1.2 ! root 8100: # Set some defaults for GNU ld with shared library support. These
! 8101: # are reset later if shared libraries are not supported. Putting them
! 8102: # here allows them to be overridden if necessary.
! 8103: runpath_var=LD_RUN_PATH
! 8104: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 8105: export_dynamic_flag_spec='${wl}--export-dynamic'
! 8106: # ancient GNU ld didn't support --whole-archive et. al.
! 8107: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 8108: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 8109: else
! 8110: whole_archive_flag_spec=
! 8111: fi
! 8112: supports_anon_versioning=no
! 8113: case `$LD -v 2>/dev/null` in
! 8114: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 8115: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 8116: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 8117: *\ 2.11.*) ;; # other 2.11 versions
! 8118: *) supports_anon_versioning=yes ;;
! 8119: esac
! 8120:
1.1 root 8121: # See if GNU ld supports shared libraries.
8122: case $host_os in
8123: aix3* | aix4* | aix5*)
8124: # On AIX/PPC, the GNU linker is very broken
8125: if test "$host_cpu" != ia64; then
8126: ld_shlibs=no
8127: cat <<EOF 1>&2
8128:
8129: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8130: *** to be unable to reliably create shared libraries on AIX.
8131: *** Therefore, libtool is disabling shared libraries support. If you
8132: *** really care for shared libraries, you may want to modify your PATH
8133: *** so that a non-GNU linker is found, and then restart.
8134:
8135: EOF
8136: fi
8137: ;;
8138:
8139: amigaos*)
8140: 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)'
8141: hardcode_libdir_flag_spec='-L$libdir'
8142: hardcode_minus_L=yes
8143:
8144: # Samuel A. Falvo II <[email protected]> reports
8145: # that the semantics of dynamic libraries on AmigaOS, at least up
8146: # to version 4, is to share data among multiple programs linked
8147: # with the same dynamic library. Since this doesn't match the
8148: # behavior of shared libraries on other platforms, we can't use
8149: # them.
8150: ld_shlibs=no
8151: ;;
8152:
8153: beos*)
8154: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155: allow_undefined_flag=unsupported
8156: # Joseph Beckenbach <[email protected]> says some releases of gcc
8157: # support --undefined. This deserves some investigation. FIXME
8158: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8159: else
8160: ld_shlibs=no
8161: fi
8162: ;;
8163:
8164: cygwin* | mingw* | pw32*)
8165: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8166: # as there is no search path for DLLs.
8167: hardcode_libdir_flag_spec='-L$libdir'
8168: allow_undefined_flag=unsupported
8169: always_export_symbols=no
8170: enable_shared_with_static_runtimes=yes
1.1.1.2 ! root 8171: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 8172:
8173: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.2 ! root 8174: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 8175: # If the export-symbols file already is a .def file (1st line
8176: # is EXPORTS), use it as is; otherwise, prepend...
8177: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8178: cp $export_symbols $output_objdir/$soname.def;
8179: else
8180: echo EXPORTS > $output_objdir/$soname.def;
8181: cat $export_symbols >> $output_objdir/$soname.def;
8182: fi~
1.1.1.2 ! root 8183: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 8184: else
! 8185: ld_shlibs=no
! 8186: fi
! 8187: ;;
! 8188:
! 8189: interix[3-9]*)
! 8190: hardcode_direct=no
! 8191: hardcode_shlibpath_var=no
! 8192: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8193: export_dynamic_flag_spec='${wl}-E'
! 8194: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 8195: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 8196: # default) and relocated if they conflict, which is a slow very memory
! 8197: # consuming and fragmenting process. To avoid this, we pick a random,
! 8198: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 8199: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 8200: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 8201: 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'
! 8202: ;;
! 8203:
! 8204: gnu* | linux* | k*bsd*-gnu)
! 8205: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8206: tmp_addflag=
! 8207: case $cc_basename,$host_cpu in
! 8208: pgcc*) # Portland Group C compiler
! 8209: 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'
! 8210: tmp_addflag=' $pic_flag'
! 8211: ;;
! 8212: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 8213: 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'
! 8214: tmp_addflag=' $pic_flag -Mnomain' ;;
! 8215: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 8216: tmp_addflag=' -i_dynamic' ;;
! 8217: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 8218: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 8219: ifc* | ifort*) # Intel Fortran compiler
! 8220: tmp_addflag=' -nofor_main' ;;
! 8221: esac
! 8222: case `$CC -V 2>&1 | sed 5q` in
! 8223: *Sun\ C*) # Sun C 5.9
! 8224: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 8225: tmp_sharedflag='-G' ;;
! 8226: *Sun\ F*) # Sun Fortran 8.3
! 8227: tmp_sharedflag='-G' ;;
! 8228: *)
! 8229: tmp_sharedflag='-shared' ;;
! 8230: esac
! 8231: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8232:
! 8233: if test $supports_anon_versioning = yes; then
! 8234: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
! 8235: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 8236: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 8237: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 8238: fi
1.1 root 8239: else
8240: ld_shlibs=no
8241: fi
8242: ;;
8243:
1.1.1.2 ! root 8244: interix3*)
! 8245: # Oy, what a hack.
! 8246: # Because shlibs are not compiled -fPIC due to broken code, we must
! 8247: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 8248: # all libraries, leading to runtime relocations -- slow and very
! 8249: # memory consuming. To do this, we pick a random 256KB-aligned
! 8250: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 8251: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 8252: archive_expsym_cmds='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 8253: ;;
! 8254:
1.1 root 8255: netbsd*)
8256: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8257: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8258: wlarc=
8259: else
8260: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262: fi
8263: ;;
8264:
1.1.1.2 ! root 8265: solaris*)
1.1 root 8266: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8267: ld_shlibs=no
8268: cat <<EOF 1>&2
8269:
8270: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8271: *** create shared libraries on Solaris systems. Therefore, libtool
8272: *** is disabling shared libraries support. We urge you to upgrade GNU
8273: *** binutils to release 2.9.1 or newer. Another option is to modify
8274: *** your PATH or compiler configuration so that the native linker is
8275: *** used, and then restart.
8276:
8277: EOF
8278: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8279: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8281: else
8282: ld_shlibs=no
8283: fi
8284: ;;
8285:
1.1.1.2 ! root 8286: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 8287: case `$LD -v 2>&1` in
! 8288: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 8289: ld_shlibs=no
! 8290: cat <<_LT_EOF 1>&2
! 8291:
! 8292: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 8293: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 8294: *** is disabling shared libraries support. We urge you to upgrade GNU
! 8295: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 8296: *** your PATH or compiler configuration so that the native linker is
! 8297: *** used, and then restart.
! 8298:
! 8299: _LT_EOF
! 8300: ;;
! 8301: *)
! 8302: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8303: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 8304: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 8305: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 8306: else
! 8307: ld_shlibs=no
! 8308: fi
! 8309: ;;
! 8310: esac
! 8311: ;;
! 8312:
1.1 root 8313: sunos4*)
8314: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8315: wlarc=
8316: hardcode_direct=yes
8317: hardcode_shlibpath_var=no
8318: ;;
8319:
1.1.1.2 ! root 8320: nto-qnx*)
! 8321: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8322: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8323: ;;
! 8324:
1.1 root 8325: *)
8326: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8327: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8329: else
8330: ld_shlibs=no
8331: fi
8332: ;;
8333: esac
8334:
1.1.1.2 ! root 8335: if test "$ld_shlibs" = no; then
! 8336: runpath_var=
! 8337: hardcode_libdir_flag_spec=
! 8338: export_dynamic_flag_spec=
! 8339: whole_archive_flag_spec=
1.1 root 8340: fi
8341: else
8342: # PORTME fill in a description of your system's linker (not GNU ld)
8343: case $host_os in
8344: aix3*)
8345: allow_undefined_flag=unsupported
8346: always_export_symbols=yes
8347: 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'
8348: # Note: this linker hardcodes the directories in LIBPATH if there
8349: # are no directories specified by -L.
8350: hardcode_minus_L=yes
1.1.1.2 ! root 8351: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1 root 8352: # Neither direct hardcoding nor static linking is supported with a
8353: # broken collect2.
8354: hardcode_direct=unsupported
8355: fi
8356: ;;
8357:
8358: aix4* | aix5*)
8359: if test "$host_cpu" = ia64; then
8360: # On IA64, the linker does run time linking by default, so we don't
8361: # have to do anything special.
8362: aix_use_runtimelinking=no
8363: exp_sym_flag='-Bexport'
8364: no_entry_flag=""
8365: else
8366: # If we're using GNU nm, then we don't want the "-C" option.
8367: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8368: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8369: 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'
8370: else
8371: 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'
8372: fi
8373: aix_use_runtimelinking=no
8374:
8375: # Test if we are trying to use run time linking or normal
8376: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8377: # need to do runtime linking.
8378: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8379: for ld_flag in $LDFLAGS; do
8380: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8381: aix_use_runtimelinking=yes
8382: break
8383: fi
8384: done
1.1.1.2 ! root 8385: ;;
1.1 root 8386: esac
8387:
8388: exp_sym_flag='-bexport'
8389: no_entry_flag='-bnoentry'
8390: fi
8391:
8392: # When large executables or shared objects are built, AIX ld can
8393: # have problems creating the table of contents. If linking a library
8394: # or program results in "error TOC overflow" add -mminimal-toc to
8395: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8396: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8397:
8398: archive_cmds=''
8399: hardcode_direct=yes
8400: hardcode_libdir_separator=':'
8401: link_all_deplibs=yes
8402:
8403: if test "$GCC" = yes; then
1.1.1.2 ! root 8404: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 8405: # We only want to do this on AIX 4.2 and lower, the check
8406: # below for broken collect2 doesn't work under 4.3+
8407: collect2name=`${CC} -print-prog-name=collect2`
8408: if test -f "$collect2name" && \
8409: strings "$collect2name" | grep resolve_lib_name >/dev/null
8410: then
8411: # We have reworked collect2
1.1.1.2 ! root 8412: :
1.1 root 8413: else
8414: # We have old collect2
8415: hardcode_direct=unsupported
8416: # It fails to find uninstalled libraries when the uninstalled
8417: # path is not listed in the libpath. Setting hardcode_minus_L
8418: # to unsupported forces relinking
8419: hardcode_minus_L=yes
8420: hardcode_libdir_flag_spec='-L$libdir'
8421: hardcode_libdir_separator=
8422: fi
1.1.1.2 ! root 8423: ;;
1.1 root 8424: esac
8425: shared_flag='-shared'
1.1.1.2 ! root 8426: if test "$aix_use_runtimelinking" = yes; then
! 8427: shared_flag="$shared_flag "'${wl}-G'
! 8428: fi
1.1 root 8429: else
8430: # not using gcc
8431: if test "$host_cpu" = ia64; then
8432: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8433: # chokes on -Wl,-G. The following line is correct:
8434: shared_flag='-G'
8435: else
1.1.1.2 ! root 8436: if test "$aix_use_runtimelinking" = yes; then
1.1 root 8437: shared_flag='${wl}-G'
8438: else
8439: shared_flag='${wl}-bM:SRE'
1.1.1.2 ! root 8440: fi
1.1 root 8441: fi
8442: fi
8443:
8444: # It seems that -bexpall does not export symbols beginning with
8445: # underscore (_), so it is better to generate a list of symbols to export.
8446: always_export_symbols=yes
8447: if test "$aix_use_runtimelinking" = yes; then
8448: # Warning - without using the other runtime loading flags (-brtl),
8449: # -berok will link without error, but may produce a broken library.
8450: allow_undefined_flag='-berok'
8451: # Determine the default libpath from the value encoded in an empty executable.
8452: cat >conftest.$ac_ext <<_ACEOF
8453: /* confdefs.h. */
8454: _ACEOF
8455: cat confdefs.h >>conftest.$ac_ext
8456: cat >>conftest.$ac_ext <<_ACEOF
8457: /* end confdefs.h. */
8458:
8459: int
8460: main ()
8461: {
8462:
8463: ;
8464: return 0;
8465: }
8466: _ACEOF
8467: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 8468: if { (ac_try="$ac_link"
! 8469: case "(($ac_try" in
! 8470: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8471: *) ac_try_echo=$ac_try;;
! 8472: esac
! 8473: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8474: (eval "$ac_link") 2>conftest.er1
1.1 root 8475: ac_status=$?
1.1.1.2 ! root 8476: grep -v '^ *+' conftest.er1 >conftest.err
! 8477: rm -f conftest.er1
! 8478: cat conftest.err >&5
1.1 root 8479: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 8480: (exit $ac_status); } && {
! 8481: test -z "$ac_c_werror_flag" ||
! 8482: test ! -s conftest.err
! 8483: } && test -s conftest$ac_exeext &&
! 8484: $as_test_x conftest$ac_exeext; then
! 8485:
! 8486: lt_aix_libpath_sed='
! 8487: /Import File Strings/,/^$/ {
! 8488: /^0/ {
! 8489: s/^0 *\(.*\)$/\1/
! 8490: p
! 8491: }
! 8492: }'
! 8493: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 8494: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 8495: if test -z "$aix_libpath"; then
! 8496: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8497: fi
1.1 root 8498: else
8499: echo "$as_me: failed program was:" >&5
8500: sed 's/^/| /' conftest.$ac_ext >&5
8501:
1.1.1.2 ! root 8502:
1.1 root 8503: fi
1.1.1.2 ! root 8504:
! 8505: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8506: conftest$ac_exeext conftest.$ac_ext
1.1 root 8507: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8508:
8509: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.2 ! root 8510: 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"
1.1 root 8511: else
8512: if test "$host_cpu" = ia64; then
8513: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8514: allow_undefined_flag="-z nodefs"
1.1.1.2 ! root 8515: 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"
1.1 root 8516: else
8517: # Determine the default libpath from the value encoded in an empty executable.
8518: cat >conftest.$ac_ext <<_ACEOF
8519: /* confdefs.h. */
8520: _ACEOF
8521: cat confdefs.h >>conftest.$ac_ext
8522: cat >>conftest.$ac_ext <<_ACEOF
8523: /* end confdefs.h. */
8524:
8525: int
8526: main ()
8527: {
8528:
8529: ;
8530: return 0;
8531: }
8532: _ACEOF
8533: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 8534: if { (ac_try="$ac_link"
! 8535: case "(($ac_try" in
! 8536: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 8537: *) ac_try_echo=$ac_try;;
! 8538: esac
! 8539: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 8540: (eval "$ac_link") 2>conftest.er1
1.1 root 8541: ac_status=$?
1.1.1.2 ! root 8542: grep -v '^ *+' conftest.er1 >conftest.err
! 8543: rm -f conftest.er1
! 8544: cat conftest.err >&5
1.1 root 8545: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 8546: (exit $ac_status); } && {
! 8547: test -z "$ac_c_werror_flag" ||
! 8548: test ! -s conftest.err
! 8549: } && test -s conftest$ac_exeext &&
! 8550: $as_test_x conftest$ac_exeext; then
! 8551:
! 8552: lt_aix_libpath_sed='
! 8553: /Import File Strings/,/^$/ {
! 8554: /^0/ {
! 8555: s/^0 *\(.*\)$/\1/
! 8556: p
! 8557: }
! 8558: }'
! 8559: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 8560: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 8561: if test -z "$aix_libpath"; then
! 8562: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 8563: fi
1.1 root 8564: else
8565: echo "$as_me: failed program was:" >&5
8566: sed 's/^/| /' conftest.$ac_ext >&5
8567:
1.1.1.2 ! root 8568:
1.1 root 8569: fi
1.1.1.2 ! root 8570:
! 8571: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 8572: conftest$ac_exeext conftest.$ac_ext
1.1 root 8573: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8574:
8575: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8576: # Warning - without using the other run time loading flags,
8577: # -berok will link without error, but may produce a broken library.
8578: no_undefined_flag=' ${wl}-bernotok'
8579: allow_undefined_flag=' ${wl}-berok'
8580: # Exported symbols can be pulled into shared objects from archives
1.1.1.2 ! root 8581: whole_archive_flag_spec='$convenience'
1.1 root 8582: archive_cmds_need_lc=yes
1.1.1.2 ! root 8583: # This is similar to how AIX traditionally builds its shared libraries.
! 8584: 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'
1.1 root 8585: fi
8586: fi
8587: ;;
8588:
8589: amigaos*)
8590: 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)'
8591: hardcode_libdir_flag_spec='-L$libdir'
8592: hardcode_minus_L=yes
8593: # see comment about different semantics on the GNU ld section
8594: ld_shlibs=no
8595: ;;
8596:
1.1.1.2 ! root 8597: bsdi[45]*)
1.1 root 8598: export_dynamic_flag_spec=-rdynamic
8599: ;;
8600:
8601: cygwin* | mingw* | pw32*)
8602: # When not using gcc, we currently assume that we are using
8603: # Microsoft Visual C++.
8604: # hardcode_libdir_flag_spec is actually meaningless, as there is
8605: # no search path for DLLs.
8606: hardcode_libdir_flag_spec=' '
8607: allow_undefined_flag=unsupported
8608: # Tell ltmain to make .lib files, not .a files.
8609: libext=lib
8610: # Tell ltmain to make .dll files, not .so files.
1.1.1.2 ! root 8611: shrext_cmds=".dll"
1.1 root 8612: # FIXME: Setting linknames here is a bad hack.
8613: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8614: # The linker will automatically build a .lib file if we build a DLL.
8615: old_archive_From_new_cmds='true'
8616: # FIXME: Should let the user specify the lib program.
1.1.1.2 ! root 8617: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1.1 root 8618: fix_srcfile_path='`cygpath -w "$srcfile"`'
8619: enable_shared_with_static_runtimes=yes
8620: ;;
8621:
8622: darwin* | rhapsody*)
1.1.1.2 ! root 8623: case $host_os in
! 8624: rhapsody* | darwin1.[012])
! 8625: allow_undefined_flag='${wl}-undefined ${wl}suppress'
! 8626: ;;
! 8627: *) # Darwin 1.3 on
! 8628: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 8629: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8630: else
! 8631: case ${MACOSX_DEPLOYMENT_TARGET} in
! 8632: 10.[012])
! 8633: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8634: ;;
! 8635: 10.*)
! 8636: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
! 8637: ;;
! 8638: esac
! 8639: fi
! 8640: ;;
1.1 root 8641: esac
1.1.1.2 ! root 8642: archive_cmds_need_lc=no
1.1 root 8643: hardcode_direct=no
8644: hardcode_automatic=yes
8645: hardcode_shlibpath_var=unsupported
1.1.1.2 ! root 8646: whole_archive_flag_spec=''
1.1 root 8647: link_all_deplibs=yes
1.1.1.2 ! root 8648: if test "$GCC" = yes ; then
! 8649: output_verbose_link_cmd='echo'
! 8650: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 8651: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8652: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 8653: 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}'
! 8654: 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}'
! 8655: else
! 8656: case $cc_basename in
! 8657: xlc*)
! 8658: output_verbose_link_cmd='echo'
! 8659: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 8660: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8661: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 8662: 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8663: 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}'
! 8664: ;;
! 8665: *)
! 8666: ld_shlibs=no
! 8667: ;;
! 8668: esac
1.1 root 8669: fi
8670: ;;
8671:
8672: dgux*)
8673: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8674: hardcode_libdir_flag_spec='-L$libdir'
8675: hardcode_shlibpath_var=no
8676: ;;
8677:
8678: freebsd1*)
8679: ld_shlibs=no
8680: ;;
8681:
8682: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8683: # support. Future versions do this automatically, but an explicit c++rt0.o
8684: # does not break anything, and helps significantly (at the cost of a little
8685: # extra space).
8686: freebsd2.2*)
8687: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8688: hardcode_libdir_flag_spec='-R$libdir'
8689: hardcode_direct=yes
8690: hardcode_shlibpath_var=no
8691: ;;
8692:
8693: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8694: freebsd2*)
8695: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696: hardcode_direct=yes
8697: hardcode_minus_L=yes
8698: hardcode_shlibpath_var=no
8699: ;;
8700:
8701: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.2 ! root 8702: freebsd* | dragonfly*)
1.1 root 8703: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8704: hardcode_libdir_flag_spec='-R$libdir'
8705: hardcode_direct=yes
8706: hardcode_shlibpath_var=no
8707: ;;
8708:
8709: hpux9*)
8710: if test "$GCC" = yes; then
8711: 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'
8712: else
8713: 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'
8714: fi
8715: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716: hardcode_libdir_separator=:
8717: hardcode_direct=yes
8718:
8719: # hardcode_minus_L: Not really in the search PATH,
8720: # but as the default location of the library.
8721: hardcode_minus_L=yes
8722: export_dynamic_flag_spec='${wl}-E'
8723: ;;
8724:
1.1.1.2 ! root 8725: hpux10*)
1.1 root 8726: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.1.2 ! root 8727: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8728: else
! 8729: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 8730: fi
! 8731: if test "$with_gnu_ld" = no; then
! 8732: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8733: hardcode_libdir_separator=:
! 8734:
! 8735: hardcode_direct=yes
! 8736: export_dynamic_flag_spec='${wl}-E'
! 8737:
! 8738: # hardcode_minus_L: Not really in the search PATH,
! 8739: # but as the default location of the library.
! 8740: hardcode_minus_L=yes
! 8741: fi
! 8742: ;;
! 8743:
! 8744: hpux11*)
! 8745: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 8746: case $host_cpu in
! 8747: hppa*64*)
1.1 root 8748: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8749: ;;
1.1.1.2 ! root 8750: ia64*)
! 8751: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 8752: ;;
1.1 root 8753: *)
8754: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8755: ;;
8756: esac
8757: else
1.1.1.2 ! root 8758: case $host_cpu in
! 8759: hppa*64*)
! 8760: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8761: ;;
! 8762: ia64*)
! 8763: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 8764: ;;
8765: *)
1.1.1.2 ! root 8766: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 8767: ;;
8768: esac
8769: fi
8770: if test "$with_gnu_ld" = no; then
1.1.1.2 ! root 8771: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8772: hardcode_libdir_separator=:
! 8773:
! 8774: case $host_cpu in
! 8775: hppa*64*|ia64*)
1.1 root 8776: hardcode_libdir_flag_spec_ld='+b $libdir'
8777: hardcode_direct=no
8778: hardcode_shlibpath_var=no
8779: ;;
8780: *)
8781: hardcode_direct=yes
8782: export_dynamic_flag_spec='${wl}-E'
8783:
8784: # hardcode_minus_L: Not really in the search PATH,
8785: # but as the default location of the library.
8786: hardcode_minus_L=yes
8787: ;;
8788: esac
8789: fi
8790: ;;
8791:
1.1.1.2 ! root 8792: interix3*)
! 8793: # Oy, what a hack.
! 8794: # Because shlibs are not compiled -fPIC due to broken code, we must
! 8795: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 8796: # all libraries, leading to runtime relocations -- slow and very
! 8797: # memory consuming. To do this, we pick a random 256KB-aligned
! 8798: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 8799: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 8800: archive_expsym_cmds='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 8801: export_dynamic_flag_spec='${wl}-E'
! 8802: hardcode_direct=yes
! 8803: hardcode_libdir_flag_spec='${wl}-h,$libdir'
! 8804: hardcode_shlibpath_var=no
! 8805: ;;
! 8806:
1.1 root 8807: irix5* | irix6* | nonstopux*)
8808: if test "$GCC" = yes; then
8809: 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'
8810: else
8811: 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'
8812: hardcode_libdir_flag_spec_ld='-rpath $libdir'
8813: fi
8814: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815: hardcode_libdir_separator=:
8816: link_all_deplibs=yes
8817: ;;
8818:
8819: netbsd*)
8820: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8821: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8822: else
8823: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8824: fi
8825: hardcode_libdir_flag_spec='-R$libdir'
8826: hardcode_direct=yes
8827: hardcode_shlibpath_var=no
8828: ;;
8829:
8830: newsos6)
8831: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832: hardcode_direct=yes
8833: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834: hardcode_libdir_separator=:
8835: hardcode_shlibpath_var=no
8836: ;;
8837:
8838: openbsd*)
1.1.1.2 ! root 8839: if test -f /usr/libexec/ld.so; then
! 8840: hardcode_direct=yes
! 8841: hardcode_shlibpath_var=no
! 8842: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 8843: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8844: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 8845: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8846: export_dynamic_flag_spec='${wl}-E'
! 8847: else
! 8848: case $host_os in
! 8849: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 8850: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8851: hardcode_libdir_flag_spec='-R$libdir'
! 8852: ;;
! 8853: *)
! 8854: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8855: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8856: ;;
! 8857: esac
! 8858: fi
1.1 root 8859: else
1.1.1.2 ! root 8860: ld_shlibs=no
1.1 root 8861: fi
8862: ;;
8863:
8864: os2*)
8865: hardcode_libdir_flag_spec='-L$libdir'
8866: hardcode_minus_L=yes
8867: allow_undefined_flag=unsupported
8868: 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'
8869: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8870: ;;
8871:
8872: osf3*)
8873: if test "$GCC" = yes; then
8874: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8875: 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'
8876: else
8877: allow_undefined_flag=' -expect_unresolved \*'
8878: 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'
8879: fi
8880: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881: hardcode_libdir_separator=:
8882: ;;
8883:
8884: osf4* | osf5*) # as osf3* with the addition of -msym flag
8885: if test "$GCC" = yes; then
8886: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8887: 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'
8888: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889: else
8890: allow_undefined_flag=' -expect_unresolved \*'
8891: 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'
8892: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.1.1.2 ! root 8893: $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'
1.1 root 8894:
8895: # Both c and cxx compiler support -rpath directly
8896: hardcode_libdir_flag_spec='-rpath $libdir'
8897: fi
8898: hardcode_libdir_separator=:
8899: ;;
8900:
8901: solaris*)
8902: no_undefined_flag=' -z text'
8903: if test "$GCC" = yes; then
1.1.1.2 ! root 8904: wlarc='${wl}'
1.1 root 8905: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8907: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8908: else
1.1.1.2 ! root 8909: wlarc=''
1.1 root 8910: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8911: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8912: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8913: fi
8914: hardcode_libdir_flag_spec='-R$libdir'
8915: hardcode_shlibpath_var=no
8916: case $host_os in
8917: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1.1.2 ! root 8918: *)
! 8919: # The compiler driver will combine and reorder linker options,
! 8920: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 8921: # but is careful enough not to reorder.
! 8922: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 8923: if test "$GCC" = yes; then
! 8924: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 8925: else
! 8926: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
! 8927: fi
! 8928: ;;
1.1 root 8929: esac
8930: link_all_deplibs=yes
8931: ;;
8932:
8933: sunos4*)
8934: if test "x$host_vendor" = xsequent; then
8935: # Use $CC to link under sequent, because it throws in some extra .o
8936: # files that make .init and .fini sections work.
8937: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8938: else
8939: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8940: fi
8941: hardcode_libdir_flag_spec='-L$libdir'
8942: hardcode_direct=yes
8943: hardcode_minus_L=yes
8944: hardcode_shlibpath_var=no
8945: ;;
8946:
8947: sysv4)
8948: case $host_vendor in
8949: sni)
8950: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8951: hardcode_direct=yes # is this really true???
8952: ;;
8953: siemens)
8954: ## LD is ld it makes a PLAMLIB
8955: ## CC just makes a GrossModule.
8956: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8957: reload_cmds='$CC -r -o $output$reload_objs'
8958: hardcode_direct=no
8959: ;;
8960: motorola)
8961: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8963: ;;
8964: esac
8965: runpath_var='LD_RUN_PATH'
8966: hardcode_shlibpath_var=no
8967: ;;
8968:
8969: sysv4.3*)
8970: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971: hardcode_shlibpath_var=no
8972: export_dynamic_flag_spec='-Bexport'
8973: ;;
8974:
8975: sysv4*MP*)
8976: if test -d /usr/nec; then
8977: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978: hardcode_shlibpath_var=no
8979: runpath_var=LD_RUN_PATH
8980: hardcode_runpath_var=yes
8981: ld_shlibs=yes
8982: fi
8983: ;;
8984:
1.1.1.2 ! root 8985: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 8986: no_undefined_flag='${wl}-z,text'
! 8987: archive_cmds_need_lc=no
1.1 root 8988: hardcode_shlibpath_var=no
1.1.1.2 ! root 8989: runpath_var='LD_RUN_PATH'
1.1 root 8990:
8991: if test "$GCC" = yes; then
1.1.1.2 ! root 8992: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8993: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 8994: else
1.1.1.2 ! root 8995: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8996: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 8997: fi
8998: ;;
8999:
1.1.1.2 ! root 9000: sysv5* | sco3.2v5* | sco5v6*)
! 9001: # Note: We can NOT use -z defs as we might desire, because we do not
! 9002: # link with -lc, and that would cause any symbols used from libc to
! 9003: # always be unresolved, which means just about no library would
! 9004: # ever link correctly. If we're not using GNU ld we use -z text
! 9005: # though, which does catch some bad symbols but isn't as heavy-handed
! 9006: # as -z defs.
! 9007: no_undefined_flag='${wl}-z,text'
! 9008: allow_undefined_flag='${wl}-z,nodefs'
! 9009: archive_cmds_need_lc=no
1.1 root 9010: hardcode_shlibpath_var=no
1.1.1.2 ! root 9011: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 9012: hardcode_libdir_separator=':'
! 9013: link_all_deplibs=yes
! 9014: export_dynamic_flag_spec='${wl}-Bexport'
1.1 root 9015: runpath_var='LD_RUN_PATH'
1.1.1.2 ! root 9016:
! 9017: if test "$GCC" = yes; then
! 9018: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9019: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9020: else
! 9021: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9022: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9023: fi
1.1 root 9024: ;;
9025:
9026: uts4*)
9027: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028: hardcode_libdir_flag_spec='-L$libdir'
9029: hardcode_shlibpath_var=no
9030: ;;
9031:
1.1.1.2 ! root 9032: nto-qnx*)
! 9033: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
! 9034: hardcode_libdir_flag_spec='-R$libdir'
! 9035: hardcode_direct=yes
! 9036: hardcode_shlibpath_var=no
! 9037: ;;
! 9038:
1.1 root 9039: *)
9040: ld_shlibs=no
9041: ;;
9042: esac
9043: fi
9044:
1.1.1.2 ! root 9045: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 9046: echo "${ECHO_T}$ld_shlibs" >&6; }
1.1 root 9047: test "$ld_shlibs" = no && can_build_shared=no
9048:
9049: #
9050: # Do we need to explicitly link libc?
9051: #
9052: case "x$archive_cmds_need_lc" in
9053: x|xyes)
9054: # Assume -lc should be added
9055: archive_cmds_need_lc=yes
9056:
9057: if test "$enable_shared" = yes && test "$GCC" = yes; then
9058: case $archive_cmds in
9059: *'~'*)
9060: # FIXME: we may have to deal with multi-command sequences.
9061: ;;
9062: '$CC '*)
9063: # Test whether the compiler implicitly links with -lc since on some
9064: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9065: # to ld, don't add -lc before -lgcc.
1.1.1.2 ! root 9066: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 9067: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 root 9068: $rm conftest*
1.1.1.2 ! root 9069: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 9070:
9071: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072: (eval $ac_compile) 2>&5
9073: ac_status=$?
9074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075: (exit $ac_status); } 2>conftest.err; then
9076: soname=conftest
9077: lib=conftest
9078: libobjs=conftest.$ac_objext
9079: deplibs=
9080: wl=$lt_prog_compiler_wl
1.1.1.2 ! root 9081: pic_flag=$lt_prog_compiler_pic
1.1 root 9082: compiler_flags=-v
9083: linker_flags=-v
9084: verstring=
9085: output_objdir=.
9086: libname=conftest
9087: lt_save_allow_undefined_flag=$allow_undefined_flag
9088: allow_undefined_flag=
9089: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9090: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9091: ac_status=$?
9092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093: (exit $ac_status); }
9094: then
9095: archive_cmds_need_lc=no
9096: else
9097: archive_cmds_need_lc=yes
9098: fi
9099: allow_undefined_flag=$lt_save_allow_undefined_flag
9100: else
9101: cat conftest.err 1>&5
9102: fi
9103: $rm conftest*
1.1.1.2 ! root 9104: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 9105: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
1.1 root 9106: ;;
9107: esac
9108: fi
9109: ;;
9110: esac
9111:
1.1.1.2 ! root 9112: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 9113: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 root 9114: library_names_spec=
9115: libname_spec='lib$name'
9116: soname_spec=
1.1.1.2 ! root 9117: shrext_cmds=".so"
1.1 root 9118: postinstall_cmds=
9119: postuninstall_cmds=
9120: finish_cmds=
9121: finish_eval=
9122: shlibpath_var=
9123: shlibpath_overrides_runpath=unknown
9124: version_type=none
9125: dynamic_linker="$host_os ld.so"
9126: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1.2 ! root 9127:
1.1 root 9128: if test "$GCC" = yes; then
1.1.1.2 ! root 9129: case $host_os in
! 9130: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
! 9131: *) lt_awk_arg="/^libraries:/" ;;
! 9132: esac
! 9133: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 9134: if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1.1 root 9135: # if the path contains ";" then we assume it to be the separator
9136: # otherwise default to the standard path separator (i.e. ":") - it is
9137: # assumed that no part of a normal pathname contains ";" but that should
9138: # okay in the real world where ";" in dirpaths is itself problematic.
1.1.1.2 ! root 9139: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1.1 root 9140: else
1.1.1.2 ! root 9141: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.1 root 9142: fi
1.1.1.2 ! root 9143: # Ok, now we have the path, separated by spaces, we can step through it
! 9144: # and add multilib dir if necessary.
! 9145: lt_tmp_lt_search_path_spec=
! 9146: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
! 9147: for lt_sys_path in $lt_search_path_spec; do
! 9148: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
! 9149: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
! 9150: else
! 9151: test -d "$lt_sys_path" && \
! 9152: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
! 9153: fi
! 9154: done
! 9155: lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
! 9156: BEGIN {RS=" "; FS="/|\n";} {
! 9157: lt_foo="";
! 9158: lt_count=0;
! 9159: for (lt_i = NF; lt_i > 0; lt_i--) {
! 9160: if ($lt_i != "" && $lt_i != ".") {
! 9161: if ($lt_i == "..") {
! 9162: lt_count++;
! 9163: } else {
! 9164: if (lt_count == 0) {
! 9165: lt_foo="/" $lt_i lt_foo;
! 9166: } else {
! 9167: lt_count--;
! 9168: }
! 9169: }
! 9170: }
! 9171: }
! 9172: if (lt_foo != "") { lt_freq[lt_foo]++; }
! 9173: if (lt_freq[lt_foo] == 1) { print lt_foo; }
! 9174: }'`
! 9175: sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.1 root 9176: else
9177: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9178: fi
9179: need_lib_prefix=unknown
9180: hardcode_into_libs=no
9181:
9182: # when you set need_version to no, make sure it does not cause -set_version
9183: # flags to be left without arguments
9184: need_version=unknown
9185:
9186: case $host_os in
9187: aix3*)
9188: version_type=linux
9189: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9190: shlibpath_var=LIBPATH
9191:
9192: # AIX 3 has no versioning support, so we append a major version to the name.
9193: soname_spec='${libname}${release}${shared_ext}$major'
9194: ;;
9195:
9196: aix4* | aix5*)
9197: version_type=linux
9198: need_lib_prefix=no
9199: need_version=no
9200: hardcode_into_libs=yes
9201: if test "$host_cpu" = ia64; then
9202: # AIX 5 supports IA64
9203: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9204: shlibpath_var=LD_LIBRARY_PATH
9205: else
9206: # With GCC up to 2.95.x, collect2 would create an import file
9207: # for dependence libraries. The import file would start with
9208: # the line `#! .'. This would cause the generated library to
9209: # depend on `.', always an invalid library. This was fixed in
9210: # development snapshots of GCC prior to 3.0.
9211: case $host_os in
9212: aix4 | aix4.[01] | aix4.[01].*)
9213: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9214: echo ' yes '
9215: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9216: :
9217: else
9218: can_build_shared=no
9219: fi
9220: ;;
9221: esac
9222: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9223: # soname into executable. Probably we can add versioning support to
9224: # collect2, so additional links can be useful in future.
9225: if test "$aix_use_runtimelinking" = yes; then
9226: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9227: # instead of lib<name>.a to let people know that these are not
9228: # typical AIX shared libraries.
9229: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230: else
9231: # We preserve .a as extension for shared libraries through AIX4.2
9232: # and later when we are not doing run time linking.
9233: library_names_spec='${libname}${release}.a $libname.a'
9234: soname_spec='${libname}${release}${shared_ext}$major'
9235: fi
9236: shlibpath_var=LIBPATH
9237: fi
9238: ;;
9239:
9240: amigaos*)
9241: library_names_spec='$libname.ixlibrary $libname.a'
9242: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.2 ! root 9243: 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'
1.1 root 9244: ;;
9245:
9246: beos*)
9247: library_names_spec='${libname}${shared_ext}'
9248: dynamic_linker="$host_os ld.so"
9249: shlibpath_var=LIBRARY_PATH
9250: ;;
9251:
1.1.1.2 ! root 9252: bsdi[45]*)
1.1 root 9253: version_type=linux
9254: need_version=no
1.1.1.2 ! root 9255: need_lib_prefix=no
1.1 root 9256: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257: soname_spec='${libname}${release}${shared_ext}$major'
9258: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9259: shlibpath_var=LD_LIBRARY_PATH
9260: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9261: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9262: # the default ld.so.conf also contains /usr/contrib/lib and
9263: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9264: # libtool to hard-code these into programs
9265: ;;
9266:
9267: cygwin* | mingw* | pw32*)
9268: version_type=windows
1.1.1.2 ! root 9269: shrext_cmds=".dll"
1.1 root 9270: need_version=no
9271: need_lib_prefix=no
9272:
9273: case $GCC,$host_os in
9274: yes,cygwin* | yes,mingw* | yes,pw32*)
9275: library_names_spec='$libname.dll.a'
9276: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9277: postinstall_cmds='base_file=`basename \${file}`~
9278: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9279: dldir=$destdir/`dirname \$dlpath`~
9280: test -d \$dldir || mkdir -p \$dldir~
1.1.1.2 ! root 9281: $install_prog $dir/$dlname \$dldir/$dlname~
! 9282: chmod a+x \$dldir/$dlname'
1.1 root 9283: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9284: dlpath=$dir/\$dldll~
9285: $rm \$dlpath'
9286: shlibpath_overrides_runpath=yes
9287:
9288: case $host_os in
9289: cygwin*)
9290: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9291: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.2 ! root 9292: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1 root 9293: ;;
9294: mingw*)
9295: # MinGW DLLs use traditional 'lib' prefix
9296: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9297: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9298: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9299: # It is most probably a Windows format PATH printed by
9300: # mingw gcc, but we are running on Cygwin. Gcc prints its search
9301: # path with ; separators, and with drive letters. We can handle the
9302: # drive letters (cygwin fileutils understands them), so leave them,
9303: # especially as we might pass files found there to a mingw objdump,
9304: # which wouldn't understand a cygwinified path. Ahh.
9305: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9306: else
9307: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9308: fi
9309: ;;
9310: pw32*)
9311: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.2 ! root 9312: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1 root 9313: ;;
9314: esac
9315: ;;
9316:
9317: *)
9318: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9319: ;;
9320: esac
9321: dynamic_linker='Win32 ld.exe'
9322: # FIXME: first we should search . and the directory the executable is in
9323: shlibpath_var=PATH
9324: ;;
9325:
9326: darwin* | rhapsody*)
9327: dynamic_linker="$host_os dyld"
9328: version_type=darwin
9329: need_lib_prefix=no
9330: need_version=no
9331: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9332: soname_spec='${libname}${release}${major}$shared_ext'
9333: shlibpath_overrides_runpath=yes
9334: shlibpath_var=DYLD_LIBRARY_PATH
1.1.1.2 ! root 9335: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 9336:
! 9337: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1.1 root 9338: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9339: ;;
9340:
9341: dgux*)
9342: version_type=linux
9343: need_lib_prefix=no
9344: need_version=no
9345: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9346: soname_spec='${libname}${release}${shared_ext}$major'
9347: shlibpath_var=LD_LIBRARY_PATH
9348: ;;
9349:
9350: freebsd1*)
9351: dynamic_linker=no
9352: ;;
9353:
9354: freebsd*)
1.1.1.2 ! root 9355: # DragonFly does not have aout. When/if they implement a new
! 9356: # versioning mechanism, adjust this.
! 9357: if test -x /usr/bin/objformat; then
! 9358: objformat=`/usr/bin/objformat`
! 9359: else
! 9360: case $host_os in
! 9361: freebsd[123]*) objformat=aout ;;
! 9362: *) objformat=elf ;;
! 9363: esac
! 9364: fi
1.1 root 9365: version_type=freebsd-$objformat
9366: case $version_type in
9367: freebsd-elf*)
1.1.1.2 ! root 9368: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 9369: need_version=no
9370: need_lib_prefix=no
9371: ;;
9372: freebsd-*)
9373: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9374: need_version=yes
9375: ;;
9376: esac
9377: shlibpath_var=LD_LIBRARY_PATH
9378: case $host_os in
9379: freebsd2*)
9380: shlibpath_overrides_runpath=yes
9381: ;;
1.1.1.2 ! root 9382: freebsd3.[01]* | freebsdelf3.[01]*)
1.1 root 9383: shlibpath_overrides_runpath=yes
9384: hardcode_into_libs=yes
9385: ;;
1.1.1.2 ! root 9386: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 9387: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1 root 9388: shlibpath_overrides_runpath=no
9389: hardcode_into_libs=yes
9390: ;;
1.1.1.2 ! root 9391: *) # from 4.6 on, and DragonFly
! 9392: shlibpath_overrides_runpath=yes
! 9393: hardcode_into_libs=yes
! 9394: ;;
1.1 root 9395: esac
9396: ;;
9397:
1.1.1.2 ! root 9398: dragonfly*)
! 9399: version_type=linux # XXX tv this should be =linux; current selection has problems
! 9400: need_version=no
! 9401: need_lib_prefix=no
! 9402: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9403: shlibpath_var=LD_LIBRARY_PATH
! 9404: shlibpath_overrides_runpath=no
! 9405: hardcode_into_libs=yes
! 9406: ;;
! 9407:
1.1 root 9408: gnu*)
9409: version_type=linux
9410: need_lib_prefix=no
9411: need_version=no
9412: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9413: soname_spec='${libname}${release}${shared_ext}$major'
9414: shlibpath_var=LD_LIBRARY_PATH
9415: hardcode_into_libs=yes
9416: ;;
9417:
9418: hpux9* | hpux10* | hpux11*)
9419: # Give a soname corresponding to the major version so that dld.sl refuses to
9420: # link against other versions.
9421: version_type=sunos
9422: need_lib_prefix=no
9423: need_version=no
1.1.1.2 ! root 9424: case $host_cpu in
1.1 root 9425: ia64*)
1.1.1.2 ! root 9426: shrext_cmds='.so'
1.1 root 9427: hardcode_into_libs=yes
9428: dynamic_linker="$host_os dld.so"
9429: shlibpath_var=LD_LIBRARY_PATH
9430: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9431: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432: soname_spec='${libname}${release}${shared_ext}$major'
9433: if test "X$HPUX_IA64_MODE" = X32; then
9434: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9435: else
9436: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9437: fi
9438: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9439: ;;
9440: hppa*64*)
1.1.1.2 ! root 9441: shrext_cmds='.sl'
1.1 root 9442: hardcode_into_libs=yes
9443: dynamic_linker="$host_os dld.sl"
9444: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9445: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9446: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447: soname_spec='${libname}${release}${shared_ext}$major'
9448: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9449: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9450: ;;
9451: *)
1.1.1.2 ! root 9452: shrext_cmds='.sl'
1.1 root 9453: dynamic_linker="$host_os dld.sl"
9454: shlibpath_var=SHLIB_PATH
9455: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9456: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457: soname_spec='${libname}${release}${shared_ext}$major'
9458: ;;
9459: esac
9460: # HP-UX runs *really* slowly unless shared libraries are mode 555.
9461: postinstall_cmds='chmod 555 $lib'
9462: ;;
9463:
1.1.1.2 ! root 9464: interix[3-9]*)
! 9465: version_type=linux
! 9466: need_lib_prefix=no
! 9467: need_version=no
! 9468: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9469: soname_spec='${libname}${release}${shared_ext}$major'
! 9470: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 9471: shlibpath_var=LD_LIBRARY_PATH
! 9472: shlibpath_overrides_runpath=no
! 9473: hardcode_into_libs=yes
! 9474: ;;
! 9475:
! 9476: interix3*)
! 9477: version_type=linux
! 9478: need_lib_prefix=no
! 9479: need_version=no
! 9480: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9481: soname_spec='${libname}${release}${shared_ext}$major'
! 9482: dynamic_linker='Interix 3.x ld.so'
! 9483: shlibpath_var=LD_LIBRARY_PATH
! 9484: shlibpath_overrides_runpath=yes
! 9485: hardcode_into_libs=yes
! 9486: ;;
! 9487:
1.1 root 9488: irix5* | irix6* | nonstopux*)
9489: case $host_os in
9490: nonstopux*) version_type=nonstopux ;;
1.1.1.2 ! root 9491: *) version_type=irix ;;
1.1 root 9492: esac
9493: need_lib_prefix=no
9494: need_version=no
9495: soname_spec='${libname}${release}${shared_ext}$major'
9496: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9497: case $host_os in
9498: irix5* | nonstopux*)
9499: libsuff= shlibsuff=
9500: ;;
9501: *)
9502: case $LD in # libtool.m4 will add one of these switches to LD
9503: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9504: libsuff= shlibsuff= libmagic=32-bit;;
9505: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9506: libsuff=32 shlibsuff=N32 libmagic=N32;;
9507: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9508: libsuff=64 shlibsuff=64 libmagic=64-bit;;
9509: *) libsuff= shlibsuff= libmagic=never-match;;
9510: esac
9511: ;;
9512: esac
9513: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9514: shlibpath_overrides_runpath=no
9515: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9516: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9517: hardcode_into_libs=yes
9518: ;;
9519:
9520: # No shared lib support for Linux oldld, aout, or coff.
9521: linux*oldld* | linux*aout* | linux*coff*)
9522: dynamic_linker=no
9523: ;;
9524:
9525: # This must be Linux ELF.
1.1.1.2 ! root 9526: linux* | k*bsd*-gnu)
1.1 root 9527: version_type=linux
9528: need_lib_prefix=no
9529: need_version=no
9530: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531: soname_spec='${libname}${release}${shared_ext}$major'
9532: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9533: shlibpath_var=LD_LIBRARY_PATH
9534: shlibpath_overrides_runpath=no
9535: # This implies no fast_install, which is unacceptable.
9536: # Some rework will be needed to allow for fast_install
9537: # before this can be enabled.
9538: hardcode_into_libs=yes
9539:
1.1.1.2 ! root 9540: # Append ld.so.conf contents to the search path
! 9541: if test -f /etc/ld.so.conf; then
! 9542: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
! 9543: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 9544: fi
! 9545:
1.1 root 9546: # We used to test for /lib/ld.so.1 and disable shared libraries on
9547: # powerpc, because MkLinux only supported shared libraries with the
9548: # GNU dynamic linker. Since this was broken with cross compilers,
9549: # most powerpc-linux boxes support dynamic linking these days and
9550: # people can always --disable-shared, the test was removed, and we
9551: # assume the GNU/Linux dynamic linker is in use.
9552: dynamic_linker='GNU/Linux ld.so'
9553: ;;
9554:
9555: netbsd*)
1.1.1.2 ! root 9556: version_type=linux
1.1 root 9557: need_lib_prefix=no
9558: need_version=no
9559: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.1.1.2 ! root 9560: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
1.1 root 9561: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9562: dynamic_linker='NetBSD (a.out) ld.so'
9563: else
1.1.1.2 ! root 9564: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 9565: soname_spec='${libname}${release}${shared_ext}$major'
9566: dynamic_linker='NetBSD ld.elf_so'
9567: fi
9568: shlibpath_var=LD_LIBRARY_PATH
9569: shlibpath_overrides_runpath=yes
9570: hardcode_into_libs=yes
9571: ;;
9572:
9573: newsos6)
9574: version_type=linux
9575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576: shlibpath_var=LD_LIBRARY_PATH
9577: shlibpath_overrides_runpath=yes
9578: ;;
9579:
1.1.1.2 ! root 9580: nto-qnx*)
1.1 root 9581: version_type=linux
9582: need_lib_prefix=no
9583: need_version=no
9584: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1.1.2 ! root 9585: dynamic_linker='QNX libc.so'
1.1 root 9586: soname_spec='${libname}${release}${shared_ext}$major'
9587: shlibpath_var=LD_LIBRARY_PATH
9588: shlibpath_overrides_runpath=yes
9589: ;;
9590:
9591: openbsd*)
1.1.1.2 ! root 9592: version_type=linux
! 9593: sys_lib_dlsearch_path_spec="/usr/lib"
1.1 root 9594: need_lib_prefix=no
1.1.1.2 ! root 9595: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 9596: case $host_os in
! 9597: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 9598: *) need_version=no ;;
! 9599: esac
! 9600: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 9601: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9602: shlibpath_var=LD_LIBRARY_PATH
9603: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9604: case $host_os in
9605: openbsd2.[89] | openbsd2.[89].*)
9606: shlibpath_overrides_runpath=no
9607: ;;
9608: *)
9609: shlibpath_overrides_runpath=yes
9610: ;;
9611: esac
9612: else
9613: shlibpath_overrides_runpath=yes
9614: fi
9615: ;;
9616:
9617: os2*)
9618: libname_spec='$name'
1.1.1.2 ! root 9619: shrext_cmds=".dll"
1.1 root 9620: need_lib_prefix=no
9621: library_names_spec='$libname${shared_ext} $libname.a'
9622: dynamic_linker='OS/2 ld.exe'
9623: shlibpath_var=LIBPATH
9624: ;;
9625:
9626: osf3* | osf4* | osf5*)
9627: version_type=osf
9628: need_lib_prefix=no
9629: need_version=no
9630: soname_spec='${libname}${release}${shared_ext}$major'
9631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632: shlibpath_var=LD_LIBRARY_PATH
9633: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9634: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9635: ;;
9636:
1.1.1.2 ! root 9637: rdos*)
! 9638: dynamic_linker=no
1.1 root 9639: ;;
9640:
9641: solaris*)
9642: version_type=linux
9643: need_lib_prefix=no
9644: need_version=no
9645: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9646: soname_spec='${libname}${release}${shared_ext}$major'
9647: shlibpath_var=LD_LIBRARY_PATH
9648: shlibpath_overrides_runpath=yes
9649: hardcode_into_libs=yes
9650: # ldd complains unless libraries are executable
9651: postinstall_cmds='chmod +x $lib'
9652: ;;
9653:
9654: sunos4*)
9655: version_type=sunos
9656: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9657: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9658: shlibpath_var=LD_LIBRARY_PATH
9659: shlibpath_overrides_runpath=yes
9660: if test "$with_gnu_ld" = yes; then
9661: need_lib_prefix=no
9662: fi
9663: need_version=yes
9664: ;;
9665:
1.1.1.2 ! root 9666: sysv4 | sysv4.3*)
1.1 root 9667: version_type=linux
9668: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669: soname_spec='${libname}${release}${shared_ext}$major'
9670: shlibpath_var=LD_LIBRARY_PATH
9671: case $host_vendor in
9672: sni)
9673: shlibpath_overrides_runpath=no
9674: need_lib_prefix=no
9675: export_dynamic_flag_spec='${wl}-Blargedynsym'
9676: runpath_var=LD_RUN_PATH
9677: ;;
9678: siemens)
9679: need_lib_prefix=no
9680: ;;
9681: motorola)
9682: need_lib_prefix=no
9683: need_version=no
9684: shlibpath_overrides_runpath=no
9685: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9686: ;;
9687: esac
9688: ;;
9689:
9690: sysv4*MP*)
9691: if test -d /usr/nec ;then
9692: version_type=linux
9693: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9694: soname_spec='$libname${shared_ext}.$major'
9695: shlibpath_var=LD_LIBRARY_PATH
9696: fi
9697: ;;
9698:
1.1.1.2 ! root 9699: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 9700: version_type=freebsd-elf
! 9701: need_lib_prefix=no
! 9702: need_version=no
! 9703: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9704: soname_spec='${libname}${release}${shared_ext}$major'
! 9705: shlibpath_var=LD_LIBRARY_PATH
! 9706: hardcode_into_libs=yes
! 9707: if test "$with_gnu_ld" = yes; then
! 9708: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 9709: shlibpath_overrides_runpath=no
! 9710: else
! 9711: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 9712: shlibpath_overrides_runpath=yes
! 9713: case $host_os in
! 9714: sco3.2v5*)
! 9715: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 9716: ;;
! 9717: esac
! 9718: fi
! 9719: sys_lib_dlsearch_path_spec='/usr/lib'
! 9720: ;;
! 9721:
1.1 root 9722: uts4*)
9723: version_type=linux
9724: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725: soname_spec='${libname}${release}${shared_ext}$major'
9726: shlibpath_var=LD_LIBRARY_PATH
9727: ;;
9728:
9729: *)
9730: dynamic_linker=no
9731: ;;
9732: esac
1.1.1.2 ! root 9733: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 9734: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 root 9735: test "$dynamic_linker" = no && can_build_shared=no
9736:
1.1.1.2 ! root 9737: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 9738: if test "$GCC" = yes; then
! 9739: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 9740: fi
1.1 root 9741:
1.1.1.2 ! root 9742: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 9743: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 9744: hardcode_action=
! 9745: if test -n "$hardcode_libdir_flag_spec" || \
! 9746: test -n "$runpath_var" || \
! 9747: test "X$hardcode_automatic" = "Xyes" ; then
! 9748:
! 9749: # We can hardcode non-existant directories.
! 9750: if test "$hardcode_direct" != no &&
! 9751: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 9752: # have to relink, otherwise we might link with an installed library
! 9753: # when we should be linking with a yet-to-be-installed one
! 9754: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 9755: test "$hardcode_minus_L" != no; then
! 9756: # Linking always hardcodes the temporary library directory.
! 9757: hardcode_action=relink
! 9758: else
! 9759: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 9760: hardcode_action=immediate
! 9761: fi
! 9762: else
! 9763: # We cannot hardcode anything, or else we can only hardcode existing
! 9764: # directories.
! 9765: hardcode_action=unsupported
! 9766: fi
! 9767: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 9768: echo "${ECHO_T}$hardcode_action" >&6; }
! 9769:
! 9770: if test "$hardcode_action" = relink; then
! 9771: # Fast installation is not supported
! 9772: enable_fast_install=no
! 9773: elif test "$shlibpath_overrides_runpath" = yes ||
! 9774: test "$enable_shared" = no; then
! 9775: # Fast installation is not necessary
! 9776: enable_fast_install=needless
! 9777: fi
! 9778:
! 9779: striplib=
! 9780: old_striplib=
! 9781: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 9782: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
! 9783: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 9784: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 9785: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 9786: { echo "$as_me:$LINENO: result: yes" >&5
! 9787: echo "${ECHO_T}yes" >&6; }
! 9788: else
! 9789: # FIXME - insert some real tests, host_os isn't really good enough
! 9790: case $host_os in
! 9791: darwin*)
! 9792: if test -n "$STRIP" ; then
! 9793: striplib="$STRIP -x"
! 9794: old_striplib="$STRIP -S"
! 9795: { echo "$as_me:$LINENO: result: yes" >&5
! 9796: echo "${ECHO_T}yes" >&6; }
! 9797: else
! 9798: { echo "$as_me:$LINENO: result: no" >&5
! 9799: echo "${ECHO_T}no" >&6; }
! 9800: fi
! 9801: ;;
! 9802: *)
! 9803: { echo "$as_me:$LINENO: result: no" >&5
! 9804: echo "${ECHO_T}no" >&6; }
! 9805: ;;
! 9806: esac
! 9807: fi
! 9808:
! 9809: if test "x$enable_dlopen" != xyes; then
! 9810: enable_dlopen=unknown
! 9811: enable_dlopen_self=unknown
! 9812: enable_dlopen_self_static=unknown
! 9813: else
! 9814: lt_cv_dlopen=no
! 9815: lt_cv_dlopen_libs=
! 9816:
! 9817: case $host_os in
! 9818: beos*)
! 9819: lt_cv_dlopen="load_add_on"
! 9820: lt_cv_dlopen_libs=
1.1 root 9821: lt_cv_dlopen_self=yes
9822: ;;
9823:
9824: mingw* | pw32*)
9825: lt_cv_dlopen="LoadLibrary"
9826: lt_cv_dlopen_libs=
9827: ;;
9828:
9829: cygwin*)
9830: lt_cv_dlopen="dlopen"
9831: lt_cv_dlopen_libs=
9832: ;;
9833:
9834: darwin*)
9835: # if libdl is installed we need to link against it
1.1.1.2 ! root 9836: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 9837: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
1.1 root 9838: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9839: echo $ECHO_N "(cached) $ECHO_C" >&6
9840: else
9841: ac_check_lib_save_LIBS=$LIBS
9842: LIBS="-ldl $LIBS"
9843: cat >conftest.$ac_ext <<_ACEOF
9844: /* confdefs.h. */
9845: _ACEOF
9846: cat confdefs.h >>conftest.$ac_ext
9847: cat >>conftest.$ac_ext <<_ACEOF
9848: /* end confdefs.h. */
9849:
1.1.1.2 ! root 9850: /* Override any GCC internal prototype to avoid an error.
! 9851: Use char because int might match the return type of a GCC
! 9852: builtin and then its argument prototype would still apply. */
1.1 root 9853: #ifdef __cplusplus
9854: extern "C"
9855: #endif
9856: char dlopen ();
9857: int
9858: main ()
9859: {
1.1.1.2 ! root 9860: return dlopen ();
1.1 root 9861: ;
9862: return 0;
9863: }
9864: _ACEOF
9865: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 9866: if { (ac_try="$ac_link"
! 9867: case "(($ac_try" in
! 9868: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9869: *) ac_try_echo=$ac_try;;
! 9870: esac
! 9871: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9872: (eval "$ac_link") 2>conftest.er1
1.1 root 9873: ac_status=$?
1.1.1.2 ! root 9874: grep -v '^ *+' conftest.er1 >conftest.err
! 9875: rm -f conftest.er1
! 9876: cat conftest.err >&5
1.1 root 9877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 9878: (exit $ac_status); } && {
! 9879: test -z "$ac_c_werror_flag" ||
! 9880: test ! -s conftest.err
! 9881: } && test -s conftest$ac_exeext &&
! 9882: $as_test_x conftest$ac_exeext; then
1.1 root 9883: ac_cv_lib_dl_dlopen=yes
9884: else
9885: echo "$as_me: failed program was:" >&5
9886: sed 's/^/| /' conftest.$ac_ext >&5
9887:
1.1.1.2 ! root 9888: ac_cv_lib_dl_dlopen=no
1.1 root 9889: fi
1.1.1.2 ! root 9890:
! 9891: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9892: conftest$ac_exeext conftest.$ac_ext
1.1 root 9893: LIBS=$ac_check_lib_save_LIBS
9894: fi
1.1.1.2 ! root 9895: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 9896: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
1.1 root 9897: if test $ac_cv_lib_dl_dlopen = yes; then
9898: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9899: else
9900:
9901: lt_cv_dlopen="dyld"
9902: lt_cv_dlopen_libs=
9903: lt_cv_dlopen_self=yes
9904:
9905: fi
9906:
9907: ;;
9908:
9909: *)
1.1.1.2 ! root 9910: { echo "$as_me:$LINENO: checking for shl_load" >&5
! 9911: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
1.1 root 9912: if test "${ac_cv_func_shl_load+set}" = set; then
9913: echo $ECHO_N "(cached) $ECHO_C" >&6
9914: else
9915: cat >conftest.$ac_ext <<_ACEOF
9916: /* confdefs.h. */
9917: _ACEOF
9918: cat confdefs.h >>conftest.$ac_ext
9919: cat >>conftest.$ac_ext <<_ACEOF
9920: /* end confdefs.h. */
1.1.1.2 ! root 9921: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 9922: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 9923: #define shl_load innocuous_shl_load
! 9924:
1.1 root 9925: /* System header to define __stub macros and hopefully few prototypes,
9926: which can conflict with char shl_load (); below.
9927: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 9929:
1.1 root 9930: #ifdef __STDC__
9931: # include <limits.h>
9932: #else
9933: # include <assert.h>
9934: #endif
1.1.1.2 ! root 9935:
! 9936: #undef shl_load
! 9937:
! 9938: /* Override any GCC internal prototype to avoid an error.
! 9939: Use char because int might match the return type of a GCC
! 9940: builtin and then its argument prototype would still apply. */
1.1 root 9941: #ifdef __cplusplus
9942: extern "C"
9943: #endif
9944: char shl_load ();
9945: /* The GNU C library defines this for functions which it implements
9946: to always fail with ENOSYS. Some functions are actually named
9947: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 9948: #if defined __stub_shl_load || defined __stub___shl_load
1.1 root 9949: choke me
9950: #endif
9951:
9952: int
9953: main ()
9954: {
1.1.1.2 ! root 9955: return shl_load ();
1.1 root 9956: ;
9957: return 0;
9958: }
9959: _ACEOF
9960: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 9961: if { (ac_try="$ac_link"
! 9962: case "(($ac_try" in
! 9963: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 9964: *) ac_try_echo=$ac_try;;
! 9965: esac
! 9966: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 9967: (eval "$ac_link") 2>conftest.er1
1.1 root 9968: ac_status=$?
1.1.1.2 ! root 9969: grep -v '^ *+' conftest.er1 >conftest.err
! 9970: rm -f conftest.er1
! 9971: cat conftest.err >&5
1.1 root 9972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 9973: (exit $ac_status); } && {
! 9974: test -z "$ac_c_werror_flag" ||
! 9975: test ! -s conftest.err
! 9976: } && test -s conftest$ac_exeext &&
! 9977: $as_test_x conftest$ac_exeext; then
1.1 root 9978: ac_cv_func_shl_load=yes
9979: else
9980: echo "$as_me: failed program was:" >&5
9981: sed 's/^/| /' conftest.$ac_ext >&5
9982:
1.1.1.2 ! root 9983: ac_cv_func_shl_load=no
1.1 root 9984: fi
1.1.1.2 ! root 9985:
! 9986: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 9987: conftest$ac_exeext conftest.$ac_ext
1.1 root 9988: fi
1.1.1.2 ! root 9989: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 9990: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
1.1 root 9991: if test $ac_cv_func_shl_load = yes; then
9992: lt_cv_dlopen="shl_load"
9993: else
1.1.1.2 ! root 9994: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 9995: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
1.1 root 9996: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9997: echo $ECHO_N "(cached) $ECHO_C" >&6
9998: else
9999: ac_check_lib_save_LIBS=$LIBS
10000: LIBS="-ldld $LIBS"
10001: cat >conftest.$ac_ext <<_ACEOF
10002: /* confdefs.h. */
10003: _ACEOF
10004: cat confdefs.h >>conftest.$ac_ext
10005: cat >>conftest.$ac_ext <<_ACEOF
10006: /* end confdefs.h. */
10007:
1.1.1.2 ! root 10008: /* Override any GCC internal prototype to avoid an error.
! 10009: Use char because int might match the return type of a GCC
! 10010: builtin and then its argument prototype would still apply. */
1.1 root 10011: #ifdef __cplusplus
10012: extern "C"
10013: #endif
10014: char shl_load ();
10015: int
10016: main ()
10017: {
1.1.1.2 ! root 10018: return shl_load ();
1.1 root 10019: ;
10020: return 0;
10021: }
10022: _ACEOF
10023: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 10024: if { (ac_try="$ac_link"
! 10025: case "(($ac_try" in
! 10026: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10027: *) ac_try_echo=$ac_try;;
! 10028: esac
! 10029: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10030: (eval "$ac_link") 2>conftest.er1
1.1 root 10031: ac_status=$?
1.1.1.2 ! root 10032: grep -v '^ *+' conftest.er1 >conftest.err
! 10033: rm -f conftest.er1
! 10034: cat conftest.err >&5
1.1 root 10035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 10036: (exit $ac_status); } && {
! 10037: test -z "$ac_c_werror_flag" ||
! 10038: test ! -s conftest.err
! 10039: } && test -s conftest$ac_exeext &&
! 10040: $as_test_x conftest$ac_exeext; then
1.1 root 10041: ac_cv_lib_dld_shl_load=yes
10042: else
10043: echo "$as_me: failed program was:" >&5
10044: sed 's/^/| /' conftest.$ac_ext >&5
10045:
1.1.1.2 ! root 10046: ac_cv_lib_dld_shl_load=no
1.1 root 10047: fi
1.1.1.2 ! root 10048:
! 10049: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10050: conftest$ac_exeext conftest.$ac_ext
1.1 root 10051: LIBS=$ac_check_lib_save_LIBS
10052: fi
1.1.1.2 ! root 10053: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 10054: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
1.1 root 10055: if test $ac_cv_lib_dld_shl_load = yes; then
10056: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10057: else
1.1.1.2 ! root 10058: { echo "$as_me:$LINENO: checking for dlopen" >&5
! 10059: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
1.1 root 10060: if test "${ac_cv_func_dlopen+set}" = set; then
10061: echo $ECHO_N "(cached) $ECHO_C" >&6
10062: else
10063: cat >conftest.$ac_ext <<_ACEOF
10064: /* confdefs.h. */
10065: _ACEOF
10066: cat confdefs.h >>conftest.$ac_ext
10067: cat >>conftest.$ac_ext <<_ACEOF
10068: /* end confdefs.h. */
1.1.1.2 ! root 10069: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 10070: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10071: #define dlopen innocuous_dlopen
! 10072:
1.1 root 10073: /* System header to define __stub macros and hopefully few prototypes,
10074: which can conflict with char dlopen (); below.
10075: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 10077:
1.1 root 10078: #ifdef __STDC__
10079: # include <limits.h>
10080: #else
10081: # include <assert.h>
10082: #endif
1.1.1.2 ! root 10083:
! 10084: #undef dlopen
! 10085:
! 10086: /* Override any GCC internal prototype to avoid an error.
! 10087: Use char because int might match the return type of a GCC
! 10088: builtin and then its argument prototype would still apply. */
1.1 root 10089: #ifdef __cplusplus
10090: extern "C"
10091: #endif
10092: char dlopen ();
10093: /* The GNU C library defines this for functions which it implements
10094: to always fail with ENOSYS. Some functions are actually named
10095: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 10096: #if defined __stub_dlopen || defined __stub___dlopen
1.1 root 10097: choke me
10098: #endif
10099:
10100: int
10101: main ()
10102: {
1.1.1.2 ! root 10103: return dlopen ();
1.1 root 10104: ;
10105: return 0;
10106: }
10107: _ACEOF
10108: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 10109: if { (ac_try="$ac_link"
! 10110: case "(($ac_try" in
! 10111: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10112: *) ac_try_echo=$ac_try;;
! 10113: esac
! 10114: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10115: (eval "$ac_link") 2>conftest.er1
1.1 root 10116: ac_status=$?
1.1.1.2 ! root 10117: grep -v '^ *+' conftest.er1 >conftest.err
! 10118: rm -f conftest.er1
! 10119: cat conftest.err >&5
1.1 root 10120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 10121: (exit $ac_status); } && {
! 10122: test -z "$ac_c_werror_flag" ||
! 10123: test ! -s conftest.err
! 10124: } && test -s conftest$ac_exeext &&
! 10125: $as_test_x conftest$ac_exeext; then
1.1 root 10126: ac_cv_func_dlopen=yes
10127: else
10128: echo "$as_me: failed program was:" >&5
10129: sed 's/^/| /' conftest.$ac_ext >&5
10130:
1.1.1.2 ! root 10131: ac_cv_func_dlopen=no
1.1 root 10132: fi
1.1.1.2 ! root 10133:
! 10134: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10135: conftest$ac_exeext conftest.$ac_ext
1.1 root 10136: fi
1.1.1.2 ! root 10137: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 10138: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
1.1 root 10139: if test $ac_cv_func_dlopen = yes; then
10140: lt_cv_dlopen="dlopen"
10141: else
1.1.1.2 ! root 10142: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 10143: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
1.1 root 10144: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10145: echo $ECHO_N "(cached) $ECHO_C" >&6
10146: else
10147: ac_check_lib_save_LIBS=$LIBS
10148: LIBS="-ldl $LIBS"
10149: cat >conftest.$ac_ext <<_ACEOF
10150: /* confdefs.h. */
10151: _ACEOF
10152: cat confdefs.h >>conftest.$ac_ext
10153: cat >>conftest.$ac_ext <<_ACEOF
10154: /* end confdefs.h. */
10155:
1.1.1.2 ! root 10156: /* Override any GCC internal prototype to avoid an error.
! 10157: Use char because int might match the return type of a GCC
! 10158: builtin and then its argument prototype would still apply. */
1.1 root 10159: #ifdef __cplusplus
10160: extern "C"
10161: #endif
10162: char dlopen ();
10163: int
10164: main ()
10165: {
1.1.1.2 ! root 10166: return dlopen ();
1.1 root 10167: ;
10168: return 0;
10169: }
10170: _ACEOF
10171: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 10172: if { (ac_try="$ac_link"
! 10173: case "(($ac_try" in
! 10174: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10175: *) ac_try_echo=$ac_try;;
! 10176: esac
! 10177: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10178: (eval "$ac_link") 2>conftest.er1
1.1 root 10179: ac_status=$?
1.1.1.2 ! root 10180: grep -v '^ *+' conftest.er1 >conftest.err
! 10181: rm -f conftest.er1
! 10182: cat conftest.err >&5
1.1 root 10183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 10184: (exit $ac_status); } && {
! 10185: test -z "$ac_c_werror_flag" ||
! 10186: test ! -s conftest.err
! 10187: } && test -s conftest$ac_exeext &&
! 10188: $as_test_x conftest$ac_exeext; then
1.1 root 10189: ac_cv_lib_dl_dlopen=yes
10190: else
10191: echo "$as_me: failed program was:" >&5
10192: sed 's/^/| /' conftest.$ac_ext >&5
10193:
1.1.1.2 ! root 10194: ac_cv_lib_dl_dlopen=no
1.1 root 10195: fi
1.1.1.2 ! root 10196:
! 10197: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10198: conftest$ac_exeext conftest.$ac_ext
1.1 root 10199: LIBS=$ac_check_lib_save_LIBS
10200: fi
1.1.1.2 ! root 10201: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 10202: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
1.1 root 10203: if test $ac_cv_lib_dl_dlopen = yes; then
10204: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10205: else
1.1.1.2 ! root 10206: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 10207: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
1.1 root 10208: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10209: echo $ECHO_N "(cached) $ECHO_C" >&6
10210: else
10211: ac_check_lib_save_LIBS=$LIBS
10212: LIBS="-lsvld $LIBS"
10213: cat >conftest.$ac_ext <<_ACEOF
10214: /* confdefs.h. */
10215: _ACEOF
10216: cat confdefs.h >>conftest.$ac_ext
10217: cat >>conftest.$ac_ext <<_ACEOF
10218: /* end confdefs.h. */
10219:
1.1.1.2 ! root 10220: /* Override any GCC internal prototype to avoid an error.
! 10221: Use char because int might match the return type of a GCC
! 10222: builtin and then its argument prototype would still apply. */
1.1 root 10223: #ifdef __cplusplus
10224: extern "C"
10225: #endif
10226: char dlopen ();
10227: int
10228: main ()
10229: {
1.1.1.2 ! root 10230: return dlopen ();
1.1 root 10231: ;
10232: return 0;
10233: }
10234: _ACEOF
10235: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 10236: if { (ac_try="$ac_link"
! 10237: case "(($ac_try" in
! 10238: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10239: *) ac_try_echo=$ac_try;;
! 10240: esac
! 10241: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10242: (eval "$ac_link") 2>conftest.er1
1.1 root 10243: ac_status=$?
1.1.1.2 ! root 10244: grep -v '^ *+' conftest.er1 >conftest.err
! 10245: rm -f conftest.er1
! 10246: cat conftest.err >&5
1.1 root 10247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 10248: (exit $ac_status); } && {
! 10249: test -z "$ac_c_werror_flag" ||
! 10250: test ! -s conftest.err
! 10251: } && test -s conftest$ac_exeext &&
! 10252: $as_test_x conftest$ac_exeext; then
1.1 root 10253: ac_cv_lib_svld_dlopen=yes
10254: else
10255: echo "$as_me: failed program was:" >&5
10256: sed 's/^/| /' conftest.$ac_ext >&5
10257:
1.1.1.2 ! root 10258: ac_cv_lib_svld_dlopen=no
1.1 root 10259: fi
1.1.1.2 ! root 10260:
! 10261: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10262: conftest$ac_exeext conftest.$ac_ext
1.1 root 10263: LIBS=$ac_check_lib_save_LIBS
10264: fi
1.1.1.2 ! root 10265: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 10266: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
1.1 root 10267: if test $ac_cv_lib_svld_dlopen = yes; then
10268: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10269: else
1.1.1.2 ! root 10270: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 10271: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
1.1 root 10272: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10273: echo $ECHO_N "(cached) $ECHO_C" >&6
10274: else
10275: ac_check_lib_save_LIBS=$LIBS
10276: LIBS="-ldld $LIBS"
10277: cat >conftest.$ac_ext <<_ACEOF
10278: /* confdefs.h. */
10279: _ACEOF
10280: cat confdefs.h >>conftest.$ac_ext
10281: cat >>conftest.$ac_ext <<_ACEOF
10282: /* end confdefs.h. */
10283:
1.1.1.2 ! root 10284: /* Override any GCC internal prototype to avoid an error.
! 10285: Use char because int might match the return type of a GCC
! 10286: builtin and then its argument prototype would still apply. */
1.1 root 10287: #ifdef __cplusplus
10288: extern "C"
10289: #endif
10290: char dld_link ();
10291: int
10292: main ()
10293: {
1.1.1.2 ! root 10294: return dld_link ();
1.1 root 10295: ;
10296: return 0;
10297: }
10298: _ACEOF
10299: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 10300: if { (ac_try="$ac_link"
! 10301: case "(($ac_try" in
! 10302: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 10303: *) ac_try_echo=$ac_try;;
! 10304: esac
! 10305: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 10306: (eval "$ac_link") 2>conftest.er1
1.1 root 10307: ac_status=$?
1.1.1.2 ! root 10308: grep -v '^ *+' conftest.er1 >conftest.err
! 10309: rm -f conftest.er1
! 10310: cat conftest.err >&5
1.1 root 10311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 10312: (exit $ac_status); } && {
! 10313: test -z "$ac_c_werror_flag" ||
! 10314: test ! -s conftest.err
! 10315: } && test -s conftest$ac_exeext &&
! 10316: $as_test_x conftest$ac_exeext; then
1.1 root 10317: ac_cv_lib_dld_dld_link=yes
10318: else
10319: echo "$as_me: failed program was:" >&5
10320: sed 's/^/| /' conftest.$ac_ext >&5
10321:
1.1.1.2 ! root 10322: ac_cv_lib_dld_dld_link=no
1.1 root 10323: fi
1.1.1.2 ! root 10324:
! 10325: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 10326: conftest$ac_exeext conftest.$ac_ext
1.1 root 10327: LIBS=$ac_check_lib_save_LIBS
10328: fi
1.1.1.2 ! root 10329: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 10330: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
1.1 root 10331: if test $ac_cv_lib_dld_dld_link = yes; then
10332: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10333: fi
10334:
10335:
10336: fi
10337:
10338:
10339: fi
10340:
10341:
10342: fi
10343:
10344:
10345: fi
10346:
10347:
10348: fi
10349:
10350: ;;
10351: esac
10352:
10353: if test "x$lt_cv_dlopen" != xno; then
10354: enable_dlopen=yes
10355: else
10356: enable_dlopen=no
10357: fi
10358:
10359: case $lt_cv_dlopen in
10360: dlopen)
10361: save_CPPFLAGS="$CPPFLAGS"
10362: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10363:
10364: save_LDFLAGS="$LDFLAGS"
1.1.1.2 ! root 10365: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.1 root 10366:
10367: save_LIBS="$LIBS"
10368: LIBS="$lt_cv_dlopen_libs $LIBS"
10369:
1.1.1.2 ! root 10370: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 10371: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
1.1 root 10372: if test "${lt_cv_dlopen_self+set}" = set; then
10373: echo $ECHO_N "(cached) $ECHO_C" >&6
10374: else
10375: if test "$cross_compiling" = yes; then :
10376: lt_cv_dlopen_self=cross
10377: else
10378: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10379: lt_status=$lt_dlunknown
10380: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 10381: #line 10310 "configure"
1.1 root 10382: #include "confdefs.h"
10383:
10384: #if HAVE_DLFCN_H
10385: #include <dlfcn.h>
10386: #endif
10387:
10388: #include <stdio.h>
10389:
10390: #ifdef RTLD_GLOBAL
10391: # define LT_DLGLOBAL RTLD_GLOBAL
10392: #else
10393: # ifdef DL_GLOBAL
10394: # define LT_DLGLOBAL DL_GLOBAL
10395: # else
10396: # define LT_DLGLOBAL 0
10397: # endif
10398: #endif
10399:
10400: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10401: find out it does not work in some platform. */
10402: #ifndef LT_DLLAZY_OR_NOW
10403: # ifdef RTLD_LAZY
10404: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10405: # else
10406: # ifdef DL_LAZY
10407: # define LT_DLLAZY_OR_NOW DL_LAZY
10408: # else
10409: # ifdef RTLD_NOW
10410: # define LT_DLLAZY_OR_NOW RTLD_NOW
10411: # else
10412: # ifdef DL_NOW
10413: # define LT_DLLAZY_OR_NOW DL_NOW
10414: # else
10415: # define LT_DLLAZY_OR_NOW 0
10416: # endif
10417: # endif
10418: # endif
10419: # endif
10420: #endif
10421:
10422: #ifdef __cplusplus
10423: extern "C" void exit (int);
10424: #endif
10425:
10426: void fnord() { int i=42;}
10427: int main ()
10428: {
10429: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10430: int status = $lt_dlunknown;
10431:
10432: if (self)
10433: {
10434: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10435: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10436: /* dlclose (self); */
10437: }
1.1.1.2 ! root 10438: else
! 10439: puts (dlerror ());
1.1 root 10440:
10441: exit (status);
10442: }
10443: EOF
10444: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445: (eval $ac_link) 2>&5
10446: ac_status=$?
10447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1.1.2 ! root 10449: (./conftest; exit; ) >&5 2>/dev/null
1.1 root 10450: lt_status=$?
10451: case x$lt_status in
10452: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10453: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.1.1.2 ! root 10454: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.1 root 10455: esac
10456: else :
10457: # compilation failed
10458: lt_cv_dlopen_self=no
10459: fi
10460: fi
10461: rm -fr conftest*
10462:
10463:
10464: fi
1.1.1.2 ! root 10465: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 10466: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.1 root 10467:
10468: if test "x$lt_cv_dlopen_self" = xyes; then
1.1.1.2 ! root 10469: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
! 10470: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 10471: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
1.1 root 10472: if test "${lt_cv_dlopen_self_static+set}" = set; then
10473: echo $ECHO_N "(cached) $ECHO_C" >&6
10474: else
10475: if test "$cross_compiling" = yes; then :
10476: lt_cv_dlopen_self_static=cross
10477: else
10478: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10479: lt_status=$lt_dlunknown
10480: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 10481: #line 10410 "configure"
1.1 root 10482: #include "confdefs.h"
10483:
10484: #if HAVE_DLFCN_H
10485: #include <dlfcn.h>
10486: #endif
10487:
10488: #include <stdio.h>
10489:
10490: #ifdef RTLD_GLOBAL
10491: # define LT_DLGLOBAL RTLD_GLOBAL
10492: #else
10493: # ifdef DL_GLOBAL
10494: # define LT_DLGLOBAL DL_GLOBAL
10495: # else
10496: # define LT_DLGLOBAL 0
10497: # endif
10498: #endif
10499:
10500: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10501: find out it does not work in some platform. */
10502: #ifndef LT_DLLAZY_OR_NOW
10503: # ifdef RTLD_LAZY
10504: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10505: # else
10506: # ifdef DL_LAZY
10507: # define LT_DLLAZY_OR_NOW DL_LAZY
10508: # else
10509: # ifdef RTLD_NOW
10510: # define LT_DLLAZY_OR_NOW RTLD_NOW
10511: # else
10512: # ifdef DL_NOW
10513: # define LT_DLLAZY_OR_NOW DL_NOW
10514: # else
10515: # define LT_DLLAZY_OR_NOW 0
10516: # endif
10517: # endif
10518: # endif
10519: # endif
10520: #endif
10521:
10522: #ifdef __cplusplus
10523: extern "C" void exit (int);
10524: #endif
10525:
10526: void fnord() { int i=42;}
10527: int main ()
10528: {
10529: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10530: int status = $lt_dlunknown;
10531:
10532: if (self)
10533: {
10534: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10535: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10536: /* dlclose (self); */
10537: }
1.1.1.2 ! root 10538: else
! 10539: puts (dlerror ());
1.1 root 10540:
10541: exit (status);
10542: }
10543: EOF
10544: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545: (eval $ac_link) 2>&5
10546: ac_status=$?
10547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1.1.2 ! root 10549: (./conftest; exit; ) >&5 2>/dev/null
1.1 root 10550: lt_status=$?
10551: case x$lt_status in
10552: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10553: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.1.1.2 ! root 10554: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.1 root 10555: esac
10556: else :
10557: # compilation failed
10558: lt_cv_dlopen_self_static=no
10559: fi
10560: fi
10561: rm -fr conftest*
10562:
10563:
10564: fi
1.1.1.2 ! root 10565: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 10566: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
1.1 root 10567: fi
10568:
10569: CPPFLAGS="$save_CPPFLAGS"
10570: LDFLAGS="$save_LDFLAGS"
10571: LIBS="$save_LIBS"
10572: ;;
10573: esac
10574:
10575: case $lt_cv_dlopen_self in
10576: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10577: *) enable_dlopen_self=unknown ;;
10578: esac
10579:
10580: case $lt_cv_dlopen_self_static in
10581: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10582: *) enable_dlopen_self_static=unknown ;;
10583: esac
10584: fi
10585:
10586:
1.1.1.2 ! root 10587: # Report which library types will actually be built
! 10588: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 10589: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 10590: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 10591: echo "${ECHO_T}$can_build_shared" >&6; }
1.1 root 10592:
1.1.1.2 ! root 10593: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 10594: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
1.1 root 10595: test "$can_build_shared" = "no" && enable_shared=no
10596:
10597: # On AIX, shared libraries and static libraries use the same namespace, and
10598: # are all built from PIC.
1.1.1.2 ! root 10599: case $host_os in
1.1 root 10600: aix3*)
10601: test "$enable_shared" = yes && enable_static=no
10602: if test -n "$RANLIB"; then
10603: archive_cmds="$archive_cmds~\$RANLIB \$lib"
10604: postinstall_cmds='$RANLIB $lib'
10605: fi
10606: ;;
10607:
1.1.1.2 ! root 10608: aix4* | aix5*)
1.1 root 10609: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10610: test "$enable_shared" = yes && enable_static=no
10611: fi
10612: ;;
10613: esac
1.1.1.2 ! root 10614: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 10615: echo "${ECHO_T}$enable_shared" >&6; }
1.1 root 10616:
1.1.1.2 ! root 10617: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 10618: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
1.1 root 10619: # Make sure either enable_shared or enable_static is yes.
10620: test "$enable_shared" = yes || enable_static=yes
1.1.1.2 ! root 10621: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 10622: echo "${ECHO_T}$enable_static" >&6; }
1.1 root 10623:
10624: # The else clause should only fire when bootstrapping the
10625: # libtool distribution, otherwise you forgot to ship ltmain.sh
10626: # with your package, and you will get complaints that there are
10627: # no rules to generate ltmain.sh.
10628: if test -f "$ltmain"; then
10629: # See if we are running on zsh, and set the options which allow our commands through
10630: # without removal of \ escapes.
10631: if test -n "${ZSH_VERSION+set}" ; then
10632: setopt NO_GLOB_SUBST
10633: fi
10634: # Now quote all the things that may contain metacharacters while being
10635: # careful not to overquote the AC_SUBSTed values. We take copies of the
10636: # variables and quote the copies for generation of the libtool script.
1.1.1.2 ! root 10637: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 10638: SED SHELL STRIP \
1.1 root 10639: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10640: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10641: deplibs_check_method reload_flag reload_cmds need_locks \
10642: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10643: lt_cv_sys_global_symbol_to_c_name_address \
10644: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10645: old_postinstall_cmds old_postuninstall_cmds \
10646: compiler \
10647: CC \
10648: LD \
10649: lt_prog_compiler_wl \
10650: lt_prog_compiler_pic \
10651: lt_prog_compiler_static \
10652: lt_prog_compiler_no_builtin_flag \
10653: export_dynamic_flag_spec \
10654: thread_safe_flag_spec \
10655: whole_archive_flag_spec \
10656: enable_shared_with_static_runtimes \
10657: old_archive_cmds \
10658: old_archive_from_new_cmds \
10659: predep_objects \
10660: postdep_objects \
10661: predeps \
10662: postdeps \
10663: compiler_lib_search_path \
10664: archive_cmds \
10665: archive_expsym_cmds \
10666: postinstall_cmds \
10667: postuninstall_cmds \
10668: old_archive_from_expsyms_cmds \
10669: allow_undefined_flag \
10670: no_undefined_flag \
10671: export_symbols_cmds \
10672: hardcode_libdir_flag_spec \
10673: hardcode_libdir_flag_spec_ld \
10674: hardcode_libdir_separator \
10675: hardcode_automatic \
10676: module_cmds \
10677: module_expsym_cmds \
10678: lt_cv_prog_compiler_c_o \
1.1.1.2 ! root 10679: fix_srcfile_path \
1.1 root 10680: exclude_expsyms \
10681: include_expsyms; do
10682:
10683: case $var in
10684: old_archive_cmds | \
10685: old_archive_from_new_cmds | \
10686: archive_cmds | \
10687: archive_expsym_cmds | \
10688: module_cmds | \
10689: module_expsym_cmds | \
10690: old_archive_from_expsyms_cmds | \
10691: export_symbols_cmds | \
10692: extract_expsyms_cmds | reload_cmds | finish_cmds | \
10693: postinstall_cmds | postuninstall_cmds | \
10694: old_postinstall_cmds | old_postuninstall_cmds | \
10695: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10696: # Double-quote double-evaled strings.
10697: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10698: ;;
10699: *)
10700: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10701: ;;
10702: esac
10703: done
10704:
10705: case $lt_echo in
10706: *'\$0 --fallback-echo"')
10707: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10708: ;;
10709: esac
10710:
10711: cfgfile="${ofile}T"
10712: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10713: $rm -f "$cfgfile"
10714: { echo "$as_me:$LINENO: creating $ofile" >&5
10715: echo "$as_me: creating $ofile" >&6;}
10716:
10717: cat <<__EOF__ >> "$cfgfile"
10718: #! $SHELL
10719:
10720: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10721: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10722: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10723: #
1.1.1.2 ! root 10724: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
1.1 root 10725: # Free Software Foundation, Inc.
10726: #
10727: # This file is part of GNU Libtool:
10728: # Originally by Gordon Matzigkeit <[email protected]>, 1996
10729: #
10730: # This program is free software; you can redistribute it and/or modify
10731: # it under the terms of the GNU General Public License as published by
10732: # the Free Software Foundation; either version 2 of the License, or
10733: # (at your option) any later version.
10734: #
10735: # This program is distributed in the hope that it will be useful, but
10736: # WITHOUT ANY WARRANTY; without even the implied warranty of
10737: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10738: # General Public License for more details.
10739: #
10740: # You should have received a copy of the GNU General Public License
10741: # along with this program; if not, write to the Free Software
1.1.1.2 ! root 10742: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.1 root 10743: #
10744: # As a special exception to the GNU General Public License, if you
10745: # distribute this file as part of a program that contains a
10746: # configuration script generated by Autoconf, you may include it under
10747: # the same distribution terms that you use for the rest of that program.
10748:
10749: # A sed program that does not truncate output.
10750: SED=$lt_SED
10751:
10752: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
1.1.1.2 ! root 10753: Xsed="$SED -e 1s/^X//"
1.1 root 10754:
10755: # The HP-UX ksh and POSIX shell print the target directory to stdout
10756: # if CDPATH is set.
1.1.1.2 ! root 10757: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 root 10758:
10759: # The names of the tagged configurations supported by this script.
10760: available_tags=
10761:
10762: # ### BEGIN LIBTOOL CONFIG
10763:
10764: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10765:
10766: # Shell to use when invoking shell scripts.
10767: SHELL=$lt_SHELL
10768:
10769: # Whether or not to build shared libraries.
10770: build_libtool_libs=$enable_shared
10771:
10772: # Whether or not to build static libraries.
10773: build_old_libs=$enable_static
10774:
10775: # Whether or not to add -lc for building shared libraries.
10776: build_libtool_need_lc=$archive_cmds_need_lc
10777:
10778: # Whether or not to disallow shared libs when runtime libs are static
10779: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10780:
10781: # Whether or not to optimize for fast installation.
10782: fast_install=$enable_fast_install
10783:
10784: # The host system.
10785: host_alias=$host_alias
10786: host=$host
1.1.1.2 ! root 10787: host_os=$host_os
! 10788:
! 10789: # The build system.
! 10790: build_alias=$build_alias
! 10791: build=$build
! 10792: build_os=$build_os
1.1 root 10793:
10794: # An echo program that does not interpret backslashes.
10795: echo=$lt_echo
10796:
10797: # The archiver.
10798: AR=$lt_AR
10799: AR_FLAGS=$lt_AR_FLAGS
10800:
10801: # A C compiler.
10802: LTCC=$lt_LTCC
10803:
1.1.1.2 ! root 10804: # LTCC compiler flags.
! 10805: LTCFLAGS=$lt_LTCFLAGS
! 10806:
1.1 root 10807: # A language-specific compiler.
10808: CC=$lt_compiler
10809:
10810: # Is the compiler the GNU C compiler?
10811: with_gcc=$GCC
10812:
10813: # An ERE matcher.
10814: EGREP=$lt_EGREP
10815:
10816: # The linker used to build libraries.
10817: LD=$lt_LD
10818:
10819: # Whether we need hard or soft links.
10820: LN_S=$lt_LN_S
10821:
10822: # A BSD-compatible nm program.
10823: NM=$lt_NM
10824:
10825: # A symbol stripping program
1.1.1.2 ! root 10826: STRIP=$lt_STRIP
1.1 root 10827:
10828: # Used to examine libraries when file_magic_cmd begins "file"
10829: MAGIC_CMD=$MAGIC_CMD
10830:
10831: # Used on cygwin: DLL creation program.
10832: DLLTOOL="$DLLTOOL"
10833:
10834: # Used on cygwin: object dumper.
10835: OBJDUMP="$OBJDUMP"
10836:
10837: # Used on cygwin: assembler.
10838: AS="$AS"
10839:
10840: # The name of the directory that contains temporary libtool files.
10841: objdir=$objdir
10842:
10843: # How to create reloadable object files.
10844: reload_flag=$lt_reload_flag
10845: reload_cmds=$lt_reload_cmds
10846:
10847: # How to pass a linker flag through the compiler.
10848: wl=$lt_lt_prog_compiler_wl
10849:
10850: # Object file suffix (normally "o").
10851: objext="$ac_objext"
10852:
10853: # Old archive suffix (normally "a").
10854: libext="$libext"
10855:
10856: # Shared library suffix (normally ".so").
1.1.1.2 ! root 10857: shrext_cmds='$shrext_cmds'
1.1 root 10858:
10859: # Executable file suffix (normally "").
10860: exeext="$exeext"
10861:
10862: # Additional compiler flags for building library objects.
10863: pic_flag=$lt_lt_prog_compiler_pic
10864: pic_mode=$pic_mode
10865:
10866: # What is the maximum length of a command?
10867: max_cmd_len=$lt_cv_sys_max_cmd_len
10868:
10869: # Does compiler simultaneously support -c and -o options?
10870: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10871:
1.1.1.2 ! root 10872: # Must we lock files when doing compilation?
1.1 root 10873: need_locks=$lt_need_locks
10874:
10875: # Do we need the lib prefix for modules?
10876: need_lib_prefix=$need_lib_prefix
10877:
10878: # Do we need a version for libraries?
10879: need_version=$need_version
10880:
10881: # Whether dlopen is supported.
10882: dlopen_support=$enable_dlopen
10883:
10884: # Whether dlopen of programs is supported.
10885: dlopen_self=$enable_dlopen_self
10886:
10887: # Whether dlopen of statically linked programs is supported.
10888: dlopen_self_static=$enable_dlopen_self_static
10889:
10890: # Compiler flag to prevent dynamic linking.
10891: link_static_flag=$lt_lt_prog_compiler_static
10892:
10893: # Compiler flag to turn off builtin functions.
10894: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10895:
10896: # Compiler flag to allow reflexive dlopens.
10897: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10898:
10899: # Compiler flag to generate shared objects directly from archives.
10900: whole_archive_flag_spec=$lt_whole_archive_flag_spec
10901:
10902: # Compiler flag to generate thread-safe objects.
10903: thread_safe_flag_spec=$lt_thread_safe_flag_spec
10904:
10905: # Library versioning type.
10906: version_type=$version_type
10907:
10908: # Format of library name prefix.
10909: libname_spec=$lt_libname_spec
10910:
10911: # List of archive names. First name is the real one, the rest are links.
10912: # The last name is the one that the linker finds with -lNAME.
10913: library_names_spec=$lt_library_names_spec
10914:
10915: # The coded name of the library, if different from the real name.
10916: soname_spec=$lt_soname_spec
10917:
10918: # Commands used to build and install an old-style archive.
10919: RANLIB=$lt_RANLIB
10920: old_archive_cmds=$lt_old_archive_cmds
10921: old_postinstall_cmds=$lt_old_postinstall_cmds
10922: old_postuninstall_cmds=$lt_old_postuninstall_cmds
10923:
10924: # Create an old-style archive from a shared archive.
10925: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10926:
10927: # Create a temporary old-style archive to link instead of a shared archive.
10928: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10929:
10930: # Commands used to build and install a shared archive.
10931: archive_cmds=$lt_archive_cmds
10932: archive_expsym_cmds=$lt_archive_expsym_cmds
10933: postinstall_cmds=$lt_postinstall_cmds
10934: postuninstall_cmds=$lt_postuninstall_cmds
10935:
10936: # Commands used to build a loadable module (assumed same as above if empty)
10937: module_cmds=$lt_module_cmds
10938: module_expsym_cmds=$lt_module_expsym_cmds
10939:
10940: # Commands to strip libraries.
10941: old_striplib=$lt_old_striplib
10942: striplib=$lt_striplib
10943:
10944: # Dependencies to place before the objects being linked to create a
10945: # shared library.
10946: predep_objects=$lt_predep_objects
10947:
10948: # Dependencies to place after the objects being linked to create a
10949: # shared library.
10950: postdep_objects=$lt_postdep_objects
10951:
10952: # Dependencies to place before the objects being linked to create a
10953: # shared library.
10954: predeps=$lt_predeps
10955:
10956: # Dependencies to place after the objects being linked to create a
10957: # shared library.
10958: postdeps=$lt_postdeps
10959:
10960: # The library search path used internally by the compiler when linking
10961: # a shared library.
10962: compiler_lib_search_path=$lt_compiler_lib_search_path
10963:
10964: # Method to check whether dependent libraries are shared objects.
10965: deplibs_check_method=$lt_deplibs_check_method
10966:
10967: # Command to use when deplibs_check_method == file_magic.
10968: file_magic_cmd=$lt_file_magic_cmd
10969:
10970: # Flag that allows shared libraries with undefined symbols to be built.
10971: allow_undefined_flag=$lt_allow_undefined_flag
10972:
10973: # Flag that forces no undefined symbols.
10974: no_undefined_flag=$lt_no_undefined_flag
10975:
10976: # Commands used to finish a libtool library installation in a directory.
10977: finish_cmds=$lt_finish_cmds
10978:
10979: # Same as above, but a single script fragment to be evaled but not shown.
10980: finish_eval=$lt_finish_eval
10981:
10982: # Take the output of nm and produce a listing of raw symbols and C names.
10983: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10984:
10985: # Transform the output of nm in a proper C declaration
10986: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10987:
10988: # Transform the output of nm in a C name address pair
10989: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10990:
10991: # This is the shared library runtime path variable.
10992: runpath_var=$runpath_var
10993:
10994: # This is the shared library path variable.
10995: shlibpath_var=$shlibpath_var
10996:
10997: # Is shlibpath searched before the hard-coded library search path?
10998: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10999:
11000: # How to hardcode a shared library path into an executable.
11001: hardcode_action=$hardcode_action
11002:
11003: # Whether we should hardcode library paths into libraries.
11004: hardcode_into_libs=$hardcode_into_libs
11005:
11006: # Flag to hardcode \$libdir into a binary during linking.
11007: # This must work even if \$libdir does not exist.
11008: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11009:
11010: # If ld is used when linking, flag to hardcode \$libdir into
11011: # a binary during linking. This must work even if \$libdir does
11012: # not exist.
11013: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11014:
11015: # Whether we need a single -rpath flag with a separated argument.
11016: hardcode_libdir_separator=$lt_hardcode_libdir_separator
11017:
11018: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11019: # resulting binary.
11020: hardcode_direct=$hardcode_direct
11021:
11022: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11023: # resulting binary.
11024: hardcode_minus_L=$hardcode_minus_L
11025:
11026: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11027: # the resulting binary.
11028: hardcode_shlibpath_var=$hardcode_shlibpath_var
11029:
11030: # Set to yes if building a shared library automatically hardcodes DIR into the library
11031: # and all subsequent libraries and executables linked against it.
11032: hardcode_automatic=$hardcode_automatic
11033:
11034: # Variables whose values should be saved in libtool wrapper scripts and
11035: # restored at relink time.
11036: variables_saved_for_relink="$variables_saved_for_relink"
11037:
11038: # Whether libtool must link a program against all its dependency libraries.
11039: link_all_deplibs=$link_all_deplibs
11040:
11041: # Compile-time system search path for libraries
11042: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11043:
11044: # Run-time system search path for libraries
11045: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11046:
11047: # Fix the shell variable \$srcfile for the compiler.
1.1.1.2 ! root 11048: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 11049:
11050: # Set to yes if exported symbols are required.
11051: always_export_symbols=$always_export_symbols
11052:
11053: # The commands to list exported symbols.
11054: export_symbols_cmds=$lt_export_symbols_cmds
11055:
11056: # The commands to extract the exported symbol list from a shared archive.
11057: extract_expsyms_cmds=$lt_extract_expsyms_cmds
11058:
11059: # Symbols that should not be listed in the preloaded symbols.
11060: exclude_expsyms=$lt_exclude_expsyms
11061:
11062: # Symbols that must always be exported.
11063: include_expsyms=$lt_include_expsyms
11064:
11065: # ### END LIBTOOL CONFIG
11066:
11067: __EOF__
11068:
11069:
11070: case $host_os in
11071: aix3*)
11072: cat <<\EOF >> "$cfgfile"
11073:
11074: # AIX sometimes has problems with the GCC collect2 program. For some
11075: # reason, if we set the COLLECT_NAMES environment variable, the problems
11076: # vanish in a puff of smoke.
11077: if test "X${COLLECT_NAMES+set}" != Xset; then
11078: COLLECT_NAMES=
11079: export COLLECT_NAMES
11080: fi
11081: EOF
11082: ;;
11083: esac
11084:
11085: # We use sed instead of cat because bash on DJGPP gets confused if
11086: # if finds mixed CR/LF and LF-only lines. Since sed operates in
11087: # text mode, it properly converts lines to CR/LF. This bash problem
11088: # is reportedly fixed, but why not run on old versions too?
11089: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11090:
11091: mv -f "$cfgfile" "$ofile" || \
11092: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11093: chmod +x "$ofile"
11094:
11095: else
11096: # If there is no Makefile yet, we rely on a make rule to execute
11097: # `config.status --recheck' to rerun these tests and create the
11098: # libtool script then.
1.1.1.2 ! root 11099: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 11100: if test -f "$ltmain_in"; then
! 11101: test -f Makefile && make "$ltmain"
! 11102: fi
1.1 root 11103: fi
11104:
11105:
11106: ac_ext=c
11107: ac_cpp='$CPP $CPPFLAGS'
11108: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11109: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11110: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11111:
11112: CC="$lt_save_CC"
11113:
11114:
1.1.1.2 ! root 11115: # Check whether --with-tags was given.
1.1 root 11116: if test "${with_tags+set}" = set; then
1.1.1.2 ! root 11117: withval=$with_tags; tagnames="$withval"
! 11118: fi
! 11119:
1.1 root 11120:
11121: if test -f "$ltmain" && test -n "$tagnames"; then
11122: if test ! -f "${ofile}"; then
11123: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11124: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11125: fi
11126:
11127: if test -z "$LTCC"; then
11128: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11129: if test -z "$LTCC"; then
11130: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11131: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11132: else
11133: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11134: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11135: fi
11136: fi
1.1.1.2 ! root 11137: if test -z "$LTCFLAGS"; then
! 11138: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
! 11139: fi
1.1 root 11140:
11141: # Extract list of available tagged configurations in $ofile.
11142: # Note that this assumes the entire list is on one line.
11143: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11144:
11145: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11146: for tagname in $tagnames; do
11147: IFS="$lt_save_ifs"
11148: # Check whether tagname contains only valid characters
11149: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11150: "") ;;
11151: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11152: echo "$as_me: error: invalid tag name: $tagname" >&2;}
11153: { (exit 1); exit 1; }; }
11154: ;;
11155: esac
11156:
11157: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11158: then
11159: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11160: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11161: { (exit 1); exit 1; }; }
11162: fi
11163:
11164: # Update the list of available tags.
11165: if test -n "$tagname"; then
11166: echo appending configuration tag \"$tagname\" to $ofile
11167:
11168: case $tagname in
11169: CXX)
1.1.1.2 ! root 11170: if test -n "$CXX" && test "X$CXX" != "Xno" ; then
! 11171: ac_ext=cpp
1.1 root 11172: ac_cpp='$CXXCPP $CPPFLAGS'
11173: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11174: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11175: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11176:
11177:
11178:
11179:
11180: archive_cmds_need_lc_CXX=no
11181: allow_undefined_flag_CXX=
11182: always_export_symbols_CXX=no
11183: archive_expsym_cmds_CXX=
11184: export_dynamic_flag_spec_CXX=
11185: hardcode_direct_CXX=no
11186: hardcode_libdir_flag_spec_CXX=
11187: hardcode_libdir_flag_spec_ld_CXX=
11188: hardcode_libdir_separator_CXX=
11189: hardcode_minus_L_CXX=no
1.1.1.2 ! root 11190: hardcode_shlibpath_var_CXX=unsupported
1.1 root 11191: hardcode_automatic_CXX=no
11192: module_cmds_CXX=
11193: module_expsym_cmds_CXX=
11194: link_all_deplibs_CXX=unknown
11195: old_archive_cmds_CXX=$old_archive_cmds
11196: no_undefined_flag_CXX=
11197: whole_archive_flag_spec_CXX=
11198: enable_shared_with_static_runtimes_CXX=no
11199:
11200: # Dependencies to place before and after the object being linked:
11201: predep_objects_CXX=
11202: postdep_objects_CXX=
11203: predeps_CXX=
11204: postdeps_CXX=
11205: compiler_lib_search_path_CXX=
11206:
11207: # Source file extension for C++ test sources.
1.1.1.2 ! root 11208: ac_ext=cpp
1.1 root 11209:
11210: # Object file extension for compiled C++ test sources.
11211: objext=o
11212: objext_CXX=$objext
11213:
11214: # Code to be used in simple compile tests
1.1.1.2 ! root 11215: lt_simple_compile_test_code="int some_variable = 0;"
1.1 root 11216:
11217: # Code to be used in simple link tests
1.1.1.2 ! root 11218: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
1.1 root 11219:
11220: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11221:
11222: # If no C compiler was specified, use CC.
11223: LTCC=${LTCC-"$CC"}
11224:
1.1.1.2 ! root 11225: # If no C compiler flags were specified, use CFLAGS.
! 11226: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 11227:
1.1 root 11228: # Allow CC to be a program name with arguments.
11229: compiler=$CC
11230:
11231:
1.1.1.2 ! root 11232: # save warnings/boilerplate of simple test code
! 11233: ac_outfile=conftest.$ac_objext
! 11234: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 11235: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 11236: _lt_compiler_boilerplate=`cat conftest.err`
! 11237: $rm conftest*
! 11238:
! 11239: ac_outfile=conftest.$ac_objext
! 11240: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 11241: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 11242: _lt_linker_boilerplate=`cat conftest.err`
! 11243: $rm conftest*
! 11244:
! 11245:
1.1 root 11246: # Allow CC to be a program name with arguments.
11247: lt_save_CC=$CC
11248: lt_save_LD=$LD
11249: lt_save_GCC=$GCC
11250: GCC=$GXX
11251: lt_save_with_gnu_ld=$with_gnu_ld
11252: lt_save_path_LD=$lt_cv_path_LD
11253: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11254: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11255: else
1.1.1.2 ! root 11256: $as_unset lt_cv_prog_gnu_ld
1.1 root 11257: fi
11258: if test -n "${lt_cv_path_LDCXX+set}"; then
11259: lt_cv_path_LD=$lt_cv_path_LDCXX
11260: else
1.1.1.2 ! root 11261: $as_unset lt_cv_path_LD
1.1 root 11262: fi
11263: test -z "${LDCXX+set}" || LD=$LDCXX
11264: CC=${CXX-"c++"}
11265: compiler=$CC
11266: compiler_CXX=$CC
1.1.1.2 ! root 11267: for cc_temp in $compiler""; do
! 11268: case $cc_temp in
! 11269: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 11270: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 11271: \-*) ;;
! 11272: *) break;;
! 11273: esac
! 11274: done
! 11275: # Return the actual command name, not our pkgsrc wrapper name because several
! 11276: # decisions are made only based on compiler names
! 11277: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 11278: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 11279:
1.1 root 11280:
11281: # We don't want -fno-exception wen compiling C++ code, so set the
11282: # no_builtin_flag separately
11283: if test "$GXX" = yes; then
11284: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11285: else
11286: lt_prog_compiler_no_builtin_flag_CXX=
11287: fi
11288:
11289: if test "$GXX" = yes; then
11290: # Set up default GNU C++ configuration
11291:
11292:
1.1.1.2 ! root 11293: # Check whether --with-gnu-ld was given.
1.1 root 11294: if test "${with_gnu_ld+set}" = set; then
1.1.1.2 ! root 11295: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.1 root 11296: else
11297: with_gnu_ld=no
1.1.1.2 ! root 11298: fi
! 11299:
1.1 root 11300: ac_prog=ld
11301: if test "$GCC" = yes; then
11302: # Check if gcc -print-prog-name=ld gives a path.
1.1.1.2 ! root 11303: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 11304: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.1 root 11305: case $host in
11306: *-*-mingw*)
11307: # gcc leaves a trailing carriage return which upsets mingw
11308: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11309: *)
11310: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11311: esac
11312: case $ac_prog in
11313: # Accept absolute paths.
11314: [\\/]* | ?:[\\/]*)
11315: re_direlt='/[^/][^/]*/\.\./'
1.1.1.2 ! root 11316: # Canonicalize the pathname of ld
1.1 root 11317: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11318: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11319: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11320: done
11321: test -z "$LD" && LD="$ac_prog"
11322: ;;
11323: "")
11324: # If it fails, then pretend we aren't using GCC.
11325: ac_prog=ld
11326: ;;
11327: *)
11328: # If it is relative, then search for the first ld in PATH.
11329: with_gnu_ld=unknown
11330: ;;
11331: esac
11332: elif test "$with_gnu_ld" = yes; then
1.1.1.2 ! root 11333: { echo "$as_me:$LINENO: checking for GNU ld" >&5
! 11334: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.1 root 11335: else
1.1.1.2 ! root 11336: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 11337: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.1 root 11338: fi
11339: if test "${lt_cv_path_LD+set}" = set; then
11340: echo $ECHO_N "(cached) $ECHO_C" >&6
11341: else
11342: if test -z "$LD"; then
11343: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11344: for ac_dir in $PATH; do
11345: IFS="$lt_save_ifs"
11346: test -z "$ac_dir" && ac_dir=.
11347: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348: lt_cv_path_LD="$ac_dir/$ac_prog"
11349: # Check to see if the program is GNU ld. I'd rather use --version,
1.1.1.2 ! root 11350: # but apparently some variants of GNU ld only accept -v.
1.1 root 11351: # Break only if it was the GNU/non-GNU ld that we prefer.
11352: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11353: *GNU* | *'with BFD'*)
11354: test "$with_gnu_ld" != no && break
11355: ;;
11356: *)
11357: test "$with_gnu_ld" != yes && break
11358: ;;
11359: esac
11360: fi
11361: done
11362: IFS="$lt_save_ifs"
11363: else
11364: lt_cv_path_LD="$LD" # Let the user override the test with a path.
11365: fi
11366: fi
11367:
11368: LD="$lt_cv_path_LD"
11369: if test -n "$LD"; then
1.1.1.2 ! root 11370: { echo "$as_me:$LINENO: result: $LD" >&5
! 11371: echo "${ECHO_T}$LD" >&6; }
1.1 root 11372: else
1.1.1.2 ! root 11373: { echo "$as_me:$LINENO: result: no" >&5
! 11374: echo "${ECHO_T}no" >&6; }
1.1 root 11375: fi
11376: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11377: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11378: { (exit 1); exit 1; }; }
1.1.1.2 ! root 11379: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 11380: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.1 root 11381: if test "${lt_cv_prog_gnu_ld+set}" = set; then
11382: echo $ECHO_N "(cached) $ECHO_C" >&6
11383: else
1.1.1.2 ! root 11384: # I'd rather use --version here, but apparently some GNU lds only accept -v.
! 11385: case `$LD -v 2>&1 </dev/null` in
1.1 root 11386: *GNU* | *'with BFD'*)
11387: lt_cv_prog_gnu_ld=yes
11388: ;;
11389: *)
11390: lt_cv_prog_gnu_ld=no
11391: ;;
11392: esac
11393: fi
1.1.1.2 ! root 11394: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 11395: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.1 root 11396: with_gnu_ld=$lt_cv_prog_gnu_ld
11397:
11398:
11399:
11400: # Check if GNU C++ uses GNU ld as the underlying linker, since the
11401: # archiving commands below assume that GNU ld is being used.
11402: if test "$with_gnu_ld" = yes; then
11403: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11404: 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'
11405:
11406: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11407: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11408:
11409: # If archive_cmds runs LD, not CC, wlarc should be empty
11410: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11411: # investigate it a little bit more. (MM)
11412: wlarc='${wl}'
11413:
11414: # ancient GNU ld didn't support --whole-archive et. al.
11415: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11416: grep 'no-whole-archive' > /dev/null; then
11417: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11418: else
11419: whole_archive_flag_spec_CXX=
11420: fi
11421: else
11422: with_gnu_ld=no
11423: wlarc=
11424:
11425: # A generic and very simple default shared library creation
11426: # command for GNU C++ for the case where it uses the native
11427: # linker, instead of GNU ld. If possible, this setting should
11428: # overridden to take advantage of the native linker features on
11429: # the platform it is being used on.
1.1.1.2 ! root 11430: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.1 root 11431: fi
11432:
11433: # Commands to make compiler produce verbose output that lists
11434: # what "hidden" libraries, object files and flags are used when
11435: # linking a shared library.
11436: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11437:
11438: else
11439: GXX=no
11440: with_gnu_ld=no
11441: wlarc=
11442: fi
11443:
11444: # PORTME: fill in a description of your system's C++ link characteristics
1.1.1.2 ! root 11445: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 11446: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 11447: ld_shlibs_CXX=yes
11448: case $host_os in
11449: aix3*)
11450: # FIXME: insert proper C++ library support
11451: ld_shlibs_CXX=no
11452: ;;
11453: aix4* | aix5*)
11454: if test "$host_cpu" = ia64; then
11455: # On IA64, the linker does run time linking by default, so we don't
11456: # have to do anything special.
11457: aix_use_runtimelinking=no
11458: exp_sym_flag='-Bexport'
11459: no_entry_flag=""
11460: else
11461: aix_use_runtimelinking=no
11462:
11463: # Test if we are trying to use run time linking or normal
11464: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11465: # need to do runtime linking.
11466: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11467: for ld_flag in $LDFLAGS; do
11468: case $ld_flag in
11469: *-brtl*)
11470: aix_use_runtimelinking=yes
11471: break
11472: ;;
11473: esac
11474: done
1.1.1.2 ! root 11475: ;;
1.1 root 11476: esac
11477:
11478: exp_sym_flag='-bexport'
11479: no_entry_flag='-bnoentry'
11480: fi
11481:
11482: # When large executables or shared objects are built, AIX ld can
11483: # have problems creating the table of contents. If linking a library
11484: # or program results in "error TOC overflow" add -mminimal-toc to
11485: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11486: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11487:
11488: archive_cmds_CXX=''
11489: hardcode_direct_CXX=yes
11490: hardcode_libdir_separator_CXX=':'
11491: link_all_deplibs_CXX=yes
11492:
11493: if test "$GXX" = yes; then
1.1.1.2 ! root 11494: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 11495: # We only want to do this on AIX 4.2 and lower, the check
11496: # below for broken collect2 doesn't work under 4.3+
11497: collect2name=`${CC} -print-prog-name=collect2`
11498: if test -f "$collect2name" && \
11499: strings "$collect2name" | grep resolve_lib_name >/dev/null
11500: then
11501: # We have reworked collect2
1.1.1.2 ! root 11502: :
1.1 root 11503: else
11504: # We have old collect2
11505: hardcode_direct_CXX=unsupported
11506: # It fails to find uninstalled libraries when the uninstalled
11507: # path is not listed in the libpath. Setting hardcode_minus_L
11508: # to unsupported forces relinking
11509: hardcode_minus_L_CXX=yes
11510: hardcode_libdir_flag_spec_CXX='-L$libdir'
11511: hardcode_libdir_separator_CXX=
11512: fi
1.1.1.2 ! root 11513: ;;
1.1 root 11514: esac
11515: shared_flag='-shared'
1.1.1.2 ! root 11516: if test "$aix_use_runtimelinking" = yes; then
! 11517: shared_flag="$shared_flag "'${wl}-G'
! 11518: fi
1.1 root 11519: else
11520: # not using gcc
11521: if test "$host_cpu" = ia64; then
11522: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11523: # chokes on -Wl,-G. The following line is correct:
11524: shared_flag='-G'
11525: else
11526: if test "$aix_use_runtimelinking" = yes; then
11527: shared_flag='${wl}-G'
11528: else
11529: shared_flag='${wl}-bM:SRE'
11530: fi
11531: fi
11532: fi
11533:
11534: # It seems that -bexpall does not export symbols beginning with
11535: # underscore (_), so it is better to generate a list of symbols to export.
11536: always_export_symbols_CXX=yes
11537: if test "$aix_use_runtimelinking" = yes; then
11538: # Warning - without using the other runtime loading flags (-brtl),
11539: # -berok will link without error, but may produce a broken library.
11540: allow_undefined_flag_CXX='-berok'
11541: # Determine the default libpath from the value encoded in an empty executable.
11542: cat >conftest.$ac_ext <<_ACEOF
11543: /* confdefs.h. */
11544: _ACEOF
11545: cat confdefs.h >>conftest.$ac_ext
11546: cat >>conftest.$ac_ext <<_ACEOF
11547: /* end confdefs.h. */
11548:
11549: int
11550: main ()
11551: {
11552:
11553: ;
11554: return 0;
11555: }
11556: _ACEOF
11557: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 11558: if { (ac_try="$ac_link"
! 11559: case "(($ac_try" in
! 11560: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11561: *) ac_try_echo=$ac_try;;
! 11562: esac
! 11563: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11564: (eval "$ac_link") 2>conftest.er1
1.1 root 11565: ac_status=$?
1.1.1.2 ! root 11566: grep -v '^ *+' conftest.er1 >conftest.err
! 11567: rm -f conftest.er1
! 11568: cat conftest.err >&5
1.1 root 11569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 11570: (exit $ac_status); } && {
! 11571: test -z "$ac_cxx_werror_flag" ||
! 11572: test ! -s conftest.err
! 11573: } && test -s conftest$ac_exeext &&
! 11574: $as_test_x conftest$ac_exeext; then
! 11575:
! 11576: lt_aix_libpath_sed='
! 11577: /Import File Strings/,/^$/ {
! 11578: /^0/ {
! 11579: s/^0 *\(.*\)$/\1/
! 11580: p
! 11581: }
! 11582: }'
! 11583: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 11584: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 11585: if test -z "$aix_libpath"; then
! 11586: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 11587: fi
1.1 root 11588: else
11589: echo "$as_me: failed program was:" >&5
11590: sed 's/^/| /' conftest.$ac_ext >&5
11591:
1.1.1.2 ! root 11592:
1.1 root 11593: fi
1.1.1.2 ! root 11594:
! 11595: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11596: conftest$ac_exeext conftest.$ac_ext
1.1 root 11597: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11598:
11599: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11600:
1.1.1.2 ! root 11601: 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"
1.1 root 11602: else
11603: if test "$host_cpu" = ia64; then
11604: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11605: allow_undefined_flag_CXX="-z nodefs"
1.1.1.2 ! root 11606: 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"
1.1 root 11607: else
11608: # Determine the default libpath from the value encoded in an empty executable.
11609: cat >conftest.$ac_ext <<_ACEOF
11610: /* confdefs.h. */
11611: _ACEOF
11612: cat confdefs.h >>conftest.$ac_ext
11613: cat >>conftest.$ac_ext <<_ACEOF
11614: /* end confdefs.h. */
11615:
11616: int
11617: main ()
11618: {
11619:
11620: ;
11621: return 0;
11622: }
11623: _ACEOF
11624: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 11625: if { (ac_try="$ac_link"
! 11626: case "(($ac_try" in
! 11627: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 11628: *) ac_try_echo=$ac_try;;
! 11629: esac
! 11630: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 11631: (eval "$ac_link") 2>conftest.er1
1.1 root 11632: ac_status=$?
1.1.1.2 ! root 11633: grep -v '^ *+' conftest.er1 >conftest.err
! 11634: rm -f conftest.er1
! 11635: cat conftest.err >&5
1.1 root 11636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 11637: (exit $ac_status); } && {
! 11638: test -z "$ac_cxx_werror_flag" ||
! 11639: test ! -s conftest.err
! 11640: } && test -s conftest$ac_exeext &&
! 11641: $as_test_x conftest$ac_exeext; then
! 11642:
! 11643: lt_aix_libpath_sed='
! 11644: /Import File Strings/,/^$/ {
! 11645: /^0/ {
! 11646: s/^0 *\(.*\)$/\1/
! 11647: p
! 11648: }
! 11649: }'
! 11650: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 11651: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 11652: if test -z "$aix_libpath"; then
! 11653: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 11654: fi
1.1 root 11655: else
11656: echo "$as_me: failed program was:" >&5
11657: sed 's/^/| /' conftest.$ac_ext >&5
11658:
1.1.1.2 ! root 11659:
1.1 root 11660: fi
1.1.1.2 ! root 11661:
! 11662: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 11663: conftest$ac_exeext conftest.$ac_ext
1.1 root 11664: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11665:
11666: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11667: # Warning - without using the other run time loading flags,
11668: # -berok will link without error, but may produce a broken library.
11669: no_undefined_flag_CXX=' ${wl}-bernotok'
11670: allow_undefined_flag_CXX=' ${wl}-berok'
11671: # Exported symbols can be pulled into shared objects from archives
1.1.1.2 ! root 11672: whole_archive_flag_spec_CXX='$convenience'
1.1 root 11673: archive_cmds_need_lc_CXX=yes
1.1.1.2 ! root 11674: # This is similar to how AIX traditionally builds its shared libraries.
! 11675: 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'
1.1 root 11676: fi
11677: fi
11678: ;;
1.1.1.2 ! root 11679:
! 11680: beos*)
! 11681: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 11682: allow_undefined_flag_CXX=unsupported
! 11683: # Joseph Beckenbach <[email protected]> says some releases of gcc
! 11684: # support --undefined. This deserves some investigation. FIXME
! 11685: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11686: else
! 11687: ld_shlibs_CXX=no
! 11688: fi
! 11689: ;;
! 11690:
1.1 root 11691: chorus*)
11692: case $cc_basename in
11693: *)
11694: # FIXME: insert proper C++ library support
11695: ld_shlibs_CXX=no
11696: ;;
11697: esac
11698: ;;
11699:
11700: cygwin* | mingw* | pw32*)
11701: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11702: # as there is no search path for DLLs.
11703: hardcode_libdir_flag_spec_CXX='-L$libdir'
11704: allow_undefined_flag_CXX=unsupported
11705: always_export_symbols_CXX=no
11706: enable_shared_with_static_runtimes_CXX=yes
11707:
11708: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.2 ! root 11709: 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'
1.1 root 11710: # If the export-symbols file already is a .def file (1st line
11711: # is EXPORTS), use it as is; otherwise, prepend...
11712: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11713: cp $export_symbols $output_objdir/$soname.def;
11714: else
11715: echo EXPORTS > $output_objdir/$soname.def;
11716: cat $export_symbols >> $output_objdir/$soname.def;
11717: fi~
1.1.1.2 ! root 11718: $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'
1.1 root 11719: else
11720: ld_shlibs_CXX=no
11721: fi
11722: ;;
1.1.1.2 ! root 11723: darwin* | rhapsody*)
! 11724: case $host_os in
! 11725: rhapsody* | darwin1.[012])
! 11726: allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
! 11727: ;;
! 11728: *) # Darwin 1.3 on
! 11729: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 11730: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 11731: else
! 11732: case ${MACOSX_DEPLOYMENT_TARGET} in
! 11733: 10.[012])
! 11734: allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 11735: ;;
! 11736: 10.*)
! 11737: allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
! 11738: ;;
! 11739: esac
! 11740: fi
! 11741: ;;
! 11742: esac
! 11743: archive_cmds_need_lc_CXX=no
! 11744: hardcode_direct_CXX=no
! 11745: hardcode_automatic_CXX=yes
! 11746: hardcode_shlibpath_var_CXX=unsupported
! 11747: whole_archive_flag_spec_CXX=''
! 11748: link_all_deplibs_CXX=yes
! 11749:
! 11750: if test "$GXX" = yes ; then
! 11751: lt_int_apple_cc_single_mod=no
! 11752: output_verbose_link_cmd='echo'
! 11753: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
! 11754: lt_int_apple_cc_single_mod=yes
1.1 root 11755: fi
11756: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.1.1.2 ! root 11757: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 11758: else
! 11759: 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'
! 11760: fi
! 11761: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 11762: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 11763: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 11764: 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}'
! 11765: else
! 11766: 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}'
! 11767: fi
! 11768: 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}'
1.1 root 11769: else
1.1.1.2 ! root 11770: case $cc_basename in
! 11771: xlc*)
! 11772: output_verbose_link_cmd='echo'
! 11773: archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 11774: module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 11775: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 11776: 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 11777: 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}'
! 11778: ;;
! 11779: *)
! 11780: ld_shlibs_CXX=no
! 11781: ;;
! 11782: esac
1.1 root 11783: fi
1.1.1.2 ! root 11784: ;;
1.1 root 11785:
11786: dgux*)
11787: case $cc_basename in
1.1.1.2 ! root 11788: ec++*)
1.1 root 11789: # FIXME: insert proper C++ library support
11790: ld_shlibs_CXX=no
11791: ;;
1.1.1.2 ! root 11792: ghcx*)
1.1 root 11793: # Green Hills C++ Compiler
11794: # FIXME: insert proper C++ library support
11795: ld_shlibs_CXX=no
11796: ;;
11797: *)
11798: # FIXME: insert proper C++ library support
11799: ld_shlibs_CXX=no
11800: ;;
11801: esac
11802: ;;
1.1.1.2 ! root 11803: freebsd[12]*)
1.1 root 11804: # C++ shared libraries reported to be fairly broken before switch to ELF
11805: ld_shlibs_CXX=no
11806: ;;
11807: freebsd-elf*)
11808: archive_cmds_need_lc_CXX=no
11809: ;;
1.1.1.2 ! root 11810: freebsd* | dragonfly*)
1.1 root 11811: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11812: # conventions
11813: ld_shlibs_CXX=yes
11814: ;;
11815: gnu*)
11816: ;;
11817: hpux9*)
11818: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11819: hardcode_libdir_separator_CXX=:
11820: export_dynamic_flag_spec_CXX='${wl}-E'
11821: hardcode_direct_CXX=yes
11822: hardcode_minus_L_CXX=yes # Not in the search PATH,
11823: # but as the default
11824: # location of the library.
11825:
11826: case $cc_basename in
1.1.1.2 ! root 11827: CC*)
1.1 root 11828: # FIXME: insert proper C++ library support
11829: ld_shlibs_CXX=no
11830: ;;
1.1.1.2 ! root 11831: aCC*)
1.1 root 11832: 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'
11833: # Commands to make compiler produce verbose output that lists
11834: # what "hidden" libraries, object files and flags are used when
11835: # linking a shared library.
11836: #
11837: # There doesn't appear to be a way to prevent this compiler from
11838: # explicitly linking system object files so we need to strip them
11839: # from the output so that they don't get included in the library
11840: # dependencies.
1.1.1.2 ! root 11841: 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'
1.1 root 11842: ;;
11843: *)
11844: if test "$GXX" = yes; then
11845: 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'
11846: else
11847: # FIXME: insert proper C++ library support
11848: ld_shlibs_CXX=no
11849: fi
11850: ;;
11851: esac
11852: ;;
11853: hpux10*|hpux11*)
11854: if test $with_gnu_ld = no; then
1.1.1.2 ! root 11855: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 11856: hardcode_libdir_separator_CXX=:
! 11857:
! 11858: case $host_cpu in
! 11859: hppa*64*|ia64*) ;;
1.1 root 11860: *)
11861: export_dynamic_flag_spec_CXX='${wl}-E'
11862: ;;
11863: esac
11864: fi
1.1.1.2 ! root 11865: case $host_cpu in
! 11866: hppa*64*|ia64*)
1.1 root 11867: hardcode_direct_CXX=no
11868: hardcode_shlibpath_var_CXX=no
11869: ;;
11870: *)
11871: hardcode_direct_CXX=yes
11872: hardcode_minus_L_CXX=yes # Not in the search PATH,
11873: # but as the default
11874: # location of the library.
11875: ;;
11876: esac
11877:
11878: case $cc_basename in
1.1.1.2 ! root 11879: CC*)
1.1 root 11880: # FIXME: insert proper C++ library support
11881: ld_shlibs_CXX=no
11882: ;;
1.1.1.2 ! root 11883: aCC*)
! 11884: case $host_cpu in
! 11885: hppa*64*)
! 11886: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11887: ;;
! 11888: ia64*)
! 11889: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1 root 11890: ;;
11891: *)
11892: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11893: ;;
11894: esac
11895: # Commands to make compiler produce verbose output that lists
11896: # what "hidden" libraries, object files and flags are used when
11897: # linking a shared library.
11898: #
11899: # There doesn't appear to be a way to prevent this compiler from
11900: # explicitly linking system object files so we need to strip them
11901: # from the output so that they don't get included in the library
11902: # dependencies.
11903: 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'
11904: ;;
11905: *)
11906: if test "$GXX" = yes; then
11907: if test $with_gnu_ld = no; then
1.1.1.2 ! root 11908: case $host_cpu in
! 11909: hppa*64*)
! 11910: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11911: ;;
! 11912: ia64*)
! 11913: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1 root 11914: ;;
11915: *)
11916: 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'
11917: ;;
11918: esac
11919: fi
11920: else
11921: # FIXME: insert proper C++ library support
11922: ld_shlibs_CXX=no
11923: fi
11924: ;;
11925: esac
11926: ;;
1.1.1.2 ! root 11927: interix[3-9]*)
! 11928: hardcode_direct_CXX=no
! 11929: hardcode_shlibpath_var_CXX=no
! 11930: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11931: export_dynamic_flag_spec_CXX='${wl}-E'
! 11932: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 11933: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 11934: # default) and relocated if they conflict, which is a slow very memory
! 11935: # consuming and fragmenting process. To avoid this, we pick a random,
! 11936: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 11937: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 11938: 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'
! 11939: 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'
! 11940: ;;
! 11941: interix3*)
! 11942: # Oy, what a hack.
! 11943: # Because shlibs are not compiled -fPIC due to broken code, we must
! 11944: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 11945: # all libraries, leading to runtime relocations -- slow and very
! 11946: # memory consuming. To do this, we pick a random 256KB-aligned
! 11947: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 11948: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 11949: archive_expsym_cmds_CXX='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 11950: ;;
! 11951: irix5* | irix6*)
! 11952: case $cc_basename in
! 11953: CC*)
1.1 root 11954: # SGI C++
1.1.1.2 ! root 11955: 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'
1.1 root 11956:
11957: # Archives containing C++ object files must be created using
11958: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11959: # necessary to make sure instantiated templates are included
11960: # in the archive.
11961: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11962: ;;
11963: *)
11964: if test "$GXX" = yes; then
11965: if test "$with_gnu_ld" = no; then
1.1.1.2 ! root 11966: 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'
1.1 root 11967: else
11968: 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'
11969: fi
11970: fi
11971: link_all_deplibs_CXX=yes
11972: ;;
11973: esac
11974: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11975: hardcode_libdir_separator_CXX=:
11976: ;;
1.1.1.2 ! root 11977: linux* | k*bsd*-gnu)
1.1 root 11978: case $cc_basename in
1.1.1.2 ! root 11979: KCC*)
1.1 root 11980: # Kuck and Associates, Inc. (KAI) C++ Compiler
11981:
11982: # KCC will only create a shared library if the output file
11983: # ends with ".so" (or ".sl" for HP-UX), so rename the library
11984: # to its proper name (with version) after linking.
11985: 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'
11986: 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'
11987: # Commands to make compiler produce verbose output that lists
11988: # what "hidden" libraries, object files and flags are used when
11989: # linking a shared library.
11990: #
11991: # There doesn't appear to be a way to prevent this compiler from
11992: # explicitly linking system object files so we need to strip them
11993: # from the output so that they don't get included in the library
11994: # dependencies.
11995: 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'
11996:
11997: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11998: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11999:
12000: # Archives containing C++ object files must be created using
12001: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12002: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12003: ;;
1.1.1.2 ! root 12004: icpc*)
1.1 root 12005: # Intel C++
12006: with_gnu_ld=yes
1.1.1.2 ! root 12007: # version 8.0 and above of icpc choke on multiply defined symbols
! 12008: # if we add $predep_objects and $postdep_objects, however 7.1 and
! 12009: # earlier do not add the objects themselves.
! 12010: case `$CC -V 2>&1` in
! 12011: *"Version 7."*)
! 12012: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 12013: 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'
! 12014: ;;
! 12015: *) # Version 8.0 or newer
! 12016: tmp_idyn=
! 12017: case $host_cpu in
! 12018: ia64*) tmp_idyn=' -i_dynamic';;
! 12019: esac
! 12020: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 12021: 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'
! 12022: ;;
! 12023: esac
1.1 root 12024: archive_cmds_need_lc_CXX=no
12025: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12026: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12027: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12028: ;;
1.1.1.2 ! root 12029: pgCC*)
! 12030: # Portland Group C++ compiler
! 12031: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
! 12032: 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'
! 12033:
! 12034: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
! 12035: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 12036: 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'
! 12037: ;;
! 12038: cxx*)
1.1 root 12039: # Compaq C++
12040: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12041: 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'
12042:
12043: runpath_var=LD_RUN_PATH
12044: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12045: hardcode_libdir_separator_CXX=:
12046:
12047: # Commands to make compiler produce verbose output that lists
12048: # what "hidden" libraries, object files and flags are used when
12049: # linking a shared library.
12050: #
12051: # There doesn't appear to be a way to prevent this compiler from
12052: # explicitly linking system object files so we need to strip them
12053: # from the output so that they don't get included in the library
12054: # dependencies.
12055: 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'
12056: ;;
1.1.1.2 ! root 12057: *)
! 12058: case `$CC -V 2>&1 | sed 5q` in
! 12059: *Sun\ C*)
! 12060: # Sun C++ 5.9
! 12061: no_undefined_flag_CXX=' -zdefs'
! 12062: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 12063: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
! 12064: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 12065: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 12066:
! 12067: # Not sure whether something based on
! 12068: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
! 12069: # would be better.
! 12070: output_verbose_link_cmd='echo'
! 12071:
! 12072: # Archives containing C++ object files must be created using
! 12073: # "CC -xar", where "CC" is the Sun C++ compiler. This is
! 12074: # necessary to make sure instantiated templates are included
! 12075: # in the archive.
! 12076: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
! 12077: ;;
! 12078: esac
! 12079: ;;
1.1 root 12080: esac
12081: ;;
12082: lynxos*)
12083: # FIXME: insert proper C++ library support
12084: ld_shlibs_CXX=no
12085: ;;
12086: m88k*)
12087: # FIXME: insert proper C++ library support
12088: ld_shlibs_CXX=no
12089: ;;
12090: mvs*)
12091: case $cc_basename in
1.1.1.2 ! root 12092: cxx*)
1.1 root 12093: # FIXME: insert proper C++ library support
12094: ld_shlibs_CXX=no
12095: ;;
12096: *)
12097: # FIXME: insert proper C++ library support
12098: ld_shlibs_CXX=no
12099: ;;
12100: esac
12101: ;;
12102: netbsd*)
12103: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.1.1.2 ! root 12104: # a.out is quite broken and goes directly to ld
1.1 root 12105: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12106: wlarc=
1.1.1.2 ! root 12107: # Determine if we need to override the c++rt0 that is
! 12108: # picked up by analysing output_verbose_link_cmds
! 12109: if test -f ${PREFIX}/lib/c++rt0/c++rt0.o.PIC; then
! 12110: cpprt0_file="${PREFIX}/lib/c++rt0/c++rt0.o.PIC"
! 12111: else
! 12112: cpprt0_file=
! 12113: fi
1.1 root 12114: hardcode_libdir_flag_spec_CXX='-R$libdir'
12115: hardcode_direct_CXX=yes
12116: hardcode_shlibpath_var_CXX=no
1.1.1.2 ! root 12117: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
! 12118: elif $CC -dumpspecs | grep -- '-lgcc -lc -lgcc' >/dev/null; then
! 12119: # Workaround some broken pre-1.5 ELF toolchains
! 12120: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
! 12121: else
! 12122: # Modern ELF works sanely as-is
! 12123: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 12124: archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 12125: output_verbose_link_cmd='echo'
! 12126: fi
! 12127: ;;
! 12128: openbsd2*)
! 12129: # C++ shared libraries are fairly broken
! 12130: ld_shlibs_CXX=no
! 12131: ;;
! 12132: openbsd*)
! 12133: if test -f /usr/libexec/ld.so; then
! 12134: hardcode_direct_CXX=yes
! 12135: hardcode_shlibpath_var_CXX=no
! 12136: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
! 12137: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 12138: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 12139: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
! 12140: export_dynamic_flag_spec_CXX='${wl}-E'
! 12141: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 12142: fi
! 12143: output_verbose_link_cmd='echo'
! 12144: else
! 12145: ld_shlibs_CXX=no
1.1 root 12146: fi
12147: ;;
12148: osf3*)
12149: case $cc_basename in
1.1.1.2 ! root 12150: KCC*)
1.1 root 12151: # Kuck and Associates, Inc. (KAI) C++ Compiler
12152:
12153: # KCC will only create a shared library if the output file
12154: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12155: # to its proper name (with version) after linking.
12156: 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'
12157:
12158: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12159: hardcode_libdir_separator_CXX=:
12160:
12161: # Archives containing C++ object files must be created using
12162: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12163: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12164:
12165: ;;
1.1.1.2 ! root 12166: RCC*)
1.1 root 12167: # Rational C++ 2.4.1
12168: # FIXME: insert proper C++ library support
12169: ld_shlibs_CXX=no
12170: ;;
1.1.1.2 ! root 12171: cxx*)
1.1 root 12172: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 ! root 12173: 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'
1.1 root 12174:
12175: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12176: hardcode_libdir_separator_CXX=:
12177:
12178: # Commands to make compiler produce verbose output that lists
12179: # what "hidden" libraries, object files and flags are used when
12180: # linking a shared library.
12181: #
12182: # There doesn't appear to be a way to prevent this compiler from
12183: # explicitly linking system object files so we need to strip them
12184: # from the output so that they don't get included in the library
12185: # dependencies.
12186: 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'
12187: ;;
12188: *)
12189: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12190: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 ! root 12191: 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'
1.1 root 12192:
12193: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12194: hardcode_libdir_separator_CXX=:
12195:
12196: # Commands to make compiler produce verbose output that lists
12197: # what "hidden" libraries, object files and flags are used when
12198: # linking a shared library.
12199: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12200:
12201: else
12202: # FIXME: insert proper C++ library support
12203: ld_shlibs_CXX=no
12204: fi
12205: ;;
12206: esac
12207: ;;
12208: osf4* | osf5*)
12209: case $cc_basename in
1.1.1.2 ! root 12210: KCC*)
1.1 root 12211: # Kuck and Associates, Inc. (KAI) C++ Compiler
12212:
12213: # KCC will only create a shared library if the output file
12214: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12215: # to its proper name (with version) after linking.
12216: 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'
12217:
12218: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12219: hardcode_libdir_separator_CXX=:
12220:
12221: # Archives containing C++ object files must be created using
12222: # the KAI C++ compiler.
12223: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12224: ;;
1.1.1.2 ! root 12225: RCC*)
1.1 root 12226: # Rational C++ 2.4.1
12227: # FIXME: insert proper C++ library support
12228: ld_shlibs_CXX=no
12229: ;;
1.1.1.2 ! root 12230: cxx*)
1.1 root 12231: allow_undefined_flag_CXX=' -expect_unresolved \*'
1.1.1.2 ! root 12232: 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'
1.1 root 12233: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12234: echo "-hidden">> $lib.exp~
1.1.1.2 ! root 12235: $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~
1.1 root 12236: $rm $lib.exp'
12237:
12238: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12239: hardcode_libdir_separator_CXX=:
12240:
12241: # Commands to make compiler produce verbose output that lists
12242: # what "hidden" libraries, object files and flags are used when
12243: # linking a shared library.
12244: #
12245: # There doesn't appear to be a way to prevent this compiler from
12246: # explicitly linking system object files so we need to strip them
12247: # from the output so that they don't get included in the library
12248: # dependencies.
12249: 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'
12250: ;;
12251: *)
12252: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12253: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.1.1.2 ! root 12254: 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'
1.1 root 12255:
12256: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12257: hardcode_libdir_separator_CXX=:
12258:
12259: # Commands to make compiler produce verbose output that lists
12260: # what "hidden" libraries, object files and flags are used when
12261: # linking a shared library.
12262: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12263:
12264: else
12265: # FIXME: insert proper C++ library support
12266: ld_shlibs_CXX=no
12267: fi
12268: ;;
12269: esac
12270: ;;
12271: psos*)
12272: # FIXME: insert proper C++ library support
12273: ld_shlibs_CXX=no
12274: ;;
12275: sunos4*)
12276: case $cc_basename in
1.1.1.2 ! root 12277: CC*)
1.1 root 12278: # Sun C++ 4.x
12279: # FIXME: insert proper C++ library support
12280: ld_shlibs_CXX=no
12281: ;;
1.1.1.2 ! root 12282: lcc*)
1.1 root 12283: # Lucid
12284: # FIXME: insert proper C++ library support
12285: ld_shlibs_CXX=no
12286: ;;
12287: *)
12288: # FIXME: insert proper C++ library support
12289: ld_shlibs_CXX=no
12290: ;;
12291: esac
12292: ;;
12293: solaris*)
12294: case $cc_basename in
1.1.1.2 ! root 12295: CC*)
1.1 root 12296: # Sun C++ 4.2, 5.x and Centerline C++
1.1.1.2 ! root 12297: archive_cmds_need_lc_CXX=yes
1.1 root 12298: no_undefined_flag_CXX=' -zdefs'
1.1.1.2 ! root 12299: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.1 root 12300: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.1.1.2 ! root 12301: $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'
1.1 root 12302:
12303: hardcode_libdir_flag_spec_CXX='-R$libdir'
12304: hardcode_shlibpath_var_CXX=no
12305: case $host_os in
1.1.1.2 ! root 12306: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1 root 12307: *)
1.1.1.2 ! root 12308: # The compiler driver will combine and reorder linker options,
! 12309: # but understands `-z linker_flag'.
1.1 root 12310: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.1.1.2 ! root 12311: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
1.1 root 12312: ;;
12313: esac
12314: link_all_deplibs_CXX=yes
12315:
1.1.1.2 ! root 12316: output_verbose_link_cmd='echo'
1.1 root 12317:
12318: # Archives containing C++ object files must be created using
12319: # "CC -xar", where "CC" is the Sun C++ compiler. This is
12320: # necessary to make sure instantiated templates are included
12321: # in the archive.
12322: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12323: ;;
1.1.1.2 ! root 12324: gcx*)
1.1 root 12325: # Green Hills C++ Compiler
12326: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12327:
12328: # The C++ compiler must be used to create the archive.
12329: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12330: ;;
12331: *)
12332: # GNU C++ compiler with Solaris linker
12333: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12334: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12335: if $CC --version | grep -v '^2\.7' > /dev/null; then
12336: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12337: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12338: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12339:
12340: # Commands to make compiler produce verbose output that lists
12341: # what "hidden" libraries, object files and flags are used when
12342: # linking a shared library.
12343: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12344: else
12345: # g++ 2.7 appears to require `-G' NOT `-shared' on this
12346: # platform.
12347: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12348: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12349: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12350:
12351: # Commands to make compiler produce verbose output that lists
12352: # what "hidden" libraries, object files and flags are used when
12353: # linking a shared library.
12354: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12355: fi
12356:
12357: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1.1.1.2 ! root 12358: case $host_os in
! 12359: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 12360: *)
! 12361: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 12362: ;;
! 12363: esac
1.1 root 12364: fi
12365: ;;
12366: esac
12367: ;;
1.1.1.2 ! root 12368: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 12369: no_undefined_flag_CXX='${wl}-z,text'
! 12370: archive_cmds_need_lc_CXX=no
! 12371: hardcode_shlibpath_var_CXX=no
! 12372: runpath_var='LD_RUN_PATH'
! 12373:
! 12374: case $cc_basename in
! 12375: CC*)
! 12376: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12377: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12378: ;;
! 12379: *)
! 12380: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12381: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12382: ;;
! 12383: esac
! 12384: ;;
! 12385: sysv5* | sco3.2v5* | sco5v6*)
! 12386: # Note: We can NOT use -z defs as we might desire, because we do not
! 12387: # link with -lc, and that would cause any symbols used from libc to
! 12388: # always be unresolved, which means just about no library would
! 12389: # ever link correctly. If we're not using GNU ld we use -z text
! 12390: # though, which does catch some bad symbols but isn't as heavy-handed
! 12391: # as -z defs.
! 12392: # For security reasons, it is highly recommended that you always
! 12393: # use absolute paths for naming shared libraries, and exclude the
! 12394: # DT_RUNPATH tag from executables and libraries. But doing so
! 12395: # requires that you compile everything twice, which is a pain.
! 12396: # So that behaviour is only enabled if SCOABSPATH is set to a
! 12397: # non-empty value in the environment. Most likely only useful for
! 12398: # creating official distributions of packages.
! 12399: # This is a hack until libtool officially supports absolute path
! 12400: # names for shared libraries.
! 12401: no_undefined_flag_CXX='${wl}-z,text'
! 12402: allow_undefined_flag_CXX='${wl}-z,nodefs'
1.1 root 12403: archive_cmds_need_lc_CXX=no
1.1.1.2 ! root 12404: hardcode_shlibpath_var_CXX=no
! 12405: hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 12406: hardcode_libdir_separator_CXX=':'
! 12407: link_all_deplibs_CXX=yes
! 12408: export_dynamic_flag_spec_CXX='${wl}-Bexport'
! 12409: runpath_var='LD_RUN_PATH'
! 12410:
! 12411: case $cc_basename in
! 12412: CC*)
! 12413: archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12414: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12415: ;;
! 12416: *)
! 12417: archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12418: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 12419: ;;
! 12420: esac
1.1 root 12421: ;;
12422: tandem*)
12423: case $cc_basename in
1.1.1.2 ! root 12424: NCC*)
1.1 root 12425: # NonStop-UX NCC 3.20
12426: # FIXME: insert proper C++ library support
12427: ld_shlibs_CXX=no
12428: ;;
12429: *)
12430: # FIXME: insert proper C++ library support
12431: ld_shlibs_CXX=no
12432: ;;
12433: esac
12434: ;;
12435: vxworks*)
12436: # FIXME: insert proper C++ library support
12437: ld_shlibs_CXX=no
12438: ;;
1.1.1.2 ! root 12439: nto-qnx*)
! 12440: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 12441: archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 12442: output_verbose_link_cmd='echo'
! 12443: ;;
1.1 root 12444: *)
12445: # FIXME: insert proper C++ library support
12446: ld_shlibs_CXX=no
12447: ;;
12448: esac
1.1.1.2 ! root 12449: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 12450: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1.1 root 12451: test "$ld_shlibs_CXX" = no && can_build_shared=no
12452:
12453: GCC_CXX="$GXX"
12454: LD_CXX="$LD"
12455:
1.1.1.2 ! root 12456: ## CAVEAT EMPTOR:
! 12457: ## There is no encapsulation within the following macros, do not change
! 12458: ## the running order or otherwise move them around unless you know exactly
! 12459: ## what you are doing...
1.1 root 12460:
12461: cat > conftest.$ac_ext <<EOF
12462: class Foo
12463: {
12464: public:
12465: Foo (void) { a = 0; }
12466: private:
12467: int a;
12468: };
12469: EOF
12470:
12471: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472: (eval $ac_compile) 2>&5
12473: ac_status=$?
12474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475: (exit $ac_status); }; then
12476: # Parse the compiler output and extract the necessary
12477: # objects, libraries and library flags.
12478:
12479: # Sentinel used to keep track of whether or not we are before
12480: # the conftest object file.
12481: pre_test_object_deps_done=no
12482:
12483: # The `*' in the case matches for architectures that use `case' in
12484: # $output_verbose_cmd can trigger glob expansion during the loop
12485: # eval without this substitution.
1.1.1.2 ! root 12486: output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1.1 root 12487:
12488: for p in `eval $output_verbose_link_cmd`; do
12489: case $p in
12490:
12491: -L* | -R* | -l*)
12492: # Some compilers place space between "-{L,R}" and the path.
12493: # Remove the space.
12494: if test $p = "-L" \
12495: || test $p = "-R"; then
12496: prev=$p
12497: continue
12498: else
12499: prev=
12500: fi
12501:
12502: if test "$pre_test_object_deps_done" = no; then
12503: case $p in
12504: -L* | -R*)
12505: # Internal compiler library paths should come after those
12506: # provided the user. The postdeps already come after the
12507: # user supplied libs so there is no need to process them.
12508: if test -z "$compiler_lib_search_path_CXX"; then
12509: compiler_lib_search_path_CXX="${prev}${p}"
12510: else
12511: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12512: fi
12513: ;;
12514: # The "-l" case would never come before the object being
12515: # linked, so don't bother handling this case.
12516: esac
12517: else
12518: if test -z "$postdeps_CXX"; then
12519: postdeps_CXX="${prev}${p}"
12520: else
12521: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12522: fi
12523: fi
12524: ;;
12525:
12526: *.$objext)
12527: # This assumes that the test object file only shows up
12528: # once in the compiler output.
12529: if test "$p" = "conftest.$objext"; then
12530: pre_test_object_deps_done=yes
12531: continue
12532: fi
12533:
12534: if test "$pre_test_object_deps_done" = no; then
12535: if test -z "$predep_objects_CXX"; then
12536: predep_objects_CXX="$p"
12537: else
12538: predep_objects_CXX="$predep_objects_CXX $p"
12539: fi
12540: else
12541: if test -z "$postdep_objects_CXX"; then
12542: postdep_objects_CXX="$p"
12543: else
12544: postdep_objects_CXX="$postdep_objects_CXX $p"
12545: fi
12546: fi
12547: ;;
12548:
12549: *) ;; # Ignore the rest.
12550:
12551: esac
12552: done
12553:
1.1.1.2 ! root 12554: case "$host_os" in
! 12555: netbsd*)
! 12556: if test -n "$cpprt0_file"; then
! 12557: predep_objects_CXX=`eval echo $predep_objects_CXX | sed -e 's:/usr/lib/c++rt0.o:$cpprt0_file:'`
! 12558: fi
! 12559: ;;
! 12560: interix3*)
! 12561: # Interix installs completely hosed .la files for C++, so rather than
! 12562: # hack all around it, let's just trust "g++" to DTRT.
! 12563: predep_objects_CXX=
! 12564: postdep_objects_CXX=
! 12565: postdeps_CXX=
! 12566: ;;
! 12567: esac
! 12568:
1.1 root 12569: # Clean up.
12570: rm -f a.out a.exe
12571: else
12572: echo "libtool.m4: error: problem compiling CXX test program"
12573: fi
12574:
12575: $rm -f confest.$objext
12576:
1.1.1.2 ! root 12577: # PORTME: override above test on systems where it is broken
! 12578: case $host_os in
! 12579: interix[3-9]*)
! 12580: # Interix 3.5 installs completely hosed .la files for C++, so rather than
! 12581: # hack all around it, let's just trust "g++" to DTRT.
! 12582: predep_objects_CXX=
! 12583: postdep_objects_CXX=
! 12584: postdeps_CXX=
! 12585: ;;
! 12586:
! 12587: linux*)
! 12588: case `$CC -V 2>&1 | sed 5q` in
! 12589: *Sun\ C*)
! 12590: # Sun C++ 5.9
! 12591: #
! 12592: # The more standards-conforming stlport4 library is
! 12593: # incompatible with the Cstd library. Avoid specifying
! 12594: # it if it's in CXXFLAGS. Ignore libCrun as
! 12595: # -library=stlport4 depends on it.
! 12596: case " $CXX $CXXFLAGS " in
! 12597: *" -library=stlport4 "*)
! 12598: solaris_use_stlport4=yes
! 12599: ;;
! 12600: esac
! 12601: if test "$solaris_use_stlport4" != yes; then
! 12602: postdeps_CXX='-library=Cstd -library=Crun'
! 12603: fi
! 12604: ;;
! 12605: esac
! 12606: ;;
! 12607:
! 12608: solaris*)
! 12609: case $cc_basename in
! 12610: CC*)
! 12611: # The more standards-conforming stlport4 library is
! 12612: # incompatible with the Cstd library. Avoid specifying
! 12613: # it if it's in CXXFLAGS. Ignore libCrun as
! 12614: # -library=stlport4 depends on it.
! 12615: case " $CXX $CXXFLAGS " in
! 12616: *" -library=stlport4 "*)
! 12617: solaris_use_stlport4=yes
! 12618: ;;
! 12619: esac
! 12620:
! 12621: # Adding this requires a known-good setup of shared libraries for
! 12622: # Sun compiler versions before 5.6, else PIC objects from an old
! 12623: # archive will be linked into the output, leading to subtle bugs.
! 12624: if test "$solaris_use_stlport4" != yes; then
! 12625: postdeps_CXX='-library=Cstd -library=Crun'
! 12626: fi
! 12627: ;;
! 12628: esac
! 12629: ;;
! 12630: esac
! 12631:
! 12632:
1.1 root 12633: case " $postdeps_CXX " in
12634: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12635: esac
12636:
12637: lt_prog_compiler_wl_CXX=
12638: lt_prog_compiler_pic_CXX=
12639: lt_prog_compiler_static_CXX=
12640:
1.1.1.2 ! root 12641: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 12642: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 12643:
12644: # C++ specific cases for pic, static, wl, etc.
12645: if test "$GXX" = yes; then
12646: lt_prog_compiler_wl_CXX='-Wl,'
12647: lt_prog_compiler_static_CXX='-static'
12648:
12649: case $host_os in
12650: aix*)
12651: # All AIX code is PIC.
12652: if test "$host_cpu" = ia64; then
12653: # AIX 5 now supports IA64 processor
12654: lt_prog_compiler_static_CXX='-Bstatic'
12655: fi
12656: ;;
12657: amigaos*)
12658: # FIXME: we need at least 68020 code to build shared libraries, but
12659: # adding the `-m68020' flag to GCC prevents building anything better,
12660: # like `-m68040'.
12661: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12662: ;;
1.1.1.2 ! root 12663: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 12664: # PIC is the default for these OSes.
12665: ;;
1.1.1.2 ! root 12666: mingw* | cygwin* | os2* | pw32*)
1.1 root 12667: # This hack is so that the source file can tell whether it is being
12668: # built for inclusion in a dll (and should export symbols for example).
1.1.1.2 ! root 12669: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 12670: # (--disable-auto-import) libraries
1.1 root 12671: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12672: ;;
12673: darwin* | rhapsody*)
1.1.1.2 ! root 12674: # PIC is the default on this platform, and static linking of
! 12675: # binaries generally doesn't work
1.1 root 12676: # Common symbols not allowed in MH_DYLIB files
12677: lt_prog_compiler_pic_CXX='-fno-common'
1.1.1.2 ! root 12678: lt_prog_compiler_static_CXX=''
1.1 root 12679: ;;
12680: *djgpp*)
12681: # DJGPP does not support shared libraries at all
12682: lt_prog_compiler_pic_CXX=
12683: ;;
1.1.1.2 ! root 12684: interix[3-9]*)
! 12685: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 12686: # Instead, we relocate shared libraries at runtime.
! 12687: ;;
1.1 root 12688: sysv4*MP*)
12689: if test -d /usr/nec; then
12690: lt_prog_compiler_pic_CXX=-Kconform_pic
12691: fi
12692: ;;
12693: hpux*)
12694: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12695: # not for PA HP-UX.
1.1.1.2 ! root 12696: case $host_cpu in
1.1 root 12697: hppa*64*|ia64*)
12698: ;;
12699: *)
12700: lt_prog_compiler_pic_CXX='-fPIC'
12701: ;;
12702: esac
12703: ;;
1.1.1.2 ! root 12704: interix3*)
! 12705: # Interix 3.0-3.5 -fPIC option generates borked code.
! 12706: # (Instead, shlibs are relocated at runtime.)
! 12707: ;;
1.1 root 12708: *)
12709: lt_prog_compiler_pic_CXX='-fPIC'
12710: ;;
12711: esac
12712: else
12713: case $host_os in
12714: aix4* | aix5*)
12715: # All AIX code is PIC.
12716: if test "$host_cpu" = ia64; then
12717: # AIX 5 now supports IA64 processor
12718: lt_prog_compiler_static_CXX='-Bstatic'
12719: else
12720: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12721: fi
12722: ;;
12723: chorus*)
12724: case $cc_basename in
1.1.1.2 ! root 12725: cxch68*)
1.1 root 12726: # Green Hills C++ Compiler
12727: # _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"
12728: ;;
12729: esac
12730: ;;
1.1.1.2 ! root 12731: darwin*)
! 12732: # PIC is the default on this platform
! 12733: # Common symbols not allowed in MH_DYLIB files
! 12734: case $cc_basename in
! 12735: xlc*)
! 12736: lt_prog_compiler_pic_CXX='-qnocommon'
! 12737: lt_prog_compiler_wl_CXX='-Wl,'
! 12738: ;;
! 12739: esac
! 12740: ;;
1.1 root 12741: dgux*)
12742: case $cc_basename in
1.1.1.2 ! root 12743: ec++*)
1.1 root 12744: lt_prog_compiler_pic_CXX='-KPIC'
12745: ;;
1.1.1.2 ! root 12746: ghcx*)
1.1 root 12747: # Green Hills C++ Compiler
12748: lt_prog_compiler_pic_CXX='-pic'
12749: ;;
12750: *)
12751: ;;
12752: esac
12753: ;;
1.1.1.2 ! root 12754: freebsd* | dragonfly*)
1.1 root 12755: # FreeBSD uses GNU C++
12756: ;;
12757: hpux9* | hpux10* | hpux11*)
12758: case $cc_basename in
1.1.1.2 ! root 12759: CC*)
1.1 root 12760: lt_prog_compiler_wl_CXX='-Wl,'
1.1.1.2 ! root 12761: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
1.1 root 12762: if test "$host_cpu" != ia64; then
12763: lt_prog_compiler_pic_CXX='+Z'
12764: fi
12765: ;;
1.1.1.2 ! root 12766: aCC*)
1.1 root 12767: lt_prog_compiler_wl_CXX='-Wl,'
1.1.1.2 ! root 12768: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
! 12769: case $host_cpu in
1.1 root 12770: hppa*64*|ia64*)
12771: # +Z the default
12772: ;;
12773: *)
12774: lt_prog_compiler_pic_CXX='+Z'
12775: ;;
12776: esac
12777: ;;
12778: *)
12779: ;;
12780: esac
12781: ;;
1.1.1.2 ! root 12782: interix*)
! 12783: # This is c89, which is MS Visual C++ (no shared libs)
! 12784: # Anyone wants to do a port?
! 12785: ;;
! 12786: interix3*)
! 12787: ;;
1.1 root 12788: irix5* | irix6* | nonstopux*)
12789: case $cc_basename in
1.1.1.2 ! root 12790: CC*)
1.1 root 12791: lt_prog_compiler_wl_CXX='-Wl,'
12792: lt_prog_compiler_static_CXX='-non_shared'
12793: # CC pic flag -KPIC is the default.
12794: ;;
12795: *)
12796: ;;
12797: esac
12798: ;;
1.1.1.2 ! root 12799: linux* | k*bsd*-gnu)
1.1 root 12800: case $cc_basename in
1.1.1.2 ! root 12801: KCC*)
1.1 root 12802: # KAI C++ Compiler
12803: lt_prog_compiler_wl_CXX='--backend -Wl,'
12804: lt_prog_compiler_pic_CXX='-fPIC'
12805: ;;
1.1.1.2 ! root 12806: icpc* | ecpc*)
1.1 root 12807: # Intel C++
12808: lt_prog_compiler_wl_CXX='-Wl,'
12809: lt_prog_compiler_pic_CXX='-KPIC'
12810: lt_prog_compiler_static_CXX='-static'
12811: ;;
1.1.1.2 ! root 12812: pgCC*)
! 12813: # Portland Group C++ compiler.
! 12814: lt_prog_compiler_wl_CXX='-Wl,'
! 12815: lt_prog_compiler_pic_CXX='-fpic'
! 12816: lt_prog_compiler_static_CXX='-Bstatic'
! 12817: ;;
! 12818: cxx*)
1.1 root 12819: # Compaq C++
12820: # Make sure the PIC flag is empty. It appears that all Alpha
12821: # Linux and Compaq Tru64 Unix objects are PIC.
12822: lt_prog_compiler_pic_CXX=
12823: lt_prog_compiler_static_CXX='-non_shared'
12824: ;;
12825: *)
1.1.1.2 ! root 12826: case `$CC -V 2>&1 | sed 5q` in
! 12827: *Sun\ C*)
! 12828: # Sun C++ 5.9
! 12829: lt_prog_compiler_pic_CXX='-KPIC'
! 12830: lt_prog_compiler_static_CXX='-Bstatic'
! 12831: lt_prog_compiler_wl_CXX='-Qoption ld '
! 12832: ;;
! 12833: esac
1.1 root 12834: ;;
12835: esac
12836: ;;
12837: lynxos*)
12838: ;;
12839: m88k*)
12840: ;;
12841: mvs*)
12842: case $cc_basename in
1.1.1.2 ! root 12843: cxx*)
1.1 root 12844: lt_prog_compiler_pic_CXX='-W c,exportall'
12845: ;;
12846: *)
12847: ;;
12848: esac
12849: ;;
12850: netbsd*)
12851: ;;
12852: osf3* | osf4* | osf5*)
12853: case $cc_basename in
1.1.1.2 ! root 12854: KCC*)
1.1 root 12855: lt_prog_compiler_wl_CXX='--backend -Wl,'
12856: ;;
1.1.1.2 ! root 12857: RCC*)
1.1 root 12858: # Rational C++ 2.4.1
12859: lt_prog_compiler_pic_CXX='-pic'
12860: ;;
1.1.1.2 ! root 12861: cxx*)
1.1 root 12862: # Digital/Compaq C++
12863: lt_prog_compiler_wl_CXX='-Wl,'
12864: # Make sure the PIC flag is empty. It appears that all Alpha
12865: # Linux and Compaq Tru64 Unix objects are PIC.
12866: lt_prog_compiler_pic_CXX=
12867: lt_prog_compiler_static_CXX='-non_shared'
12868: ;;
12869: *)
12870: ;;
12871: esac
12872: ;;
12873: psos*)
12874: ;;
12875: solaris*)
12876: case $cc_basename in
1.1.1.2 ! root 12877: CC*)
1.1 root 12878: # Sun C++ 4.2, 5.x and Centerline C++
12879: lt_prog_compiler_pic_CXX='-KPIC'
12880: lt_prog_compiler_static_CXX='-Bstatic'
12881: lt_prog_compiler_wl_CXX='-Qoption ld '
12882: ;;
1.1.1.2 ! root 12883: gcx*)
1.1 root 12884: # Green Hills C++ Compiler
12885: lt_prog_compiler_pic_CXX='-PIC'
12886: ;;
12887: *)
12888: ;;
12889: esac
12890: ;;
12891: sunos4*)
12892: case $cc_basename in
1.1.1.2 ! root 12893: CC*)
1.1 root 12894: # Sun C++ 4.x
12895: lt_prog_compiler_pic_CXX='-pic'
12896: lt_prog_compiler_static_CXX='-Bstatic'
12897: ;;
1.1.1.2 ! root 12898: lcc*)
1.1 root 12899: # Lucid
12900: lt_prog_compiler_pic_CXX='-pic'
12901: ;;
12902: *)
12903: ;;
12904: esac
12905: ;;
12906: tandem*)
12907: case $cc_basename in
1.1.1.2 ! root 12908: NCC*)
1.1 root 12909: # NonStop-UX NCC 3.20
12910: lt_prog_compiler_pic_CXX='-KPIC'
12911: ;;
12912: *)
12913: ;;
12914: esac
12915: ;;
1.1.1.2 ! root 12916: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 12917: case $cc_basename in
! 12918: CC*)
! 12919: lt_prog_compiler_wl_CXX='-Wl,'
! 12920: lt_prog_compiler_pic_CXX='-KPIC'
! 12921: lt_prog_compiler_static_CXX='-Bstatic'
! 12922: ;;
! 12923: esac
1.1 root 12924: ;;
12925: vxworks*)
12926: ;;
1.1.1.2 ! root 12927: nto-qnx*)
! 12928: ;;
1.1 root 12929: *)
12930: lt_prog_compiler_can_build_shared_CXX=no
12931: ;;
12932: esac
12933: fi
12934:
1.1.1.2 ! root 12935: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
! 12936: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
1.1 root 12937:
12938: #
12939: # Check to make sure the PIC flag actually works.
12940: #
12941: if test -n "$lt_prog_compiler_pic_CXX"; then
1.1.1.2 ! root 12942:
! 12943: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 12944: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
1.1 root 12945: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12946: echo $ECHO_N "(cached) $ECHO_C" >&6
12947: else
12948: lt_prog_compiler_pic_works_CXX=no
12949: ac_outfile=conftest.$ac_objext
1.1.1.2 ! root 12950: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 12951: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12952: # Insert the option either (1) after the last *FLAGS variable, or
12953: # (2) before a word containing "conftest.", or (3) at the end.
12954: # Note that $ac_compile itself does not contain backslashes and begins
12955: # with a dollar sign (not a hyphen), so the echo should work correctly.
12956: # The option is referenced via a variable to avoid confusing sed.
12957: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 12958: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 12959: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12960: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 12961: (eval echo "\"\$as_me:12834: $lt_compile\"" >&5)
1.1 root 12962: (eval "$lt_compile" 2>conftest.err)
12963: ac_status=$?
12964: cat conftest.err >&5
1.1.1.2 ! root 12965: echo "$as_me:12838: \$? = $ac_status" >&5
1.1 root 12966: if (exit $ac_status) && test -s "$ac_outfile"; then
12967: # The compiler can only warn and ignore the option if not recognized
1.1.1.2 ! root 12968: # So say no if there are warnings other than the usual output.
! 12969: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 12970: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 12971: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 12972: lt_prog_compiler_pic_works_CXX=yes
12973: fi
12974: fi
12975: $rm conftest*
12976:
12977: fi
1.1.1.2 ! root 12978: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
! 12979: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
1.1 root 12980:
12981: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12982: case $lt_prog_compiler_pic_CXX in
12983: "" | " "*) ;;
12984: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12985: esac
12986: else
12987: lt_prog_compiler_pic_CXX=
12988: lt_prog_compiler_can_build_shared_CXX=no
12989: fi
12990:
12991: fi
1.1.1.2 ! root 12992: case $host_os in
1.1 root 12993: # For platforms which do not support PIC, -DPIC is meaningless:
12994: *djgpp*)
12995: lt_prog_compiler_pic_CXX=
12996: ;;
12997: *)
12998: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12999: ;;
13000: esac
13001:
1.1.1.2 ! root 13002: #
! 13003: # Check to make sure the static flag actually works.
! 13004: #
! 13005: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
! 13006: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 13007: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 13008: if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
! 13009: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13010: else
! 13011: lt_prog_compiler_static_works_CXX=no
! 13012: save_LDFLAGS="$LDFLAGS"
! 13013: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 13014: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 13015: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 13016: # The linker can only warn and ignore the option if not recognized
! 13017: # So say no if there are warnings
! 13018: if test -s conftest.err; then
! 13019: # Append any errors to the config.log.
! 13020: cat conftest.err 1>&5
! 13021: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 13022: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 13023: if diff conftest.exp conftest.er2 >/dev/null; then
! 13024: lt_prog_compiler_static_works_CXX=yes
! 13025: fi
! 13026: else
! 13027: lt_prog_compiler_static_works_CXX=yes
! 13028: fi
! 13029: fi
! 13030: $rm conftest*
! 13031: LDFLAGS="$save_LDFLAGS"
! 13032:
! 13033: fi
! 13034: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
! 13035: echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
! 13036:
! 13037: if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
! 13038: :
! 13039: else
! 13040: lt_prog_compiler_static_CXX=
! 13041: fi
! 13042:
! 13043:
! 13044: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 13045: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
1.1 root 13046: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13047: echo $ECHO_N "(cached) $ECHO_C" >&6
13048: else
13049: lt_cv_prog_compiler_c_o_CXX=no
13050: $rm -r conftest 2>/dev/null
13051: mkdir conftest
13052: cd conftest
13053: mkdir out
1.1.1.2 ! root 13054: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 13055:
13056: lt_compiler_flag="-o out/conftest2.$ac_objext"
13057: # Insert the option either (1) after the last *FLAGS variable, or
13058: # (2) before a word containing "conftest.", or (3) at the end.
13059: # Note that $ac_compile itself does not contain backslashes and begins
13060: # with a dollar sign (not a hyphen), so the echo should work correctly.
13061: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 13062: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 13063: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13064: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 13065: (eval echo "\"\$as_me:12938: $lt_compile\"" >&5)
1.1 root 13066: (eval "$lt_compile" 2>out/conftest.err)
13067: ac_status=$?
13068: cat out/conftest.err >&5
1.1.1.2 ! root 13069: echo "$as_me:12942: \$? = $ac_status" >&5
1.1 root 13070: if (exit $ac_status) && test -s out/conftest2.$ac_objext
13071: then
13072: # The compiler can only warn and ignore the option if not recognized
13073: # So say no if there are warnings
1.1.1.2 ! root 13074: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 13075: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 13076: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 13077: lt_cv_prog_compiler_c_o_CXX=yes
13078: fi
13079: fi
1.1.1.2 ! root 13080: chmod u+w . 2>&5
! 13081: $rm conftest*
! 13082: # SGI C++ compiler will create directory out/ii_files/ for
! 13083: # template instantiation
! 13084: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 13085: $rm out/* && rmdir out
1.1 root 13086: cd ..
13087: rmdir conftest
13088: $rm conftest*
13089:
13090: fi
1.1.1.2 ! root 13091: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 13092: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.1 root 13093:
13094:
13095: hard_links="nottested"
13096: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13097: # do not overwrite the value of need_locks provided by the user
1.1.1.2 ! root 13098: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 13099: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 13100: hard_links=yes
13101: $rm conftest*
13102: ln conftest.a conftest.b 2>/dev/null && hard_links=no
13103: touch conftest.a
13104: ln conftest.a conftest.b 2>&5 || hard_links=no
13105: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.2 ! root 13106: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 13107: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 13108: if test "$hard_links" = no; then
13109: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13110: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13111: need_locks=warn
13112: fi
13113: else
13114: need_locks=no
13115: fi
13116:
1.1.1.2 ! root 13117: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 13118: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 13119:
13120: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13121: case $host_os in
13122: aix4* | aix5*)
13123: # If we're using GNU nm, then we don't want the "-C" option.
13124: # -C means demangle to AIX nm, but means don't demangle with GNU nm
13125: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13126: 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'
13127: else
13128: 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'
13129: fi
13130: ;;
13131: pw32*)
13132: export_symbols_cmds_CXX="$ltdll_cmds"
13133: ;;
13134: cygwin* | mingw*)
1.1.1.2 ! root 13135: 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'
1.1 root 13136: ;;
13137: *)
13138: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13139: ;;
13140: esac
13141:
1.1.1.2 ! root 13142: { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 13143: echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
1.1 root 13144: test "$ld_shlibs_CXX" = no && can_build_shared=no
13145:
13146: #
13147: # Do we need to explicitly link libc?
13148: #
13149: case "x$archive_cmds_need_lc_CXX" in
13150: x|xyes)
13151: # Assume -lc should be added
13152: archive_cmds_need_lc_CXX=yes
13153:
13154: if test "$enable_shared" = yes && test "$GCC" = yes; then
13155: case $archive_cmds_CXX in
13156: *'~'*)
13157: # FIXME: we may have to deal with multi-command sequences.
13158: ;;
13159: '$CC '*)
13160: # Test whether the compiler implicitly links with -lc since on some
13161: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13162: # to ld, don't add -lc before -lgcc.
1.1.1.2 ! root 13163: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 13164: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 root 13165: $rm conftest*
1.1.1.2 ! root 13166: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 13167:
13168: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169: (eval $ac_compile) 2>&5
13170: ac_status=$?
13171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172: (exit $ac_status); } 2>conftest.err; then
13173: soname=conftest
13174: lib=conftest
13175: libobjs=conftest.$ac_objext
13176: deplibs=
13177: wl=$lt_prog_compiler_wl_CXX
1.1.1.2 ! root 13178: pic_flag=$lt_prog_compiler_pic_CXX
1.1 root 13179: compiler_flags=-v
13180: linker_flags=-v
13181: verstring=
13182: output_objdir=.
13183: libname=conftest
13184: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13185: allow_undefined_flag_CXX=
13186: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13187: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13188: ac_status=$?
13189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190: (exit $ac_status); }
13191: then
13192: archive_cmds_need_lc_CXX=no
13193: else
13194: archive_cmds_need_lc_CXX=yes
13195: fi
13196: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13197: else
13198: cat conftest.err 1>&5
13199: fi
13200: $rm conftest*
1.1.1.2 ! root 13201: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
! 13202: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
1.1 root 13203: ;;
13204: esac
13205: fi
13206: ;;
13207: esac
13208:
1.1.1.2 ! root 13209: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 13210: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
1.1 root 13211: library_names_spec=
13212: libname_spec='lib$name'
13213: soname_spec=
1.1.1.2 ! root 13214: shrext_cmds=".so"
1.1 root 13215: postinstall_cmds=
13216: postuninstall_cmds=
13217: finish_cmds=
13218: finish_eval=
13219: shlibpath_var=
13220: shlibpath_overrides_runpath=unknown
13221: version_type=none
13222: dynamic_linker="$host_os ld.so"
13223: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1.1.2 ! root 13224:
1.1 root 13225: need_lib_prefix=unknown
13226: hardcode_into_libs=no
13227:
13228: # when you set need_version to no, make sure it does not cause -set_version
13229: # flags to be left without arguments
13230: need_version=unknown
13231:
13232: case $host_os in
13233: aix3*)
13234: version_type=linux
13235: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13236: shlibpath_var=LIBPATH
13237:
13238: # AIX 3 has no versioning support, so we append a major version to the name.
13239: soname_spec='${libname}${release}${shared_ext}$major'
13240: ;;
13241:
13242: aix4* | aix5*)
13243: version_type=linux
13244: need_lib_prefix=no
13245: need_version=no
13246: hardcode_into_libs=yes
13247: if test "$host_cpu" = ia64; then
13248: # AIX 5 supports IA64
13249: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13250: shlibpath_var=LD_LIBRARY_PATH
13251: else
13252: # With GCC up to 2.95.x, collect2 would create an import file
13253: # for dependence libraries. The import file would start with
13254: # the line `#! .'. This would cause the generated library to
13255: # depend on `.', always an invalid library. This was fixed in
13256: # development snapshots of GCC prior to 3.0.
13257: case $host_os in
13258: aix4 | aix4.[01] | aix4.[01].*)
13259: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13260: echo ' yes '
13261: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13262: :
13263: else
13264: can_build_shared=no
13265: fi
13266: ;;
13267: esac
13268: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13269: # soname into executable. Probably we can add versioning support to
13270: # collect2, so additional links can be useful in future.
13271: if test "$aix_use_runtimelinking" = yes; then
13272: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13273: # instead of lib<name>.a to let people know that these are not
13274: # typical AIX shared libraries.
13275: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276: else
13277: # We preserve .a as extension for shared libraries through AIX4.2
13278: # and later when we are not doing run time linking.
13279: library_names_spec='${libname}${release}.a $libname.a'
13280: soname_spec='${libname}${release}${shared_ext}$major'
13281: fi
13282: shlibpath_var=LIBPATH
13283: fi
13284: ;;
13285:
13286: amigaos*)
13287: library_names_spec='$libname.ixlibrary $libname.a'
13288: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.2 ! root 13289: 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'
1.1 root 13290: ;;
13291:
13292: beos*)
13293: library_names_spec='${libname}${shared_ext}'
13294: dynamic_linker="$host_os ld.so"
13295: shlibpath_var=LIBRARY_PATH
13296: ;;
13297:
1.1.1.2 ! root 13298: bsdi[45]*)
1.1 root 13299: version_type=linux
13300: need_version=no
1.1.1.2 ! root 13301: need_lib_prefix=no
1.1 root 13302: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303: soname_spec='${libname}${release}${shared_ext}$major'
13304: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13305: shlibpath_var=LD_LIBRARY_PATH
13306: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13307: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13308: # the default ld.so.conf also contains /usr/contrib/lib and
13309: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13310: # libtool to hard-code these into programs
13311: ;;
13312:
13313: cygwin* | mingw* | pw32*)
13314: version_type=windows
1.1.1.2 ! root 13315: shrext_cmds=".dll"
1.1 root 13316: need_version=no
13317: need_lib_prefix=no
13318:
13319: case $GCC,$host_os in
13320: yes,cygwin* | yes,mingw* | yes,pw32*)
13321: library_names_spec='$libname.dll.a'
13322: # DLL is installed to $(libdir)/../bin by postinstall_cmds
13323: postinstall_cmds='base_file=`basename \${file}`~
13324: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13325: dldir=$destdir/`dirname \$dlpath`~
13326: test -d \$dldir || mkdir -p \$dldir~
1.1.1.2 ! root 13327: $install_prog $dir/$dlname \$dldir/$dlname~
! 13328: chmod a+x \$dldir/$dlname'
1.1 root 13329: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13330: dlpath=$dir/\$dldll~
13331: $rm \$dlpath'
13332: shlibpath_overrides_runpath=yes
13333:
13334: case $host_os in
13335: cygwin*)
13336: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13337: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.2 ! root 13338: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1 root 13339: ;;
13340: mingw*)
13341: # MinGW DLLs use traditional 'lib' prefix
13342: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13343: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13344: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13345: # It is most probably a Windows format PATH printed by
13346: # mingw gcc, but we are running on Cygwin. Gcc prints its search
13347: # path with ; separators, and with drive letters. We can handle the
13348: # drive letters (cygwin fileutils understands them), so leave them,
13349: # especially as we might pass files found there to a mingw objdump,
13350: # which wouldn't understand a cygwinified path. Ahh.
13351: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13352: else
13353: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13354: fi
13355: ;;
13356: pw32*)
13357: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.2 ! root 13358: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1 root 13359: ;;
13360: esac
13361: ;;
13362:
13363: *)
13364: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13365: ;;
13366: esac
13367: dynamic_linker='Win32 ld.exe'
13368: # FIXME: first we should search . and the directory the executable is in
13369: shlibpath_var=PATH
13370: ;;
13371:
13372: darwin* | rhapsody*)
13373: dynamic_linker="$host_os dyld"
13374: version_type=darwin
13375: need_lib_prefix=no
13376: need_version=no
13377: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13378: soname_spec='${libname}${release}${major}$shared_ext'
13379: shlibpath_overrides_runpath=yes
13380: shlibpath_var=DYLD_LIBRARY_PATH
1.1.1.2 ! root 13381: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 13382:
1.1 root 13383: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13384: ;;
13385:
13386: dgux*)
13387: version_type=linux
13388: need_lib_prefix=no
13389: need_version=no
13390: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13391: soname_spec='${libname}${release}${shared_ext}$major'
13392: shlibpath_var=LD_LIBRARY_PATH
13393: ;;
13394:
13395: freebsd1*)
13396: dynamic_linker=no
13397: ;;
13398:
13399: freebsd*)
1.1.1.2 ! root 13400: # DragonFly does not have aout. When/if they implement a new
! 13401: # versioning mechanism, adjust this.
! 13402: if test -x /usr/bin/objformat; then
! 13403: objformat=`/usr/bin/objformat`
! 13404: else
! 13405: case $host_os in
! 13406: freebsd[123]*) objformat=aout ;;
! 13407: *) objformat=elf ;;
! 13408: esac
! 13409: fi
1.1 root 13410: version_type=freebsd-$objformat
13411: case $version_type in
13412: freebsd-elf*)
1.1.1.2 ! root 13413: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 13414: need_version=no
13415: need_lib_prefix=no
13416: ;;
13417: freebsd-*)
13418: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13419: need_version=yes
13420: ;;
13421: esac
13422: shlibpath_var=LD_LIBRARY_PATH
13423: case $host_os in
13424: freebsd2*)
13425: shlibpath_overrides_runpath=yes
13426: ;;
1.1.1.2 ! root 13427: freebsd3.[01]* | freebsdelf3.[01]*)
1.1 root 13428: shlibpath_overrides_runpath=yes
13429: hardcode_into_libs=yes
13430: ;;
1.1.1.2 ! root 13431: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 13432: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1 root 13433: shlibpath_overrides_runpath=no
13434: hardcode_into_libs=yes
13435: ;;
1.1.1.2 ! root 13436: *) # from 4.6 on, and DragonFly
! 13437: shlibpath_overrides_runpath=yes
! 13438: hardcode_into_libs=yes
! 13439: ;;
1.1 root 13440: esac
13441: ;;
13442:
1.1.1.2 ! root 13443: dragonfly*)
! 13444: version_type=linux # XXX tv this should be =linux; current selection has problems
! 13445: need_version=no
! 13446: need_lib_prefix=no
! 13447: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 13448: shlibpath_var=LD_LIBRARY_PATH
! 13449: shlibpath_overrides_runpath=no
! 13450: hardcode_into_libs=yes
! 13451: ;;
! 13452:
1.1 root 13453: gnu*)
13454: version_type=linux
13455: need_lib_prefix=no
13456: need_version=no
13457: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13458: soname_spec='${libname}${release}${shared_ext}$major'
13459: shlibpath_var=LD_LIBRARY_PATH
13460: hardcode_into_libs=yes
13461: ;;
13462:
13463: hpux9* | hpux10* | hpux11*)
13464: # Give a soname corresponding to the major version so that dld.sl refuses to
13465: # link against other versions.
13466: version_type=sunos
13467: need_lib_prefix=no
13468: need_version=no
1.1.1.2 ! root 13469: case $host_cpu in
1.1 root 13470: ia64*)
1.1.1.2 ! root 13471: shrext_cmds='.so'
1.1 root 13472: hardcode_into_libs=yes
13473: dynamic_linker="$host_os dld.so"
13474: shlibpath_var=LD_LIBRARY_PATH
13475: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477: soname_spec='${libname}${release}${shared_ext}$major'
13478: if test "X$HPUX_IA64_MODE" = X32; then
13479: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13480: else
13481: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13482: fi
13483: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13484: ;;
13485: hppa*64*)
1.1.1.2 ! root 13486: shrext_cmds='.sl'
1.1 root 13487: hardcode_into_libs=yes
13488: dynamic_linker="$host_os dld.sl"
13489: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13490: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13491: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13492: soname_spec='${libname}${release}${shared_ext}$major'
13493: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13494: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13495: ;;
13496: *)
1.1.1.2 ! root 13497: shrext_cmds='.sl'
1.1 root 13498: dynamic_linker="$host_os dld.sl"
13499: shlibpath_var=SHLIB_PATH
13500: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13501: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502: soname_spec='${libname}${release}${shared_ext}$major'
13503: ;;
13504: esac
13505: # HP-UX runs *really* slowly unless shared libraries are mode 555.
13506: postinstall_cmds='chmod 555 $lib'
13507: ;;
13508:
1.1.1.2 ! root 13509: interix[3-9]*)
! 13510: version_type=linux
1.1 root 13511: need_lib_prefix=no
13512: need_version=no
1.1.1.2 ! root 13513: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 13514: soname_spec='${libname}${release}${shared_ext}$major'
1.1.1.2 ! root 13515: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 13516: shlibpath_var=LD_LIBRARY_PATH
! 13517: shlibpath_overrides_runpath=no
! 13518: hardcode_into_libs=yes
! 13519: ;;
! 13520:
! 13521: interix3*)
! 13522: version_type=linux
! 13523: need_lib_prefix=no
! 13524: need_version=no
! 13525: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 13526: soname_spec='${libname}${release}${shared_ext}$major'
! 13527: dynamic_linker='Interix 3.x ld.so'
! 13528: shlibpath_var=LD_LIBRARY_PATH
! 13529: shlibpath_overrides_runpath=yes
! 13530: hardcode_into_libs=yes
! 13531: ;;
! 13532:
! 13533: irix5* | irix6* | nonstopux*)
! 13534: case $host_os in
! 13535: nonstopux*) version_type=nonstopux ;;
! 13536: *) version_type=irix ;;
! 13537: esac
! 13538: need_lib_prefix=no
! 13539: need_version=no
! 13540: soname_spec='${libname}${release}${shared_ext}$major'
! 13541: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 13542: case $host_os in
! 13543: irix5* | nonstopux*)
! 13544: libsuff= shlibsuff=
! 13545: ;;
! 13546: *)
! 13547: case $LD in # libtool.m4 will add one of these switches to LD
! 13548: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 13549: libsuff= shlibsuff= libmagic=32-bit;;
1.1 root 13550: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13551: libsuff=32 shlibsuff=N32 libmagic=N32;;
13552: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13553: libsuff=64 shlibsuff=64 libmagic=64-bit;;
13554: *) libsuff= shlibsuff= libmagic=never-match;;
13555: esac
13556: ;;
13557: esac
13558: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13559: shlibpath_overrides_runpath=no
13560: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13561: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13562: hardcode_into_libs=yes
13563: ;;
13564:
13565: # No shared lib support for Linux oldld, aout, or coff.
13566: linux*oldld* | linux*aout* | linux*coff*)
13567: dynamic_linker=no
13568: ;;
13569:
13570: # This must be Linux ELF.
1.1.1.2 ! root 13571: linux* | k*bsd*-gnu)
1.1 root 13572: version_type=linux
13573: need_lib_prefix=no
13574: need_version=no
13575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576: soname_spec='${libname}${release}${shared_ext}$major'
13577: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13578: shlibpath_var=LD_LIBRARY_PATH
13579: shlibpath_overrides_runpath=no
13580: # This implies no fast_install, which is unacceptable.
13581: # Some rework will be needed to allow for fast_install
13582: # before this can be enabled.
13583: hardcode_into_libs=yes
13584:
1.1.1.2 ! root 13585: # Append ld.so.conf contents to the search path
! 13586: if test -f /etc/ld.so.conf; then
! 13587: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
! 13588: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 13589: fi
! 13590:
1.1 root 13591: # We used to test for /lib/ld.so.1 and disable shared libraries on
13592: # powerpc, because MkLinux only supported shared libraries with the
13593: # GNU dynamic linker. Since this was broken with cross compilers,
13594: # most powerpc-linux boxes support dynamic linking these days and
13595: # people can always --disable-shared, the test was removed, and we
13596: # assume the GNU/Linux dynamic linker is in use.
13597: dynamic_linker='GNU/Linux ld.so'
13598: ;;
13599:
13600: netbsd*)
1.1.1.2 ! root 13601: version_type=linux
1.1 root 13602: need_lib_prefix=no
13603: need_version=no
13604: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.1.1.2 ! root 13605: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
1.1 root 13606: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13607: dynamic_linker='NetBSD (a.out) ld.so'
13608: else
1.1.1.2 ! root 13609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 13610: soname_spec='${libname}${release}${shared_ext}$major'
13611: dynamic_linker='NetBSD ld.elf_so'
13612: fi
13613: shlibpath_var=LD_LIBRARY_PATH
13614: shlibpath_overrides_runpath=yes
13615: hardcode_into_libs=yes
13616: ;;
13617:
13618: newsos6)
13619: version_type=linux
13620: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621: shlibpath_var=LD_LIBRARY_PATH
13622: shlibpath_overrides_runpath=yes
13623: ;;
13624:
1.1.1.2 ! root 13625: nto-qnx*)
1.1 root 13626: version_type=linux
13627: need_lib_prefix=no
13628: need_version=no
13629: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1.1.2 ! root 13630: dynamic_linker='QNX libc.so'
1.1 root 13631: soname_spec='${libname}${release}${shared_ext}$major'
13632: shlibpath_var=LD_LIBRARY_PATH
13633: shlibpath_overrides_runpath=yes
13634: ;;
13635:
13636: openbsd*)
1.1.1.2 ! root 13637: version_type=linux
! 13638: sys_lib_dlsearch_path_spec="/usr/lib"
1.1 root 13639: need_lib_prefix=no
1.1.1.2 ! root 13640: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 13641: case $host_os in
! 13642: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 13643: *) need_version=no ;;
! 13644: esac
! 13645: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 13646: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13647: shlibpath_var=LD_LIBRARY_PATH
13648: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13649: case $host_os in
13650: openbsd2.[89] | openbsd2.[89].*)
13651: shlibpath_overrides_runpath=no
13652: ;;
13653: *)
13654: shlibpath_overrides_runpath=yes
13655: ;;
13656: esac
13657: else
13658: shlibpath_overrides_runpath=yes
13659: fi
13660: ;;
13661:
13662: os2*)
13663: libname_spec='$name'
1.1.1.2 ! root 13664: shrext_cmds=".dll"
1.1 root 13665: need_lib_prefix=no
13666: library_names_spec='$libname${shared_ext} $libname.a'
13667: dynamic_linker='OS/2 ld.exe'
13668: shlibpath_var=LIBPATH
13669: ;;
13670:
13671: osf3* | osf4* | osf5*)
13672: version_type=osf
13673: need_lib_prefix=no
13674: need_version=no
13675: soname_spec='${libname}${release}${shared_ext}$major'
13676: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677: shlibpath_var=LD_LIBRARY_PATH
13678: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13679: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13680: ;;
13681:
1.1.1.2 ! root 13682: rdos*)
! 13683: dynamic_linker=no
1.1 root 13684: ;;
13685:
13686: solaris*)
13687: version_type=linux
13688: need_lib_prefix=no
13689: need_version=no
13690: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691: soname_spec='${libname}${release}${shared_ext}$major'
13692: shlibpath_var=LD_LIBRARY_PATH
13693: shlibpath_overrides_runpath=yes
13694: hardcode_into_libs=yes
13695: # ldd complains unless libraries are executable
13696: postinstall_cmds='chmod +x $lib'
13697: ;;
13698:
13699: sunos4*)
13700: version_type=sunos
13701: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13702: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13703: shlibpath_var=LD_LIBRARY_PATH
13704: shlibpath_overrides_runpath=yes
13705: if test "$with_gnu_ld" = yes; then
13706: need_lib_prefix=no
13707: fi
13708: need_version=yes
13709: ;;
13710:
1.1.1.2 ! root 13711: sysv4 | sysv4.3*)
1.1 root 13712: version_type=linux
13713: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13714: soname_spec='${libname}${release}${shared_ext}$major'
13715: shlibpath_var=LD_LIBRARY_PATH
13716: case $host_vendor in
13717: sni)
13718: shlibpath_overrides_runpath=no
13719: need_lib_prefix=no
13720: export_dynamic_flag_spec='${wl}-Blargedynsym'
13721: runpath_var=LD_RUN_PATH
13722: ;;
13723: siemens)
13724: need_lib_prefix=no
13725: ;;
13726: motorola)
13727: need_lib_prefix=no
13728: need_version=no
13729: shlibpath_overrides_runpath=no
13730: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13731: ;;
13732: esac
13733: ;;
13734:
13735: sysv4*MP*)
13736: if test -d /usr/nec ;then
13737: version_type=linux
13738: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13739: soname_spec='$libname${shared_ext}.$major'
13740: shlibpath_var=LD_LIBRARY_PATH
13741: fi
13742: ;;
13743:
1.1.1.2 ! root 13744: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 13745: version_type=freebsd-elf
! 13746: need_lib_prefix=no
! 13747: need_version=no
! 13748: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 13749: soname_spec='${libname}${release}${shared_ext}$major'
! 13750: shlibpath_var=LD_LIBRARY_PATH
! 13751: hardcode_into_libs=yes
! 13752: if test "$with_gnu_ld" = yes; then
! 13753: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 13754: shlibpath_overrides_runpath=no
! 13755: else
! 13756: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 13757: shlibpath_overrides_runpath=yes
! 13758: case $host_os in
! 13759: sco3.2v5*)
! 13760: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 13761: ;;
! 13762: esac
! 13763: fi
! 13764: sys_lib_dlsearch_path_spec='/usr/lib'
! 13765: ;;
! 13766:
1.1 root 13767: uts4*)
13768: version_type=linux
13769: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13770: soname_spec='${libname}${release}${shared_ext}$major'
13771: shlibpath_var=LD_LIBRARY_PATH
13772: ;;
13773:
13774: *)
13775: dynamic_linker=no
13776: ;;
13777: esac
1.1.1.2 ! root 13778: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 13779: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 root 13780: test "$dynamic_linker" = no && can_build_shared=no
13781:
1.1.1.2 ! root 13782: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 13783: if test "$GCC" = yes; then
! 13784: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 13785: fi
! 13786:
! 13787: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 13788: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 13789: hardcode_action_CXX=
! 13790: if test -n "$hardcode_libdir_flag_spec_CXX" || \
! 13791: test -n "$runpath_var_CXX" || \
! 13792: test "X$hardcode_automatic_CXX" = "Xyes" ; then
! 13793:
! 13794: # We can hardcode non-existant directories.
! 13795: if test "$hardcode_direct_CXX" != no &&
! 13796: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 13797: # have to relink, otherwise we might link with an installed library
! 13798: # when we should be linking with a yet-to-be-installed one
! 13799: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
! 13800: test "$hardcode_minus_L_CXX" != no; then
! 13801: # Linking always hardcodes the temporary library directory.
! 13802: hardcode_action_CXX=relink
! 13803: else
! 13804: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 13805: hardcode_action_CXX=immediate
! 13806: fi
1.1 root 13807: else
1.1.1.2 ! root 13808: # We cannot hardcode anything, or else we can only hardcode existing
! 13809: # directories.
! 13810: hardcode_action_CXX=unsupported
! 13811: fi
! 13812: { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
! 13813: echo "${ECHO_T}$hardcode_action_CXX" >&6; }
1.1 root 13814:
1.1.1.2 ! root 13815: if test "$hardcode_action_CXX" = relink; then
! 13816: # Fast installation is not supported
! 13817: enable_fast_install=no
! 13818: elif test "$shlibpath_overrides_runpath" = yes ||
! 13819: test "$enable_shared" = no; then
! 13820: # Fast installation is not necessary
! 13821: enable_fast_install=needless
! 13822: fi
1.1 root 13823:
13824:
1.1.1.2 ! root 13825: # The else clause should only fire when bootstrapping the
! 13826: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 13827: # with your package, and you will get complaints that there are
! 13828: # no rules to generate ltmain.sh.
! 13829: if test -f "$ltmain"; then
! 13830: # See if we are running on zsh, and set the options which allow our commands through
! 13831: # without removal of \ escapes.
! 13832: if test -n "${ZSH_VERSION+set}" ; then
! 13833: setopt NO_GLOB_SUBST
! 13834: fi
! 13835: # Now quote all the things that may contain metacharacters while being
! 13836: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 13837: # variables and quote the copies for generation of the libtool script.
! 13838: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 13839: SED SHELL STRIP \
! 13840: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 13841: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 13842: deplibs_check_method reload_flag reload_cmds need_locks \
! 13843: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 13844: lt_cv_sys_global_symbol_to_c_name_address \
! 13845: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 13846: old_postinstall_cmds old_postuninstall_cmds \
! 13847: compiler_CXX \
! 13848: CC_CXX \
! 13849: LD_CXX \
! 13850: lt_prog_compiler_wl_CXX \
! 13851: lt_prog_compiler_pic_CXX \
! 13852: lt_prog_compiler_static_CXX \
! 13853: lt_prog_compiler_no_builtin_flag_CXX \
! 13854: export_dynamic_flag_spec_CXX \
! 13855: thread_safe_flag_spec_CXX \
! 13856: whole_archive_flag_spec_CXX \
! 13857: enable_shared_with_static_runtimes_CXX \
! 13858: old_archive_cmds_CXX \
! 13859: old_archive_from_new_cmds_CXX \
! 13860: predep_objects_CXX \
! 13861: postdep_objects_CXX \
! 13862: predeps_CXX \
! 13863: postdeps_CXX \
! 13864: compiler_lib_search_path_CXX \
! 13865: archive_cmds_CXX \
! 13866: archive_expsym_cmds_CXX \
! 13867: postinstall_cmds_CXX \
! 13868: postuninstall_cmds_CXX \
! 13869: old_archive_from_expsyms_cmds_CXX \
! 13870: allow_undefined_flag_CXX \
! 13871: no_undefined_flag_CXX \
! 13872: export_symbols_cmds_CXX \
! 13873: hardcode_libdir_flag_spec_CXX \
! 13874: hardcode_libdir_flag_spec_ld_CXX \
! 13875: hardcode_libdir_separator_CXX \
! 13876: hardcode_automatic_CXX \
! 13877: module_cmds_CXX \
! 13878: module_expsym_cmds_CXX \
! 13879: lt_cv_prog_compiler_c_o_CXX \
! 13880: fix_srcfile_path_CXX \
! 13881: exclude_expsyms_CXX \
! 13882: include_expsyms_CXX; do
1.1 root 13883:
1.1.1.2 ! root 13884: case $var in
! 13885: old_archive_cmds_CXX | \
! 13886: old_archive_from_new_cmds_CXX | \
! 13887: archive_cmds_CXX | \
! 13888: archive_expsym_cmds_CXX | \
! 13889: module_cmds_CXX | \
! 13890: module_expsym_cmds_CXX | \
! 13891: old_archive_from_expsyms_cmds_CXX | \
! 13892: export_symbols_cmds_CXX | \
! 13893: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 13894: postinstall_cmds | postuninstall_cmds | \
! 13895: old_postinstall_cmds | old_postuninstall_cmds | \
! 13896: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 13897: # Double-quote double-evaled strings.
! 13898: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 13899: ;;
! 13900: *)
! 13901: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 13902: ;;
! 13903: esac
! 13904: done
1.1 root 13905:
1.1.1.2 ! root 13906: case $lt_echo in
! 13907: *'\$0 --fallback-echo"')
! 13908: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 13909: ;;
! 13910: esac
1.1 root 13911:
1.1.1.2 ! root 13912: cfgfile="$ofile"
1.1 root 13913:
1.1.1.2 ! root 13914: cat <<__EOF__ >> "$cfgfile"
! 13915: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
1.1 root 13916:
1.1.1.2 ! root 13917: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.1 root 13918:
1.1.1.2 ! root 13919: # Shell to use when invoking shell scripts.
! 13920: SHELL=$lt_SHELL
1.1 root 13921:
1.1.1.2 ! root 13922: # Whether or not to build shared libraries.
! 13923: build_libtool_libs=$enable_shared
1.1 root 13924:
1.1.1.2 ! root 13925: # Whether or not to build static libraries.
! 13926: build_old_libs=$enable_static
1.1 root 13927:
1.1.1.2 ! root 13928: # Whether or not to add -lc for building shared libraries.
! 13929: build_libtool_need_lc=$archive_cmds_need_lc_CXX
1.1 root 13930:
1.1.1.2 ! root 13931: # Whether or not to disallow shared libs when runtime libs are static
! 13932: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
1.1 root 13933:
1.1.1.2 ! root 13934: # Whether or not to optimize for fast installation.
! 13935: fast_install=$enable_fast_install
1.1 root 13936:
1.1.1.2 ! root 13937: # The host system.
! 13938: host_alias=$host_alias
! 13939: host=$host
! 13940: host_os=$host_os
1.1 root 13941:
1.1.1.2 ! root 13942: # The build system.
! 13943: build_alias=$build_alias
! 13944: build=$build
! 13945: build_os=$build_os
1.1 root 13946:
1.1.1.2 ! root 13947: # An echo program that does not interpret backslashes.
! 13948: echo=$lt_echo
1.1 root 13949:
1.1.1.2 ! root 13950: # The archiver.
! 13951: AR=$lt_AR
! 13952: AR_FLAGS=$lt_AR_FLAGS
1.1 root 13953:
1.1.1.2 ! root 13954: # A C compiler.
! 13955: LTCC=$lt_LTCC
1.1 root 13956:
1.1.1.2 ! root 13957: # LTCC compiler flags.
! 13958: LTCFLAGS=$lt_LTCFLAGS
1.1 root 13959:
1.1.1.2 ! root 13960: # A language-specific compiler.
! 13961: CC=$lt_compiler_CXX
1.1 root 13962:
1.1.1.2 ! root 13963: # Is the compiler the GNU C compiler?
! 13964: with_gcc=$GCC_CXX
1.1 root 13965:
1.1.1.2 ! root 13966: # An ERE matcher.
! 13967: EGREP=$lt_EGREP
1.1 root 13968:
1.1.1.2 ! root 13969: # The linker used to build libraries.
! 13970: LD=$lt_LD_CXX
1.1 root 13971:
1.1.1.2 ! root 13972: # Whether we need hard or soft links.
! 13973: LN_S=$lt_LN_S
1.1 root 13974:
1.1.1.2 ! root 13975: # A BSD-compatible nm program.
! 13976: NM=$lt_NM
1.1 root 13977:
1.1.1.2 ! root 13978: # A symbol stripping program
! 13979: STRIP=$lt_STRIP
1.1 root 13980:
1.1.1.2 ! root 13981: # Used to examine libraries when file_magic_cmd begins "file"
! 13982: MAGIC_CMD=$MAGIC_CMD
1.1 root 13983:
1.1.1.2 ! root 13984: # Used on cygwin: DLL creation program.
! 13985: DLLTOOL="$DLLTOOL"
1.1 root 13986:
1.1.1.2 ! root 13987: # Used on cygwin: object dumper.
! 13988: OBJDUMP="$OBJDUMP"
1.1 root 13989:
1.1.1.2 ! root 13990: # Used on cygwin: assembler.
! 13991: AS="$AS"
1.1 root 13992:
1.1.1.2 ! root 13993: # The name of the directory that contains temporary libtool files.
! 13994: objdir=$objdir
1.1 root 13995:
1.1.1.2 ! root 13996: # How to create reloadable object files.
! 13997: reload_flag=$lt_reload_flag
! 13998: reload_cmds=$lt_reload_cmds
1.1 root 13999:
1.1.1.2 ! root 14000: # How to pass a linker flag through the compiler.
! 14001: wl=$lt_lt_prog_compiler_wl_CXX
1.1 root 14002:
1.1.1.2 ! root 14003: # Object file suffix (normally "o").
! 14004: objext="$ac_objext"
1.1 root 14005:
1.1.1.2 ! root 14006: # Old archive suffix (normally "a").
! 14007: libext="$libext"
1.1 root 14008:
1.1.1.2 ! root 14009: # Shared library suffix (normally ".so").
! 14010: shrext_cmds='$shrext_cmds'
1.1 root 14011:
1.1.1.2 ! root 14012: # Executable file suffix (normally "").
! 14013: exeext="$exeext"
1.1 root 14014:
1.1.1.2 ! root 14015: # Additional compiler flags for building library objects.
! 14016: pic_flag=$lt_lt_prog_compiler_pic_CXX
! 14017: pic_mode=$pic_mode
1.1 root 14018:
1.1.1.2 ! root 14019: # What is the maximum length of a command?
! 14020: max_cmd_len=$lt_cv_sys_max_cmd_len
1.1 root 14021:
1.1.1.2 ! root 14022: # Does compiler simultaneously support -c and -o options?
! 14023: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
1.1 root 14024:
1.1.1.2 ! root 14025: # Must we lock files when doing compilation?
! 14026: need_locks=$lt_need_locks
1.1 root 14027:
1.1.1.2 ! root 14028: # Do we need the lib prefix for modules?
! 14029: need_lib_prefix=$need_lib_prefix
1.1 root 14030:
1.1.1.2 ! root 14031: # Do we need a version for libraries?
! 14032: need_version=$need_version
1.1 root 14033:
1.1.1.2 ! root 14034: # Whether dlopen is supported.
! 14035: dlopen_support=$enable_dlopen
1.1 root 14036:
1.1.1.2 ! root 14037: # Whether dlopen of programs is supported.
! 14038: dlopen_self=$enable_dlopen_self
1.1 root 14039:
1.1.1.2 ! root 14040: # Whether dlopen of statically linked programs is supported.
! 14041: dlopen_self_static=$enable_dlopen_self_static
1.1 root 14042:
1.1.1.2 ! root 14043: # Compiler flag to prevent dynamic linking.
! 14044: link_static_flag=$lt_lt_prog_compiler_static_CXX
1.1 root 14045:
1.1.1.2 ! root 14046: # Compiler flag to turn off builtin functions.
! 14047: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1.1 root 14048:
1.1.1.2 ! root 14049: # Compiler flag to allow reflexive dlopens.
! 14050: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
1.1 root 14051:
1.1.1.2 ! root 14052: # Compiler flag to generate shared objects directly from archives.
! 14053: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
1.1 root 14054:
1.1.1.2 ! root 14055: # Compiler flag to generate thread-safe objects.
! 14056: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
1.1 root 14057:
1.1.1.2 ! root 14058: # Library versioning type.
! 14059: version_type=$version_type
1.1 root 14060:
1.1.1.2 ! root 14061: # Format of library name prefix.
! 14062: libname_spec=$lt_libname_spec
1.1 root 14063:
1.1.1.2 ! root 14064: # List of archive names. First name is the real one, the rest are links.
! 14065: # The last name is the one that the linker finds with -lNAME.
! 14066: library_names_spec=$lt_library_names_spec
1.1 root 14067:
1.1.1.2 ! root 14068: # The coded name of the library, if different from the real name.
! 14069: soname_spec=$lt_soname_spec
1.1 root 14070:
1.1.1.2 ! root 14071: # Commands used to build and install an old-style archive.
! 14072: RANLIB=$lt_RANLIB
! 14073: old_archive_cmds=$lt_old_archive_cmds_CXX
! 14074: old_postinstall_cmds=$lt_old_postinstall_cmds
! 14075: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.1 root 14076:
1.1.1.2 ! root 14077: # Create an old-style archive from a shared archive.
! 14078: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
1.1 root 14079:
1.1.1.2 ! root 14080: # Create a temporary old-style archive to link instead of a shared archive.
! 14081: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
1.1 root 14082:
1.1.1.2 ! root 14083: # Commands used to build and install a shared archive.
! 14084: archive_cmds=$lt_archive_cmds_CXX
! 14085: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
! 14086: postinstall_cmds=$lt_postinstall_cmds
! 14087: postuninstall_cmds=$lt_postuninstall_cmds
1.1 root 14088:
1.1.1.2 ! root 14089: # Commands used to build a loadable module (assumed same as above if empty)
! 14090: module_cmds=$lt_module_cmds_CXX
! 14091: module_expsym_cmds=$lt_module_expsym_cmds_CXX
1.1 root 14092:
1.1.1.2 ! root 14093: # Commands to strip libraries.
! 14094: old_striplib=$lt_old_striplib
! 14095: striplib=$lt_striplib
1.1 root 14096:
1.1.1.2 ! root 14097: # Dependencies to place before the objects being linked to create a
! 14098: # shared library.
! 14099: predep_objects=$lt_predep_objects_CXX
1.1 root 14100:
1.1.1.2 ! root 14101: # Dependencies to place after the objects being linked to create a
! 14102: # shared library.
! 14103: postdep_objects=$lt_postdep_objects_CXX
1.1 root 14104:
1.1.1.2 ! root 14105: # Dependencies to place before the objects being linked to create a
! 14106: # shared library.
! 14107: predeps=$lt_predeps_CXX
1.1 root 14108:
1.1.1.2 ! root 14109: # Dependencies to place after the objects being linked to create a
! 14110: # shared library.
! 14111: postdeps=$lt_postdeps_CXX
1.1 root 14112:
1.1.1.2 ! root 14113: # The library search path used internally by the compiler when linking
! 14114: # a shared library.
! 14115: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.1 root 14116:
1.1.1.2 ! root 14117: # Method to check whether dependent libraries are shared objects.
! 14118: deplibs_check_method=$lt_deplibs_check_method
1.1 root 14119:
1.1.1.2 ! root 14120: # Command to use when deplibs_check_method == file_magic.
! 14121: file_magic_cmd=$lt_file_magic_cmd
1.1 root 14122:
1.1.1.2 ! root 14123: # Flag that allows shared libraries with undefined symbols to be built.
! 14124: allow_undefined_flag=$lt_allow_undefined_flag_CXX
1.1 root 14125:
1.1.1.2 ! root 14126: # Flag that forces no undefined symbols.
! 14127: no_undefined_flag=$lt_no_undefined_flag_CXX
1.1 root 14128:
1.1.1.2 ! root 14129: # Commands used to finish a libtool library installation in a directory.
! 14130: finish_cmds=$lt_finish_cmds
1.1 root 14131:
1.1.1.2 ! root 14132: # Same as above, but a single script fragment to be evaled but not shown.
! 14133: finish_eval=$lt_finish_eval
1.1 root 14134:
1.1.1.2 ! root 14135: # Take the output of nm and produce a listing of raw symbols and C names.
! 14136: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.1 root 14137:
1.1.1.2 ! root 14138: # Transform the output of nm in a proper C declaration
! 14139: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.1 root 14140:
1.1.1.2 ! root 14141: # Transform the output of nm in a C name address pair
! 14142: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.1 root 14143:
1.1.1.2 ! root 14144: # This is the shared library runtime path variable.
! 14145: runpath_var=$runpath_var
1.1 root 14146:
1.1.1.2 ! root 14147: # This is the shared library path variable.
! 14148: shlibpath_var=$shlibpath_var
1.1 root 14149:
1.1.1.2 ! root 14150: # Is shlibpath searched before the hard-coded library search path?
! 14151: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.1 root 14152:
1.1.1.2 ! root 14153: # How to hardcode a shared library path into an executable.
! 14154: hardcode_action=$hardcode_action_CXX
1.1 root 14155:
1.1.1.2 ! root 14156: # Whether we should hardcode library paths into libraries.
! 14157: hardcode_into_libs=$hardcode_into_libs
1.1 root 14158:
1.1.1.2 ! root 14159: # Flag to hardcode \$libdir into a binary during linking.
! 14160: # This must work even if \$libdir does not exist.
! 14161: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
1.1 root 14162:
1.1.1.2 ! root 14163: # If ld is used when linking, flag to hardcode \$libdir into
! 14164: # a binary during linking. This must work even if \$libdir does
! 14165: # not exist.
! 14166: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
1.1 root 14167:
1.1.1.2 ! root 14168: # Whether we need a single -rpath flag with a separated argument.
! 14169: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1.1 root 14170:
1.1.1.2 ! root 14171: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 14172: # resulting binary.
! 14173: hardcode_direct=$hardcode_direct_CXX
1.1 root 14174:
1.1.1.2 ! root 14175: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 14176: # resulting binary.
! 14177: hardcode_minus_L=$hardcode_minus_L_CXX
1.1 root 14178:
1.1.1.2 ! root 14179: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 14180: # the resulting binary.
! 14181: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
1.1 root 14182:
1.1.1.2 ! root 14183: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 14184: # and all subsequent libraries and executables linked against it.
! 14185: hardcode_automatic=$hardcode_automatic_CXX
1.1 root 14186:
1.1.1.2 ! root 14187: # Variables whose values should be saved in libtool wrapper scripts and
! 14188: # restored at relink time.
! 14189: variables_saved_for_relink="$variables_saved_for_relink"
1.1 root 14190:
1.1.1.2 ! root 14191: # Whether libtool must link a program against all its dependency libraries.
! 14192: link_all_deplibs=$link_all_deplibs_CXX
1.1 root 14193:
14194: # Compile-time system search path for libraries
14195: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14196:
14197: # Run-time system search path for libraries
14198: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14199:
14200: # Fix the shell variable \$srcfile for the compiler.
1.1.1.2 ! root 14201: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 14202:
14203: # Set to yes if exported symbols are required.
14204: always_export_symbols=$always_export_symbols_CXX
14205:
14206: # The commands to list exported symbols.
14207: export_symbols_cmds=$lt_export_symbols_cmds_CXX
14208:
14209: # The commands to extract the exported symbol list from a shared archive.
14210: extract_expsyms_cmds=$lt_extract_expsyms_cmds
14211:
14212: # Symbols that should not be listed in the preloaded symbols.
14213: exclude_expsyms=$lt_exclude_expsyms_CXX
14214:
14215: # Symbols that must always be exported.
14216: include_expsyms=$lt_include_expsyms_CXX
14217:
14218: # ### END LIBTOOL TAG CONFIG: $tagname
14219:
14220: __EOF__
14221:
14222:
14223: else
14224: # If there is no Makefile yet, we rely on a make rule to execute
14225: # `config.status --recheck' to rerun these tests and create the
14226: # libtool script then.
1.1.1.2 ! root 14227: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 14228: if test -f "$ltmain_in"; then
! 14229: test -f Makefile && make "$ltmain"
! 14230: fi
1.1 root 14231: fi
14232:
14233:
14234: ac_ext=c
14235: ac_cpp='$CPP $CPPFLAGS'
14236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
14239:
14240: CC=$lt_save_CC
14241: LDCXX=$LD
14242: LD=$lt_save_LD
14243: GCC=$lt_save_GCC
14244: with_gnu_ldcxx=$with_gnu_ld
14245: with_gnu_ld=$lt_save_with_gnu_ld
14246: lt_cv_path_LDCXX=$lt_cv_path_LD
14247: lt_cv_path_LD=$lt_save_path_LD
14248: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14249: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14250:
14251: else
14252: tagname=""
14253: fi
14254: ;;
14255:
14256: F77)
14257: if test -n "$F77" && test "X$F77" != "Xno"; then
14258:
14259: ac_ext=f
14260: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14261: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14262: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14263:
14264:
14265: archive_cmds_need_lc_F77=no
14266: allow_undefined_flag_F77=
14267: always_export_symbols_F77=no
14268: archive_expsym_cmds_F77=
14269: export_dynamic_flag_spec_F77=
14270: hardcode_direct_F77=no
14271: hardcode_libdir_flag_spec_F77=
14272: hardcode_libdir_flag_spec_ld_F77=
14273: hardcode_libdir_separator_F77=
14274: hardcode_minus_L_F77=no
14275: hardcode_automatic_F77=no
14276: module_cmds_F77=
14277: module_expsym_cmds_F77=
14278: link_all_deplibs_F77=unknown
14279: old_archive_cmds_F77=$old_archive_cmds
14280: no_undefined_flag_F77=
14281: whole_archive_flag_spec_F77=
14282: enable_shared_with_static_runtimes_F77=no
14283:
14284: # Source file extension for f77 test sources.
14285: ac_ext=f
14286:
14287: # Object file extension for compiled f77 test sources.
14288: objext=o
14289: objext_F77=$objext
14290:
14291: # Code to be used in simple compile tests
1.1.1.2 ! root 14292: lt_simple_compile_test_code="\
! 14293: subroutine t
! 14294: return
! 14295: end
! 14296: "
1.1 root 14297:
14298: # Code to be used in simple link tests
1.1.1.2 ! root 14299: lt_simple_link_test_code="\
! 14300: program t
! 14301: end
! 14302: "
1.1 root 14303:
14304: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14305:
14306: # If no C compiler was specified, use CC.
14307: LTCC=${LTCC-"$CC"}
14308:
1.1.1.2 ! root 14309: # If no C compiler flags were specified, use CFLAGS.
! 14310: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 14311:
1.1 root 14312: # Allow CC to be a program name with arguments.
14313: compiler=$CC
14314:
14315:
1.1.1.2 ! root 14316: # save warnings/boilerplate of simple test code
! 14317: ac_outfile=conftest.$ac_objext
! 14318: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 14319: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 14320: _lt_compiler_boilerplate=`cat conftest.err`
! 14321: $rm conftest*
! 14322:
! 14323: ac_outfile=conftest.$ac_objext
! 14324: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 14325: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 14326: _lt_linker_boilerplate=`cat conftest.err`
! 14327: $rm conftest*
! 14328:
! 14329:
1.1 root 14330: # Allow CC to be a program name with arguments.
14331: lt_save_CC="$CC"
14332: CC=${F77-"f77"}
14333: compiler=$CC
14334: compiler_F77=$CC
1.1.1.2 ! root 14335: for cc_temp in $compiler""; do
! 14336: case $cc_temp in
! 14337: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 14338: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 14339: \-*) ;;
! 14340: *) break;;
! 14341: esac
! 14342: done
! 14343: # Return the actual command name, not our pkgsrc wrapper name because several
! 14344: # decisions are made only based on compiler names
! 14345: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 14346: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 14347:
! 14348:
! 14349: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 14350: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
! 14351: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 14352: echo "${ECHO_T}$can_build_shared" >&6; }
1.1 root 14353:
1.1.1.2 ! root 14354: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 14355: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
1.1 root 14356: test "$can_build_shared" = "no" && enable_shared=no
14357:
14358: # On AIX, shared libraries and static libraries use the same namespace, and
14359: # are all built from PIC.
1.1.1.2 ! root 14360: case $host_os in
1.1 root 14361: aix3*)
14362: test "$enable_shared" = yes && enable_static=no
14363: if test -n "$RANLIB"; then
14364: archive_cmds="$archive_cmds~\$RANLIB \$lib"
14365: postinstall_cmds='$RANLIB $lib'
14366: fi
14367: ;;
1.1.1.2 ! root 14368: aix4* | aix5*)
! 14369: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 14370: test "$enable_shared" = yes && enable_static=no
! 14371: fi
1.1 root 14372: ;;
14373: esac
1.1.1.2 ! root 14374: { echo "$as_me:$LINENO: result: $enable_shared" >&5
! 14375: echo "${ECHO_T}$enable_shared" >&6; }
1.1 root 14376:
1.1.1.2 ! root 14377: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 14378: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
1.1 root 14379: # Make sure either enable_shared or enable_static is yes.
14380: test "$enable_shared" = yes || enable_static=yes
1.1.1.2 ! root 14381: { echo "$as_me:$LINENO: result: $enable_static" >&5
! 14382: echo "${ECHO_T}$enable_static" >&6; }
1.1 root 14383:
14384: GCC_F77="$G77"
14385: LD_F77="$LD"
14386:
14387: lt_prog_compiler_wl_F77=
14388: lt_prog_compiler_pic_F77=
14389: lt_prog_compiler_static_F77=
14390:
1.1.1.2 ! root 14391: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 14392: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 14393:
14394: if test "$GCC" = yes; then
14395: lt_prog_compiler_wl_F77='-Wl,'
14396: lt_prog_compiler_static_F77='-static'
14397:
14398: case $host_os in
14399: aix*)
14400: # All AIX code is PIC.
14401: if test "$host_cpu" = ia64; then
14402: # AIX 5 now supports IA64 processor
14403: lt_prog_compiler_static_F77='-Bstatic'
14404: fi
14405: ;;
14406:
14407: amigaos*)
14408: # FIXME: we need at least 68020 code to build shared libraries, but
14409: # adding the `-m68020' flag to GCC prevents building anything better,
14410: # like `-m68040'.
14411: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14412: ;;
14413:
1.1.1.2 ! root 14414: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 14415: # PIC is the default for these OSes.
14416: ;;
14417:
1.1.1.2 ! root 14418: mingw* | cygwin* | pw32* | os2*)
1.1 root 14419: # This hack is so that the source file can tell whether it is being
14420: # built for inclusion in a dll (and should export symbols for example).
1.1.1.2 ! root 14421: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 14422: # (--disable-auto-import) libraries
1.1 root 14423: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14424: ;;
14425:
14426: darwin* | rhapsody*)
1.1.1.2 ! root 14427: # PIC is the default on this platform, and static linking of
! 14428: # binaries generally doesn't work
1.1 root 14429: # Common symbols not allowed in MH_DYLIB files
14430: lt_prog_compiler_pic_F77='-fno-common'
1.1.1.2 ! root 14431: lt_prog_compiler_static_F77=''
! 14432: ;;
! 14433:
! 14434: interix[3-9]*)
! 14435: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 14436: # Instead, we relocate shared libraries at runtime.
1.1 root 14437: ;;
14438:
14439: msdosdjgpp*)
14440: # Just because we use GCC doesn't mean we suddenly get shared libraries
14441: # on systems that don't support them.
14442: lt_prog_compiler_can_build_shared_F77=no
14443: enable_shared=no
14444: ;;
14445:
14446: sysv4*MP*)
14447: if test -d /usr/nec; then
14448: lt_prog_compiler_pic_F77=-Kconform_pic
14449: fi
14450: ;;
14451:
14452: hpux*)
14453: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454: # not for PA HP-UX.
1.1.1.2 ! root 14455: case $host_cpu in
1.1 root 14456: hppa*64*|ia64*)
14457: # +Z the default
14458: ;;
14459: *)
14460: lt_prog_compiler_pic_F77='-fPIC'
14461: ;;
14462: esac
14463: ;;
14464:
1.1.1.2 ! root 14465: interix3*)
! 14466: # Interix 3.0-3.5 -fPIC option generates borked code.
! 14467: # (Instead, shlibs are relocated at runtime.)
! 14468: ;;
! 14469:
1.1 root 14470: *)
14471: lt_prog_compiler_pic_F77='-fPIC'
14472: ;;
14473: esac
14474: else
14475: # PORTME Check for flag to pass linker flags through the system compiler.
14476: case $host_os in
14477: aix*)
14478: lt_prog_compiler_wl_F77='-Wl,'
14479: if test "$host_cpu" = ia64; then
14480: # AIX 5 now supports IA64 processor
14481: lt_prog_compiler_static_F77='-Bstatic'
14482: else
14483: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14484: fi
14485: ;;
1.1.1.2 ! root 14486: darwin*)
! 14487: # PIC is the default on this platform
! 14488: # Common symbols not allowed in MH_DYLIB files
! 14489: case $cc_basename in
! 14490: xlc*)
! 14491: lt_prog_compiler_pic_F77='-qnocommon'
! 14492: lt_prog_compiler_wl_F77='-Wl,'
! 14493: ;;
! 14494: esac
! 14495: ;;
1.1 root 14496:
1.1.1.2 ! root 14497: mingw* | cygwin* | pw32* | os2*)
1.1 root 14498: # This hack is so that the source file can tell whether it is being
14499: # built for inclusion in a dll (and should export symbols for example).
14500: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14501: ;;
14502:
14503: hpux9* | hpux10* | hpux11*)
14504: lt_prog_compiler_wl_F77='-Wl,'
14505: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14506: # not for PA HP-UX.
1.1.1.2 ! root 14507: case $host_cpu in
1.1 root 14508: hppa*64*|ia64*)
14509: # +Z the default
14510: ;;
14511: *)
14512: lt_prog_compiler_pic_F77='+Z'
14513: ;;
14514: esac
14515: # Is there a better lt_prog_compiler_static that works with the bundled CC?
14516: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14517: ;;
14518:
14519: irix5* | irix6* | nonstopux*)
14520: lt_prog_compiler_wl_F77='-Wl,'
14521: # PIC (with -KPIC) is the default.
14522: lt_prog_compiler_static_F77='-non_shared'
14523: ;;
14524:
14525: newsos6)
14526: lt_prog_compiler_pic_F77='-KPIC'
14527: lt_prog_compiler_static_F77='-Bstatic'
14528: ;;
14529:
1.1.1.2 ! root 14530: linux* | k*bsd*-gnu)
! 14531: case $cc_basename in
! 14532: icc* | ecc*)
1.1 root 14533: lt_prog_compiler_wl_F77='-Wl,'
14534: lt_prog_compiler_pic_F77='-KPIC'
14535: lt_prog_compiler_static_F77='-static'
14536: ;;
1.1.1.2 ! root 14537: pgcc* | pgf77* | pgf90* | pgf95*)
! 14538: # Portland Group compilers (*not* the Pentium gcc compiler,
! 14539: # which looks to be a dead project)
! 14540: lt_prog_compiler_wl_F77='-Wl,'
! 14541: lt_prog_compiler_pic_F77='-fpic'
! 14542: lt_prog_compiler_static_F77='-Bstatic'
! 14543: ;;
! 14544: ccc*)
1.1 root 14545: lt_prog_compiler_wl_F77='-Wl,'
14546: # All Alpha code is PIC.
14547: lt_prog_compiler_static_F77='-non_shared'
14548: ;;
1.1.1.2 ! root 14549: *)
! 14550: case `$CC -V 2>&1 | sed 5q` in
! 14551: *Sun\ C*)
! 14552: # Sun C 5.9
! 14553: lt_prog_compiler_pic_F77='-KPIC'
! 14554: lt_prog_compiler_static_F77='-Bstatic'
! 14555: lt_prog_compiler_wl_F77='-Wl,'
! 14556: ;;
! 14557: *Sun\ F*)
! 14558: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 14559: lt_prog_compiler_pic_F77='-KPIC'
! 14560: lt_prog_compiler_static_F77='-Bstatic'
! 14561: lt_prog_compiler_wl_F77=''
! 14562: ;;
! 14563: esac
! 14564: ;;
1.1 root 14565: esac
14566: ;;
14567:
14568: osf3* | osf4* | osf5*)
14569: lt_prog_compiler_wl_F77='-Wl,'
14570: # All OSF/1 code is PIC.
14571: lt_prog_compiler_static_F77='-non_shared'
14572: ;;
14573:
1.1.1.2 ! root 14574: rdos*)
! 14575: lt_prog_compiler_static_F77='-non_shared'
1.1 root 14576: ;;
14577:
14578: solaris*)
14579: lt_prog_compiler_pic_F77='-KPIC'
14580: lt_prog_compiler_static_F77='-Bstatic'
1.1.1.2 ! root 14581: case $cc_basename in
! 14582: f77* | f90* | f95*)
! 14583: lt_prog_compiler_wl_F77='-Qoption ld ';;
! 14584: *)
! 14585: lt_prog_compiler_wl_F77='-Wl,';;
! 14586: esac
1.1 root 14587: ;;
14588:
14589: sunos4*)
14590: lt_prog_compiler_wl_F77='-Qoption ld '
14591: lt_prog_compiler_pic_F77='-PIC'
14592: lt_prog_compiler_static_F77='-Bstatic'
14593: ;;
14594:
1.1.1.2 ! root 14595: sysv4 | sysv4.2uw2* | sysv4.3*)
1.1 root 14596: lt_prog_compiler_wl_F77='-Wl,'
14597: lt_prog_compiler_pic_F77='-KPIC'
14598: lt_prog_compiler_static_F77='-Bstatic'
14599: ;;
14600:
14601: sysv4*MP*)
14602: if test -d /usr/nec ;then
14603: lt_prog_compiler_pic_F77='-Kconform_pic'
14604: lt_prog_compiler_static_F77='-Bstatic'
14605: fi
14606: ;;
14607:
1.1.1.2 ! root 14608: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 14609: lt_prog_compiler_wl_F77='-Wl,'
! 14610: lt_prog_compiler_pic_F77='-KPIC'
! 14611: lt_prog_compiler_static_F77='-Bstatic'
! 14612: ;;
! 14613:
! 14614: unicos*)
! 14615: lt_prog_compiler_wl_F77='-Wl,'
! 14616: lt_prog_compiler_can_build_shared_F77=no
! 14617: ;;
! 14618:
1.1 root 14619: uts4*)
14620: lt_prog_compiler_pic_F77='-pic'
14621: lt_prog_compiler_static_F77='-Bstatic'
14622: ;;
14623:
1.1.1.2 ! root 14624: nto-qnx*)
! 14625: lt_prog_compiler_pic_F77='-fPIC'
! 14626: ;;
! 14627:
1.1 root 14628: *)
14629: lt_prog_compiler_can_build_shared_F77=no
14630: ;;
14631: esac
14632: fi
14633:
1.1.1.2 ! root 14634: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
! 14635: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
1.1 root 14636:
14637: #
14638: # Check to make sure the PIC flag actually works.
14639: #
14640: if test -n "$lt_prog_compiler_pic_F77"; then
1.1.1.2 ! root 14641:
! 14642: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
! 14643: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
1.1 root 14644: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14645: echo $ECHO_N "(cached) $ECHO_C" >&6
14646: else
14647: lt_prog_compiler_pic_works_F77=no
14648: ac_outfile=conftest.$ac_objext
1.1.1.2 ! root 14649: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 14650: lt_compiler_flag="$lt_prog_compiler_pic_F77"
14651: # Insert the option either (1) after the last *FLAGS variable, or
14652: # (2) before a word containing "conftest.", or (3) at the end.
14653: # Note that $ac_compile itself does not contain backslashes and begins
14654: # with a dollar sign (not a hyphen), so the echo should work correctly.
14655: # The option is referenced via a variable to avoid confusing sed.
14656: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 14657: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 14658: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14659: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 14660: (eval echo "\"\$as_me:14500: $lt_compile\"" >&5)
1.1 root 14661: (eval "$lt_compile" 2>conftest.err)
14662: ac_status=$?
14663: cat conftest.err >&5
1.1.1.2 ! root 14664: echo "$as_me:14504: \$? = $ac_status" >&5
1.1 root 14665: if (exit $ac_status) && test -s "$ac_outfile"; then
14666: # The compiler can only warn and ignore the option if not recognized
1.1.1.2 ! root 14667: # So say no if there are warnings other than the usual output.
! 14668: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 14669: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 14670: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 14671: lt_prog_compiler_pic_works_F77=yes
14672: fi
14673: fi
14674: $rm conftest*
14675:
14676: fi
1.1.1.2 ! root 14677: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
! 14678: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
1.1 root 14679:
14680: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14681: case $lt_prog_compiler_pic_F77 in
14682: "" | " "*) ;;
14683: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14684: esac
14685: else
14686: lt_prog_compiler_pic_F77=
14687: lt_prog_compiler_can_build_shared_F77=no
14688: fi
14689:
14690: fi
1.1.1.2 ! root 14691: case $host_os in
1.1 root 14692: # For platforms which do not support PIC, -DPIC is meaningless:
14693: *djgpp*)
14694: lt_prog_compiler_pic_F77=
14695: ;;
14696: *)
14697: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14698: ;;
14699: esac
14700:
1.1.1.2 ! root 14701: #
! 14702: # Check to make sure the static flag actually works.
! 14703: #
! 14704: wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
! 14705: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 14706: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 14707: if test "${lt_prog_compiler_static_works_F77+set}" = set; then
1.1 root 14708: echo $ECHO_N "(cached) $ECHO_C" >&6
14709: else
1.1.1.2 ! root 14710: lt_prog_compiler_static_works_F77=no
! 14711: save_LDFLAGS="$LDFLAGS"
! 14712: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 14713: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 14714: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 14715: # The linker can only warn and ignore the option if not recognized
! 14716: # So say no if there are warnings
! 14717: if test -s conftest.err; then
! 14718: # Append any errors to the config.log.
! 14719: cat conftest.err 1>&5
! 14720: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 14721: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 14722: if diff conftest.exp conftest.er2 >/dev/null; then
! 14723: lt_prog_compiler_static_works_F77=yes
! 14724: fi
! 14725: else
! 14726: lt_prog_compiler_static_works_F77=yes
! 14727: fi
! 14728: fi
! 14729: $rm conftest*
! 14730: LDFLAGS="$save_LDFLAGS"
! 14731:
! 14732: fi
! 14733: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
! 14734: echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
! 14735:
! 14736: if test x"$lt_prog_compiler_static_works_F77" = xyes; then
! 14737: :
! 14738: else
! 14739: lt_prog_compiler_static_F77=
! 14740: fi
! 14741:
! 14742:
! 14743: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14744: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
! 14745: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
! 14746: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14747: else
! 14748: lt_cv_prog_compiler_c_o_F77=no
! 14749: $rm -r conftest 2>/dev/null
! 14750: mkdir conftest
! 14751: cd conftest
! 14752: mkdir out
! 14753: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 14754:
1.1 root 14755: lt_compiler_flag="-o out/conftest2.$ac_objext"
14756: # Insert the option either (1) after the last *FLAGS variable, or
14757: # (2) before a word containing "conftest.", or (3) at the end.
14758: # Note that $ac_compile itself does not contain backslashes and begins
14759: # with a dollar sign (not a hyphen), so the echo should work correctly.
14760: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 14761: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 14762: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 14764: (eval echo "\"\$as_me:14604: $lt_compile\"" >&5)
1.1 root 14765: (eval "$lt_compile" 2>out/conftest.err)
14766: ac_status=$?
14767: cat out/conftest.err >&5
1.1.1.2 ! root 14768: echo "$as_me:14608: \$? = $ac_status" >&5
1.1 root 14769: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14770: then
14771: # The compiler can only warn and ignore the option if not recognized
14772: # So say no if there are warnings
1.1.1.2 ! root 14773: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 14774: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 14775: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 14776: lt_cv_prog_compiler_c_o_F77=yes
14777: fi
14778: fi
1.1.1.2 ! root 14779: chmod u+w . 2>&5
! 14780: $rm conftest*
! 14781: # SGI C++ compiler will create directory out/ii_files/ for
! 14782: # template instantiation
! 14783: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 14784: $rm out/* && rmdir out
1.1 root 14785: cd ..
14786: rmdir conftest
14787: $rm conftest*
14788:
14789: fi
1.1.1.2 ! root 14790: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
! 14791: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
1.1 root 14792:
14793:
14794: hard_links="nottested"
14795: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14796: # do not overwrite the value of need_locks provided by the user
1.1.1.2 ! root 14797: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 14798: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 14799: hard_links=yes
14800: $rm conftest*
14801: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14802: touch conftest.a
14803: ln conftest.a conftest.b 2>&5 || hard_links=no
14804: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.2 ! root 14805: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 14806: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 14807: if test "$hard_links" = no; then
14808: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14809: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14810: need_locks=warn
14811: fi
14812: else
14813: need_locks=no
14814: fi
14815:
1.1.1.2 ! root 14816: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 14817: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 14818:
14819: runpath_var=
14820: allow_undefined_flag_F77=
14821: enable_shared_with_static_runtimes_F77=no
14822: archive_cmds_F77=
14823: archive_expsym_cmds_F77=
14824: old_archive_From_new_cmds_F77=
14825: old_archive_from_expsyms_cmds_F77=
14826: export_dynamic_flag_spec_F77=
14827: whole_archive_flag_spec_F77=
14828: thread_safe_flag_spec_F77=
14829: hardcode_libdir_flag_spec_F77=
14830: hardcode_libdir_flag_spec_ld_F77=
14831: hardcode_libdir_separator_F77=
14832: hardcode_direct_F77=no
14833: hardcode_minus_L_F77=no
14834: hardcode_shlibpath_var_F77=unsupported
14835: link_all_deplibs_F77=unknown
14836: hardcode_automatic_F77=no
14837: module_cmds_F77=
14838: module_expsym_cmds_F77=
14839: always_export_symbols_F77=no
14840: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14841: # include_expsyms should be a list of space-separated symbols to be *always*
14842: # included in the symbol list
14843: include_expsyms_F77=
14844: # exclude_expsyms can be an extended regexp of symbols to exclude
14845: # it will be wrapped by ` (' and `)$', so one must not match beginning or
14846: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14847: # as well as any symbol that contains `d'.
14848: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14849: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14850: # platforms (ab)use it in PIC code, but their linkers get confused if
14851: # the symbol is explicitly referenced. Since portable code cannot
14852: # rely on this symbol name, it's probably fine to never include it in
14853: # preloaded symbol tables.
14854: extract_expsyms_cmds=
1.1.1.2 ! root 14855: # Just being paranoid about ensuring that cc_basename is set.
! 14856: for cc_temp in $compiler""; do
! 14857: case $cc_temp in
! 14858: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 14859: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 14860: \-*) ;;
! 14861: *) break;;
! 14862: esac
! 14863: done
! 14864: # Return the actual command name, not our pkgsrc wrapper name because several
! 14865: # decisions are made only based on compiler names
! 14866: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 14867: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 14868:
14869: case $host_os in
14870: cygwin* | mingw* | pw32*)
14871: # FIXME: the MSVC++ port hasn't been tested in a loooong time
14872: # When not using gcc, we currently assume that we are using
14873: # Microsoft Visual C++.
14874: if test "$GCC" != yes; then
14875: with_gnu_ld=no
14876: fi
14877: ;;
1.1.1.2 ! root 14878: interix*)
! 14879: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 14880: with_gnu_ld=yes
! 14881: ;;
1.1 root 14882: openbsd*)
14883: with_gnu_ld=no
14884: ;;
14885: esac
14886:
14887: ld_shlibs_F77=yes
14888: if test "$with_gnu_ld" = yes; then
14889: # If archive_cmds runs LD, not CC, wlarc should be empty
14890: wlarc='${wl}'
14891:
1.1.1.2 ! root 14892: # Set some defaults for GNU ld with shared library support. These
! 14893: # are reset later if shared libraries are not supported. Putting them
! 14894: # here allows them to be overridden if necessary.
! 14895: runpath_var=LD_RUN_PATH
! 14896: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
! 14897: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
! 14898: # ancient GNU ld didn't support --whole-archive et. al.
! 14899: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 14900: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 14901: else
! 14902: whole_archive_flag_spec_F77=
! 14903: fi
! 14904: supports_anon_versioning=no
! 14905: case `$LD -v 2>/dev/null` in
! 14906: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 14907: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 14908: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 14909: *\ 2.11.*) ;; # other 2.11 versions
! 14910: *) supports_anon_versioning=yes ;;
! 14911: esac
! 14912:
1.1 root 14913: # See if GNU ld supports shared libraries.
14914: case $host_os in
14915: aix3* | aix4* | aix5*)
14916: # On AIX/PPC, the GNU linker is very broken
14917: if test "$host_cpu" != ia64; then
14918: ld_shlibs_F77=no
14919: cat <<EOF 1>&2
14920:
14921: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14922: *** to be unable to reliably create shared libraries on AIX.
14923: *** Therefore, libtool is disabling shared libraries support. If you
14924: *** really care for shared libraries, you may want to modify your PATH
14925: *** so that a non-GNU linker is found, and then restart.
14926:
14927: EOF
14928: fi
14929: ;;
14930:
14931: amigaos*)
14932: 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)'
14933: hardcode_libdir_flag_spec_F77='-L$libdir'
14934: hardcode_minus_L_F77=yes
14935:
14936: # Samuel A. Falvo II <[email protected]> reports
14937: # that the semantics of dynamic libraries on AmigaOS, at least up
14938: # to version 4, is to share data among multiple programs linked
14939: # with the same dynamic library. Since this doesn't match the
14940: # behavior of shared libraries on other platforms, we can't use
14941: # them.
14942: ld_shlibs_F77=no
14943: ;;
14944:
14945: beos*)
14946: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14947: allow_undefined_flag_F77=unsupported
14948: # Joseph Beckenbach <[email protected]> says some releases of gcc
14949: # support --undefined. This deserves some investigation. FIXME
14950: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951: else
14952: ld_shlibs_F77=no
14953: fi
14954: ;;
14955:
14956: cygwin* | mingw* | pw32*)
14957: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14958: # as there is no search path for DLLs.
14959: hardcode_libdir_flag_spec_F77='-L$libdir'
14960: allow_undefined_flag_F77=unsupported
14961: always_export_symbols_F77=no
14962: enable_shared_with_static_runtimes_F77=yes
1.1.1.2 ! root 14963: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 14964:
14965: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.2 ! root 14966: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 14967: # If the export-symbols file already is a .def file (1st line
14968: # is EXPORTS), use it as is; otherwise, prepend...
14969: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14970: cp $export_symbols $output_objdir/$soname.def;
14971: else
14972: echo EXPORTS > $output_objdir/$soname.def;
14973: cat $export_symbols >> $output_objdir/$soname.def;
14974: fi~
1.1.1.2 ! root 14975: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 14976: else
1.1.1.2 ! root 14977: ld_shlibs_F77=no
! 14978: fi
! 14979: ;;
! 14980:
! 14981: interix[3-9]*)
! 14982: hardcode_direct_F77=no
! 14983: hardcode_shlibpath_var_F77=no
! 14984: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 14985: export_dynamic_flag_spec_F77='${wl}-E'
! 14986: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 14987: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 14988: # default) and relocated if they conflict, which is a slow very memory
! 14989: # consuming and fragmenting process. To avoid this, we pick a random,
! 14990: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 14991: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 14992: 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'
! 14993: 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'
! 14994: ;;
! 14995:
! 14996: gnu* | linux* | k*bsd*-gnu)
! 14997: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14998: tmp_addflag=
! 14999: case $cc_basename,$host_cpu in
! 15000: pgcc*) # Portland Group C compiler
! 15001: 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'
! 15002: tmp_addflag=' $pic_flag'
! 15003: ;;
! 15004: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 15005: 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'
! 15006: tmp_addflag=' $pic_flag -Mnomain' ;;
! 15007: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 15008: tmp_addflag=' -i_dynamic' ;;
! 15009: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 15010: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 15011: ifc* | ifort*) # Intel Fortran compiler
! 15012: tmp_addflag=' -nofor_main' ;;
! 15013: esac
! 15014: case `$CC -V 2>&1 | sed 5q` in
! 15015: *Sun\ C*) # Sun C 5.9
! 15016: whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 15017: tmp_sharedflag='-G' ;;
! 15018: *Sun\ F*) # Sun Fortran 8.3
! 15019: tmp_sharedflag='-G' ;;
! 15020: *)
! 15021: tmp_sharedflag='-shared' ;;
! 15022: esac
! 15023: archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 15024:
! 15025: if test $supports_anon_versioning = yes; then
! 15026: archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
! 15027: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 15028: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 15029: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 15030: fi
! 15031: else
! 15032: ld_shlibs_F77=no
1.1 root 15033: fi
15034: ;;
15035:
1.1.1.2 ! root 15036: interix3*)
! 15037: # Oy, what a hack.
! 15038: # Because shlibs are not compiled -fPIC due to broken code, we must
! 15039: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 15040: # all libraries, leading to runtime relocations -- slow and very
! 15041: # memory consuming. To do this, we pick a random 256KB-aligned
! 15042: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 15043: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 15044: archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 15045: ;;
! 15046:
1.1 root 15047: netbsd*)
15048: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15049: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15050: wlarc=
15051: else
15052: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15053: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15054: fi
15055: ;;
15056:
1.1.1.2 ! root 15057: solaris*)
1.1 root 15058: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15059: ld_shlibs_F77=no
15060: cat <<EOF 1>&2
15061:
15062: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15063: *** create shared libraries on Solaris systems. Therefore, libtool
15064: *** is disabling shared libraries support. We urge you to upgrade GNU
15065: *** binutils to release 2.9.1 or newer. Another option is to modify
15066: *** your PATH or compiler configuration so that the native linker is
15067: *** used, and then restart.
15068:
15069: EOF
15070: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15072: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15073: else
15074: ld_shlibs_F77=no
15075: fi
15076: ;;
15077:
1.1.1.2 ! root 15078: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 15079: case `$LD -v 2>&1` in
! 15080: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 15081: ld_shlibs_F77=no
! 15082: cat <<_LT_EOF 1>&2
! 15083:
! 15084: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 15085: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 15086: *** is disabling shared libraries support. We urge you to upgrade GNU
! 15087: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 15088: *** your PATH or compiler configuration so that the native linker is
! 15089: *** used, and then restart.
! 15090:
! 15091: _LT_EOF
! 15092: ;;
! 15093: *)
! 15094: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 15095: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 15096: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 15097: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 15098: else
! 15099: ld_shlibs_F77=no
! 15100: fi
! 15101: ;;
! 15102: esac
! 15103: ;;
! 15104:
1.1 root 15105: sunos4*)
15106: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15107: wlarc=
15108: hardcode_direct_F77=yes
15109: hardcode_shlibpath_var_F77=no
15110: ;;
15111:
1.1.1.2 ! root 15112: nto-qnx*)
! 15113: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 15114: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 15115: ;;
! 15116:
1.1 root 15117: *)
15118: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15119: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15120: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15121: else
15122: ld_shlibs_F77=no
15123: fi
15124: ;;
15125: esac
15126:
1.1.1.2 ! root 15127: if test "$ld_shlibs_F77" = no; then
! 15128: runpath_var=
! 15129: hardcode_libdir_flag_spec_F77=
! 15130: export_dynamic_flag_spec_F77=
! 15131: whole_archive_flag_spec_F77=
1.1 root 15132: fi
15133: else
15134: # PORTME fill in a description of your system's linker (not GNU ld)
15135: case $host_os in
15136: aix3*)
15137: allow_undefined_flag_F77=unsupported
15138: always_export_symbols_F77=yes
15139: 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'
15140: # Note: this linker hardcodes the directories in LIBPATH if there
15141: # are no directories specified by -L.
15142: hardcode_minus_L_F77=yes
1.1.1.2 ! root 15143: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1 root 15144: # Neither direct hardcoding nor static linking is supported with a
15145: # broken collect2.
15146: hardcode_direct_F77=unsupported
15147: fi
15148: ;;
15149:
15150: aix4* | aix5*)
15151: if test "$host_cpu" = ia64; then
15152: # On IA64, the linker does run time linking by default, so we don't
15153: # have to do anything special.
15154: aix_use_runtimelinking=no
15155: exp_sym_flag='-Bexport'
15156: no_entry_flag=""
15157: else
15158: # If we're using GNU nm, then we don't want the "-C" option.
15159: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15160: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15161: 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'
15162: else
15163: 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'
15164: fi
15165: aix_use_runtimelinking=no
15166:
15167: # Test if we are trying to use run time linking or normal
15168: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15169: # need to do runtime linking.
15170: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15171: for ld_flag in $LDFLAGS; do
15172: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15173: aix_use_runtimelinking=yes
15174: break
15175: fi
15176: done
1.1.1.2 ! root 15177: ;;
1.1 root 15178: esac
15179:
15180: exp_sym_flag='-bexport'
15181: no_entry_flag='-bnoentry'
15182: fi
15183:
15184: # When large executables or shared objects are built, AIX ld can
15185: # have problems creating the table of contents. If linking a library
15186: # or program results in "error TOC overflow" add -mminimal-toc to
15187: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15188: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15189:
15190: archive_cmds_F77=''
15191: hardcode_direct_F77=yes
15192: hardcode_libdir_separator_F77=':'
15193: link_all_deplibs_F77=yes
15194:
15195: if test "$GCC" = yes; then
1.1.1.2 ! root 15196: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 15197: # We only want to do this on AIX 4.2 and lower, the check
15198: # below for broken collect2 doesn't work under 4.3+
15199: collect2name=`${CC} -print-prog-name=collect2`
15200: if test -f "$collect2name" && \
15201: strings "$collect2name" | grep resolve_lib_name >/dev/null
15202: then
15203: # We have reworked collect2
1.1.1.2 ! root 15204: :
1.1 root 15205: else
15206: # We have old collect2
15207: hardcode_direct_F77=unsupported
15208: # It fails to find uninstalled libraries when the uninstalled
15209: # path is not listed in the libpath. Setting hardcode_minus_L
15210: # to unsupported forces relinking
15211: hardcode_minus_L_F77=yes
15212: hardcode_libdir_flag_spec_F77='-L$libdir'
15213: hardcode_libdir_separator_F77=
15214: fi
1.1.1.2 ! root 15215: ;;
1.1 root 15216: esac
15217: shared_flag='-shared'
1.1.1.2 ! root 15218: if test "$aix_use_runtimelinking" = yes; then
! 15219: shared_flag="$shared_flag "'${wl}-G'
! 15220: fi
1.1 root 15221: else
15222: # not using gcc
15223: if test "$host_cpu" = ia64; then
15224: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15225: # chokes on -Wl,-G. The following line is correct:
15226: shared_flag='-G'
15227: else
1.1.1.2 ! root 15228: if test "$aix_use_runtimelinking" = yes; then
1.1 root 15229: shared_flag='${wl}-G'
15230: else
15231: shared_flag='${wl}-bM:SRE'
1.1.1.2 ! root 15232: fi
1.1 root 15233: fi
15234: fi
15235:
15236: # It seems that -bexpall does not export symbols beginning with
15237: # underscore (_), so it is better to generate a list of symbols to export.
15238: always_export_symbols_F77=yes
15239: if test "$aix_use_runtimelinking" = yes; then
15240: # Warning - without using the other runtime loading flags (-brtl),
15241: # -berok will link without error, but may produce a broken library.
15242: allow_undefined_flag_F77='-berok'
15243: # Determine the default libpath from the value encoded in an empty executable.
15244: cat >conftest.$ac_ext <<_ACEOF
15245: program main
15246:
15247: end
15248: _ACEOF
15249: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 15250: if { (ac_try="$ac_link"
! 15251: case "(($ac_try" in
! 15252: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15253: *) ac_try_echo=$ac_try;;
! 15254: esac
! 15255: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15256: (eval "$ac_link") 2>conftest.er1
1.1 root 15257: ac_status=$?
1.1.1.2 ! root 15258: grep -v '^ *+' conftest.er1 >conftest.err
! 15259: rm -f conftest.er1
! 15260: cat conftest.err >&5
1.1 root 15261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 15262: (exit $ac_status); } && {
! 15263: test -z "$ac_f77_werror_flag" ||
! 15264: test ! -s conftest.err
! 15265: } && test -s conftest$ac_exeext &&
! 15266: $as_test_x conftest$ac_exeext; then
! 15267:
! 15268: lt_aix_libpath_sed='
! 15269: /Import File Strings/,/^$/ {
! 15270: /^0/ {
! 15271: s/^0 *\(.*\)$/\1/
! 15272: p
! 15273: }
! 15274: }'
! 15275: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 15276: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 15277: if test -z "$aix_libpath"; then
! 15278: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 15279: fi
1.1 root 15280: else
15281: echo "$as_me: failed program was:" >&5
15282: sed 's/^/| /' conftest.$ac_ext >&5
15283:
1.1.1.2 ! root 15284:
1.1 root 15285: fi
1.1.1.2 ! root 15286:
! 15287: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 15288: conftest$ac_exeext conftest.$ac_ext
1.1 root 15289: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15290:
15291: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.2 ! root 15292: 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"
1.1 root 15293: else
15294: if test "$host_cpu" = ia64; then
15295: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15296: allow_undefined_flag_F77="-z nodefs"
1.1.1.2 ! root 15297: 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"
1.1 root 15298: else
15299: # Determine the default libpath from the value encoded in an empty executable.
15300: cat >conftest.$ac_ext <<_ACEOF
15301: program main
15302:
15303: end
15304: _ACEOF
15305: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 15306: if { (ac_try="$ac_link"
! 15307: case "(($ac_try" in
! 15308: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15309: *) ac_try_echo=$ac_try;;
! 15310: esac
! 15311: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15312: (eval "$ac_link") 2>conftest.er1
1.1 root 15313: ac_status=$?
1.1.1.2 ! root 15314: grep -v '^ *+' conftest.er1 >conftest.err
! 15315: rm -f conftest.er1
! 15316: cat conftest.err >&5
1.1 root 15317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 15318: (exit $ac_status); } && {
! 15319: test -z "$ac_f77_werror_flag" ||
! 15320: test ! -s conftest.err
! 15321: } && test -s conftest$ac_exeext &&
! 15322: $as_test_x conftest$ac_exeext; then
! 15323:
! 15324: lt_aix_libpath_sed='
! 15325: /Import File Strings/,/^$/ {
! 15326: /^0/ {
! 15327: s/^0 *\(.*\)$/\1/
! 15328: p
! 15329: }
! 15330: }'
! 15331: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 15332: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 15333: if test -z "$aix_libpath"; then
! 15334: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 15335: fi
1.1 root 15336: else
15337: echo "$as_me: failed program was:" >&5
15338: sed 's/^/| /' conftest.$ac_ext >&5
15339:
1.1.1.2 ! root 15340:
1.1 root 15341: fi
1.1.1.2 ! root 15342:
! 15343: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 15344: conftest$ac_exeext conftest.$ac_ext
1.1 root 15345: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15346:
15347: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15348: # Warning - without using the other run time loading flags,
15349: # -berok will link without error, but may produce a broken library.
15350: no_undefined_flag_F77=' ${wl}-bernotok'
15351: allow_undefined_flag_F77=' ${wl}-berok'
15352: # Exported symbols can be pulled into shared objects from archives
1.1.1.2 ! root 15353: whole_archive_flag_spec_F77='$convenience'
1.1 root 15354: archive_cmds_need_lc_F77=yes
1.1.1.2 ! root 15355: # This is similar to how AIX traditionally builds its shared libraries.
! 15356: 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'
1.1 root 15357: fi
15358: fi
15359: ;;
15360:
15361: amigaos*)
15362: 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)'
15363: hardcode_libdir_flag_spec_F77='-L$libdir'
15364: hardcode_minus_L_F77=yes
15365: # see comment about different semantics on the GNU ld section
15366: ld_shlibs_F77=no
15367: ;;
15368:
1.1.1.2 ! root 15369: bsdi[45]*)
1.1 root 15370: export_dynamic_flag_spec_F77=-rdynamic
15371: ;;
15372:
15373: cygwin* | mingw* | pw32*)
15374: # When not using gcc, we currently assume that we are using
15375: # Microsoft Visual C++.
15376: # hardcode_libdir_flag_spec is actually meaningless, as there is
15377: # no search path for DLLs.
15378: hardcode_libdir_flag_spec_F77=' '
15379: allow_undefined_flag_F77=unsupported
15380: # Tell ltmain to make .lib files, not .a files.
15381: libext=lib
15382: # Tell ltmain to make .dll files, not .so files.
1.1.1.2 ! root 15383: shrext_cmds=".dll"
1.1 root 15384: # FIXME: Setting linknames here is a bad hack.
15385: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15386: # The linker will automatically build a .lib file if we build a DLL.
15387: old_archive_From_new_cmds_F77='true'
15388: # FIXME: Should let the user specify the lib program.
1.1.1.2 ! root 15389: old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
! 15390: fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
1.1 root 15391: enable_shared_with_static_runtimes_F77=yes
15392: ;;
15393:
15394: darwin* | rhapsody*)
1.1.1.2 ! root 15395: case $host_os in
! 15396: rhapsody* | darwin1.[012])
! 15397: allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
! 15398: ;;
! 15399: *) # Darwin 1.3 on
! 15400: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 15401: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 15402: else
! 15403: case ${MACOSX_DEPLOYMENT_TARGET} in
! 15404: 10.[012])
! 15405: allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 15406: ;;
! 15407: 10.*)
! 15408: allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
! 15409: ;;
! 15410: esac
! 15411: fi
! 15412: ;;
1.1 root 15413: esac
1.1.1.2 ! root 15414: archive_cmds_need_lc_F77=no
1.1 root 15415: hardcode_direct_F77=no
15416: hardcode_automatic_F77=yes
15417: hardcode_shlibpath_var_F77=unsupported
1.1.1.2 ! root 15418: whole_archive_flag_spec_F77=''
1.1 root 15419: link_all_deplibs_F77=yes
1.1.1.2 ! root 15420: if test "$GCC" = yes ; then
! 15421: output_verbose_link_cmd='echo'
! 15422: archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 15423: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 15424: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 15425: 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}'
! 15426: 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}'
! 15427: else
! 15428: case $cc_basename in
! 15429: xlc*)
! 15430: output_verbose_link_cmd='echo'
! 15431: archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 15432: module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 15433: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 15434: 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 15435: 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}'
! 15436: ;;
! 15437: *)
! 15438: ld_shlibs_F77=no
! 15439: ;;
! 15440: esac
1.1 root 15441: fi
15442: ;;
15443:
15444: dgux*)
15445: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446: hardcode_libdir_flag_spec_F77='-L$libdir'
15447: hardcode_shlibpath_var_F77=no
15448: ;;
15449:
15450: freebsd1*)
15451: ld_shlibs_F77=no
15452: ;;
15453:
15454: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15455: # support. Future versions do this automatically, but an explicit c++rt0.o
15456: # does not break anything, and helps significantly (at the cost of a little
15457: # extra space).
15458: freebsd2.2*)
15459: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15460: hardcode_libdir_flag_spec_F77='-R$libdir'
15461: hardcode_direct_F77=yes
15462: hardcode_shlibpath_var_F77=no
15463: ;;
15464:
15465: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15466: freebsd2*)
15467: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15468: hardcode_direct_F77=yes
15469: hardcode_minus_L_F77=yes
15470: hardcode_shlibpath_var_F77=no
15471: ;;
15472:
15473: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.2 ! root 15474: freebsd* | dragonfly*)
1.1 root 15475: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15476: hardcode_libdir_flag_spec_F77='-R$libdir'
15477: hardcode_direct_F77=yes
15478: hardcode_shlibpath_var_F77=no
15479: ;;
15480:
15481: hpux9*)
15482: if test "$GCC" = yes; then
15483: 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'
15484: else
15485: 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'
15486: fi
15487: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15488: hardcode_libdir_separator_F77=:
15489: hardcode_direct_F77=yes
15490:
15491: # hardcode_minus_L: Not really in the search PATH,
15492: # but as the default location of the library.
15493: hardcode_minus_L_F77=yes
15494: export_dynamic_flag_spec_F77='${wl}-E'
15495: ;;
15496:
1.1.1.2 ! root 15497: hpux10*)
1.1 root 15498: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.1.2 ! root 15499: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 15500: else
! 15501: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 15502: fi
! 15503: if test "$with_gnu_ld" = no; then
! 15504: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 15505: hardcode_libdir_separator_F77=:
! 15506:
! 15507: hardcode_direct_F77=yes
! 15508: export_dynamic_flag_spec_F77='${wl}-E'
! 15509:
! 15510: # hardcode_minus_L: Not really in the search PATH,
! 15511: # but as the default location of the library.
! 15512: hardcode_minus_L_F77=yes
! 15513: fi
! 15514: ;;
! 15515:
! 15516: hpux11*)
! 15517: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 15518: case $host_cpu in
! 15519: hppa*64*)
1.1 root 15520: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15521: ;;
1.1.1.2 ! root 15522: ia64*)
! 15523: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 15524: ;;
1.1 root 15525: *)
15526: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15527: ;;
15528: esac
15529: else
1.1.1.2 ! root 15530: case $host_cpu in
! 15531: hppa*64*)
! 15532: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15533: ;;
! 15534: ia64*)
! 15535: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 15536: ;;
15537: *)
1.1.1.2 ! root 15538: archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 15539: ;;
15540: esac
15541: fi
15542: if test "$with_gnu_ld" = no; then
1.1.1.2 ! root 15543: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 15544: hardcode_libdir_separator_F77=:
! 15545:
! 15546: case $host_cpu in
! 15547: hppa*64*|ia64*)
1.1 root 15548: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15549: hardcode_direct_F77=no
15550: hardcode_shlibpath_var_F77=no
15551: ;;
15552: *)
15553: hardcode_direct_F77=yes
15554: export_dynamic_flag_spec_F77='${wl}-E'
15555:
15556: # hardcode_minus_L: Not really in the search PATH,
15557: # but as the default location of the library.
15558: hardcode_minus_L_F77=yes
15559: ;;
15560: esac
15561: fi
15562: ;;
15563:
1.1.1.2 ! root 15564: interix3*)
! 15565: # Oy, what a hack.
! 15566: # Because shlibs are not compiled -fPIC due to broken code, we must
! 15567: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 15568: # all libraries, leading to runtime relocations -- slow and very
! 15569: # memory consuming. To do this, we pick a random 256KB-aligned
! 15570: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 15571: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 15572: archive_expsym_cmds_F77='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 15573: export_dynamic_flag_spec_F77='${wl}-E'
! 15574: hardcode_direct_F77=yes
! 15575: hardcode_libdir_flag_spec_F77='${wl}-h,$libdir'
! 15576: hardcode_shlibpath_var_F77=no
! 15577: ;;
! 15578:
1.1 root 15579: irix5* | irix6* | nonstopux*)
15580: if test "$GCC" = yes; then
15581: 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'
15582: else
15583: 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'
15584: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15585: fi
15586: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15587: hardcode_libdir_separator_F77=:
15588: link_all_deplibs_F77=yes
15589: ;;
15590:
15591: netbsd*)
15592: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15593: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15594: else
15595: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15596: fi
15597: hardcode_libdir_flag_spec_F77='-R$libdir'
15598: hardcode_direct_F77=yes
15599: hardcode_shlibpath_var_F77=no
15600: ;;
15601:
15602: newsos6)
15603: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15604: hardcode_direct_F77=yes
15605: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15606: hardcode_libdir_separator_F77=:
15607: hardcode_shlibpath_var_F77=no
15608: ;;
15609:
15610: openbsd*)
1.1.1.2 ! root 15611: if test -f /usr/libexec/ld.so; then
! 15612: hardcode_direct_F77=yes
! 15613: hardcode_shlibpath_var_F77=no
! 15614: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 15615: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 15616: archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 15617: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 15618: export_dynamic_flag_spec_F77='${wl}-E'
! 15619: else
! 15620: case $host_os in
! 15621: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 15622: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 15623: hardcode_libdir_flag_spec_F77='-R$libdir'
! 15624: ;;
! 15625: *)
! 15626: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 15627: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 15628: ;;
! 15629: esac
! 15630: fi
1.1 root 15631: else
1.1.1.2 ! root 15632: ld_shlibs_F77=no
1.1 root 15633: fi
15634: ;;
15635:
15636: os2*)
15637: hardcode_libdir_flag_spec_F77='-L$libdir'
15638: hardcode_minus_L_F77=yes
15639: allow_undefined_flag_F77=unsupported
15640: 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'
15641: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15642: ;;
15643:
15644: osf3*)
15645: if test "$GCC" = yes; then
15646: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15647: 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'
15648: else
15649: allow_undefined_flag_F77=' -expect_unresolved \*'
15650: 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'
15651: fi
15652: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15653: hardcode_libdir_separator_F77=:
15654: ;;
15655:
15656: osf4* | osf5*) # as osf3* with the addition of -msym flag
15657: if test "$GCC" = yes; then
15658: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15659: 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'
15660: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15661: else
15662: allow_undefined_flag_F77=' -expect_unresolved \*'
15663: 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'
15664: 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~
1.1.1.2 ! root 15665: $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'
1.1 root 15666:
15667: # Both c and cxx compiler support -rpath directly
15668: hardcode_libdir_flag_spec_F77='-rpath $libdir'
15669: fi
15670: hardcode_libdir_separator_F77=:
15671: ;;
15672:
15673: solaris*)
15674: no_undefined_flag_F77=' -z text'
15675: if test "$GCC" = yes; then
1.1.1.2 ! root 15676: wlarc='${wl}'
1.1 root 15677: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15678: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15679: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15680: else
1.1.1.2 ! root 15681: wlarc=''
1.1 root 15682: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15684: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15685: fi
15686: hardcode_libdir_flag_spec_F77='-R$libdir'
15687: hardcode_shlibpath_var_F77=no
15688: case $host_os in
15689: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1.1.2 ! root 15690: *)
! 15691: # The compiler driver will combine and reorder linker options,
! 15692: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 15693: # but is careful enough not to reorder.
! 15694: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 15695: if test "$GCC" = yes; then
! 15696: whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 15697: else
! 15698: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
! 15699: fi
! 15700: ;;
1.1 root 15701: esac
15702: link_all_deplibs_F77=yes
15703: ;;
15704:
15705: sunos4*)
15706: if test "x$host_vendor" = xsequent; then
15707: # Use $CC to link under sequent, because it throws in some extra .o
15708: # files that make .init and .fini sections work.
15709: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15710: else
15711: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15712: fi
15713: hardcode_libdir_flag_spec_F77='-L$libdir'
15714: hardcode_direct_F77=yes
15715: hardcode_minus_L_F77=yes
15716: hardcode_shlibpath_var_F77=no
15717: ;;
15718:
15719: sysv4)
15720: case $host_vendor in
15721: sni)
15722: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15723: hardcode_direct_F77=yes # is this really true???
15724: ;;
15725: siemens)
15726: ## LD is ld it makes a PLAMLIB
15727: ## CC just makes a GrossModule.
15728: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15729: reload_cmds_F77='$CC -r -o $output$reload_objs'
15730: hardcode_direct_F77=no
15731: ;;
15732: motorola)
15733: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15735: ;;
15736: esac
15737: runpath_var='LD_RUN_PATH'
15738: hardcode_shlibpath_var_F77=no
15739: ;;
15740:
15741: sysv4.3*)
15742: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743: hardcode_shlibpath_var_F77=no
15744: export_dynamic_flag_spec_F77='-Bexport'
15745: ;;
15746:
15747: sysv4*MP*)
15748: if test -d /usr/nec; then
15749: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15750: hardcode_shlibpath_var_F77=no
15751: runpath_var=LD_RUN_PATH
15752: hardcode_runpath_var=yes
15753: ld_shlibs_F77=yes
15754: fi
15755: ;;
15756:
1.1.1.2 ! root 15757: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 15758: no_undefined_flag_F77='${wl}-z,text'
! 15759: archive_cmds_need_lc_F77=no
1.1 root 15760: hardcode_shlibpath_var_F77=no
1.1.1.2 ! root 15761: runpath_var='LD_RUN_PATH'
1.1 root 15762:
15763: if test "$GCC" = yes; then
1.1.1.2 ! root 15764: archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15765: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 15766: else
1.1.1.2 ! root 15767: archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15768: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 15769: fi
15770: ;;
15771:
1.1.1.2 ! root 15772: sysv5* | sco3.2v5* | sco5v6*)
! 15773: # Note: We can NOT use -z defs as we might desire, because we do not
! 15774: # link with -lc, and that would cause any symbols used from libc to
! 15775: # always be unresolved, which means just about no library would
! 15776: # ever link correctly. If we're not using GNU ld we use -z text
! 15777: # though, which does catch some bad symbols but isn't as heavy-handed
! 15778: # as -z defs.
! 15779: no_undefined_flag_F77='${wl}-z,text'
! 15780: allow_undefined_flag_F77='${wl}-z,nodefs'
! 15781: archive_cmds_need_lc_F77=no
1.1 root 15782: hardcode_shlibpath_var_F77=no
1.1.1.2 ! root 15783: hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 15784: hardcode_libdir_separator_F77=':'
! 15785: link_all_deplibs_F77=yes
! 15786: export_dynamic_flag_spec_F77='${wl}-Bexport'
1.1 root 15787: runpath_var='LD_RUN_PATH'
1.1.1.2 ! root 15788:
! 15789: if test "$GCC" = yes; then
! 15790: archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15791: archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15792: else
! 15793: archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15794: archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15795: fi
1.1 root 15796: ;;
15797:
15798: uts4*)
15799: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800: hardcode_libdir_flag_spec_F77='-L$libdir'
15801: hardcode_shlibpath_var_F77=no
15802: ;;
15803:
1.1.1.2 ! root 15804: nto-qnx*)
! 15805: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
! 15806: hardcode_libdir_flag_spec_F77='-R$libdir'
! 15807: hardcode_direct_F77=yes
! 15808: hardcode_shlibpath_var_F77=no
! 15809: ;;
! 15810:
1.1 root 15811: *)
15812: ld_shlibs_F77=no
15813: ;;
15814: esac
15815: fi
15816:
1.1.1.2 ! root 15817: { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
! 15818: echo "${ECHO_T}$ld_shlibs_F77" >&6; }
1.1 root 15819: test "$ld_shlibs_F77" = no && can_build_shared=no
15820:
15821: #
15822: # Do we need to explicitly link libc?
15823: #
15824: case "x$archive_cmds_need_lc_F77" in
15825: x|xyes)
15826: # Assume -lc should be added
15827: archive_cmds_need_lc_F77=yes
15828:
15829: if test "$enable_shared" = yes && test "$GCC" = yes; then
15830: case $archive_cmds_F77 in
15831: *'~'*)
15832: # FIXME: we may have to deal with multi-command sequences.
15833: ;;
15834: '$CC '*)
15835: # Test whether the compiler implicitly links with -lc since on some
15836: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15837: # to ld, don't add -lc before -lgcc.
1.1.1.2 ! root 15838: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 15839: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
1.1 root 15840: $rm conftest*
1.1.1.2 ! root 15841: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 15842:
15843: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15844: (eval $ac_compile) 2>&5
15845: ac_status=$?
15846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847: (exit $ac_status); } 2>conftest.err; then
15848: soname=conftest
15849: lib=conftest
15850: libobjs=conftest.$ac_objext
15851: deplibs=
15852: wl=$lt_prog_compiler_wl_F77
1.1.1.2 ! root 15853: pic_flag=$lt_prog_compiler_pic_F77
1.1 root 15854: compiler_flags=-v
15855: linker_flags=-v
15856: verstring=
15857: output_objdir=.
15858: libname=conftest
15859: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15860: allow_undefined_flag_F77=
15861: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15862: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15863: ac_status=$?
15864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865: (exit $ac_status); }
15866: then
15867: archive_cmds_need_lc_F77=no
15868: else
15869: archive_cmds_need_lc_F77=yes
15870: fi
15871: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15872: else
15873: cat conftest.err 1>&5
15874: fi
15875: $rm conftest*
1.1.1.2 ! root 15876: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
! 15877: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
1.1 root 15878: ;;
15879: esac
15880: fi
15881: ;;
15882: esac
15883:
1.1.1.2 ! root 15884: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 15885: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 15886: library_names_spec=
! 15887: libname_spec='lib$name'
! 15888: soname_spec=
! 15889: shrext_cmds=".so"
! 15890: postinstall_cmds=
! 15891: postuninstall_cmds=
! 15892: finish_cmds=
! 15893: finish_eval=
! 15894: shlibpath_var=
! 15895: shlibpath_overrides_runpath=unknown
! 15896: version_type=none
! 15897: dynamic_linker="$host_os ld.so"
! 15898: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.1 root 15899:
1.1.1.2 ! root 15900: need_lib_prefix=unknown
! 15901: hardcode_into_libs=no
1.1 root 15902:
15903: # when you set need_version to no, make sure it does not cause -set_version
15904: # flags to be left without arguments
15905: need_version=unknown
15906:
15907: case $host_os in
15908: aix3*)
15909: version_type=linux
15910: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15911: shlibpath_var=LIBPATH
15912:
15913: # AIX 3 has no versioning support, so we append a major version to the name.
15914: soname_spec='${libname}${release}${shared_ext}$major'
15915: ;;
15916:
15917: aix4* | aix5*)
15918: version_type=linux
15919: need_lib_prefix=no
15920: need_version=no
15921: hardcode_into_libs=yes
15922: if test "$host_cpu" = ia64; then
15923: # AIX 5 supports IA64
15924: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15925: shlibpath_var=LD_LIBRARY_PATH
15926: else
15927: # With GCC up to 2.95.x, collect2 would create an import file
15928: # for dependence libraries. The import file would start with
15929: # the line `#! .'. This would cause the generated library to
15930: # depend on `.', always an invalid library. This was fixed in
15931: # development snapshots of GCC prior to 3.0.
15932: case $host_os in
15933: aix4 | aix4.[01] | aix4.[01].*)
15934: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15935: echo ' yes '
15936: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15937: :
15938: else
15939: can_build_shared=no
15940: fi
15941: ;;
15942: esac
15943: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15944: # soname into executable. Probably we can add versioning support to
15945: # collect2, so additional links can be useful in future.
15946: if test "$aix_use_runtimelinking" = yes; then
15947: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15948: # instead of lib<name>.a to let people know that these are not
15949: # typical AIX shared libraries.
15950: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15951: else
15952: # We preserve .a as extension for shared libraries through AIX4.2
15953: # and later when we are not doing run time linking.
15954: library_names_spec='${libname}${release}.a $libname.a'
15955: soname_spec='${libname}${release}${shared_ext}$major'
15956: fi
15957: shlibpath_var=LIBPATH
15958: fi
15959: ;;
15960:
15961: amigaos*)
15962: library_names_spec='$libname.ixlibrary $libname.a'
15963: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.1.1.2 ! root 15964: 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'
1.1 root 15965: ;;
15966:
15967: beos*)
15968: library_names_spec='${libname}${shared_ext}'
15969: dynamic_linker="$host_os ld.so"
15970: shlibpath_var=LIBRARY_PATH
15971: ;;
15972:
1.1.1.2 ! root 15973: bsdi[45]*)
1.1 root 15974: version_type=linux
15975: need_version=no
1.1.1.2 ! root 15976: need_lib_prefix=no
1.1 root 15977: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978: soname_spec='${libname}${release}${shared_ext}$major'
15979: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15980: shlibpath_var=LD_LIBRARY_PATH
15981: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15982: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15983: # the default ld.so.conf also contains /usr/contrib/lib and
15984: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15985: # libtool to hard-code these into programs
15986: ;;
15987:
15988: cygwin* | mingw* | pw32*)
15989: version_type=windows
1.1.1.2 ! root 15990: shrext_cmds=".dll"
1.1 root 15991: need_version=no
15992: need_lib_prefix=no
15993:
15994: case $GCC,$host_os in
15995: yes,cygwin* | yes,mingw* | yes,pw32*)
15996: library_names_spec='$libname.dll.a'
15997: # DLL is installed to $(libdir)/../bin by postinstall_cmds
15998: postinstall_cmds='base_file=`basename \${file}`~
15999: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16000: dldir=$destdir/`dirname \$dlpath`~
16001: test -d \$dldir || mkdir -p \$dldir~
1.1.1.2 ! root 16002: $install_prog $dir/$dlname \$dldir/$dlname~
! 16003: chmod a+x \$dldir/$dlname'
1.1 root 16004: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16005: dlpath=$dir/\$dldll~
16006: $rm \$dlpath'
16007: shlibpath_overrides_runpath=yes
16008:
16009: case $host_os in
16010: cygwin*)
16011: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16012: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1.1.2 ! root 16013: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.1 root 16014: ;;
16015: mingw*)
16016: # MinGW DLLs use traditional 'lib' prefix
16017: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16018: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16019: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16020: # It is most probably a Windows format PATH printed by
16021: # mingw gcc, but we are running on Cygwin. Gcc prints its search
16022: # path with ; separators, and with drive letters. We can handle the
16023: # drive letters (cygwin fileutils understands them), so leave them,
16024: # especially as we might pass files found there to a mingw objdump,
16025: # which wouldn't understand a cygwinified path. Ahh.
16026: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16027: else
16028: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16029: fi
16030: ;;
16031: pw32*)
16032: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.1.1.2 ! root 16033: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.1 root 16034: ;;
16035: esac
16036: ;;
16037:
16038: *)
16039: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16040: ;;
16041: esac
16042: dynamic_linker='Win32 ld.exe'
16043: # FIXME: first we should search . and the directory the executable is in
16044: shlibpath_var=PATH
16045: ;;
16046:
16047: darwin* | rhapsody*)
16048: dynamic_linker="$host_os dyld"
16049: version_type=darwin
16050: need_lib_prefix=no
16051: need_version=no
16052: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16053: soname_spec='${libname}${release}${major}$shared_ext'
16054: shlibpath_overrides_runpath=yes
16055: shlibpath_var=DYLD_LIBRARY_PATH
1.1.1.2 ! root 16056: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
! 16057:
1.1 root 16058: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16059: ;;
16060:
16061: dgux*)
16062: version_type=linux
16063: need_lib_prefix=no
16064: need_version=no
16065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16066: soname_spec='${libname}${release}${shared_ext}$major'
16067: shlibpath_var=LD_LIBRARY_PATH
16068: ;;
16069:
16070: freebsd1*)
16071: dynamic_linker=no
16072: ;;
16073:
16074: freebsd*)
1.1.1.2 ! root 16075: # DragonFly does not have aout. When/if they implement a new
! 16076: # versioning mechanism, adjust this.
! 16077: if test -x /usr/bin/objformat; then
! 16078: objformat=`/usr/bin/objformat`
! 16079: else
! 16080: case $host_os in
! 16081: freebsd[123]*) objformat=aout ;;
! 16082: *) objformat=elf ;;
! 16083: esac
! 16084: fi
1.1 root 16085: version_type=freebsd-$objformat
16086: case $version_type in
16087: freebsd-elf*)
1.1.1.2 ! root 16088: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 16089: need_version=no
16090: need_lib_prefix=no
16091: ;;
16092: freebsd-*)
16093: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16094: need_version=yes
16095: ;;
16096: esac
16097: shlibpath_var=LD_LIBRARY_PATH
16098: case $host_os in
16099: freebsd2*)
16100: shlibpath_overrides_runpath=yes
16101: ;;
1.1.1.2 ! root 16102: freebsd3.[01]* | freebsdelf3.[01]*)
1.1 root 16103: shlibpath_overrides_runpath=yes
16104: hardcode_into_libs=yes
16105: ;;
1.1.1.2 ! root 16106: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 16107: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.1 root 16108: shlibpath_overrides_runpath=no
16109: hardcode_into_libs=yes
16110: ;;
1.1.1.2 ! root 16111: *) # from 4.6 on, and DragonFly
! 16112: shlibpath_overrides_runpath=yes
! 16113: hardcode_into_libs=yes
! 16114: ;;
1.1 root 16115: esac
16116: ;;
16117:
1.1.1.2 ! root 16118: dragonfly*)
! 16119: version_type=linux # XXX tv this should be =linux; current selection has problems
! 16120: need_version=no
! 16121: need_lib_prefix=no
! 16122: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 16123: shlibpath_var=LD_LIBRARY_PATH
! 16124: shlibpath_overrides_runpath=no
! 16125: hardcode_into_libs=yes
! 16126: ;;
! 16127:
1.1 root 16128: gnu*)
16129: version_type=linux
16130: need_lib_prefix=no
16131: need_version=no
16132: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16133: soname_spec='${libname}${release}${shared_ext}$major'
16134: shlibpath_var=LD_LIBRARY_PATH
16135: hardcode_into_libs=yes
16136: ;;
16137:
16138: hpux9* | hpux10* | hpux11*)
16139: # Give a soname corresponding to the major version so that dld.sl refuses to
16140: # link against other versions.
16141: version_type=sunos
16142: need_lib_prefix=no
16143: need_version=no
1.1.1.2 ! root 16144: case $host_cpu in
1.1 root 16145: ia64*)
1.1.1.2 ! root 16146: shrext_cmds='.so'
1.1 root 16147: hardcode_into_libs=yes
16148: dynamic_linker="$host_os dld.so"
16149: shlibpath_var=LD_LIBRARY_PATH
16150: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152: soname_spec='${libname}${release}${shared_ext}$major'
16153: if test "X$HPUX_IA64_MODE" = X32; then
16154: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16155: else
16156: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16157: fi
16158: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16159: ;;
16160: hppa*64*)
1.1.1.2 ! root 16161: shrext_cmds='.sl'
1.1 root 16162: hardcode_into_libs=yes
16163: dynamic_linker="$host_os dld.sl"
16164: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16165: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16166: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16167: soname_spec='${libname}${release}${shared_ext}$major'
16168: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16169: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16170: ;;
16171: *)
1.1.1.2 ! root 16172: shrext_cmds='.sl'
1.1 root 16173: dynamic_linker="$host_os dld.sl"
16174: shlibpath_var=SHLIB_PATH
16175: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16176: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16177: soname_spec='${libname}${release}${shared_ext}$major'
16178: ;;
16179: esac
16180: # HP-UX runs *really* slowly unless shared libraries are mode 555.
16181: postinstall_cmds='chmod 555 $lib'
16182: ;;
16183:
1.1.1.2 ! root 16184: interix[3-9]*)
! 16185: version_type=linux
! 16186: need_lib_prefix=no
! 16187: need_version=no
! 16188: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 16189: soname_spec='${libname}${release}${shared_ext}$major'
! 16190: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 16191: shlibpath_var=LD_LIBRARY_PATH
! 16192: shlibpath_overrides_runpath=no
! 16193: hardcode_into_libs=yes
! 16194: ;;
! 16195:
! 16196: interix3*)
! 16197: version_type=linux
! 16198: need_lib_prefix=no
! 16199: need_version=no
! 16200: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 16201: soname_spec='${libname}${release}${shared_ext}$major'
! 16202: dynamic_linker='Interix 3.x ld.so'
! 16203: shlibpath_var=LD_LIBRARY_PATH
! 16204: shlibpath_overrides_runpath=yes
! 16205: hardcode_into_libs=yes
! 16206: ;;
! 16207:
1.1 root 16208: irix5* | irix6* | nonstopux*)
16209: case $host_os in
16210: nonstopux*) version_type=nonstopux ;;
1.1.1.2 ! root 16211: *) version_type=irix ;;
1.1 root 16212: esac
16213: need_lib_prefix=no
16214: need_version=no
16215: soname_spec='${libname}${release}${shared_ext}$major'
16216: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16217: case $host_os in
16218: irix5* | nonstopux*)
16219: libsuff= shlibsuff=
16220: ;;
16221: *)
16222: case $LD in # libtool.m4 will add one of these switches to LD
16223: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16224: libsuff= shlibsuff= libmagic=32-bit;;
16225: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16226: libsuff=32 shlibsuff=N32 libmagic=N32;;
16227: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16228: libsuff=64 shlibsuff=64 libmagic=64-bit;;
16229: *) libsuff= shlibsuff= libmagic=never-match;;
16230: esac
16231: ;;
16232: esac
16233: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16234: shlibpath_overrides_runpath=no
16235: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16236: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16237: hardcode_into_libs=yes
16238: ;;
16239:
16240: # No shared lib support for Linux oldld, aout, or coff.
16241: linux*oldld* | linux*aout* | linux*coff*)
16242: dynamic_linker=no
16243: ;;
16244:
16245: # This must be Linux ELF.
1.1.1.2 ! root 16246: linux* | k*bsd*-gnu)
1.1 root 16247: version_type=linux
16248: need_lib_prefix=no
16249: need_version=no
16250: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251: soname_spec='${libname}${release}${shared_ext}$major'
16252: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16253: shlibpath_var=LD_LIBRARY_PATH
16254: shlibpath_overrides_runpath=no
16255: # This implies no fast_install, which is unacceptable.
16256: # Some rework will be needed to allow for fast_install
16257: # before this can be enabled.
16258: hardcode_into_libs=yes
16259:
1.1.1.2 ! root 16260: # Append ld.so.conf contents to the search path
! 16261: if test -f /etc/ld.so.conf; then
! 16262: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
! 16263: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 16264: fi
! 16265:
1.1 root 16266: # We used to test for /lib/ld.so.1 and disable shared libraries on
16267: # powerpc, because MkLinux only supported shared libraries with the
16268: # GNU dynamic linker. Since this was broken with cross compilers,
16269: # most powerpc-linux boxes support dynamic linking these days and
16270: # people can always --disable-shared, the test was removed, and we
16271: # assume the GNU/Linux dynamic linker is in use.
16272: dynamic_linker='GNU/Linux ld.so'
16273: ;;
16274:
16275: netbsd*)
1.1.1.2 ! root 16276: version_type=linux
1.1 root 16277: need_lib_prefix=no
16278: need_version=no
16279: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.1.1.2 ! root 16280: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
1.1 root 16281: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16282: dynamic_linker='NetBSD (a.out) ld.so'
16283: else
1.1.1.2 ! root 16284: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 16285: soname_spec='${libname}${release}${shared_ext}$major'
16286: dynamic_linker='NetBSD ld.elf_so'
16287: fi
16288: shlibpath_var=LD_LIBRARY_PATH
16289: shlibpath_overrides_runpath=yes
16290: hardcode_into_libs=yes
16291: ;;
16292:
16293: newsos6)
16294: version_type=linux
16295: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296: shlibpath_var=LD_LIBRARY_PATH
16297: shlibpath_overrides_runpath=yes
16298: ;;
16299:
1.1.1.2 ! root 16300: nto-qnx*)
1.1 root 16301: version_type=linux
16302: need_lib_prefix=no
16303: need_version=no
16304: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1.1.2 ! root 16305: dynamic_linker='QNX libc.so'
1.1 root 16306: soname_spec='${libname}${release}${shared_ext}$major'
16307: shlibpath_var=LD_LIBRARY_PATH
16308: shlibpath_overrides_runpath=yes
16309: ;;
16310:
16311: openbsd*)
1.1.1.2 ! root 16312: version_type=linux
! 16313: sys_lib_dlsearch_path_spec="/usr/lib"
1.1 root 16314: need_lib_prefix=no
1.1.1.2 ! root 16315: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 16316: case $host_os in
! 16317: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 16318: *) need_version=no ;;
! 16319: esac
! 16320: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.1 root 16321: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16322: shlibpath_var=LD_LIBRARY_PATH
16323: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16324: case $host_os in
16325: openbsd2.[89] | openbsd2.[89].*)
16326: shlibpath_overrides_runpath=no
16327: ;;
16328: *)
16329: shlibpath_overrides_runpath=yes
16330: ;;
16331: esac
16332: else
16333: shlibpath_overrides_runpath=yes
16334: fi
16335: ;;
16336:
16337: os2*)
16338: libname_spec='$name'
1.1.1.2 ! root 16339: shrext_cmds=".dll"
1.1 root 16340: need_lib_prefix=no
16341: library_names_spec='$libname${shared_ext} $libname.a'
16342: dynamic_linker='OS/2 ld.exe'
16343: shlibpath_var=LIBPATH
16344: ;;
16345:
16346: osf3* | osf4* | osf5*)
16347: version_type=osf
16348: need_lib_prefix=no
16349: need_version=no
16350: soname_spec='${libname}${release}${shared_ext}$major'
16351: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352: shlibpath_var=LD_LIBRARY_PATH
16353: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16354: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16355: ;;
16356:
1.1.1.2 ! root 16357: rdos*)
! 16358: dynamic_linker=no
1.1 root 16359: ;;
16360:
16361: solaris*)
16362: version_type=linux
16363: need_lib_prefix=no
16364: need_version=no
16365: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366: soname_spec='${libname}${release}${shared_ext}$major'
16367: shlibpath_var=LD_LIBRARY_PATH
16368: shlibpath_overrides_runpath=yes
16369: hardcode_into_libs=yes
16370: # ldd complains unless libraries are executable
16371: postinstall_cmds='chmod +x $lib'
16372: ;;
16373:
16374: sunos4*)
16375: version_type=sunos
16376: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16377: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16378: shlibpath_var=LD_LIBRARY_PATH
16379: shlibpath_overrides_runpath=yes
16380: if test "$with_gnu_ld" = yes; then
16381: need_lib_prefix=no
16382: fi
16383: need_version=yes
16384: ;;
16385:
1.1.1.2 ! root 16386: sysv4 | sysv4.3*)
1.1 root 16387: version_type=linux
16388: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389: soname_spec='${libname}${release}${shared_ext}$major'
16390: shlibpath_var=LD_LIBRARY_PATH
16391: case $host_vendor in
16392: sni)
16393: shlibpath_overrides_runpath=no
16394: need_lib_prefix=no
16395: export_dynamic_flag_spec='${wl}-Blargedynsym'
16396: runpath_var=LD_RUN_PATH
16397: ;;
16398: siemens)
16399: need_lib_prefix=no
16400: ;;
16401: motorola)
16402: need_lib_prefix=no
16403: need_version=no
16404: shlibpath_overrides_runpath=no
16405: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16406: ;;
16407: esac
16408: ;;
16409:
16410: sysv4*MP*)
16411: if test -d /usr/nec ;then
16412: version_type=linux
16413: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16414: soname_spec='$libname${shared_ext}.$major'
16415: shlibpath_var=LD_LIBRARY_PATH
16416: fi
16417: ;;
16418:
1.1.1.2 ! root 16419: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 16420: version_type=freebsd-elf
! 16421: need_lib_prefix=no
! 16422: need_version=no
! 16423: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 16424: soname_spec='${libname}${release}${shared_ext}$major'
! 16425: shlibpath_var=LD_LIBRARY_PATH
! 16426: hardcode_into_libs=yes
! 16427: if test "$with_gnu_ld" = yes; then
! 16428: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 16429: shlibpath_overrides_runpath=no
! 16430: else
! 16431: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 16432: shlibpath_overrides_runpath=yes
! 16433: case $host_os in
! 16434: sco3.2v5*)
! 16435: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 16436: ;;
! 16437: esac
! 16438: fi
! 16439: sys_lib_dlsearch_path_spec='/usr/lib'
! 16440: ;;
! 16441:
1.1 root 16442: uts4*)
16443: version_type=linux
16444: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445: soname_spec='${libname}${release}${shared_ext}$major'
16446: shlibpath_var=LD_LIBRARY_PATH
16447: ;;
16448:
16449: *)
16450: dynamic_linker=no
16451: ;;
16452: esac
1.1.1.2 ! root 16453: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 16454: echo "${ECHO_T}$dynamic_linker" >&6; }
1.1 root 16455: test "$dynamic_linker" = no && can_build_shared=no
16456:
1.1.1.2 ! root 16457: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 16458: if test "$GCC" = yes; then
! 16459: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 16460: fi
! 16461:
! 16462: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 16463: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 16464: hardcode_action_F77=
! 16465: if test -n "$hardcode_libdir_flag_spec_F77" || \
! 16466: test -n "$runpath_var_F77" || \
! 16467: test "X$hardcode_automatic_F77" = "Xyes" ; then
! 16468:
! 16469: # We can hardcode non-existant directories.
! 16470: if test "$hardcode_direct_F77" != no &&
! 16471: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 16472: # have to relink, otherwise we might link with an installed library
! 16473: # when we should be linking with a yet-to-be-installed one
! 16474: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
! 16475: test "$hardcode_minus_L_F77" != no; then
! 16476: # Linking always hardcodes the temporary library directory.
! 16477: hardcode_action_F77=relink
! 16478: else
! 16479: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 16480: hardcode_action_F77=immediate
! 16481: fi
! 16482: else
! 16483: # We cannot hardcode anything, or else we can only hardcode existing
! 16484: # directories.
! 16485: hardcode_action_F77=unsupported
! 16486: fi
! 16487: { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
! 16488: echo "${ECHO_T}$hardcode_action_F77" >&6; }
! 16489:
! 16490: if test "$hardcode_action_F77" = relink; then
! 16491: # Fast installation is not supported
! 16492: enable_fast_install=no
! 16493: elif test "$shlibpath_overrides_runpath" = yes ||
! 16494: test "$enable_shared" = no; then
! 16495: # Fast installation is not necessary
! 16496: enable_fast_install=needless
! 16497: fi
! 16498:
1.1 root 16499:
16500: # The else clause should only fire when bootstrapping the
16501: # libtool distribution, otherwise you forgot to ship ltmain.sh
16502: # with your package, and you will get complaints that there are
16503: # no rules to generate ltmain.sh.
16504: if test -f "$ltmain"; then
16505: # See if we are running on zsh, and set the options which allow our commands through
16506: # without removal of \ escapes.
16507: if test -n "${ZSH_VERSION+set}" ; then
16508: setopt NO_GLOB_SUBST
16509: fi
16510: # Now quote all the things that may contain metacharacters while being
16511: # careful not to overquote the AC_SUBSTed values. We take copies of the
16512: # variables and quote the copies for generation of the libtool script.
1.1.1.2 ! root 16513: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 16514: SED SHELL STRIP \
1.1 root 16515: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16516: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16517: deplibs_check_method reload_flag reload_cmds need_locks \
16518: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16519: lt_cv_sys_global_symbol_to_c_name_address \
16520: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16521: old_postinstall_cmds old_postuninstall_cmds \
16522: compiler_F77 \
16523: CC_F77 \
16524: LD_F77 \
16525: lt_prog_compiler_wl_F77 \
16526: lt_prog_compiler_pic_F77 \
16527: lt_prog_compiler_static_F77 \
16528: lt_prog_compiler_no_builtin_flag_F77 \
16529: export_dynamic_flag_spec_F77 \
16530: thread_safe_flag_spec_F77 \
16531: whole_archive_flag_spec_F77 \
16532: enable_shared_with_static_runtimes_F77 \
16533: old_archive_cmds_F77 \
16534: old_archive_from_new_cmds_F77 \
16535: predep_objects_F77 \
16536: postdep_objects_F77 \
16537: predeps_F77 \
16538: postdeps_F77 \
16539: compiler_lib_search_path_F77 \
16540: archive_cmds_F77 \
16541: archive_expsym_cmds_F77 \
16542: postinstall_cmds_F77 \
16543: postuninstall_cmds_F77 \
16544: old_archive_from_expsyms_cmds_F77 \
16545: allow_undefined_flag_F77 \
16546: no_undefined_flag_F77 \
16547: export_symbols_cmds_F77 \
16548: hardcode_libdir_flag_spec_F77 \
16549: hardcode_libdir_flag_spec_ld_F77 \
16550: hardcode_libdir_separator_F77 \
16551: hardcode_automatic_F77 \
16552: module_cmds_F77 \
16553: module_expsym_cmds_F77 \
16554: lt_cv_prog_compiler_c_o_F77 \
1.1.1.2 ! root 16555: fix_srcfile_path_F77 \
1.1 root 16556: exclude_expsyms_F77 \
16557: include_expsyms_F77; do
16558:
16559: case $var in
16560: old_archive_cmds_F77 | \
16561: old_archive_from_new_cmds_F77 | \
16562: archive_cmds_F77 | \
16563: archive_expsym_cmds_F77 | \
16564: module_cmds_F77 | \
16565: module_expsym_cmds_F77 | \
16566: old_archive_from_expsyms_cmds_F77 | \
16567: export_symbols_cmds_F77 | \
16568: extract_expsyms_cmds | reload_cmds | finish_cmds | \
16569: postinstall_cmds | postuninstall_cmds | \
16570: old_postinstall_cmds | old_postuninstall_cmds | \
16571: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16572: # Double-quote double-evaled strings.
16573: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16574: ;;
16575: *)
16576: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16577: ;;
16578: esac
16579: done
16580:
16581: case $lt_echo in
16582: *'\$0 --fallback-echo"')
16583: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16584: ;;
16585: esac
16586:
16587: cfgfile="$ofile"
16588:
16589: cat <<__EOF__ >> "$cfgfile"
16590: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16591:
16592: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16593:
16594: # Shell to use when invoking shell scripts.
16595: SHELL=$lt_SHELL
16596:
16597: # Whether or not to build shared libraries.
16598: build_libtool_libs=$enable_shared
16599:
16600: # Whether or not to build static libraries.
16601: build_old_libs=$enable_static
16602:
16603: # Whether or not to add -lc for building shared libraries.
16604: build_libtool_need_lc=$archive_cmds_need_lc_F77
16605:
16606: # Whether or not to disallow shared libs when runtime libs are static
16607: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16608:
16609: # Whether or not to optimize for fast installation.
16610: fast_install=$enable_fast_install
16611:
16612: # The host system.
16613: host_alias=$host_alias
16614: host=$host
1.1.1.2 ! root 16615: host_os=$host_os
! 16616:
! 16617: # The build system.
! 16618: build_alias=$build_alias
! 16619: build=$build
! 16620: build_os=$build_os
1.1 root 16621:
16622: # An echo program that does not interpret backslashes.
16623: echo=$lt_echo
16624:
16625: # The archiver.
16626: AR=$lt_AR
16627: AR_FLAGS=$lt_AR_FLAGS
16628:
16629: # A C compiler.
16630: LTCC=$lt_LTCC
16631:
1.1.1.2 ! root 16632: # LTCC compiler flags.
! 16633: LTCFLAGS=$lt_LTCFLAGS
! 16634:
1.1 root 16635: # A language-specific compiler.
16636: CC=$lt_compiler_F77
16637:
16638: # Is the compiler the GNU C compiler?
16639: with_gcc=$GCC_F77
16640:
16641: # An ERE matcher.
16642: EGREP=$lt_EGREP
16643:
16644: # The linker used to build libraries.
16645: LD=$lt_LD_F77
16646:
16647: # Whether we need hard or soft links.
16648: LN_S=$lt_LN_S
16649:
16650: # A BSD-compatible nm program.
16651: NM=$lt_NM
16652:
16653: # A symbol stripping program
1.1.1.2 ! root 16654: STRIP=$lt_STRIP
1.1 root 16655:
16656: # Used to examine libraries when file_magic_cmd begins "file"
16657: MAGIC_CMD=$MAGIC_CMD
16658:
16659: # Used on cygwin: DLL creation program.
16660: DLLTOOL="$DLLTOOL"
16661:
16662: # Used on cygwin: object dumper.
16663: OBJDUMP="$OBJDUMP"
16664:
16665: # Used on cygwin: assembler.
16666: AS="$AS"
16667:
16668: # The name of the directory that contains temporary libtool files.
16669: objdir=$objdir
16670:
16671: # How to create reloadable object files.
16672: reload_flag=$lt_reload_flag
16673: reload_cmds=$lt_reload_cmds
16674:
16675: # How to pass a linker flag through the compiler.
16676: wl=$lt_lt_prog_compiler_wl_F77
16677:
16678: # Object file suffix (normally "o").
16679: objext="$ac_objext"
16680:
16681: # Old archive suffix (normally "a").
16682: libext="$libext"
16683:
16684: # Shared library suffix (normally ".so").
1.1.1.2 ! root 16685: shrext_cmds='$shrext_cmds'
1.1 root 16686:
16687: # Executable file suffix (normally "").
16688: exeext="$exeext"
16689:
16690: # Additional compiler flags for building library objects.
16691: pic_flag=$lt_lt_prog_compiler_pic_F77
16692: pic_mode=$pic_mode
16693:
16694: # What is the maximum length of a command?
16695: max_cmd_len=$lt_cv_sys_max_cmd_len
16696:
16697: # Does compiler simultaneously support -c and -o options?
16698: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16699:
1.1.1.2 ! root 16700: # Must we lock files when doing compilation?
1.1 root 16701: need_locks=$lt_need_locks
16702:
16703: # Do we need the lib prefix for modules?
16704: need_lib_prefix=$need_lib_prefix
16705:
16706: # Do we need a version for libraries?
16707: need_version=$need_version
16708:
16709: # Whether dlopen is supported.
16710: dlopen_support=$enable_dlopen
16711:
16712: # Whether dlopen of programs is supported.
16713: dlopen_self=$enable_dlopen_self
16714:
16715: # Whether dlopen of statically linked programs is supported.
16716: dlopen_self_static=$enable_dlopen_self_static
16717:
16718: # Compiler flag to prevent dynamic linking.
16719: link_static_flag=$lt_lt_prog_compiler_static_F77
16720:
16721: # Compiler flag to turn off builtin functions.
16722: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16723:
16724: # Compiler flag to allow reflexive dlopens.
16725: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16726:
16727: # Compiler flag to generate shared objects directly from archives.
16728: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16729:
16730: # Compiler flag to generate thread-safe objects.
16731: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16732:
16733: # Library versioning type.
16734: version_type=$version_type
16735:
16736: # Format of library name prefix.
16737: libname_spec=$lt_libname_spec
16738:
16739: # List of archive names. First name is the real one, the rest are links.
16740: # The last name is the one that the linker finds with -lNAME.
16741: library_names_spec=$lt_library_names_spec
16742:
16743: # The coded name of the library, if different from the real name.
16744: soname_spec=$lt_soname_spec
16745:
16746: # Commands used to build and install an old-style archive.
16747: RANLIB=$lt_RANLIB
16748: old_archive_cmds=$lt_old_archive_cmds_F77
16749: old_postinstall_cmds=$lt_old_postinstall_cmds
16750: old_postuninstall_cmds=$lt_old_postuninstall_cmds
16751:
16752: # Create an old-style archive from a shared archive.
16753: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16754:
16755: # Create a temporary old-style archive to link instead of a shared archive.
16756: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16757:
16758: # Commands used to build and install a shared archive.
16759: archive_cmds=$lt_archive_cmds_F77
16760: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16761: postinstall_cmds=$lt_postinstall_cmds
16762: postuninstall_cmds=$lt_postuninstall_cmds
16763:
16764: # Commands used to build a loadable module (assumed same as above if empty)
16765: module_cmds=$lt_module_cmds_F77
16766: module_expsym_cmds=$lt_module_expsym_cmds_F77
16767:
16768: # Commands to strip libraries.
16769: old_striplib=$lt_old_striplib
16770: striplib=$lt_striplib
16771:
16772: # Dependencies to place before the objects being linked to create a
16773: # shared library.
16774: predep_objects=$lt_predep_objects_F77
16775:
16776: # Dependencies to place after the objects being linked to create a
16777: # shared library.
16778: postdep_objects=$lt_postdep_objects_F77
16779:
16780: # Dependencies to place before the objects being linked to create a
16781: # shared library.
16782: predeps=$lt_predeps_F77
16783:
16784: # Dependencies to place after the objects being linked to create a
16785: # shared library.
16786: postdeps=$lt_postdeps_F77
16787:
16788: # The library search path used internally by the compiler when linking
16789: # a shared library.
16790: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16791:
16792: # Method to check whether dependent libraries are shared objects.
16793: deplibs_check_method=$lt_deplibs_check_method
16794:
16795: # Command to use when deplibs_check_method == file_magic.
16796: file_magic_cmd=$lt_file_magic_cmd
16797:
16798: # Flag that allows shared libraries with undefined symbols to be built.
16799: allow_undefined_flag=$lt_allow_undefined_flag_F77
16800:
16801: # Flag that forces no undefined symbols.
16802: no_undefined_flag=$lt_no_undefined_flag_F77
16803:
16804: # Commands used to finish a libtool library installation in a directory.
16805: finish_cmds=$lt_finish_cmds
16806:
16807: # Same as above, but a single script fragment to be evaled but not shown.
16808: finish_eval=$lt_finish_eval
16809:
16810: # Take the output of nm and produce a listing of raw symbols and C names.
16811: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16812:
16813: # Transform the output of nm in a proper C declaration
16814: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16815:
16816: # Transform the output of nm in a C name address pair
16817: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16818:
16819: # This is the shared library runtime path variable.
16820: runpath_var=$runpath_var
16821:
16822: # This is the shared library path variable.
16823: shlibpath_var=$shlibpath_var
16824:
16825: # Is shlibpath searched before the hard-coded library search path?
16826: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16827:
16828: # How to hardcode a shared library path into an executable.
16829: hardcode_action=$hardcode_action_F77
16830:
16831: # Whether we should hardcode library paths into libraries.
16832: hardcode_into_libs=$hardcode_into_libs
16833:
16834: # Flag to hardcode \$libdir into a binary during linking.
16835: # This must work even if \$libdir does not exist.
16836: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16837:
16838: # If ld is used when linking, flag to hardcode \$libdir into
16839: # a binary during linking. This must work even if \$libdir does
16840: # not exist.
16841: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16842:
16843: # Whether we need a single -rpath flag with a separated argument.
16844: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16845:
16846: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16847: # resulting binary.
16848: hardcode_direct=$hardcode_direct_F77
16849:
16850: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16851: # resulting binary.
16852: hardcode_minus_L=$hardcode_minus_L_F77
16853:
16854: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16855: # the resulting binary.
16856: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16857:
16858: # Set to yes if building a shared library automatically hardcodes DIR into the library
16859: # and all subsequent libraries and executables linked against it.
16860: hardcode_automatic=$hardcode_automatic_F77
16861:
16862: # Variables whose values should be saved in libtool wrapper scripts and
16863: # restored at relink time.
16864: variables_saved_for_relink="$variables_saved_for_relink"
16865:
16866: # Whether libtool must link a program against all its dependency libraries.
16867: link_all_deplibs=$link_all_deplibs_F77
16868:
16869: # Compile-time system search path for libraries
16870: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16871:
16872: # Run-time system search path for libraries
16873: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16874:
16875: # Fix the shell variable \$srcfile for the compiler.
1.1.1.2 ! root 16876: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 16877:
16878: # Set to yes if exported symbols are required.
16879: always_export_symbols=$always_export_symbols_F77
16880:
16881: # The commands to list exported symbols.
16882: export_symbols_cmds=$lt_export_symbols_cmds_F77
16883:
16884: # The commands to extract the exported symbol list from a shared archive.
16885: extract_expsyms_cmds=$lt_extract_expsyms_cmds
16886:
16887: # Symbols that should not be listed in the preloaded symbols.
16888: exclude_expsyms=$lt_exclude_expsyms_F77
16889:
16890: # Symbols that must always be exported.
16891: include_expsyms=$lt_include_expsyms_F77
16892:
16893: # ### END LIBTOOL TAG CONFIG: $tagname
16894:
16895: __EOF__
16896:
16897:
16898: else
16899: # If there is no Makefile yet, we rely on a make rule to execute
16900: # `config.status --recheck' to rerun these tests and create the
16901: # libtool script then.
1.1.1.2 ! root 16902: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 16903: if test -f "$ltmain_in"; then
! 16904: test -f Makefile && make "$ltmain"
! 16905: fi
1.1 root 16906: fi
16907:
16908:
16909: ac_ext=c
16910: ac_cpp='$CPP $CPPFLAGS'
16911: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16914:
16915: CC="$lt_save_CC"
16916:
16917: else
16918: tagname=""
16919: fi
16920: ;;
16921:
16922: GCJ)
16923: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16924:
16925:
16926: # Source file extension for Java test sources.
16927: ac_ext=java
16928:
16929: # Object file extension for compiled Java test sources.
16930: objext=o
16931: objext_GCJ=$objext
16932:
16933: # Code to be used in simple compile tests
1.1.1.2 ! root 16934: lt_simple_compile_test_code="class foo {}"
1.1 root 16935:
16936: # Code to be used in simple link tests
1.1.1.2 ! root 16937: lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
1.1 root 16938:
16939: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16940:
16941: # If no C compiler was specified, use CC.
16942: LTCC=${LTCC-"$CC"}
16943:
1.1.1.2 ! root 16944: # If no C compiler flags were specified, use CFLAGS.
! 16945: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 16946:
1.1 root 16947: # Allow CC to be a program name with arguments.
16948: compiler=$CC
16949:
16950:
1.1.1.2 ! root 16951: # save warnings/boilerplate of simple test code
! 16952: ac_outfile=conftest.$ac_objext
! 16953: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 16954: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 16955: _lt_compiler_boilerplate=`cat conftest.err`
! 16956: $rm conftest*
! 16957:
! 16958: ac_outfile=conftest.$ac_objext
! 16959: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 16960: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 16961: _lt_linker_boilerplate=`cat conftest.err`
! 16962: $rm conftest*
! 16963:
! 16964:
1.1 root 16965: # Allow CC to be a program name with arguments.
16966: lt_save_CC="$CC"
16967: CC=${GCJ-"gcj"}
16968: compiler=$CC
16969: compiler_GCJ=$CC
1.1.1.2 ! root 16970: for cc_temp in $compiler""; do
! 16971: case $cc_temp in
! 16972: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 16973: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 16974: \-*) ;;
! 16975: *) break;;
! 16976: esac
! 16977: done
! 16978: # Return the actual command name, not our pkgsrc wrapper name because several
! 16979: # decisions are made only based on compiler names
! 16980: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 16981: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 16982:
1.1 root 16983:
16984: # GCJ did not exist at the time GCC didn't implicitly link libc in.
16985: archive_cmds_need_lc_GCJ=no
16986:
1.1.1.2 ! root 16987: old_archive_cmds_GCJ=$old_archive_cmds
! 16988:
! 16989: ## CAVEAT EMPTOR:
! 16990: ## There is no encapsulation within the following macros, do not change
! 16991: ## the running order or otherwise move them around unless you know exactly
! 16992: ## what you are doing...
1.1 root 16993:
16994: lt_prog_compiler_no_builtin_flag_GCJ=
16995:
16996: if test "$GCC" = yes; then
16997: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16998:
1.1.1.2 ! root 16999:
! 17000: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 17001: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
1.1 root 17002: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17003: echo $ECHO_N "(cached) $ECHO_C" >&6
17004: else
17005: lt_cv_prog_compiler_rtti_exceptions=no
17006: ac_outfile=conftest.$ac_objext
1.1.1.2 ! root 17007: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 17008: lt_compiler_flag="-fno-rtti -fno-exceptions"
17009: # Insert the option either (1) after the last *FLAGS variable, or
17010: # (2) before a word containing "conftest.", or (3) at the end.
17011: # Note that $ac_compile itself does not contain backslashes and begins
17012: # with a dollar sign (not a hyphen), so the echo should work correctly.
17013: # The option is referenced via a variable to avoid confusing sed.
17014: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 17015: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 17016: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17017: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 17018: (eval echo "\"\$as_me:16795: $lt_compile\"" >&5)
1.1 root 17019: (eval "$lt_compile" 2>conftest.err)
17020: ac_status=$?
17021: cat conftest.err >&5
1.1.1.2 ! root 17022: echo "$as_me:16799: \$? = $ac_status" >&5
1.1 root 17023: if (exit $ac_status) && test -s "$ac_outfile"; then
17024: # The compiler can only warn and ignore the option if not recognized
1.1.1.2 ! root 17025: # So say no if there are warnings other than the usual output.
! 17026: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 17027: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 17028: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 17029: lt_cv_prog_compiler_rtti_exceptions=yes
17030: fi
17031: fi
17032: $rm conftest*
17033:
17034: fi
1.1.1.2 ! root 17035: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 17036: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 root 17037:
17038: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17039: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17040: else
17041: :
17042: fi
17043:
17044: fi
17045:
17046: lt_prog_compiler_wl_GCJ=
17047: lt_prog_compiler_pic_GCJ=
17048: lt_prog_compiler_static_GCJ=
17049:
1.1.1.2 ! root 17050: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 17051: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.1 root 17052:
17053: if test "$GCC" = yes; then
17054: lt_prog_compiler_wl_GCJ='-Wl,'
17055: lt_prog_compiler_static_GCJ='-static'
17056:
17057: case $host_os in
17058: aix*)
17059: # All AIX code is PIC.
17060: if test "$host_cpu" = ia64; then
17061: # AIX 5 now supports IA64 processor
17062: lt_prog_compiler_static_GCJ='-Bstatic'
17063: fi
17064: ;;
17065:
17066: amigaos*)
17067: # FIXME: we need at least 68020 code to build shared libraries, but
17068: # adding the `-m68020' flag to GCC prevents building anything better,
17069: # like `-m68040'.
17070: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17071: ;;
17072:
1.1.1.2 ! root 17073: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1 root 17074: # PIC is the default for these OSes.
17075: ;;
17076:
1.1.1.2 ! root 17077: mingw* | cygwin* | pw32* | os2*)
1.1 root 17078: # This hack is so that the source file can tell whether it is being
17079: # built for inclusion in a dll (and should export symbols for example).
1.1.1.2 ! root 17080: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 17081: # (--disable-auto-import) libraries
1.1 root 17082: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17083: ;;
17084:
17085: darwin* | rhapsody*)
1.1.1.2 ! root 17086: # PIC is the default on this platform, and static linking of
! 17087: # binaries generally doesn't work
1.1 root 17088: # Common symbols not allowed in MH_DYLIB files
17089: lt_prog_compiler_pic_GCJ='-fno-common'
1.1.1.2 ! root 17090: lt_prog_compiler_static_GCJ=''
! 17091: ;;
! 17092:
! 17093: interix[3-9]*)
! 17094: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 17095: # Instead, we relocate shared libraries at runtime.
1.1 root 17096: ;;
17097:
17098: msdosdjgpp*)
17099: # Just because we use GCC doesn't mean we suddenly get shared libraries
17100: # on systems that don't support them.
17101: lt_prog_compiler_can_build_shared_GCJ=no
17102: enable_shared=no
17103: ;;
17104:
17105: sysv4*MP*)
17106: if test -d /usr/nec; then
17107: lt_prog_compiler_pic_GCJ=-Kconform_pic
17108: fi
17109: ;;
17110:
17111: hpux*)
17112: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17113: # not for PA HP-UX.
1.1.1.2 ! root 17114: case $host_cpu in
1.1 root 17115: hppa*64*|ia64*)
17116: # +Z the default
17117: ;;
17118: *)
17119: lt_prog_compiler_pic_GCJ='-fPIC'
17120: ;;
17121: esac
17122: ;;
17123:
1.1.1.2 ! root 17124: interix3*)
! 17125: # Interix 3.0-3.5 -fPIC option generates borked code.
! 17126: # (Instead, shlibs are relocated at runtime.)
! 17127: ;;
! 17128:
1.1 root 17129: *)
17130: lt_prog_compiler_pic_GCJ='-fPIC'
17131: ;;
17132: esac
17133: else
17134: # PORTME Check for flag to pass linker flags through the system compiler.
17135: case $host_os in
17136: aix*)
17137: lt_prog_compiler_wl_GCJ='-Wl,'
17138: if test "$host_cpu" = ia64; then
17139: # AIX 5 now supports IA64 processor
17140: lt_prog_compiler_static_GCJ='-Bstatic'
17141: else
17142: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17143: fi
17144: ;;
1.1.1.2 ! root 17145: darwin*)
! 17146: # PIC is the default on this platform
! 17147: # Common symbols not allowed in MH_DYLIB files
! 17148: case $cc_basename in
! 17149: xlc*)
! 17150: lt_prog_compiler_pic_GCJ='-qnocommon'
! 17151: lt_prog_compiler_wl_GCJ='-Wl,'
! 17152: ;;
! 17153: esac
! 17154: ;;
1.1 root 17155:
1.1.1.2 ! root 17156: mingw* | cygwin* | pw32* | os2*)
1.1 root 17157: # This hack is so that the source file can tell whether it is being
17158: # built for inclusion in a dll (and should export symbols for example).
17159: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17160: ;;
17161:
17162: hpux9* | hpux10* | hpux11*)
17163: lt_prog_compiler_wl_GCJ='-Wl,'
17164: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17165: # not for PA HP-UX.
1.1.1.2 ! root 17166: case $host_cpu in
1.1 root 17167: hppa*64*|ia64*)
17168: # +Z the default
17169: ;;
17170: *)
17171: lt_prog_compiler_pic_GCJ='+Z'
17172: ;;
17173: esac
17174: # Is there a better lt_prog_compiler_static that works with the bundled CC?
17175: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17176: ;;
17177:
17178: irix5* | irix6* | nonstopux*)
17179: lt_prog_compiler_wl_GCJ='-Wl,'
17180: # PIC (with -KPIC) is the default.
17181: lt_prog_compiler_static_GCJ='-non_shared'
17182: ;;
17183:
17184: newsos6)
17185: lt_prog_compiler_pic_GCJ='-KPIC'
17186: lt_prog_compiler_static_GCJ='-Bstatic'
17187: ;;
17188:
1.1.1.2 ! root 17189: linux* | k*bsd*-gnu)
! 17190: case $cc_basename in
! 17191: icc* | ecc*)
1.1 root 17192: lt_prog_compiler_wl_GCJ='-Wl,'
17193: lt_prog_compiler_pic_GCJ='-KPIC'
17194: lt_prog_compiler_static_GCJ='-static'
17195: ;;
1.1.1.2 ! root 17196: pgcc* | pgf77* | pgf90* | pgf95*)
! 17197: # Portland Group compilers (*not* the Pentium gcc compiler,
! 17198: # which looks to be a dead project)
! 17199: lt_prog_compiler_wl_GCJ='-Wl,'
! 17200: lt_prog_compiler_pic_GCJ='-fpic'
! 17201: lt_prog_compiler_static_GCJ='-Bstatic'
! 17202: ;;
! 17203: ccc*)
1.1 root 17204: lt_prog_compiler_wl_GCJ='-Wl,'
17205: # All Alpha code is PIC.
17206: lt_prog_compiler_static_GCJ='-non_shared'
17207: ;;
1.1.1.2 ! root 17208: *)
! 17209: case `$CC -V 2>&1 | sed 5q` in
! 17210: *Sun\ C*)
! 17211: # Sun C 5.9
! 17212: lt_prog_compiler_pic_GCJ='-KPIC'
! 17213: lt_prog_compiler_static_GCJ='-Bstatic'
! 17214: lt_prog_compiler_wl_GCJ='-Wl,'
! 17215: ;;
! 17216: *Sun\ F*)
! 17217: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 17218: lt_prog_compiler_pic_GCJ='-KPIC'
! 17219: lt_prog_compiler_static_GCJ='-Bstatic'
! 17220: lt_prog_compiler_wl_GCJ=''
! 17221: ;;
! 17222: esac
! 17223: ;;
1.1 root 17224: esac
17225: ;;
17226:
17227: osf3* | osf4* | osf5*)
17228: lt_prog_compiler_wl_GCJ='-Wl,'
17229: # All OSF/1 code is PIC.
17230: lt_prog_compiler_static_GCJ='-non_shared'
17231: ;;
17232:
1.1.1.2 ! root 17233: rdos*)
! 17234: lt_prog_compiler_static_GCJ='-non_shared'
1.1 root 17235: ;;
17236:
17237: solaris*)
17238: lt_prog_compiler_pic_GCJ='-KPIC'
17239: lt_prog_compiler_static_GCJ='-Bstatic'
1.1.1.2 ! root 17240: case $cc_basename in
! 17241: f77* | f90* | f95*)
! 17242: lt_prog_compiler_wl_GCJ='-Qoption ld ';;
! 17243: *)
! 17244: lt_prog_compiler_wl_GCJ='-Wl,';;
! 17245: esac
1.1 root 17246: ;;
17247:
17248: sunos4*)
17249: lt_prog_compiler_wl_GCJ='-Qoption ld '
17250: lt_prog_compiler_pic_GCJ='-PIC'
17251: lt_prog_compiler_static_GCJ='-Bstatic'
17252: ;;
17253:
1.1.1.2 ! root 17254: sysv4 | sysv4.2uw2* | sysv4.3*)
1.1 root 17255: lt_prog_compiler_wl_GCJ='-Wl,'
17256: lt_prog_compiler_pic_GCJ='-KPIC'
17257: lt_prog_compiler_static_GCJ='-Bstatic'
17258: ;;
17259:
17260: sysv4*MP*)
17261: if test -d /usr/nec ;then
17262: lt_prog_compiler_pic_GCJ='-Kconform_pic'
17263: lt_prog_compiler_static_GCJ='-Bstatic'
17264: fi
17265: ;;
17266:
1.1.1.2 ! root 17267: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 17268: lt_prog_compiler_wl_GCJ='-Wl,'
! 17269: lt_prog_compiler_pic_GCJ='-KPIC'
! 17270: lt_prog_compiler_static_GCJ='-Bstatic'
! 17271: ;;
! 17272:
! 17273: unicos*)
! 17274: lt_prog_compiler_wl_GCJ='-Wl,'
! 17275: lt_prog_compiler_can_build_shared_GCJ=no
! 17276: ;;
! 17277:
1.1 root 17278: uts4*)
17279: lt_prog_compiler_pic_GCJ='-pic'
17280: lt_prog_compiler_static_GCJ='-Bstatic'
17281: ;;
17282:
1.1.1.2 ! root 17283: nto-qnx*)
! 17284: lt_prog_compiler_pic_GCJ='-fPIC'
! 17285: ;;
! 17286:
1.1 root 17287: *)
17288: lt_prog_compiler_can_build_shared_GCJ=no
17289: ;;
17290: esac
17291: fi
17292:
1.1.1.2 ! root 17293: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
! 17294: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
1.1 root 17295:
17296: #
17297: # Check to make sure the PIC flag actually works.
17298: #
17299: if test -n "$lt_prog_compiler_pic_GCJ"; then
1.1.1.2 ! root 17300:
! 17301: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
! 17302: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
1.1 root 17303: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17304: echo $ECHO_N "(cached) $ECHO_C" >&6
17305: else
17306: lt_prog_compiler_pic_works_GCJ=no
17307: ac_outfile=conftest.$ac_objext
1.1.1.2 ! root 17308: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 17309: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17310: # Insert the option either (1) after the last *FLAGS variable, or
17311: # (2) before a word containing "conftest.", or (3) at the end.
17312: # Note that $ac_compile itself does not contain backslashes and begins
17313: # with a dollar sign (not a hyphen), so the echo should work correctly.
17314: # The option is referenced via a variable to avoid confusing sed.
17315: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 17316: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 17317: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17318: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 17319: (eval echo "\"\$as_me:17085: $lt_compile\"" >&5)
1.1 root 17320: (eval "$lt_compile" 2>conftest.err)
17321: ac_status=$?
17322: cat conftest.err >&5
1.1.1.2 ! root 17323: echo "$as_me:17089: \$? = $ac_status" >&5
1.1 root 17324: if (exit $ac_status) && test -s "$ac_outfile"; then
17325: # The compiler can only warn and ignore the option if not recognized
1.1.1.2 ! root 17326: # So say no if there are warnings other than the usual output.
! 17327: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
! 17328: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 17329: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.1 root 17330: lt_prog_compiler_pic_works_GCJ=yes
17331: fi
17332: fi
17333: $rm conftest*
17334:
17335: fi
1.1.1.2 ! root 17336: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
! 17337: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
1.1 root 17338:
17339: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17340: case $lt_prog_compiler_pic_GCJ in
17341: "" | " "*) ;;
17342: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17343: esac
17344: else
17345: lt_prog_compiler_pic_GCJ=
17346: lt_prog_compiler_can_build_shared_GCJ=no
17347: fi
17348:
17349: fi
1.1.1.2 ! root 17350: case $host_os in
1.1 root 17351: # For platforms which do not support PIC, -DPIC is meaningless:
17352: *djgpp*)
17353: lt_prog_compiler_pic_GCJ=
17354: ;;
17355: *)
17356: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17357: ;;
17358: esac
17359:
1.1.1.2 ! root 17360: #
! 17361: # Check to make sure the static flag actually works.
! 17362: #
! 17363: wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
! 17364: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 17365: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
! 17366: if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
! 17367: echo $ECHO_N "(cached) $ECHO_C" >&6
! 17368: else
! 17369: lt_prog_compiler_static_works_GCJ=no
! 17370: save_LDFLAGS="$LDFLAGS"
! 17371: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 17372: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 17373: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 17374: # The linker can only warn and ignore the option if not recognized
! 17375: # So say no if there are warnings
! 17376: if test -s conftest.err; then
! 17377: # Append any errors to the config.log.
! 17378: cat conftest.err 1>&5
! 17379: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
! 17380: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 17381: if diff conftest.exp conftest.er2 >/dev/null; then
! 17382: lt_prog_compiler_static_works_GCJ=yes
! 17383: fi
! 17384: else
! 17385: lt_prog_compiler_static_works_GCJ=yes
! 17386: fi
! 17387: fi
! 17388: $rm conftest*
! 17389: LDFLAGS="$save_LDFLAGS"
! 17390:
! 17391: fi
! 17392: { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
! 17393: echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
! 17394:
! 17395: if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
! 17396: :
! 17397: else
! 17398: lt_prog_compiler_static_GCJ=
! 17399: fi
! 17400:
! 17401:
! 17402: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 17403: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
1.1 root 17404: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17405: echo $ECHO_N "(cached) $ECHO_C" >&6
17406: else
17407: lt_cv_prog_compiler_c_o_GCJ=no
17408: $rm -r conftest 2>/dev/null
17409: mkdir conftest
17410: cd conftest
17411: mkdir out
1.1.1.2 ! root 17412: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.1 root 17413:
17414: lt_compiler_flag="-o out/conftest2.$ac_objext"
17415: # Insert the option either (1) after the last *FLAGS variable, or
17416: # (2) before a word containing "conftest.", or (3) at the end.
17417: # Note that $ac_compile itself does not contain backslashes and begins
17418: # with a dollar sign (not a hyphen), so the echo should work correctly.
17419: lt_compile=`echo "$ac_compile" | $SED \
1.1.1.2 ! root 17420: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.1 root 17421: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17422: -e 's:$: $lt_compiler_flag:'`
1.1.1.2 ! root 17423: (eval echo "\"\$as_me:17189: $lt_compile\"" >&5)
1.1 root 17424: (eval "$lt_compile" 2>out/conftest.err)
17425: ac_status=$?
17426: cat out/conftest.err >&5
1.1.1.2 ! root 17427: echo "$as_me:17193: \$? = $ac_status" >&5
1.1 root 17428: if (exit $ac_status) && test -s out/conftest2.$ac_objext
17429: then
17430: # The compiler can only warn and ignore the option if not recognized
17431: # So say no if there are warnings
1.1.1.2 ! root 17432: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
! 17433: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
! 17434: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.1 root 17435: lt_cv_prog_compiler_c_o_GCJ=yes
17436: fi
17437: fi
1.1.1.2 ! root 17438: chmod u+w . 2>&5
! 17439: $rm conftest*
! 17440: # SGI C++ compiler will create directory out/ii_files/ for
! 17441: # template instantiation
! 17442: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
! 17443: $rm out/* && rmdir out
1.1 root 17444: cd ..
17445: rmdir conftest
17446: $rm conftest*
17447:
17448: fi
1.1.1.2 ! root 17449: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
! 17450: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
1.1 root 17451:
17452:
17453: hard_links="nottested"
17454: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17455: # do not overwrite the value of need_locks provided by the user
1.1.1.2 ! root 17456: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 17457: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
1.1 root 17458: hard_links=yes
17459: $rm conftest*
17460: ln conftest.a conftest.b 2>/dev/null && hard_links=no
17461: touch conftest.a
17462: ln conftest.a conftest.b 2>&5 || hard_links=no
17463: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.1.1.2 ! root 17464: { echo "$as_me:$LINENO: result: $hard_links" >&5
! 17465: echo "${ECHO_T}$hard_links" >&6; }
1.1 root 17466: if test "$hard_links" = no; then
17467: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17468: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17469: need_locks=warn
17470: fi
17471: else
17472: need_locks=no
17473: fi
17474:
1.1.1.2 ! root 17475: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 17476: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.1 root 17477:
17478: runpath_var=
17479: allow_undefined_flag_GCJ=
17480: enable_shared_with_static_runtimes_GCJ=no
17481: archive_cmds_GCJ=
17482: archive_expsym_cmds_GCJ=
17483: old_archive_From_new_cmds_GCJ=
17484: old_archive_from_expsyms_cmds_GCJ=
17485: export_dynamic_flag_spec_GCJ=
17486: whole_archive_flag_spec_GCJ=
17487: thread_safe_flag_spec_GCJ=
17488: hardcode_libdir_flag_spec_GCJ=
17489: hardcode_libdir_flag_spec_ld_GCJ=
17490: hardcode_libdir_separator_GCJ=
17491: hardcode_direct_GCJ=no
17492: hardcode_minus_L_GCJ=no
17493: hardcode_shlibpath_var_GCJ=unsupported
17494: link_all_deplibs_GCJ=unknown
17495: hardcode_automatic_GCJ=no
17496: module_cmds_GCJ=
17497: module_expsym_cmds_GCJ=
17498: always_export_symbols_GCJ=no
17499: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17500: # include_expsyms should be a list of space-separated symbols to be *always*
17501: # included in the symbol list
17502: include_expsyms_GCJ=
17503: # exclude_expsyms can be an extended regexp of symbols to exclude
17504: # it will be wrapped by ` (' and `)$', so one must not match beginning or
17505: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17506: # as well as any symbol that contains `d'.
17507: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17508: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17509: # platforms (ab)use it in PIC code, but their linkers get confused if
17510: # the symbol is explicitly referenced. Since portable code cannot
17511: # rely on this symbol name, it's probably fine to never include it in
17512: # preloaded symbol tables.
17513: extract_expsyms_cmds=
1.1.1.2 ! root 17514: # Just being paranoid about ensuring that cc_basename is set.
! 17515: for cc_temp in $compiler""; do
! 17516: case $cc_temp in
! 17517: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 17518: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 17519: \-*) ;;
! 17520: *) break;;
! 17521: esac
! 17522: done
! 17523: # Return the actual command name, not our pkgsrc wrapper name because several
! 17524: # decisions are made only based on compiler names
! 17525: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 17526: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.1 root 17527:
17528: case $host_os in
17529: cygwin* | mingw* | pw32*)
17530: # FIXME: the MSVC++ port hasn't been tested in a loooong time
17531: # When not using gcc, we currently assume that we are using
17532: # Microsoft Visual C++.
17533: if test "$GCC" != yes; then
17534: with_gnu_ld=no
17535: fi
17536: ;;
1.1.1.2 ! root 17537: interix*)
! 17538: # we just hope/assume this is gcc and not c89 (= MSVC++)
! 17539: with_gnu_ld=yes
! 17540: ;;
1.1 root 17541: openbsd*)
17542: with_gnu_ld=no
17543: ;;
17544: esac
17545:
17546: ld_shlibs_GCJ=yes
17547: if test "$with_gnu_ld" = yes; then
17548: # If archive_cmds runs LD, not CC, wlarc should be empty
17549: wlarc='${wl}'
17550:
1.1.1.2 ! root 17551: # Set some defaults for GNU ld with shared library support. These
! 17552: # are reset later if shared libraries are not supported. Putting them
! 17553: # here allows them to be overridden if necessary.
! 17554: runpath_var=LD_RUN_PATH
! 17555: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
! 17556: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
! 17557: # ancient GNU ld didn't support --whole-archive et. al.
! 17558: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 17559: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 17560: else
! 17561: whole_archive_flag_spec_GCJ=
! 17562: fi
! 17563: supports_anon_versioning=no
! 17564: case `$LD -v 2>/dev/null` in
! 17565: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 17566: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 17567: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 17568: *\ 2.11.*) ;; # other 2.11 versions
! 17569: *) supports_anon_versioning=yes ;;
! 17570: esac
! 17571:
1.1 root 17572: # See if GNU ld supports shared libraries.
17573: case $host_os in
17574: aix3* | aix4* | aix5*)
17575: # On AIX/PPC, the GNU linker is very broken
17576: if test "$host_cpu" != ia64; then
17577: ld_shlibs_GCJ=no
17578: cat <<EOF 1>&2
17579:
17580: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17581: *** to be unable to reliably create shared libraries on AIX.
17582: *** Therefore, libtool is disabling shared libraries support. If you
17583: *** really care for shared libraries, you may want to modify your PATH
17584: *** so that a non-GNU linker is found, and then restart.
17585:
17586: EOF
17587: fi
17588: ;;
17589:
17590: amigaos*)
17591: 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)'
17592: hardcode_libdir_flag_spec_GCJ='-L$libdir'
17593: hardcode_minus_L_GCJ=yes
17594:
17595: # Samuel A. Falvo II <[email protected]> reports
17596: # that the semantics of dynamic libraries on AmigaOS, at least up
17597: # to version 4, is to share data among multiple programs linked
17598: # with the same dynamic library. Since this doesn't match the
17599: # behavior of shared libraries on other platforms, we can't use
17600: # them.
17601: ld_shlibs_GCJ=no
17602: ;;
17603:
17604: beos*)
17605: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17606: allow_undefined_flag_GCJ=unsupported
17607: # Joseph Beckenbach <[email protected]> says some releases of gcc
17608: # support --undefined. This deserves some investigation. FIXME
17609: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17610: else
17611: ld_shlibs_GCJ=no
17612: fi
17613: ;;
17614:
17615: cygwin* | mingw* | pw32*)
17616: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17617: # as there is no search path for DLLs.
17618: hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619: allow_undefined_flag_GCJ=unsupported
17620: always_export_symbols_GCJ=no
17621: enable_shared_with_static_runtimes_GCJ=yes
1.1.1.2 ! root 17622: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.1 root 17623:
17624: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.1.1.2 ! root 17625: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 17626: # If the export-symbols file already is a .def file (1st line
17627: # is EXPORTS), use it as is; otherwise, prepend...
17628: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17629: cp $export_symbols $output_objdir/$soname.def;
17630: else
17631: echo EXPORTS > $output_objdir/$soname.def;
17632: cat $export_symbols >> $output_objdir/$soname.def;
17633: fi~
1.1.1.2 ! root 17634: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.1 root 17635: else
1.1.1.2 ! root 17636: ld_shlibs_GCJ=no
! 17637: fi
! 17638: ;;
! 17639:
! 17640: interix[3-9]*)
! 17641: hardcode_direct_GCJ=no
! 17642: hardcode_shlibpath_var_GCJ=no
! 17643: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 17644: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17645: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
! 17646: # Instead, shared libraries are loaded at an image base (0x10000000 by
! 17647: # default) and relocated if they conflict, which is a slow very memory
! 17648: # consuming and fragmenting process. To avoid this, we pick a random,
! 17649: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
! 17650: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
! 17651: 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'
! 17652: 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'
! 17653: ;;
! 17654:
! 17655: gnu* | linux* | k*bsd*-gnu)
! 17656: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 17657: tmp_addflag=
! 17658: case $cc_basename,$host_cpu in
! 17659: pgcc*) # Portland Group C compiler
! 17660: 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'
! 17661: tmp_addflag=' $pic_flag'
! 17662: ;;
! 17663: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
! 17664: 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'
! 17665: tmp_addflag=' $pic_flag -Mnomain' ;;
! 17666: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
! 17667: tmp_addflag=' -i_dynamic' ;;
! 17668: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
! 17669: tmp_addflag=' -i_dynamic -nofor_main' ;;
! 17670: ifc* | ifort*) # Intel Fortran compiler
! 17671: tmp_addflag=' -nofor_main' ;;
! 17672: esac
! 17673: case `$CC -V 2>&1 | sed 5q` in
! 17674: *Sun\ C*) # Sun C 5.9
! 17675: whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
! 17676: tmp_sharedflag='-G' ;;
! 17677: *Sun\ F*) # Sun Fortran 8.3
! 17678: tmp_sharedflag='-G' ;;
! 17679: *)
! 17680: tmp_sharedflag='-shared' ;;
! 17681: esac
! 17682: archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 17683:
! 17684: if test $supports_anon_versioning = yes; then
! 17685: archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
! 17686: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 17687: $echo "local: *; };" >> $output_objdir/$libname.ver~
! 17688: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 17689: fi
! 17690: else
! 17691: ld_shlibs_GCJ=no
1.1 root 17692: fi
17693: ;;
17694:
1.1.1.2 ! root 17695: interix3*)
! 17696: # Oy, what a hack.
! 17697: # Because shlibs are not compiled -fPIC due to broken code, we must
! 17698: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 17699: # all libraries, leading to runtime relocations -- slow and very
! 17700: # memory consuming. To do this, we pick a random 256KB-aligned
! 17701: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 17702: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 17703: archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname.exp ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 17704: ;;
! 17705:
1.1 root 17706: netbsd*)
17707: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17708: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17709: wlarc=
17710: else
17711: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17712: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17713: fi
17714: ;;
17715:
1.1.1.2 ! root 17716: solaris*)
1.1 root 17717: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17718: ld_shlibs_GCJ=no
17719: cat <<EOF 1>&2
17720:
17721: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17722: *** create shared libraries on Solaris systems. Therefore, libtool
17723: *** is disabling shared libraries support. We urge you to upgrade GNU
17724: *** binutils to release 2.9.1 or newer. Another option is to modify
17725: *** your PATH or compiler configuration so that the native linker is
17726: *** used, and then restart.
17727:
17728: EOF
17729: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17730: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17731: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17732: else
17733: ld_shlibs_GCJ=no
17734: fi
17735: ;;
17736:
1.1.1.2 ! root 17737: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
! 17738: case `$LD -v 2>&1` in
! 17739: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
! 17740: ld_shlibs_GCJ=no
! 17741: cat <<_LT_EOF 1>&2
! 17742:
! 17743: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
! 17744: *** reliably create shared libraries on SCO systems. Therefore, libtool
! 17745: *** is disabling shared libraries support. We urge you to upgrade GNU
! 17746: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
! 17747: *** your PATH or compiler configuration so that the native linker is
! 17748: *** used, and then restart.
! 17749:
! 17750: _LT_EOF
! 17751: ;;
! 17752: *)
! 17753: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 17754: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
! 17755: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
! 17756: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
! 17757: else
! 17758: ld_shlibs_GCJ=no
! 17759: fi
! 17760: ;;
! 17761: esac
! 17762: ;;
! 17763:
! 17764: sunos4*)
! 17765: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.1 root 17766: wlarc=
17767: hardcode_direct_GCJ=yes
17768: hardcode_shlibpath_var_GCJ=no
17769: ;;
17770:
1.1.1.2 ! root 17771: nto-qnx*)
! 17772: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 17773: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 17774: ;;
! 17775:
1.1 root 17776: *)
17777: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17778: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17779: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17780: else
17781: ld_shlibs_GCJ=no
17782: fi
17783: ;;
17784: esac
17785:
1.1.1.2 ! root 17786: if test "$ld_shlibs_GCJ" = no; then
! 17787: runpath_var=
! 17788: hardcode_libdir_flag_spec_GCJ=
! 17789: export_dynamic_flag_spec_GCJ=
! 17790: whole_archive_flag_spec_GCJ=
1.1 root 17791: fi
17792: else
17793: # PORTME fill in a description of your system's linker (not GNU ld)
17794: case $host_os in
17795: aix3*)
17796: allow_undefined_flag_GCJ=unsupported
17797: always_export_symbols_GCJ=yes
17798: 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'
17799: # Note: this linker hardcodes the directories in LIBPATH if there
17800: # are no directories specified by -L.
17801: hardcode_minus_L_GCJ=yes
1.1.1.2 ! root 17802: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.1 root 17803: # Neither direct hardcoding nor static linking is supported with a
17804: # broken collect2.
17805: hardcode_direct_GCJ=unsupported
17806: fi
17807: ;;
17808:
17809: aix4* | aix5*)
17810: if test "$host_cpu" = ia64; then
17811: # On IA64, the linker does run time linking by default, so we don't
17812: # have to do anything special.
17813: aix_use_runtimelinking=no
17814: exp_sym_flag='-Bexport'
17815: no_entry_flag=""
17816: else
17817: # If we're using GNU nm, then we don't want the "-C" option.
17818: # -C means demangle to AIX nm, but means don't demangle with GNU nm
17819: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17820: 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'
17821: else
17822: 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'
17823: fi
17824: aix_use_runtimelinking=no
17825:
17826: # Test if we are trying to use run time linking or normal
17827: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17828: # need to do runtime linking.
17829: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17830: for ld_flag in $LDFLAGS; do
17831: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17832: aix_use_runtimelinking=yes
17833: break
17834: fi
17835: done
1.1.1.2 ! root 17836: ;;
1.1 root 17837: esac
17838:
17839: exp_sym_flag='-bexport'
17840: no_entry_flag='-bnoentry'
17841: fi
17842:
17843: # When large executables or shared objects are built, AIX ld can
17844: # have problems creating the table of contents. If linking a library
17845: # or program results in "error TOC overflow" add -mminimal-toc to
17846: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17847: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17848:
17849: archive_cmds_GCJ=''
17850: hardcode_direct_GCJ=yes
17851: hardcode_libdir_separator_GCJ=':'
17852: link_all_deplibs_GCJ=yes
17853:
17854: if test "$GCC" = yes; then
1.1.1.2 ! root 17855: case $host_os in aix4.[012]|aix4.[012].*)
1.1 root 17856: # We only want to do this on AIX 4.2 and lower, the check
17857: # below for broken collect2 doesn't work under 4.3+
17858: collect2name=`${CC} -print-prog-name=collect2`
17859: if test -f "$collect2name" && \
17860: strings "$collect2name" | grep resolve_lib_name >/dev/null
17861: then
17862: # We have reworked collect2
1.1.1.2 ! root 17863: :
1.1 root 17864: else
17865: # We have old collect2
17866: hardcode_direct_GCJ=unsupported
17867: # It fails to find uninstalled libraries when the uninstalled
17868: # path is not listed in the libpath. Setting hardcode_minus_L
17869: # to unsupported forces relinking
17870: hardcode_minus_L_GCJ=yes
17871: hardcode_libdir_flag_spec_GCJ='-L$libdir'
17872: hardcode_libdir_separator_GCJ=
17873: fi
1.1.1.2 ! root 17874: ;;
1.1 root 17875: esac
17876: shared_flag='-shared'
1.1.1.2 ! root 17877: if test "$aix_use_runtimelinking" = yes; then
! 17878: shared_flag="$shared_flag "'${wl}-G'
! 17879: fi
1.1 root 17880: else
17881: # not using gcc
17882: if test "$host_cpu" = ia64; then
17883: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17884: # chokes on -Wl,-G. The following line is correct:
17885: shared_flag='-G'
17886: else
1.1.1.2 ! root 17887: if test "$aix_use_runtimelinking" = yes; then
1.1 root 17888: shared_flag='${wl}-G'
17889: else
17890: shared_flag='${wl}-bM:SRE'
1.1.1.2 ! root 17891: fi
1.1 root 17892: fi
17893: fi
17894:
17895: # It seems that -bexpall does not export symbols beginning with
17896: # underscore (_), so it is better to generate a list of symbols to export.
17897: always_export_symbols_GCJ=yes
17898: if test "$aix_use_runtimelinking" = yes; then
17899: # Warning - without using the other runtime loading flags (-brtl),
17900: # -berok will link without error, but may produce a broken library.
17901: allow_undefined_flag_GCJ='-berok'
17902: # Determine the default libpath from the value encoded in an empty executable.
17903: cat >conftest.$ac_ext <<_ACEOF
17904: /* confdefs.h. */
17905: _ACEOF
17906: cat confdefs.h >>conftest.$ac_ext
17907: cat >>conftest.$ac_ext <<_ACEOF
17908: /* end confdefs.h. */
17909:
17910: int
17911: main ()
17912: {
17913:
17914: ;
17915: return 0;
17916: }
17917: _ACEOF
17918: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 17919: if { (ac_try="$ac_link"
! 17920: case "(($ac_try" in
! 17921: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17922: *) ac_try_echo=$ac_try;;
! 17923: esac
! 17924: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17925: (eval "$ac_link") 2>conftest.er1
1.1 root 17926: ac_status=$?
1.1.1.2 ! root 17927: grep -v '^ *+' conftest.er1 >conftest.err
! 17928: rm -f conftest.er1
! 17929: cat conftest.err >&5
1.1 root 17930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 17931: (exit $ac_status); } && {
! 17932: test -z "$ac_c_werror_flag" ||
! 17933: test ! -s conftest.err
! 17934: } && test -s conftest$ac_exeext &&
! 17935: $as_test_x conftest$ac_exeext; then
! 17936:
! 17937: lt_aix_libpath_sed='
! 17938: /Import File Strings/,/^$/ {
! 17939: /^0/ {
! 17940: s/^0 *\(.*\)$/\1/
! 17941: p
! 17942: }
! 17943: }'
! 17944: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 17945: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 17946: if test -z "$aix_libpath"; then
! 17947: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 17948: fi
1.1 root 17949: else
17950: echo "$as_me: failed program was:" >&5
17951: sed 's/^/| /' conftest.$ac_ext >&5
17952:
1.1.1.2 ! root 17953:
1.1 root 17954: fi
1.1.1.2 ! root 17955:
! 17956: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 17957: conftest$ac_exeext conftest.$ac_ext
1.1 root 17958: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17959:
17960: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1.1.1.2 ! root 17961: 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"
1.1 root 17962: else
17963: if test "$host_cpu" = ia64; then
17964: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17965: allow_undefined_flag_GCJ="-z nodefs"
1.1.1.2 ! root 17966: 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"
1.1 root 17967: else
17968: # Determine the default libpath from the value encoded in an empty executable.
17969: cat >conftest.$ac_ext <<_ACEOF
17970: /* confdefs.h. */
17971: _ACEOF
17972: cat confdefs.h >>conftest.$ac_ext
17973: cat >>conftest.$ac_ext <<_ACEOF
17974: /* end confdefs.h. */
17975:
17976: int
17977: main ()
17978: {
17979:
17980: ;
17981: return 0;
17982: }
17983: _ACEOF
17984: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 17985: if { (ac_try="$ac_link"
! 17986: case "(($ac_try" in
! 17987: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 17988: *) ac_try_echo=$ac_try;;
! 17989: esac
! 17990: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 17991: (eval "$ac_link") 2>conftest.er1
1.1 root 17992: ac_status=$?
1.1.1.2 ! root 17993: grep -v '^ *+' conftest.er1 >conftest.err
! 17994: rm -f conftest.er1
! 17995: cat conftest.err >&5
1.1 root 17996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 17997: (exit $ac_status); } && {
! 17998: test -z "$ac_c_werror_flag" ||
! 17999: test ! -s conftest.err
! 18000: } && test -s conftest$ac_exeext &&
! 18001: $as_test_x conftest$ac_exeext; then
! 18002:
! 18003: lt_aix_libpath_sed='
! 18004: /Import File Strings/,/^$/ {
! 18005: /^0/ {
! 18006: s/^0 *\(.*\)$/\1/
! 18007: p
! 18008: }
! 18009: }'
! 18010: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 root 18011: # Check for a 64-bit object if we didn't find anything.
1.1.1.2 ! root 18012: if test -z "$aix_libpath"; then
! 18013: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
! 18014: fi
1.1 root 18015: else
18016: echo "$as_me: failed program was:" >&5
18017: sed 's/^/| /' conftest.$ac_ext >&5
18018:
1.1.1.2 ! root 18019:
1.1 root 18020: fi
1.1.1.2 ! root 18021:
! 18022: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 18023: conftest$ac_exeext conftest.$ac_ext
1.1 root 18024: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18025:
18026: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18027: # Warning - without using the other run time loading flags,
18028: # -berok will link without error, but may produce a broken library.
18029: no_undefined_flag_GCJ=' ${wl}-bernotok'
18030: allow_undefined_flag_GCJ=' ${wl}-berok'
18031: # Exported symbols can be pulled into shared objects from archives
1.1.1.2 ! root 18032: whole_archive_flag_spec_GCJ='$convenience'
1.1 root 18033: archive_cmds_need_lc_GCJ=yes
1.1.1.2 ! root 18034: # This is similar to how AIX traditionally builds its shared libraries.
! 18035: 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'
1.1 root 18036: fi
18037: fi
18038: ;;
18039:
18040: amigaos*)
18041: 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)'
18042: hardcode_libdir_flag_spec_GCJ='-L$libdir'
18043: hardcode_minus_L_GCJ=yes
18044: # see comment about different semantics on the GNU ld section
18045: ld_shlibs_GCJ=no
18046: ;;
18047:
1.1.1.2 ! root 18048: bsdi[45]*)
1.1 root 18049: export_dynamic_flag_spec_GCJ=-rdynamic
18050: ;;
18051:
18052: cygwin* | mingw* | pw32*)
18053: # When not using gcc, we currently assume that we are using
18054: # Microsoft Visual C++.
18055: # hardcode_libdir_flag_spec is actually meaningless, as there is
18056: # no search path for DLLs.
18057: hardcode_libdir_flag_spec_GCJ=' '
18058: allow_undefined_flag_GCJ=unsupported
18059: # Tell ltmain to make .lib files, not .a files.
18060: libext=lib
18061: # Tell ltmain to make .dll files, not .so files.
1.1.1.2 ! root 18062: shrext_cmds=".dll"
1.1 root 18063: # FIXME: Setting linknames here is a bad hack.
18064: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18065: # The linker will automatically build a .lib file if we build a DLL.
18066: old_archive_From_new_cmds_GCJ='true'
18067: # FIXME: Should let the user specify the lib program.
1.1.1.2 ! root 18068: old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
! 18069: fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
1.1 root 18070: enable_shared_with_static_runtimes_GCJ=yes
18071: ;;
18072:
18073: darwin* | rhapsody*)
1.1.1.2 ! root 18074: case $host_os in
! 18075: rhapsody* | darwin1.[012])
! 18076: allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
! 18077: ;;
! 18078: *) # Darwin 1.3 on
! 18079: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
! 18080: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 18081: else
! 18082: case ${MACOSX_DEPLOYMENT_TARGET} in
! 18083: 10.[012])
! 18084: allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 18085: ;;
! 18086: 10.*)
! 18087: allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
! 18088: ;;
! 18089: esac
! 18090: fi
! 18091: ;;
1.1 root 18092: esac
1.1.1.2 ! root 18093: archive_cmds_need_lc_GCJ=no
1.1 root 18094: hardcode_direct_GCJ=no
18095: hardcode_automatic_GCJ=yes
18096: hardcode_shlibpath_var_GCJ=unsupported
1.1.1.2 ! root 18097: whole_archive_flag_spec_GCJ=''
1.1 root 18098: link_all_deplibs_GCJ=yes
1.1.1.2 ! root 18099: if test "$GCC" = yes ; then
! 18100: output_verbose_link_cmd='echo'
! 18101: archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 18102: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 18103: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 18104: 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}'
! 18105: 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}'
! 18106: else
! 18107: case $cc_basename in
! 18108: xlc*)
! 18109: output_verbose_link_cmd='echo'
! 18110: archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
! 18111: module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 18112: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
! 18113: 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 18114: 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}'
! 18115: ;;
! 18116: *)
! 18117: ld_shlibs_GCJ=no
! 18118: ;;
! 18119: esac
1.1 root 18120: fi
18121: ;;
18122:
18123: dgux*)
18124: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18125: hardcode_libdir_flag_spec_GCJ='-L$libdir'
18126: hardcode_shlibpath_var_GCJ=no
18127: ;;
18128:
18129: freebsd1*)
18130: ld_shlibs_GCJ=no
18131: ;;
18132:
18133: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18134: # support. Future versions do this automatically, but an explicit c++rt0.o
18135: # does not break anything, and helps significantly (at the cost of a little
18136: # extra space).
18137: freebsd2.2*)
18138: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18139: hardcode_libdir_flag_spec_GCJ='-R$libdir'
18140: hardcode_direct_GCJ=yes
18141: hardcode_shlibpath_var_GCJ=no
18142: ;;
18143:
18144: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18145: freebsd2*)
18146: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18147: hardcode_direct_GCJ=yes
18148: hardcode_minus_L_GCJ=yes
18149: hardcode_shlibpath_var_GCJ=no
18150: ;;
18151:
18152: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.1.1.2 ! root 18153: freebsd* | dragonfly*)
1.1 root 18154: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18155: hardcode_libdir_flag_spec_GCJ='-R$libdir'
18156: hardcode_direct_GCJ=yes
18157: hardcode_shlibpath_var_GCJ=no
18158: ;;
18159:
18160: hpux9*)
18161: if test "$GCC" = yes; then
18162: 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'
18163: else
18164: 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'
18165: fi
18166: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18167: hardcode_libdir_separator_GCJ=:
18168: hardcode_direct_GCJ=yes
18169:
18170: # hardcode_minus_L: Not really in the search PATH,
18171: # but as the default location of the library.
18172: hardcode_minus_L_GCJ=yes
18173: export_dynamic_flag_spec_GCJ='${wl}-E'
18174: ;;
18175:
1.1.1.2 ! root 18176: hpux10*)
1.1 root 18177: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.1.1.2 ! root 18178: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 18179: else
! 18180: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 18181: fi
! 18182: if test "$with_gnu_ld" = no; then
! 18183: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 18184: hardcode_libdir_separator_GCJ=:
! 18185:
! 18186: hardcode_direct_GCJ=yes
! 18187: export_dynamic_flag_spec_GCJ='${wl}-E'
! 18188:
! 18189: # hardcode_minus_L: Not really in the search PATH,
! 18190: # but as the default location of the library.
! 18191: hardcode_minus_L_GCJ=yes
! 18192: fi
! 18193: ;;
! 18194:
! 18195: hpux11*)
! 18196: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 18197: case $host_cpu in
! 18198: hppa*64*)
1.1 root 18199: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18200: ;;
1.1.1.2 ! root 18201: ia64*)
! 18202: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
! 18203: ;;
1.1 root 18204: *)
18205: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18206: ;;
18207: esac
18208: else
1.1.1.2 ! root 18209: case $host_cpu in
! 18210: hppa*64*)
! 18211: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18212: ;;
! 18213: ia64*)
! 18214: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 18215: ;;
18216: *)
1.1.1.2 ! root 18217: archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.1 root 18218: ;;
18219: esac
18220: fi
18221: if test "$with_gnu_ld" = no; then
1.1.1.2 ! root 18222: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 18223: hardcode_libdir_separator_GCJ=:
! 18224:
! 18225: case $host_cpu in
! 18226: hppa*64*|ia64*)
1.1 root 18227: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18228: hardcode_direct_GCJ=no
18229: hardcode_shlibpath_var_GCJ=no
18230: ;;
18231: *)
18232: hardcode_direct_GCJ=yes
18233: export_dynamic_flag_spec_GCJ='${wl}-E'
18234:
18235: # hardcode_minus_L: Not really in the search PATH,
18236: # but as the default location of the library.
18237: hardcode_minus_L_GCJ=yes
18238: ;;
18239: esac
18240: fi
18241: ;;
18242:
1.1.1.2 ! root 18243: interix3*)
! 18244: # Oy, what a hack.
! 18245: # Because shlibs are not compiled -fPIC due to broken code, we must
! 18246: # choose an --image-base. Otherwise, 0x10000000 will be chosen for
! 18247: # all libraries, leading to runtime relocations -- slow and very
! 18248: # memory consuming. To do this, we pick a random 256KB-aligned
! 18249: # start address between 0x50000000 and 0x6ffc0000 at link time.
! 18250: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 18251: archive_expsym_cmds_GCJ='sed s,^,_, $export_symbols >$output_objdir/$soname.exp && $CC -shared $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file $wl$output_objdir/$soname ${wl}--image-base,$(($RANDOM %4096/2*262144+1342177280)) -o $lib'
! 18252: export_dynamic_flag_spec_GCJ='${wl}-E'
! 18253: hardcode_direct_GCJ=yes
! 18254: hardcode_libdir_flag_spec_GCJ='${wl}-h,$libdir'
! 18255: hardcode_shlibpath_var_GCJ=no
! 18256: ;;
! 18257:
1.1 root 18258: irix5* | irix6* | nonstopux*)
18259: if test "$GCC" = yes; then
18260: 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'
18261: else
18262: 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'
18263: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18264: fi
18265: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18266: hardcode_libdir_separator_GCJ=:
18267: link_all_deplibs_GCJ=yes
18268: ;;
18269:
18270: netbsd*)
18271: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18272: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18273: else
18274: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18275: fi
18276: hardcode_libdir_flag_spec_GCJ='-R$libdir'
18277: hardcode_direct_GCJ=yes
18278: hardcode_shlibpath_var_GCJ=no
18279: ;;
18280:
18281: newsos6)
18282: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18283: hardcode_direct_GCJ=yes
18284: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18285: hardcode_libdir_separator_GCJ=:
18286: hardcode_shlibpath_var_GCJ=no
18287: ;;
18288:
18289: openbsd*)
1.1.1.2 ! root 18290: if test -f /usr/libexec/ld.so; then
! 18291: hardcode_direct_GCJ=yes
! 18292: hardcode_shlibpath_var_GCJ=no
! 18293: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 18294: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 18295: archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 18296: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 18297: export_dynamic_flag_spec_GCJ='${wl}-E'
! 18298: else
! 18299: case $host_os in
! 18300: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 18301: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 18302: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 18303: ;;
! 18304: *)
! 18305: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 18306: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 18307: ;;
! 18308: esac
! 18309: fi
1.1 root 18310: else
1.1.1.2 ! root 18311: ld_shlibs_GCJ=no
1.1 root 18312: fi
18313: ;;
18314:
18315: os2*)
18316: hardcode_libdir_flag_spec_GCJ='-L$libdir'
18317: hardcode_minus_L_GCJ=yes
18318: allow_undefined_flag_GCJ=unsupported
18319: 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'
18320: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18321: ;;
18322:
18323: osf3*)
18324: if test "$GCC" = yes; then
18325: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18326: 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'
18327: else
18328: allow_undefined_flag_GCJ=' -expect_unresolved \*'
18329: 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'
18330: fi
18331: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18332: hardcode_libdir_separator_GCJ=:
18333: ;;
18334:
18335: osf4* | osf5*) # as osf3* with the addition of -msym flag
18336: if test "$GCC" = yes; then
18337: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18338: 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'
18339: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18340: else
18341: allow_undefined_flag_GCJ=' -expect_unresolved \*'
18342: 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'
18343: 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~
1.1.1.2 ! root 18344: $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'
1.1 root 18345:
18346: # Both c and cxx compiler support -rpath directly
18347: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18348: fi
18349: hardcode_libdir_separator_GCJ=:
18350: ;;
18351:
18352: solaris*)
18353: no_undefined_flag_GCJ=' -z text'
18354: if test "$GCC" = yes; then
1.1.1.2 ! root 18355: wlarc='${wl}'
1.1 root 18356: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18357: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18358: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18359: else
1.1.1.2 ! root 18360: wlarc=''
1.1 root 18361: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18362: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18363: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18364: fi
18365: hardcode_libdir_flag_spec_GCJ='-R$libdir'
18366: hardcode_shlibpath_var_GCJ=no
18367: case $host_os in
18368: solaris2.[0-5] | solaris2.[0-5].*) ;;
1.1.1.2 ! root 18369: *)
! 18370: # The compiler driver will combine and reorder linker options,
! 18371: # but understands `-z linker_flag'. GCC discards it without `$wl',
! 18372: # but is careful enough not to reorder.
! 18373: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 18374: if test "$GCC" = yes; then
! 18375: whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 18376: else
! 18377: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
! 18378: fi
! 18379: ;;
1.1 root 18380: esac
18381: link_all_deplibs_GCJ=yes
18382: ;;
18383:
18384: sunos4*)
18385: if test "x$host_vendor" = xsequent; then
18386: # Use $CC to link under sequent, because it throws in some extra .o
18387: # files that make .init and .fini sections work.
18388: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18389: else
18390: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18391: fi
18392: hardcode_libdir_flag_spec_GCJ='-L$libdir'
18393: hardcode_direct_GCJ=yes
18394: hardcode_minus_L_GCJ=yes
18395: hardcode_shlibpath_var_GCJ=no
18396: ;;
18397:
18398: sysv4)
18399: case $host_vendor in
18400: sni)
18401: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18402: hardcode_direct_GCJ=yes # is this really true???
18403: ;;
18404: siemens)
18405: ## LD is ld it makes a PLAMLIB
18406: ## CC just makes a GrossModule.
18407: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18408: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18409: hardcode_direct_GCJ=no
18410: ;;
18411: motorola)
18412: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18413: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18414: ;;
18415: esac
18416: runpath_var='LD_RUN_PATH'
18417: hardcode_shlibpath_var_GCJ=no
1.1.1.2 ! root 18418: ;;
1.1 root 18419:
1.1.1.2 ! root 18420: sysv4.3*)
! 18421: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 18422: hardcode_shlibpath_var_GCJ=no
! 18423: export_dynamic_flag_spec_GCJ='-Bexport'
! 18424: ;;
1.1 root 18425:
1.1.1.2 ! root 18426: sysv4*MP*)
! 18427: if test -d /usr/nec; then
! 18428: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 18429: hardcode_shlibpath_var_GCJ=no
! 18430: runpath_var=LD_RUN_PATH
! 18431: hardcode_runpath_var=yes
! 18432: ld_shlibs_GCJ=yes
! 18433: fi
! 18434: ;;
1.1 root 18435:
1.1.1.2 ! root 18436: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
! 18437: no_undefined_flag_GCJ='${wl}-z,text'
! 18438: archive_cmds_need_lc_GCJ=no
! 18439: hardcode_shlibpath_var_GCJ=no
! 18440: runpath_var='LD_RUN_PATH'
1.1 root 18441:
1.1.1.2 ! root 18442: if test "$GCC" = yes; then
! 18443: archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18444: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18445: else
! 18446: archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18447: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18448: fi
! 18449: ;;
1.1 root 18450:
1.1.1.2 ! root 18451: sysv5* | sco3.2v5* | sco5v6*)
! 18452: # Note: We can NOT use -z defs as we might desire, because we do not
! 18453: # link with -lc, and that would cause any symbols used from libc to
! 18454: # always be unresolved, which means just about no library would
! 18455: # ever link correctly. If we're not using GNU ld we use -z text
! 18456: # though, which does catch some bad symbols but isn't as heavy-handed
! 18457: # as -z defs.
! 18458: no_undefined_flag_GCJ='${wl}-z,text'
! 18459: allow_undefined_flag_GCJ='${wl}-z,nodefs'
! 18460: archive_cmds_need_lc_GCJ=no
! 18461: hardcode_shlibpath_var_GCJ=no
! 18462: hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
! 18463: hardcode_libdir_separator_GCJ=':'
! 18464: link_all_deplibs_GCJ=yes
! 18465: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
! 18466: runpath_var='LD_RUN_PATH'
1.1 root 18467:
1.1.1.2 ! root 18468: if test "$GCC" = yes; then
! 18469: archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18470: archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18471: else
! 18472: archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18473: archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 18474: fi
! 18475: ;;
1.1 root 18476:
1.1.1.2 ! root 18477: uts4*)
! 18478: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 18479: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 18480: hardcode_shlibpath_var_GCJ=no
! 18481: ;;
! 18482:
! 18483: nto-qnx*)
! 18484: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
! 18485: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 18486: hardcode_direct_GCJ=yes
! 18487: hardcode_shlibpath_var_GCJ=no
! 18488: ;;
! 18489:
! 18490: *)
! 18491: ld_shlibs_GCJ=no
! 18492: ;;
! 18493: esac
! 18494: fi
! 18495:
! 18496: { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
! 18497: echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
! 18498: test "$ld_shlibs_GCJ" = no && can_build_shared=no
! 18499:
! 18500: #
! 18501: # Do we need to explicitly link libc?
! 18502: #
! 18503: case "x$archive_cmds_need_lc_GCJ" in
! 18504: x|xyes)
! 18505: # Assume -lc should be added
! 18506: archive_cmds_need_lc_GCJ=yes
! 18507:
! 18508: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 18509: case $archive_cmds_GCJ in
! 18510: *'~'*)
! 18511: # FIXME: we may have to deal with multi-command sequences.
! 18512: ;;
! 18513: '$CC '*)
! 18514: # Test whether the compiler implicitly links with -lc since on some
! 18515: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 18516: # to ld, don't add -lc before -lgcc.
! 18517: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 18518: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
! 18519: $rm conftest*
! 18520: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 18521:
! 18522: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 18523: (eval $ac_compile) 2>&5
1.1 root 18524: ac_status=$?
18525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 18526: (exit $ac_status); } 2>conftest.err; then
! 18527: soname=conftest
! 18528: lib=conftest
! 18529: libobjs=conftest.$ac_objext
! 18530: deplibs=
! 18531: wl=$lt_prog_compiler_wl_GCJ
! 18532: pic_flag=$lt_prog_compiler_pic_GCJ
! 18533: compiler_flags=-v
! 18534: linker_flags=-v
! 18535: verstring=
! 18536: output_objdir=.
! 18537: libname=conftest
! 18538: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
! 18539: allow_undefined_flag_GCJ=
! 18540: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 18541: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.1 root 18542: ac_status=$?
18543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 18544: (exit $ac_status); }
! 18545: then
! 18546: archive_cmds_need_lc_GCJ=no
! 18547: else
! 18548: archive_cmds_need_lc_GCJ=yes
! 18549: fi
! 18550: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
! 18551: else
! 18552: cat conftest.err 1>&5
! 18553: fi
! 18554: $rm conftest*
! 18555: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
! 18556: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
! 18557: ;;
! 18558: esac
! 18559: fi
! 18560: ;;
! 18561: esac
1.1 root 18562:
1.1.1.2 ! root 18563: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 18564: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
! 18565: library_names_spec=
! 18566: libname_spec='lib$name'
! 18567: soname_spec=
! 18568: shrext_cmds=".so"
! 18569: postinstall_cmds=
! 18570: postuninstall_cmds=
! 18571: finish_cmds=
! 18572: finish_eval=
! 18573: shlibpath_var=
! 18574: shlibpath_overrides_runpath=unknown
! 18575: version_type=none
! 18576: dynamic_linker="$host_os ld.so"
! 18577: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 18578:
! 18579: need_lib_prefix=unknown
! 18580: hardcode_into_libs=no
1.1 root 18581:
1.1.1.2 ! root 18582: # when you set need_version to no, make sure it does not cause -set_version
! 18583: # flags to be left without arguments
! 18584: need_version=unknown
1.1 root 18585:
1.1.1.2 ! root 18586: case $host_os in
! 18587: aix3*)
! 18588: version_type=linux
! 18589: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 18590: shlibpath_var=LIBPATH
1.1 root 18591:
1.1.1.2 ! root 18592: # AIX 3 has no versioning support, so we append a major version to the name.
! 18593: soname_spec='${libname}${release}${shared_ext}$major'
! 18594: ;;
1.1 root 18595:
1.1.1.2 ! root 18596: aix4* | aix5*)
! 18597: version_type=linux
! 18598: need_lib_prefix=no
! 18599: need_version=no
! 18600: hardcode_into_libs=yes
! 18601: if test "$host_cpu" = ia64; then
! 18602: # AIX 5 supports IA64
! 18603: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 18604: shlibpath_var=LD_LIBRARY_PATH
! 18605: else
! 18606: # With GCC up to 2.95.x, collect2 would create an import file
! 18607: # for dependence libraries. The import file would start with
! 18608: # the line `#! .'. This would cause the generated library to
! 18609: # depend on `.', always an invalid library. This was fixed in
! 18610: # development snapshots of GCC prior to 3.0.
! 18611: case $host_os in
! 18612: aix4 | aix4.[01] | aix4.[01].*)
! 18613: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 18614: echo ' yes '
! 18615: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 18616: :
! 18617: else
! 18618: can_build_shared=no
! 18619: fi
! 18620: ;;
! 18621: esac
! 18622: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 18623: # soname into executable. Probably we can add versioning support to
! 18624: # collect2, so additional links can be useful in future.
! 18625: if test "$aix_use_runtimelinking" = yes; then
! 18626: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 18627: # instead of lib<name>.a to let people know that these are not
! 18628: # typical AIX shared libraries.
! 18629: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18630: else
! 18631: # We preserve .a as extension for shared libraries through AIX4.2
! 18632: # and later when we are not doing run time linking.
! 18633: library_names_spec='${libname}${release}.a $libname.a'
! 18634: soname_spec='${libname}${release}${shared_ext}$major'
! 18635: fi
! 18636: shlibpath_var=LIBPATH
! 18637: fi
! 18638: ;;
1.1 root 18639:
1.1.1.2 ! root 18640: amigaos*)
! 18641: library_names_spec='$libname.ixlibrary $libname.a'
! 18642: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 18643: 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'
! 18644: ;;
1.1 root 18645:
1.1.1.2 ! root 18646: beos*)
! 18647: library_names_spec='${libname}${shared_ext}'
! 18648: dynamic_linker="$host_os ld.so"
! 18649: shlibpath_var=LIBRARY_PATH
! 18650: ;;
1.1 root 18651:
1.1.1.2 ! root 18652: bsdi[45]*)
! 18653: version_type=linux
! 18654: need_version=no
! 18655: need_lib_prefix=no
! 18656: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18657: soname_spec='${libname}${release}${shared_ext}$major'
! 18658: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 18659: shlibpath_var=LD_LIBRARY_PATH
! 18660: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 18661: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 18662: # the default ld.so.conf also contains /usr/contrib/lib and
! 18663: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 18664: # libtool to hard-code these into programs
! 18665: ;;
1.1 root 18666:
1.1.1.2 ! root 18667: cygwin* | mingw* | pw32*)
! 18668: version_type=windows
! 18669: shrext_cmds=".dll"
! 18670: need_version=no
! 18671: need_lib_prefix=no
1.1 root 18672:
1.1.1.2 ! root 18673: case $GCC,$host_os in
! 18674: yes,cygwin* | yes,mingw* | yes,pw32*)
! 18675: library_names_spec='$libname.dll.a'
! 18676: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 18677: postinstall_cmds='base_file=`basename \${file}`~
! 18678: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 18679: dldir=$destdir/`dirname \$dlpath`~
! 18680: test -d \$dldir || mkdir -p \$dldir~
! 18681: $install_prog $dir/$dlname \$dldir/$dlname~
! 18682: chmod a+x \$dldir/$dlname'
! 18683: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 18684: dlpath=$dir/\$dldll~
! 18685: $rm \$dlpath'
! 18686: shlibpath_overrides_runpath=yes
1.1 root 18687:
1.1.1.2 ! root 18688: case $host_os in
! 18689: cygwin*)
! 18690: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 18691: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 18692: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
! 18693: ;;
! 18694: mingw*)
! 18695: # MinGW DLLs use traditional 'lib' prefix
! 18696: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 18697: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 18698: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 18699: # It is most probably a Windows format PATH printed by
! 18700: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 18701: # path with ; separators, and with drive letters. We can handle the
! 18702: # drive letters (cygwin fileutils understands them), so leave them,
! 18703: # especially as we might pass files found there to a mingw objdump,
! 18704: # which wouldn't understand a cygwinified path. Ahh.
! 18705: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 18706: else
! 18707: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 18708: fi
! 18709: ;;
! 18710: pw32*)
! 18711: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 18712: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 18713: ;;
! 18714: esac
! 18715: ;;
1.1 root 18716:
1.1.1.2 ! root 18717: *)
! 18718: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.1 root 18719: ;;
18720: esac
1.1.1.2 ! root 18721: dynamic_linker='Win32 ld.exe'
! 18722: # FIXME: first we should search . and the directory the executable is in
! 18723: shlibpath_var=PATH
! 18724: ;;
1.1 root 18725:
1.1.1.2 ! root 18726: darwin* | rhapsody*)
! 18727: dynamic_linker="$host_os dyld"
! 18728: version_type=darwin
! 18729: need_lib_prefix=no
! 18730: need_version=no
! 18731: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 18732: soname_spec='${libname}${release}${major}$shared_ext'
! 18733: shlibpath_overrides_runpath=yes
! 18734: shlibpath_var=DYLD_LIBRARY_PATH
! 18735: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 root 18736:
1.1.1.2 ! root 18737: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 18738: ;;
1.1 root 18739:
1.1.1.2 ! root 18740: dgux*)
! 18741: version_type=linux
! 18742: need_lib_prefix=no
! 18743: need_version=no
! 18744: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 18745: soname_spec='${libname}${release}${shared_ext}$major'
! 18746: shlibpath_var=LD_LIBRARY_PATH
! 18747: ;;
1.1 root 18748:
1.1.1.2 ! root 18749: freebsd1*)
! 18750: dynamic_linker=no
! 18751: ;;
1.1 root 18752:
1.1.1.2 ! root 18753: freebsd*)
! 18754: # DragonFly does not have aout. When/if they implement a new
! 18755: # versioning mechanism, adjust this.
! 18756: if test -x /usr/bin/objformat; then
! 18757: objformat=`/usr/bin/objformat`
! 18758: else
! 18759: case $host_os in
! 18760: freebsd[123]*) objformat=aout ;;
! 18761: *) objformat=elf ;;
! 18762: esac
! 18763: fi
! 18764: version_type=freebsd-$objformat
! 18765: case $version_type in
! 18766: freebsd-elf*)
! 18767: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18768: need_version=no
! 18769: need_lib_prefix=no
! 18770: ;;
! 18771: freebsd-*)
! 18772: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 18773: need_version=yes
! 18774: ;;
! 18775: esac
! 18776: shlibpath_var=LD_LIBRARY_PATH
! 18777: case $host_os in
! 18778: freebsd2*)
! 18779: shlibpath_overrides_runpath=yes
! 18780: ;;
! 18781: freebsd3.[01]* | freebsdelf3.[01]*)
! 18782: shlibpath_overrides_runpath=yes
! 18783: hardcode_into_libs=yes
! 18784: ;;
! 18785: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
! 18786: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
! 18787: shlibpath_overrides_runpath=no
! 18788: hardcode_into_libs=yes
! 18789: ;;
! 18790: *) # from 4.6 on, and DragonFly
! 18791: shlibpath_overrides_runpath=yes
! 18792: hardcode_into_libs=yes
! 18793: ;;
! 18794: esac
! 18795: ;;
1.1 root 18796:
1.1.1.2 ! root 18797: dragonfly*)
! 18798: version_type=linux # XXX tv this should be =linux; current selection has problems
! 18799: need_version=no
! 18800: need_lib_prefix=no
! 18801: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18802: shlibpath_var=LD_LIBRARY_PATH
! 18803: shlibpath_overrides_runpath=no
! 18804: hardcode_into_libs=yes
! 18805: ;;
1.1 root 18806:
1.1.1.2 ! root 18807: gnu*)
! 18808: version_type=linux
! 18809: need_lib_prefix=no
! 18810: need_version=no
! 18811: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 18812: soname_spec='${libname}${release}${shared_ext}$major'
! 18813: shlibpath_var=LD_LIBRARY_PATH
! 18814: hardcode_into_libs=yes
! 18815: ;;
! 18816:
! 18817: hpux9* | hpux10* | hpux11*)
! 18818: # Give a soname corresponding to the major version so that dld.sl refuses to
! 18819: # link against other versions.
! 18820: version_type=sunos
! 18821: need_lib_prefix=no
! 18822: need_version=no
! 18823: case $host_cpu in
! 18824: ia64*)
! 18825: shrext_cmds='.so'
! 18826: hardcode_into_libs=yes
! 18827: dynamic_linker="$host_os dld.so"
! 18828: shlibpath_var=LD_LIBRARY_PATH
! 18829: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 18830: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18831: soname_spec='${libname}${release}${shared_ext}$major'
! 18832: if test "X$HPUX_IA64_MODE" = X32; then
! 18833: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 18834: else
! 18835: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 18836: fi
! 18837: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 18838: ;;
! 18839: hppa*64*)
! 18840: shrext_cmds='.sl'
! 18841: hardcode_into_libs=yes
! 18842: dynamic_linker="$host_os dld.sl"
! 18843: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 18844: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 18845: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18846: soname_spec='${libname}${release}${shared_ext}$major'
! 18847: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 18848: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 18849: ;;
! 18850: *)
! 18851: shrext_cmds='.sl'
! 18852: dynamic_linker="$host_os dld.sl"
! 18853: shlibpath_var=SHLIB_PATH
! 18854: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 18855: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18856: soname_spec='${libname}${release}${shared_ext}$major'
! 18857: ;;
! 18858: esac
! 18859: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 18860: postinstall_cmds='chmod 555 $lib'
! 18861: ;;
1.1 root 18862:
1.1.1.2 ! root 18863: interix[3-9]*)
! 18864: version_type=linux
! 18865: need_lib_prefix=no
! 18866: need_version=no
! 18867: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18868: soname_spec='${libname}${release}${shared_ext}$major'
! 18869: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
! 18870: shlibpath_var=LD_LIBRARY_PATH
! 18871: shlibpath_overrides_runpath=no
! 18872: hardcode_into_libs=yes
! 18873: ;;
1.1 root 18874:
1.1.1.2 ! root 18875: interix3*)
! 18876: version_type=linux
! 18877: need_lib_prefix=no
! 18878: need_version=no
! 18879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18880: soname_spec='${libname}${release}${shared_ext}$major'
! 18881: dynamic_linker='Interix 3.x ld.so'
! 18882: shlibpath_var=LD_LIBRARY_PATH
! 18883: shlibpath_overrides_runpath=yes
! 18884: hardcode_into_libs=yes
! 18885: ;;
1.1 root 18886:
1.1.1.2 ! root 18887: irix5* | irix6* | nonstopux*)
! 18888: case $host_os in
! 18889: nonstopux*) version_type=nonstopux ;;
! 18890: *) version_type=irix ;;
! 18891: esac
! 18892: need_lib_prefix=no
! 18893: need_version=no
! 18894: soname_spec='${libname}${release}${shared_ext}$major'
! 18895: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 18896: case $host_os in
! 18897: irix5* | nonstopux*)
! 18898: libsuff= shlibsuff=
! 18899: ;;
! 18900: *)
! 18901: case $LD in # libtool.m4 will add one of these switches to LD
! 18902: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 18903: libsuff= shlibsuff= libmagic=32-bit;;
! 18904: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 18905: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 18906: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 18907: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 18908: *) libsuff= shlibsuff= libmagic=never-match;;
! 18909: esac
! 18910: ;;
! 18911: esac
! 18912: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 18913: shlibpath_overrides_runpath=no
! 18914: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 18915: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 18916: hardcode_into_libs=yes
! 18917: ;;
1.1 root 18918:
1.1.1.2 ! root 18919: # No shared lib support for Linux oldld, aout, or coff.
! 18920: linux*oldld* | linux*aout* | linux*coff*)
! 18921: dynamic_linker=no
! 18922: ;;
1.1 root 18923:
1.1.1.2 ! root 18924: # This must be Linux ELF.
! 18925: linux* | k*bsd*-gnu)
! 18926: version_type=linux
! 18927: need_lib_prefix=no
! 18928: need_version=no
! 18929: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18930: soname_spec='${libname}${release}${shared_ext}$major'
! 18931: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 18932: shlibpath_var=LD_LIBRARY_PATH
! 18933: shlibpath_overrides_runpath=no
! 18934: # This implies no fast_install, which is unacceptable.
! 18935: # Some rework will be needed to allow for fast_install
! 18936: # before this can be enabled.
! 18937: hardcode_into_libs=yes
1.1 root 18938:
1.1.1.2 ! root 18939: # Append ld.so.conf contents to the search path
! 18940: if test -f /etc/ld.so.conf; then
! 18941: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
! 18942: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.1 root 18943: fi
18944:
1.1.1.2 ! root 18945: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 18946: # powerpc, because MkLinux only supported shared libraries with the
! 18947: # GNU dynamic linker. Since this was broken with cross compilers,
! 18948: # most powerpc-linux boxes support dynamic linking these days and
! 18949: # people can always --disable-shared, the test was removed, and we
! 18950: # assume the GNU/Linux dynamic linker is in use.
! 18951: dynamic_linker='GNU/Linux ld.so'
! 18952: ;;
1.1 root 18953:
1.1.1.2 ! root 18954: netbsd*)
! 18955: version_type=linux
! 18956: need_lib_prefix=no
! 18957: need_version=no
! 18958: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 18959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix2'
! 18960: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 18961: dynamic_linker='NetBSD (a.out) ld.so'
! 18962: else
! 18963: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 18964: soname_spec='${libname}${release}${shared_ext}$major'
! 18965: dynamic_linker='NetBSD ld.elf_so'
! 18966: fi
! 18967: shlibpath_var=LD_LIBRARY_PATH
! 18968: shlibpath_overrides_runpath=yes
! 18969: hardcode_into_libs=yes
! 18970: ;;
1.1 root 18971:
1.1.1.2 ! root 18972: newsos6)
! 18973: version_type=linux
! 18974: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18975: shlibpath_var=LD_LIBRARY_PATH
! 18976: shlibpath_overrides_runpath=yes
! 18977: ;;
1.1 root 18978:
1.1.1.2 ! root 18979: nto-qnx*)
! 18980: version_type=linux
! 18981: need_lib_prefix=no
! 18982: need_version=no
! 18983: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18984: dynamic_linker='QNX libc.so'
! 18985: soname_spec='${libname}${release}${shared_ext}$major'
! 18986: shlibpath_var=LD_LIBRARY_PATH
! 18987: shlibpath_overrides_runpath=yes
! 18988: ;;
1.1 root 18989:
1.1.1.2 ! root 18990: openbsd*)
! 18991: version_type=linux
! 18992: sys_lib_dlsearch_path_spec="/usr/lib"
! 18993: need_lib_prefix=no
! 18994: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 18995: case $host_os in
! 18996: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
! 18997: *) need_version=no ;;
! 18998: esac
! 18999: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 19000: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 19001: shlibpath_var=LD_LIBRARY_PATH
! 19002: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 19003: case $host_os in
! 19004: openbsd2.[89] | openbsd2.[89].*)
! 19005: shlibpath_overrides_runpath=no
! 19006: ;;
! 19007: *)
! 19008: shlibpath_overrides_runpath=yes
! 19009: ;;
! 19010: esac
! 19011: else
! 19012: shlibpath_overrides_runpath=yes
! 19013: fi
! 19014: ;;
1.1 root 19015:
1.1.1.2 ! root 19016: os2*)
! 19017: libname_spec='$name'
! 19018: shrext_cmds=".dll"
! 19019: need_lib_prefix=no
! 19020: library_names_spec='$libname${shared_ext} $libname.a'
! 19021: dynamic_linker='OS/2 ld.exe'
! 19022: shlibpath_var=LIBPATH
! 19023: ;;
1.1 root 19024:
1.1.1.2 ! root 19025: osf3* | osf4* | osf5*)
! 19026: version_type=osf
! 19027: need_lib_prefix=no
! 19028: need_version=no
! 19029: soname_spec='${libname}${release}${shared_ext}$major'
! 19030: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 19031: shlibpath_var=LD_LIBRARY_PATH
! 19032: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 19033: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 19034: ;;
1.1 root 19035:
1.1.1.2 ! root 19036: rdos*)
! 19037: dynamic_linker=no
! 19038: ;;
1.1 root 19039:
1.1.1.2 ! root 19040: solaris*)
! 19041: version_type=linux
! 19042: need_lib_prefix=no
! 19043: need_version=no
! 19044: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 19045: soname_spec='${libname}${release}${shared_ext}$major'
! 19046: shlibpath_var=LD_LIBRARY_PATH
! 19047: shlibpath_overrides_runpath=yes
! 19048: hardcode_into_libs=yes
! 19049: # ldd complains unless libraries are executable
! 19050: postinstall_cmds='chmod +x $lib'
! 19051: ;;
1.1 root 19052:
1.1.1.2 ! root 19053: sunos4*)
! 19054: version_type=sunos
! 19055: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 19056: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 19057: shlibpath_var=LD_LIBRARY_PATH
! 19058: shlibpath_overrides_runpath=yes
! 19059: if test "$with_gnu_ld" = yes; then
! 19060: need_lib_prefix=no
! 19061: fi
! 19062: need_version=yes
! 19063: ;;
1.1 root 19064:
1.1.1.2 ! root 19065: sysv4 | sysv4.3*)
! 19066: version_type=linux
! 19067: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 19068: soname_spec='${libname}${release}${shared_ext}$major'
! 19069: shlibpath_var=LD_LIBRARY_PATH
! 19070: case $host_vendor in
! 19071: sni)
! 19072: shlibpath_overrides_runpath=no
! 19073: need_lib_prefix=no
! 19074: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 19075: runpath_var=LD_RUN_PATH
! 19076: ;;
! 19077: siemens)
! 19078: need_lib_prefix=no
! 19079: ;;
! 19080: motorola)
! 19081: need_lib_prefix=no
! 19082: need_version=no
! 19083: shlibpath_overrides_runpath=no
! 19084: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 19085: ;;
! 19086: esac
! 19087: ;;
! 19088:
! 19089: sysv4*MP*)
! 19090: if test -d /usr/nec ;then
! 19091: version_type=linux
! 19092: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 19093: soname_spec='$libname${shared_ext}.$major'
! 19094: shlibpath_var=LD_LIBRARY_PATH
! 19095: fi
! 19096: ;;
! 19097:
! 19098: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 19099: version_type=freebsd-elf
! 19100: need_lib_prefix=no
! 19101: need_version=no
! 19102: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 19103: soname_spec='${libname}${release}${shared_ext}$major'
! 19104: shlibpath_var=LD_LIBRARY_PATH
! 19105: hardcode_into_libs=yes
! 19106: if test "$with_gnu_ld" = yes; then
! 19107: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 19108: shlibpath_overrides_runpath=no
! 19109: else
! 19110: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 19111: shlibpath_overrides_runpath=yes
! 19112: case $host_os in
! 19113: sco3.2v5*)
! 19114: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 19115: ;;
1.1 root 19116: esac
19117: fi
1.1.1.2 ! root 19118: sys_lib_dlsearch_path_spec='/usr/lib'
! 19119: ;;
! 19120:
! 19121: uts4*)
! 19122: version_type=linux
! 19123: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 19124: soname_spec='${libname}${release}${shared_ext}$major'
! 19125: shlibpath_var=LD_LIBRARY_PATH
! 19126: ;;
1.1 root 19127:
1.1.1.2 ! root 19128: *)
! 19129: dynamic_linker=no
! 19130: ;;
! 19131: esac
! 19132: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 19133: echo "${ECHO_T}$dynamic_linker" >&6; }
! 19134: test "$dynamic_linker" = no && can_build_shared=no
1.1 root 19135:
1.1.1.2 ! root 19136: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 19137: if test "$GCC" = yes; then
! 19138: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.1 root 19139: fi
19140:
1.1.1.2 ! root 19141: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 19142: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
! 19143: hardcode_action_GCJ=
! 19144: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
! 19145: test -n "$runpath_var_GCJ" || \
! 19146: test "X$hardcode_automatic_GCJ" = "Xyes" ; then
1.1 root 19147:
1.1.1.2 ! root 19148: # We can hardcode non-existant directories.
! 19149: if test "$hardcode_direct_GCJ" != no &&
! 19150: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 19151: # have to relink, otherwise we might link with an installed library
! 19152: # when we should be linking with a yet-to-be-installed one
! 19153: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
! 19154: test "$hardcode_minus_L_GCJ" != no; then
! 19155: # Linking always hardcodes the temporary library directory.
! 19156: hardcode_action_GCJ=relink
! 19157: else
! 19158: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 19159: hardcode_action_GCJ=immediate
! 19160: fi
! 19161: else
! 19162: # We cannot hardcode anything, or else we can only hardcode existing
! 19163: # directories.
! 19164: hardcode_action_GCJ=unsupported
! 19165: fi
! 19166: { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
! 19167: echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
1.1 root 19168:
1.1.1.2 ! root 19169: if test "$hardcode_action_GCJ" = relink; then
! 19170: # Fast installation is not supported
! 19171: enable_fast_install=no
! 19172: elif test "$shlibpath_overrides_runpath" = yes ||
! 19173: test "$enable_shared" = no; then
! 19174: # Fast installation is not necessary
! 19175: enable_fast_install=needless
1.1 root 19176: fi
19177:
19178:
19179: # The else clause should only fire when bootstrapping the
19180: # libtool distribution, otherwise you forgot to ship ltmain.sh
19181: # with your package, and you will get complaints that there are
19182: # no rules to generate ltmain.sh.
19183: if test -f "$ltmain"; then
19184: # See if we are running on zsh, and set the options which allow our commands through
19185: # without removal of \ escapes.
19186: if test -n "${ZSH_VERSION+set}" ; then
19187: setopt NO_GLOB_SUBST
19188: fi
19189: # Now quote all the things that may contain metacharacters while being
19190: # careful not to overquote the AC_SUBSTed values. We take copies of the
19191: # variables and quote the copies for generation of the libtool script.
1.1.1.2 ! root 19192: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 19193: SED SHELL STRIP \
1.1 root 19194: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19195: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19196: deplibs_check_method reload_flag reload_cmds need_locks \
19197: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19198: lt_cv_sys_global_symbol_to_c_name_address \
19199: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19200: old_postinstall_cmds old_postuninstall_cmds \
19201: compiler_GCJ \
19202: CC_GCJ \
19203: LD_GCJ \
19204: lt_prog_compiler_wl_GCJ \
19205: lt_prog_compiler_pic_GCJ \
19206: lt_prog_compiler_static_GCJ \
19207: lt_prog_compiler_no_builtin_flag_GCJ \
19208: export_dynamic_flag_spec_GCJ \
19209: thread_safe_flag_spec_GCJ \
19210: whole_archive_flag_spec_GCJ \
19211: enable_shared_with_static_runtimes_GCJ \
19212: old_archive_cmds_GCJ \
19213: old_archive_from_new_cmds_GCJ \
19214: predep_objects_GCJ \
19215: postdep_objects_GCJ \
19216: predeps_GCJ \
19217: postdeps_GCJ \
19218: compiler_lib_search_path_GCJ \
19219: archive_cmds_GCJ \
19220: archive_expsym_cmds_GCJ \
19221: postinstall_cmds_GCJ \
19222: postuninstall_cmds_GCJ \
19223: old_archive_from_expsyms_cmds_GCJ \
19224: allow_undefined_flag_GCJ \
19225: no_undefined_flag_GCJ \
19226: export_symbols_cmds_GCJ \
19227: hardcode_libdir_flag_spec_GCJ \
19228: hardcode_libdir_flag_spec_ld_GCJ \
19229: hardcode_libdir_separator_GCJ \
19230: hardcode_automatic_GCJ \
19231: module_cmds_GCJ \
19232: module_expsym_cmds_GCJ \
19233: lt_cv_prog_compiler_c_o_GCJ \
1.1.1.2 ! root 19234: fix_srcfile_path_GCJ \
1.1 root 19235: exclude_expsyms_GCJ \
19236: include_expsyms_GCJ; do
19237:
19238: case $var in
19239: old_archive_cmds_GCJ | \
19240: old_archive_from_new_cmds_GCJ | \
19241: archive_cmds_GCJ | \
19242: archive_expsym_cmds_GCJ | \
19243: module_cmds_GCJ | \
19244: module_expsym_cmds_GCJ | \
19245: old_archive_from_expsyms_cmds_GCJ | \
19246: export_symbols_cmds_GCJ | \
19247: extract_expsyms_cmds | reload_cmds | finish_cmds | \
19248: postinstall_cmds | postuninstall_cmds | \
19249: old_postinstall_cmds | old_postuninstall_cmds | \
19250: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19251: # Double-quote double-evaled strings.
19252: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19253: ;;
19254: *)
19255: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19256: ;;
19257: esac
19258: done
19259:
19260: case $lt_echo in
19261: *'\$0 --fallback-echo"')
19262: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19263: ;;
19264: esac
19265:
19266: cfgfile="$ofile"
19267:
19268: cat <<__EOF__ >> "$cfgfile"
19269: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19270:
19271: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19272:
19273: # Shell to use when invoking shell scripts.
19274: SHELL=$lt_SHELL
19275:
19276: # Whether or not to build shared libraries.
19277: build_libtool_libs=$enable_shared
19278:
19279: # Whether or not to build static libraries.
19280: build_old_libs=$enable_static
19281:
19282: # Whether or not to add -lc for building shared libraries.
19283: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19284:
19285: # Whether or not to disallow shared libs when runtime libs are static
19286: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19287:
19288: # Whether or not to optimize for fast installation.
19289: fast_install=$enable_fast_install
19290:
19291: # The host system.
19292: host_alias=$host_alias
19293: host=$host
1.1.1.2 ! root 19294: host_os=$host_os
! 19295:
! 19296: # The build system.
! 19297: build_alias=$build_alias
! 19298: build=$build
! 19299: build_os=$build_os
1.1 root 19300:
19301: # An echo program that does not interpret backslashes.
19302: echo=$lt_echo
19303:
19304: # The archiver.
19305: AR=$lt_AR
19306: AR_FLAGS=$lt_AR_FLAGS
19307:
19308: # A C compiler.
19309: LTCC=$lt_LTCC
19310:
1.1.1.2 ! root 19311: # LTCC compiler flags.
! 19312: LTCFLAGS=$lt_LTCFLAGS
! 19313:
1.1 root 19314: # A language-specific compiler.
19315: CC=$lt_compiler_GCJ
19316:
19317: # Is the compiler the GNU C compiler?
19318: with_gcc=$GCC_GCJ
19319:
19320: # An ERE matcher.
19321: EGREP=$lt_EGREP
19322:
19323: # The linker used to build libraries.
19324: LD=$lt_LD_GCJ
19325:
19326: # Whether we need hard or soft links.
19327: LN_S=$lt_LN_S
19328:
19329: # A BSD-compatible nm program.
19330: NM=$lt_NM
19331:
19332: # A symbol stripping program
1.1.1.2 ! root 19333: STRIP=$lt_STRIP
1.1 root 19334:
19335: # Used to examine libraries when file_magic_cmd begins "file"
19336: MAGIC_CMD=$MAGIC_CMD
19337:
19338: # Used on cygwin: DLL creation program.
19339: DLLTOOL="$DLLTOOL"
19340:
19341: # Used on cygwin: object dumper.
19342: OBJDUMP="$OBJDUMP"
19343:
19344: # Used on cygwin: assembler.
19345: AS="$AS"
19346:
19347: # The name of the directory that contains temporary libtool files.
19348: objdir=$objdir
19349:
19350: # How to create reloadable object files.
19351: reload_flag=$lt_reload_flag
19352: reload_cmds=$lt_reload_cmds
19353:
19354: # How to pass a linker flag through the compiler.
19355: wl=$lt_lt_prog_compiler_wl_GCJ
19356:
19357: # Object file suffix (normally "o").
19358: objext="$ac_objext"
19359:
19360: # Old archive suffix (normally "a").
19361: libext="$libext"
19362:
19363: # Shared library suffix (normally ".so").
1.1.1.2 ! root 19364: shrext_cmds='$shrext_cmds'
1.1 root 19365:
19366: # Executable file suffix (normally "").
19367: exeext="$exeext"
19368:
19369: # Additional compiler flags for building library objects.
19370: pic_flag=$lt_lt_prog_compiler_pic_GCJ
19371: pic_mode=$pic_mode
19372:
19373: # What is the maximum length of a command?
19374: max_cmd_len=$lt_cv_sys_max_cmd_len
19375:
19376: # Does compiler simultaneously support -c and -o options?
19377: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19378:
1.1.1.2 ! root 19379: # Must we lock files when doing compilation?
1.1 root 19380: need_locks=$lt_need_locks
19381:
19382: # Do we need the lib prefix for modules?
19383: need_lib_prefix=$need_lib_prefix
19384:
19385: # Do we need a version for libraries?
19386: need_version=$need_version
19387:
19388: # Whether dlopen is supported.
19389: dlopen_support=$enable_dlopen
19390:
19391: # Whether dlopen of programs is supported.
19392: dlopen_self=$enable_dlopen_self
19393:
19394: # Whether dlopen of statically linked programs is supported.
19395: dlopen_self_static=$enable_dlopen_self_static
19396:
19397: # Compiler flag to prevent dynamic linking.
19398: link_static_flag=$lt_lt_prog_compiler_static_GCJ
19399:
19400: # Compiler flag to turn off builtin functions.
19401: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19402:
19403: # Compiler flag to allow reflexive dlopens.
19404: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19405:
19406: # Compiler flag to generate shared objects directly from archives.
19407: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19408:
19409: # Compiler flag to generate thread-safe objects.
19410: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19411:
19412: # Library versioning type.
19413: version_type=$version_type
19414:
19415: # Format of library name prefix.
19416: libname_spec=$lt_libname_spec
19417:
19418: # List of archive names. First name is the real one, the rest are links.
19419: # The last name is the one that the linker finds with -lNAME.
19420: library_names_spec=$lt_library_names_spec
19421:
19422: # The coded name of the library, if different from the real name.
19423: soname_spec=$lt_soname_spec
19424:
19425: # Commands used to build and install an old-style archive.
19426: RANLIB=$lt_RANLIB
19427: old_archive_cmds=$lt_old_archive_cmds_GCJ
19428: old_postinstall_cmds=$lt_old_postinstall_cmds
19429: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19430:
19431: # Create an old-style archive from a shared archive.
19432: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19433:
19434: # Create a temporary old-style archive to link instead of a shared archive.
19435: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19436:
19437: # Commands used to build and install a shared archive.
19438: archive_cmds=$lt_archive_cmds_GCJ
19439: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19440: postinstall_cmds=$lt_postinstall_cmds
19441: postuninstall_cmds=$lt_postuninstall_cmds
19442:
19443: # Commands used to build a loadable module (assumed same as above if empty)
19444: module_cmds=$lt_module_cmds_GCJ
19445: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19446:
19447: # Commands to strip libraries.
19448: old_striplib=$lt_old_striplib
19449: striplib=$lt_striplib
19450:
19451: # Dependencies to place before the objects being linked to create a
19452: # shared library.
19453: predep_objects=$lt_predep_objects_GCJ
19454:
19455: # Dependencies to place after the objects being linked to create a
19456: # shared library.
19457: postdep_objects=$lt_postdep_objects_GCJ
19458:
19459: # Dependencies to place before the objects being linked to create a
19460: # shared library.
19461: predeps=$lt_predeps_GCJ
19462:
19463: # Dependencies to place after the objects being linked to create a
19464: # shared library.
19465: postdeps=$lt_postdeps_GCJ
19466:
19467: # The library search path used internally by the compiler when linking
19468: # a shared library.
19469: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19470:
19471: # Method to check whether dependent libraries are shared objects.
19472: deplibs_check_method=$lt_deplibs_check_method
19473:
19474: # Command to use when deplibs_check_method == file_magic.
19475: file_magic_cmd=$lt_file_magic_cmd
19476:
19477: # Flag that allows shared libraries with undefined symbols to be built.
19478: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19479:
19480: # Flag that forces no undefined symbols.
19481: no_undefined_flag=$lt_no_undefined_flag_GCJ
19482:
19483: # Commands used to finish a libtool library installation in a directory.
19484: finish_cmds=$lt_finish_cmds
19485:
19486: # Same as above, but a single script fragment to be evaled but not shown.
19487: finish_eval=$lt_finish_eval
19488:
19489: # Take the output of nm and produce a listing of raw symbols and C names.
19490: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19491:
19492: # Transform the output of nm in a proper C declaration
19493: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19494:
19495: # Transform the output of nm in a C name address pair
19496: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19497:
19498: # This is the shared library runtime path variable.
19499: runpath_var=$runpath_var
19500:
19501: # This is the shared library path variable.
19502: shlibpath_var=$shlibpath_var
19503:
19504: # Is shlibpath searched before the hard-coded library search path?
19505: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19506:
19507: # How to hardcode a shared library path into an executable.
19508: hardcode_action=$hardcode_action_GCJ
19509:
19510: # Whether we should hardcode library paths into libraries.
19511: hardcode_into_libs=$hardcode_into_libs
19512:
19513: # Flag to hardcode \$libdir into a binary during linking.
19514: # This must work even if \$libdir does not exist.
19515: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19516:
19517: # If ld is used when linking, flag to hardcode \$libdir into
19518: # a binary during linking. This must work even if \$libdir does
19519: # not exist.
19520: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19521:
19522: # Whether we need a single -rpath flag with a separated argument.
19523: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19524:
19525: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19526: # resulting binary.
19527: hardcode_direct=$hardcode_direct_GCJ
19528:
19529: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19530: # resulting binary.
19531: hardcode_minus_L=$hardcode_minus_L_GCJ
19532:
19533: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19534: # the resulting binary.
19535: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19536:
19537: # Set to yes if building a shared library automatically hardcodes DIR into the library
19538: # and all subsequent libraries and executables linked against it.
19539: hardcode_automatic=$hardcode_automatic_GCJ
19540:
19541: # Variables whose values should be saved in libtool wrapper scripts and
19542: # restored at relink time.
19543: variables_saved_for_relink="$variables_saved_for_relink"
19544:
19545: # Whether libtool must link a program against all its dependency libraries.
19546: link_all_deplibs=$link_all_deplibs_GCJ
19547:
19548: # Compile-time system search path for libraries
19549: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19550:
19551: # Run-time system search path for libraries
19552: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19553:
19554: # Fix the shell variable \$srcfile for the compiler.
1.1.1.2 ! root 19555: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 19556:
19557: # Set to yes if exported symbols are required.
19558: always_export_symbols=$always_export_symbols_GCJ
19559:
19560: # The commands to list exported symbols.
19561: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19562:
19563: # The commands to extract the exported symbol list from a shared archive.
19564: extract_expsyms_cmds=$lt_extract_expsyms_cmds
19565:
19566: # Symbols that should not be listed in the preloaded symbols.
19567: exclude_expsyms=$lt_exclude_expsyms_GCJ
19568:
19569: # Symbols that must always be exported.
19570: include_expsyms=$lt_include_expsyms_GCJ
19571:
19572: # ### END LIBTOOL TAG CONFIG: $tagname
19573:
19574: __EOF__
19575:
19576:
19577: else
19578: # If there is no Makefile yet, we rely on a make rule to execute
19579: # `config.status --recheck' to rerun these tests and create the
19580: # libtool script then.
1.1.1.2 ! root 19581: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 19582: if test -f "$ltmain_in"; then
! 19583: test -f Makefile && make "$ltmain"
! 19584: fi
1.1 root 19585: fi
19586:
19587:
19588: ac_ext=c
19589: ac_cpp='$CPP $CPPFLAGS'
19590: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19593:
19594: CC="$lt_save_CC"
19595:
19596: else
19597: tagname=""
19598: fi
19599: ;;
19600:
19601: RC)
19602:
19603:
19604: # Source file extension for RC test sources.
19605: ac_ext=rc
19606:
19607: # Object file extension for compiled RC test sources.
19608: objext=o
19609: objext_RC=$objext
19610:
19611: # Code to be used in simple compile tests
1.1.1.2 ! root 19612: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
1.1 root 19613:
19614: # Code to be used in simple link tests
19615: lt_simple_link_test_code="$lt_simple_compile_test_code"
19616:
19617: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19618:
19619: # If no C compiler was specified, use CC.
19620: LTCC=${LTCC-"$CC"}
19621:
1.1.1.2 ! root 19622: # If no C compiler flags were specified, use CFLAGS.
! 19623: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 19624:
1.1 root 19625: # Allow CC to be a program name with arguments.
19626: compiler=$CC
19627:
19628:
1.1.1.2 ! root 19629: # save warnings/boilerplate of simple test code
! 19630: ac_outfile=conftest.$ac_objext
! 19631: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
! 19632: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 19633: _lt_compiler_boilerplate=`cat conftest.err`
! 19634: $rm conftest*
! 19635:
! 19636: ac_outfile=conftest.$ac_objext
! 19637: echo "$lt_simple_link_test_code" >conftest.$ac_ext
! 19638: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
! 19639: _lt_linker_boilerplate=`cat conftest.err`
! 19640: $rm conftest*
! 19641:
! 19642:
1.1 root 19643: # Allow CC to be a program name with arguments.
19644: lt_save_CC="$CC"
19645: CC=${RC-"windres"}
19646: compiler=$CC
19647: compiler_RC=$CC
1.1.1.2 ! root 19648: for cc_temp in $compiler""; do
! 19649: case $cc_temp in
! 19650: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 19651: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 19652: \-*) ;;
! 19653: *) break;;
! 19654: esac
! 19655: done
! 19656: # Return the actual command name, not our pkgsrc wrapper name because several
! 19657: # decisions are made only based on compiler names
! 19658: new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null` || new_cc_temp="$cc_temp"
! 19659: cc_basename=`$echo "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
! 19660:
1.1 root 19661: lt_cv_prog_compiler_c_o_RC=yes
19662:
19663: # The else clause should only fire when bootstrapping the
19664: # libtool distribution, otherwise you forgot to ship ltmain.sh
19665: # with your package, and you will get complaints that there are
19666: # no rules to generate ltmain.sh.
19667: if test -f "$ltmain"; then
19668: # See if we are running on zsh, and set the options which allow our commands through
19669: # without removal of \ escapes.
19670: if test -n "${ZSH_VERSION+set}" ; then
19671: setopt NO_GLOB_SUBST
19672: fi
19673: # Now quote all the things that may contain metacharacters while being
19674: # careful not to overquote the AC_SUBSTed values. We take copies of the
19675: # variables and quote the copies for generation of the libtool script.
1.1.1.2 ! root 19676: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
! 19677: SED SHELL STRIP \
1.1 root 19678: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19679: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19680: deplibs_check_method reload_flag reload_cmds need_locks \
19681: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19682: lt_cv_sys_global_symbol_to_c_name_address \
19683: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19684: old_postinstall_cmds old_postuninstall_cmds \
19685: compiler_RC \
19686: CC_RC \
19687: LD_RC \
19688: lt_prog_compiler_wl_RC \
19689: lt_prog_compiler_pic_RC \
19690: lt_prog_compiler_static_RC \
19691: lt_prog_compiler_no_builtin_flag_RC \
19692: export_dynamic_flag_spec_RC \
19693: thread_safe_flag_spec_RC \
19694: whole_archive_flag_spec_RC \
19695: enable_shared_with_static_runtimes_RC \
19696: old_archive_cmds_RC \
19697: old_archive_from_new_cmds_RC \
19698: predep_objects_RC \
19699: postdep_objects_RC \
19700: predeps_RC \
19701: postdeps_RC \
19702: compiler_lib_search_path_RC \
19703: archive_cmds_RC \
19704: archive_expsym_cmds_RC \
19705: postinstall_cmds_RC \
19706: postuninstall_cmds_RC \
19707: old_archive_from_expsyms_cmds_RC \
19708: allow_undefined_flag_RC \
19709: no_undefined_flag_RC \
19710: export_symbols_cmds_RC \
19711: hardcode_libdir_flag_spec_RC \
19712: hardcode_libdir_flag_spec_ld_RC \
19713: hardcode_libdir_separator_RC \
19714: hardcode_automatic_RC \
19715: module_cmds_RC \
19716: module_expsym_cmds_RC \
19717: lt_cv_prog_compiler_c_o_RC \
1.1.1.2 ! root 19718: fix_srcfile_path_RC \
1.1 root 19719: exclude_expsyms_RC \
19720: include_expsyms_RC; do
19721:
19722: case $var in
19723: old_archive_cmds_RC | \
19724: old_archive_from_new_cmds_RC | \
19725: archive_cmds_RC | \
19726: archive_expsym_cmds_RC | \
19727: module_cmds_RC | \
19728: module_expsym_cmds_RC | \
19729: old_archive_from_expsyms_cmds_RC | \
19730: export_symbols_cmds_RC | \
19731: extract_expsyms_cmds | reload_cmds | finish_cmds | \
19732: postinstall_cmds | postuninstall_cmds | \
19733: old_postinstall_cmds | old_postuninstall_cmds | \
19734: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19735: # Double-quote double-evaled strings.
19736: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19737: ;;
19738: *)
19739: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19740: ;;
19741: esac
19742: done
19743:
19744: case $lt_echo in
19745: *'\$0 --fallback-echo"')
19746: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19747: ;;
19748: esac
19749:
19750: cfgfile="$ofile"
19751:
19752: cat <<__EOF__ >> "$cfgfile"
19753: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19754:
19755: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19756:
19757: # Shell to use when invoking shell scripts.
19758: SHELL=$lt_SHELL
19759:
19760: # Whether or not to build shared libraries.
19761: build_libtool_libs=$enable_shared
19762:
19763: # Whether or not to build static libraries.
19764: build_old_libs=$enable_static
19765:
19766: # Whether or not to add -lc for building shared libraries.
19767: build_libtool_need_lc=$archive_cmds_need_lc_RC
19768:
19769: # Whether or not to disallow shared libs when runtime libs are static
19770: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19771:
19772: # Whether or not to optimize for fast installation.
19773: fast_install=$enable_fast_install
19774:
19775: # The host system.
19776: host_alias=$host_alias
19777: host=$host
1.1.1.2 ! root 19778: host_os=$host_os
! 19779:
! 19780: # The build system.
! 19781: build_alias=$build_alias
! 19782: build=$build
! 19783: build_os=$build_os
1.1 root 19784:
19785: # An echo program that does not interpret backslashes.
19786: echo=$lt_echo
19787:
19788: # The archiver.
19789: AR=$lt_AR
19790: AR_FLAGS=$lt_AR_FLAGS
19791:
19792: # A C compiler.
19793: LTCC=$lt_LTCC
19794:
1.1.1.2 ! root 19795: # LTCC compiler flags.
! 19796: LTCFLAGS=$lt_LTCFLAGS
! 19797:
1.1 root 19798: # A language-specific compiler.
19799: CC=$lt_compiler_RC
19800:
19801: # Is the compiler the GNU C compiler?
19802: with_gcc=$GCC_RC
19803:
19804: # An ERE matcher.
19805: EGREP=$lt_EGREP
19806:
19807: # The linker used to build libraries.
19808: LD=$lt_LD_RC
19809:
19810: # Whether we need hard or soft links.
19811: LN_S=$lt_LN_S
19812:
19813: # A BSD-compatible nm program.
19814: NM=$lt_NM
19815:
19816: # A symbol stripping program
1.1.1.2 ! root 19817: STRIP=$lt_STRIP
1.1 root 19818:
19819: # Used to examine libraries when file_magic_cmd begins "file"
19820: MAGIC_CMD=$MAGIC_CMD
19821:
19822: # Used on cygwin: DLL creation program.
19823: DLLTOOL="$DLLTOOL"
19824:
19825: # Used on cygwin: object dumper.
19826: OBJDUMP="$OBJDUMP"
19827:
19828: # Used on cygwin: assembler.
19829: AS="$AS"
19830:
19831: # The name of the directory that contains temporary libtool files.
19832: objdir=$objdir
19833:
19834: # How to create reloadable object files.
19835: reload_flag=$lt_reload_flag
19836: reload_cmds=$lt_reload_cmds
19837:
19838: # How to pass a linker flag through the compiler.
19839: wl=$lt_lt_prog_compiler_wl_RC
19840:
19841: # Object file suffix (normally "o").
19842: objext="$ac_objext"
19843:
19844: # Old archive suffix (normally "a").
19845: libext="$libext"
19846:
19847: # Shared library suffix (normally ".so").
1.1.1.2 ! root 19848: shrext_cmds='$shrext_cmds'
1.1 root 19849:
19850: # Executable file suffix (normally "").
19851: exeext="$exeext"
19852:
19853: # Additional compiler flags for building library objects.
19854: pic_flag=$lt_lt_prog_compiler_pic_RC
19855: pic_mode=$pic_mode
19856:
19857: # What is the maximum length of a command?
19858: max_cmd_len=$lt_cv_sys_max_cmd_len
19859:
19860: # Does compiler simultaneously support -c and -o options?
19861: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19862:
1.1.1.2 ! root 19863: # Must we lock files when doing compilation?
1.1 root 19864: need_locks=$lt_need_locks
19865:
19866: # Do we need the lib prefix for modules?
19867: need_lib_prefix=$need_lib_prefix
19868:
19869: # Do we need a version for libraries?
19870: need_version=$need_version
19871:
19872: # Whether dlopen is supported.
19873: dlopen_support=$enable_dlopen
19874:
19875: # Whether dlopen of programs is supported.
19876: dlopen_self=$enable_dlopen_self
19877:
19878: # Whether dlopen of statically linked programs is supported.
19879: dlopen_self_static=$enable_dlopen_self_static
19880:
19881: # Compiler flag to prevent dynamic linking.
19882: link_static_flag=$lt_lt_prog_compiler_static_RC
19883:
19884: # Compiler flag to turn off builtin functions.
19885: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19886:
19887: # Compiler flag to allow reflexive dlopens.
19888: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19889:
19890: # Compiler flag to generate shared objects directly from archives.
19891: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19892:
19893: # Compiler flag to generate thread-safe objects.
19894: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19895:
19896: # Library versioning type.
19897: version_type=$version_type
19898:
19899: # Format of library name prefix.
19900: libname_spec=$lt_libname_spec
19901:
19902: # List of archive names. First name is the real one, the rest are links.
19903: # The last name is the one that the linker finds with -lNAME.
19904: library_names_spec=$lt_library_names_spec
19905:
19906: # The coded name of the library, if different from the real name.
19907: soname_spec=$lt_soname_spec
19908:
19909: # Commands used to build and install an old-style archive.
19910: RANLIB=$lt_RANLIB
19911: old_archive_cmds=$lt_old_archive_cmds_RC
19912: old_postinstall_cmds=$lt_old_postinstall_cmds
19913: old_postuninstall_cmds=$lt_old_postuninstall_cmds
19914:
19915: # Create an old-style archive from a shared archive.
19916: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19917:
19918: # Create a temporary old-style archive to link instead of a shared archive.
19919: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19920:
19921: # Commands used to build and install a shared archive.
19922: archive_cmds=$lt_archive_cmds_RC
19923: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19924: postinstall_cmds=$lt_postinstall_cmds
19925: postuninstall_cmds=$lt_postuninstall_cmds
19926:
19927: # Commands used to build a loadable module (assumed same as above if empty)
19928: module_cmds=$lt_module_cmds_RC
19929: module_expsym_cmds=$lt_module_expsym_cmds_RC
19930:
19931: # Commands to strip libraries.
19932: old_striplib=$lt_old_striplib
19933: striplib=$lt_striplib
19934:
19935: # Dependencies to place before the objects being linked to create a
19936: # shared library.
19937: predep_objects=$lt_predep_objects_RC
19938:
19939: # Dependencies to place after the objects being linked to create a
19940: # shared library.
19941: postdep_objects=$lt_postdep_objects_RC
19942:
19943: # Dependencies to place before the objects being linked to create a
19944: # shared library.
19945: predeps=$lt_predeps_RC
19946:
19947: # Dependencies to place after the objects being linked to create a
19948: # shared library.
19949: postdeps=$lt_postdeps_RC
19950:
19951: # The library search path used internally by the compiler when linking
19952: # a shared library.
19953: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19954:
19955: # Method to check whether dependent libraries are shared objects.
19956: deplibs_check_method=$lt_deplibs_check_method
19957:
19958: # Command to use when deplibs_check_method == file_magic.
19959: file_magic_cmd=$lt_file_magic_cmd
19960:
19961: # Flag that allows shared libraries with undefined symbols to be built.
19962: allow_undefined_flag=$lt_allow_undefined_flag_RC
19963:
19964: # Flag that forces no undefined symbols.
19965: no_undefined_flag=$lt_no_undefined_flag_RC
19966:
19967: # Commands used to finish a libtool library installation in a directory.
19968: finish_cmds=$lt_finish_cmds
19969:
19970: # Same as above, but a single script fragment to be evaled but not shown.
19971: finish_eval=$lt_finish_eval
19972:
19973: # Take the output of nm and produce a listing of raw symbols and C names.
19974: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19975:
19976: # Transform the output of nm in a proper C declaration
19977: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19978:
19979: # Transform the output of nm in a C name address pair
19980: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19981:
19982: # This is the shared library runtime path variable.
19983: runpath_var=$runpath_var
19984:
19985: # This is the shared library path variable.
19986: shlibpath_var=$shlibpath_var
19987:
19988: # Is shlibpath searched before the hard-coded library search path?
19989: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19990:
19991: # How to hardcode a shared library path into an executable.
19992: hardcode_action=$hardcode_action_RC
19993:
19994: # Whether we should hardcode library paths into libraries.
19995: hardcode_into_libs=$hardcode_into_libs
19996:
19997: # Flag to hardcode \$libdir into a binary during linking.
19998: # This must work even if \$libdir does not exist.
19999: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20000:
20001: # If ld is used when linking, flag to hardcode \$libdir into
20002: # a binary during linking. This must work even if \$libdir does
20003: # not exist.
20004: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20005:
20006: # Whether we need a single -rpath flag with a separated argument.
20007: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20008:
20009: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20010: # resulting binary.
20011: hardcode_direct=$hardcode_direct_RC
20012:
20013: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20014: # resulting binary.
20015: hardcode_minus_L=$hardcode_minus_L_RC
20016:
20017: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20018: # the resulting binary.
20019: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20020:
20021: # Set to yes if building a shared library automatically hardcodes DIR into the library
20022: # and all subsequent libraries and executables linked against it.
20023: hardcode_automatic=$hardcode_automatic_RC
20024:
20025: # Variables whose values should be saved in libtool wrapper scripts and
20026: # restored at relink time.
20027: variables_saved_for_relink="$variables_saved_for_relink"
20028:
20029: # Whether libtool must link a program against all its dependency libraries.
20030: link_all_deplibs=$link_all_deplibs_RC
20031:
20032: # Compile-time system search path for libraries
20033: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20034:
20035: # Run-time system search path for libraries
20036: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20037:
20038: # Fix the shell variable \$srcfile for the compiler.
1.1.1.2 ! root 20039: fix_srcfile_path=$lt_fix_srcfile_path
1.1 root 20040:
20041: # Set to yes if exported symbols are required.
20042: always_export_symbols=$always_export_symbols_RC
20043:
20044: # The commands to list exported symbols.
20045: export_symbols_cmds=$lt_export_symbols_cmds_RC
20046:
20047: # The commands to extract the exported symbol list from a shared archive.
20048: extract_expsyms_cmds=$lt_extract_expsyms_cmds
20049:
20050: # Symbols that should not be listed in the preloaded symbols.
20051: exclude_expsyms=$lt_exclude_expsyms_RC
20052:
20053: # Symbols that must always be exported.
20054: include_expsyms=$lt_include_expsyms_RC
20055:
20056: # ### END LIBTOOL TAG CONFIG: $tagname
20057:
20058: __EOF__
20059:
20060:
20061: else
20062: # If there is no Makefile yet, we rely on a make rule to execute
20063: # `config.status --recheck' to rerun these tests and create the
20064: # libtool script then.
1.1.1.2 ! root 20065: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
! 20066: if test -f "$ltmain_in"; then
! 20067: test -f Makefile && make "$ltmain"
! 20068: fi
1.1 root 20069: fi
20070:
20071:
20072: ac_ext=c
20073: ac_cpp='$CPP $CPPFLAGS'
20074: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20077:
20078: CC="$lt_save_CC"
20079:
20080: ;;
20081:
20082: *)
20083: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20084: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20085: { (exit 1); exit 1; }; }
20086: ;;
20087: esac
20088:
20089: # Append the new tag name to the list of available tags.
20090: if test -n "$tagname" ; then
20091: available_tags="$available_tags $tagname"
20092: fi
20093: fi
20094: done
20095: IFS="$lt_save_ifs"
20096:
20097: # Now substitute the updated list of available tags.
20098: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20099: mv "${ofile}T" "$ofile"
20100: chmod +x "$ofile"
20101: else
20102: rm -f "${ofile}T"
20103: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20104: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20105: { (exit 1); exit 1; }; }
20106: fi
20107: fi
20108:
20109:
20110:
20111: # This can be used to rebuild libtool when needed
20112: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20113:
20114: # Always use our own libtool.
20115: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20116:
20117: # Prevent multiple expansion
20118:
20119:
20120:
20121:
20122:
20123:
20124:
20125:
20126:
20127:
20128:
20129:
20130:
20131:
20132:
20133:
20134:
20135:
20136:
20137:
20138:
20139:
20140:
20141:
20142:
20143:
20144:
20145: ac_header_dirent=no
20146: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20147: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.1.1.2 ! root 20148: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 20149: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
! 20150: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 20151: echo $ECHO_N "(cached) $ECHO_C" >&6
20152: else
20153: cat >conftest.$ac_ext <<_ACEOF
20154: /* confdefs.h. */
20155: _ACEOF
20156: cat confdefs.h >>conftest.$ac_ext
20157: cat >>conftest.$ac_ext <<_ACEOF
20158: /* end confdefs.h. */
20159: #include <sys/types.h>
20160: #include <$ac_hdr>
20161:
20162: int
20163: main ()
20164: {
20165: if ((DIR *) 0)
20166: return 0;
20167: ;
20168: return 0;
1.1.1.2 ! root 20169: }
! 20170: _ACEOF
! 20171: rm -f conftest.$ac_objext
! 20172: if { (ac_try="$ac_compile"
! 20173: case "(($ac_try" in
! 20174: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20175: *) ac_try_echo=$ac_try;;
! 20176: esac
! 20177: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20178: (eval "$ac_compile") 2>conftest.er1
1.1 root 20179: ac_status=$?
1.1.1.2 ! root 20180: grep -v '^ *+' conftest.er1 >conftest.err
! 20181: rm -f conftest.er1
! 20182: cat conftest.err >&5
1.1 root 20183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20184: (exit $ac_status); } && {
! 20185: test -z "$ac_c_werror_flag" ||
! 20186: test ! -s conftest.err
! 20187: } && test -s conftest.$ac_objext; then
! 20188: eval "$as_ac_Header=yes"
1.1 root 20189: else
20190: echo "$as_me: failed program was:" >&5
20191: sed 's/^/| /' conftest.$ac_ext >&5
20192:
1.1.1.2 ! root 20193: eval "$as_ac_Header=no"
1.1 root 20194: fi
1.1.1.2 ! root 20195:
! 20196: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 20197: fi
1.1.1.2 ! root 20198: ac_res=`eval echo '${'$as_ac_Header'}'`
! 20199: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 20200: echo "${ECHO_T}$ac_res" >&6; }
! 20201: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 20202: cat >>confdefs.h <<_ACEOF
! 20203: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
! 20204: _ACEOF
1.1 root 20205:
1.1.1.2 ! root 20206: ac_header_dirent=$ac_hdr; break
1.1 root 20207: fi
20208:
1.1.1.2 ! root 20209: done
! 20210: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
! 20211: if test $ac_header_dirent = dirent.h; then
! 20212: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 20213: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.1 root 20214: if test "${ac_cv_search_opendir+set}" = set; then
20215: echo $ECHO_N "(cached) $ECHO_C" >&6
20216: else
20217: ac_func_search_save_LIBS=$LIBS
20218: cat >conftest.$ac_ext <<_ACEOF
20219: /* confdefs.h. */
20220: _ACEOF
20221: cat confdefs.h >>conftest.$ac_ext
20222: cat >>conftest.$ac_ext <<_ACEOF
20223: /* end confdefs.h. */
20224:
1.1.1.2 ! root 20225: /* Override any GCC internal prototype to avoid an error.
! 20226: Use char because int might match the return type of a GCC
! 20227: builtin and then its argument prototype would still apply. */
1.1 root 20228: #ifdef __cplusplus
20229: extern "C"
20230: #endif
20231: char opendir ();
20232: int
20233: main ()
20234: {
1.1.1.2 ! root 20235: return opendir ();
1.1 root 20236: ;
20237: return 0;
20238: }
20239: _ACEOF
1.1.1.2 ! root 20240: for ac_lib in '' dir; do
! 20241: if test -z "$ac_lib"; then
! 20242: ac_res="none required"
! 20243: else
! 20244: ac_res=-l$ac_lib
! 20245: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 20246: fi
! 20247: rm -f conftest.$ac_objext conftest$ac_exeext
! 20248: if { (ac_try="$ac_link"
! 20249: case "(($ac_try" in
! 20250: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20251: *) ac_try_echo=$ac_try;;
! 20252: esac
! 20253: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20254: (eval "$ac_link") 2>conftest.er1
1.1 root 20255: ac_status=$?
1.1.1.2 ! root 20256: grep -v '^ *+' conftest.er1 >conftest.err
! 20257: rm -f conftest.er1
! 20258: cat conftest.err >&5
1.1 root 20259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20260: (exit $ac_status); } && {
! 20261: test -z "$ac_c_werror_flag" ||
! 20262: test ! -s conftest.err
! 20263: } && test -s conftest$ac_exeext &&
! 20264: $as_test_x conftest$ac_exeext; then
! 20265: ac_cv_search_opendir=$ac_res
1.1 root 20266: else
20267: echo "$as_me: failed program was:" >&5
20268: sed 's/^/| /' conftest.$ac_ext >&5
20269:
1.1.1.2 ! root 20270:
1.1 root 20271: fi
1.1.1.2 ! root 20272:
! 20273: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20274: conftest$ac_exeext
! 20275: if test "${ac_cv_search_opendir+set}" = set; then
! 20276: break
! 20277: fi
! 20278: done
! 20279: if test "${ac_cv_search_opendir+set}" = set; then
! 20280: :
! 20281: else
! 20282: ac_cv_search_opendir=no
! 20283: fi
! 20284: rm conftest.$ac_ext
! 20285: LIBS=$ac_func_search_save_LIBS
! 20286: fi
! 20287: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 20288: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 20289: ac_res=$ac_cv_search_opendir
! 20290: if test "$ac_res" != no; then
! 20291: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
! 20292:
! 20293: fi
! 20294:
! 20295: else
! 20296: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 20297: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
! 20298: if test "${ac_cv_search_opendir+set}" = set; then
! 20299: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20300: else
! 20301: ac_func_search_save_LIBS=$LIBS
! 20302: cat >conftest.$ac_ext <<_ACEOF
1.1 root 20303: /* confdefs.h. */
20304: _ACEOF
20305: cat confdefs.h >>conftest.$ac_ext
20306: cat >>conftest.$ac_ext <<_ACEOF
20307: /* end confdefs.h. */
20308:
1.1.1.2 ! root 20309: /* Override any GCC internal prototype to avoid an error.
! 20310: Use char because int might match the return type of a GCC
! 20311: builtin and then its argument prototype would still apply. */
1.1 root 20312: #ifdef __cplusplus
20313: extern "C"
20314: #endif
20315: char opendir ();
20316: int
20317: main ()
20318: {
1.1.1.2 ! root 20319: return opendir ();
1.1 root 20320: ;
20321: return 0;
20322: }
20323: _ACEOF
1.1.1.2 ! root 20324: for ac_lib in '' x; do
! 20325: if test -z "$ac_lib"; then
! 20326: ac_res="none required"
! 20327: else
! 20328: ac_res=-l$ac_lib
! 20329: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 20330: fi
! 20331: rm -f conftest.$ac_objext conftest$ac_exeext
! 20332: if { (ac_try="$ac_link"
! 20333: case "(($ac_try" in
! 20334: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20335: *) ac_try_echo=$ac_try;;
! 20336: esac
! 20337: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20338: (eval "$ac_link") 2>conftest.er1
1.1 root 20339: ac_status=$?
1.1.1.2 ! root 20340: grep -v '^ *+' conftest.er1 >conftest.err
! 20341: rm -f conftest.er1
! 20342: cat conftest.err >&5
1.1 root 20343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20344: (exit $ac_status); } && {
! 20345: test -z "$ac_c_werror_flag" ||
! 20346: test ! -s conftest.err
! 20347: } && test -s conftest$ac_exeext &&
! 20348: $as_test_x conftest$ac_exeext; then
! 20349: ac_cv_search_opendir=$ac_res
1.1 root 20350: else
20351: echo "$as_me: failed program was:" >&5
20352: sed 's/^/| /' conftest.$ac_ext >&5
20353:
1.1.1.2 ! root 20354:
1.1 root 20355: fi
1.1.1.2 ! root 20356:
! 20357: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20358: conftest$ac_exeext
! 20359: if test "${ac_cv_search_opendir+set}" = set; then
! 20360: break
! 20361: fi
! 20362: done
! 20363: if test "${ac_cv_search_opendir+set}" = set; then
! 20364: :
! 20365: else
! 20366: ac_cv_search_opendir=no
1.1 root 20367: fi
1.1.1.2 ! root 20368: rm conftest.$ac_ext
1.1 root 20369: LIBS=$ac_func_search_save_LIBS
20370: fi
1.1.1.2 ! root 20371: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 20372: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
! 20373: ac_res=$ac_cv_search_opendir
! 20374: if test "$ac_res" != no; then
! 20375: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 root 20376:
20377: fi
20378:
20379: fi
20380:
1.1.1.2 ! root 20381: # Check whether --enable-ltdl-install was given.
1.1 root 20382: if test "${enable_ltdl_install+set}" = set; then
1.1.1.2 ! root 20383: enableval=$enable_ltdl_install;
! 20384: fi
1.1 root 20385:
20386:
1.1.1.2 ! root 20387: if test x"${enable_ltdl_install-no}" != xno; then
1.1 root 20388: INSTALL_LTDL_TRUE=
20389: INSTALL_LTDL_FALSE='#'
20390: else
20391: INSTALL_LTDL_TRUE='#'
20392: INSTALL_LTDL_FALSE=
20393: fi
20394:
1.1.1.2 ! root 20395: if test x"${enable_ltdl_convenience-no}" != xno; then
1.1 root 20396: CONVENIENCE_LTDL_TRUE=
20397: CONVENIENCE_LTDL_FALSE='#'
20398: else
20399: CONVENIENCE_LTDL_TRUE='#'
20400: CONVENIENCE_LTDL_FALSE=
20401: fi
20402:
20403:
20404:
1.1.1.2 ! root 20405: { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
! 20406: echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
1.1 root 20407: if test "${libltdl_cv_shlibext+set}" = set; then
20408: echo $ECHO_N "(cached) $ECHO_C" >&6
20409: else
20410:
20411: module=yes
1.1.1.2 ! root 20412: eval libltdl_cv_shlibext=$shrext_cmds
1.1 root 20413:
20414: fi
1.1.1.2 ! root 20415: { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
! 20416: echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
1.1 root 20417: if test -n "$libltdl_cv_shlibext"; then
20418:
20419: cat >>confdefs.h <<_ACEOF
20420: #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20421: _ACEOF
20422:
20423: fi
20424:
20425:
1.1.1.2 ! root 20426: { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
! 20427: echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
1.1 root 20428: if test "${libltdl_cv_shlibpath_var+set}" = set; then
20429: echo $ECHO_N "(cached) $ECHO_C" >&6
20430: else
20431: libltdl_cv_shlibpath_var="$shlibpath_var"
20432: fi
1.1.1.2 ! root 20433: { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
! 20434: echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
1.1 root 20435: if test -n "$libltdl_cv_shlibpath_var"; then
20436:
20437: cat >>confdefs.h <<_ACEOF
20438: #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20439: _ACEOF
20440:
20441: fi
20442:
20443:
1.1.1.2 ! root 20444: { echo "$as_me:$LINENO: checking for the default library search path" >&5
! 20445: echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
1.1 root 20446: if test "${libltdl_cv_sys_search_path+set}" = set; then
20447: echo $ECHO_N "(cached) $ECHO_C" >&6
20448: else
20449: libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20450: fi
1.1.1.2 ! root 20451: { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
! 20452: echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
1.1 root 20453: if test -n "$libltdl_cv_sys_search_path"; then
20454: sys_search_path=
20455: for dir in $libltdl_cv_sys_search_path; do
20456: if test -z "$sys_search_path"; then
20457: sys_search_path="$dir"
20458: else
20459: sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20460: fi
20461: done
20462:
20463: cat >>confdefs.h <<_ACEOF
20464: #define LTDL_SYSSEARCHPATH "$sys_search_path"
20465: _ACEOF
20466:
20467: fi
20468:
1.1.1.2 ! root 20469: { echo "$as_me:$LINENO: checking for objdir" >&5
! 20470: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
1.1 root 20471: if test "${libltdl_cv_objdir+set}" = set; then
20472: echo $ECHO_N "(cached) $ECHO_C" >&6
20473: else
20474: libltdl_cv_objdir="$objdir"
20475: if test -n "$objdir"; then
20476: :
20477: else
20478: rm -f .libs 2>/dev/null
20479: mkdir .libs 2>/dev/null
20480: if test -d .libs; then
20481: libltdl_cv_objdir=.libs
20482: else
20483: # MS-DOS does not allow filenames that begin with a dot.
20484: libltdl_cv_objdir=_libs
20485: fi
20486: rmdir .libs 2>/dev/null
20487: fi
20488:
20489: fi
1.1.1.2 ! root 20490: { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
! 20491: echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
1.1 root 20492:
20493: cat >>confdefs.h <<_ACEOF
20494: #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20495: _ACEOF
20496:
20497:
20498:
1.1.1.2 ! root 20499: { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 20500: echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
1.1 root 20501: if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20502: echo $ECHO_N "(cached) $ECHO_C" >&6
20503: else
20504: if test -n "$lt_cv_sys_global_symbol_pipe"; then
20505: libltdl_cv_preloaded_symbols=yes
20506: else
20507: libltdl_cv_preloaded_symbols=no
20508: fi
20509:
20510: fi
1.1.1.2 ! root 20511: { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
! 20512: echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
1.1 root 20513: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20514:
20515: cat >>confdefs.h <<\_ACEOF
20516: #define HAVE_PRELOADED_SYMBOLS 1
20517: _ACEOF
20518:
20519: fi
20520:
20521: LIBADD_DL=
20522:
20523: ac_ext=c
20524: ac_cpp='$CPP $CPPFLAGS'
20525: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20526: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20527: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20528:
20529:
1.1.1.2 ! root 20530: { echo "$as_me:$LINENO: checking for shl_load" >&5
! 20531: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
1.1 root 20532: if test "${ac_cv_func_shl_load+set}" = set; then
20533: echo $ECHO_N "(cached) $ECHO_C" >&6
20534: else
20535: cat >conftest.$ac_ext <<_ACEOF
20536: /* confdefs.h. */
20537: _ACEOF
20538: cat confdefs.h >>conftest.$ac_ext
20539: cat >>conftest.$ac_ext <<_ACEOF
20540: /* end confdefs.h. */
1.1.1.2 ! root 20541: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 20542: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20543: #define shl_load innocuous_shl_load
! 20544:
1.1 root 20545: /* System header to define __stub macros and hopefully few prototypes,
20546: which can conflict with char shl_load (); below.
20547: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20548: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 20549:
1.1 root 20550: #ifdef __STDC__
20551: # include <limits.h>
20552: #else
20553: # include <assert.h>
20554: #endif
1.1.1.2 ! root 20555:
! 20556: #undef shl_load
! 20557:
! 20558: /* Override any GCC internal prototype to avoid an error.
! 20559: Use char because int might match the return type of a GCC
! 20560: builtin and then its argument prototype would still apply. */
1.1 root 20561: #ifdef __cplusplus
20562: extern "C"
20563: #endif
20564: char shl_load ();
20565: /* The GNU C library defines this for functions which it implements
20566: to always fail with ENOSYS. Some functions are actually named
20567: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 20568: #if defined __stub_shl_load || defined __stub___shl_load
1.1 root 20569: choke me
20570: #endif
20571:
20572: int
20573: main ()
20574: {
1.1.1.2 ! root 20575: return shl_load ();
1.1 root 20576: ;
20577: return 0;
20578: }
20579: _ACEOF
20580: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20581: if { (ac_try="$ac_link"
! 20582: case "(($ac_try" in
! 20583: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20584: *) ac_try_echo=$ac_try;;
! 20585: esac
! 20586: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20587: (eval "$ac_link") 2>conftest.er1
1.1 root 20588: ac_status=$?
1.1.1.2 ! root 20589: grep -v '^ *+' conftest.er1 >conftest.err
! 20590: rm -f conftest.er1
! 20591: cat conftest.err >&5
1.1 root 20592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20593: (exit $ac_status); } && {
! 20594: test -z "$ac_c_werror_flag" ||
! 20595: test ! -s conftest.err
! 20596: } && test -s conftest$ac_exeext &&
! 20597: $as_test_x conftest$ac_exeext; then
1.1 root 20598: ac_cv_func_shl_load=yes
20599: else
20600: echo "$as_me: failed program was:" >&5
20601: sed 's/^/| /' conftest.$ac_ext >&5
20602:
1.1.1.2 ! root 20603: ac_cv_func_shl_load=no
1.1 root 20604: fi
1.1.1.2 ! root 20605:
! 20606: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20607: conftest$ac_exeext conftest.$ac_ext
1.1 root 20608: fi
1.1.1.2 ! root 20609: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 20610: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
1.1 root 20611: if test $ac_cv_func_shl_load = yes; then
20612:
20613: cat >>confdefs.h <<\_ACEOF
20614: #define HAVE_SHL_LOAD 1
20615: _ACEOF
20616:
20617: else
1.1.1.2 ! root 20618: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 20619: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
1.1 root 20620: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20621: echo $ECHO_N "(cached) $ECHO_C" >&6
20622: else
20623: ac_check_lib_save_LIBS=$LIBS
20624: LIBS="-ldld $LIBS"
20625: cat >conftest.$ac_ext <<_ACEOF
20626: /* confdefs.h. */
20627: _ACEOF
20628: cat confdefs.h >>conftest.$ac_ext
20629: cat >>conftest.$ac_ext <<_ACEOF
20630: /* end confdefs.h. */
20631:
1.1.1.2 ! root 20632: /* Override any GCC internal prototype to avoid an error.
! 20633: Use char because int might match the return type of a GCC
! 20634: builtin and then its argument prototype would still apply. */
1.1 root 20635: #ifdef __cplusplus
20636: extern "C"
20637: #endif
20638: char shl_load ();
20639: int
20640: main ()
20641: {
1.1.1.2 ! root 20642: return shl_load ();
1.1 root 20643: ;
20644: return 0;
20645: }
20646: _ACEOF
20647: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20648: if { (ac_try="$ac_link"
! 20649: case "(($ac_try" in
! 20650: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20651: *) ac_try_echo=$ac_try;;
! 20652: esac
! 20653: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20654: (eval "$ac_link") 2>conftest.er1
1.1 root 20655: ac_status=$?
1.1.1.2 ! root 20656: grep -v '^ *+' conftest.er1 >conftest.err
! 20657: rm -f conftest.er1
! 20658: cat conftest.err >&5
1.1 root 20659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20660: (exit $ac_status); } && {
! 20661: test -z "$ac_c_werror_flag" ||
! 20662: test ! -s conftest.err
! 20663: } && test -s conftest$ac_exeext &&
! 20664: $as_test_x conftest$ac_exeext; then
1.1 root 20665: ac_cv_lib_dld_shl_load=yes
20666: else
20667: echo "$as_me: failed program was:" >&5
20668: sed 's/^/| /' conftest.$ac_ext >&5
20669:
1.1.1.2 ! root 20670: ac_cv_lib_dld_shl_load=no
1.1 root 20671: fi
1.1.1.2 ! root 20672:
! 20673: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20674: conftest$ac_exeext conftest.$ac_ext
1.1 root 20675: LIBS=$ac_check_lib_save_LIBS
20676: fi
1.1.1.2 ! root 20677: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 20678: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
1.1 root 20679: if test $ac_cv_lib_dld_shl_load = yes; then
20680:
20681: cat >>confdefs.h <<\_ACEOF
20682: #define HAVE_SHL_LOAD 1
20683: _ACEOF
20684:
20685: LIBADD_DL="$LIBADD_DL -ldld"
20686: else
1.1.1.2 ! root 20687: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 20688: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
1.1 root 20689: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20690: echo $ECHO_N "(cached) $ECHO_C" >&6
20691: else
20692: ac_check_lib_save_LIBS=$LIBS
20693: LIBS="-ldl $LIBS"
20694: cat >conftest.$ac_ext <<_ACEOF
20695: /* confdefs.h. */
20696: _ACEOF
20697: cat confdefs.h >>conftest.$ac_ext
20698: cat >>conftest.$ac_ext <<_ACEOF
20699: /* end confdefs.h. */
20700:
1.1.1.2 ! root 20701: /* Override any GCC internal prototype to avoid an error.
! 20702: Use char because int might match the return type of a GCC
! 20703: builtin and then its argument prototype would still apply. */
1.1 root 20704: #ifdef __cplusplus
20705: extern "C"
20706: #endif
20707: char dlopen ();
20708: int
20709: main ()
20710: {
1.1.1.2 ! root 20711: return dlopen ();
1.1 root 20712: ;
20713: return 0;
20714: }
20715: _ACEOF
20716: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20717: if { (ac_try="$ac_link"
! 20718: case "(($ac_try" in
! 20719: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20720: *) ac_try_echo=$ac_try;;
! 20721: esac
! 20722: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20723: (eval "$ac_link") 2>conftest.er1
1.1 root 20724: ac_status=$?
1.1.1.2 ! root 20725: grep -v '^ *+' conftest.er1 >conftest.err
! 20726: rm -f conftest.er1
! 20727: cat conftest.err >&5
1.1 root 20728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20729: (exit $ac_status); } && {
! 20730: test -z "$ac_c_werror_flag" ||
! 20731: test ! -s conftest.err
! 20732: } && test -s conftest$ac_exeext &&
! 20733: $as_test_x conftest$ac_exeext; then
1.1 root 20734: ac_cv_lib_dl_dlopen=yes
20735: else
20736: echo "$as_me: failed program was:" >&5
20737: sed 's/^/| /' conftest.$ac_ext >&5
20738:
1.1.1.2 ! root 20739: ac_cv_lib_dl_dlopen=no
1.1 root 20740: fi
1.1.1.2 ! root 20741:
! 20742: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20743: conftest$ac_exeext conftest.$ac_ext
1.1 root 20744: LIBS=$ac_check_lib_save_LIBS
20745: fi
1.1.1.2 ! root 20746: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 20747: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
1.1 root 20748: if test $ac_cv_lib_dl_dlopen = yes; then
20749:
20750: cat >>confdefs.h <<\_ACEOF
20751: #define HAVE_LIBDL 1
20752: _ACEOF
20753:
20754: LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20755: else
20756: cat >conftest.$ac_ext <<_ACEOF
20757: /* confdefs.h. */
20758: _ACEOF
20759: cat confdefs.h >>conftest.$ac_ext
20760: cat >>conftest.$ac_ext <<_ACEOF
20761: /* end confdefs.h. */
20762: #if HAVE_DLFCN_H
20763: # include <dlfcn.h>
20764: #endif
20765:
20766: int
20767: main ()
20768: {
20769: dlopen(0, 0);
20770: ;
20771: return 0;
20772: }
20773: _ACEOF
20774: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20775: if { (ac_try="$ac_link"
! 20776: case "(($ac_try" in
! 20777: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20778: *) ac_try_echo=$ac_try;;
! 20779: esac
! 20780: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20781: (eval "$ac_link") 2>conftest.er1
1.1 root 20782: ac_status=$?
1.1.1.2 ! root 20783: grep -v '^ *+' conftest.er1 >conftest.err
! 20784: rm -f conftest.er1
! 20785: cat conftest.err >&5
1.1 root 20786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20787: (exit $ac_status); } && {
! 20788: test -z "$ac_c_werror_flag" ||
! 20789: test ! -s conftest.err
! 20790: } && test -s conftest$ac_exeext &&
! 20791: $as_test_x conftest$ac_exeext; then
1.1 root 20792:
20793: cat >>confdefs.h <<\_ACEOF
20794: #define HAVE_LIBDL 1
20795: _ACEOF
20796: libltdl_cv_func_dlopen="yes"
20797: else
20798: echo "$as_me: failed program was:" >&5
20799: sed 's/^/| /' conftest.$ac_ext >&5
20800:
1.1.1.2 ! root 20801: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 20802: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
1.1 root 20803: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20804: echo $ECHO_N "(cached) $ECHO_C" >&6
20805: else
20806: ac_check_lib_save_LIBS=$LIBS
20807: LIBS="-lsvld $LIBS"
20808: cat >conftest.$ac_ext <<_ACEOF
20809: /* confdefs.h. */
20810: _ACEOF
20811: cat confdefs.h >>conftest.$ac_ext
20812: cat >>conftest.$ac_ext <<_ACEOF
20813: /* end confdefs.h. */
20814:
1.1.1.2 ! root 20815: /* Override any GCC internal prototype to avoid an error.
! 20816: Use char because int might match the return type of a GCC
! 20817: builtin and then its argument prototype would still apply. */
1.1 root 20818: #ifdef __cplusplus
20819: extern "C"
20820: #endif
20821: char dlopen ();
20822: int
20823: main ()
20824: {
1.1.1.2 ! root 20825: return dlopen ();
1.1 root 20826: ;
20827: return 0;
20828: }
20829: _ACEOF
20830: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20831: if { (ac_try="$ac_link"
! 20832: case "(($ac_try" in
! 20833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20834: *) ac_try_echo=$ac_try;;
! 20835: esac
! 20836: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20837: (eval "$ac_link") 2>conftest.er1
1.1 root 20838: ac_status=$?
1.1.1.2 ! root 20839: grep -v '^ *+' conftest.er1 >conftest.err
! 20840: rm -f conftest.er1
! 20841: cat conftest.err >&5
1.1 root 20842: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20843: (exit $ac_status); } && {
! 20844: test -z "$ac_c_werror_flag" ||
! 20845: test ! -s conftest.err
! 20846: } && test -s conftest$ac_exeext &&
! 20847: $as_test_x conftest$ac_exeext; then
1.1 root 20848: ac_cv_lib_svld_dlopen=yes
20849: else
20850: echo "$as_me: failed program was:" >&5
20851: sed 's/^/| /' conftest.$ac_ext >&5
20852:
1.1.1.2 ! root 20853: ac_cv_lib_svld_dlopen=no
1.1 root 20854: fi
1.1.1.2 ! root 20855:
! 20856: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20857: conftest$ac_exeext conftest.$ac_ext
1.1 root 20858: LIBS=$ac_check_lib_save_LIBS
20859: fi
1.1.1.2 ! root 20860: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 20861: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
1.1 root 20862: if test $ac_cv_lib_svld_dlopen = yes; then
20863:
20864: cat >>confdefs.h <<\_ACEOF
20865: #define HAVE_LIBDL 1
20866: _ACEOF
20867:
20868: LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20869: else
1.1.1.2 ! root 20870: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 20871: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
1.1 root 20872: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20873: echo $ECHO_N "(cached) $ECHO_C" >&6
20874: else
20875: ac_check_lib_save_LIBS=$LIBS
20876: LIBS="-ldld $LIBS"
20877: cat >conftest.$ac_ext <<_ACEOF
20878: /* confdefs.h. */
20879: _ACEOF
20880: cat confdefs.h >>conftest.$ac_ext
20881: cat >>conftest.$ac_ext <<_ACEOF
20882: /* end confdefs.h. */
20883:
1.1.1.2 ! root 20884: /* Override any GCC internal prototype to avoid an error.
! 20885: Use char because int might match the return type of a GCC
! 20886: builtin and then its argument prototype would still apply. */
1.1 root 20887: #ifdef __cplusplus
20888: extern "C"
20889: #endif
20890: char dld_link ();
20891: int
20892: main ()
20893: {
1.1.1.2 ! root 20894: return dld_link ();
1.1 root 20895: ;
20896: return 0;
20897: }
20898: _ACEOF
20899: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20900: if { (ac_try="$ac_link"
! 20901: case "(($ac_try" in
! 20902: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20903: *) ac_try_echo=$ac_try;;
! 20904: esac
! 20905: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20906: (eval "$ac_link") 2>conftest.er1
1.1 root 20907: ac_status=$?
1.1.1.2 ! root 20908: grep -v '^ *+' conftest.er1 >conftest.err
! 20909: rm -f conftest.er1
! 20910: cat conftest.err >&5
1.1 root 20911: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 20912: (exit $ac_status); } && {
! 20913: test -z "$ac_c_werror_flag" ||
! 20914: test ! -s conftest.err
! 20915: } && test -s conftest$ac_exeext &&
! 20916: $as_test_x conftest$ac_exeext; then
1.1 root 20917: ac_cv_lib_dld_dld_link=yes
20918: else
20919: echo "$as_me: failed program was:" >&5
20920: sed 's/^/| /' conftest.$ac_ext >&5
20921:
1.1.1.2 ! root 20922: ac_cv_lib_dld_dld_link=no
1.1 root 20923: fi
1.1.1.2 ! root 20924:
! 20925: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 20926: conftest$ac_exeext conftest.$ac_ext
1.1 root 20927: LIBS=$ac_check_lib_save_LIBS
20928: fi
1.1.1.2 ! root 20929: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 20930: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
1.1 root 20931: if test $ac_cv_lib_dld_dld_link = yes; then
20932:
20933: cat >>confdefs.h <<\_ACEOF
20934: #define HAVE_DLD 1
20935: _ACEOF
20936:
20937: LIBADD_DL="$LIBADD_DL -ldld"
20938: else
1.1.1.2 ! root 20939: { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
! 20940: echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
1.1 root 20941: if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20942: echo $ECHO_N "(cached) $ECHO_C" >&6
20943: else
20944: cat >conftest.$ac_ext <<_ACEOF
20945: /* confdefs.h. */
20946: _ACEOF
20947: cat confdefs.h >>conftest.$ac_ext
20948: cat >>conftest.$ac_ext <<_ACEOF
20949: /* end confdefs.h. */
1.1.1.2 ! root 20950: /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
! 20951: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20952: #define _dyld_func_lookup innocuous__dyld_func_lookup
! 20953:
1.1 root 20954: /* System header to define __stub macros and hopefully few prototypes,
20955: which can conflict with char _dyld_func_lookup (); below.
20956: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20957: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 20958:
1.1 root 20959: #ifdef __STDC__
20960: # include <limits.h>
20961: #else
20962: # include <assert.h>
20963: #endif
1.1.1.2 ! root 20964:
! 20965: #undef _dyld_func_lookup
! 20966:
! 20967: /* Override any GCC internal prototype to avoid an error.
! 20968: Use char because int might match the return type of a GCC
! 20969: builtin and then its argument prototype would still apply. */
1.1 root 20970: #ifdef __cplusplus
20971: extern "C"
20972: #endif
20973: char _dyld_func_lookup ();
20974: /* The GNU C library defines this for functions which it implements
20975: to always fail with ENOSYS. Some functions are actually named
20976: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 20977: #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
1.1 root 20978: choke me
20979: #endif
20980:
20981: int
20982: main ()
20983: {
1.1.1.2 ! root 20984: return _dyld_func_lookup ();
1.1 root 20985: ;
20986: return 0;
20987: }
20988: _ACEOF
20989: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 20990: if { (ac_try="$ac_link"
! 20991: case "(($ac_try" in
! 20992: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 20993: *) ac_try_echo=$ac_try;;
! 20994: esac
! 20995: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 20996: (eval "$ac_link") 2>conftest.er1
1.1 root 20997: ac_status=$?
1.1.1.2 ! root 20998: grep -v '^ *+' conftest.er1 >conftest.err
! 20999: rm -f conftest.er1
! 21000: cat conftest.err >&5
1.1 root 21001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21002: (exit $ac_status); } && {
! 21003: test -z "$ac_c_werror_flag" ||
! 21004: test ! -s conftest.err
! 21005: } && test -s conftest$ac_exeext &&
! 21006: $as_test_x conftest$ac_exeext; then
1.1 root 21007: ac_cv_func__dyld_func_lookup=yes
21008: else
21009: echo "$as_me: failed program was:" >&5
21010: sed 's/^/| /' conftest.$ac_ext >&5
21011:
1.1.1.2 ! root 21012: ac_cv_func__dyld_func_lookup=no
1.1 root 21013: fi
1.1.1.2 ! root 21014:
! 21015: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21016: conftest$ac_exeext conftest.$ac_ext
1.1 root 21017: fi
1.1.1.2 ! root 21018: { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
! 21019: echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
1.1 root 21020: if test $ac_cv_func__dyld_func_lookup = yes; then
21021:
21022: cat >>confdefs.h <<\_ACEOF
21023: #define HAVE_DYLD 1
21024: _ACEOF
21025:
21026: fi
21027:
21028:
21029: fi
21030:
21031:
21032: fi
21033:
21034:
21035: fi
1.1.1.2 ! root 21036:
! 21037: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21038: conftest$ac_exeext conftest.$ac_ext
1.1 root 21039:
21040: fi
21041:
21042:
21043: fi
21044:
21045:
21046: fi
21047:
21048:
21049: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21050: then
21051: lt_save_LIBS="$LIBS"
21052: LIBS="$LIBS $LIBADD_DL"
21053:
21054: for ac_func in dlerror
21055: do
21056: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 21057: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21058: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 21059: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21060: echo $ECHO_N "(cached) $ECHO_C" >&6
21061: else
21062: cat >conftest.$ac_ext <<_ACEOF
21063: /* confdefs.h. */
21064: _ACEOF
21065: cat confdefs.h >>conftest.$ac_ext
21066: cat >>conftest.$ac_ext <<_ACEOF
21067: /* end confdefs.h. */
1.1.1.2 ! root 21068: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 21069: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 21070: #define $ac_func innocuous_$ac_func
! 21071:
1.1 root 21072: /* System header to define __stub macros and hopefully few prototypes,
21073: which can conflict with char $ac_func (); below.
21074: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21075: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 21076:
1.1 root 21077: #ifdef __STDC__
21078: # include <limits.h>
21079: #else
21080: # include <assert.h>
21081: #endif
1.1.1.2 ! root 21082:
! 21083: #undef $ac_func
! 21084:
! 21085: /* Override any GCC internal prototype to avoid an error.
! 21086: Use char because int might match the return type of a GCC
! 21087: builtin and then its argument prototype would still apply. */
1.1 root 21088: #ifdef __cplusplus
21089: extern "C"
21090: #endif
21091: char $ac_func ();
21092: /* The GNU C library defines this for functions which it implements
21093: to always fail with ENOSYS. Some functions are actually named
21094: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 21095: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 21096: choke me
21097: #endif
21098:
21099: int
21100: main ()
21101: {
1.1.1.2 ! root 21102: return $ac_func ();
1.1 root 21103: ;
21104: return 0;
21105: }
21106: _ACEOF
21107: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 21108: if { (ac_try="$ac_link"
! 21109: case "(($ac_try" in
! 21110: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21111: *) ac_try_echo=$ac_try;;
! 21112: esac
! 21113: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21114: (eval "$ac_link") 2>conftest.er1
1.1 root 21115: ac_status=$?
1.1.1.2 ! root 21116: grep -v '^ *+' conftest.er1 >conftest.err
! 21117: rm -f conftest.er1
! 21118: cat conftest.err >&5
1.1 root 21119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21120: (exit $ac_status); } && {
! 21121: test -z "$ac_c_werror_flag" ||
! 21122: test ! -s conftest.err
! 21123: } && test -s conftest$ac_exeext &&
! 21124: $as_test_x conftest$ac_exeext; then
1.1 root 21125: eval "$as_ac_var=yes"
21126: else
21127: echo "$as_me: failed program was:" >&5
21128: sed 's/^/| /' conftest.$ac_ext >&5
21129:
1.1.1.2 ! root 21130: eval "$as_ac_var=no"
1.1 root 21131: fi
1.1.1.2 ! root 21132:
! 21133: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21134: conftest$ac_exeext conftest.$ac_ext
1.1 root 21135: fi
1.1.1.2 ! root 21136: ac_res=`eval echo '${'$as_ac_var'}'`
! 21137: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21138: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21139: if test `eval echo '${'$as_ac_var'}'` = yes; then
21140: cat >>confdefs.h <<_ACEOF
21141: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21142: _ACEOF
21143:
21144: fi
21145: done
21146:
21147: LIBS="$lt_save_LIBS"
21148: fi
21149: ac_ext=c
21150: ac_cpp='$CPP $CPPFLAGS'
21151: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153: ac_compiler_gnu=$ac_cv_c_compiler_gnu
21154:
21155:
21156:
1.1.1.2 ! root 21157: { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
! 21158: echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
1.1 root 21159: if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21160: echo $ECHO_N "(cached) $ECHO_C" >&6
21161: else
21162: ac_cv_sys_symbol_underscore=no
21163: cat > conftest.$ac_ext <<EOF
21164: void nm_test_func(){}
21165: int main(){nm_test_func;return 0;}
21166: EOF
21167: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168: (eval $ac_compile) 2>&5
21169: ac_status=$?
21170: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171: (exit $ac_status); }; then
21172: # Now try to grab the symbols.
21173: ac_nlist=conftest.nm
21174: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21175: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21176: ac_status=$?
21177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178: (exit $ac_status); } && test -s "$ac_nlist"; then
21179: # See whether the symbols have a leading underscore.
21180: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21181: ac_cv_sys_symbol_underscore=yes
21182: else
21183: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21184: :
21185: else
21186: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21187: fi
21188: fi
21189: else
21190: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21191: fi
21192: else
21193: echo "configure: failed program was:" >&5
21194: cat conftest.c >&5
21195: fi
21196: rm -rf conftest*
21197:
21198: fi
1.1.1.2 ! root 21199: { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
! 21200: echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
1.1 root 21201:
21202:
21203: if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21204: if test x"$libltdl_cv_func_dlopen" = xyes ||
21205: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.1.1.2 ! root 21206: { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
! 21207: echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
1.1 root 21208: if test "${libltdl_cv_need_uscore+set}" = set; then
21209: echo $ECHO_N "(cached) $ECHO_C" >&6
21210: else
21211: libltdl_cv_need_uscore=unknown
21212: save_LIBS="$LIBS"
21213: LIBS="$LIBS $LIBADD_DL"
21214: if test "$cross_compiling" = yes; then :
21215: libltdl_cv_need_uscore=cross
21216: else
21217: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21218: lt_status=$lt_dlunknown
21219: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 21220: #line 20923 "configure"
1.1 root 21221: #include "confdefs.h"
21222:
21223: #if HAVE_DLFCN_H
21224: #include <dlfcn.h>
21225: #endif
21226:
21227: #include <stdio.h>
21228:
21229: #ifdef RTLD_GLOBAL
21230: # define LT_DLGLOBAL RTLD_GLOBAL
21231: #else
21232: # ifdef DL_GLOBAL
21233: # define LT_DLGLOBAL DL_GLOBAL
21234: # else
21235: # define LT_DLGLOBAL 0
21236: # endif
21237: #endif
21238:
21239: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21240: find out it does not work in some platform. */
21241: #ifndef LT_DLLAZY_OR_NOW
21242: # ifdef RTLD_LAZY
21243: # define LT_DLLAZY_OR_NOW RTLD_LAZY
21244: # else
21245: # ifdef DL_LAZY
21246: # define LT_DLLAZY_OR_NOW DL_LAZY
21247: # else
21248: # ifdef RTLD_NOW
21249: # define LT_DLLAZY_OR_NOW RTLD_NOW
21250: # else
21251: # ifdef DL_NOW
21252: # define LT_DLLAZY_OR_NOW DL_NOW
21253: # else
21254: # define LT_DLLAZY_OR_NOW 0
21255: # endif
21256: # endif
21257: # endif
21258: # endif
21259: #endif
21260:
21261: #ifdef __cplusplus
21262: extern "C" void exit (int);
21263: #endif
21264:
21265: void fnord() { int i=42;}
21266: int main ()
21267: {
21268: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21269: int status = $lt_dlunknown;
21270:
21271: if (self)
21272: {
21273: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21274: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21275: /* dlclose (self); */
21276: }
1.1.1.2 ! root 21277: else
! 21278: puts (dlerror ());
1.1 root 21279:
21280: exit (status);
21281: }
21282: EOF
21283: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284: (eval $ac_link) 2>&5
21285: ac_status=$?
21286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.1.1.2 ! root 21288: (./conftest; exit; ) >&5 2>/dev/null
1.1 root 21289: lt_status=$?
21290: case x$lt_status in
21291: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21292: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
1.1.1.2 ! root 21293: x$lt_dlunknown|x*) ;;
1.1 root 21294: esac
21295: else :
21296: # compilation failed
21297:
21298: fi
21299: fi
21300: rm -fr conftest*
21301:
21302: LIBS="$save_LIBS"
21303:
21304: fi
1.1.1.2 ! root 21305: { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
! 21306: echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
1.1 root 21307: fi
21308: fi
21309:
21310: if test x"$libltdl_cv_need_uscore" = xyes; then
21311:
21312: cat >>confdefs.h <<\_ACEOF
21313: #define NEED_USCORE 1
21314: _ACEOF
21315:
21316: fi
21317:
21318:
1.1.1.2 ! root 21319: { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
! 21320: echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
1.1 root 21321: if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21322: echo $ECHO_N "(cached) $ECHO_C" >&6
21323: else
21324: # PORTME does your system automatically load deplibs for dlopen?
21325: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21326: # For now, we just catch OSes we know something about -- in the
21327: # future, we'll try test this programmatically.
21328: libltdl_cv_sys_dlopen_deplibs=unknown
21329: case "$host_os" in
21330: aix3*|aix4.1.*|aix4.2.*)
21331: # Unknown whether this is true for these versions of AIX, but
21332: # we want this `case' here to explicitly catch those versions.
21333: libltdl_cv_sys_dlopen_deplibs=unknown
21334: ;;
21335: aix[45]*)
21336: libltdl_cv_sys_dlopen_deplibs=yes
21337: ;;
21338: darwin*)
21339: # Assuming the user has installed a libdl from somewhere, this is true
21340: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21341: libltdl_cv_sys_dlopen_deplibs=yes
21342: ;;
1.1.1.2 ! root 21343: freebsd* | dragonfly*)
! 21344: libltdl_cv_sys_dlopen_deplibs=yes
! 21345: ;;
! 21346: gnu* | linux* | k*bsd*-gnu)
! 21347: # GNU and its variants, using gnu ld.so (Glibc)
1.1 root 21348: libltdl_cv_sys_dlopen_deplibs=yes
21349: ;;
21350: hpux10*|hpux11*)
21351: libltdl_cv_sys_dlopen_deplibs=yes
21352: ;;
1.1.1.2 ! root 21353: interix*)
! 21354: libltdl_cv_sys_dlopen_deplibs=yes
! 21355: ;;
1.1 root 21356: irix[12345]*|irix6.[01]*)
21357: # Catch all versions of IRIX before 6.2, and indicate that we don't
21358: # know how it worked for any of those versions.
21359: libltdl_cv_sys_dlopen_deplibs=unknown
21360: ;;
21361: irix*)
21362: # The case above catches anything before 6.2, and it's known that
21363: # at 6.2 and later dlopen does load deplibs.
21364: libltdl_cv_sys_dlopen_deplibs=yes
21365: ;;
21366: netbsd*)
21367: libltdl_cv_sys_dlopen_deplibs=yes
21368: ;;
21369: openbsd*)
21370: libltdl_cv_sys_dlopen_deplibs=yes
21371: ;;
21372: osf[1234]*)
21373: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21374: # it did *not* use an RPATH in a shared library to find objects the
21375: # library depends on, so we explictly say `no'.
21376: libltdl_cv_sys_dlopen_deplibs=no
21377: ;;
21378: osf5.0|osf5.0a|osf5.1)
21379: # dlopen *does* load deplibs and with the right loader patch applied
21380: # it even uses RPATH in a shared library to search for shared objects
21381: # that the library depends on, but there's no easy way to know if that
21382: # patch is installed. Since this is the case, all we can really
21383: # say is unknown -- it depends on the patch being installed. If
21384: # it is, this changes to `yes'. Without it, it would be `no'.
21385: libltdl_cv_sys_dlopen_deplibs=unknown
21386: ;;
21387: osf*)
21388: # the two cases above should catch all versions of osf <= 5.1. Read
21389: # the comments above for what we know about them.
21390: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21391: # is used to find them so we can finally say `yes'.
21392: libltdl_cv_sys_dlopen_deplibs=yes
21393: ;;
21394: solaris*)
21395: libltdl_cv_sys_dlopen_deplibs=yes
21396: ;;
1.1.1.2 ! root 21397: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 21398: libltdl_cv_sys_dlopen_deplibs=yes
! 21399: ;;
1.1 root 21400: esac
21401:
21402: fi
1.1.1.2 ! root 21403: { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
! 21404: echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
1.1 root 21405: if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21406:
21407: cat >>confdefs.h <<\_ACEOF
21408: #define LTDL_DLOPEN_DEPLIBS 1
21409: _ACEOF
21410:
21411: fi
21412:
21413:
21414: for ac_header in argz.h
21415: do
21416: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.2 ! root 21417: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 21418: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 21419: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 21420: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21421: echo $ECHO_N "(cached) $ECHO_C" >&6
21422: fi
1.1.1.2 ! root 21423: ac_res=`eval echo '${'$as_ac_Header'}'`
! 21424: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21425: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21426: else
21427: # Is the header compilable?
1.1.1.2 ! root 21428: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 21429: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 21430: cat >conftest.$ac_ext <<_ACEOF
21431: /* confdefs.h. */
21432: _ACEOF
21433: cat confdefs.h >>conftest.$ac_ext
21434: cat >>conftest.$ac_ext <<_ACEOF
21435: /* end confdefs.h. */
21436: $ac_includes_default
21437: #include <$ac_header>
21438: _ACEOF
21439: rm -f conftest.$ac_objext
1.1.1.2 ! root 21440: if { (ac_try="$ac_compile"
! 21441: case "(($ac_try" in
! 21442: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21443: *) ac_try_echo=$ac_try;;
! 21444: esac
! 21445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21446: (eval "$ac_compile") 2>conftest.er1
1.1 root 21447: ac_status=$?
1.1.1.2 ! root 21448: grep -v '^ *+' conftest.er1 >conftest.err
! 21449: rm -f conftest.er1
! 21450: cat conftest.err >&5
1.1 root 21451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21452: (exit $ac_status); } && {
! 21453: test -z "$ac_c_werror_flag" ||
! 21454: test ! -s conftest.err
! 21455: } && test -s conftest.$ac_objext; then
1.1 root 21456: ac_header_compiler=yes
21457: else
21458: echo "$as_me: failed program was:" >&5
21459: sed 's/^/| /' conftest.$ac_ext >&5
21460:
1.1.1.2 ! root 21461: ac_header_compiler=no
1.1 root 21462: fi
1.1.1.2 ! root 21463:
! 21464: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 21465: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 21466: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 21467:
21468: # Is the header present?
1.1.1.2 ! root 21469: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 21470: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 21471: cat >conftest.$ac_ext <<_ACEOF
21472: /* confdefs.h. */
21473: _ACEOF
21474: cat confdefs.h >>conftest.$ac_ext
21475: cat >>conftest.$ac_ext <<_ACEOF
21476: /* end confdefs.h. */
21477: #include <$ac_header>
21478: _ACEOF
1.1.1.2 ! root 21479: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 21480: case "(($ac_try" in
! 21481: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21482: *) ac_try_echo=$ac_try;;
! 21483: esac
! 21484: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21485: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 21486: ac_status=$?
21487: grep -v '^ *+' conftest.er1 >conftest.err
21488: rm -f conftest.er1
21489: cat conftest.err >&5
21490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21491: (exit $ac_status); } >/dev/null && {
! 21492: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 21493: test ! -s conftest.err
! 21494: }; then
1.1 root 21495: ac_header_preproc=yes
21496: else
21497: echo "$as_me: failed program was:" >&5
21498: sed 's/^/| /' conftest.$ac_ext >&5
21499:
21500: ac_header_preproc=no
21501: fi
1.1.1.2 ! root 21502:
1.1 root 21503: rm -f conftest.err conftest.$ac_ext
1.1.1.2 ! root 21504: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 21505: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 21506:
21507: # So? What about this header?
1.1.1.2 ! root 21508: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 21509: yes:no: )
1.1 root 21510: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.2 ! root 21512: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 21513: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 21514: ac_header_preproc=yes
1.1 root 21515: ;;
1.1.1.2 ! root 21516: no:yes:* )
1.1 root 21517: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.2 ! root 21519: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 21520: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 21521: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 21522: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 21523: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 21524: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 21525: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.2 ! root 21527: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 21528: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 21529: ( cat <<\_ASBOX
! 21530: ## ---------------------------------- ##
! 21531: ## Report this to [email protected] ##
! 21532: ## ---------------------------------- ##
1.1 root 21533: _ASBOX
1.1.1.2 ! root 21534: ) | sed "s/^/$as_me: WARNING: /" >&2
1.1 root 21535: ;;
21536: esac
1.1.1.2 ! root 21537: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 21538: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 21539: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21540: echo $ECHO_N "(cached) $ECHO_C" >&6
21541: else
1.1.1.2 ! root 21542: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 21543: fi
1.1.1.2 ! root 21544: ac_res=`eval echo '${'$as_ac_Header'}'`
! 21545: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21546: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21547:
21548: fi
21549: if test `eval echo '${'$as_ac_Header'}'` = yes; then
21550: cat >>confdefs.h <<_ACEOF
21551: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21552: _ACEOF
21553:
21554: fi
21555:
21556: done
21557:
21558:
1.1.1.2 ! root 21559: { echo "$as_me:$LINENO: checking for error_t" >&5
! 21560: echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
1.1 root 21561: if test "${ac_cv_type_error_t+set}" = set; then
21562: echo $ECHO_N "(cached) $ECHO_C" >&6
21563: else
21564: cat >conftest.$ac_ext <<_ACEOF
21565: /* confdefs.h. */
21566: _ACEOF
21567: cat confdefs.h >>conftest.$ac_ext
21568: cat >>conftest.$ac_ext <<_ACEOF
21569: /* end confdefs.h. */
21570: #if HAVE_ARGZ_H
21571: # include <argz.h>
21572: #endif
21573:
1.1.1.2 ! root 21574: typedef error_t ac__type_new_;
1.1 root 21575: int
21576: main ()
21577: {
1.1.1.2 ! root 21578: if ((ac__type_new_ *) 0)
1.1 root 21579: return 0;
1.1.1.2 ! root 21580: if (sizeof (ac__type_new_))
1.1 root 21581: return 0;
21582: ;
21583: return 0;
21584: }
21585: _ACEOF
21586: rm -f conftest.$ac_objext
1.1.1.2 ! root 21587: if { (ac_try="$ac_compile"
! 21588: case "(($ac_try" in
! 21589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21590: *) ac_try_echo=$ac_try;;
! 21591: esac
! 21592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21593: (eval "$ac_compile") 2>conftest.er1
1.1 root 21594: ac_status=$?
1.1.1.2 ! root 21595: grep -v '^ *+' conftest.er1 >conftest.err
! 21596: rm -f conftest.er1
! 21597: cat conftest.err >&5
1.1 root 21598: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21599: (exit $ac_status); } && {
! 21600: test -z "$ac_c_werror_flag" ||
! 21601: test ! -s conftest.err
! 21602: } && test -s conftest.$ac_objext; then
1.1 root 21603: ac_cv_type_error_t=yes
21604: else
21605: echo "$as_me: failed program was:" >&5
21606: sed 's/^/| /' conftest.$ac_ext >&5
21607:
1.1.1.2 ! root 21608: ac_cv_type_error_t=no
1.1 root 21609: fi
1.1.1.2 ! root 21610:
! 21611: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 21612: fi
1.1.1.2 ! root 21613: { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
! 21614: echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
1.1 root 21615: if test $ac_cv_type_error_t = yes; then
21616:
21617: cat >>confdefs.h <<_ACEOF
21618: #define HAVE_ERROR_T 1
21619: _ACEOF
21620:
21621:
21622: else
21623:
21624: cat >>confdefs.h <<\_ACEOF
21625: #define error_t int
21626: _ACEOF
21627:
21628: fi
21629:
21630:
21631:
21632:
21633:
21634:
21635:
21636: for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21637: do
21638: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 21639: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21640: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 21641: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21642: echo $ECHO_N "(cached) $ECHO_C" >&6
21643: else
21644: cat >conftest.$ac_ext <<_ACEOF
21645: /* confdefs.h. */
21646: _ACEOF
21647: cat confdefs.h >>conftest.$ac_ext
21648: cat >>conftest.$ac_ext <<_ACEOF
21649: /* end confdefs.h. */
1.1.1.2 ! root 21650: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 21651: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 21652: #define $ac_func innocuous_$ac_func
! 21653:
1.1 root 21654: /* System header to define __stub macros and hopefully few prototypes,
21655: which can conflict with char $ac_func (); below.
21656: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21657: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 21658:
1.1 root 21659: #ifdef __STDC__
21660: # include <limits.h>
21661: #else
21662: # include <assert.h>
21663: #endif
1.1.1.2 ! root 21664:
! 21665: #undef $ac_func
! 21666:
! 21667: /* Override any GCC internal prototype to avoid an error.
! 21668: Use char because int might match the return type of a GCC
! 21669: builtin and then its argument prototype would still apply. */
1.1 root 21670: #ifdef __cplusplus
21671: extern "C"
21672: #endif
21673: char $ac_func ();
21674: /* The GNU C library defines this for functions which it implements
21675: to always fail with ENOSYS. Some functions are actually named
21676: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 21677: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 21678: choke me
21679: #endif
21680:
21681: int
21682: main ()
21683: {
1.1.1.2 ! root 21684: return $ac_func ();
1.1 root 21685: ;
21686: return 0;
21687: }
21688: _ACEOF
21689: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 21690: if { (ac_try="$ac_link"
! 21691: case "(($ac_try" in
! 21692: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21693: *) ac_try_echo=$ac_try;;
! 21694: esac
! 21695: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21696: (eval "$ac_link") 2>conftest.er1
1.1 root 21697: ac_status=$?
1.1.1.2 ! root 21698: grep -v '^ *+' conftest.er1 >conftest.err
! 21699: rm -f conftest.er1
! 21700: cat conftest.err >&5
1.1 root 21701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21702: (exit $ac_status); } && {
! 21703: test -z "$ac_c_werror_flag" ||
! 21704: test ! -s conftest.err
! 21705: } && test -s conftest$ac_exeext &&
! 21706: $as_test_x conftest$ac_exeext; then
1.1 root 21707: eval "$as_ac_var=yes"
21708: else
21709: echo "$as_me: failed program was:" >&5
21710: sed 's/^/| /' conftest.$ac_ext >&5
21711:
1.1.1.2 ! root 21712: eval "$as_ac_var=no"
1.1 root 21713: fi
1.1.1.2 ! root 21714:
! 21715: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 21716: conftest$ac_exeext conftest.$ac_ext
1.1 root 21717: fi
1.1.1.2 ! root 21718: ac_res=`eval echo '${'$as_ac_var'}'`
! 21719: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21720: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21721: if test `eval echo '${'$as_ac_var'}'` = yes; then
21722: cat >>confdefs.h <<_ACEOF
21723: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21724: _ACEOF
21725:
21726: fi
21727: done
21728:
21729:
21730:
21731:
21732:
21733:
21734:
21735:
21736:
21737:
21738:
21739:
21740:
21741:
21742:
21743:
21744:
21745:
21746:
21747:
21748:
21749:
21750:
21751:
21752:
21753:
21754:
21755:
21756: for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21757: stdio.h unistd.h
21758: do
21759: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.2 ! root 21760: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 21761: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 21762: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 21763: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21764: echo $ECHO_N "(cached) $ECHO_C" >&6
21765: fi
1.1.1.2 ! root 21766: ac_res=`eval echo '${'$as_ac_Header'}'`
! 21767: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21768: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21769: else
21770: # Is the header compilable?
1.1.1.2 ! root 21771: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 21772: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 21773: cat >conftest.$ac_ext <<_ACEOF
21774: /* confdefs.h. */
21775: _ACEOF
21776: cat confdefs.h >>conftest.$ac_ext
21777: cat >>conftest.$ac_ext <<_ACEOF
21778: /* end confdefs.h. */
21779: $ac_includes_default
21780: #include <$ac_header>
21781: _ACEOF
21782: rm -f conftest.$ac_objext
1.1.1.2 ! root 21783: if { (ac_try="$ac_compile"
! 21784: case "(($ac_try" in
! 21785: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21786: *) ac_try_echo=$ac_try;;
! 21787: esac
! 21788: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21789: (eval "$ac_compile") 2>conftest.er1
1.1 root 21790: ac_status=$?
1.1.1.2 ! root 21791: grep -v '^ *+' conftest.er1 >conftest.err
! 21792: rm -f conftest.er1
! 21793: cat conftest.err >&5
1.1 root 21794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21795: (exit $ac_status); } && {
! 21796: test -z "$ac_c_werror_flag" ||
! 21797: test ! -s conftest.err
! 21798: } && test -s conftest.$ac_objext; then
1.1 root 21799: ac_header_compiler=yes
21800: else
21801: echo "$as_me: failed program was:" >&5
21802: sed 's/^/| /' conftest.$ac_ext >&5
21803:
1.1.1.2 ! root 21804: ac_header_compiler=no
1.1 root 21805: fi
1.1.1.2 ! root 21806:
! 21807: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 21808: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 21809: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 21810:
21811: # Is the header present?
1.1.1.2 ! root 21812: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 21813: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 21814: cat >conftest.$ac_ext <<_ACEOF
21815: /* confdefs.h. */
21816: _ACEOF
21817: cat confdefs.h >>conftest.$ac_ext
21818: cat >>conftest.$ac_ext <<_ACEOF
21819: /* end confdefs.h. */
21820: #include <$ac_header>
21821: _ACEOF
1.1.1.2 ! root 21822: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 21823: case "(($ac_try" in
! 21824: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21825: *) ac_try_echo=$ac_try;;
! 21826: esac
! 21827: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21828: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 21829: ac_status=$?
21830: grep -v '^ *+' conftest.er1 >conftest.err
21831: rm -f conftest.er1
21832: cat conftest.err >&5
21833: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21834: (exit $ac_status); } >/dev/null && {
! 21835: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 21836: test ! -s conftest.err
! 21837: }; then
1.1 root 21838: ac_header_preproc=yes
21839: else
21840: echo "$as_me: failed program was:" >&5
21841: sed 's/^/| /' conftest.$ac_ext >&5
21842:
21843: ac_header_preproc=no
21844: fi
1.1.1.2 ! root 21845:
1.1 root 21846: rm -f conftest.err conftest.$ac_ext
1.1.1.2 ! root 21847: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 21848: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 21849:
21850: # So? What about this header?
1.1.1.2 ! root 21851: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 21852: yes:no: )
1.1 root 21853: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21854: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.2 ! root 21855: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 21856: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 21857: ac_header_preproc=yes
1.1 root 21858: ;;
1.1.1.2 ! root 21859: no:yes:* )
1.1 root 21860: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21861: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.2 ! root 21862: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 21863: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 21864: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 21865: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 21866: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 21867: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 21868: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21869: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.2 ! root 21870: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 21871: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 21872: ( cat <<\_ASBOX
! 21873: ## ---------------------------------- ##
! 21874: ## Report this to [email protected] ##
! 21875: ## ---------------------------------- ##
1.1 root 21876: _ASBOX
1.1.1.2 ! root 21877: ) | sed "s/^/$as_me: WARNING: /" >&2
1.1 root 21878: ;;
21879: esac
1.1.1.2 ! root 21880: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 21881: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 21882: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21883: echo $ECHO_N "(cached) $ECHO_C" >&6
21884: else
1.1.1.2 ! root 21885: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 21886: fi
1.1.1.2 ! root 21887: ac_res=`eval echo '${'$as_ac_Header'}'`
! 21888: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21889: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21890:
21891: fi
21892: if test `eval echo '${'$as_ac_Header'}'` = yes; then
21893: cat >>confdefs.h <<_ACEOF
21894: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21895: _ACEOF
21896:
21897: fi
21898:
21899: done
21900:
21901:
21902:
21903:
21904:
21905: for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21906: do
21907: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.2 ! root 21908: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 21909: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 21910: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 21911: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 21912: echo $ECHO_N "(cached) $ECHO_C" >&6
21913: fi
1.1.1.2 ! root 21914: ac_res=`eval echo '${'$as_ac_Header'}'`
! 21915: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 21916: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 21917: else
21918: # Is the header compilable?
1.1.1.2 ! root 21919: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 21920: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 21921: cat >conftest.$ac_ext <<_ACEOF
21922: /* confdefs.h. */
21923: _ACEOF
21924: cat confdefs.h >>conftest.$ac_ext
21925: cat >>conftest.$ac_ext <<_ACEOF
21926: /* end confdefs.h. */
21927: $ac_includes_default
21928: #include <$ac_header>
21929: _ACEOF
21930: rm -f conftest.$ac_objext
1.1.1.2 ! root 21931: if { (ac_try="$ac_compile"
! 21932: case "(($ac_try" in
! 21933: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21934: *) ac_try_echo=$ac_try;;
! 21935: esac
! 21936: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21937: (eval "$ac_compile") 2>conftest.er1
1.1 root 21938: ac_status=$?
1.1.1.2 ! root 21939: grep -v '^ *+' conftest.er1 >conftest.err
! 21940: rm -f conftest.er1
! 21941: cat conftest.err >&5
1.1 root 21942: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21943: (exit $ac_status); } && {
! 21944: test -z "$ac_c_werror_flag" ||
! 21945: test ! -s conftest.err
! 21946: } && test -s conftest.$ac_objext; then
1.1 root 21947: ac_header_compiler=yes
21948: else
21949: echo "$as_me: failed program was:" >&5
21950: sed 's/^/| /' conftest.$ac_ext >&5
21951:
1.1.1.2 ! root 21952: ac_header_compiler=no
1.1 root 21953: fi
1.1.1.2 ! root 21954:
! 21955: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 21956: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 21957: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 21958:
21959: # Is the header present?
1.1.1.2 ! root 21960: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 21961: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 21962: cat >conftest.$ac_ext <<_ACEOF
21963: /* confdefs.h. */
21964: _ACEOF
21965: cat confdefs.h >>conftest.$ac_ext
21966: cat >>conftest.$ac_ext <<_ACEOF
21967: /* end confdefs.h. */
21968: #include <$ac_header>
21969: _ACEOF
1.1.1.2 ! root 21970: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 21971: case "(($ac_try" in
! 21972: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 21973: *) ac_try_echo=$ac_try;;
! 21974: esac
! 21975: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 21976: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 21977: ac_status=$?
21978: grep -v '^ *+' conftest.er1 >conftest.err
21979: rm -f conftest.er1
21980: cat conftest.err >&5
21981: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 21982: (exit $ac_status); } >/dev/null && {
! 21983: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 21984: test ! -s conftest.err
! 21985: }; then
1.1 root 21986: ac_header_preproc=yes
21987: else
21988: echo "$as_me: failed program was:" >&5
21989: sed 's/^/| /' conftest.$ac_ext >&5
21990:
21991: ac_header_preproc=no
21992: fi
1.1.1.2 ! root 21993:
1.1 root 21994: rm -f conftest.err conftest.$ac_ext
1.1.1.2 ! root 21995: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 21996: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 21997:
21998: # So? What about this header?
1.1.1.2 ! root 21999: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 22000: yes:no: )
1.1 root 22001: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22002: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.2 ! root 22003: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 22004: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 22005: ac_header_preproc=yes
1.1 root 22006: ;;
1.1.1.2 ! root 22007: no:yes:* )
1.1 root 22008: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22009: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.2 ! root 22010: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 22011: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 22012: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 22013: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 22014: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 22015: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 22016: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22017: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.2 ! root 22018: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 22019: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 22020: ( cat <<\_ASBOX
! 22021: ## ---------------------------------- ##
! 22022: ## Report this to [email protected] ##
! 22023: ## ---------------------------------- ##
1.1 root 22024: _ASBOX
1.1.1.2 ! root 22025: ) | sed "s/^/$as_me: WARNING: /" >&2
1.1 root 22026: ;;
22027: esac
1.1.1.2 ! root 22028: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 22029: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 22030: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22031: echo $ECHO_N "(cached) $ECHO_C" >&6
22032: else
1.1.1.2 ! root 22033: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 22034: fi
1.1.1.2 ! root 22035: ac_res=`eval echo '${'$as_ac_Header'}'`
! 22036: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22037: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22038:
22039: fi
22040: if test `eval echo '${'$as_ac_Header'}'` = yes; then
22041: cat >>confdefs.h <<_ACEOF
22042: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22043: _ACEOF
22044:
22045: fi
22046:
22047: done
22048:
22049:
22050:
22051: for ac_header in string.h strings.h
22052: do
22053: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.2 ! root 22054: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
! 22055: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 22056: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 22057: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22058: echo $ECHO_N "(cached) $ECHO_C" >&6
22059: fi
1.1.1.2 ! root 22060: ac_res=`eval echo '${'$as_ac_Header'}'`
! 22061: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22062: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22063: else
22064: # Is the header compilable?
1.1.1.2 ! root 22065: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 22066: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.1 root 22067: cat >conftest.$ac_ext <<_ACEOF
22068: /* confdefs.h. */
22069: _ACEOF
22070: cat confdefs.h >>conftest.$ac_ext
22071: cat >>conftest.$ac_ext <<_ACEOF
22072: /* end confdefs.h. */
22073: $ac_includes_default
22074: #include <$ac_header>
22075: _ACEOF
22076: rm -f conftest.$ac_objext
1.1.1.2 ! root 22077: if { (ac_try="$ac_compile"
! 22078: case "(($ac_try" in
! 22079: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22080: *) ac_try_echo=$ac_try;;
! 22081: esac
! 22082: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22083: (eval "$ac_compile") 2>conftest.er1
1.1 root 22084: ac_status=$?
1.1.1.2 ! root 22085: grep -v '^ *+' conftest.er1 >conftest.err
! 22086: rm -f conftest.er1
! 22087: cat conftest.err >&5
1.1 root 22088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22089: (exit $ac_status); } && {
! 22090: test -z "$ac_c_werror_flag" ||
! 22091: test ! -s conftest.err
! 22092: } && test -s conftest.$ac_objext; then
1.1 root 22093: ac_header_compiler=yes
22094: else
22095: echo "$as_me: failed program was:" >&5
22096: sed 's/^/| /' conftest.$ac_ext >&5
22097:
1.1.1.2 ! root 22098: ac_header_compiler=no
1.1 root 22099: fi
1.1.1.2 ! root 22100:
! 22101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 22102: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 22103: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 root 22104:
22105: # Is the header present?
1.1.1.2 ! root 22106: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 22107: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.1 root 22108: cat >conftest.$ac_ext <<_ACEOF
22109: /* confdefs.h. */
22110: _ACEOF
22111: cat confdefs.h >>conftest.$ac_ext
22112: cat >>conftest.$ac_ext <<_ACEOF
22113: /* end confdefs.h. */
22114: #include <$ac_header>
22115: _ACEOF
1.1.1.2 ! root 22116: if { (ac_try="$ac_cpp conftest.$ac_ext"
! 22117: case "(($ac_try" in
! 22118: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22119: *) ac_try_echo=$ac_try;;
! 22120: esac
! 22121: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22122: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.1 root 22123: ac_status=$?
22124: grep -v '^ *+' conftest.er1 >conftest.err
22125: rm -f conftest.er1
22126: cat conftest.err >&5
22127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22128: (exit $ac_status); } >/dev/null && {
! 22129: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 22130: test ! -s conftest.err
! 22131: }; then
1.1 root 22132: ac_header_preproc=yes
22133: else
22134: echo "$as_me: failed program was:" >&5
22135: sed 's/^/| /' conftest.$ac_ext >&5
22136:
22137: ac_header_preproc=no
22138: fi
1.1.1.2 ! root 22139:
1.1 root 22140: rm -f conftest.err conftest.$ac_ext
1.1.1.2 ! root 22141: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 22142: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 root 22143:
22144: # So? What about this header?
1.1.1.2 ! root 22145: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 22146: yes:no: )
1.1 root 22147: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22148: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.1.1.2 ! root 22149: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 22150: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 22151: ac_header_preproc=yes
1.1 root 22152: ;;
1.1.1.2 ! root 22153: no:yes:* )
1.1 root 22154: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22155: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.1.1.2 ! root 22156: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 22157: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 22158: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 22159: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 22160: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 22161: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.1 root 22162: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22163: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.1.1.2 ! root 22164: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 22165: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 22166: ( cat <<\_ASBOX
! 22167: ## ---------------------------------- ##
! 22168: ## Report this to [email protected] ##
! 22169: ## ---------------------------------- ##
1.1 root 22170: _ASBOX
1.1.1.2 ! root 22171: ) | sed "s/^/$as_me: WARNING: /" >&2
1.1 root 22172: ;;
22173: esac
1.1.1.2 ! root 22174: { echo "$as_me:$LINENO: checking for $ac_header" >&5
! 22175: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
! 22176: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22177: echo $ECHO_N "(cached) $ECHO_C" >&6
22178: else
1.1.1.2 ! root 22179: eval "$as_ac_Header=\$ac_header_preproc"
1.1 root 22180: fi
1.1.1.2 ! root 22181: ac_res=`eval echo '${'$as_ac_Header'}'`
! 22182: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22183: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22184:
22185: fi
22186: if test `eval echo '${'$as_ac_Header'}'` = yes; then
22187: cat >>confdefs.h <<_ACEOF
22188: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22189: _ACEOF
22190: break
22191: fi
22192:
22193: done
22194:
22195:
22196:
22197:
22198: for ac_func in strchr index
22199: do
22200: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 22201: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22202: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 22203: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22204: echo $ECHO_N "(cached) $ECHO_C" >&6
22205: else
22206: cat >conftest.$ac_ext <<_ACEOF
22207: /* confdefs.h. */
22208: _ACEOF
22209: cat confdefs.h >>conftest.$ac_ext
22210: cat >>conftest.$ac_ext <<_ACEOF
22211: /* end confdefs.h. */
1.1.1.2 ! root 22212: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22213: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22214: #define $ac_func innocuous_$ac_func
! 22215:
1.1 root 22216: /* System header to define __stub macros and hopefully few prototypes,
22217: which can conflict with char $ac_func (); below.
22218: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22219: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 22220:
1.1 root 22221: #ifdef __STDC__
22222: # include <limits.h>
22223: #else
22224: # include <assert.h>
22225: #endif
1.1.1.2 ! root 22226:
! 22227: #undef $ac_func
! 22228:
! 22229: /* Override any GCC internal prototype to avoid an error.
! 22230: Use char because int might match the return type of a GCC
! 22231: builtin and then its argument prototype would still apply. */
1.1 root 22232: #ifdef __cplusplus
22233: extern "C"
22234: #endif
22235: char $ac_func ();
22236: /* The GNU C library defines this for functions which it implements
22237: to always fail with ENOSYS. Some functions are actually named
22238: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 22239: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 22240: choke me
22241: #endif
22242:
22243: int
22244: main ()
22245: {
1.1.1.2 ! root 22246: return $ac_func ();
1.1 root 22247: ;
22248: return 0;
22249: }
22250: _ACEOF
22251: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 22252: if { (ac_try="$ac_link"
! 22253: case "(($ac_try" in
! 22254: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22255: *) ac_try_echo=$ac_try;;
! 22256: esac
! 22257: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22258: (eval "$ac_link") 2>conftest.er1
1.1 root 22259: ac_status=$?
1.1.1.2 ! root 22260: grep -v '^ *+' conftest.er1 >conftest.err
! 22261: rm -f conftest.er1
! 22262: cat conftest.err >&5
1.1 root 22263: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22264: (exit $ac_status); } && {
! 22265: test -z "$ac_c_werror_flag" ||
! 22266: test ! -s conftest.err
! 22267: } && test -s conftest$ac_exeext &&
! 22268: $as_test_x conftest$ac_exeext; then
1.1 root 22269: eval "$as_ac_var=yes"
22270: else
22271: echo "$as_me: failed program was:" >&5
22272: sed 's/^/| /' conftest.$ac_ext >&5
22273:
1.1.1.2 ! root 22274: eval "$as_ac_var=no"
1.1 root 22275: fi
1.1.1.2 ! root 22276:
! 22277: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22278: conftest$ac_exeext conftest.$ac_ext
1.1 root 22279: fi
1.1.1.2 ! root 22280: ac_res=`eval echo '${'$as_ac_var'}'`
! 22281: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22282: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22283: if test `eval echo '${'$as_ac_var'}'` = yes; then
22284: cat >>confdefs.h <<_ACEOF
22285: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22286: _ACEOF
22287: break
22288: fi
22289: done
22290:
22291:
22292:
22293: for ac_func in strrchr rindex
22294: do
22295: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 22296: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22297: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 22298: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22299: echo $ECHO_N "(cached) $ECHO_C" >&6
22300: else
22301: cat >conftest.$ac_ext <<_ACEOF
22302: /* confdefs.h. */
22303: _ACEOF
22304: cat confdefs.h >>conftest.$ac_ext
22305: cat >>conftest.$ac_ext <<_ACEOF
22306: /* end confdefs.h. */
1.1.1.2 ! root 22307: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22308: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22309: #define $ac_func innocuous_$ac_func
! 22310:
1.1 root 22311: /* System header to define __stub macros and hopefully few prototypes,
22312: which can conflict with char $ac_func (); below.
22313: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22314: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 22315:
1.1 root 22316: #ifdef __STDC__
22317: # include <limits.h>
22318: #else
22319: # include <assert.h>
22320: #endif
1.1.1.2 ! root 22321:
! 22322: #undef $ac_func
! 22323:
! 22324: /* Override any GCC internal prototype to avoid an error.
! 22325: Use char because int might match the return type of a GCC
! 22326: builtin and then its argument prototype would still apply. */
1.1 root 22327: #ifdef __cplusplus
22328: extern "C"
22329: #endif
22330: char $ac_func ();
22331: /* The GNU C library defines this for functions which it implements
22332: to always fail with ENOSYS. Some functions are actually named
22333: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 22334: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 22335: choke me
22336: #endif
22337:
22338: int
22339: main ()
22340: {
1.1.1.2 ! root 22341: return $ac_func ();
1.1 root 22342: ;
22343: return 0;
22344: }
22345: _ACEOF
22346: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 22347: if { (ac_try="$ac_link"
! 22348: case "(($ac_try" in
! 22349: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22350: *) ac_try_echo=$ac_try;;
! 22351: esac
! 22352: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22353: (eval "$ac_link") 2>conftest.er1
1.1 root 22354: ac_status=$?
1.1.1.2 ! root 22355: grep -v '^ *+' conftest.er1 >conftest.err
! 22356: rm -f conftest.er1
! 22357: cat conftest.err >&5
1.1 root 22358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22359: (exit $ac_status); } && {
! 22360: test -z "$ac_c_werror_flag" ||
! 22361: test ! -s conftest.err
! 22362: } && test -s conftest$ac_exeext &&
! 22363: $as_test_x conftest$ac_exeext; then
1.1 root 22364: eval "$as_ac_var=yes"
22365: else
22366: echo "$as_me: failed program was:" >&5
22367: sed 's/^/| /' conftest.$ac_ext >&5
22368:
1.1.1.2 ! root 22369: eval "$as_ac_var=no"
1.1 root 22370: fi
1.1.1.2 ! root 22371:
! 22372: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22373: conftest$ac_exeext conftest.$ac_ext
1.1 root 22374: fi
1.1.1.2 ! root 22375: ac_res=`eval echo '${'$as_ac_var'}'`
! 22376: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22377: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22378: if test `eval echo '${'$as_ac_var'}'` = yes; then
22379: cat >>confdefs.h <<_ACEOF
22380: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22381: _ACEOF
22382: break
22383: fi
22384: done
22385:
22386:
22387:
22388: for ac_func in memcpy bcopy
22389: do
22390: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 22391: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22392: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 22393: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22394: echo $ECHO_N "(cached) $ECHO_C" >&6
22395: else
22396: cat >conftest.$ac_ext <<_ACEOF
22397: /* confdefs.h. */
22398: _ACEOF
22399: cat confdefs.h >>conftest.$ac_ext
22400: cat >>conftest.$ac_ext <<_ACEOF
22401: /* end confdefs.h. */
1.1.1.2 ! root 22402: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22403: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22404: #define $ac_func innocuous_$ac_func
! 22405:
1.1 root 22406: /* System header to define __stub macros and hopefully few prototypes,
22407: which can conflict with char $ac_func (); below.
22408: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22409: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 22410:
1.1 root 22411: #ifdef __STDC__
22412: # include <limits.h>
22413: #else
22414: # include <assert.h>
22415: #endif
1.1.1.2 ! root 22416:
! 22417: #undef $ac_func
! 22418:
! 22419: /* Override any GCC internal prototype to avoid an error.
! 22420: Use char because int might match the return type of a GCC
! 22421: builtin and then its argument prototype would still apply. */
1.1 root 22422: #ifdef __cplusplus
22423: extern "C"
22424: #endif
22425: char $ac_func ();
22426: /* The GNU C library defines this for functions which it implements
22427: to always fail with ENOSYS. Some functions are actually named
22428: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 22429: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 22430: choke me
22431: #endif
22432:
22433: int
22434: main ()
22435: {
1.1.1.2 ! root 22436: return $ac_func ();
1.1 root 22437: ;
22438: return 0;
22439: }
22440: _ACEOF
22441: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 22442: if { (ac_try="$ac_link"
! 22443: case "(($ac_try" in
! 22444: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22445: *) ac_try_echo=$ac_try;;
! 22446: esac
! 22447: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22448: (eval "$ac_link") 2>conftest.er1
1.1 root 22449: ac_status=$?
1.1.1.2 ! root 22450: grep -v '^ *+' conftest.er1 >conftest.err
! 22451: rm -f conftest.er1
! 22452: cat conftest.err >&5
1.1 root 22453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22454: (exit $ac_status); } && {
! 22455: test -z "$ac_c_werror_flag" ||
! 22456: test ! -s conftest.err
! 22457: } && test -s conftest$ac_exeext &&
! 22458: $as_test_x conftest$ac_exeext; then
1.1 root 22459: eval "$as_ac_var=yes"
22460: else
22461: echo "$as_me: failed program was:" >&5
22462: sed 's/^/| /' conftest.$ac_ext >&5
22463:
1.1.1.2 ! root 22464: eval "$as_ac_var=no"
1.1 root 22465: fi
1.1.1.2 ! root 22466:
! 22467: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22468: conftest$ac_exeext conftest.$ac_ext
1.1 root 22469: fi
1.1.1.2 ! root 22470: ac_res=`eval echo '${'$as_ac_var'}'`
! 22471: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22472: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22473: if test `eval echo '${'$as_ac_var'}'` = yes; then
22474: cat >>confdefs.h <<_ACEOF
22475: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22476: _ACEOF
22477: break
22478: fi
22479: done
22480:
22481:
22482:
22483: for ac_func in memmove strcmp
22484: do
22485: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 22486: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22487: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 22488: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22489: echo $ECHO_N "(cached) $ECHO_C" >&6
22490: else
22491: cat >conftest.$ac_ext <<_ACEOF
22492: /* confdefs.h. */
22493: _ACEOF
22494: cat confdefs.h >>conftest.$ac_ext
22495: cat >>conftest.$ac_ext <<_ACEOF
22496: /* end confdefs.h. */
1.1.1.2 ! root 22497: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22498: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22499: #define $ac_func innocuous_$ac_func
! 22500:
1.1 root 22501: /* System header to define __stub macros and hopefully few prototypes,
22502: which can conflict with char $ac_func (); below.
22503: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22504: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 22505:
1.1 root 22506: #ifdef __STDC__
22507: # include <limits.h>
22508: #else
22509: # include <assert.h>
22510: #endif
1.1.1.2 ! root 22511:
! 22512: #undef $ac_func
! 22513:
! 22514: /* Override any GCC internal prototype to avoid an error.
! 22515: Use char because int might match the return type of a GCC
! 22516: builtin and then its argument prototype would still apply. */
1.1 root 22517: #ifdef __cplusplus
22518: extern "C"
22519: #endif
22520: char $ac_func ();
22521: /* The GNU C library defines this for functions which it implements
22522: to always fail with ENOSYS. Some functions are actually named
22523: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 22524: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 22525: choke me
22526: #endif
22527:
22528: int
22529: main ()
22530: {
1.1.1.2 ! root 22531: return $ac_func ();
1.1 root 22532: ;
22533: return 0;
22534: }
22535: _ACEOF
22536: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 22537: if { (ac_try="$ac_link"
! 22538: case "(($ac_try" in
! 22539: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22540: *) ac_try_echo=$ac_try;;
! 22541: esac
! 22542: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22543: (eval "$ac_link") 2>conftest.er1
1.1 root 22544: ac_status=$?
1.1.1.2 ! root 22545: grep -v '^ *+' conftest.er1 >conftest.err
! 22546: rm -f conftest.er1
! 22547: cat conftest.err >&5
1.1 root 22548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22549: (exit $ac_status); } && {
! 22550: test -z "$ac_c_werror_flag" ||
! 22551: test ! -s conftest.err
! 22552: } && test -s conftest$ac_exeext &&
! 22553: $as_test_x conftest$ac_exeext; then
1.1 root 22554: eval "$as_ac_var=yes"
22555: else
22556: echo "$as_me: failed program was:" >&5
22557: sed 's/^/| /' conftest.$ac_ext >&5
22558:
1.1.1.2 ! root 22559: eval "$as_ac_var=no"
1.1 root 22560: fi
1.1.1.2 ! root 22561:
! 22562: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22563: conftest$ac_exeext conftest.$ac_ext
1.1 root 22564: fi
1.1.1.2 ! root 22565: ac_res=`eval echo '${'$as_ac_var'}'`
! 22566: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22567: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22568: if test `eval echo '${'$as_ac_var'}'` = yes; then
22569: cat >>confdefs.h <<_ACEOF
22570: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22571: _ACEOF
22572:
22573: fi
22574: done
22575:
22576:
22577:
22578:
22579: for ac_func in closedir opendir readdir
22580: do
22581: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.1.1.2 ! root 22582: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22583: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 22584: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.1 root 22585: echo $ECHO_N "(cached) $ECHO_C" >&6
22586: else
22587: cat >conftest.$ac_ext <<_ACEOF
22588: /* confdefs.h. */
22589: _ACEOF
22590: cat confdefs.h >>conftest.$ac_ext
22591: cat >>conftest.$ac_ext <<_ACEOF
22592: /* end confdefs.h. */
1.1.1.2 ! root 22593: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22594: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22595: #define $ac_func innocuous_$ac_func
! 22596:
1.1 root 22597: /* System header to define __stub macros and hopefully few prototypes,
22598: which can conflict with char $ac_func (); below.
22599: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600: <limits.h> exists even on freestanding compilers. */
1.1.1.2 ! root 22601:
1.1 root 22602: #ifdef __STDC__
22603: # include <limits.h>
22604: #else
22605: # include <assert.h>
22606: #endif
1.1.1.2 ! root 22607:
! 22608: #undef $ac_func
! 22609:
! 22610: /* Override any GCC internal prototype to avoid an error.
! 22611: Use char because int might match the return type of a GCC
! 22612: builtin and then its argument prototype would still apply. */
1.1 root 22613: #ifdef __cplusplus
22614: extern "C"
22615: #endif
22616: char $ac_func ();
22617: /* The GNU C library defines this for functions which it implements
22618: to always fail with ENOSYS. Some functions are actually named
22619: something starting with __ and the normal name is an alias. */
1.1.1.2 ! root 22620: #if defined __stub_$ac_func || defined __stub___$ac_func
1.1 root 22621: choke me
22622: #endif
22623:
22624: int
22625: main ()
22626: {
1.1.1.2 ! root 22627: return $ac_func ();
1.1 root 22628: ;
22629: return 0;
22630: }
22631: _ACEOF
22632: rm -f conftest.$ac_objext conftest$ac_exeext
1.1.1.2 ! root 22633: if { (ac_try="$ac_link"
! 22634: case "(($ac_try" in
! 22635: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22636: *) ac_try_echo=$ac_try;;
! 22637: esac
! 22638: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 22639: (eval "$ac_link") 2>conftest.er1
1.1 root 22640: ac_status=$?
1.1.1.2 ! root 22641: grep -v '^ *+' conftest.er1 >conftest.err
! 22642: rm -f conftest.er1
! 22643: cat conftest.err >&5
1.1 root 22644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.1.1.2 ! root 22645: (exit $ac_status); } && {
! 22646: test -z "$ac_c_werror_flag" ||
! 22647: test ! -s conftest.err
! 22648: } && test -s conftest$ac_exeext &&
! 22649: $as_test_x conftest$ac_exeext; then
1.1 root 22650: eval "$as_ac_var=yes"
22651: else
22652: echo "$as_me: failed program was:" >&5
22653: sed 's/^/| /' conftest.$ac_ext >&5
22654:
1.1.1.2 ! root 22655: eval "$as_ac_var=no"
1.1 root 22656: fi
1.1.1.2 ! root 22657:
! 22658: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 22659: conftest$ac_exeext conftest.$ac_ext
1.1 root 22660: fi
1.1.1.2 ! root 22661: ac_res=`eval echo '${'$as_ac_var'}'`
! 22662: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 22663: echo "${ECHO_T}$ac_res" >&6; }
1.1 root 22664: if test `eval echo '${'$as_ac_var'}'` = yes; then
22665: cat >>confdefs.h <<_ACEOF
22666: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22667: _ACEOF
22668:
22669: fi
22670: done
22671:
22672:
22673:
22674:
22675: ## -------- ##
22676: ## Outputs. ##
22677: ## -------- ##
1.1.1.2 ! root 22678: ac_config_files="$ac_config_files Makefile"
1.1 root 22679:
22680: cat >confcache <<\_ACEOF
22681: # This file is a shell script that caches the results of configure
22682: # tests run on this system so they can be shared between configure
22683: # scripts and configure runs, see configure's option --config-cache.
22684: # It is not useful on other systems. If it contains results you don't
22685: # want to keep, you may remove or edit it.
22686: #
22687: # config.status only pays attention to the cache file if you give it
22688: # the --recheck option to rerun configure.
22689: #
22690: # `ac_cv_env_foo' variables (set or unset) will be overridden when
22691: # loading this file, other *unset* `ac_cv_foo' will be assigned the
22692: # following values.
22693:
22694: _ACEOF
22695:
22696: # The following way of writing the cache mishandles newlines in values,
22697: # but we know of no workaround that is simple, portable, and efficient.
1.1.1.2 ! root 22698: # So, we kill variables containing newlines.
1.1 root 22699: # Ultrix sh set writes to stderr and can't be redirected directly,
22700: # and sets the high bit in the cache file unless we assign to the vars.
1.1.1.2 ! root 22701: (
! 22702: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 22703: eval ac_val=\$$ac_var
! 22704: case $ac_val in #(
! 22705: *${as_nl}*)
! 22706: case $ac_var in #(
! 22707: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
! 22708: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
! 22709: esac
! 22710: case $ac_var in #(
! 22711: _ | IFS | as_nl) ;; #(
! 22712: *) $as_unset $ac_var ;;
! 22713: esac ;;
! 22714: esac
! 22715: done
! 22716:
1.1 root 22717: (set) 2>&1 |
1.1.1.2 ! root 22718: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 22719: *${as_nl}ac_space=\ *)
1.1 root 22720: # `set' does not quote correctly, so add quotes (double-quote
22721: # substitution turns \\\\ into \\, and sed turns \\ into \).
22722: sed -n \
1.1.1.2 ! root 22723: "s/'/'\\\\''/g;
! 22724: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 22725: ;; #(
1.1 root 22726: *)
22727: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.1.1.2 ! root 22728: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 root 22729: ;;
1.1.1.2 ! root 22730: esac |
! 22731: sort
! 22732: ) |
1.1 root 22733: sed '
1.1.1.2 ! root 22734: /^ac_cv_env_/b end
1.1 root 22735: t clear
1.1.1.2 ! root 22736: :clear
1.1 root 22737: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22738: t end
1.1.1.2 ! root 22739: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 22740: :end' >>confcache
! 22741: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 22742: if test -w "$cache_file"; then
! 22743: test "x$cache_file" != "x/dev/null" &&
! 22744: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
! 22745: echo "$as_me: updating cache $cache_file" >&6;}
1.1 root 22746: cat confcache >$cache_file
22747: else
1.1.1.2 ! root 22748: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
! 22749: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 22750: fi
22751: fi
22752: rm -f confcache
22753:
22754: test "x$prefix" = xNONE && prefix=$ac_default_prefix
22755: # Let make expand exec_prefix.
22756: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22757:
22758: DEFS=-DHAVE_CONFIG_H
22759:
22760: ac_libobjs=
22761: ac_ltlibobjs=
22762: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22763: # 1. Remove the extension, and $U if already installed.
1.1.1.2 ! root 22764: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 22765: ac_i=`echo "$ac_i" | sed "$ac_script"`
! 22766: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 22767: # will be set to the directory where LIBOBJS objects are built.
! 22768: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 22769: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 root 22770: done
22771: LIBOBJS=$ac_libobjs
22772:
22773: LTLIBOBJS=$ac_ltlibobjs
22774:
22775:
22776: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22777: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22778: Usually this means the macro was only invoked conditionally." >&5
22779: echo "$as_me: error: conditional \"AMDEP\" was never defined.
22780: Usually this means the macro was only invoked conditionally." >&2;}
22781: { (exit 1); exit 1; }; }
22782: fi
22783: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22784: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22785: Usually this means the macro was only invoked conditionally." >&5
22786: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22787: Usually this means the macro was only invoked conditionally." >&2;}
22788: { (exit 1); exit 1; }; }
22789: fi
22790: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22791: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22792: Usually this means the macro was only invoked conditionally." >&5
22793: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22794: Usually this means the macro was only invoked conditionally." >&2;}
22795: { (exit 1); exit 1; }; }
22796: fi
22797: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22798: { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22799: Usually this means the macro was only invoked conditionally." >&5
22800: echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22801: Usually this means the macro was only invoked conditionally." >&2;}
22802: { (exit 1); exit 1; }; }
22803: fi
22804: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22805: { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22806: Usually this means the macro was only invoked conditionally." >&5
22807: echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22808: Usually this means the macro was only invoked conditionally." >&2;}
22809: { (exit 1); exit 1; }; }
22810: fi
22811:
22812: : ${CONFIG_STATUS=./config.status}
22813: ac_clean_files_save=$ac_clean_files
22814: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22815: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22816: echo "$as_me: creating $CONFIG_STATUS" >&6;}
22817: cat >$CONFIG_STATUS <<_ACEOF
22818: #! $SHELL
22819: # Generated by $as_me.
22820: # Run this file to recreate the current configuration.
22821: # Compiler output produced by configure, useful for debugging
22822: # configure, is in config.log if it exists.
22823:
22824: debug=false
22825: ac_cs_recheck=false
22826: ac_cs_silent=false
22827: SHELL=\${CONFIG_SHELL-$SHELL}
22828: _ACEOF
22829:
22830: cat >>$CONFIG_STATUS <<\_ACEOF
22831: ## --------------------- ##
22832: ## M4sh Initialization. ##
22833: ## --------------------- ##
22834:
1.1.1.2 ! root 22835: # Be more Bourne compatible
! 22836: DUALCASE=1; export DUALCASE # for MKS sh
1.1 root 22837: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22838: emulate sh
22839: NULLCMD=:
22840: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22841: # is contrary to our usage. Disable this feature.
22842: alias -g '${1+"$@"}'='"$@"'
1.1.1.2 ! root 22843: setopt NO_GLOB_SUBST
! 22844: else
! 22845: case `(set -o) 2>/dev/null` in
! 22846: *posix*) set -o posix ;;
! 22847: esac
! 22848:
! 22849: fi
! 22850:
! 22851:
! 22852:
! 22853:
! 22854: # PATH needs CR
! 22855: # Avoid depending upon Character Ranges.
! 22856: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 22857: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 22858: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 22859: as_cr_digits='0123456789'
! 22860: as_cr_alnum=$as_cr_Letters$as_cr_digits
! 22861:
! 22862: # The user is always right.
! 22863: if test "${PATH_SEPARATOR+set}" != set; then
! 22864: echo "#! /bin/sh" >conf$$.sh
! 22865: echo "exit 0" >>conf$$.sh
! 22866: chmod +x conf$$.sh
! 22867: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 22868: PATH_SEPARATOR=';'
! 22869: else
! 22870: PATH_SEPARATOR=:
! 22871: fi
! 22872: rm -f conf$$.sh
1.1 root 22873: fi
22874:
22875: # Support unset when possible.
1.1.1.2 ! root 22876: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.1 root 22877: as_unset=unset
22878: else
22879: as_unset=false
22880: fi
22881:
22882:
1.1.1.2 ! root 22883: # IFS
! 22884: # We need space, tab and new line, in precisely that order. Quoting is
! 22885: # there to prevent editors from complaining about space-tab.
! 22886: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 22887: # splitting by setting IFS to empty value.)
! 22888: as_nl='
! 22889: '
! 22890: IFS=" "" $as_nl"
! 22891:
! 22892: # Find who we are. Look in the path if we contain no directory separator.
! 22893: case $0 in
! 22894: *[\\/]* ) as_myself=$0 ;;
! 22895: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 22896: for as_dir in $PATH
! 22897: do
! 22898: IFS=$as_save_IFS
! 22899: test -z "$as_dir" && as_dir=.
! 22900: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 22901: done
! 22902: IFS=$as_save_IFS
! 22903:
! 22904: ;;
! 22905: esac
! 22906: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 22907: # in which case we are not to be found in the path.
! 22908: if test "x$as_myself" = x; then
! 22909: as_myself=$0
! 22910: fi
! 22911: if test ! -f "$as_myself"; then
! 22912: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 22913: { (exit 1); exit 1; }
! 22914: fi
! 22915:
1.1 root 22916: # Work around bugs in pre-3.0 UWIN ksh.
1.1.1.2 ! root 22917: for as_var in ENV MAIL MAILPATH
! 22918: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
! 22919: done
1.1 root 22920: PS1='$ '
22921: PS2='> '
22922: PS4='+ '
22923:
22924: # NLS nuisances.
22925: for as_var in \
22926: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22927: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22928: LC_TELEPHONE LC_TIME
22929: do
1.1.1.2 ! root 22930: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.1 root 22931: eval $as_var=C; export $as_var
22932: else
1.1.1.2 ! root 22933: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.1 root 22934: fi
22935: done
22936:
22937: # Required to use basename.
1.1.1.2 ! root 22938: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 22939: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 22940: as_expr=expr
22941: else
22942: as_expr=false
22943: fi
22944:
1.1.1.2 ! root 22945: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 root 22946: as_basename=basename
22947: else
22948: as_basename=false
22949: fi
22950:
22951:
22952: # Name of the executable.
1.1.1.2 ! root 22953: as_me=`$as_basename -- "$0" ||
1.1 root 22954: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22955: X"$0" : 'X\(//\)$' \| \
1.1.1.2 ! root 22956: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 22957: echo X/"$0" |
1.1.1.2 ! root 22958: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 22959: s//\1/
! 22960: q
! 22961: }
! 22962: /^X\/\(\/\/\)$/{
! 22963: s//\1/
! 22964: q
! 22965: }
! 22966: /^X\/\(\/\).*/{
! 22967: s//\1/
! 22968: q
! 22969: }
! 22970: s/.*/./; q'`
1.1 root 22971:
1.1.1.2 ! root 22972: # CDPATH.
! 22973: $as_unset CDPATH
1.1 root 22974:
22975:
22976:
22977: as_lineno_1=$LINENO
22978: as_lineno_2=$LINENO
22979: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.1.1.2 ! root 22980: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.1 root 22981:
22982: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22983: # uniformly replaced by the line number. The first 'sed' inserts a
1.1.1.2 ! root 22984: # line-number line after each line using $LINENO; the second 'sed'
! 22985: # does the real work. The second script uses 'N' to pair each
! 22986: # line-number line with the line containing $LINENO, and appends
! 22987: # trailing '-' during substitution so that $LINENO is not a special
! 22988: # case at line end.
1.1 root 22989: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.1.1.2 ! root 22990: # scripts with optimization help from Paolo Bonzini. Blame Lee
! 22991: # E. McMahon (1931-1989) for sed's syntax. :-)
! 22992: sed -n '
! 22993: p
! 22994: /[$]LINENO/=
! 22995: ' <$as_myself |
1.1 root 22996: sed '
1.1.1.2 ! root 22997: s/[$]LINENO.*/&-/
! 22998: t lineno
! 22999: b
! 23000: :lineno
1.1 root 23001: N
1.1.1.2 ! root 23002: :loop
! 23003: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 root 23004: t loop
1.1.1.2 ! root 23005: s/-\n.*//
1.1 root 23006: ' >$as_me.lineno &&
1.1.1.2 ! root 23007: chmod +x "$as_me.lineno" ||
! 23008: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.1 root 23009: { (exit 1); exit 1; }; }
23010:
23011: # Don't try to exec as it changes $[0], causing all sort of problems
23012: # (the dirname of $[0] is not the place where we might find the
1.1.1.2 ! root 23013: # original and so on. Autoconf is especially sensitive to this).
! 23014: . "./$as_me.lineno"
1.1 root 23015: # Exit status is that of the last command.
23016: exit
23017: }
23018:
23019:
1.1.1.2 ! root 23020: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 23021: as_dirname=dirname
! 23022: else
! 23023: as_dirname=false
! 23024: fi
! 23025:
! 23026: ECHO_C= ECHO_N= ECHO_T=
! 23027: case `echo -n x` in
! 23028: -n*)
! 23029: case `echo 'x\c'` in
! 23030: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 23031: *) ECHO_C='\c';;
! 23032: esac;;
! 23033: *)
! 23034: ECHO_N='-n';;
1.1 root 23035: esac
23036:
1.1.1.2 ! root 23037: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 23038: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 root 23039: as_expr=expr
23040: else
23041: as_expr=false
23042: fi
23043:
23044: rm -f conf$$ conf$$.exe conf$$.file
1.1.1.2 ! root 23045: if test -d conf$$.dir; then
! 23046: rm -f conf$$.dir/conf$$.file
! 23047: else
! 23048: rm -f conf$$.dir
! 23049: mkdir conf$$.dir
! 23050: fi
1.1 root 23051: echo >conf$$.file
23052: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.1.1.2 ! root 23053: as_ln_s='ln -s'
! 23054: # ... but there are two gotchas:
! 23055: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 23056: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 23057: # In both cases, we have to default to `cp -p'.
! 23058: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1 root 23059: as_ln_s='cp -p'
23060: elif ln conf$$.file conf$$ 2>/dev/null; then
23061: as_ln_s=ln
23062: else
23063: as_ln_s='cp -p'
23064: fi
1.1.1.2 ! root 23065: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 23066: rmdir conf$$.dir 2>/dev/null
1.1 root 23067:
23068: if mkdir -p . 2>/dev/null; then
23069: as_mkdir_p=:
23070: else
1.1.1.2 ! root 23071: test -d ./-p && rmdir ./-p
1.1 root 23072: as_mkdir_p=false
23073: fi
23074:
1.1.1.2 ! root 23075: if test -x / >/dev/null 2>&1; then
! 23076: as_test_x='test -x'
! 23077: else
! 23078: if ls -dL / >/dev/null 2>&1; then
! 23079: as_ls_L_option=L
! 23080: else
! 23081: as_ls_L_option=
! 23082: fi
! 23083: as_test_x='
! 23084: eval sh -c '\''
! 23085: if test -d "$1"; then
! 23086: test -d "$1/.";
! 23087: else
! 23088: case $1 in
! 23089: -*)set "./$1";;
! 23090: esac;
! 23091: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
! 23092: ???[sx]*):;;*)false;;esac;fi
! 23093: '\'' sh
! 23094: '
! 23095: fi
! 23096: as_executable_p=$as_test_x
1.1 root 23097:
23098: # Sed expression to map a string onto a valid CPP name.
1.1.1.2 ! root 23099: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 23100:
23101: # Sed expression to map a string onto a valid variable name.
1.1.1.2 ! root 23102: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1 root 23103:
23104:
23105: exec 6>&1
23106:
1.1.1.2 ! root 23107: # Save the log message, to keep $[0] and so on meaningful, and to
1.1 root 23108: # report actual input values of CONFIG_FILES etc. instead of their
1.1.1.2 ! root 23109: # values after options handling.
! 23110: ac_log="
1.1 root 23111: This file was extended by libltdl $as_me 1.2, which was
1.1.1.2 ! root 23112: generated by GNU Autoconf 2.61. Invocation command line was
1.1 root 23113:
23114: CONFIG_FILES = $CONFIG_FILES
23115: CONFIG_HEADERS = $CONFIG_HEADERS
23116: CONFIG_LINKS = $CONFIG_LINKS
23117: CONFIG_COMMANDS = $CONFIG_COMMANDS
23118: $ $0 $@
23119:
1.1.1.2 ! root 23120: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 23121: "
! 23122:
1.1 root 23123: _ACEOF
23124:
1.1.1.2 ! root 23125: cat >>$CONFIG_STATUS <<_ACEOF
1.1 root 23126: # Files that config.status was made for.
1.1.1.2 ! root 23127: config_files="$ac_config_files"
! 23128: config_headers="$ac_config_headers"
! 23129: config_commands="$ac_config_commands"
1.1 root 23130:
1.1.1.2 ! root 23131: _ACEOF
1.1 root 23132:
23133: cat >>$CONFIG_STATUS <<\_ACEOF
23134: ac_cs_usage="\
23135: \`$as_me' instantiates files from templates according to the
23136: current configuration.
23137:
23138: Usage: $0 [OPTIONS] [FILE]...
23139:
23140: -h, --help print this help, then exit
1.1.1.2 ! root 23141: -V, --version print version number and configuration settings, then exit
1.1 root 23142: -q, --quiet do not print progress messages
23143: -d, --debug don't remove temporary files
23144: --recheck update $as_me by reconfiguring in the same conditions
23145: --file=FILE[:TEMPLATE]
1.1.1.2 ! root 23146: instantiate the configuration file FILE
1.1 root 23147: --header=FILE[:TEMPLATE]
1.1.1.2 ! root 23148: instantiate the configuration header FILE
1.1 root 23149:
23150: Configuration files:
23151: $config_files
23152:
23153: Configuration headers:
23154: $config_headers
23155:
23156: Configuration commands:
23157: $config_commands
23158:
23159: Report bugs to <[email protected]>."
23160:
1.1.1.2 ! root 23161: _ACEOF
1.1 root 23162: cat >>$CONFIG_STATUS <<_ACEOF
23163: ac_cs_version="\\
23164: libltdl config.status 1.2
1.1.1.2 ! root 23165: configured by $0, generated by GNU Autoconf 2.61,
! 23166: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.1 root 23167:
1.1.1.2 ! root 23168: Copyright (C) 2006 Free Software Foundation, Inc.
1.1 root 23169: This config.status script is free software; the Free Software Foundation
23170: gives unlimited permission to copy, distribute and modify it."
1.1.1.2 ! root 23171:
! 23172: ac_pwd='$ac_pwd'
! 23173: srcdir='$srcdir'
! 23174: INSTALL='$INSTALL'
! 23175: MKDIR_P='$MKDIR_P'
1.1 root 23176: _ACEOF
23177:
23178: cat >>$CONFIG_STATUS <<\_ACEOF
23179: # If no file are specified by the user, then we need to provide default
23180: # value. By we need to know if files were specified by the user.
23181: ac_need_defaults=:
23182: while test $# != 0
23183: do
23184: case $1 in
23185: --*=*)
1.1.1.2 ! root 23186: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 23187: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.1 root 23188: ac_shift=:
23189: ;;
1.1.1.2 ! root 23190: *)
1.1 root 23191: ac_option=$1
23192: ac_optarg=$2
23193: ac_shift=shift
23194: ;;
23195: esac
23196:
23197: case $ac_option in
23198: # Handling of the options.
23199: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.1.1.2 ! root 23200: : Avoid regenerating within pkgsrc
! 23201: exit 0
1.1 root 23202: ac_cs_recheck=: ;;
1.1.1.2 ! root 23203: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 23204: echo "$ac_cs_version"; exit ;;
! 23205: --debug | --debu | --deb | --de | --d | -d )
1.1 root 23206: debug=: ;;
23207: --file | --fil | --fi | --f )
23208: $ac_shift
23209: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23210: ac_need_defaults=false;;
23211: --header | --heade | --head | --hea )
23212: $ac_shift
23213: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23214: ac_need_defaults=false;;
1.1.1.2 ! root 23215: --he | --h)
! 23216: # Conflict between --help and --header
! 23217: { echo "$as_me: error: ambiguous option: $1
! 23218: Try \`$0 --help' for more information." >&2
! 23219: { (exit 1); exit 1; }; };;
! 23220: --help | --hel | -h )
! 23221: echo "$ac_cs_usage"; exit ;;
1.1 root 23222: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23223: | -silent | --silent | --silen | --sile | --sil | --si | --s)
23224: ac_cs_silent=: ;;
23225:
23226: # This is an error.
1.1.1.2 ! root 23227: -*) { echo "$as_me: error: unrecognized option: $1
! 23228: Try \`$0 --help' for more information." >&2
1.1 root 23229: { (exit 1); exit 1; }; } ;;
23230:
1.1.1.2 ! root 23231: *) ac_config_targets="$ac_config_targets $1"
! 23232: ac_need_defaults=false ;;
1.1 root 23233:
23234: esac
23235: shift
23236: done
23237:
23238: ac_configure_extra_args=
23239:
23240: if $ac_cs_silent; then
23241: exec 6>/dev/null
23242: ac_configure_extra_args="$ac_configure_extra_args --silent"
23243: fi
23244:
23245: _ACEOF
23246: cat >>$CONFIG_STATUS <<_ACEOF
23247: if \$ac_cs_recheck; then
1.1.1.2 ! root 23248: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 23249: CONFIG_SHELL=$SHELL
! 23250: export CONFIG_SHELL
! 23251: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 root 23252: fi
23253:
23254: _ACEOF
1.1.1.2 ! root 23255: cat >>$CONFIG_STATUS <<\_ACEOF
! 23256: exec 5>>config.log
! 23257: {
! 23258: echo
! 23259: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 23260: ## Running $as_me. ##
! 23261: _ASBOX
! 23262: echo "$ac_log"
! 23263: } >&5
1.1 root 23264:
1.1.1.2 ! root 23265: _ACEOF
1.1 root 23266: cat >>$CONFIG_STATUS <<_ACEOF
23267: #
1.1.1.2 ! root 23268: # INIT-COMMANDS
1.1 root 23269: #
23270: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23271:
23272: _ACEOF
23273:
23274: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.2 ! root 23275:
! 23276: # Handling of arguments.
1.1 root 23277: for ac_config_target in $ac_config_targets
23278: do
1.1.1.2 ! root 23279: case $ac_config_target in
! 23280: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
! 23281: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 23282: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 23283:
1.1 root 23284: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23285: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23286: { (exit 1); exit 1; }; };;
23287: esac
23288: done
23289:
1.1.1.2 ! root 23290:
1.1 root 23291: # If the user did not use the arguments to specify the items to instantiate,
23292: # then the envvar interface is used. Set only those that are not.
23293: # We use the long form for the default assignment because of an extremely
23294: # bizarre bug on SunOS 4.1.3.
23295: if $ac_need_defaults; then
23296: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23297: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23298: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23299: fi
23300:
23301: # Have a temporary directory for convenience. Make it in the build tree
1.1.1.2 ! root 23302: # simply because there is no reason against having it here, and in addition,
1.1 root 23303: # creating and moving files from /tmp can sometimes cause problems.
1.1.1.2 ! root 23304: # Hook for its removal unless debugging.
! 23305: # Note that there is a small window in which the directory will not be cleaned:
! 23306: # after its creation but before its name has been assigned to `$tmp'.
1.1 root 23307: $debug ||
23308: {
1.1.1.2 ! root 23309: tmp=
! 23310: trap 'exit_status=$?
! 23311: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 23312: ' 0
1.1 root 23313: trap '{ (exit 1); exit 1; }' 1 2 13 15
23314: }
23315: # Create a (secure) tmp directory for tmp files.
23316:
23317: {
1.1.1.2 ! root 23318: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.1 root 23319: test -n "$tmp" && test -d "$tmp"
23320: } ||
23321: {
1.1.1.2 ! root 23322: tmp=./conf$$-$RANDOM
! 23323: (umask 077 && mkdir "$tmp")
1.1 root 23324: } ||
23325: {
23326: echo "$me: cannot create a temporary directory in ." >&2
23327: { (exit 1); exit 1; }
23328: }
23329:
23330: #
1.1.1.2 ! root 23331: # Set up the sed scripts for CONFIG_FILES section.
1.1 root 23332: #
23333:
23334: # No need to generate the scripts if there are no CONFIG_FILES.
23335: # This happens for instance when ./config.status config.h
1.1.1.2 ! root 23336: if test -n "$CONFIG_FILES"; then
! 23337:
! 23338: _ACEOF
! 23339:
! 23340:
! 23341:
! 23342: ac_delim='%!_!# '
! 23343: for ac_last_try in false false false false false :; do
! 23344: cat >conf$$subs.sed <<_ACEOF
! 23345: SHELL!$SHELL$ac_delim
! 23346: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
! 23347: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
! 23348: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
! 23349: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
! 23350: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
! 23351: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
! 23352: exec_prefix!$exec_prefix$ac_delim
! 23353: prefix!$prefix$ac_delim
! 23354: program_transform_name!$program_transform_name$ac_delim
! 23355: bindir!$bindir$ac_delim
! 23356: sbindir!$sbindir$ac_delim
! 23357: libexecdir!$libexecdir$ac_delim
! 23358: datarootdir!$datarootdir$ac_delim
! 23359: datadir!$datadir$ac_delim
! 23360: sysconfdir!$sysconfdir$ac_delim
! 23361: sharedstatedir!$sharedstatedir$ac_delim
! 23362: localstatedir!$localstatedir$ac_delim
! 23363: includedir!$includedir$ac_delim
! 23364: oldincludedir!$oldincludedir$ac_delim
! 23365: docdir!$docdir$ac_delim
! 23366: infodir!$infodir$ac_delim
! 23367: htmldir!$htmldir$ac_delim
! 23368: dvidir!$dvidir$ac_delim
! 23369: pdfdir!$pdfdir$ac_delim
! 23370: psdir!$psdir$ac_delim
! 23371: libdir!$libdir$ac_delim
! 23372: localedir!$localedir$ac_delim
! 23373: mandir!$mandir$ac_delim
! 23374: DEFS!$DEFS$ac_delim
! 23375: ECHO_C!$ECHO_C$ac_delim
! 23376: ECHO_N!$ECHO_N$ac_delim
! 23377: ECHO_T!$ECHO_T$ac_delim
! 23378: LIBS!$LIBS$ac_delim
! 23379: build_alias!$build_alias$ac_delim
! 23380: host_alias!$host_alias$ac_delim
! 23381: target_alias!$target_alias$ac_delim
! 23382: INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
! 23383: INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
! 23384: INSTALL_DATA!$INSTALL_DATA$ac_delim
! 23385: am__isrc!$am__isrc$ac_delim
! 23386: CYGPATH_W!$CYGPATH_W$ac_delim
! 23387: PACKAGE!$PACKAGE$ac_delim
! 23388: VERSION!$VERSION$ac_delim
! 23389: ACLOCAL!$ACLOCAL$ac_delim
! 23390: AUTOCONF!$AUTOCONF$ac_delim
! 23391: AUTOMAKE!$AUTOMAKE$ac_delim
! 23392: AUTOHEADER!$AUTOHEADER$ac_delim
! 23393: MAKEINFO!$MAKEINFO$ac_delim
! 23394: install_sh!$install_sh$ac_delim
! 23395: STRIP!$STRIP$ac_delim
! 23396: INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
! 23397: mkdir_p!$mkdir_p$ac_delim
! 23398: AWK!$AWK$ac_delim
! 23399: SET_MAKE!$SET_MAKE$ac_delim
! 23400: am__leading_dot!$am__leading_dot$ac_delim
! 23401: AMTAR!$AMTAR$ac_delim
! 23402: am__tar!$am__tar$ac_delim
! 23403: am__untar!$am__untar$ac_delim
! 23404: CC!$CC$ac_delim
! 23405: CFLAGS!$CFLAGS$ac_delim
! 23406: LDFLAGS!$LDFLAGS$ac_delim
! 23407: CPPFLAGS!$CPPFLAGS$ac_delim
! 23408: ac_ct_CC!$ac_ct_CC$ac_delim
! 23409: EXEEXT!$EXEEXT$ac_delim
! 23410: OBJEXT!$OBJEXT$ac_delim
! 23411: DEPDIR!$DEPDIR$ac_delim
! 23412: am__include!$am__include$ac_delim
! 23413: am__quote!$am__quote$ac_delim
! 23414: AMDEP_TRUE!$AMDEP_TRUE$ac_delim
! 23415: AMDEP_FALSE!$AMDEP_FALSE$ac_delim
! 23416: AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
! 23417: CCDEPMODE!$CCDEPMODE$ac_delim
! 23418: am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
! 23419: am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
! 23420: build!$build$ac_delim
! 23421: build_cpu!$build_cpu$ac_delim
! 23422: build_vendor!$build_vendor$ac_delim
! 23423: build_os!$build_os$ac_delim
! 23424: host!$host$ac_delim
! 23425: host_cpu!$host_cpu$ac_delim
! 23426: host_vendor!$host_vendor$ac_delim
! 23427: host_os!$host_os$ac_delim
! 23428: SED!$SED$ac_delim
! 23429: GREP!$GREP$ac_delim
! 23430: EGREP!$EGREP$ac_delim
! 23431: LN_S!$LN_S$ac_delim
! 23432: ECHO!$ECHO$ac_delim
! 23433: AR!$AR$ac_delim
! 23434: RANLIB!$RANLIB$ac_delim
! 23435: DLLTOOL!$DLLTOOL$ac_delim
! 23436: AS!$AS$ac_delim
! 23437: OBJDUMP!$OBJDUMP$ac_delim
! 23438: CPP!$CPP$ac_delim
! 23439: CXX!$CXX$ac_delim
! 23440: CXXFLAGS!$CXXFLAGS$ac_delim
! 23441: ac_ct_CXX!$ac_ct_CXX$ac_delim
! 23442: _ACEOF
! 23443:
! 23444: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
! 23445: break
! 23446: elif $ac_last_try; then
! 23447: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 23448: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 23449: { (exit 1); exit 1; }; }
! 23450: else
! 23451: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 root 23452: fi
1.1.1.2 ! root 23453: done
! 23454:
! 23455: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 23456: if test -n "$ac_eof"; then
! 23457: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 23458: ac_eof=`expr $ac_eof + 1`
! 23459: fi
! 23460:
! 23461: cat >>$CONFIG_STATUS <<_ACEOF
! 23462: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
! 23463: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 23464: _ACEOF
! 23465: sed '
! 23466: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 23467: s/^/s,@/; s/!/@,|#_!!_#|/
! 23468: :n
! 23469: t n
! 23470: s/'"$ac_delim"'$/,g/; t
! 23471: s/$/\\/; p
! 23472: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 23473: ' >>$CONFIG_STATUS <conf$$subs.sed
! 23474: rm -f conf$$subs.sed
! 23475: cat >>$CONFIG_STATUS <<_ACEOF
! 23476: CEOF$ac_eof
! 23477: _ACEOF
! 23478:
! 23479:
! 23480: ac_delim='%!_!# '
! 23481: for ac_last_try in false false false false false :; do
! 23482: cat >conf$$subs.sed <<_ACEOF
! 23483: CXXDEPMODE!$CXXDEPMODE$ac_delim
! 23484: am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
! 23485: am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
! 23486: CXXCPP!$CXXCPP$ac_delim
! 23487: F77!$F77$ac_delim
! 23488: FFLAGS!$FFLAGS$ac_delim
! 23489: ac_ct_F77!$ac_ct_F77$ac_delim
! 23490: LIBTOOL!$LIBTOOL$ac_delim
! 23491: LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
! 23492: INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
! 23493: INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
! 23494: CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
! 23495: CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
! 23496: LIBADD_DL!$LIBADD_DL$ac_delim
! 23497: LIBOBJS!$LIBOBJS$ac_delim
! 23498: LTLIBOBJS!$LTLIBOBJS$ac_delim
! 23499: _ACEOF
! 23500:
! 23501: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
! 23502: break
! 23503: elif $ac_last_try; then
! 23504: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
! 23505: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
! 23506: { (exit 1); exit 1; }; }
! 23507: else
! 23508: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 23509: fi
! 23510: done
1.1 root 23511:
1.1.1.2 ! root 23512: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
! 23513: if test -n "$ac_eof"; then
! 23514: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
! 23515: ac_eof=`expr $ac_eof + 1`
! 23516: fi
! 23517:
! 23518: cat >>$CONFIG_STATUS <<_ACEOF
! 23519: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
! 23520: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
! 23521: _ACEOF
! 23522: sed '
! 23523: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
! 23524: s/^/s,@/; s/!/@,|#_!!_#|/
! 23525: :n
! 23526: t n
! 23527: s/'"$ac_delim"'$/,g/; t
! 23528: s/$/\\/; p
! 23529: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
! 23530: ' >>$CONFIG_STATUS <conf$$subs.sed
! 23531: rm -f conf$$subs.sed
! 23532: cat >>$CONFIG_STATUS <<_ACEOF
! 23533: :end
! 23534: s/|#_!!_#|//g
! 23535: CEOF$ac_eof
1.1 root 23536: _ACEOF
1.1.1.2 ! root 23537:
! 23538:
! 23539: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 23540: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 23541: # trailing colons and then remove the whole line if VPATH becomes empty
! 23542: # (actually we leave an empty line to preserve line numbers).
! 23543: if test "x$srcdir" = x.; then
! 23544: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 23545: s/:*\$(srcdir):*/:/
! 23546: s/:*\${srcdir}:*/:/
! 23547: s/:*@srcdir@:*/:/
! 23548: s/^\([^=]*=[ ]*\):*/\1/
! 23549: s/:*$//
! 23550: s/^[^=]*=[ ]*$//
! 23551: }'
! 23552: fi
! 23553:
1.1 root 23554: cat >>$CONFIG_STATUS <<\_ACEOF
1.1.1.2 ! root 23555: fi # test -n "$CONFIG_FILES"
! 23556:
! 23557:
! 23558: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
! 23559: do
! 23560: case $ac_tag in
! 23561: :[FHLC]) ac_mode=$ac_tag; continue;;
! 23562: esac
! 23563: case $ac_mode$ac_tag in
! 23564: :[FHL]*:*);;
! 23565: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
! 23566: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
! 23567: { (exit 1); exit 1; }; };;
! 23568: :[FH]-) ac_tag=-:-;;
! 23569: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 23570: esac
! 23571: ac_save_IFS=$IFS
! 23572: IFS=:
! 23573: set x $ac_tag
! 23574: IFS=$ac_save_IFS
! 23575: shift
! 23576: ac_file=$1
! 23577: shift
! 23578:
! 23579: case $ac_mode in
! 23580: :L) ac_source=$1;;
! 23581: :[FH])
! 23582: ac_file_inputs=
! 23583: for ac_f
! 23584: do
! 23585: case $ac_f in
! 23586: -) ac_f="$tmp/stdin";;
! 23587: *) # Look for the file first in the build tree, then in the source tree
! 23588: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 23589: # because $ac_f cannot contain `:'.
! 23590: test -f "$ac_f" ||
! 23591: case $ac_f in
! 23592: [\\/$]*) false;;
! 23593: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 23594: esac ||
! 23595: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
! 23596: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
! 23597: { (exit 1); exit 1; }; };;
! 23598: esac
! 23599: ac_file_inputs="$ac_file_inputs $ac_f"
! 23600: done
! 23601:
! 23602: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 23603: # use $as_me), people would be surprised to read:
! 23604: # /* config.h. Generated by config.status. */
! 23605: configure_input="Generated from "`IFS=:
! 23606: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
! 23607: if test x"$ac_file" != x-; then
! 23608: configure_input="$ac_file. $configure_input"
! 23609: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 23610: echo "$as_me: creating $ac_file" >&6;}
! 23611: fi
! 23612:
! 23613: case $ac_tag in
! 23614: *:-:* | *:-) cat >"$tmp/stdin";;
! 23615: esac
! 23616: ;;
1.1 root 23617: esac
23618:
1.1.1.2 ! root 23619: ac_dir=`$as_dirname -- "$ac_file" ||
1.1 root 23620: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 23621: X"$ac_file" : 'X\(//\)[^/]' \| \
! 23622: X"$ac_file" : 'X\(//\)$' \| \
! 23623: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 23624: echo X"$ac_file" |
1.1.1.2 ! root 23625: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 23626: s//\1/
! 23627: q
! 23628: }
! 23629: /^X\(\/\/\)[^/].*/{
! 23630: s//\1/
! 23631: q
! 23632: }
! 23633: /^X\(\/\/\)$/{
! 23634: s//\1/
! 23635: q
! 23636: }
! 23637: /^X\(\/\).*/{
! 23638: s//\1/
! 23639: q
! 23640: }
! 23641: s/.*/./; q'`
! 23642: { as_dir="$ac_dir"
! 23643: case $as_dir in #(
! 23644: -*) as_dir=./$as_dir;;
! 23645: esac
! 23646: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1 root 23647: as_dirs=
1.1.1.2 ! root 23648: while :; do
! 23649: case $as_dir in #(
! 23650: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 23651: *) as_qdir=$as_dir;;
! 23652: esac
! 23653: as_dirs="'$as_qdir' $as_dirs"
! 23654: as_dir=`$as_dirname -- "$as_dir" ||
1.1 root 23655: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 23656: X"$as_dir" : 'X\(//\)[^/]' \| \
! 23657: X"$as_dir" : 'X\(//\)$' \| \
! 23658: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 23659: echo X"$as_dir" |
1.1.1.2 ! root 23660: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 23661: s//\1/
! 23662: q
! 23663: }
! 23664: /^X\(\/\/\)[^/].*/{
! 23665: s//\1/
! 23666: q
! 23667: }
! 23668: /^X\(\/\/\)$/{
! 23669: s//\1/
! 23670: q
! 23671: }
! 23672: /^X\(\/\).*/{
! 23673: s//\1/
! 23674: q
! 23675: }
! 23676: s/.*/./; q'`
! 23677: test -d "$as_dir" && break
1.1 root 23678: done
1.1.1.2 ! root 23679: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 23680: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 23681: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1 root 23682: { (exit 1); exit 1; }; }; }
23683: ac_builddir=.
23684:
1.1.1.2 ! root 23685: case "$ac_dir" in
! 23686: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 23687: *)
1.1 root 23688: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1.1.2 ! root 23689: # A ".." for each directory in $ac_dir_suffix.
! 23690: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
! 23691: case $ac_top_builddir_sub in
! 23692: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 23693: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 23694: esac ;;
! 23695: esac
! 23696: ac_abs_top_builddir=$ac_pwd
! 23697: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 23698: # for backward compatibility:
! 23699: ac_top_builddir=$ac_top_build_prefix
1.1 root 23700:
23701: case $srcdir in
1.1.1.2 ! root 23702: .) # We are building in place.
1.1 root 23703: ac_srcdir=.
1.1.1.2 ! root 23704: ac_top_srcdir=$ac_top_builddir_sub
! 23705: ac_abs_top_srcdir=$ac_pwd ;;
! 23706: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 root 23707: ac_srcdir=$srcdir$ac_dir_suffix;
1.1.1.2 ! root 23708: ac_top_srcdir=$srcdir
! 23709: ac_abs_top_srcdir=$srcdir ;;
! 23710: *) # Relative name.
! 23711: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 23712: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 23713: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
! 23714: esac
! 23715: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 root 23716:
23717:
1.1.1.2 ! root 23718: case $ac_mode in
! 23719: :F)
! 23720: #
! 23721: # CONFIG_FILE
! 23722: #
! 23723:
1.1 root 23724: case $INSTALL in
23725: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.1.1.2 ! root 23726: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
! 23727: esac
! 23728: ac_MKDIR_P=$MKDIR_P
! 23729: case $MKDIR_P in
! 23730: [\\/$]* | ?:[\\/]* ) ;;
! 23731: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1.1 root 23732: esac
1.1.1.2 ! root 23733: _ACEOF
1.1 root 23734:
1.1.1.2 ! root 23735: cat >>$CONFIG_STATUS <<\_ACEOF
! 23736: # If the template does not know about datarootdir, expand it.
! 23737: # FIXME: This hack should be removed a few years after 2.60.
! 23738: ac_datarootdir_hack=; ac_datarootdir_seen=
! 23739:
! 23740: case `sed -n '/datarootdir/ {
! 23741: p
! 23742: q
! 23743: }
! 23744: /@datadir@/p
! 23745: /@docdir@/p
! 23746: /@infodir@/p
! 23747: /@localedir@/p
! 23748: /@mandir@/p
! 23749: ' $ac_file_inputs` in
! 23750: *datarootdir*) ac_datarootdir_seen=yes;;
! 23751: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 23752: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 23753: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 23754: _ACEOF
! 23755: cat >>$CONFIG_STATUS <<_ACEOF
! 23756: ac_datarootdir_hack='
! 23757: s&@datadir@&$datadir&g
! 23758: s&@docdir@&$docdir&g
! 23759: s&@infodir@&$infodir&g
! 23760: s&@localedir@&$localedir&g
! 23761: s&@mandir@&$mandir&g
! 23762: s&\\\${datarootdir}&$datarootdir&g' ;;
! 23763: esac
1.1 root 23764: _ACEOF
1.1.1.2 ! root 23765:
! 23766: # Neutralize VPATH when `$srcdir' = `.'.
! 23767: # Shell code in configure.ac might set extrasub.
! 23768: # FIXME: do we really want to maintain this feature?
1.1 root 23769: cat >>$CONFIG_STATUS <<_ACEOF
23770: sed "$ac_vpsub
23771: $extrasub
23772: _ACEOF
23773: cat >>$CONFIG_STATUS <<\_ACEOF
23774: :t
23775: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.1.1.2 ! root 23776: s&@configure_input@&$configure_input&;t t
! 23777: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 23778: s&@srcdir@&$ac_srcdir&;t t
! 23779: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 23780: s&@top_srcdir@&$ac_top_srcdir&;t t
! 23781: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 23782: s&@builddir@&$ac_builddir&;t t
! 23783: s&@abs_builddir@&$ac_abs_builddir&;t t
! 23784: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 23785: s&@INSTALL@&$ac_INSTALL&;t t
! 23786: s&@MKDIR_P@&$ac_MKDIR_P&;t t
! 23787: $ac_datarootdir_hack
! 23788: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
! 23789:
! 23790: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 23791: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 23792: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 23793: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 23794: which seems to be undefined. Please make sure it is defined." >&5
! 23795: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 23796: which seems to be undefined. Please make sure it is defined." >&2;}
1.1 root 23797:
1.1.1.2 ! root 23798: rm -f "$tmp/stdin"
1.1 root 23799: case $ac_file in
1.1.1.2 ! root 23800: -) cat "$tmp/out"; rm -f "$tmp/out";;
! 23801: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.1 root 23802: esac
1.1.1.2 ! root 23803: ;;
! 23804: :H)
! 23805: #
! 23806: # CONFIG_HEADER
! 23807: #
1.1 root 23808: _ACEOF
23809:
1.1.1.2 ! root 23810: # Transform confdefs.h into a sed script `conftest.defines', that
! 23811: # substitutes the proper values into config.h.in to produce config.h.
! 23812: rm -f conftest.defines conftest.tail
! 23813: # First, append a space to every undef/define line, to ease matching.
! 23814: echo 's/$/ /' >conftest.defines
! 23815: # Then, protect against being on the right side of a sed subst, or in
! 23816: # an unquoted here document, in config.status. If some macros were
! 23817: # called several times there might be several #defines for the same
! 23818: # symbol, which is useless. But do not sort them, since the last
! 23819: # AC_DEFINE must be honored.
! 23820: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 23821: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
! 23822: # NAME is the cpp macro being defined, VALUE is the value it is being given.
! 23823: # PARAMS is the parameter list in the macro definition--in most cases, it's
! 23824: # just an empty string.
! 23825: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
! 23826: ac_dB='\\)[ (].*,\\1define\\2'
! 23827: ac_dC=' '
! 23828: ac_dD=' ,'
! 23829:
! 23830: uniq confdefs.h |
! 23831: sed -n '
! 23832: t rset
! 23833: :rset
! 23834: s/^[ ]*#[ ]*define[ ][ ]*//
! 23835: t ok
! 23836: d
! 23837: :ok
! 23838: s/[\\&,]/\\&/g
! 23839: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
! 23840: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
! 23841: ' >>conftest.defines
1.1 root 23842:
1.1.1.2 ! root 23843: # Remove the space that was appended to ease matching.
! 23844: # Then replace #undef with comments. This is necessary, for
1.1 root 23845: # example, in the case of _POSIX_SOURCE, which is predefined and required
23846: # on some systems where configure will not decide to define it.
1.1.1.2 ! root 23847: # (The regexp can be short, since the line contains either #define or #undef.)
! 23848: echo 's/ $//
! 23849: s,^[ #]*u.*,/* & */,' >>conftest.defines
! 23850:
! 23851: # Break up conftest.defines:
! 23852: ac_max_sed_lines=50
! 23853:
! 23854: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
! 23855: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
! 23856: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
! 23857: # et cetera.
! 23858: ac_in='$ac_file_inputs'
! 23859: ac_out='"$tmp/out1"'
! 23860: ac_nxt='"$tmp/out2"'
1.1 root 23861:
1.1.1.2 ! root 23862: while :
1.1 root 23863: do
1.1.1.2 ! root 23864: # Write a here document:
! 23865: cat >>$CONFIG_STATUS <<_ACEOF
! 23866: # First, check the format of the line:
! 23867: cat >"\$tmp/defines.sed" <<\\CEOF
! 23868: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
! 23869: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
! 23870: b
! 23871: :def
! 23872: _ACEOF
! 23873: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
1.1 root 23874: echo 'CEOF
1.1.1.2 ! root 23875: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
! 23876: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
! 23877: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
! 23878: grep . conftest.tail >/dev/null || break
1.1 root 23879: rm -f conftest.defines
23880: mv conftest.tail conftest.defines
23881: done
1.1.1.2 ! root 23882: rm -f conftest.defines conftest.tail
1.1 root 23883:
1.1.1.2 ! root 23884: echo "ac_result=$ac_in" >>$CONFIG_STATUS
1.1 root 23885: cat >>$CONFIG_STATUS <<\_ACEOF
23886: if test x"$ac_file" != x-; then
1.1.1.2 ! root 23887: echo "/* $configure_input */" >"$tmp/config.h"
! 23888: cat "$ac_result" >>"$tmp/config.h"
! 23889: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1.1 root 23890: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23891: echo "$as_me: $ac_file is unchanged" >&6;}
23892: else
23893: rm -f $ac_file
1.1.1.2 ! root 23894: mv "$tmp/config.h" $ac_file
1.1 root 23895: fi
23896: else
1.1.1.2 ! root 23897: echo "/* $configure_input */"
! 23898: cat "$ac_result"
1.1 root 23899: fi
1.1.1.2 ! root 23900: rm -f "$tmp/out12"
1.1 root 23901: # Compute $ac_file's index in $config_headers.
23902: _am_stamp_count=1
23903: for _am_header in $config_headers :; do
23904: case $_am_header in
23905: $ac_file | $ac_file:* )
23906: break ;;
23907: * )
23908: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23909: esac
23910: done
1.1.1.2 ! root 23911: echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
1.1 root 23912: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 23913: X$ac_file : 'X\(//\)[^/]' \| \
! 23914: X$ac_file : 'X\(//\)$' \| \
! 23915: X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 23916: echo X$ac_file |
1.1.1.2 ! root 23917: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 23918: s//\1/
! 23919: q
! 23920: }
! 23921: /^X\(\/\/\)[^/].*/{
! 23922: s//\1/
! 23923: q
! 23924: }
! 23925: /^X\(\/\/\)$/{
! 23926: s//\1/
! 23927: q
! 23928: }
! 23929: /^X\(\/\).*/{
! 23930: s//\1/
! 23931: q
! 23932: }
! 23933: s/.*/./; q'`/stamp-h$_am_stamp_count
! 23934: ;;
1.1 root 23935:
1.1.1.2 ! root 23936: :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
! 23937: echo "$as_me: executing $ac_file commands" >&6;}
! 23938: ;;
! 23939: esac
1.1 root 23940:
23941:
1.1.1.2 ! root 23942: case $ac_file$ac_mode in
! 23943: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.1 root 23944: # Strip MF so we end up with the name of the file.
23945: mf=`echo "$mf" | sed -e 's/:.*$//'`
23946: # Check whether this is an Automake generated Makefile or not.
23947: # We used to match only the files named `Makefile.in', but
23948: # some people rename them; so instead we look at the file content.
23949: # Grep'ing the first line is not enough: some people post-process
23950: # each Makefile.in and add a new line on top of each file to say so.
1.1.1.2 ! root 23951: # Grep'ing the whole file is not good either: AIX grep has a line
! 23952: # limit of 2048, but all sed's we know have understand at least 4000.
! 23953: if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
! 23954: dirpart=`$as_dirname -- "$mf" ||
1.1 root 23955: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 23956: X"$mf" : 'X\(//\)[^/]' \| \
! 23957: X"$mf" : 'X\(//\)$' \| \
! 23958: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 23959: echo X"$mf" |
1.1.1.2 ! root 23960: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 23961: s//\1/
! 23962: q
! 23963: }
! 23964: /^X\(\/\/\)[^/].*/{
! 23965: s//\1/
! 23966: q
! 23967: }
! 23968: /^X\(\/\/\)$/{
! 23969: s//\1/
! 23970: q
! 23971: }
! 23972: /^X\(\/\).*/{
! 23973: s//\1/
! 23974: q
! 23975: }
! 23976: s/.*/./; q'`
1.1 root 23977: else
23978: continue
23979: fi
1.1.1.2 ! root 23980: # Extract the definition of DEPDIR, am__include, and am__quote
! 23981: # from the Makefile without running `make'.
! 23982: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.1 root 23983: test -z "$DEPDIR" && continue
1.1.1.2 ! root 23984: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 23985: test -z "am__include" && continue
! 23986: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1.1 root 23987: # When using ansi2knr, U may be empty or an underscore; expand it
1.1.1.2 ! root 23988: U=`sed -n 's/^U = //p' < "$mf"`
! 23989: # Find all dependency output files, they are included files with
! 23990: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 23991: # simplest approach to changing $(DEPDIR) to its actual value in the
! 23992: # expansion.
! 23993: for file in `sed -n "
! 23994: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1 root 23995: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23996: # Make sure the directory exists.
23997: test -f "$dirpart/$file" && continue
1.1.1.2 ! root 23998: fdir=`$as_dirname -- "$file" ||
1.1 root 23999: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 24000: X"$file" : 'X\(//\)[^/]' \| \
! 24001: X"$file" : 'X\(//\)$' \| \
! 24002: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 24003: echo X"$file" |
1.1.1.2 ! root 24004: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 24005: s//\1/
! 24006: q
! 24007: }
! 24008: /^X\(\/\/\)[^/].*/{
! 24009: s//\1/
! 24010: q
! 24011: }
! 24012: /^X\(\/\/\)$/{
! 24013: s//\1/
! 24014: q
! 24015: }
! 24016: /^X\(\/\).*/{
! 24017: s//\1/
! 24018: q
! 24019: }
! 24020: s/.*/./; q'`
! 24021: { as_dir=$dirpart/$fdir
! 24022: case $as_dir in #(
! 24023: -*) as_dir=./$as_dir;;
! 24024: esac
! 24025: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1.1 root 24026: as_dirs=
1.1.1.2 ! root 24027: while :; do
! 24028: case $as_dir in #(
! 24029: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
! 24030: *) as_qdir=$as_dir;;
! 24031: esac
! 24032: as_dirs="'$as_qdir' $as_dirs"
! 24033: as_dir=`$as_dirname -- "$as_dir" ||
1.1 root 24034: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.1.1.2 ! root 24035: X"$as_dir" : 'X\(//\)[^/]' \| \
! 24036: X"$as_dir" : 'X\(//\)$' \| \
! 24037: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1 root 24038: echo X"$as_dir" |
1.1.1.2 ! root 24039: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 24040: s//\1/
! 24041: q
! 24042: }
! 24043: /^X\(\/\/\)[^/].*/{
! 24044: s//\1/
! 24045: q
! 24046: }
! 24047: /^X\(\/\/\)$/{
! 24048: s//\1/
! 24049: q
! 24050: }
! 24051: /^X\(\/\).*/{
! 24052: s//\1/
! 24053: q
! 24054: }
! 24055: s/.*/./; q'`
! 24056: test -d "$as_dir" && break
1.1 root 24057: done
1.1.1.2 ! root 24058: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 24059: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
! 24060: echo "$as_me: error: cannot create directory $as_dir" >&2;}
1.1 root 24061: { (exit 1); exit 1; }; }; }
24062: # echo "creating $dirpart/$file"
24063: echo '# dummy' > "$dirpart/$file"
24064: done
24065: done
24066: ;;
1.1.1.2 ! root 24067:
1.1 root 24068: esac
1.1.1.2 ! root 24069: done # for ac_tag
1.1 root 24070:
24071:
24072: { (exit 0); exit 0; }
24073: _ACEOF
24074: chmod +x $CONFIG_STATUS
24075: ac_clean_files=$ac_clean_files_save
24076:
24077:
24078: # configure is writing to config.log, and then calls config.status.
24079: # config.status does its own redirection, appending to config.log.
24080: # Unfortunately, on DOS this fails, as config.log is still kept open
24081: # by configure, so config.status won't be able to write to it; its
24082: # output is simply discarded. So we exec the FD to /dev/null,
24083: # effectively closing config.log, so it can be properly (re)opened and
24084: # appended to by config.status. When coming back to configure, we
24085: # need to make the FD available again.
24086: if test "$no_create" != yes; then
24087: ac_cs_success=:
24088: ac_config_status_args=
24089: test "$silent" = yes &&
24090: ac_config_status_args="$ac_config_status_args --quiet"
24091: exec 5>/dev/null
24092: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24093: exec 5>>config.log
24094: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24095: # would make configure fail if this is the last instruction.
24096: $ac_cs_success || { (exit 1); exit 1; }
24097: fi
24098:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.