Annotation of sql/sqlite/configure, revision 1.10
1.1 misha 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.10 ! moko 3: # Generated by GNU Autoconf 2.67.
! 4: #
! 5: #
! 6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
! 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
! 8: # Foundation, Inc.
! 9: #
1.1 misha 10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.10 ! moko 13: ## -------------------- ##
! 14: ## M4sh Initialization. ##
! 15: ## -------------------- ##
1.1 misha 16:
1.10 ! moko 17: # Be more Bourne compatible
! 18: DUALCASE=1; export DUALCASE # for MKS sh
! 19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 misha 20: emulate sh
21: NULLCMD=:
1.10 ! moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 misha 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.10 ! moko 25: setopt NO_GLOB_SUBST
! 26: else
! 27: case `(set -o) 2>/dev/null` in #(
! 28: *posix*) :
! 29: set -o posix ;; #(
! 30: *) :
! 31: ;;
! 32: esac
! 33: fi
! 34:
! 35:
! 36: as_nl='
! 37: '
! 38: export as_nl
! 39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 43: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 44: # but without wasting forks for bash or zsh.
! 45: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 47: as_echo='print -r --'
! 48: as_echo_n='print -rn --'
! 49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 50: as_echo='printf %s\n'
! 51: as_echo_n='printf %s'
! 52: else
! 53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 55: as_echo_n='/usr/ucb/echo -n'
! 56: else
! 57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 58: as_echo_n_body='eval
! 59: arg=$1;
! 60: case $arg in #(
! 61: *"$as_nl"*)
! 62: expr "X$arg" : "X\\(.*\\)$as_nl";
! 63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 64: esac;
! 65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 66: '
! 67: export as_echo_n_body
! 68: as_echo_n='sh -c $as_echo_n_body as_echo'
! 69: fi
! 70: export as_echo_body
! 71: as_echo='sh -c $as_echo_body as_echo'
1.1 misha 72: fi
73:
1.10 ! moko 74: # The user is always right.
! 75: if test "${PATH_SEPARATOR+set}" != set; then
! 76: PATH_SEPARATOR=:
! 77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 79: PATH_SEPARATOR=';'
! 80: }
1.1 misha 81: fi
82:
83:
1.10 ! moko 84: # IFS
! 85: # We need space, tab and new line, in precisely that order. Quoting is
! 86: # there to prevent editors from complaining about space-tab.
! 87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 88: # splitting by setting IFS to empty value.)
! 89: IFS=" "" $as_nl"
! 90:
! 91: # Find who we are. Look in the path if we contain no directory separator.
! 92: case $0 in #((
! 93: *[\\/]* ) as_myself=$0 ;;
! 94: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 95: for as_dir in $PATH
! 96: do
! 97: IFS=$as_save_IFS
! 98: test -z "$as_dir" && as_dir=.
! 99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 100: done
! 101: IFS=$as_save_IFS
! 102:
! 103: ;;
! 104: esac
! 105: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 106: # in which case we are not to be found in the path.
! 107: if test "x$as_myself" = x; then
! 108: as_myself=$0
! 109: fi
! 110: if test ! -f "$as_myself"; then
! 111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 112: exit 1
! 113: fi
! 114:
! 115: # Unset variables that we do not need and which cause bugs (e.g. in
! 116: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 117: # suppresses any "Segmentation fault" message there. '((' could
! 118: # trigger a bug in pdksh 5.2.14.
! 119: for as_var in BASH_ENV ENV MAIL MAILPATH
! 120: do eval test x\${$as_var+set} = xset \
! 121: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 122: done
1.1 misha 123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
1.10 ! moko 128: LC_ALL=C
! 129: export LC_ALL
! 130: LANGUAGE=C
! 131: export LANGUAGE
! 132:
! 133: # CDPATH.
! 134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 135:
! 136: if test "x$CONFIG_SHELL" = x; then
! 137: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
! 138: emulate sh
! 139: NULLCMD=:
! 140: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
! 141: # is contrary to our usage. Disable this feature.
! 142: alias -g '\${1+\"\$@\"}'='\"\$@\"'
! 143: setopt NO_GLOB_SUBST
! 144: else
! 145: case \`(set -o) 2>/dev/null\` in #(
! 146: *posix*) :
! 147: set -o posix ;; #(
! 148: *) :
! 149: ;;
! 150: esac
! 151: fi
! 152: "
! 153: as_required="as_fn_return () { (exit \$1); }
! 154: as_fn_success () { as_fn_return 0; }
! 155: as_fn_failure () { as_fn_return 1; }
! 156: as_fn_ret_success () { return 0; }
! 157: as_fn_ret_failure () { return 1; }
! 158:
! 159: exitcode=0
! 160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
! 161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
! 162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
! 163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
! 164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
! 165:
! 166: else
! 167: exitcode=1; echo positional parameters were not saved.
! 168: fi
! 169: test x\$exitcode = x0 || exit 1"
! 170: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
! 171: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
! 172: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
! 173: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
! 174:
! 175: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
! 176: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 177: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
! 178: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
! 179: PATH=/empty FPATH=/empty; export PATH FPATH
! 180: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
! 181: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
! 182: test \$(( 1 + 1 )) = 2 || exit 1"
! 183: if (eval "$as_required") 2>/dev/null; then :
! 184: as_have_required=yes
! 185: else
! 186: as_have_required=no
! 187: fi
! 188: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
! 189:
! 190: else
! 191: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 192: as_found=false
! 193: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.1 misha 194: do
1.10 ! moko 195: IFS=$as_save_IFS
! 196: test -z "$as_dir" && as_dir=.
! 197: as_found=:
! 198: case $as_dir in #(
! 199: /*)
! 200: for as_base in sh bash ksh sh5; do
! 201: # Try only shells that exist, to save several forks.
! 202: as_shell=$as_dir/$as_base
! 203: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 204: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 205: CONFIG_SHELL=$as_shell as_have_required=yes
! 206: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 207: break 2
! 208: fi
! 209: fi
! 210: done;;
! 211: esac
! 212: as_found=false
! 213: done
! 214: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 215: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
! 216: CONFIG_SHELL=$SHELL as_have_required=yes
! 217: fi; }
! 218: IFS=$as_save_IFS
! 219:
! 220:
! 221: if test "x$CONFIG_SHELL" != x; then :
! 222: # We cannot yet assume a decent shell, so we have to provide a
! 223: # neutralization value for shells without unset; and this also
! 224: # works around shells that cannot unset nonexistent variables.
! 225: BASH_ENV=/dev/null
! 226: ENV=/dev/null
! 227: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 228: export CONFIG_SHELL
! 229: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
! 230: fi
! 231:
! 232: if test x$as_have_required = xno; then :
! 233: $as_echo "$0: This script requires a shell more modern than all"
! 234: $as_echo "$0: the shells that I found on your system."
! 235: if test x${ZSH_VERSION+set} = xset ; then
! 236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1.1 misha 238: else
1.10 ! moko 239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
! 240: $0: including any error possibly output before this
! 241: $0: message. Then install a modern shell, or manually run
! 242: $0: the script under such a shell if you do have one."
1.1 misha 243: fi
1.10 ! moko 244: exit 1
! 245: fi
! 246: fi
! 247: fi
! 248: SHELL=${CONFIG_SHELL-/bin/sh}
! 249: export SHELL
! 250: # Unset more variables known to interfere with behavior of common tools.
! 251: CLICOLOR_FORCE= GREP_OPTIONS=
! 252: unset CLICOLOR_FORCE GREP_OPTIONS
! 253:
! 254: ## --------------------- ##
! 255: ## M4sh Shell Functions. ##
! 256: ## --------------------- ##
! 257: # as_fn_unset VAR
! 258: # ---------------
! 259: # Portably unset VAR.
! 260: as_fn_unset ()
! 261: {
! 262: { eval $1=; unset $1;}
! 263: }
! 264: as_unset=as_fn_unset
! 265:
! 266: # as_fn_set_status STATUS
! 267: # -----------------------
! 268: # Set $? to STATUS, without forking.
! 269: as_fn_set_status ()
! 270: {
! 271: return $1
! 272: } # as_fn_set_status
! 273:
! 274: # as_fn_exit STATUS
! 275: # -----------------
! 276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 277: as_fn_exit ()
! 278: {
! 279: set +e
! 280: as_fn_set_status $1
! 281: exit $1
! 282: } # as_fn_exit
! 283:
! 284: # as_fn_mkdir_p
! 285: # -------------
! 286: # Create "$as_dir" as a directory, including parents if necessary.
! 287: as_fn_mkdir_p ()
! 288: {
! 289:
! 290: case $as_dir in #(
! 291: -*) as_dir=./$as_dir;;
! 292: esac
! 293: test -d "$as_dir" || eval $as_mkdir_p || {
! 294: as_dirs=
! 295: while :; do
! 296: case $as_dir in #(
! 297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 298: *) as_qdir=$as_dir;;
! 299: esac
! 300: as_dirs="'$as_qdir' $as_dirs"
! 301: as_dir=`$as_dirname -- "$as_dir" ||
! 302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 303: X"$as_dir" : 'X\(//\)[^/]' \| \
! 304: X"$as_dir" : 'X\(//\)$' \| \
! 305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 306: $as_echo X"$as_dir" |
! 307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 308: s//\1/
! 309: q
! 310: }
! 311: /^X\(\/\/\)[^/].*/{
! 312: s//\1/
! 313: q
! 314: }
! 315: /^X\(\/\/\)$/{
! 316: s//\1/
! 317: q
! 318: }
! 319: /^X\(\/\).*/{
! 320: s//\1/
! 321: q
! 322: }
! 323: s/.*/./; q'`
! 324: test -d "$as_dir" && break
! 325: done
! 326: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 328:
! 329:
! 330: } # as_fn_mkdir_p
! 331: # as_fn_append VAR VALUE
! 332: # ----------------------
! 333: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 334: # advantage of any shell optimizations that allow amortized linear growth over
! 335: # repeated appends, instead of the typical quadratic growth present in naive
! 336: # implementations.
! 337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 338: eval 'as_fn_append ()
! 339: {
! 340: eval $1+=\$2
! 341: }'
! 342: else
! 343: as_fn_append ()
! 344: {
! 345: eval $1=\$$1\$2
! 346: }
! 347: fi # as_fn_append
! 348:
! 349: # as_fn_arith ARG...
! 350: # ------------------
! 351: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 353: # must be portable across $(()) and expr.
! 354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 355: eval 'as_fn_arith ()
! 356: {
! 357: as_val=$(( $* ))
! 358: }'
! 359: else
! 360: as_fn_arith ()
! 361: {
! 362: as_val=`expr "$@" || test $? -eq 1`
! 363: }
! 364: fi # as_fn_arith
! 365:
! 366:
! 367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 368: # ----------------------------------------
! 369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 371: # script with STATUS, using 1 if that was 0.
! 372: as_fn_error ()
! 373: {
! 374: as_status=$1; test $as_status -eq 0 && as_status=1
! 375: if test "$4"; then
! 376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 378: fi
! 379: $as_echo "$as_me: error: $2" >&2
! 380: as_fn_exit $as_status
! 381: } # as_fn_error
1.1 misha 382:
1.10 ! moko 383: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.1 misha 385: as_expr=expr
386: else
387: as_expr=false
388: fi
389:
1.10 ! moko 390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.1 misha 391: as_basename=basename
392: else
393: as_basename=false
394: fi
395:
1.10 ! moko 396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 397: as_dirname=dirname
! 398: else
! 399: as_dirname=false
! 400: fi
1.1 misha 401:
1.10 ! moko 402: as_me=`$as_basename -- "$0" ||
1.1 misha 403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
1.10 ! moko 405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 406: $as_echo X/"$0" |
! 407: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 408: s//\1/
! 409: q
! 410: }
! 411: /^X\/\(\/\/\)$/{
! 412: s//\1/
! 413: q
! 414: }
! 415: /^X\/\(\/\).*/{
! 416: s//\1/
! 417: q
! 418: }
! 419: s/.*/./; q'`
1.1 misha 420:
421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
427:
428:
1.10 ! moko 429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
! 430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
! 431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
! 432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
! 433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
! 434: sed -n '
! 435: p
! 436: /[$]LINENO/=
! 437: ' <$as_myself |
1.1 misha 438: sed '
1.10 ! moko 439: s/[$]LINENO.*/&-/
! 440: t lineno
! 441: b
! 442: :lineno
1.1 misha 443: N
1.10 ! moko 444: :loop
! 445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.1 misha 446: t loop
1.10 ! moko 447: s/-\n.*//
1.1 misha 448: ' >$as_me.lineno &&
1.10 ! moko 449: chmod +x "$as_me.lineno" ||
! 450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 misha 451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
1.10 ! moko 454: # original and so on. Autoconf is especially sensitive to this).
! 455: . "./$as_me.lineno"
1.1 misha 456: # Exit status is that of the last command.
457: exit
458: }
459:
1.10 ! moko 460: ECHO_C= ECHO_N= ECHO_T=
! 461: case `echo -n x` in #(((((
! 462: -n*)
! 463: case `echo 'xy\c'` in
! 464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 465: xy) ECHO_C='\c';;
! 466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 467: ECHO_T=' ';;
! 468: esac;;
! 469: *)
! 470: ECHO_N='-n';;
1.1 misha 471: esac
472:
1.10 ! moko 473: rm -f conf$$ conf$$.exe conf$$.file
! 474: if test -d conf$$.dir; then
! 475: rm -f conf$$.dir/conf$$.file
1.1 misha 476: else
1.10 ! moko 477: rm -f conf$$.dir
! 478: mkdir conf$$.dir 2>/dev/null
1.1 misha 479: fi
1.10 ! moko 480: if (echo >conf$$.file) 2>/dev/null; then
! 481: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 482: as_ln_s='ln -s'
! 483: # ... but there are two gotchas:
! 484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 486: # In both cases, we have to default to `cp -p'.
! 487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 488: as_ln_s='cp -p'
! 489: elif ln conf$$.file conf$$ 2>/dev/null; then
! 490: as_ln_s=ln
! 491: else
1.1 misha 492: as_ln_s='cp -p'
493: fi
494: else
495: as_ln_s='cp -p'
496: fi
1.10 ! moko 497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 498: rmdir conf$$.dir 2>/dev/null
1.1 misha 499:
500: if mkdir -p . 2>/dev/null; then
1.10 ! moko 501: as_mkdir_p='mkdir -p "$as_dir"'
1.1 misha 502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
1.10 ! moko 507: if test -x / >/dev/null 2>&1; then
! 508: as_test_x='test -x'
! 509: else
! 510: if ls -dL / >/dev/null 2>&1; then
! 511: as_ls_L_option=L
! 512: else
! 513: as_ls_L_option=
! 514: fi
! 515: as_test_x='
! 516: eval sh -c '\''
! 517: if test -d "$1"; then
! 518: test -d "$1/.";
! 519: else
! 520: case $1 in #(
! 521: -*)set "./$1";;
! 522: esac;
! 523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
! 524: ???[sx]*):;;*)false;;esac;fi
! 525: '\'' sh
! 526: '
! 527: fi
! 528: as_executable_p=$as_test_x
1.1 misha 529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536: SHELL=${CONFIG_SHELL-/bin/sh}
537:
1.8 moko 538: lt_ltdl_dir='libltdl'
1.1 misha 539:
1.8 moko 540: lt_dlopen_dir="$lt_ltdl_dir"
1.1 misha 541:
542:
1.10 ! moko 543: test -n "$DJDIR" || exec 7<&0 </dev/null
! 544: exec 6>&1
! 545:
1.1 misha 546: # Name of the host.
1.10 ! moko 547: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misha 548: # so uname gets run too.
549: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550:
551: #
552: # Initializations.
553: #
554: ac_default_prefix=/usr/local
1.10 ! moko 555: ac_clean_files=
1.1 misha 556: ac_config_libobj_dir=.
1.10 ! moko 557: LIBOBJS=
1.1 misha 558: cross_compiling=no
559: subdirs=
560: MFLAGS=
561: MAKEFLAGS=
562:
563: # Identity of this package.
564: PACKAGE_NAME=
565: PACKAGE_TARNAME=
566: PACKAGE_VERSION=
567: PACKAGE_STRING=
568: PACKAGE_BUGREPORT=
1.10 ! moko 569: PACKAGE_URL=
1.1 misha 570:
571: ac_unique_file="parser3sqlite.C"
572: # Factoring default headers for most tests.
573: ac_includes_default="\
574: #include <stdio.h>
1.10 ! moko 575: #ifdef HAVE_SYS_TYPES_H
1.1 misha 576: # include <sys/types.h>
577: #endif
1.10 ! moko 578: #ifdef HAVE_SYS_STAT_H
1.1 misha 579: # include <sys/stat.h>
580: #endif
1.10 ! moko 581: #ifdef STDC_HEADERS
1.1 misha 582: # include <stdlib.h>
583: # include <stddef.h>
584: #else
1.10 ! moko 585: # ifdef HAVE_STDLIB_H
1.1 misha 586: # include <stdlib.h>
587: # endif
588: #endif
1.10 ! moko 589: #ifdef HAVE_STRING_H
! 590: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.1 misha 591: # include <memory.h>
592: # endif
593: # include <string.h>
594: #endif
1.10 ! moko 595: #ifdef HAVE_STRINGS_H
1.1 misha 596: # include <strings.h>
597: #endif
1.10 ! moko 598: #ifdef HAVE_INTTYPES_H
1.1 misha 599: # include <inttypes.h>
600: #endif
1.10 ! moko 601: #ifdef HAVE_STDINT_H
! 602: # include <stdint.h>
! 603: #endif
! 604: #ifdef HAVE_UNISTD_H
1.1 misha 605: # include <unistd.h>
606: #endif"
607:
1.10 ! moko 608: enable_option_checking=no
! 609: ac_subst_vars='ltdl_LTLIBOBJS
! 610: ltdl_LIBOBJS
! 611: LTLIBOBJS
! 612: LIBOBJS
! 613: LTDLOPEN
! 614: LT_CONFIG_H
! 615: subdirs
! 616: CONVENIENCE_LTDL_FALSE
! 617: CONVENIENCE_LTDL_TRUE
! 618: INSTALL_LTDL_FALSE
! 619: INSTALL_LTDL_TRUE
! 620: ARGZ_H
! 621: sys_symbol_underscore
! 622: LT_DLPREOPEN
! 623: LIBADD_DLD_LINK
! 624: LIBADD_SHL_LOAD
! 625: LIBADD_DLOPEN
! 626: LT_DLLOADERS
! 627: AS
! 628: LIBADD_DL
! 629: INCLTDL
! 630: LTDLINCL
! 631: LTDLDEPS
! 632: LIBLTDL
! 633: CXXCPP
! 634: CPP
! 635: OTOOL64
! 636: OTOOL
! 637: LIPO
! 638: NMEDIT
! 639: DSYMUTIL
! 640: MANIFEST_TOOL
! 641: RANLIB
! 642: ac_ct_AR
! 643: AR
! 644: DLLTOOL
! 645: OBJDUMP
! 646: LN_S
! 647: NM
! 648: ac_ct_DUMPBIN
! 649: DUMPBIN
! 650: LD
! 651: FGREP
! 652: EGREP
! 653: GREP
! 654: SED
! 655: host_os
! 656: host_vendor
! 657: host_cpu
! 658: host
! 659: build_os
! 660: build_vendor
! 661: build_cpu
! 662: build
! 663: LIBTOOL
! 664: am__fastdepCC_FALSE
! 665: am__fastdepCC_TRUE
! 666: CCDEPMODE
! 667: ac_ct_CC
! 668: CFLAGS
! 669: CC
! 670: am__fastdepCXX_FALSE
! 671: am__fastdepCXX_TRUE
! 672: CXXDEPMODE
! 673: AMDEPBACKSLASH
! 674: AMDEP_FALSE
! 675: AMDEP_TRUE
! 676: am__quote
! 677: am__include
! 678: DEPDIR
! 679: OBJEXT
! 680: EXEEXT
! 681: ac_ct_CXX
! 682: CPPFLAGS
! 683: CXXFLAGS
! 684: CXX
! 685: LDFLAGS
! 686: SQLITE_INC
! 687: am__untar
! 688: am__tar
! 689: AMTAR
! 690: am__leading_dot
! 691: SET_MAKE
! 692: AWK
! 693: mkdir_p
! 694: INSTALL_STRIP_PROGRAM
! 695: STRIP
! 696: install_sh
! 697: MAKEINFO
! 698: AUTOHEADER
! 699: AUTOMAKE
! 700: AUTOCONF
! 701: ACLOCAL
! 702: VERSION
! 703: PACKAGE
! 704: CYGPATH_W
! 705: INSTALL_DATA
! 706: INSTALL_SCRIPT
! 707: INSTALL_PROGRAM
! 708: target_alias
! 709: host_alias
! 710: build_alias
! 711: LIBS
! 712: ECHO_T
! 713: ECHO_N
! 714: ECHO_C
! 715: DEFS
! 716: mandir
! 717: localedir
! 718: libdir
! 719: psdir
! 720: pdfdir
! 721: dvidir
! 722: htmldir
! 723: infodir
! 724: docdir
! 725: oldincludedir
! 726: includedir
! 727: localstatedir
! 728: sharedstatedir
! 729: sysconfdir
! 730: datadir
! 731: datarootdir
! 732: libexecdir
! 733: sbindir
! 734: bindir
! 735: program_transform_name
! 736: prefix
! 737: exec_prefix
! 738: PACKAGE_URL
! 739: PACKAGE_BUGREPORT
! 740: PACKAGE_STRING
! 741: PACKAGE_VERSION
! 742: PACKAGE_TARNAME
! 743: PACKAGE_NAME
! 744: PATH_SEPARATOR
! 745: SHELL'
1.1 misha 746: ac_subst_files=''
1.10 ! moko 747: ac_user_opts='
! 748: enable_option_checking
! 749: with_sqlite_inc
! 750: with_dynamic_stdcpp
! 751: enable_dependency_tracking
! 752: enable_shared
! 753: enable_static
! 754: with_pic
! 755: enable_fast_install
! 756: with_gnu_ld
! 757: with_sysroot
! 758: enable_libtool_lock
! 759: with_included_ltdl
! 760: with_ltdl_include
! 761: with_ltdl_lib
! 762: enable_ltdl_install
! 763: '
! 764: ac_precious_vars='build_alias
! 765: host_alias
! 766: target_alias
! 767: CXX
! 768: CXXFLAGS
! 769: LDFLAGS
! 770: LIBS
! 771: CPPFLAGS
! 772: CCC
! 773: CC
! 774: CFLAGS
! 775: CPP
! 776: CXXCPP'
! 777: ac_subdirs_all='libltdl'
1.1 misha 778:
779: # Initialize some variables set by options.
780: ac_init_help=
781: ac_init_version=false
1.10 ! moko 782: ac_unrecognized_opts=
! 783: ac_unrecognized_sep=
1.1 misha 784: # The variables have the same names as the options, with
785: # dashes changed to underlines.
786: cache_file=/dev/null
787: exec_prefix=NONE
788: no_create=
789: no_recursion=
790: prefix=NONE
791: program_prefix=NONE
792: program_suffix=NONE
793: program_transform_name=s,x,x,
794: silent=
795: site=
796: srcdir=
797: verbose=
798: x_includes=NONE
799: x_libraries=NONE
800:
801: # Installation directory options.
802: # These are left unexpanded so users can "make install exec_prefix=/foo"
803: # and all the variables that are supposed to be based on exec_prefix
804: # by default will actually change.
805: # Use braces instead of parens because sh, perl, etc. also accept them.
1.10 ! moko 806: # (The list follows the same order as the GNU Coding Standards.)
1.1 misha 807: bindir='${exec_prefix}/bin'
808: sbindir='${exec_prefix}/sbin'
809: libexecdir='${exec_prefix}/libexec'
1.10 ! moko 810: datarootdir='${prefix}/share'
! 811: datadir='${datarootdir}'
1.1 misha 812: sysconfdir='${prefix}/etc'
813: sharedstatedir='${prefix}/com'
814: localstatedir='${prefix}/var'
815: includedir='${prefix}/include'
816: oldincludedir='/usr/include'
1.10 ! moko 817: docdir='${datarootdir}/doc/${PACKAGE}'
! 818: infodir='${datarootdir}/info'
! 819: htmldir='${docdir}'
! 820: dvidir='${docdir}'
! 821: pdfdir='${docdir}'
! 822: psdir='${docdir}'
! 823: libdir='${exec_prefix}/lib'
! 824: localedir='${datarootdir}/locale'
! 825: mandir='${datarootdir}/man'
1.1 misha 826:
827: ac_prev=
1.10 ! moko 828: ac_dashdash=
1.1 misha 829: for ac_option
830: do
831: # If the previous option needs an argument, assign it.
832: if test -n "$ac_prev"; then
1.10 ! moko 833: eval $ac_prev=\$ac_option
1.1 misha 834: ac_prev=
835: continue
836: fi
837:
1.10 ! moko 838: case $ac_option in
! 839: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 840: *=) ac_optarg= ;;
! 841: *) ac_optarg=yes ;;
! 842: esac
1.1 misha 843:
844: # Accept the important Cygnus configure options, so we can diagnose typos.
845:
1.10 ! moko 846: case $ac_dashdash$ac_option in
! 847: --)
! 848: ac_dashdash=yes ;;
1.1 misha 849:
850: -bindir | --bindir | --bindi | --bind | --bin | --bi)
851: ac_prev=bindir ;;
852: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853: bindir=$ac_optarg ;;
854:
855: -build | --build | --buil | --bui | --bu)
856: ac_prev=build_alias ;;
857: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858: build_alias=$ac_optarg ;;
859:
860: -cache-file | --cache-file | --cache-fil | --cache-fi \
861: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862: ac_prev=cache_file ;;
863: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865: cache_file=$ac_optarg ;;
866:
867: --config-cache | -C)
868: cache_file=config.cache ;;
869:
1.10 ! moko 870: -datadir | --datadir | --datadi | --datad)
1.1 misha 871: ac_prev=datadir ;;
1.10 ! moko 872: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.1 misha 873: datadir=$ac_optarg ;;
874:
1.10 ! moko 875: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
! 876: | --dataroo | --dataro | --datar)
! 877: ac_prev=datarootdir ;;
! 878: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
! 879: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
! 880: datarootdir=$ac_optarg ;;
! 881:
1.1 misha 882: -disable-* | --disable-*)
1.10 ! moko 883: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 misha 884: # Reject names that are not valid shell variable names.
1.10 ! moko 885: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 886: as_fn_error $? "invalid feature name: $ac_useropt"
! 887: ac_useropt_orig=$ac_useropt
! 888: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 889: case $ac_user_opts in
! 890: *"
! 891: "enable_$ac_useropt"
! 892: "*) ;;
! 893: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
! 894: ac_unrecognized_sep=', ';;
! 895: esac
! 896: eval enable_$ac_useropt=no ;;
! 897:
! 898: -docdir | --docdir | --docdi | --doc | --do)
! 899: ac_prev=docdir ;;
! 900: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
! 901: docdir=$ac_optarg ;;
! 902:
! 903: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
! 904: ac_prev=dvidir ;;
! 905: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
! 906: dvidir=$ac_optarg ;;
1.1 misha 907:
908: -enable-* | --enable-*)
1.10 ! moko 909: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 misha 910: # Reject names that are not valid shell variable names.
1.10 ! moko 911: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 912: as_fn_error $? "invalid feature name: $ac_useropt"
! 913: ac_useropt_orig=$ac_useropt
! 914: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 915: case $ac_user_opts in
! 916: *"
! 917: "enable_$ac_useropt"
! 918: "*) ;;
! 919: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
! 920: ac_unrecognized_sep=', ';;
1.1 misha 921: esac
1.10 ! moko 922: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 misha 923:
924: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926: | --exec | --exe | --ex)
927: ac_prev=exec_prefix ;;
928: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930: | --exec=* | --exe=* | --ex=*)
931: exec_prefix=$ac_optarg ;;
932:
933: -gas | --gas | --ga | --g)
934: # Obsolete; use --with-gas.
935: with_gas=yes ;;
936:
937: -help | --help | --hel | --he | -h)
938: ac_init_help=long ;;
939: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
940: ac_init_help=recursive ;;
941: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
942: ac_init_help=short ;;
943:
944: -host | --host | --hos | --ho)
945: ac_prev=host_alias ;;
946: -host=* | --host=* | --hos=* | --ho=*)
947: host_alias=$ac_optarg ;;
948:
1.10 ! moko 949: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
! 950: ac_prev=htmldir ;;
! 951: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
! 952: | --ht=*)
! 953: htmldir=$ac_optarg ;;
! 954:
1.1 misha 955: -includedir | --includedir | --includedi | --included | --include \
956: | --includ | --inclu | --incl | --inc)
957: ac_prev=includedir ;;
958: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959: | --includ=* | --inclu=* | --incl=* | --inc=*)
960: includedir=$ac_optarg ;;
961:
962: -infodir | --infodir | --infodi | --infod | --info | --inf)
963: ac_prev=infodir ;;
964: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965: infodir=$ac_optarg ;;
966:
967: -libdir | --libdir | --libdi | --libd)
968: ac_prev=libdir ;;
969: -libdir=* | --libdir=* | --libdi=* | --libd=*)
970: libdir=$ac_optarg ;;
971:
972: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973: | --libexe | --libex | --libe)
974: ac_prev=libexecdir ;;
975: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976: | --libexe=* | --libex=* | --libe=*)
977: libexecdir=$ac_optarg ;;
978:
1.10 ! moko 979: -localedir | --localedir | --localedi | --localed | --locale)
! 980: ac_prev=localedir ;;
! 981: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
! 982: localedir=$ac_optarg ;;
! 983:
1.1 misha 984: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.10 ! moko 985: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 misha 986: ac_prev=localstatedir ;;
987: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.10 ! moko 988: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.1 misha 989: localstatedir=$ac_optarg ;;
990:
991: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992: ac_prev=mandir ;;
993: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
994: mandir=$ac_optarg ;;
995:
996: -nfp | --nfp | --nf)
997: # Obsolete; use --without-fp.
998: with_fp=no ;;
999:
1000: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001: | --no-cr | --no-c | -n)
1002: no_create=yes ;;
1003:
1004: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006: no_recursion=yes ;;
1007:
1008: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010: | --oldin | --oldi | --old | --ol | --o)
1011: ac_prev=oldincludedir ;;
1012: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015: oldincludedir=$ac_optarg ;;
1016:
1017: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018: ac_prev=prefix ;;
1019: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020: prefix=$ac_optarg ;;
1021:
1022: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023: | --program-pre | --program-pr | --program-p)
1024: ac_prev=program_prefix ;;
1025: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027: program_prefix=$ac_optarg ;;
1028:
1029: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030: | --program-suf | --program-su | --program-s)
1031: ac_prev=program_suffix ;;
1032: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034: program_suffix=$ac_optarg ;;
1035:
1036: -program-transform-name | --program-transform-name \
1037: | --program-transform-nam | --program-transform-na \
1038: | --program-transform-n | --program-transform- \
1039: | --program-transform | --program-transfor \
1040: | --program-transfo | --program-transf \
1041: | --program-trans | --program-tran \
1042: | --progr-tra | --program-tr | --program-t)
1043: ac_prev=program_transform_name ;;
1044: -program-transform-name=* | --program-transform-name=* \
1045: | --program-transform-nam=* | --program-transform-na=* \
1046: | --program-transform-n=* | --program-transform-=* \
1047: | --program-transform=* | --program-transfor=* \
1048: | --program-transfo=* | --program-transf=* \
1049: | --program-trans=* | --program-tran=* \
1050: | --progr-tra=* | --program-tr=* | --program-t=*)
1051: program_transform_name=$ac_optarg ;;
1052:
1.10 ! moko 1053: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
! 1054: ac_prev=pdfdir ;;
! 1055: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
! 1056: pdfdir=$ac_optarg ;;
! 1057:
! 1058: -psdir | --psdir | --psdi | --psd | --ps)
! 1059: ac_prev=psdir ;;
! 1060: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
! 1061: psdir=$ac_optarg ;;
! 1062:
1.1 misha 1063: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064: | -silent | --silent | --silen | --sile | --sil)
1065: silent=yes ;;
1066:
1067: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068: ac_prev=sbindir ;;
1069: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070: | --sbi=* | --sb=*)
1071: sbindir=$ac_optarg ;;
1072:
1073: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075: | --sharedst | --shareds | --shared | --share | --shar \
1076: | --sha | --sh)
1077: ac_prev=sharedstatedir ;;
1078: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081: | --sha=* | --sh=*)
1082: sharedstatedir=$ac_optarg ;;
1083:
1084: -site | --site | --sit)
1085: ac_prev=site ;;
1086: -site=* | --site=* | --sit=*)
1087: site=$ac_optarg ;;
1088:
1089: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090: ac_prev=srcdir ;;
1091: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092: srcdir=$ac_optarg ;;
1093:
1094: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095: | --syscon | --sysco | --sysc | --sys | --sy)
1096: ac_prev=sysconfdir ;;
1097: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099: sysconfdir=$ac_optarg ;;
1100:
1101: -target | --target | --targe | --targ | --tar | --ta | --t)
1102: ac_prev=target_alias ;;
1103: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104: target_alias=$ac_optarg ;;
1105:
1106: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107: verbose=yes ;;
1108:
1109: -version | --version | --versio | --versi | --vers | -V)
1110: ac_init_version=: ;;
1111:
1112: -with-* | --with-*)
1.10 ! moko 1113: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 misha 1114: # Reject names that are not valid shell variable names.
1.10 ! moko 1115: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1116: as_fn_error $? "invalid package name: $ac_useropt"
! 1117: ac_useropt_orig=$ac_useropt
! 1118: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1119: case $ac_user_opts in
! 1120: *"
! 1121: "with_$ac_useropt"
! 1122: "*) ;;
! 1123: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
! 1124: ac_unrecognized_sep=', ';;
1.1 misha 1125: esac
1.10 ! moko 1126: eval with_$ac_useropt=\$ac_optarg ;;
1.1 misha 1127:
1128: -without-* | --without-*)
1.10 ! moko 1129: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 misha 1130: # Reject names that are not valid shell variable names.
1.10 ! moko 1131: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
! 1132: as_fn_error $? "invalid package name: $ac_useropt"
! 1133: ac_useropt_orig=$ac_useropt
! 1134: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
! 1135: case $ac_user_opts in
! 1136: *"
! 1137: "with_$ac_useropt"
! 1138: "*) ;;
! 1139: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
! 1140: ac_unrecognized_sep=', ';;
! 1141: esac
! 1142: eval with_$ac_useropt=no ;;
1.1 misha 1143:
1144: --x)
1145: # Obsolete; use --with-x.
1146: with_x=yes ;;
1147:
1148: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149: | --x-incl | --x-inc | --x-in | --x-i)
1150: ac_prev=x_includes ;;
1151: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153: x_includes=$ac_optarg ;;
1154:
1155: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157: ac_prev=x_libraries ;;
1158: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160: x_libraries=$ac_optarg ;;
1161:
1.10 ! moko 1162: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1163: Try \`$0 --help' for more information"
1.1 misha 1164: ;;
1165:
1166: *=*)
1167: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1168: # Reject names that are not valid shell variable names.
1.10 ! moko 1169: case $ac_envvar in #(
! 1170: '' | [0-9]* | *[!_$as_cr_alnum]* )
! 1171: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
! 1172: esac
! 1173: eval $ac_envvar=\$ac_optarg
1.1 misha 1174: export $ac_envvar ;;
1175:
1176: *)
1177: # FIXME: should be removed in autoconf 3.0.
1.10 ! moko 1178: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 misha 1179: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.10 ! moko 1180: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 misha 1181: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182: ;;
1183:
1184: esac
1185: done
1186:
1187: if test -n "$ac_prev"; then
1188: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.10 ! moko 1189: as_fn_error $? "missing argument to $ac_option"
! 1190: fi
! 1191:
! 1192: if test -n "$ac_unrecognized_opts"; then
! 1193: case $enable_option_checking in
! 1194: no) ;;
! 1195: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
! 1196: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
! 1197: esac
1.1 misha 1198: fi
1199:
1.10 ! moko 1200: # Check all directory arguments for consistency.
! 1201: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
! 1202: datadir sysconfdir sharedstatedir localstatedir includedir \
! 1203: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
! 1204: libdir localedir mandir
1.1 misha 1205: do
1.10 ! moko 1206: eval ac_val=\$$ac_var
! 1207: # Remove trailing slashes.
1.1 misha 1208: case $ac_val in
1.10 ! moko 1209: */ )
! 1210: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
! 1211: eval $ac_var=\$ac_val;;
1.1 misha 1212: esac
1.10 ! moko 1213: # Be sure to have absolute directory names.
1.1 misha 1214: case $ac_val in
1.10 ! moko 1215: [\\/$]* | ?:[\\/]* ) continue;;
! 1216: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 misha 1217: esac
1.10 ! moko 1218: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misha 1219: done
1220:
1221: # There might be people who depend on the old broken behavior: `$host'
1222: # used to hold the argument of --host etc.
1223: # FIXME: To remove some day.
1224: build=$build_alias
1225: host=$host_alias
1226: target=$target_alias
1227:
1228: # FIXME: To remove some day.
1229: if test "x$host_alias" != x; then
1230: if test "x$build_alias" = x; then
1231: cross_compiling=maybe
1.10 ! moko 1232: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
! 1233: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 misha 1234: elif test "x$build_alias" != "x$host_alias"; then
1235: cross_compiling=yes
1236: fi
1237: fi
1238:
1239: ac_tool_prefix=
1240: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241:
1242: test "$silent" = yes && exec 6>/dev/null
1243:
1244:
1.10 ! moko 1245: ac_pwd=`pwd` && test -n "$ac_pwd" &&
! 1246: ac_ls_di=`ls -di .` &&
! 1247: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
! 1248: as_fn_error $? "working directory cannot be determined"
! 1249: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
! 1250: as_fn_error $? "pwd does not report name of working directory"
! 1251:
! 1252:
1.1 misha 1253: # Find the source files, if location was not specified.
1254: if test -z "$srcdir"; then
1255: ac_srcdir_defaulted=yes
1.10 ! moko 1256: # Try the directory containing this script, then the parent directory.
! 1257: ac_confdir=`$as_dirname -- "$as_myself" ||
! 1258: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 1259: X"$as_myself" : 'X\(//\)[^/]' \| \
! 1260: X"$as_myself" : 'X\(//\)$' \| \
! 1261: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
! 1262: $as_echo X"$as_myself" |
! 1263: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 1264: s//\1/
! 1265: q
! 1266: }
! 1267: /^X\(\/\/\)[^/].*/{
! 1268: s//\1/
! 1269: q
! 1270: }
! 1271: /^X\(\/\/\)$/{
! 1272: s//\1/
! 1273: q
! 1274: }
! 1275: /^X\(\/\).*/{
! 1276: s//\1/
! 1277: q
! 1278: }
! 1279: s/.*/./; q'`
1.1 misha 1280: srcdir=$ac_confdir
1.10 ! moko 1281: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 misha 1282: srcdir=..
1283: fi
1284: else
1285: ac_srcdir_defaulted=no
1286: fi
1.10 ! moko 1287: if test ! -r "$srcdir/$ac_unique_file"; then
! 1288: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
! 1289: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
! 1290: fi
! 1291: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
! 1292: ac_abs_confdir=`(
! 1293: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
! 1294: pwd)`
! 1295: # When building in place, set srcdir=.
! 1296: if test "$ac_abs_confdir" = "$ac_pwd"; then
! 1297: srcdir=.
! 1298: fi
! 1299: # Remove unnecessary trailing slashes from srcdir.
! 1300: # Double slashes in file names in object file debugging info
! 1301: # mess up M-x gdb in Emacs.
! 1302: case $srcdir in
! 1303: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
! 1304: esac
! 1305: for ac_var in $ac_precious_vars; do
! 1306: eval ac_env_${ac_var}_set=\${${ac_var}+set}
! 1307: eval ac_env_${ac_var}_value=\$${ac_var}
! 1308: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
! 1309: eval ac_cv_env_${ac_var}_value=\$${ac_var}
! 1310: done
1.1 misha 1311:
1312: #
1313: # Report the --help message.
1314: #
1315: if test "$ac_init_help" = "long"; then
1316: # Omit some internal or obsolete options to make the list less imposing.
1317: # This message is too long to be a string in the A/UX 3.1 sh.
1318: cat <<_ACEOF
1319: \`configure' configures this package to adapt to many kinds of systems.
1320:
1321: Usage: $0 [OPTION]... [VAR=VALUE]...
1322:
1323: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324: VAR=VALUE. See below for descriptions of some of the useful variables.
1325:
1326: Defaults for the options are specified in brackets.
1327:
1328: Configuration:
1329: -h, --help display this help and exit
1330: --help=short display options specific to this package
1331: --help=recursive display the short help of all the included packages
1332: -V, --version display version information and exit
1.10 ! moko 1333: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misha 1334: --cache-file=FILE cache test results in FILE [disabled]
1335: -C, --config-cache alias for \`--cache-file=config.cache'
1336: -n, --no-create do not create output files
1337: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338:
1339: Installation directories:
1340: --prefix=PREFIX install architecture-independent files in PREFIX
1.10 ! moko 1341: [$ac_default_prefix]
1.1 misha 1342: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.10 ! moko 1343: [PREFIX]
1.1 misha 1344:
1345: By default, \`make install' will install all the files in
1346: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348: for instance \`--prefix=\$HOME'.
1349:
1350: For better control, use the options below.
1351:
1352: Fine tuning of the installation directories:
1.10 ! moko 1353: --bindir=DIR user executables [EPREFIX/bin]
! 1354: --sbindir=DIR system admin executables [EPREFIX/sbin]
! 1355: --libexecdir=DIR program executables [EPREFIX/libexec]
! 1356: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
! 1357: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
! 1358: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
! 1359: --libdir=DIR object code libraries [EPREFIX/lib]
! 1360: --includedir=DIR C header files [PREFIX/include]
! 1361: --oldincludedir=DIR C header files for non-gcc [/usr/include]
! 1362: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
! 1363: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
! 1364: --infodir=DIR info documentation [DATAROOTDIR/info]
! 1365: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
! 1366: --mandir=DIR man documentation [DATAROOTDIR/man]
! 1367: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
! 1368: --htmldir=DIR html documentation [DOCDIR]
! 1369: --dvidir=DIR dvi documentation [DOCDIR]
! 1370: --pdfdir=DIR pdf documentation [DOCDIR]
! 1371: --psdir=DIR ps documentation [DOCDIR]
1.1 misha 1372: _ACEOF
1373:
1374: cat <<\_ACEOF
1375:
1376: Program names:
1377: --program-prefix=PREFIX prepend PREFIX to installed program names
1378: --program-suffix=SUFFIX append SUFFIX to installed program names
1379: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380:
1381: System types:
1382: --build=BUILD configure for building on BUILD [guessed]
1383: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384: _ACEOF
1385: fi
1386:
1387: if test -n "$ac_init_help"; then
1388:
1389: cat <<\_ACEOF
1390:
1391: Optional Features:
1.10 ! moko 1392: --disable-option-checking ignore unrecognized --enable/--with options
1.1 misha 1393: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395: --disable-dependency-tracking speeds up one-time build
1396: --enable-dependency-tracking do not reject slow dependency extractors
1.10 ! moko 1397: --enable-shared[=PKGS] build shared libraries [default=yes]
! 1398: --enable-static[=PKGS] build static libraries [default=yes]
1.8 moko 1399: --enable-fast-install[=PKGS]
1400: optimize for fast installation [default=yes]
1.1 misha 1401: --disable-libtool-lock avoid locking (might break parallel builds)
1.8 moko 1402: --enable-ltdl-install install libltdl
1.1 misha 1403:
1404: Optional Packages:
1405: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407: --with-sqlite-inc=DIR DIR is the SQLite includes directory
1.6 misha 1408: --with-dynamic-stdcpp link libstdc++ dynamically
1409: by default, libstdc++ is linked statically
1.10 ! moko 1410: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.8 moko 1411: both]
1412: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1413: --with-sysroot=DIR Search for dependent libraries within DIR
1414: (or the compiler's sysroot if not specified).
1415: --with-included-ltdl use the GNU ltdl sources included here
1416: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1417: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.1 misha 1418:
1419: Some influential environment variables:
1420: CXX C++ compiler command
1421: CXXFLAGS C++ compiler flags
1422: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423: nonstandard directory <lib dir>
1.10 ! moko 1424: LIBS libraries to pass to the linker, e.g. -l<library>
! 1425: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
! 1426: you have headers in a nonstandard directory <include dir>
1.1 misha 1427: CC C compiler command
1428: CFLAGS C compiler flags
1429: CPP C preprocessor
1.8 moko 1430: CXXCPP C++ preprocessor
1.1 misha 1431:
1432: Use these variables to override the choices made by `configure' or to help
1433: it to find libraries and programs with nonstandard names/locations.
1434:
1.10 ! moko 1435: Report bugs to the package provider.
1.1 misha 1436: _ACEOF
1.10 ! moko 1437: ac_status=$?
1.1 misha 1438: fi
1439:
1440: if test "$ac_init_help" = "recursive"; then
1441: # If there are subdirs, report their specific --help.
1442: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.10 ! moko 1443: test -d "$ac_dir" ||
! 1444: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
! 1445: continue
1.1 misha 1446: ac_builddir=.
1447:
1.10 ! moko 1448: case "$ac_dir" in
! 1449: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1450: *)
! 1451: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 1452: # A ".." for each directory in $ac_dir_suffix.
! 1453: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 1454: case $ac_top_builddir_sub in
! 1455: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 1456: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 1457: esac ;;
! 1458: esac
! 1459: ac_abs_top_builddir=$ac_pwd
! 1460: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 1461: # for backward compatibility:
! 1462: ac_top_builddir=$ac_top_build_prefix
1.1 misha 1463:
1464: case $srcdir in
1.10 ! moko 1465: .) # We are building in place.
1.1 misha 1466: ac_srcdir=.
1.10 ! moko 1467: ac_top_srcdir=$ac_top_builddir_sub
! 1468: ac_abs_top_srcdir=$ac_pwd ;;
! 1469: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 misha 1470: ac_srcdir=$srcdir$ac_dir_suffix;
1.10 ! moko 1471: ac_top_srcdir=$srcdir
! 1472: ac_abs_top_srcdir=$srcdir ;;
! 1473: *) # Relative name.
! 1474: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 1475: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 1476: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 misha 1477: esac
1.10 ! moko 1478: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 misha 1479:
1.10 ! moko 1480: cd "$ac_dir" || { ac_status=$?; continue; }
! 1481: # Check for guested configure.
! 1482: if test -f "$ac_srcdir/configure.gnu"; then
! 1483: echo &&
! 1484: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
! 1485: elif test -f "$ac_srcdir/configure"; then
! 1486: echo &&
! 1487: $SHELL "$ac_srcdir/configure" --help=recursive
1.1 misha 1488: else
1.10 ! moko 1489: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 1490: fi || ac_status=$?
! 1491: cd "$ac_pwd" || { ac_status=$?; break; }
1.1 misha 1492: done
1493: fi
1494:
1.10 ! moko 1495: test -n "$ac_init_help" && exit $ac_status
1.1 misha 1496: if $ac_init_version; then
1497: cat <<\_ACEOF
1.10 ! moko 1498: configure
! 1499: generated by GNU Autoconf 2.67
1.1 misha 1500:
1.10 ! moko 1501: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 misha 1502: This configure script is free software; the Free Software Foundation
1503: gives unlimited permission to copy, distribute and modify it.
1504: _ACEOF
1.10 ! moko 1505: exit
1.1 misha 1506: fi
1507:
1.10 ! moko 1508: ## ------------------------ ##
! 1509: ## Autoconf initialization. ##
! 1510: ## ------------------------ ##
! 1511:
! 1512: # ac_fn_cxx_try_compile LINENO
! 1513: # ----------------------------
! 1514: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1515: ac_fn_cxx_try_compile ()
! 1516: {
! 1517: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1518: rm -f conftest.$ac_objext
! 1519: if { { ac_try="$ac_compile"
! 1520: case "(($ac_try" in
! 1521: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1522: *) ac_try_echo=$ac_try;;
! 1523: esac
! 1524: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1525: $as_echo "$ac_try_echo"; } >&5
! 1526: (eval "$ac_compile") 2>conftest.err
! 1527: ac_status=$?
! 1528: if test -s conftest.err; then
! 1529: grep -v '^ *+' conftest.err >conftest.er1
! 1530: cat conftest.er1 >&5
! 1531: mv -f conftest.er1 conftest.err
! 1532: fi
! 1533: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1534: test $ac_status = 0; } && {
! 1535: test -z "$ac_cxx_werror_flag" ||
! 1536: test ! -s conftest.err
! 1537: } && test -s conftest.$ac_objext; then :
! 1538: ac_retval=0
! 1539: else
! 1540: $as_echo "$as_me: failed program was:" >&5
! 1541: sed 's/^/| /' conftest.$ac_ext >&5
! 1542:
! 1543: ac_retval=1
! 1544: fi
! 1545: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1546: as_fn_set_status $ac_retval
1.1 misha 1547:
1.10 ! moko 1548: } # ac_fn_cxx_try_compile
1.1 misha 1549:
1.10 ! moko 1550: # ac_fn_c_try_compile LINENO
! 1551: # --------------------------
! 1552: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1553: ac_fn_c_try_compile ()
1.1 misha 1554: {
1.10 ! moko 1555: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1556: rm -f conftest.$ac_objext
! 1557: if { { ac_try="$ac_compile"
! 1558: case "(($ac_try" in
! 1559: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1560: *) ac_try_echo=$ac_try;;
! 1561: esac
! 1562: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1563: $as_echo "$ac_try_echo"; } >&5
! 1564: (eval "$ac_compile") 2>conftest.err
! 1565: ac_status=$?
! 1566: if test -s conftest.err; then
! 1567: grep -v '^ *+' conftest.err >conftest.er1
! 1568: cat conftest.er1 >&5
! 1569: mv -f conftest.er1 conftest.err
! 1570: fi
! 1571: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1572: test $ac_status = 0; } && {
! 1573: test -z "$ac_c_werror_flag" ||
! 1574: test ! -s conftest.err
! 1575: } && test -s conftest.$ac_objext; then :
! 1576: ac_retval=0
! 1577: else
! 1578: $as_echo "$as_me: failed program was:" >&5
! 1579: sed 's/^/| /' conftest.$ac_ext >&5
! 1580:
! 1581: ac_retval=1
! 1582: fi
! 1583: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1584: as_fn_set_status $ac_retval
1.1 misha 1585:
1.10 ! moko 1586: } # ac_fn_c_try_compile
! 1587:
! 1588: # ac_fn_c_try_link LINENO
! 1589: # -----------------------
! 1590: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1591: ac_fn_c_try_link ()
! 1592: {
! 1593: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1594: rm -f conftest.$ac_objext conftest$ac_exeext
! 1595: if { { ac_try="$ac_link"
! 1596: case "(($ac_try" in
! 1597: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1598: *) ac_try_echo=$ac_try;;
! 1599: esac
! 1600: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1601: $as_echo "$ac_try_echo"; } >&5
! 1602: (eval "$ac_link") 2>conftest.err
! 1603: ac_status=$?
! 1604: if test -s conftest.err; then
! 1605: grep -v '^ *+' conftest.err >conftest.er1
! 1606: cat conftest.er1 >&5
! 1607: mv -f conftest.er1 conftest.err
! 1608: fi
! 1609: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1610: test $ac_status = 0; } && {
! 1611: test -z "$ac_c_werror_flag" ||
! 1612: test ! -s conftest.err
! 1613: } && test -s conftest$ac_exeext && {
! 1614: test "$cross_compiling" = yes ||
! 1615: $as_test_x conftest$ac_exeext
! 1616: }; then :
! 1617: ac_retval=0
! 1618: else
! 1619: $as_echo "$as_me: failed program was:" >&5
! 1620: sed 's/^/| /' conftest.$ac_ext >&5
! 1621:
! 1622: ac_retval=1
! 1623: fi
! 1624: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1625: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1626: # interfere with the next link command; also delete a directory that is
! 1627: # left behind by Apple's compiler. We do this before executing the actions.
! 1628: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1629: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1630: as_fn_set_status $ac_retval
! 1631:
! 1632: } # ac_fn_c_try_link
! 1633:
! 1634: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
! 1635: # -------------------------------------------------------
! 1636: # Tests whether HEADER exists and can be compiled using the include files in
! 1637: # INCLUDES, setting the cache variable VAR accordingly.
! 1638: ac_fn_c_check_header_compile ()
! 1639: {
! 1640: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1641: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1642: $as_echo_n "checking for $2... " >&6; }
! 1643: if eval "test \"\${$3+set}\"" = set; then :
! 1644: $as_echo_n "(cached) " >&6
! 1645: else
! 1646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1647: /* end confdefs.h. */
! 1648: $4
! 1649: #include <$2>
! 1650: _ACEOF
! 1651: if ac_fn_c_try_compile "$LINENO"; then :
! 1652: eval "$3=yes"
! 1653: else
! 1654: eval "$3=no"
! 1655: fi
! 1656: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1657: fi
! 1658: eval ac_res=\$$3
! 1659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1660: $as_echo "$ac_res" >&6; }
! 1661: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1662:
! 1663: } # ac_fn_c_check_header_compile
! 1664:
! 1665: # ac_fn_c_try_cpp LINENO
! 1666: # ----------------------
! 1667: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1668: ac_fn_c_try_cpp ()
! 1669: {
! 1670: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1671: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1672: case "(($ac_try" in
! 1673: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1674: *) ac_try_echo=$ac_try;;
! 1675: esac
! 1676: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1677: $as_echo "$ac_try_echo"; } >&5
! 1678: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1679: ac_status=$?
! 1680: if test -s conftest.err; then
! 1681: grep -v '^ *+' conftest.err >conftest.er1
! 1682: cat conftest.er1 >&5
! 1683: mv -f conftest.er1 conftest.err
! 1684: fi
! 1685: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1686: test $ac_status = 0; } > conftest.i && {
! 1687: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 1688: test ! -s conftest.err
! 1689: }; then :
! 1690: ac_retval=0
! 1691: else
! 1692: $as_echo "$as_me: failed program was:" >&5
! 1693: sed 's/^/| /' conftest.$ac_ext >&5
! 1694:
! 1695: ac_retval=1
! 1696: fi
! 1697: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1698: as_fn_set_status $ac_retval
! 1699:
! 1700: } # ac_fn_c_try_cpp
! 1701:
! 1702: # ac_fn_c_try_run LINENO
! 1703: # ----------------------
! 1704: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
! 1705: # that executables *can* be run.
! 1706: ac_fn_c_try_run ()
! 1707: {
! 1708: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1709: if { { ac_try="$ac_link"
! 1710: case "(($ac_try" in
! 1711: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1712: *) ac_try_echo=$ac_try;;
! 1713: esac
! 1714: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1715: $as_echo "$ac_try_echo"; } >&5
! 1716: (eval "$ac_link") 2>&5
! 1717: ac_status=$?
! 1718: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1719: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1720: { { case "(($ac_try" in
! 1721: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1722: *) ac_try_echo=$ac_try;;
! 1723: esac
! 1724: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1725: $as_echo "$ac_try_echo"; } >&5
! 1726: (eval "$ac_try") 2>&5
! 1727: ac_status=$?
! 1728: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1729: test $ac_status = 0; }; }; then :
! 1730: ac_retval=0
! 1731: else
! 1732: $as_echo "$as_me: program exited with status $ac_status" >&5
! 1733: $as_echo "$as_me: failed program was:" >&5
! 1734: sed 's/^/| /' conftest.$ac_ext >&5
! 1735:
! 1736: ac_retval=$ac_status
! 1737: fi
! 1738: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1739: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1740: as_fn_set_status $ac_retval
! 1741:
! 1742: } # ac_fn_c_try_run
! 1743:
! 1744: # ac_fn_c_check_func LINENO FUNC VAR
! 1745: # ----------------------------------
! 1746: # Tests whether FUNC exists, setting the cache variable VAR accordingly
! 1747: ac_fn_c_check_func ()
! 1748: {
! 1749: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1751: $as_echo_n "checking for $2... " >&6; }
! 1752: if eval "test \"\${$3+set}\"" = set; then :
! 1753: $as_echo_n "(cached) " >&6
! 1754: else
! 1755: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1756: /* end confdefs.h. */
! 1757: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
! 1758: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 1759: #define $2 innocuous_$2
! 1760:
! 1761: /* System header to define __stub macros and hopefully few prototypes,
! 1762: which can conflict with char $2 (); below.
! 1763: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 1764: <limits.h> exists even on freestanding compilers. */
! 1765:
! 1766: #ifdef __STDC__
! 1767: # include <limits.h>
! 1768: #else
! 1769: # include <assert.h>
! 1770: #endif
! 1771:
! 1772: #undef $2
! 1773:
! 1774: /* Override any GCC internal prototype to avoid an error.
! 1775: Use char because int might match the return type of a GCC
! 1776: builtin and then its argument prototype would still apply. */
! 1777: #ifdef __cplusplus
! 1778: extern "C"
! 1779: #endif
! 1780: char $2 ();
! 1781: /* The GNU C library defines this for functions which it implements
! 1782: to always fail with ENOSYS. Some functions are actually named
! 1783: something starting with __ and the normal name is an alias. */
! 1784: #if defined __stub_$2 || defined __stub___$2
! 1785: choke me
! 1786: #endif
! 1787:
! 1788: int
! 1789: main ()
! 1790: {
! 1791: return $2 ();
! 1792: ;
! 1793: return 0;
! 1794: }
! 1795: _ACEOF
! 1796: if ac_fn_c_try_link "$LINENO"; then :
! 1797: eval "$3=yes"
! 1798: else
! 1799: eval "$3=no"
! 1800: fi
! 1801: rm -f core conftest.err conftest.$ac_objext \
! 1802: conftest$ac_exeext conftest.$ac_ext
! 1803: fi
! 1804: eval ac_res=\$$3
! 1805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1806: $as_echo "$ac_res" >&6; }
! 1807: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1808:
! 1809: } # ac_fn_c_check_func
! 1810:
! 1811: # ac_fn_cxx_try_cpp LINENO
! 1812: # ------------------------
! 1813: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1814: ac_fn_cxx_try_cpp ()
! 1815: {
! 1816: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1817: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1818: case "(($ac_try" in
! 1819: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1820: *) ac_try_echo=$ac_try;;
! 1821: esac
! 1822: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1823: $as_echo "$ac_try_echo"; } >&5
! 1824: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1825: ac_status=$?
! 1826: if test -s conftest.err; then
! 1827: grep -v '^ *+' conftest.err >conftest.er1
! 1828: cat conftest.er1 >&5
! 1829: mv -f conftest.er1 conftest.err
! 1830: fi
! 1831: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1832: test $ac_status = 0; } > conftest.i && {
! 1833: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
! 1834: test ! -s conftest.err
! 1835: }; then :
! 1836: ac_retval=0
! 1837: else
! 1838: $as_echo "$as_me: failed program was:" >&5
! 1839: sed 's/^/| /' conftest.$ac_ext >&5
! 1840:
! 1841: ac_retval=1
! 1842: fi
! 1843: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1844: as_fn_set_status $ac_retval
! 1845:
! 1846: } # ac_fn_cxx_try_cpp
! 1847:
! 1848: # ac_fn_cxx_try_link LINENO
! 1849: # -------------------------
! 1850: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1851: ac_fn_cxx_try_link ()
! 1852: {
! 1853: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1854: rm -f conftest.$ac_objext conftest$ac_exeext
! 1855: if { { ac_try="$ac_link"
! 1856: case "(($ac_try" in
! 1857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1858: *) ac_try_echo=$ac_try;;
! 1859: esac
! 1860: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1861: $as_echo "$ac_try_echo"; } >&5
! 1862: (eval "$ac_link") 2>conftest.err
! 1863: ac_status=$?
! 1864: if test -s conftest.err; then
! 1865: grep -v '^ *+' conftest.err >conftest.er1
! 1866: cat conftest.er1 >&5
! 1867: mv -f conftest.er1 conftest.err
! 1868: fi
! 1869: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1870: test $ac_status = 0; } && {
! 1871: test -z "$ac_cxx_werror_flag" ||
! 1872: test ! -s conftest.err
! 1873: } && test -s conftest$ac_exeext && {
! 1874: test "$cross_compiling" = yes ||
! 1875: $as_test_x conftest$ac_exeext
! 1876: }; then :
! 1877: ac_retval=0
! 1878: else
! 1879: $as_echo "$as_me: failed program was:" >&5
! 1880: sed 's/^/| /' conftest.$ac_ext >&5
! 1881:
! 1882: ac_retval=1
! 1883: fi
! 1884: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1885: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1886: # interfere with the next link command; also delete a directory that is
! 1887: # left behind by Apple's compiler. We do this before executing the actions.
! 1888: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1889: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1890: as_fn_set_status $ac_retval
! 1891:
! 1892: } # ac_fn_cxx_try_link
! 1893:
! 1894: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
! 1895: # ---------------------------------------------
! 1896: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
! 1897: # accordingly.
! 1898: ac_fn_c_check_decl ()
! 1899: {
! 1900: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1901: as_decl_name=`echo $2|sed 's/ *(.*//'`
! 1902: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
! 1903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
! 1904: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
! 1905: if eval "test \"\${$3+set}\"" = set; then :
! 1906: $as_echo_n "(cached) " >&6
! 1907: else
! 1908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1909: /* end confdefs.h. */
! 1910: $4
! 1911: int
! 1912: main ()
! 1913: {
! 1914: #ifndef $as_decl_name
! 1915: #ifdef __cplusplus
! 1916: (void) $as_decl_use;
! 1917: #else
! 1918: (void) $as_decl_name;
! 1919: #endif
! 1920: #endif
! 1921:
! 1922: ;
! 1923: return 0;
! 1924: }
! 1925: _ACEOF
! 1926: if ac_fn_c_try_compile "$LINENO"; then :
! 1927: eval "$3=yes"
! 1928: else
! 1929: eval "$3=no"
! 1930: fi
! 1931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1932: fi
! 1933: eval ac_res=\$$3
! 1934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1935: $as_echo "$ac_res" >&6; }
! 1936: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1937:
! 1938: } # ac_fn_c_check_decl
! 1939:
! 1940: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
! 1941: # -------------------------------------------
! 1942: # Tests whether TYPE exists after having included INCLUDES, setting cache
! 1943: # variable VAR accordingly.
! 1944: ac_fn_c_check_type ()
! 1945: {
! 1946: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1948: $as_echo_n "checking for $2... " >&6; }
! 1949: if eval "test \"\${$3+set}\"" = set; then :
! 1950: $as_echo_n "(cached) " >&6
! 1951: else
! 1952: eval "$3=no"
! 1953: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1954: /* end confdefs.h. */
! 1955: $4
! 1956: int
! 1957: main ()
! 1958: {
! 1959: if (sizeof ($2))
! 1960: return 0;
! 1961: ;
! 1962: return 0;
! 1963: }
! 1964: _ACEOF
! 1965: if ac_fn_c_try_compile "$LINENO"; then :
! 1966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1967: /* end confdefs.h. */
! 1968: $4
! 1969: int
! 1970: main ()
! 1971: {
! 1972: if (sizeof (($2)))
! 1973: return 0;
! 1974: ;
! 1975: return 0;
! 1976: }
! 1977: _ACEOF
! 1978: if ac_fn_c_try_compile "$LINENO"; then :
! 1979:
! 1980: else
! 1981: eval "$3=yes"
! 1982: fi
! 1983: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1984: fi
! 1985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1986: fi
! 1987: eval ac_res=\$$3
! 1988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1989: $as_echo "$ac_res" >&6; }
! 1990: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1991:
! 1992: } # ac_fn_c_check_type
! 1993:
! 1994: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
! 1995: # -------------------------------------------------------
! 1996: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
! 1997: # the include files in INCLUDES and setting the cache variable VAR
! 1998: # accordingly.
! 1999: ac_fn_c_check_header_mongrel ()
! 2000: {
! 2001: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 2002: if eval "test \"\${$3+set}\"" = set; then :
! 2003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 2004: $as_echo_n "checking for $2... " >&6; }
! 2005: if eval "test \"\${$3+set}\"" = set; then :
! 2006: $as_echo_n "(cached) " >&6
! 2007: fi
! 2008: eval ac_res=\$$3
! 2009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2010: $as_echo "$ac_res" >&6; }
! 2011: else
! 2012: # Is the header compilable?
! 2013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
! 2014: $as_echo_n "checking $2 usability... " >&6; }
! 2015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2016: /* end confdefs.h. */
! 2017: $4
! 2018: #include <$2>
! 2019: _ACEOF
! 2020: if ac_fn_c_try_compile "$LINENO"; then :
! 2021: ac_header_compiler=yes
! 2022: else
! 2023: ac_header_compiler=no
! 2024: fi
! 2025: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 2026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
! 2027: $as_echo "$ac_header_compiler" >&6; }
! 2028:
! 2029: # Is the header present?
! 2030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
! 2031: $as_echo_n "checking $2 presence... " >&6; }
! 2032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 2033: /* end confdefs.h. */
! 2034: #include <$2>
! 2035: _ACEOF
! 2036: if ac_fn_c_try_cpp "$LINENO"; then :
! 2037: ac_header_preproc=yes
! 2038: else
! 2039: ac_header_preproc=no
! 2040: fi
! 2041: rm -f conftest.err conftest.i conftest.$ac_ext
! 2042: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
! 2043: $as_echo "$ac_header_preproc" >&6; }
! 2044:
! 2045: # So? What about this header?
! 2046: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
! 2047: yes:no: )
! 2048: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
! 2049: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 2050: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 2051: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 2052: ;;
! 2053: no:yes:* )
! 2054: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
! 2055: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
! 2056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
! 2057: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
! 2058: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
! 2059: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
! 2060: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
! 2061: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
! 2062: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
! 2063: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
! 2064: ;;
! 2065: esac
! 2066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 2067: $as_echo_n "checking for $2... " >&6; }
! 2068: if eval "test \"\${$3+set}\"" = set; then :
! 2069: $as_echo_n "(cached) " >&6
! 2070: else
! 2071: eval "$3=\$ac_header_compiler"
! 2072: fi
! 2073: eval ac_res=\$$3
! 2074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2075: $as_echo "$ac_res" >&6; }
! 2076: fi
! 2077: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 2078:
! 2079: } # ac_fn_c_check_header_mongrel
! 2080: cat >config.log <<_ACEOF
! 2081: This file contains any messages produced by compilers while
! 2082: running configure, to aid debugging if configure makes a mistake.
! 2083:
! 2084: It was created by $as_me, which was
! 2085: generated by GNU Autoconf 2.67. Invocation command line was
! 2086:
! 2087: $ $0 $@
! 2088:
! 2089: _ACEOF
! 2090: exec 5>>config.log
! 2091: {
! 2092: cat <<_ASUNAME
! 2093: ## --------- ##
! 2094: ## Platform. ##
! 2095: ## --------- ##
! 2096:
! 2097: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
! 2098: uname -m = `(uname -m) 2>/dev/null || echo unknown`
! 2099: uname -r = `(uname -r) 2>/dev/null || echo unknown`
! 2100: uname -s = `(uname -s) 2>/dev/null || echo unknown`
! 2101: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 misha 2102:
2103: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2105:
2106: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.10 ! moko 2109: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.1 misha 2110: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2113:
2114: _ASUNAME
2115:
2116: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117: for as_dir in $PATH
2118: do
2119: IFS=$as_save_IFS
2120: test -z "$as_dir" && as_dir=.
1.10 ! moko 2121: $as_echo "PATH: $as_dir"
! 2122: done
! 2123: IFS=$as_save_IFS
1.1 misha 2124:
2125: } >&5
2126:
2127: cat >&5 <<_ACEOF
2128:
2129:
2130: ## ----------- ##
2131: ## Core tests. ##
2132: ## ----------- ##
2133:
2134: _ACEOF
2135:
2136:
2137: # Keep a trace of the command line.
2138: # Strip out --no-create and --no-recursion so they do not pile up.
2139: # Strip out --silent because we don't want to record it for future runs.
2140: # Also quote any args containing shell meta-characters.
2141: # Make two passes to allow for proper duplicate-argument suppression.
2142: ac_configure_args=
2143: ac_configure_args0=
2144: ac_configure_args1=
2145: ac_must_keep_next=false
2146: for ac_pass in 1 2
2147: do
2148: for ac_arg
2149: do
2150: case $ac_arg in
2151: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153: | -silent | --silent | --silen | --sile | --sil)
2154: continue ;;
1.10 ! moko 2155: *\'*)
! 2156: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 2157: esac
2158: case $ac_pass in
1.10 ! moko 2159: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.1 misha 2160: 2)
1.10 ! moko 2161: as_fn_append ac_configure_args1 " '$ac_arg'"
1.1 misha 2162: if test $ac_must_keep_next = true; then
2163: ac_must_keep_next=false # Got value, back to normal.
2164: else
2165: case $ac_arg in
2166: *=* | --config-cache | -C | -disable-* | --disable-* \
2167: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169: | -with-* | --with-* | -without-* | --without-* | --x)
2170: case "$ac_configure_args0 " in
2171: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172: esac
2173: ;;
2174: -* ) ac_must_keep_next=true ;;
2175: esac
2176: fi
1.10 ! moko 2177: as_fn_append ac_configure_args " '$ac_arg'"
1.1 misha 2178: ;;
2179: esac
2180: done
2181: done
1.10 ! moko 2182: { ac_configure_args0=; unset ac_configure_args0;}
! 2183: { ac_configure_args1=; unset ac_configure_args1;}
1.1 misha 2184:
2185: # When interrupted or exit'd, cleanup temporary files, and complete
2186: # config.log. We remove comments because anyway the quotes in there
2187: # would cause problems or look ugly.
1.10 ! moko 2188: # WARNING: Use '\'' to represent an apostrophe within the trap.
! 2189: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.1 misha 2190: trap 'exit_status=$?
2191: # Save into config.log some information that might help in debugging.
2192: {
2193: echo
2194:
1.10 ! moko 2195: $as_echo "## ---------------- ##
1.1 misha 2196: ## Cache variables. ##
1.10 ! moko 2197: ## ---------------- ##"
1.1 misha 2198: echo
2199: # The following way of writing the cache mishandles newlines in values,
1.10 ! moko 2200: (
! 2201: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
! 2202: eval ac_val=\$$ac_var
! 2203: case $ac_val in #(
! 2204: *${as_nl}*)
! 2205: case $ac_var in #(
! 2206: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 2207: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 2208: esac
! 2209: case $ac_var in #(
! 2210: _ | IFS | as_nl) ;; #(
! 2211: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 2212: *) { eval $ac_var=; unset $ac_var;} ;;
! 2213: esac ;;
! 2214: esac
! 2215: done
1.1 misha 2216: (set) 2>&1 |
1.10 ! moko 2217: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
! 2218: *${as_nl}ac_space=\ *)
1.1 misha 2219: sed -n \
1.10 ! moko 2220: "s/'\''/'\''\\\\'\'''\''/g;
! 2221: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
! 2222: ;; #(
1.1 misha 2223: *)
1.10 ! moko 2224: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.1 misha 2225: ;;
1.10 ! moko 2226: esac |
! 2227: sort
! 2228: )
1.1 misha 2229: echo
2230:
1.10 ! moko 2231: $as_echo "## ----------------- ##
1.1 misha 2232: ## Output variables. ##
1.10 ! moko 2233: ## ----------------- ##"
1.1 misha 2234: echo
2235: for ac_var in $ac_subst_vars
2236: do
1.10 ! moko 2237: eval ac_val=\$$ac_var
! 2238: case $ac_val in
! 2239: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 2240: esac
! 2241: $as_echo "$ac_var='\''$ac_val'\''"
1.1 misha 2242: done | sort
2243: echo
2244:
2245: if test -n "$ac_subst_files"; then
1.10 ! moko 2246: $as_echo "## ------------------- ##
! 2247: ## File substitutions. ##
! 2248: ## ------------------- ##"
1.1 misha 2249: echo
2250: for ac_var in $ac_subst_files
2251: do
1.10 ! moko 2252: eval ac_val=\$$ac_var
! 2253: case $ac_val in
! 2254: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
! 2255: esac
! 2256: $as_echo "$ac_var='\''$ac_val'\''"
1.1 misha 2257: done | sort
2258: echo
2259: fi
2260:
2261: if test -s confdefs.h; then
1.10 ! moko 2262: $as_echo "## ----------- ##
1.1 misha 2263: ## confdefs.h. ##
1.10 ! moko 2264: ## ----------- ##"
1.1 misha 2265: echo
1.10 ! moko 2266: cat confdefs.h
1.1 misha 2267: echo
2268: fi
2269: test "$ac_signal" != 0 &&
1.10 ! moko 2270: $as_echo "$as_me: caught signal $ac_signal"
! 2271: $as_echo "$as_me: exit $exit_status"
1.1 misha 2272: } >&5
1.10 ! moko 2273: rm -f core *.core core.conftest.* &&
! 2274: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.1 misha 2275: exit $exit_status
1.10 ! moko 2276: ' 0
1.1 misha 2277: for ac_signal in 1 2 13 15; do
1.10 ! moko 2278: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.1 misha 2279: done
2280: ac_signal=0
2281:
2282: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.10 ! moko 2283: rm -f -r conftest* confdefs.h
! 2284:
! 2285: $as_echo "/* confdefs.h */" > confdefs.h
1.1 misha 2286:
2287: # Predefined preprocessor variables.
2288:
2289: cat >>confdefs.h <<_ACEOF
2290: #define PACKAGE_NAME "$PACKAGE_NAME"
2291: _ACEOF
2292:
2293: cat >>confdefs.h <<_ACEOF
2294: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295: _ACEOF
2296:
2297: cat >>confdefs.h <<_ACEOF
2298: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2299: _ACEOF
2300:
2301: cat >>confdefs.h <<_ACEOF
2302: #define PACKAGE_STRING "$PACKAGE_STRING"
2303: _ACEOF
2304:
1.10 ! moko 2305: cat >>confdefs.h <<_ACEOF
! 2306: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 2307: _ACEOF
1.1 misha 2308:
2309: cat >>confdefs.h <<_ACEOF
1.10 ! moko 2310: #define PACKAGE_URL "$PACKAGE_URL"
1.1 misha 2311: _ACEOF
2312:
2313:
2314: # Let the site file select an alternate cache file if it wants to.
1.10 ! moko 2315: # Prefer an explicitly selected file to automatically selected ones.
! 2316: ac_site_file1=NONE
! 2317: ac_site_file2=NONE
! 2318: if test -n "$CONFIG_SITE"; then
! 2319: # We do not want a PATH search for config.site.
! 2320: case $CONFIG_SITE in #((
! 2321: -*) ac_site_file1=./$CONFIG_SITE;;
! 2322: */*) ac_site_file1=$CONFIG_SITE;;
! 2323: *) ac_site_file1=./$CONFIG_SITE;;
! 2324: esac
! 2325: elif test "x$prefix" != xNONE; then
! 2326: ac_site_file1=$prefix/share/config.site
! 2327: ac_site_file2=$prefix/etc/config.site
! 2328: else
! 2329: ac_site_file1=$ac_default_prefix/share/config.site
! 2330: ac_site_file2=$ac_default_prefix/etc/config.site
! 2331: fi
! 2332: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
! 2333: do
! 2334: test "x$ac_site_file" = xNONE && continue
! 2335: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
! 2336: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
! 2337: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.1 misha 2338: sed 's/^/| /' "$ac_site_file" >&5
1.10 ! moko 2339: . "$ac_site_file" \
! 2340: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2341: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2342: as_fn_error $? "failed to load site script $ac_site_file
! 2343: See \`config.log' for more details" "$LINENO" 5 ; }
1.1 misha 2344: fi
2345: done
2346:
2347: if test -r "$cache_file"; then
1.10 ! moko 2348: # Some versions of bash will fail to source /dev/null (special files
! 2349: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
! 2350: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
! 2351: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
! 2352: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.1 misha 2353: case $cache_file in
1.10 ! moko 2354: [\\/]* | ?:[\\/]* ) . "$cache_file";;
! 2355: *) . "./$cache_file";;
1.1 misha 2356: esac
2357: fi
2358: else
1.10 ! moko 2359: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
! 2360: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.1 misha 2361: >$cache_file
2362: fi
2363:
2364: # Check that the precious variables saved in the cache have kept the same
2365: # value.
2366: ac_cache_corrupted=false
1.10 ! moko 2367: for ac_var in $ac_precious_vars; do
1.1 misha 2368: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369: eval ac_new_set=\$ac_env_${ac_var}_set
1.10 ! moko 2370: eval ac_old_val=\$ac_cv_env_${ac_var}_value
! 2371: eval ac_new_val=\$ac_env_${ac_var}_value
1.1 misha 2372: case $ac_old_set,$ac_new_set in
2373: set,)
1.10 ! moko 2374: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
! 2375: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1 misha 2376: ac_cache_corrupted=: ;;
2377: ,set)
1.10 ! moko 2378: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
! 2379: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1 misha 2380: ac_cache_corrupted=: ;;
2381: ,);;
2382: *)
2383: if test "x$ac_old_val" != "x$ac_new_val"; then
1.10 ! moko 2384: # differences in whitespace do not lead to failure.
! 2385: ac_old_val_w=`echo x $ac_old_val`
! 2386: ac_new_val_w=`echo x $ac_new_val`
! 2387: if test "$ac_old_val_w" != "$ac_new_val_w"; then
! 2388: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
! 2389: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
! 2390: ac_cache_corrupted=:
! 2391: else
! 2392: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
! 2393: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
! 2394: eval $ac_var=\$ac_old_val
! 2395: fi
! 2396: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
! 2397: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
! 2398: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
! 2399: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.1 misha 2400: fi;;
2401: esac
2402: # Pass precious variables to config.status.
2403: if test "$ac_new_set" = set; then
2404: case $ac_new_val in
1.10 ! moko 2405: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 misha 2406: *) ac_arg=$ac_var=$ac_new_val ;;
2407: esac
2408: case " $ac_configure_args " in
2409: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.10 ! moko 2410: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.1 misha 2411: esac
2412: fi
2413: done
2414: if $ac_cache_corrupted; then
1.10 ! moko 2415: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2416: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2417: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
! 2418: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
! 2419: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
! 2420: fi
! 2421: ## -------------------- ##
! 2422: ## Main body of script. ##
! 2423: ## -------------------- ##
1.1 misha 2424:
2425: ac_ext=c
2426: ac_cpp='$CPP $CPPFLAGS'
2427: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430:
2431:
2432:
2433:
2434: am__api_version="1.9"
2435: ac_aux_dir=
1.10 ! moko 2436: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
! 2437: if test -f "$ac_dir/install-sh"; then
1.1 misha 2438: ac_aux_dir=$ac_dir
2439: ac_install_sh="$ac_aux_dir/install-sh -c"
2440: break
1.10 ! moko 2441: elif test -f "$ac_dir/install.sh"; then
1.1 misha 2442: ac_aux_dir=$ac_dir
2443: ac_install_sh="$ac_aux_dir/install.sh -c"
2444: break
1.10 ! moko 2445: elif test -f "$ac_dir/shtool"; then
1.1 misha 2446: ac_aux_dir=$ac_dir
2447: ac_install_sh="$ac_aux_dir/shtool install -c"
2448: break
2449: fi
2450: done
2451: if test -z "$ac_aux_dir"; then
1.10 ! moko 2452: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
! 2453: fi
! 2454:
! 2455: # These three variables are undocumented and unsupported,
! 2456: # and are intended to be withdrawn in a future Autoconf release.
! 2457: # They can cause serious problems if a builder's source tree is in a directory
! 2458: # whose full name contains unusual characters.
! 2459: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 2460: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 2461: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 2462:
1.1 misha 2463:
2464: # Find a good install program. We prefer a C program (faster),
2465: # so one script is as good as another. But avoid the broken or
2466: # incompatible versions:
2467: # SysV /etc/install, /usr/sbin/install
2468: # SunOS /usr/etc/install
2469: # IRIX /sbin/install
2470: # AIX /bin/install
2471: # AmigaOS /C/install, which installs bootblocks on floppy discs
2472: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2475: # OS/2's system install, which has a completely different semantic
2476: # ./install, which can be erroneously created by make from ./install.sh.
1.10 ! moko 2477: # Reject install programs that cannot install multiple files.
! 2478: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
! 2479: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.1 misha 2480: if test -z "$INSTALL"; then
1.10 ! moko 2481: if test "${ac_cv_path_install+set}" = set; then :
! 2482: $as_echo_n "(cached) " >&6
1.1 misha 2483: else
2484: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485: for as_dir in $PATH
2486: do
2487: IFS=$as_save_IFS
2488: test -z "$as_dir" && as_dir=.
1.10 ! moko 2489: # Account for people who put trailing slashes in PATH elements.
! 2490: case $as_dir/ in #((
! 2491: ./ | .// | /[cC]/* | \
1.1 misha 2492: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.10 ! moko 2493: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.1 misha 2494: /usr/ucb/* ) ;;
2495: *)
2496: # OSF1 and SCO ODT 3.0 have their own names for install.
2497: # Don't use installbsd from OSF since it installs stuff as root
2498: # by default.
2499: for ac_prog in ginstall scoinst install; do
2500: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 ! moko 2501: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.1 misha 2502: if test $ac_prog = install &&
2503: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2504: # AIX install. It has an incompatible calling convention.
2505: :
2506: elif test $ac_prog = install &&
2507: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508: # program-specific install script used by HP pwplus--don't use.
2509: :
2510: else
1.10 ! moko 2511: rm -rf conftest.one conftest.two conftest.dir
! 2512: echo one > conftest.one
! 2513: echo two > conftest.two
! 2514: mkdir conftest.dir
! 2515: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
! 2516: test -s conftest.one && test -s conftest.two &&
! 2517: test -s conftest.dir/conftest.one &&
! 2518: test -s conftest.dir/conftest.two
! 2519: then
! 2520: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 2521: break 3
! 2522: fi
1.1 misha 2523: fi
2524: fi
2525: done
2526: done
2527: ;;
2528: esac
2529:
1.10 ! moko 2530: done
! 2531: IFS=$as_save_IFS
! 2532:
! 2533: rm -rf conftest.one conftest.two conftest.dir
1.1 misha 2534:
2535: fi
2536: if test "${ac_cv_path_install+set}" = set; then
2537: INSTALL=$ac_cv_path_install
2538: else
1.10 ! moko 2539: # As a last resort, use the slow shell script. Don't cache a
! 2540: # value for INSTALL within a source directory, because that will
1.1 misha 2541: # break other packages using the cache if that directory is
1.10 ! moko 2542: # removed, or if the value is a relative name.
1.1 misha 2543: INSTALL=$ac_install_sh
2544: fi
2545: fi
1.10 ! moko 2546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
! 2547: $as_echo "$INSTALL" >&6; }
1.1 misha 2548:
2549: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550: # It thinks the first close brace ends the variable substitution.
2551: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552:
2553: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2554:
2555: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556:
1.10 ! moko 2557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
! 2558: $as_echo_n "checking whether build environment is sane... " >&6; }
1.1 misha 2559: # Just in case
2560: sleep 1
2561: echo timestamp > conftest.file
2562: # Do `set' in a subshell so we don't clobber the current shell's
2563: # arguments. Must try -L first in case configure is actually a
2564: # symlink; some systems play weird games with the mod time of symlinks
2565: # (eg FreeBSD returns the mod time of the symlink's containing
2566: # directory).
2567: if (
2568: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2569: if test "$*" = "X"; then
2570: # -L didn't work.
2571: set X `ls -t $srcdir/configure conftest.file`
2572: fi
2573: rm -f conftest.file
2574: if test "$*" != "X $srcdir/configure conftest.file" \
2575: && test "$*" != "X conftest.file $srcdir/configure"; then
2576:
2577: # If neither matched, then we have a broken ls. This can happen
2578: # if, for instance, CONFIG_SHELL is bash and it inherits a
2579: # broken ls alias from the environment. This has actually
2580: # happened. Such a system could not be considered "sane".
1.10 ! moko 2581: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
! 2582: alias in your environment" "$LINENO" 5
1.1 misha 2583: fi
2584:
2585: test "$2" = conftest.file
2586: )
2587: then
2588: # Ok.
2589: :
2590: else
1.10 ! moko 2591: as_fn_error $? "newly created file is older than distributed files!
! 2592: Check your system clock" "$LINENO" 5
1.1 misha 2593: fi
1.10 ! moko 2594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2595: $as_echo "yes" >&6; }
1.1 misha 2596: test "$program_prefix" != NONE &&
1.10 ! moko 2597: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 misha 2598: # Use a double $ so make ignores it.
2599: test "$program_suffix" != NONE &&
1.10 ! moko 2600: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
! 2601: # Double any \ or $.
1.1 misha 2602: # By default was `s,x,x', remove it if useless.
1.10 ! moko 2603: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
! 2604: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.1 misha 2605:
2606: # expand $ac_aux_dir to an absolute path
2607: am_aux_dir=`cd $ac_aux_dir && pwd`
2608:
2609: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2610: # Use eval to expand $SHELL
2611: if eval "$MISSING --run true"; then
2612: am_missing_run="$MISSING --run "
2613: else
2614: am_missing_run=
1.10 ! moko 2615: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
! 2616: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1 misha 2617: fi
2618:
2619: if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2620: # We used to keeping the `.' as first argument, in order to
2621: # allow $(mkdir_p) to be used without argument. As in
2622: # $(mkdir_p) $(somedir)
2623: # where $(somedir) is conditionally defined. However this is wrong
2624: # for two reasons:
2625: # 1. if the package is installed by a user who cannot write `.'
2626: # make install will fail,
2627: # 2. the above comment should most certainly read
2628: # $(mkdir_p) $(DESTDIR)$(somedir)
2629: # so it does not work when $(somedir) is undefined and
2630: # $(DESTDIR) is not.
2631: # To support the latter case, we have to write
2632: # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2633: # so the `.' trick is pointless.
2634: mkdir_p='mkdir -p --'
2635: else
2636: # On NextStep and OpenStep, the `mkdir' command does not
2637: # recognize any option. It will interpret all options as
2638: # directories to create, and then abort because `.' already
2639: # exists.
2640: for d in ./-p ./--version;
2641: do
2642: test -d $d && rmdir $d
2643: done
2644: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2645: if test -f "$ac_aux_dir/mkinstalldirs"; then
2646: mkdir_p='$(mkinstalldirs)'
2647: else
2648: mkdir_p='$(install_sh) -d'
2649: fi
2650: fi
2651:
2652: for ac_prog in gawk mawk nawk awk
2653: do
2654: # Extract the first word of "$ac_prog", so it can be a program name with args.
2655: set dummy $ac_prog; ac_word=$2
1.10 ! moko 2656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2657: $as_echo_n "checking for $ac_word... " >&6; }
! 2658: if test "${ac_cv_prog_AWK+set}" = set; then :
! 2659: $as_echo_n "(cached) " >&6
1.1 misha 2660: else
2661: if test -n "$AWK"; then
2662: ac_cv_prog_AWK="$AWK" # 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=.
1.10 ! moko 2669: for ac_exec_ext in '' $ac_executable_extensions; do
! 2670: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 2671: ac_cv_prog_AWK="$ac_prog"
1.10 ! moko 2672: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2673: break 2
2674: fi
2675: done
1.10 ! moko 2676: done
! 2677: IFS=$as_save_IFS
1.1 misha 2678:
2679: fi
2680: fi
2681: AWK=$ac_cv_prog_AWK
2682: if test -n "$AWK"; then
1.10 ! moko 2683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 2684: $as_echo "$AWK" >&6; }
1.1 misha 2685: else
1.10 ! moko 2686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2687: $as_echo "no" >&6; }
1.1 misha 2688: fi
2689:
1.10 ! moko 2690:
1.1 misha 2691: test -n "$AWK" && break
2692: done
2693:
1.10 ! moko 2694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 2695: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
! 2696: set x ${MAKE-make}
! 2697: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 2698: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
! 2699: $as_echo_n "(cached) " >&6
1.1 misha 2700: else
2701: cat >conftest.make <<\_ACEOF
1.10 ! moko 2702: SHELL = /bin/sh
1.1 misha 2703: all:
1.10 ! moko 2704: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.1 misha 2705: _ACEOF
1.10 ! moko 2706: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
! 2707: case `${MAKE-make} -f conftest.make 2>/dev/null` in
! 2708: *@@@%%%=?*=@@@%%%*)
! 2709: eval ac_cv_prog_make_${ac_make}_set=yes;;
! 2710: *)
! 2711: eval ac_cv_prog_make_${ac_make}_set=no;;
! 2712: esac
1.1 misha 2713: rm -f conftest.make
2714: fi
1.10 ! moko 2715: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
! 2716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 2717: $as_echo "yes" >&6; }
1.1 misha 2718: SET_MAKE=
2719: else
1.10 ! moko 2720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2721: $as_echo "no" >&6; }
1.1 misha 2722: SET_MAKE="MAKE=${MAKE-make}"
2723: fi
2724:
2725: rm -rf .tst 2>/dev/null
2726: mkdir .tst 2>/dev/null
2727: if test -d .tst; then
2728: am__leading_dot=.
2729: else
2730: am__leading_dot=_
2731: fi
2732: rmdir .tst 2>/dev/null
2733:
2734: # test to see if srcdir already configured
2735: if test "`cd $srcdir && pwd`" != "`pwd`" &&
2736: test -f $srcdir/config.status; then
1.10 ! moko 2737: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.1 misha 2738: fi
2739:
2740: # test whether we have cygpath
2741: if test -z "$CYGPATH_W"; then
2742: if (cygpath --version) >/dev/null 2>/dev/null; then
2743: CYGPATH_W='cygpath -w'
2744: else
2745: CYGPATH_W=echo
2746: fi
2747: fi
2748:
2749:
2750: # Define the identity of the package.
2751: PACKAGE=parser3sqlite
1.8 moko 2752: VERSION=10.2
1.1 misha 2753:
2754:
2755: # Some tools Automake needs.
2756:
2757: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758:
2759:
2760: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761:
2762:
2763: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764:
2765:
2766: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767:
2768:
2769: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770:
2771: install_sh=${install_sh-"$am_aux_dir/install-sh"}
2772:
2773: # Installed binaries are usually stripped using `strip' when the user
2774: # run `make install-strip'. However `strip' might not be the right
2775: # tool to use in cross-compilation environments, therefore Automake
2776: # will honor the `STRIP' environment variable to overrule this program.
2777: if test "$cross_compiling" != no; then
2778: if test -n "$ac_tool_prefix"; then
2779: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2780: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.10 ! moko 2781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2782: $as_echo_n "checking for $ac_word... " >&6; }
! 2783: if test "${ac_cv_prog_STRIP+set}" = set; then :
! 2784: $as_echo_n "(cached) " >&6
1.1 misha 2785: else
2786: if test -n "$STRIP"; then
2787: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788: else
2789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790: for as_dir in $PATH
2791: do
2792: IFS=$as_save_IFS
2793: test -z "$as_dir" && as_dir=.
1.10 ! moko 2794: for ac_exec_ext in '' $ac_executable_extensions; do
! 2795: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 2796: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.10 ! moko 2797: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2798: break 2
2799: fi
2800: done
1.10 ! moko 2801: done
! 2802: IFS=$as_save_IFS
1.1 misha 2803:
2804: fi
2805: fi
2806: STRIP=$ac_cv_prog_STRIP
2807: if test -n "$STRIP"; then
1.10 ! moko 2808: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 2809: $as_echo "$STRIP" >&6; }
1.1 misha 2810: else
1.10 ! moko 2811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2812: $as_echo "no" >&6; }
1.1 misha 2813: fi
2814:
1.10 ! moko 2815:
1.1 misha 2816: fi
2817: if test -z "$ac_cv_prog_STRIP"; then
2818: ac_ct_STRIP=$STRIP
2819: # Extract the first word of "strip", so it can be a program name with args.
2820: set dummy strip; ac_word=$2
1.10 ! moko 2821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2822: $as_echo_n "checking for $ac_word... " >&6; }
! 2823: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
! 2824: $as_echo_n "(cached) " >&6
1.1 misha 2825: else
2826: if test -n "$ac_ct_STRIP"; then
2827: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828: else
2829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830: for as_dir in $PATH
2831: do
2832: IFS=$as_save_IFS
2833: test -z "$as_dir" && as_dir=.
1.10 ! moko 2834: for ac_exec_ext in '' $ac_executable_extensions; do
! 2835: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 2836: ac_cv_prog_ac_ct_STRIP="strip"
1.10 ! moko 2837: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2838: break 2
2839: fi
2840: done
1.10 ! moko 2841: done
! 2842: IFS=$as_save_IFS
1.1 misha 2843:
2844: fi
2845: fi
2846: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2847: if test -n "$ac_ct_STRIP"; then
1.10 ! moko 2848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 2849: $as_echo "$ac_ct_STRIP" >&6; }
1.1 misha 2850: else
1.10 ! moko 2851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2852: $as_echo "no" >&6; }
1.1 misha 2853: fi
2854:
1.10 ! moko 2855: if test "x$ac_ct_STRIP" = x; then
! 2856: STRIP=":"
! 2857: else
! 2858: case $cross_compiling:$ac_tool_warned in
! 2859: yes:)
! 2860: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2861: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 2862: ac_tool_warned=yes ;;
! 2863: esac
! 2864: STRIP=$ac_ct_STRIP
! 2865: fi
1.1 misha 2866: else
2867: STRIP="$ac_cv_prog_STRIP"
2868: fi
2869:
2870: fi
2871: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2872:
2873: # We need awk for the "check" target. The system "awk" is bad on
2874: # some platforms.
2875: # Always define AMTAR for backward compatibility.
2876:
2877: AMTAR=${AMTAR-"${am_missing_run}tar"}
2878:
2879: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2880:
2881:
2882:
2883:
2884:
2885:
1.10 ! moko 2886: ac_config_headers="$ac_config_headers config_auto.h"
1.1 misha 2887:
2888:
2889:
2890:
2891:
2892:
1.10 ! moko 2893: # Check whether --with-sqlite-inc was given.
! 2894: if test "${with_sqlite_inc+set}" = set; then :
! 2895: withval=$with_sqlite_inc;
1.1 misha 2896: if test -r "$withval/sqlite3.h"; then
2897: SQLITE_INC=$withval
2898: fi
2899:
2900:
1.4 misha 2901: if test -z "$SQLITE_INC"; then
1.10 ! moko 2902: as_fn_error $? "$SQLITE_INC does not seem to be valid SQLite includes directory" "$LINENO" 5
1.4 misha 2903: fi
1.1 misha 2904:
2905: else
1.10 ! moko 2906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE_INC directory" >&5
! 2907: $as_echo_n "checking for SQLITE_INC directory... " >&6; }
1.1 misha 2908: for d in \
1.9 moko 2909: /usr/local/include \
2910: /usr/include \
1.1 misha 2911: /usr/local/include/sqlite \
2912: /usr/include/sqlite ; do
2913:
2914: if test -r "$d/sqlite3.h"; then
2915: SQLITE_INC=$d
2916: fi
2917:
2918: done
2919:
1.4 misha 2920: if test -z "$SQLITE_INC"; then
1.10 ! moko 2921: as_fn_error $? "use --with-sqlite-inc=DIR to specify SQLite includes directory" "$LINENO" 5
1.4 misha 2922: fi
1.1 misha 2923:
1.10 ! moko 2924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE_INC" >&5
! 2925: $as_echo "$SQLITE_INC" >&6; }
1.1 misha 2926:
1.10 ! moko 2927: fi
1.1 misha 2928:
2929:
2930:
2931:
1.6 misha 2932:
1.10 ! moko 2933: # Check whether --with-dynamic-stdcpp was given.
! 2934: if test "${with_dynamic_stdcpp+set}" = set; then :
! 2935: withval=$with_dynamic_stdcpp;
1.6 misha 2936: LDFLAGS="-lstdc++"
2937:
2938: else
2939:
2940: LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
2941:
1.10 ! moko 2942: fi
1.6 misha 2943:
2944:
2945:
1.1 misha 2946:
2947:
1.10 ! moko 2948: ac_ext=cpp
1.1 misha 2949: ac_cpp='$CXXCPP $CPPFLAGS'
2950: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.10 ! moko 2953: if test -z "$CXX"; then
! 2954: if test -n "$CCC"; then
! 2955: CXX=$CCC
! 2956: else
! 2957: if test -n "$ac_tool_prefix"; then
! 2958: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 misha 2959: do
2960: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2961: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 ! moko 2962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2963: $as_echo_n "checking for $ac_word... " >&6; }
! 2964: if test "${ac_cv_prog_CXX+set}" = set; then :
! 2965: $as_echo_n "(cached) " >&6
1.1 misha 2966: else
2967: if test -n "$CXX"; then
2968: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2969: else
2970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971: for as_dir in $PATH
2972: do
2973: IFS=$as_save_IFS
2974: test -z "$as_dir" && as_dir=.
1.10 ! moko 2975: for ac_exec_ext in '' $ac_executable_extensions; do
! 2976: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 2977: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.10 ! moko 2978: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 2979: break 2
2980: fi
2981: done
1.10 ! moko 2982: done
! 2983: IFS=$as_save_IFS
1.1 misha 2984:
2985: fi
2986: fi
2987: CXX=$ac_cv_prog_CXX
2988: if test -n "$CXX"; then
1.10 ! moko 2989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
! 2990: $as_echo "$CXX" >&6; }
1.1 misha 2991: else
1.10 ! moko 2992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2993: $as_echo "no" >&6; }
1.1 misha 2994: fi
2995:
1.10 ! moko 2996:
1.1 misha 2997: test -n "$CXX" && break
2998: done
2999: fi
3000: if test -z "$CXX"; then
3001: ac_ct_CXX=$CXX
1.10 ! moko 3002: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1.1 misha 3003: do
3004: # Extract the first word of "$ac_prog", so it can be a program name with args.
3005: set dummy $ac_prog; ac_word=$2
1.10 ! moko 3006: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3007: $as_echo_n "checking for $ac_word... " >&6; }
! 3008: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
! 3009: $as_echo_n "(cached) " >&6
1.1 misha 3010: else
3011: if test -n "$ac_ct_CXX"; then
3012: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3013: else
3014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015: for as_dir in $PATH
3016: do
3017: IFS=$as_save_IFS
3018: test -z "$as_dir" && as_dir=.
1.10 ! moko 3019: for ac_exec_ext in '' $ac_executable_extensions; do
! 3020: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3021: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.10 ! moko 3022: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3023: break 2
3024: fi
3025: done
1.10 ! moko 3026: done
! 3027: IFS=$as_save_IFS
1.1 misha 3028:
3029: fi
3030: fi
3031: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3032: if test -n "$ac_ct_CXX"; then
1.10 ! moko 3033: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
! 3034: $as_echo "$ac_ct_CXX" >&6; }
1.1 misha 3035: else
1.10 ! moko 3036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3037: $as_echo "no" >&6; }
1.1 misha 3038: fi
3039:
1.10 ! moko 3040:
1.1 misha 3041: test -n "$ac_ct_CXX" && break
3042: done
3043:
1.10 ! moko 3044: if test "x$ac_ct_CXX" = x; then
! 3045: CXX="g++"
! 3046: else
! 3047: case $cross_compiling:$ac_tool_warned in
! 3048: yes:)
! 3049: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3050: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3051: ac_tool_warned=yes ;;
! 3052: esac
! 3053: CXX=$ac_ct_CXX
! 3054: fi
1.1 misha 3055: fi
3056:
1.10 ! moko 3057: fi
! 3058: fi
1.1 misha 3059: # Provide some information about the compiler.
1.10 ! moko 3060: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
! 3061: set X $ac_compile
! 3062: ac_compiler=$2
! 3063: for ac_option in --version -v -V -qversion; do
! 3064: { { ac_try="$ac_compiler $ac_option >&5"
! 3065: case "(($ac_try" in
! 3066: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3067: *) ac_try_echo=$ac_try;;
! 3068: esac
! 3069: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3070: $as_echo "$ac_try_echo"; } >&5
! 3071: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.1 misha 3072: ac_status=$?
1.10 ! moko 3073: if test -s conftest.err; then
! 3074: sed '10a\
! 3075: ... rest of stderr output deleted ...
! 3076: 10q' conftest.err >conftest.er1
! 3077: cat conftest.er1 >&5
! 3078: fi
! 3079: rm -f conftest.er1 conftest.err
! 3080: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3081: test $ac_status = 0; }
! 3082: done
1.1 misha 3083:
1.10 ! moko 3084: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3085: /* end confdefs.h. */
3086:
3087: int
3088: main ()
3089: {
3090:
3091: ;
3092: return 0;
3093: }
3094: _ACEOF
3095: ac_clean_files_save=$ac_clean_files
1.10 ! moko 3096: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1 misha 3097: # Try to create an executable without -o first, disregard a.out.
3098: # It will help us diagnose broken compilers, and finding out an intuition
3099: # of exeext.
1.10 ! moko 3100: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
! 3101: $as_echo_n "checking whether the C++ compiler works... " >&6; }
! 3102: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
! 3103:
! 3104: # The possible output files:
! 3105: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
! 3106:
! 3107: ac_rmfiles=
! 3108: for ac_file in $ac_files
! 3109: do
! 3110: case $ac_file in
! 3111: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
! 3112: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
! 3113: esac
! 3114: done
! 3115: rm -f $ac_rmfiles
! 3116:
! 3117: if { { ac_try="$ac_link_default"
! 3118: case "(($ac_try" in
! 3119: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3120: *) ac_try_echo=$ac_try;;
! 3121: esac
! 3122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3123: $as_echo "$ac_try_echo"; } >&5
! 3124: (eval "$ac_link_default") 2>&5
! 3125: ac_status=$?
! 3126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3127: test $ac_status = 0; }; then :
! 3128: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
! 3129: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
! 3130: # in a Makefile. We should not override ac_cv_exeext if it was cached,
! 3131: # so that the user can short-circuit this test for compilers unknown to
! 3132: # Autoconf.
! 3133: for ac_file in $ac_files ''
1.1 misha 3134: do
3135: test -f "$ac_file" || continue
3136: case $ac_file in
1.10 ! moko 3137: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.1 misha 3138: ;;
3139: [ab].out )
3140: # We found the default executable, but exeext='' is most
3141: # certainly right.
3142: break;;
3143: *.* )
1.10 ! moko 3144: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
! 3145: then :; else
! 3146: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3147: fi
! 3148: # We set ac_cv_exeext here because the later test for it is not
! 3149: # safe: cross compilers may not add the suffix if given an `-o'
! 3150: # argument, so we may need to know it at that point already.
! 3151: # Even if this section looks crufty: it has the advantage of
! 3152: # actually working.
1.1 misha 3153: break;;
3154: * )
3155: break;;
3156: esac
3157: done
1.10 ! moko 3158: test "$ac_cv_exeext" = no && ac_cv_exeext=
! 3159:
1.1 misha 3160: else
1.10 ! moko 3161: ac_file=''
! 3162: fi
! 3163: if test -z "$ac_file"; then :
! 3164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3165: $as_echo "no" >&6; }
! 3166: $as_echo "$as_me: failed program was:" >&5
1.1 misha 3167: sed 's/^/| /' conftest.$ac_ext >&5
3168:
1.10 ! moko 3169: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3170: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3171: as_fn_error 77 "C++ compiler cannot create executables
! 3172: See \`config.log' for more details" "$LINENO" 5 ; }
! 3173: else
! 3174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3175: $as_echo "yes" >&6; }
! 3176: fi
! 3177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
! 3178: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
! 3179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 3180: $as_echo "$ac_file" >&6; }
1.1 misha 3181: ac_exeext=$ac_cv_exeext
3182:
1.10 ! moko 3183: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1 misha 3184: ac_clean_files=$ac_clean_files_save
1.10 ! moko 3185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 3186: $as_echo_n "checking for suffix of executables... " >&6; }
! 3187: if { { ac_try="$ac_link"
! 3188: case "(($ac_try" in
! 3189: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3190: *) ac_try_echo=$ac_try;;
! 3191: esac
! 3192: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3193: $as_echo "$ac_try_echo"; } >&5
! 3194: (eval "$ac_link") 2>&5
1.1 misha 3195: ac_status=$?
1.10 ! moko 3196: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3197: test $ac_status = 0; }; then :
1.1 misha 3198: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200: # work properly (i.e., refer to `conftest.exe'), while it won't with
3201: # `rm'.
3202: for ac_file in conftest.exe conftest conftest.*; do
3203: test -f "$ac_file" || continue
3204: case $ac_file in
1.10 ! moko 3205: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.1 misha 3206: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207: break;;
3208: * ) break;;
3209: esac
3210: done
3211: else
1.10 ! moko 3212: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3213: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3214: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 3215: See \`config.log' for more details" "$LINENO" 5 ; }
! 3216: fi
! 3217: rm -f conftest conftest$ac_cv_exeext
! 3218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 3219: $as_echo "$ac_cv_exeext" >&6; }
1.1 misha 3220:
3221: rm -f conftest.$ac_ext
3222: EXEEXT=$ac_cv_exeext
3223: ac_exeext=$EXEEXT
1.10 ! moko 3224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3225: /* end confdefs.h. */
! 3226: #include <stdio.h>
! 3227: int
! 3228: main ()
! 3229: {
! 3230: FILE *f = fopen ("conftest.out", "w");
! 3231: return ferror (f) || fclose (f) != 0;
! 3232:
! 3233: ;
! 3234: return 0;
! 3235: }
! 3236: _ACEOF
! 3237: ac_clean_files="$ac_clean_files conftest.out"
! 3238: # Check that the compiler produces executables we can run. If not, either
! 3239: # the compiler is broken, or we cross compile.
! 3240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 3241: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 3242: if test "$cross_compiling" != yes; then
! 3243: { { ac_try="$ac_link"
! 3244: case "(($ac_try" in
! 3245: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3246: *) ac_try_echo=$ac_try;;
! 3247: esac
! 3248: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3249: $as_echo "$ac_try_echo"; } >&5
! 3250: (eval "$ac_link") 2>&5
! 3251: ac_status=$?
! 3252: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3253: test $ac_status = 0; }
! 3254: if { ac_try='./conftest$ac_cv_exeext'
! 3255: { { case "(($ac_try" in
! 3256: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3257: *) ac_try_echo=$ac_try;;
! 3258: esac
! 3259: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3260: $as_echo "$ac_try_echo"; } >&5
! 3261: (eval "$ac_try") 2>&5
! 3262: ac_status=$?
! 3263: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3264: test $ac_status = 0; }; }; then
! 3265: cross_compiling=no
! 3266: else
! 3267: if test "$cross_compiling" = maybe; then
! 3268: cross_compiling=yes
! 3269: else
! 3270: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3271: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3272: as_fn_error $? "cannot run C++ compiled programs.
! 3273: If you meant to cross compile, use \`--host'.
! 3274: See \`config.log' for more details" "$LINENO" 5 ; }
! 3275: fi
! 3276: fi
! 3277: fi
! 3278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 3279: $as_echo "$cross_compiling" >&6; }
! 3280:
! 3281: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
! 3282: ac_clean_files=$ac_clean_files_save
! 3283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 3284: $as_echo_n "checking for suffix of object files... " >&6; }
! 3285: if test "${ac_cv_objext+set}" = set; then :
! 3286: $as_echo_n "(cached) " >&6
1.1 misha 3287: else
1.10 ! moko 3288: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3289: /* end confdefs.h. */
3290:
3291: int
3292: main ()
3293: {
3294:
3295: ;
3296: return 0;
3297: }
3298: _ACEOF
3299: rm -f conftest.o conftest.obj
1.10 ! moko 3300: if { { ac_try="$ac_compile"
! 3301: case "(($ac_try" in
! 3302: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3303: *) ac_try_echo=$ac_try;;
! 3304: esac
! 3305: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3306: $as_echo "$ac_try_echo"; } >&5
! 3307: (eval "$ac_compile") 2>&5
! 3308: ac_status=$?
! 3309: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3310: test $ac_status = 0; }; then :
! 3311: for ac_file in conftest.o conftest.obj conftest.*; do
! 3312: test -f "$ac_file" || continue;
1.1 misha 3313: case $ac_file in
1.10 ! moko 3314: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.1 misha 3315: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3316: break;;
3317: esac
3318: done
3319: else
1.10 ! moko 3320: $as_echo "$as_me: failed program was:" >&5
1.1 misha 3321: sed 's/^/| /' conftest.$ac_ext >&5
3322:
1.10 ! moko 3323: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3324: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3325: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 3326: See \`config.log' for more details" "$LINENO" 5 ; }
1.1 misha 3327: fi
3328: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3329: fi
1.10 ! moko 3330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 3331: $as_echo "$ac_cv_objext" >&6; }
1.1 misha 3332: OBJEXT=$ac_cv_objext
3333: ac_objext=$OBJEXT
1.10 ! moko 3334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
! 3335: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
! 3336: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
! 3337: $as_echo_n "(cached) " >&6
1.1 misha 3338: else
1.10 ! moko 3339: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3340: /* end confdefs.h. */
3341:
3342: int
3343: main ()
3344: {
3345: #ifndef __GNUC__
3346: choke me
3347: #endif
3348:
3349: ;
3350: return 0;
3351: }
3352: _ACEOF
1.10 ! moko 3353: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 misha 3354: ac_compiler_gnu=yes
3355: else
1.10 ! moko 3356: ac_compiler_gnu=no
1.1 misha 3357: fi
1.10 ! moko 3358: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3359: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3360:
3361: fi
1.10 ! moko 3362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
! 3363: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
! 3364: if test $ac_compiler_gnu = yes; then
! 3365: GXX=yes
! 3366: else
! 3367: GXX=
! 3368: fi
1.1 misha 3369: ac_test_CXXFLAGS=${CXXFLAGS+set}
3370: ac_save_CXXFLAGS=$CXXFLAGS
1.10 ! moko 3371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
! 3372: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
! 3373: if test "${ac_cv_prog_cxx_g+set}" = set; then :
! 3374: $as_echo_n "(cached) " >&6
! 3375: else
! 3376: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
! 3377: ac_cxx_werror_flag=yes
! 3378: ac_cv_prog_cxx_g=no
! 3379: CXXFLAGS="-g"
! 3380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3381: /* end confdefs.h. */
3382:
3383: int
3384: main ()
3385: {
3386:
3387: ;
3388: return 0;
3389: }
3390: _ACEOF
1.10 ! moko 3391: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 misha 3392: ac_cv_prog_cxx_g=yes
3393: else
1.10 ! moko 3394: CXXFLAGS=""
! 3395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3396: /* end confdefs.h. */
1.1 misha 3397:
3398: int
3399: main ()
3400: {
1.10 ! moko 3401:
1.1 misha 3402: ;
3403: return 0;
3404: }
3405: _ACEOF
1.10 ! moko 3406: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3407:
1.1 misha 3408: else
1.10 ! moko 3409: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3410: CXXFLAGS="-g"
! 3411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3412: /* end confdefs.h. */
1.1 misha 3413:
3414: int
3415: main ()
3416: {
1.10 ! moko 3417:
1.1 misha 3418: ;
3419: return 0;
3420: }
3421: _ACEOF
1.10 ! moko 3422: if ac_fn_cxx_try_compile "$LINENO"; then :
! 3423: ac_cv_prog_cxx_g=yes
! 3424: fi
! 3425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3426: fi
! 3427: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3428: fi
! 3429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 3430: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
! 3431: fi
! 3432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
! 3433: $as_echo "$ac_cv_prog_cxx_g" >&6; }
! 3434: if test "$ac_test_CXXFLAGS" = set; then
! 3435: CXXFLAGS=$ac_save_CXXFLAGS
! 3436: elif test $ac_cv_prog_cxx_g = yes; then
! 3437: if test "$GXX" = yes; then
! 3438: CXXFLAGS="-g -O2"
! 3439: else
! 3440: CXXFLAGS="-g"
! 3441: fi
1.1 misha 3442: else
1.10 ! moko 3443: if test "$GXX" = yes; then
! 3444: CXXFLAGS="-O2"
! 3445: else
! 3446: CXXFLAGS=
! 3447: fi
1.1 misha 3448: fi
3449: ac_ext=c
3450: ac_cpp='$CPP $CPPFLAGS'
3451: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454: DEPDIR="${am__leading_dot}deps"
3455:
1.10 ! moko 3456: ac_config_commands="$ac_config_commands depfiles"
1.1 misha 3457:
3458:
3459: am_make=${MAKE-make}
3460: cat > confinc << 'END'
3461: am__doit:
3462: @echo done
3463: .PHONY: am__doit
3464: END
3465: # If we don't find an include directive, just comment out the code.
1.10 ! moko 3466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
! 3467: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.1 misha 3468: am__include="#"
3469: am__quote=
3470: _am_result=none
3471: # First try GNU make style include.
3472: echo "include confinc" > confmf
3473: # We grep out `Entering directory' and `Leaving directory'
3474: # messages which can occur if `w' ends up in MAKEFLAGS.
3475: # In particular we don't look at `^make:' because GNU make might
3476: # be invoked under some other name (usually "gmake"), in which
3477: # case it prints its new name instead of `make'.
3478: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3479: am__include=include
3480: am__quote=
3481: _am_result=GNU
3482: fi
3483: # Now try BSD make style include.
3484: if test "$am__include" = "#"; then
3485: echo '.include "confinc"' > confmf
3486: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3487: am__include=.include
3488: am__quote="\""
3489: _am_result=BSD
3490: fi
3491: fi
3492:
3493:
1.10 ! moko 3494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
! 3495: $as_echo "$_am_result" >&6; }
1.1 misha 3496: rm -f confinc confmf
3497:
1.10 ! moko 3498: # Check whether --enable-dependency-tracking was given.
! 3499: if test "${enable_dependency_tracking+set}" = set; then :
! 3500: enableval=$enable_dependency_tracking;
! 3501: fi
1.1 misha 3502:
3503: if test "x$enable_dependency_tracking" != xno; then
3504: am_depcomp="$ac_aux_dir/depcomp"
3505: AMDEPBACKSLASH='\'
3506: fi
3507:
3508:
3509: if test "x$enable_dependency_tracking" != xno; then
3510: AMDEP_TRUE=
3511: AMDEP_FALSE='#'
3512: else
3513: AMDEP_TRUE='#'
3514: AMDEP_FALSE=
3515: fi
3516:
3517:
3518:
3519:
3520: depcc="$CXX" am_compiler_list=
3521:
1.10 ! moko 3522: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 3523: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 3524: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
! 3525: $as_echo_n "(cached) " >&6
1.1 misha 3526: else
3527: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3528: # We make a subdir and do the tests there. Otherwise we can end up
3529: # making bogus files that we don't know about and never remove. For
3530: # instance it was reported that on HP-UX the gcc test will end up
3531: # making a dummy file named `D' -- because `-MD' means `put the output
3532: # in D'.
3533: mkdir conftest.dir
3534: # Copy depcomp to subdir because otherwise we won't find it if we're
3535: # using a relative directory.
3536: cp "$am_depcomp" conftest.dir
3537: cd conftest.dir
3538: # We will build objects and dependencies in a subdirectory because
3539: # it helps to detect inapplicable dependency modes. For instance
3540: # both Tru64's cc and ICC support -MD to output dependencies as a
3541: # side effect of compilation, but ICC will put the dependencies in
3542: # the current directory while Tru64 will put them in the object
3543: # directory.
3544: mkdir sub
3545:
3546: am_cv_CXX_dependencies_compiler_type=none
3547: if test "$am_compiler_list" = ""; then
3548: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3549: fi
3550: for depmode in $am_compiler_list; do
3551: # Setup a source with many dependencies, because some compilers
3552: # like to wrap large dependency lists on column 80 (with \), and
3553: # we should not choose a depcomp mode which is confused by this.
3554: #
3555: # We need to recreate these files for each test, as the compiler may
3556: # overwrite some of them when testing with obscure command lines.
3557: # This happens at least with the AIX C compiler.
3558: : > sub/conftest.c
3559: for i in 1 2 3 4 5 6; do
3560: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3561: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3562: # Solaris 8's {/usr,}/bin/sh.
3563: touch sub/conftst$i.h
3564: done
3565: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3566:
3567: case $depmode in
3568: nosideeffect)
3569: # after this tag, mechanisms are not by side-effect, so they'll
3570: # only be used when explicitly requested
3571: if test "x$enable_dependency_tracking" = xyes; then
3572: continue
3573: else
3574: break
3575: fi
3576: ;;
3577: none) break ;;
3578: esac
3579: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3580: # mode. It turns out that the SunPro C++ compiler does not properly
3581: # handle `-M -o', and we need to detect this.
3582: if depmode=$depmode \
3583: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3584: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3585: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3586: >/dev/null 2>conftest.err &&
3587: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3588: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3589: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3590: # icc doesn't choke on unknown options, it will just issue warnings
3591: # or remarks (even with -Werror). So we grep stderr for any message
3592: # that says an option was ignored or not supported.
3593: # When given -MP, icc 7.0 and 7.1 complain thusly:
3594: # icc: Command line warning: ignoring option '-M'; no argument required
3595: # The diagnosis changed in icc 8.0:
3596: # icc: Command line remark: option '-MP' not supported
3597: if (grep 'ignoring option' conftest.err ||
3598: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3599: am_cv_CXX_dependencies_compiler_type=$depmode
3600: break
3601: fi
3602: fi
3603: done
3604:
3605: cd ..
3606: rm -rf conftest.dir
3607: else
3608: am_cv_CXX_dependencies_compiler_type=none
3609: fi
3610:
3611: fi
1.10 ! moko 3612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 3613: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.1 misha 3614: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3615:
3616:
3617:
3618: if
3619: test "x$enable_dependency_tracking" != xno \
3620: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3621: am__fastdepCXX_TRUE=
3622: am__fastdepCXX_FALSE='#'
3623: else
3624: am__fastdepCXX_TRUE='#'
3625: am__fastdepCXX_FALSE=
3626: fi
3627:
3628:
3629: ac_ext=c
3630: ac_cpp='$CPP $CPPFLAGS'
3631: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634: if test -n "$ac_tool_prefix"; then
3635: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3636: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.10 ! moko 3637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3638: $as_echo_n "checking for $ac_word... " >&6; }
! 3639: if test "${ac_cv_prog_CC+set}" = set; then :
! 3640: $as_echo_n "(cached) " >&6
1.1 misha 3641: else
3642: if test -n "$CC"; then
3643: ac_cv_prog_CC="$CC" # Let the user override the test.
3644: else
3645: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646: for as_dir in $PATH
3647: do
3648: IFS=$as_save_IFS
3649: test -z "$as_dir" && as_dir=.
1.10 ! moko 3650: for ac_exec_ext in '' $ac_executable_extensions; do
! 3651: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3652: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.10 ! moko 3653: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3654: break 2
3655: fi
3656: done
1.10 ! moko 3657: done
! 3658: IFS=$as_save_IFS
1.1 misha 3659:
3660: fi
3661: fi
3662: CC=$ac_cv_prog_CC
3663: if test -n "$CC"; then
1.10 ! moko 3664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3665: $as_echo "$CC" >&6; }
1.1 misha 3666: else
1.10 ! moko 3667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3668: $as_echo "no" >&6; }
1.1 misha 3669: fi
3670:
1.10 ! moko 3671:
1.1 misha 3672: fi
3673: if test -z "$ac_cv_prog_CC"; then
3674: ac_ct_CC=$CC
3675: # Extract the first word of "gcc", so it can be a program name with args.
3676: set dummy gcc; ac_word=$2
1.10 ! moko 3677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3678: $as_echo_n "checking for $ac_word... " >&6; }
! 3679: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
! 3680: $as_echo_n "(cached) " >&6
1.1 misha 3681: else
3682: if test -n "$ac_ct_CC"; then
3683: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3684: else
3685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686: for as_dir in $PATH
3687: do
3688: IFS=$as_save_IFS
3689: test -z "$as_dir" && as_dir=.
1.10 ! moko 3690: for ac_exec_ext in '' $ac_executable_extensions; do
! 3691: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3692: ac_cv_prog_ac_ct_CC="gcc"
1.10 ! moko 3693: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3694: break 2
3695: fi
3696: done
1.10 ! moko 3697: done
! 3698: IFS=$as_save_IFS
1.1 misha 3699:
3700: fi
3701: fi
3702: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703: if test -n "$ac_ct_CC"; then
1.10 ! moko 3704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3705: $as_echo "$ac_ct_CC" >&6; }
1.1 misha 3706: else
1.10 ! moko 3707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3708: $as_echo "no" >&6; }
1.1 misha 3709: fi
3710:
1.10 ! moko 3711: if test "x$ac_ct_CC" = x; then
! 3712: CC=""
! 3713: else
! 3714: case $cross_compiling:$ac_tool_warned in
! 3715: yes:)
! 3716: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3717: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3718: ac_tool_warned=yes ;;
! 3719: esac
! 3720: CC=$ac_ct_CC
! 3721: fi
1.1 misha 3722: else
3723: CC="$ac_cv_prog_CC"
3724: fi
3725:
3726: if test -z "$CC"; then
1.10 ! moko 3727: if test -n "$ac_tool_prefix"; then
! 3728: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.1 misha 3729: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.10 ! moko 3730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3731: $as_echo_n "checking for $ac_word... " >&6; }
! 3732: if test "${ac_cv_prog_CC+set}" = set; then :
! 3733: $as_echo_n "(cached) " >&6
1.1 misha 3734: else
3735: if test -n "$CC"; then
3736: ac_cv_prog_CC="$CC" # Let the user override the test.
3737: else
3738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739: for as_dir in $PATH
3740: do
3741: IFS=$as_save_IFS
3742: test -z "$as_dir" && as_dir=.
1.10 ! moko 3743: for ac_exec_ext in '' $ac_executable_extensions; do
! 3744: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3745: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.10 ! moko 3746: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3747: break 2
3748: fi
3749: done
1.10 ! moko 3750: done
! 3751: IFS=$as_save_IFS
1.1 misha 3752:
3753: fi
3754: fi
3755: CC=$ac_cv_prog_CC
3756: if test -n "$CC"; then
1.10 ! moko 3757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3758: $as_echo "$CC" >&6; }
1.1 misha 3759: else
1.10 ! moko 3760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3761: $as_echo "no" >&6; }
1.1 misha 3762: fi
3763:
1.10 ! moko 3764:
1.1 misha 3765: fi
3766: fi
3767: if test -z "$CC"; then
3768: # Extract the first word of "cc", so it can be a program name with args.
3769: set dummy cc; ac_word=$2
1.10 ! moko 3770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3771: $as_echo_n "checking for $ac_word... " >&6; }
! 3772: if test "${ac_cv_prog_CC+set}" = set; then :
! 3773: $as_echo_n "(cached) " >&6
1.1 misha 3774: else
3775: if test -n "$CC"; then
3776: ac_cv_prog_CC="$CC" # Let the user override the test.
3777: else
3778: ac_prog_rejected=no
3779: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780: for as_dir in $PATH
3781: do
3782: IFS=$as_save_IFS
3783: test -z "$as_dir" && as_dir=.
1.10 ! moko 3784: for ac_exec_ext in '' $ac_executable_extensions; do
! 3785: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3786: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3787: ac_prog_rejected=yes
3788: continue
3789: fi
3790: ac_cv_prog_CC="cc"
1.10 ! moko 3791: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3792: break 2
3793: fi
3794: done
1.10 ! moko 3795: done
! 3796: IFS=$as_save_IFS
1.1 misha 3797:
3798: if test $ac_prog_rejected = yes; then
3799: # We found a bogon in the path, so make sure we never use it.
3800: set dummy $ac_cv_prog_CC
3801: shift
3802: if test $# != 0; then
3803: # We chose a different compiler from the bogus one.
3804: # However, it has the same basename, so the bogon will be chosen
3805: # first if we set CC to just the basename; use the full file name.
3806: shift
3807: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3808: fi
3809: fi
3810: fi
3811: fi
3812: CC=$ac_cv_prog_CC
3813: if test -n "$CC"; then
1.10 ! moko 3814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3815: $as_echo "$CC" >&6; }
1.1 misha 3816: else
1.10 ! moko 3817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3818: $as_echo "no" >&6; }
1.1 misha 3819: fi
3820:
1.10 ! moko 3821:
1.1 misha 3822: fi
3823: if test -z "$CC"; then
3824: if test -n "$ac_tool_prefix"; then
1.10 ! moko 3825: for ac_prog in cl.exe
1.1 misha 3826: do
3827: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3828: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 ! moko 3829: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3830: $as_echo_n "checking for $ac_word... " >&6; }
! 3831: if test "${ac_cv_prog_CC+set}" = set; then :
! 3832: $as_echo_n "(cached) " >&6
1.1 misha 3833: else
3834: if test -n "$CC"; then
3835: ac_cv_prog_CC="$CC" # Let the user override the test.
3836: else
3837: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838: for as_dir in $PATH
3839: do
3840: IFS=$as_save_IFS
3841: test -z "$as_dir" && as_dir=.
1.10 ! moko 3842: for ac_exec_ext in '' $ac_executable_extensions; do
! 3843: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3844: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.10 ! moko 3845: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3846: break 2
3847: fi
3848: done
1.10 ! moko 3849: done
! 3850: IFS=$as_save_IFS
1.1 misha 3851:
3852: fi
3853: fi
3854: CC=$ac_cv_prog_CC
3855: if test -n "$CC"; then
1.10 ! moko 3856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 3857: $as_echo "$CC" >&6; }
1.1 misha 3858: else
1.10 ! moko 3859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3860: $as_echo "no" >&6; }
1.1 misha 3861: fi
3862:
1.10 ! moko 3863:
1.1 misha 3864: test -n "$CC" && break
3865: done
3866: fi
3867: if test -z "$CC"; then
3868: ac_ct_CC=$CC
1.10 ! moko 3869: for ac_prog in cl.exe
1.1 misha 3870: do
3871: # Extract the first word of "$ac_prog", so it can be a program name with args.
3872: set dummy $ac_prog; ac_word=$2
1.10 ! moko 3873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3874: $as_echo_n "checking for $ac_word... " >&6; }
! 3875: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
! 3876: $as_echo_n "(cached) " >&6
1.1 misha 3877: else
3878: if test -n "$ac_ct_CC"; then
3879: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3880: else
3881: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882: for as_dir in $PATH
3883: do
3884: IFS=$as_save_IFS
3885: test -z "$as_dir" && as_dir=.
1.10 ! moko 3886: for ac_exec_ext in '' $ac_executable_extensions; do
! 3887: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1 misha 3888: ac_cv_prog_ac_ct_CC="$ac_prog"
1.10 ! moko 3889: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 misha 3890: break 2
3891: fi
3892: done
1.10 ! moko 3893: done
! 3894: IFS=$as_save_IFS
1.1 misha 3895:
3896: fi
3897: fi
3898: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3899: if test -n "$ac_ct_CC"; then
1.10 ! moko 3900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 3901: $as_echo "$ac_ct_CC" >&6; }
1.1 misha 3902: else
1.10 ! moko 3903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3904: $as_echo "no" >&6; }
1.1 misha 3905: fi
3906:
1.10 ! moko 3907:
1.1 misha 3908: test -n "$ac_ct_CC" && break
3909: done
3910:
1.10 ! moko 3911: if test "x$ac_ct_CC" = x; then
! 3912: CC=""
! 3913: else
! 3914: case $cross_compiling:$ac_tool_warned in
! 3915: yes:)
! 3916: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3917: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 3918: ac_tool_warned=yes ;;
! 3919: esac
! 3920: CC=$ac_ct_CC
! 3921: fi
1.1 misha 3922: fi
3923:
3924: fi
3925:
3926:
1.10 ! moko 3927: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3928: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3929: as_fn_error $? "no acceptable C compiler found in \$PATH
! 3930: See \`config.log' for more details" "$LINENO" 5 ; }
1.1 misha 3931:
3932: # Provide some information about the compiler.
1.10 ! moko 3933: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
! 3934: set X $ac_compile
! 3935: ac_compiler=$2
! 3936: for ac_option in --version -v -V -qversion; do
! 3937: { { ac_try="$ac_compiler $ac_option >&5"
! 3938: case "(($ac_try" in
! 3939: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3940: *) ac_try_echo=$ac_try;;
! 3941: esac
! 3942: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3943: $as_echo "$ac_try_echo"; } >&5
! 3944: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.1 misha 3945: ac_status=$?
1.10 ! moko 3946: if test -s conftest.err; then
! 3947: sed '10a\
! 3948: ... rest of stderr output deleted ...
! 3949: 10q' conftest.err >conftest.er1
! 3950: cat conftest.er1 >&5
! 3951: fi
! 3952: rm -f conftest.er1 conftest.err
! 3953: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3954: test $ac_status = 0; }
! 3955: done
! 3956:
! 3957: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
! 3958: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
! 3959: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
! 3960: $as_echo_n "(cached) " >&6
1.1 misha 3961: else
1.10 ! moko 3962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 3963: /* end confdefs.h. */
3964:
3965: int
3966: main ()
3967: {
3968: #ifndef __GNUC__
3969: choke me
3970: #endif
3971:
3972: ;
3973: return 0;
3974: }
3975: _ACEOF
1.10 ! moko 3976: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misha 3977: ac_compiler_gnu=yes
3978: else
1.10 ! moko 3979: ac_compiler_gnu=no
1.1 misha 3980: fi
1.10 ! moko 3981: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 3982: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983:
3984: fi
1.10 ! moko 3985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 3986: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
! 3987: if test $ac_compiler_gnu = yes; then
! 3988: GCC=yes
! 3989: else
! 3990: GCC=
! 3991: fi
1.1 misha 3992: ac_test_CFLAGS=${CFLAGS+set}
3993: ac_save_CFLAGS=$CFLAGS
1.10 ! moko 3994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 3995: $as_echo_n "checking whether $CC accepts -g... " >&6; }
! 3996: if test "${ac_cv_prog_cc_g+set}" = set; then :
! 3997: $as_echo_n "(cached) " >&6
! 3998: else
! 3999: ac_save_c_werror_flag=$ac_c_werror_flag
! 4000: ac_c_werror_flag=yes
! 4001: ac_cv_prog_cc_g=no
! 4002: CFLAGS="-g"
! 4003: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4004: /* end confdefs.h. */
! 4005:
! 4006: int
! 4007: main ()
! 4008: {
! 4009:
! 4010: ;
! 4011: return 0;
! 4012: }
! 4013: _ACEOF
! 4014: if ac_fn_c_try_compile "$LINENO"; then :
! 4015: ac_cv_prog_cc_g=yes
1.1 misha 4016: else
1.10 ! moko 4017: CFLAGS=""
! 4018: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4019: /* end confdefs.h. */
! 4020:
! 4021: int
! 4022: main ()
! 4023: {
! 4024:
! 4025: ;
! 4026: return 0;
! 4027: }
1.1 misha 4028: _ACEOF
1.10 ! moko 4029: if ac_fn_c_try_compile "$LINENO"; then :
! 4030:
! 4031: else
! 4032: ac_c_werror_flag=$ac_save_c_werror_flag
! 4033: CFLAGS="-g"
! 4034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 4035: /* end confdefs.h. */
4036:
4037: int
4038: main ()
4039: {
4040:
4041: ;
4042: return 0;
4043: }
4044: _ACEOF
1.10 ! moko 4045: if ac_fn_c_try_compile "$LINENO"; then :
1.1 misha 4046: ac_cv_prog_cc_g=yes
4047: fi
1.10 ! moko 4048: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4049: fi
! 4050: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4051: fi
! 4052: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4053: ac_c_werror_flag=$ac_save_c_werror_flag
1.1 misha 4054: fi
1.10 ! moko 4055: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 4056: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.1 misha 4057: if test "$ac_test_CFLAGS" = set; then
4058: CFLAGS=$ac_save_CFLAGS
4059: elif test $ac_cv_prog_cc_g = yes; then
4060: if test "$GCC" = yes; then
4061: CFLAGS="-g -O2"
4062: else
4063: CFLAGS="-g"
4064: fi
4065: else
4066: if test "$GCC" = yes; then
4067: CFLAGS="-O2"
4068: else
4069: CFLAGS=
4070: fi
4071: fi
1.10 ! moko 4072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
! 4073: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
! 4074: if test "${ac_cv_prog_cc_c89+set}" = set; then :
! 4075: $as_echo_n "(cached) " >&6
1.1 misha 4076: else
1.10 ! moko 4077: ac_cv_prog_cc_c89=no
1.1 misha 4078: ac_save_CC=$CC
1.10 ! moko 4079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 4080: /* end confdefs.h. */
4081: #include <stdarg.h>
4082: #include <stdio.h>
4083: #include <sys/types.h>
4084: #include <sys/stat.h>
4085: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4086: struct buf { int x; };
4087: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4088: static char *e (p, i)
4089: char **p;
4090: int i;
4091: {
4092: return p[i];
4093: }
4094: static char *f (char * (*g) (char **, int), char **p, ...)
4095: {
4096: char *s;
4097: va_list v;
4098: va_start (v,p);
4099: s = g (p, va_arg (v,int));
4100: va_end (v);
4101: return s;
4102: }
4103:
4104: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4105: function prototypes and stuff, but not '\xHH' hex character constants.
4106: These don't provoke an error unfortunately, instead are silently treated
1.10 ! moko 4107: as 'x'. The following induces an error, until -std is added to get
1.1 misha 4108: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4109: array size at least. It's necessary to write '\x00'==0 to get something
1.10 ! moko 4110: that's true only with -std. */
1.1 misha 4111: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4112:
1.10 ! moko 4113: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 4114: inside strings and character constants. */
! 4115: #define FOO(x) 'x'
! 4116: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 4117:
1.1 misha 4118: int test (int i, double x);
4119: struct s1 {int (*f) (int a);};
4120: struct s2 {int (*f) (double a);};
4121: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4122: int argc;
4123: char **argv;
4124: int
4125: main ()
4126: {
4127: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4128: ;
4129: return 0;
4130: }
4131: _ACEOF
1.10 ! moko 4132: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 4133: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 misha 4134: do
4135: CC="$ac_save_CC $ac_arg"
1.10 ! moko 4136: if ac_fn_c_try_compile "$LINENO"; then :
! 4137: ac_cv_prog_cc_c89=$ac_arg
1.1 misha 4138: fi
1.10 ! moko 4139: rm -f core conftest.err conftest.$ac_objext
! 4140: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.1 misha 4141: done
1.10 ! moko 4142: rm -f conftest.$ac_ext
1.1 misha 4143: CC=$ac_save_CC
4144:
4145: fi
1.10 ! moko 4146: # AC_CACHE_VAL
! 4147: case "x$ac_cv_prog_cc_c89" in
! 4148: x)
! 4149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4150: $as_echo "none needed" >&6; } ;;
! 4151: xno)
! 4152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4153: $as_echo "unsupported" >&6; } ;;
1.1 misha 4154: *)
1.10 ! moko 4155: CC="$CC $ac_cv_prog_cc_c89"
! 4156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 4157: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 misha 4158: esac
1.10 ! moko 4159: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.1 misha 4160:
4161: fi
4162:
4163: ac_ext=c
4164: ac_cpp='$CPP $CPPFLAGS'
4165: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168:
4169: depcc="$CC" am_compiler_list=
4170:
1.10 ! moko 4171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 4172: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 4173: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
! 4174: $as_echo_n "(cached) " >&6
1.1 misha 4175: else
4176: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177: # We make a subdir and do the tests there. Otherwise we can end up
4178: # making bogus files that we don't know about and never remove. For
4179: # instance it was reported that on HP-UX the gcc test will end up
4180: # making a dummy file named `D' -- because `-MD' means `put the output
4181: # in D'.
4182: mkdir conftest.dir
4183: # Copy depcomp to subdir because otherwise we won't find it if we're
4184: # using a relative directory.
4185: cp "$am_depcomp" conftest.dir
4186: cd conftest.dir
4187: # We will build objects and dependencies in a subdirectory because
4188: # it helps to detect inapplicable dependency modes. For instance
4189: # both Tru64's cc and ICC support -MD to output dependencies as a
4190: # side effect of compilation, but ICC will put the dependencies in
4191: # the current directory while Tru64 will put them in the object
4192: # directory.
4193: mkdir sub
4194:
4195: am_cv_CC_dependencies_compiler_type=none
4196: if test "$am_compiler_list" = ""; then
4197: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4198: fi
4199: for depmode in $am_compiler_list; do
4200: # Setup a source with many dependencies, because some compilers
4201: # like to wrap large dependency lists on column 80 (with \), and
4202: # we should not choose a depcomp mode which is confused by this.
4203: #
4204: # We need to recreate these files for each test, as the compiler may
4205: # overwrite some of them when testing with obscure command lines.
4206: # This happens at least with the AIX C compiler.
4207: : > sub/conftest.c
4208: for i in 1 2 3 4 5 6; do
4209: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4210: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4211: # Solaris 8's {/usr,}/bin/sh.
4212: touch sub/conftst$i.h
4213: done
4214: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4215:
4216: case $depmode in
4217: nosideeffect)
4218: # after this tag, mechanisms are not by side-effect, so they'll
4219: # only be used when explicitly requested
4220: if test "x$enable_dependency_tracking" = xyes; then
4221: continue
4222: else
4223: break
4224: fi
4225: ;;
4226: none) break ;;
4227: esac
4228: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4229: # mode. It turns out that the SunPro C++ compiler does not properly
4230: # handle `-M -o', and we need to detect this.
4231: if depmode=$depmode \
4232: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4233: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4234: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4235: >/dev/null 2>conftest.err &&
4236: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4237: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4238: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4239: # icc doesn't choke on unknown options, it will just issue warnings
4240: # or remarks (even with -Werror). So we grep stderr for any message
4241: # that says an option was ignored or not supported.
4242: # When given -MP, icc 7.0 and 7.1 complain thusly:
4243: # icc: Command line warning: ignoring option '-M'; no argument required
4244: # The diagnosis changed in icc 8.0:
4245: # icc: Command line remark: option '-MP' not supported
4246: if (grep 'ignoring option' conftest.err ||
4247: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4248: am_cv_CC_dependencies_compiler_type=$depmode
4249: break
4250: fi
4251: fi
4252: done
4253:
4254: cd ..
4255: rm -rf conftest.dir
4256: else
4257: am_cv_CC_dependencies_compiler_type=none
4258: fi
4259:
4260: fi
1.10 ! moko 4261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 4262: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
1.1 misha 4263: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4264:
4265:
4266:
4267: if
4268: test "x$enable_dependency_tracking" != xno \
4269: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4270: am__fastdepCC_TRUE=
4271: am__fastdepCC_FALSE='#'
4272: else
4273: am__fastdepCC_TRUE='#'
4274: am__fastdepCC_FALSE=
4275: fi
4276:
4277:
4278:
1.8 moko 4279:
4280: case `pwd` in
4281: *\ * | *\ *)
1.10 ! moko 4282: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 4283: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.8 moko 4284: esac
4285:
4286:
4287:
4288: macro_version='2.4.2'
4289: macro_revision='1.3337'
4290:
4291:
4292:
4293:
4294:
4295:
4296:
1.1 misha 4297:
4298:
4299:
4300:
4301:
4302:
1.8 moko 4303: ltmain="$ac_aux_dir/ltmain.sh"
1.1 misha 4304:
4305: # Make sure we can run config.sub.
1.10 ! moko 4306: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 4307: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.1 misha 4308:
1.10 ! moko 4309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 4310: $as_echo_n "checking build system type... " >&6; }
! 4311: if test "${ac_cv_build+set}" = set; then :
! 4312: $as_echo_n "(cached) " >&6
! 4313: else
! 4314: ac_build_alias=$build_alias
! 4315: test "x$ac_build_alias" = x &&
! 4316: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 4317: test "x$ac_build_alias" = x &&
! 4318: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
! 4319: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 4320: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
! 4321:
! 4322: fi
! 4323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 4324: $as_echo "$ac_cv_build" >&6; }
! 4325: case $ac_cv_build in
! 4326: *-*-*) ;;
! 4327: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
! 4328: esac
! 4329: build=$ac_cv_build
! 4330: ac_save_IFS=$IFS; IFS='-'
! 4331: set x $ac_cv_build
! 4332: shift
! 4333: build_cpu=$1
! 4334: build_vendor=$2
! 4335: shift; shift
! 4336: # Remember, the first character of IFS is used to create $*,
! 4337: # except with old shells:
! 4338: build_os=$*
! 4339: IFS=$ac_save_IFS
! 4340: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
! 4341:
! 4342:
! 4343: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 4344: $as_echo_n "checking host system type... " >&6; }
! 4345: if test "${ac_cv_host+set}" = set; then :
! 4346: $as_echo_n "(cached) " >&6
! 4347: else
! 4348: if test "x$host_alias" = x; then
! 4349: ac_cv_host=$ac_cv_build
! 4350: else
! 4351: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 4352: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.1 misha 4353: fi
4354:
4355: fi
1.10 ! moko 4356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 4357: $as_echo "$ac_cv_host" >&6; }
! 4358: case $ac_cv_host in
! 4359: *-*-*) ;;
! 4360: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
! 4361: esac
1.1 misha 4362: host=$ac_cv_host
1.10 ! moko 4363: ac_save_IFS=$IFS; IFS='-'
! 4364: set x $ac_cv_host
! 4365: shift
! 4366: host_cpu=$1
! 4367: host_vendor=$2
! 4368: shift; shift
! 4369: # Remember, the first character of IFS is used to create $*,
! 4370: # except with old shells:
! 4371: host_os=$*
! 4372: IFS=$ac_save_IFS
! 4373: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 misha 4374:
4375:
1.8 moko 4376: # Backslashify metacharacters that are still active within
4377: # double-quoted strings.
4378: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4379:
4380: # Same as above, but do not quote variable references.
4381: double_quote_subst='s/\(["`\\]\)/\\\1/g'
4382:
4383: # Sed substitution to delay expansion of an escaped shell variable in a
4384: # double_quote_subst'ed string.
4385: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4386:
4387: # Sed substitution to delay expansion of an escaped single quote.
4388: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.1 misha 4389:
1.8 moko 4390: # Sed substitution to avoid accidental globbing in evaled expressions
4391: no_glob_subst='s/\*/\\\*/g'
1.1 misha 4392:
1.8 moko 4393: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4394: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4395: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4396:
1.10 ! moko 4397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 4398: $as_echo_n "checking how to print strings... " >&6; }
1.8 moko 4399: # Test print first, because it will be a builtin if present.
4400: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4401: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4402: ECHO='print -r --'
4403: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4404: ECHO='printf %s\n'
1.1 misha 4405: else
1.8 moko 4406: # Use this function as a fallback that always works.
4407: func_fallback_echo ()
4408: {
4409: eval 'cat <<_LTECHO_EOF
4410: $1
4411: _LTECHO_EOF'
4412: }
4413: ECHO='func_fallback_echo'
1.1 misha 4414: fi
1.8 moko 4415:
4416: # func_echo_all arg...
4417: # Invoke $ECHO with all args, space-separated.
4418: func_echo_all ()
4419: {
4420: $ECHO ""
4421: }
4422:
4423: case "$ECHO" in
1.10 ! moko 4424: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 4425: $as_echo "printf" >&6; } ;;
! 4426: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 4427: $as_echo "print -r" >&6; } ;;
! 4428: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 4429: $as_echo "cat" >&6; } ;;
1.8 moko 4430: esac
4431:
4432:
4433:
4434:
4435:
4436:
4437:
4438:
4439:
4440:
4441:
4442:
4443:
4444:
1.10 ! moko 4445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
! 4446: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
! 4447: if test "${ac_cv_path_SED+set}" = set; then :
! 4448: $as_echo_n "(cached) " >&6
! 4449: else
! 4450: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
! 4451: for ac_i in 1 2 3 4 5 6 7; do
! 4452: ac_script="$ac_script$as_nl$ac_script"
! 4453: done
! 4454: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
! 4455: { ac_script=; unset ac_script;}
! 4456: if test -z "$SED"; then
! 4457: ac_path_SED_found=false
! 4458: # Loop through the user's path and test for each of PROGNAME-LIST
! 4459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.8 moko 4460: for as_dir in $PATH
4461: do
4462: IFS=$as_save_IFS
4463: test -z "$as_dir" && as_dir=.
1.10 ! moko 4464: for ac_prog in sed gsed; do
1.8 moko 4465: for ac_exec_ext in '' $ac_executable_extensions; do
1.10 ! moko 4466: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
! 4467: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
! 4468: # Check for GNU ac_path_SED and select it if it is found.
! 4469: # Check for GNU $ac_path_SED
! 4470: case `"$ac_path_SED" --version 2>&1` in
! 4471: *GNU*)
! 4472: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
! 4473: *)
! 4474: ac_count=0
! 4475: $as_echo_n 0123456789 >"conftest.in"
! 4476: while :
! 4477: do
! 4478: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4479: mv "conftest.tmp" "conftest.in"
! 4480: cp "conftest.in" "conftest.nl"
! 4481: $as_echo '' >> "conftest.nl"
! 4482: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4483: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4484: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4485: if test $ac_count -gt ${ac_path_SED_max-0}; then
! 4486: # Best one so far, save it but keep looking for a better one
! 4487: ac_cv_path_SED="$ac_path_SED"
! 4488: ac_path_SED_max=$ac_count
! 4489: fi
! 4490: # 10*(2^10) chars as input seems more than enough
! 4491: test $ac_count -gt 10 && break
! 4492: done
! 4493: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4494: esac
! 4495:
! 4496: $ac_path_SED_found && break 3
1.8 moko 4497: done
4498: done
1.10 ! moko 4499: done
1.8 moko 4500: IFS=$as_save_IFS
1.10 ! moko 4501: if test -z "$ac_cv_path_SED"; then
! 4502: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.8 moko 4503: fi
1.10 ! moko 4504: else
! 4505: ac_cv_path_SED=$SED
! 4506: fi
1.8 moko 4507:
4508: fi
1.10 ! moko 4509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
! 4510: $as_echo "$ac_cv_path_SED" >&6; }
! 4511: SED="$ac_cv_path_SED"
! 4512: rm -f conftest.sed
1.8 moko 4513:
4514: test -z "$SED" && SED=sed
4515: Xsed="$SED -e 1s/^X//"
4516:
4517:
4518:
4519:
4520:
4521:
4522:
4523:
4524:
4525:
4526:
1.10 ! moko 4527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 4528: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
! 4529: if test "${ac_cv_path_GREP+set}" = set; then :
! 4530: $as_echo_n "(cached) " >&6
! 4531: else
! 4532: if test -z "$GREP"; then
! 4533: ac_path_GREP_found=false
! 4534: # Loop through the user's path and test for each of PROGNAME-LIST
! 4535: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4536: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4537: do
! 4538: IFS=$as_save_IFS
! 4539: test -z "$as_dir" && as_dir=.
! 4540: for ac_prog in grep ggrep; do
! 4541: for ac_exec_ext in '' $ac_executable_extensions; do
! 4542: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
! 4543: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
! 4544: # Check for GNU ac_path_GREP and select it if it is found.
! 4545: # Check for GNU $ac_path_GREP
! 4546: case `"$ac_path_GREP" --version 2>&1` in
! 4547: *GNU*)
! 4548: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
! 4549: *)
! 4550: ac_count=0
! 4551: $as_echo_n 0123456789 >"conftest.in"
! 4552: while :
! 4553: do
! 4554: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4555: mv "conftest.tmp" "conftest.in"
! 4556: cp "conftest.in" "conftest.nl"
! 4557: $as_echo 'GREP' >> "conftest.nl"
! 4558: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4559: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4560: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4561: if test $ac_count -gt ${ac_path_GREP_max-0}; then
! 4562: # Best one so far, save it but keep looking for a better one
! 4563: ac_cv_path_GREP="$ac_path_GREP"
! 4564: ac_path_GREP_max=$ac_count
1.8 moko 4565: fi
1.10 ! moko 4566: # 10*(2^10) chars as input seems more than enough
! 4567: test $ac_count -gt 10 && break
! 4568: done
! 4569: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4570: esac
! 4571:
! 4572: $ac_path_GREP_found && break 3
! 4573: done
! 4574: done
! 4575: done
! 4576: IFS=$as_save_IFS
! 4577: if test -z "$ac_cv_path_GREP"; then
! 4578: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4579: fi
! 4580: else
! 4581: ac_cv_path_GREP=$GREP
1.8 moko 4582: fi
4583:
1.10 ! moko 4584: fi
! 4585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 4586: $as_echo "$ac_cv_path_GREP" >&6; }
! 4587: GREP="$ac_cv_path_GREP"
! 4588:
! 4589:
! 4590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 4591: $as_echo_n "checking for egrep... " >&6; }
! 4592: if test "${ac_cv_path_EGREP+set}" = set; then :
! 4593: $as_echo_n "(cached) " >&6
! 4594: else
! 4595: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
! 4596: then ac_cv_path_EGREP="$GREP -E"
! 4597: else
! 4598: if test -z "$EGREP"; then
! 4599: ac_path_EGREP_found=false
! 4600: # Loop through the user's path and test for each of PROGNAME-LIST
! 4601: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4602: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4603: do
! 4604: IFS=$as_save_IFS
! 4605: test -z "$as_dir" && as_dir=.
! 4606: for ac_prog in egrep; do
! 4607: for ac_exec_ext in '' $ac_executable_extensions; do
! 4608: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4609: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
! 4610: # Check for GNU ac_path_EGREP and select it if it is found.
! 4611: # Check for GNU $ac_path_EGREP
! 4612: case `"$ac_path_EGREP" --version 2>&1` in
! 4613: *GNU*)
! 4614: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
! 4615: *)
! 4616: ac_count=0
! 4617: $as_echo_n 0123456789 >"conftest.in"
! 4618: while :
! 4619: do
! 4620: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4621: mv "conftest.tmp" "conftest.in"
! 4622: cp "conftest.in" "conftest.nl"
! 4623: $as_echo 'EGREP' >> "conftest.nl"
! 4624: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4625: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4626: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4627: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
! 4628: # Best one so far, save it but keep looking for a better one
! 4629: ac_cv_path_EGREP="$ac_path_EGREP"
! 4630: ac_path_EGREP_max=$ac_count
! 4631: fi
! 4632: # 10*(2^10) chars as input seems more than enough
! 4633: test $ac_count -gt 10 && break
! 4634: done
! 4635: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4636: esac
! 4637:
! 4638: $ac_path_EGREP_found && break 3
! 4639: done
! 4640: done
! 4641: done
! 4642: IFS=$as_save_IFS
! 4643: if test -z "$ac_cv_path_EGREP"; then
! 4644: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4645: fi
! 4646: else
! 4647: ac_cv_path_EGREP=$EGREP
! 4648: fi
1.8 moko 4649:
1.10 ! moko 4650: fi
! 4651: fi
! 4652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 4653: $as_echo "$ac_cv_path_EGREP" >&6; }
! 4654: EGREP="$ac_cv_path_EGREP"
! 4655:
! 4656:
! 4657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
! 4658: $as_echo_n "checking for fgrep... " >&6; }
! 4659: if test "${ac_cv_path_FGREP+set}" = set; then :
! 4660: $as_echo_n "(cached) " >&6
! 4661: else
! 4662: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
! 4663: then ac_cv_path_FGREP="$GREP -F"
! 4664: else
! 4665: if test -z "$FGREP"; then
! 4666: ac_path_FGREP_found=false
! 4667: # Loop through the user's path and test for each of PROGNAME-LIST
! 4668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4669: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
! 4670: do
! 4671: IFS=$as_save_IFS
! 4672: test -z "$as_dir" && as_dir=.
! 4673: for ac_prog in fgrep; do
! 4674: for ac_exec_ext in '' $ac_executable_extensions; do
! 4675: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
! 4676: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
! 4677: # Check for GNU ac_path_FGREP and select it if it is found.
! 4678: # Check for GNU $ac_path_FGREP
! 4679: case `"$ac_path_FGREP" --version 2>&1` in
! 4680: *GNU*)
! 4681: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
! 4682: *)
! 4683: ac_count=0
! 4684: $as_echo_n 0123456789 >"conftest.in"
! 4685: while :
! 4686: do
! 4687: cat "conftest.in" "conftest.in" >"conftest.tmp"
! 4688: mv "conftest.tmp" "conftest.in"
! 4689: cp "conftest.in" "conftest.nl"
! 4690: $as_echo 'FGREP' >> "conftest.nl"
! 4691: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
! 4692: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
! 4693: as_fn_arith $ac_count + 1 && ac_count=$as_val
! 4694: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
! 4695: # Best one so far, save it but keep looking for a better one
! 4696: ac_cv_path_FGREP="$ac_path_FGREP"
! 4697: ac_path_FGREP_max=$ac_count
1.8 moko 4698: fi
1.10 ! moko 4699: # 10*(2^10) chars as input seems more than enough
! 4700: test $ac_count -gt 10 && break
! 4701: done
! 4702: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
! 4703: esac
! 4704:
! 4705: $ac_path_FGREP_found && break 3
! 4706: done
! 4707: done
! 4708: done
! 4709: IFS=$as_save_IFS
! 4710: if test -z "$ac_cv_path_FGREP"; then
! 4711: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
! 4712: fi
! 4713: else
! 4714: ac_cv_path_FGREP=$FGREP
1.8 moko 4715: fi
1.10 ! moko 4716:
! 4717: fi
! 4718: fi
! 4719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
! 4720: $as_echo "$ac_cv_path_FGREP" >&6; }
! 4721: FGREP="$ac_cv_path_FGREP"
1.8 moko 4722:
4723:
4724: test -z "$GREP" && GREP=grep
4725:
4726:
4727:
4728:
4729:
4730:
4731:
4732:
4733:
4734:
4735:
4736:
4737:
4738:
4739:
4740:
4741:
4742:
4743:
1.10 ! moko 4744: # Check whether --with-gnu-ld was given.
! 4745: if test "${with_gnu_ld+set}" = set; then :
! 4746: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.8 moko 4747: else
4748: with_gnu_ld=no
1.10 ! moko 4749: fi
! 4750:
1.8 moko 4751: ac_prog=ld
4752: if test "$GCC" = yes; then
4753: # Check if gcc -print-prog-name=ld gives a path.
1.10 ! moko 4754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 4755: $as_echo_n "checking for ld used by $CC... " >&6; }
1.8 moko 4756: case $host in
4757: *-*-mingw*)
4758: # gcc leaves a trailing carriage return which upsets mingw
4759: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4760: *)
4761: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4762: esac
4763: case $ac_prog in
4764: # Accept absolute paths.
4765: [\\/]* | ?:[\\/]*)
4766: re_direlt='/[^/][^/]*/\.\./'
4767: # Canonicalize the pathname of ld
4768: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4769: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4770: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4771: done
4772: test -z "$LD" && LD="$ac_prog"
4773: ;;
4774: "")
4775: # If it fails, then pretend we aren't using GCC.
4776: ac_prog=ld
4777: ;;
4778: *)
4779: # If it is relative, then search for the first ld in PATH.
4780: with_gnu_ld=unknown
4781: ;;
4782: esac
4783: elif test "$with_gnu_ld" = yes; then
1.10 ! moko 4784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 4785: $as_echo_n "checking for GNU ld... " >&6; }
1.8 moko 4786: else
1.10 ! moko 4787: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 4788: $as_echo_n "checking for non-GNU ld... " >&6; }
1.8 moko 4789: fi
1.10 ! moko 4790: if test "${lt_cv_path_LD+set}" = set; then :
! 4791: $as_echo_n "(cached) " >&6
1.1 misha 4792: else
4793: if test -z "$LD"; then
1.8 moko 4794: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.1 misha 4795: for ac_dir in $PATH; do
1.8 moko 4796: IFS="$lt_save_ifs"
1.1 misha 4797: test -z "$ac_dir" && ac_dir=.
4798: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4799: lt_cv_path_LD="$ac_dir/$ac_prog"
4800: # Check to see if the program is GNU ld. I'd rather use --version,
1.8 moko 4801: # but apparently some variants of GNU ld only accept -v.
1.1 misha 4802: # Break only if it was the GNU/non-GNU ld that we prefer.
1.8 moko 4803: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4804: *GNU* | *'with BFD'*)
1.1 misha 4805: test "$with_gnu_ld" != no && break
1.8 moko 4806: ;;
4807: *)
1.1 misha 4808: test "$with_gnu_ld" != yes && break
1.8 moko 4809: ;;
4810: esac
1.1 misha 4811: fi
4812: done
1.8 moko 4813: IFS="$lt_save_ifs"
1.1 misha 4814: else
4815: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4816: fi
4817: fi
4818:
4819: LD="$lt_cv_path_LD"
4820: if test -n "$LD"; then
1.10 ! moko 4821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 4822: $as_echo "$LD" >&6; }
1.1 misha 4823: else
1.10 ! moko 4824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4825: $as_echo "no" >&6; }
1.1 misha 4826: fi
1.10 ! moko 4827: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 4828: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 4829: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 4830: if test "${lt_cv_prog_gnu_ld+set}" = set; then :
! 4831: $as_echo_n "(cached) " >&6
1.1 misha 4832: else
1.8 moko 4833: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4834: case `$LD -v 2>&1 </dev/null` in
4835: *GNU* | *'with BFD'*)
1.1 misha 4836: lt_cv_prog_gnu_ld=yes
1.8 moko 4837: ;;
4838: *)
1.1 misha 4839: lt_cv_prog_gnu_ld=no
1.8 moko 4840: ;;
4841: esac
1.1 misha 4842: fi
1.10 ! moko 4843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 4844: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.1 misha 4845: with_gnu_ld=$lt_cv_prog_gnu_ld
4846:
4847:
4848:
1.8 moko 4849:
4850:
4851:
4852:
4853:
4854:
1.10 ! moko 4855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
! 4856: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
! 4857: if test "${lt_cv_path_NM+set}" = set; then :
! 4858: $as_echo_n "(cached) " >&6
1.1 misha 4859: else
4860: if test -n "$NM"; then
4861: # Let the user override the test.
4862: lt_cv_path_NM="$NM"
4863: else
1.8 moko 4864: lt_nm_to_check="${ac_tool_prefix}nm"
4865: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4866: lt_nm_to_check="$lt_nm_to_check nm"
4867: fi
4868: for lt_tmp_nm in $lt_nm_to_check; do
4869: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4870: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4871: IFS="$lt_save_ifs"
4872: test -z "$ac_dir" && ac_dir=.
4873: tmp_nm="$ac_dir/$lt_tmp_nm"
4874: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4875: # Check to see if the nm accepts a BSD-compat flag.
4876: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4877: # nm: unknown option "B" ignored
4878: # Tru64's nm complains that /dev/null is an invalid object file
4879: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4880: */dev/null* | *'Invalid file or object type'*)
4881: lt_cv_path_NM="$tmp_nm -B"
4882: break
4883: ;;
4884: *)
4885: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4886: */dev/null*)
4887: lt_cv_path_NM="$tmp_nm -p"
4888: break
4889: ;;
4890: *)
4891: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4892: continue # so that we can try to find one that supports BSD flags
4893: ;;
4894: esac
4895: ;;
4896: esac
1.1 misha 4897: fi
1.8 moko 4898: done
4899: IFS="$lt_save_ifs"
1.1 misha 4900: done
1.8 moko 4901: : ${lt_cv_path_NM=no}
1.1 misha 4902: fi
4903: fi
1.10 ! moko 4904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
! 4905: $as_echo "$lt_cv_path_NM" >&6; }
1.8 moko 4906: if test "$lt_cv_path_NM" != "no"; then
4907: NM="$lt_cv_path_NM"
4908: else
4909: # Didn't find any BSD compatible name lister, look for dumpbin.
4910: if test -n "$DUMPBIN"; then :
4911: # Let the user override the test.
4912: else
4913: if test -n "$ac_tool_prefix"; then
4914: for ac_prog in dumpbin "link -dump"
4915: do
4916: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4917: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 ! moko 4918: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4919: $as_echo_n "checking for $ac_word... " >&6; }
! 4920: if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
! 4921: $as_echo_n "(cached) " >&6
1.1 misha 4922: else
1.8 moko 4923: if test -n "$DUMPBIN"; then
4924: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4925: else
1.1 misha 4926: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927: for as_dir in $PATH
4928: do
4929: IFS=$as_save_IFS
4930: test -z "$as_dir" && as_dir=.
1.10 ! moko 4931: for ac_exec_ext in '' $ac_executable_extensions; do
! 4932: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 4933: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.10 ! moko 4934: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4935: break 2
4936: fi
4937: done
1.10 ! moko 4938: done
! 4939: IFS=$as_save_IFS
1.1 misha 4940:
1.8 moko 4941: fi
4942: fi
4943: DUMPBIN=$ac_cv_prog_DUMPBIN
4944: if test -n "$DUMPBIN"; then
1.10 ! moko 4945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
! 4946: $as_echo "$DUMPBIN" >&6; }
1.8 moko 4947: else
1.10 ! moko 4948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4949: $as_echo "no" >&6; }
1.8 moko 4950: fi
1.1 misha 4951:
1.10 ! moko 4952:
1.8 moko 4953: test -n "$DUMPBIN" && break
1.1 misha 4954: done
1.8 moko 4955: fi
4956: if test -z "$DUMPBIN"; then
4957: ac_ct_DUMPBIN=$DUMPBIN
4958: for ac_prog in dumpbin "link -dump"
4959: do
4960: # Extract the first word of "$ac_prog", so it can be a program name with args.
4961: set dummy $ac_prog; ac_word=$2
1.10 ! moko 4962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4963: $as_echo_n "checking for $ac_word... " >&6; }
! 4964: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
! 4965: $as_echo_n "(cached) " >&6
1.8 moko 4966: else
4967: if test -n "$ac_ct_DUMPBIN"; then
4968: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4969: else
4970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971: for as_dir in $PATH
4972: do
4973: IFS=$as_save_IFS
4974: test -z "$as_dir" && as_dir=.
1.10 ! moko 4975: for ac_exec_ext in '' $ac_executable_extensions; do
! 4976: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 4977: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.10 ! moko 4978: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 4979: break 2
4980: fi
4981: done
1.10 ! moko 4982: done
! 4983: IFS=$as_save_IFS
1.1 misha 4984:
4985: fi
1.8 moko 4986: fi
4987: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4988: if test -n "$ac_ct_DUMPBIN"; then
1.10 ! moko 4989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
! 4990: $as_echo "$ac_ct_DUMPBIN" >&6; }
1.1 misha 4991: else
1.10 ! moko 4992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4993: $as_echo "no" >&6; }
1.1 misha 4994: fi
4995:
1.10 ! moko 4996:
1.8 moko 4997: test -n "$ac_ct_DUMPBIN" && break
4998: done
4999:
1.10 ! moko 5000: if test "x$ac_ct_DUMPBIN" = x; then
! 5001: DUMPBIN=":"
! 5002: else
! 5003: case $cross_compiling:$ac_tool_warned in
! 5004: yes:)
! 5005: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5006: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5007: ac_tool_warned=yes ;;
! 5008: esac
! 5009: DUMPBIN=$ac_ct_DUMPBIN
! 5010: fi
1.1 misha 5011: fi
5012:
1.8 moko 5013: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5014: *COFF*)
5015: DUMPBIN="$DUMPBIN -symbols"
5016: ;;
5017: *)
5018: DUMPBIN=:
5019: ;;
5020: esac
5021: fi
5022:
5023: if test "$DUMPBIN" != ":"; then
5024: NM="$DUMPBIN"
5025: fi
5026: fi
5027: test -z "$NM" && NM=nm
5028:
5029:
5030:
5031:
5032:
5033:
1.10 ! moko 5034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
! 5035: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
! 5036: if test "${lt_cv_nm_interface+set}" = set; then :
! 5037: $as_echo_n "(cached) " >&6
1.8 moko 5038: else
5039: lt_cv_nm_interface="BSD nm"
5040: echo "int some_variable = 0;" > conftest.$ac_ext
5041: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5042: (eval "$ac_compile" 2>conftest.err)
5043: cat conftest.err >&5
5044: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5045: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5046: cat conftest.err >&5
5047: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5048: cat conftest.out >&5
5049: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5050: lt_cv_nm_interface="MS dumpbin"
5051: fi
5052: rm -f conftest*
5053: fi
1.10 ! moko 5054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
! 5055: $as_echo "$lt_cv_nm_interface" >&6; }
1.8 moko 5056:
1.10 ! moko 5057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 5058: $as_echo_n "checking whether ln -s works... " >&6; }
1.8 moko 5059: LN_S=$as_ln_s
5060: if test "$LN_S" = "ln -s"; then
1.10 ! moko 5061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5062: $as_echo "yes" >&6; }
1.8 moko 5063: else
1.10 ! moko 5064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 5065: $as_echo "no, using $LN_S" >&6; }
1.8 moko 5066: fi
5067:
5068: # find the maximum length of command line arguments
1.10 ! moko 5069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
! 5070: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
! 5071: if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
! 5072: $as_echo_n "(cached) " >&6
1.8 moko 5073: else
5074: i=0
5075: teststring="ABCD"
5076:
5077: case $build_os in
5078: msdosdjgpp*)
5079: # On DJGPP, this test can blow up pretty badly due to problems in libc
5080: # (any single argument exceeding 2000 bytes causes a buffer overrun
5081: # during glob expansion). Even if it were fixed, the result of this
5082: # check would be larger than it should be.
5083: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5084: ;;
5085:
5086: gnu*)
5087: # Under GNU Hurd, this test is not required because there is
5088: # no limit to the length of command line arguments.
5089: # Libtool will interpret -1 as no limit whatsoever
5090: lt_cv_sys_max_cmd_len=-1;
5091: ;;
5092:
5093: cygwin* | mingw* | cegcc*)
5094: # On Win9x/ME, this test blows up -- it succeeds, but takes
5095: # about 5 minutes as the teststring grows exponentially.
5096: # Worse, since 9x/ME are not pre-emptively multitasking,
5097: # you end up with a "frozen" computer, even though with patience
5098: # the test eventually succeeds (with a max line length of 256k).
5099: # Instead, let's just punt: use the minimum linelength reported by
5100: # all of the supported platforms: 8192 (on NT/2K/XP).
5101: lt_cv_sys_max_cmd_len=8192;
5102: ;;
5103:
5104: mint*)
5105: # On MiNT this can take a long time and run out of memory.
5106: lt_cv_sys_max_cmd_len=8192;
5107: ;;
5108:
5109: amigaos*)
5110: # On AmigaOS with pdksh, this test takes hours, literally.
5111: # So we just punt and use a minimum line length of 8192.
5112: lt_cv_sys_max_cmd_len=8192;
5113: ;;
5114:
5115: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5116: # This has been around since 386BSD, at least. Likely further.
5117: if test -x /sbin/sysctl; then
5118: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5119: elif test -x /usr/sbin/sysctl; then
5120: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5121: else
5122: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5123: fi
5124: # And add a safety zone
5125: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5126: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5127: ;;
5128:
5129: interix*)
5130: # We know the value 262144 and hardcode it with a safety zone (like BSD)
5131: lt_cv_sys_max_cmd_len=196608
5132: ;;
5133:
5134: os2*)
5135: # The test takes a long time on OS/2.
5136: lt_cv_sys_max_cmd_len=8192
5137: ;;
5138:
5139: osf*)
5140: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5141: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5142: # nice to cause kernel panics so lets avoid the loop below.
5143: # First set a reasonable default.
5144: lt_cv_sys_max_cmd_len=16384
5145: #
5146: if test -x /sbin/sysconfig; then
5147: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5148: *1*) lt_cv_sys_max_cmd_len=-1 ;;
5149: esac
5150: fi
5151: ;;
5152: sco3.2v5*)
5153: lt_cv_sys_max_cmd_len=102400
5154: ;;
5155: sysv5* | sco5v6* | sysv4.2uw2*)
5156: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5157: if test -n "$kargmax"; then
5158: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5159: else
5160: lt_cv_sys_max_cmd_len=32768
5161: fi
5162: ;;
5163: *)
5164: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5165: if test -n "$lt_cv_sys_max_cmd_len"; then
5166: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5167: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5168: else
5169: # Make teststring a little bigger before we do anything with it.
5170: # a 1K string should be a reasonable start.
5171: for i in 1 2 3 4 5 6 7 8 ; do
5172: teststring=$teststring$teststring
5173: done
5174: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5175: # If test is not a shell built-in, we'll probably end up computing a
5176: # maximum length that is only half of the actual maximum length, but
5177: # we can't tell.
5178: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5179: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5180: test $i != 17 # 1/2 MB should be enough
5181: do
5182: i=`expr $i + 1`
5183: teststring=$teststring$teststring
5184: done
5185: # Only check the string length outside the loop.
5186: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5187: teststring=
5188: # Add a significant safety factor because C++ compilers can tack on
5189: # massive amounts of additional arguments before passing them to the
5190: # linker. It appears as though 1/2 is a usable value.
5191: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5192: fi
5193: ;;
5194: esac
5195:
5196: fi
5197:
5198: if test -n $lt_cv_sys_max_cmd_len ; then
1.10 ! moko 5199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
! 5200: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1.8 moko 5201: else
1.10 ! moko 5202: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
! 5203: $as_echo "none" >&6; }
1.8 moko 5204: fi
5205: max_cmd_len=$lt_cv_sys_max_cmd_len
5206:
5207:
5208:
5209:
5210:
5211:
5212: : ${CP="cp -f"}
5213: : ${MV="mv -f"}
5214: : ${RM="rm -f"}
5215:
1.10 ! moko 5216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
! 5217: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1.8 moko 5218: # Try some XSI features
5219: xsi_shell=no
5220: ( _lt_dummy="a/b/c"
5221: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5222: = c,a/b,b/c, \
5223: && eval 'test $(( 1 + 1 )) -eq 2 \
5224: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5225: && xsi_shell=yes
1.10 ! moko 5226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
! 5227: $as_echo "$xsi_shell" >&6; }
1.8 moko 5228:
5229:
1.10 ! moko 5230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
! 5231: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1.8 moko 5232: lt_shell_append=no
5233: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5234: >/dev/null 2>&1 \
5235: && lt_shell_append=yes
1.10 ! moko 5236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
! 5237: $as_echo "$lt_shell_append" >&6; }
1.8 moko 5238:
5239:
5240: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5241: lt_unset=unset
5242: else
5243: lt_unset=false
5244: fi
5245:
5246:
5247:
5248:
5249:
5250: # test EBCDIC or ASCII
5251: case `echo X|tr X '\101'` in
5252: A) # ASCII based system
5253: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5254: lt_SP2NL='tr \040 \012'
5255: lt_NL2SP='tr \015\012 \040\040'
5256: ;;
5257: *) # EBCDIC based system
5258: lt_SP2NL='tr \100 \n'
5259: lt_NL2SP='tr \r\n \100\100'
5260: ;;
5261: esac
5262:
5263:
5264:
5265:
5266:
5267:
5268:
5269:
5270:
1.10 ! moko 5271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 5272: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
! 5273: if test "${lt_cv_to_host_file_cmd+set}" = set; then :
! 5274: $as_echo_n "(cached) " >&6
1.8 moko 5275: else
5276: case $host in
5277: *-*-mingw* )
5278: case $build in
5279: *-*-mingw* ) # actually msys
5280: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5281: ;;
5282: *-*-cygwin* )
5283: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5284: ;;
5285: * ) # otherwise, assume *nix
5286: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5287: ;;
5288: esac
5289: ;;
5290: *-*-cygwin* )
5291: case $build in
5292: *-*-mingw* ) # actually msys
5293: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5294: ;;
5295: *-*-cygwin* )
5296: lt_cv_to_host_file_cmd=func_convert_file_noop
5297: ;;
5298: * ) # otherwise, assume *nix
5299: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5300: ;;
5301: esac
5302: ;;
5303: * ) # unhandled hosts (and "normal" native builds)
5304: lt_cv_to_host_file_cmd=func_convert_file_noop
5305: ;;
5306: esac
5307:
5308: fi
5309:
5310: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.10 ! moko 5311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 5312: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
1.8 moko 5313:
5314:
5315:
5316:
5317:
1.10 ! moko 5318: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 5319: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
! 5320: if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
! 5321: $as_echo_n "(cached) " >&6
1.8 moko 5322: else
5323: #assume ordinary cross tools, or native build.
5324: lt_cv_to_tool_file_cmd=func_convert_file_noop
5325: case $host in
5326: *-*-mingw* )
5327: case $build in
5328: *-*-mingw* ) # actually msys
5329: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5330: ;;
5331: esac
5332: ;;
5333: esac
5334:
5335: fi
5336:
5337: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.10 ! moko 5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 5339: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
1.8 moko 5340:
5341:
5342:
5343:
5344:
1.10 ! moko 5345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
! 5346: $as_echo_n "checking for $LD option to reload object files... " >&6; }
! 5347: if test "${lt_cv_ld_reload_flag+set}" = set; then :
! 5348: $as_echo_n "(cached) " >&6
1.8 moko 5349: else
5350: lt_cv_ld_reload_flag='-r'
5351: fi
1.10 ! moko 5352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
! 5353: $as_echo "$lt_cv_ld_reload_flag" >&6; }
1.8 moko 5354: reload_flag=$lt_cv_ld_reload_flag
5355: case $reload_flag in
5356: "" | " "*) ;;
5357: *) reload_flag=" $reload_flag" ;;
5358: esac
5359: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5360: case $host_os in
5361: cygwin* | mingw* | pw32* | cegcc*)
5362: if test "$GCC" != yes; then
5363: reload_cmds=false
5364: fi
5365: ;;
5366: darwin*)
5367: if test "$GCC" = yes; then
5368: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5369: else
5370: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5371: fi
5372: ;;
5373: esac
5374:
5375:
5376:
5377:
5378:
5379:
5380:
5381:
5382:
5383: if test -n "$ac_tool_prefix"; then
5384: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5385: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.10 ! moko 5386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5387: $as_echo_n "checking for $ac_word... " >&6; }
! 5388: if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
! 5389: $as_echo_n "(cached) " >&6
1.8 moko 5390: else
5391: if test -n "$OBJDUMP"; then
5392: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5393: else
5394: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395: for as_dir in $PATH
5396: do
5397: IFS=$as_save_IFS
5398: test -z "$as_dir" && as_dir=.
1.10 ! moko 5399: for ac_exec_ext in '' $ac_executable_extensions; do
! 5400: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5401: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.10 ! moko 5402: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5403: break 2
5404: fi
5405: done
1.10 ! moko 5406: done
! 5407: IFS=$as_save_IFS
1.8 moko 5408:
5409: fi
5410: fi
5411: OBJDUMP=$ac_cv_prog_OBJDUMP
5412: if test -n "$OBJDUMP"; then
1.10 ! moko 5413: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 5414: $as_echo "$OBJDUMP" >&6; }
1.8 moko 5415: else
1.10 ! moko 5416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5417: $as_echo "no" >&6; }
1.8 moko 5418: fi
5419:
1.10 ! moko 5420:
1.8 moko 5421: fi
5422: if test -z "$ac_cv_prog_OBJDUMP"; then
5423: ac_ct_OBJDUMP=$OBJDUMP
5424: # Extract the first word of "objdump", so it can be a program name with args.
5425: set dummy objdump; ac_word=$2
1.10 ! moko 5426: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5427: $as_echo_n "checking for $ac_word... " >&6; }
! 5428: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
! 5429: $as_echo_n "(cached) " >&6
1.8 moko 5430: else
5431: if test -n "$ac_ct_OBJDUMP"; then
5432: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5433: else
5434: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435: for as_dir in $PATH
5436: do
5437: IFS=$as_save_IFS
5438: test -z "$as_dir" && as_dir=.
1.10 ! moko 5439: for ac_exec_ext in '' $ac_executable_extensions; do
! 5440: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5441: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.10 ! moko 5442: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5443: break 2
5444: fi
5445: done
1.10 ! moko 5446: done
! 5447: IFS=$as_save_IFS
1.8 moko 5448:
5449: fi
5450: fi
5451: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5452: if test -n "$ac_ct_OBJDUMP"; then
1.10 ! moko 5453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 5454: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.8 moko 5455: else
1.10 ! moko 5456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5457: $as_echo "no" >&6; }
1.8 moko 5458: fi
5459:
1.10 ! moko 5460: if test "x$ac_ct_OBJDUMP" = x; then
! 5461: OBJDUMP="false"
! 5462: else
! 5463: case $cross_compiling:$ac_tool_warned in
! 5464: yes:)
! 5465: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5466: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5467: ac_tool_warned=yes ;;
! 5468: esac
! 5469: OBJDUMP=$ac_ct_OBJDUMP
! 5470: fi
1.8 moko 5471: else
5472: OBJDUMP="$ac_cv_prog_OBJDUMP"
5473: fi
5474:
5475: test -z "$OBJDUMP" && OBJDUMP=objdump
5476:
5477:
5478:
5479:
5480:
5481:
5482:
5483:
5484:
1.10 ! moko 5485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
! 5486: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
! 5487: if test "${lt_cv_deplibs_check_method+set}" = set; then :
! 5488: $as_echo_n "(cached) " >&6
1.1 misha 5489: else
5490: lt_cv_file_magic_cmd='$MAGIC_CMD'
5491: lt_cv_file_magic_test_file=
5492: lt_cv_deplibs_check_method='unknown'
5493: # Need to set the preceding variable on all platforms that support
5494: # interlibrary dependencies.
5495: # 'none' -- dependencies not supported.
5496: # `unknown' -- same as none, but documents that we really don't know.
5497: # 'pass_all' -- all dependencies passed with no checks.
5498: # 'test_compile' -- check by making test program.
5499: # 'file_magic [[regex]]' -- check by looking for files in library path
1.8 moko 5500: # which responds to the $file_magic_cmd with a given extended regex.
1.1 misha 5501: # If you have `file' or equivalent on your system and you're not sure
5502: # whether `pass_all' will *always* work, you probably want this one.
5503:
5504: case $host_os in
1.8 moko 5505: aix[4-9]*)
1.1 misha 5506: lt_cv_deplibs_check_method=pass_all
5507: ;;
5508:
5509: beos*)
5510: lt_cv_deplibs_check_method=pass_all
5511: ;;
5512:
1.8 moko 5513: bsdi[45]*)
1.1 misha 5514: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5515: lt_cv_file_magic_cmd='/usr/bin/file -L'
5516: lt_cv_file_magic_test_file=/shlib/libc.so
5517: ;;
5518:
1.8 moko 5519: cygwin*)
5520: # func_win32_libid is a shell function defined in ltmain.sh
5521: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522: lt_cv_file_magic_cmd='func_win32_libid'
5523: ;;
5524:
5525: mingw* | pw32*)
5526: # Base MSYS/MinGW do not provide the 'file' command needed by
5527: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5528: # unless we find 'file', for example because we are cross-compiling.
5529: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5530: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5531: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5532: lt_cv_file_magic_cmd='func_win32_libid'
5533: else
5534: # Keep this pattern in sync with the one in func_win32_libid.
5535: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5536: lt_cv_file_magic_cmd='$OBJDUMP -f'
5537: fi
5538: ;;
5539:
5540: cegcc*)
5541: # use the weaker test based on 'objdump'. See mingw*.
5542: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1 misha 5543: lt_cv_file_magic_cmd='$OBJDUMP -f'
5544: ;;
5545:
5546: darwin* | rhapsody*)
1.8 moko 5547: lt_cv_deplibs_check_method=pass_all
1.1 misha 5548: ;;
5549:
1.8 moko 5550: freebsd* | dragonfly*)
5551: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1 misha 5552: case $host_cpu in
5553: i*86 )
5554: # Not sure whether the presence of OpenBSD here was a mistake.
5555: # Let's accept both of them until this is cleared up.
1.8 moko 5556: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1 misha 5557: lt_cv_file_magic_cmd=/usr/bin/file
5558: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5559: ;;
5560: esac
5561: else
5562: lt_cv_deplibs_check_method=pass_all
5563: fi
5564: ;;
5565:
5566: gnu*)
5567: lt_cv_deplibs_check_method=pass_all
5568: ;;
5569:
1.8 moko 5570: haiku*)
5571: lt_cv_deplibs_check_method=pass_all
1.1 misha 5572: ;;
5573:
1.8 moko 5574: hpux10.20* | hpux11*)
5575: lt_cv_file_magic_cmd=/usr/bin/file
5576: case $host_cpu in
5577: ia64*)
5578: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5579: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5580: ;;
5581: hppa*64*)
5582: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5583: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.1 misha 5584: ;;
5585: *)
1.8 moko 5586: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5587: lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.1 misha 5588: ;;
5589: esac
1.8 moko 5590: ;;
5591:
5592: interix[3-9]*)
5593: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5594: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5595: ;;
5596:
5597: irix5* | irix6* | nonstopux*)
5598: case $LD in
5599: *-32|*"-32 ") libmagic=32-bit;;
5600: *-n32|*"-n32 ") libmagic=N32;;
5601: *-64|*"-64 ") libmagic=64-bit;;
5602: *) libmagic=never-match;;
5603: esac
1.1 misha 5604: lt_cv_deplibs_check_method=pass_all
5605: ;;
5606:
1.8 moko 5607: # This must be glibc/ELF.
5608: linux* | k*bsd*-gnu | kopensolaris*-gnu)
5609: lt_cv_deplibs_check_method=pass_all
1.1 misha 5610: ;;
5611:
5612: netbsd*)
1.8 moko 5613: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5614: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 5615: else
1.8 moko 5616: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1 misha 5617: fi
5618: ;;
5619:
5620: newos6*)
5621: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5622: lt_cv_file_magic_cmd=/usr/bin/file
5623: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5624: ;;
5625:
1.8 moko 5626: *nto* | *qnx*)
5627: lt_cv_deplibs_check_method=pass_all
5628: ;;
5629:
1.1 misha 5630: openbsd*)
1.8 moko 5631: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5632: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1 misha 5633: else
1.8 moko 5634: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1 misha 5635: fi
5636: ;;
5637:
5638: osf3* | osf4* | osf5*)
5639: lt_cv_deplibs_check_method=pass_all
5640: ;;
5641:
1.8 moko 5642: rdos*)
1.1 misha 5643: lt_cv_deplibs_check_method=pass_all
5644: ;;
5645:
5646: solaris*)
5647: lt_cv_deplibs_check_method=pass_all
5648: ;;
5649:
1.8 moko 5650: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.1 misha 5651: lt_cv_deplibs_check_method=pass_all
5652: ;;
5653:
1.8 moko 5654: sysv4 | sysv4.3*)
1.1 misha 5655: case $host_vendor in
5656: motorola)
5657: 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]'
5658: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5659: ;;
5660: ncr)
5661: lt_cv_deplibs_check_method=pass_all
5662: ;;
5663: sequent)
5664: lt_cv_file_magic_cmd='/bin/file'
5665: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5666: ;;
5667: sni)
5668: lt_cv_file_magic_cmd='/bin/file'
5669: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5670: lt_cv_file_magic_test_file=/lib/libc.so
5671: ;;
5672: siemens)
5673: lt_cv_deplibs_check_method=pass_all
5674: ;;
1.8 moko 5675: pc)
5676: lt_cv_deplibs_check_method=pass_all
5677: ;;
1.1 misha 5678: esac
5679: ;;
1.8 moko 5680:
5681: tpf*)
5682: lt_cv_deplibs_check_method=pass_all
5683: ;;
1.1 misha 5684: esac
5685:
5686: fi
1.10 ! moko 5687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 5688: $as_echo "$lt_cv_deplibs_check_method" >&6; }
1.8 moko 5689:
5690: file_magic_glob=
5691: want_nocaseglob=no
5692: if test "$build" = "$host"; then
5693: case $host_os in
5694: mingw* | pw32*)
5695: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5696: want_nocaseglob=yes
5697: else
5698: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5699: fi
5700: ;;
5701: esac
5702: fi
5703:
1.1 misha 5704: file_magic_cmd=$lt_cv_file_magic_cmd
5705: deplibs_check_method=$lt_cv_deplibs_check_method
1.8 moko 5706: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5707:
5708:
1.1 misha 5709:
5710:
5711:
5712:
5713:
5714:
5715:
5716:
1.8 moko 5717:
5718:
5719:
5720:
5721:
5722:
5723:
5724:
5725:
5726:
5727:
5728:
5729: if test -n "$ac_tool_prefix"; then
5730: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5731: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.10 ! moko 5732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5733: $as_echo_n "checking for $ac_word... " >&6; }
! 5734: if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
! 5735: $as_echo_n "(cached) " >&6
1.8 moko 5736: else
5737: if test -n "$DLLTOOL"; then
5738: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5739: else
5740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741: for as_dir in $PATH
5742: do
5743: IFS=$as_save_IFS
5744: test -z "$as_dir" && as_dir=.
1.10 ! moko 5745: for ac_exec_ext in '' $ac_executable_extensions; do
! 5746: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5747: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.10 ! moko 5748: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5749: break 2
5750: fi
5751: done
1.10 ! moko 5752: done
! 5753: IFS=$as_save_IFS
1.8 moko 5754:
5755: fi
5756: fi
5757: DLLTOOL=$ac_cv_prog_DLLTOOL
5758: if test -n "$DLLTOOL"; then
1.10 ! moko 5759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 5760: $as_echo "$DLLTOOL" >&6; }
1.8 moko 5761: else
1.10 ! moko 5762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5763: $as_echo "no" >&6; }
1.8 moko 5764: fi
5765:
1.10 ! moko 5766:
1.8 moko 5767: fi
5768: if test -z "$ac_cv_prog_DLLTOOL"; then
5769: ac_ct_DLLTOOL=$DLLTOOL
5770: # Extract the first word of "dlltool", so it can be a program name with args.
5771: set dummy dlltool; ac_word=$2
1.10 ! moko 5772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5773: $as_echo_n "checking for $ac_word... " >&6; }
! 5774: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
! 5775: $as_echo_n "(cached) " >&6
1.1 misha 5776: else
1.8 moko 5777: if test -n "$ac_ct_DLLTOOL"; then
5778: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5779: else
5780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781: for as_dir in $PATH
5782: do
5783: IFS=$as_save_IFS
5784: test -z "$as_dir" && as_dir=.
1.10 ! moko 5785: for ac_exec_ext in '' $ac_executable_extensions; do
! 5786: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5787: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.10 ! moko 5788: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5789: break 2
5790: fi
5791: done
1.10 ! moko 5792: done
! 5793: IFS=$as_save_IFS
1.8 moko 5794:
5795: fi
5796: fi
5797: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5798: if test -n "$ac_ct_DLLTOOL"; then
1.10 ! moko 5799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 5800: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.8 moko 5801: else
1.10 ! moko 5802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5803: $as_echo "no" >&6; }
1.8 moko 5804: fi
5805:
1.10 ! moko 5806: if test "x$ac_ct_DLLTOOL" = x; then
! 5807: DLLTOOL="false"
! 5808: else
! 5809: case $cross_compiling:$ac_tool_warned in
! 5810: yes:)
! 5811: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5812: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5813: ac_tool_warned=yes ;;
! 5814: esac
! 5815: DLLTOOL=$ac_ct_DLLTOOL
! 5816: fi
1.8 moko 5817: else
5818: DLLTOOL="$ac_cv_prog_DLLTOOL"
5819: fi
5820:
5821: test -z "$DLLTOOL" && DLLTOOL=dlltool
5822:
5823:
5824:
5825:
1.1 misha 5826:
5827:
5828:
5829:
5830:
5831:
1.10 ! moko 5832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 5833: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
! 5834: if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
! 5835: $as_echo_n "(cached) " >&6
1.8 moko 5836: else
5837: lt_cv_sharedlib_from_linklib_cmd='unknown'
1.1 misha 5838:
5839: case $host_os in
1.8 moko 5840: cygwin* | mingw* | pw32* | cegcc*)
5841: # two different shell functions defined in ltmain.sh
5842: # decide which to use based on capabilities of $DLLTOOL
5843: case `$DLLTOOL --help 2>&1` in
5844: *--identify-strict*)
5845: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5846: ;;
5847: *)
5848: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5849: ;;
5850: esac
1.1 misha 5851: ;;
1.8 moko 5852: *)
5853: # fallback: assume linklib IS sharedlib
5854: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
1.1 misha 5855: ;;
5856: esac
5857:
5858: fi
1.10 ! moko 5859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 5860: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.8 moko 5861: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5862: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
1.1 misha 5863:
5864:
5865:
5866:
5867:
5868:
5869:
5870:
1.8 moko 5871: if test -n "$ac_tool_prefix"; then
5872: for ac_prog in ar
5873: do
5874: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.10 ! moko 5876: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5877: $as_echo_n "checking for $ac_word... " >&6; }
! 5878: if test "${ac_cv_prog_AR+set}" = set; then :
! 5879: $as_echo_n "(cached) " >&6
1.8 moko 5880: else
5881: if test -n "$AR"; then
5882: ac_cv_prog_AR="$AR" # Let the user override the test.
5883: else
5884: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885: for as_dir in $PATH
5886: do
5887: IFS=$as_save_IFS
5888: test -z "$as_dir" && as_dir=.
1.10 ! moko 5889: for ac_exec_ext in '' $ac_executable_extensions; do
! 5890: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5891: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.10 ! moko 5892: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5893: break 2
1.1 misha 5894: fi
1.8 moko 5895: done
1.10 ! moko 5896: done
! 5897: IFS=$as_save_IFS
1.1 misha 5898:
5899: fi
5900: fi
1.8 moko 5901: AR=$ac_cv_prog_AR
5902: if test -n "$AR"; then
1.10 ! moko 5903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 5904: $as_echo "$AR" >&6; }
1.1 misha 5905: else
1.10 ! moko 5906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5907: $as_echo "no" >&6; }
1.1 misha 5908: fi
5909:
1.10 ! moko 5910:
1.8 moko 5911: test -n "$AR" && break
5912: done
1.1 misha 5913: fi
1.8 moko 5914: if test -z "$AR"; then
5915: ac_ct_AR=$AR
5916: for ac_prog in ar
5917: do
5918: # Extract the first word of "$ac_prog", so it can be a program name with args.
5919: set dummy $ac_prog; ac_word=$2
1.10 ! moko 5920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5921: $as_echo_n "checking for $ac_word... " >&6; }
! 5922: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
! 5923: $as_echo_n "(cached) " >&6
1.1 misha 5924: else
1.8 moko 5925: if test -n "$ac_ct_AR"; then
5926: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5927: else
5928: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929: for as_dir in $PATH
1.1 misha 5930: do
1.8 moko 5931: IFS=$as_save_IFS
5932: test -z "$as_dir" && as_dir=.
1.10 ! moko 5933: for ac_exec_ext in '' $ac_executable_extensions; do
! 5934: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 5935: ac_cv_prog_ac_ct_AR="$ac_prog"
1.10 ! moko 5936: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 5937: break 2
1.1 misha 5938: fi
1.8 moko 5939: done
1.10 ! moko 5940: done
! 5941: IFS=$as_save_IFS
1.1 misha 5942:
5943: fi
5944: fi
1.8 moko 5945: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5946: if test -n "$ac_ct_AR"; then
1.10 ! moko 5947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 5948: $as_echo "$ac_ct_AR" >&6; }
1.1 misha 5949: else
1.10 ! moko 5950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5951: $as_echo "no" >&6; }
1.1 misha 5952: fi
5953:
1.10 ! moko 5954:
1.8 moko 5955: test -n "$ac_ct_AR" && break
1.1 misha 5956: done
1.8 moko 5957:
1.10 ! moko 5958: if test "x$ac_ct_AR" = x; then
! 5959: AR="false"
! 5960: else
! 5961: case $cross_compiling:$ac_tool_warned in
! 5962: yes:)
! 5963: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5964: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5965: ac_tool_warned=yes ;;
! 5966: esac
! 5967: AR=$ac_ct_AR
! 5968: fi
1.1 misha 5969: fi
5970:
1.8 moko 5971: : ${AR=ar}
5972: : ${AR_FLAGS=cru}
5973:
1.1 misha 5974:
5975:
5976:
5977:
5978:
5979:
5980:
5981:
5982:
5983:
1.10 ! moko 5984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 5985: $as_echo_n "checking for archiver @FILE support... " >&6; }
! 5986: if test "${lt_cv_ar_at_file+set}" = set; then :
! 5987: $as_echo_n "(cached) " >&6
1.1 misha 5988: else
1.8 moko 5989: lt_cv_ar_at_file=no
1.10 ! moko 5990: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 5991: /* end confdefs.h. */
5992:
5993: int
5994: main ()
5995: {
5996:
5997: ;
5998: return 0;
5999: }
6000: _ACEOF
1.10 ! moko 6001: if ac_fn_c_try_compile "$LINENO"; then :
1.8 moko 6002: echo conftest.$ac_objext > conftest.lst
6003: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.10 ! moko 6004: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.8 moko 6005: (eval $lt_ar_try) 2>&5
6006: ac_status=$?
1.10 ! moko 6007: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6008: test $ac_status = 0; }
1.8 moko 6009: if test "$ac_status" -eq 0; then
6010: # Ensure the archiver fails upon bogus file names.
6011: rm -f conftest.$ac_objext libconftest.a
1.10 ! moko 6012: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.8 moko 6013: (eval $lt_ar_try) 2>&5
6014: ac_status=$?
1.10 ! moko 6015: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6016: test $ac_status = 0; }
1.8 moko 6017: if test "$ac_status" -ne 0; then
6018: lt_cv_ar_at_file=@
6019: fi
6020: fi
6021: rm -f conftest.* libconftest.a
6022:
1.1 misha 6023: fi
1.10 ! moko 6024: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 6025:
1.8 moko 6026: fi
1.10 ! moko 6027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 6028: $as_echo "$lt_cv_ar_at_file" >&6; }
1.8 moko 6029:
6030: if test "x$lt_cv_ar_at_file" = xno; then
6031: archiver_list_spec=
1.1 misha 6032: else
1.8 moko 6033: archiver_list_spec=$lt_cv_ar_at_file
1.1 misha 6034: fi
6035:
6036:
6037:
1.8 moko 6038:
6039:
6040:
6041:
6042: if test -n "$ac_tool_prefix"; then
6043: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6044: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.10 ! moko 6045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6046: $as_echo_n "checking for $ac_word... " >&6; }
! 6047: if test "${ac_cv_prog_STRIP+set}" = set; then :
! 6048: $as_echo_n "(cached) " >&6
1.8 moko 6049: else
6050: if test -n "$STRIP"; then
6051: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6052: else
6053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054: for as_dir in $PATH
6055: do
6056: IFS=$as_save_IFS
6057: test -z "$as_dir" && as_dir=.
1.10 ! moko 6058: for ac_exec_ext in '' $ac_executable_extensions; do
! 6059: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6060: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.10 ! moko 6061: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6062: break 2
6063: fi
6064: done
1.10 ! moko 6065: done
! 6066: IFS=$as_save_IFS
1.8 moko 6067:
6068: fi
6069: fi
6070: STRIP=$ac_cv_prog_STRIP
6071: if test -n "$STRIP"; then
1.10 ! moko 6072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 6073: $as_echo "$STRIP" >&6; }
1.1 misha 6074: else
1.10 ! moko 6075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6076: $as_echo "no" >&6; }
1.1 misha 6077: fi
6078:
1.10 ! moko 6079:
1.1 misha 6080: fi
1.8 moko 6081: if test -z "$ac_cv_prog_STRIP"; then
6082: ac_ct_STRIP=$STRIP
6083: # Extract the first word of "strip", so it can be a program name with args.
6084: set dummy strip; ac_word=$2
1.10 ! moko 6085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6086: $as_echo_n "checking for $ac_word... " >&6; }
! 6087: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
! 6088: $as_echo_n "(cached) " >&6
1.1 misha 6089: else
1.8 moko 6090: if test -n "$ac_ct_STRIP"; then
6091: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 misha 6092: else
1.8 moko 6093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094: for as_dir in $PATH
6095: do
6096: IFS=$as_save_IFS
6097: test -z "$as_dir" && as_dir=.
1.10 ! moko 6098: for ac_exec_ext in '' $ac_executable_extensions; do
! 6099: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6100: ac_cv_prog_ac_ct_STRIP="strip"
1.10 ! moko 6101: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6102: break 2
6103: fi
6104: done
1.10 ! moko 6105: done
! 6106: IFS=$as_save_IFS
1.1 misha 6107:
6108: fi
6109: fi
1.8 moko 6110: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6111: if test -n "$ac_ct_STRIP"; then
1.10 ! moko 6112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 6113: $as_echo "$ac_ct_STRIP" >&6; }
1.8 moko 6114: else
1.10 ! moko 6115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6116: $as_echo "no" >&6; }
1.1 misha 6117: fi
6118:
1.10 ! moko 6119: if test "x$ac_ct_STRIP" = x; then
! 6120: STRIP=":"
! 6121: else
! 6122: case $cross_compiling:$ac_tool_warned in
! 6123: yes:)
! 6124: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6125: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6126: ac_tool_warned=yes ;;
! 6127: esac
! 6128: STRIP=$ac_ct_STRIP
! 6129: fi
1.8 moko 6130: else
6131: STRIP="$ac_cv_prog_STRIP"
1.1 misha 6132: fi
6133:
1.8 moko 6134: test -z "$STRIP" && STRIP=:
1.1 misha 6135:
6136:
6137:
6138:
6139:
6140:
1.8 moko 6141: if test -n "$ac_tool_prefix"; then
6142: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.10 ! moko 6144: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6145: $as_echo_n "checking for $ac_word... " >&6; }
! 6146: if test "${ac_cv_prog_RANLIB+set}" = set; then :
! 6147: $as_echo_n "(cached) " >&6
1.1 misha 6148: else
1.8 moko 6149: if test -n "$RANLIB"; then
6150: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 misha 6151: else
1.8 moko 6152: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153: for as_dir in $PATH
6154: do
6155: IFS=$as_save_IFS
6156: test -z "$as_dir" && as_dir=.
1.10 ! moko 6157: for ac_exec_ext in '' $ac_executable_extensions; do
! 6158: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6159: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.10 ! moko 6160: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6161: break 2
6162: fi
6163: done
1.10 ! moko 6164: done
! 6165: IFS=$as_save_IFS
1.1 misha 6166:
6167: fi
6168: fi
1.8 moko 6169: RANLIB=$ac_cv_prog_RANLIB
6170: if test -n "$RANLIB"; then
1.10 ! moko 6171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 6172: $as_echo "$RANLIB" >&6; }
1.8 moko 6173: else
1.10 ! moko 6174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6175: $as_echo "no" >&6; }
1.8 moko 6176: fi
1.1 misha 6177:
1.10 ! moko 6178:
1.1 misha 6179: fi
1.8 moko 6180: if test -z "$ac_cv_prog_RANLIB"; then
6181: ac_ct_RANLIB=$RANLIB
6182: # Extract the first word of "ranlib", so it can be a program name with args.
6183: set dummy ranlib; ac_word=$2
1.10 ! moko 6184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6185: $as_echo_n "checking for $ac_word... " >&6; }
! 6186: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
! 6187: $as_echo_n "(cached) " >&6
1.8 moko 6188: else
6189: if test -n "$ac_ct_RANLIB"; then
6190: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6191: else
6192: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193: for as_dir in $PATH
6194: do
6195: IFS=$as_save_IFS
6196: test -z "$as_dir" && as_dir=.
1.10 ! moko 6197: for ac_exec_ext in '' $ac_executable_extensions; do
! 6198: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6199: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.10 ! moko 6200: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6201: break 2
6202: fi
6203: done
1.10 ! moko 6204: done
! 6205: IFS=$as_save_IFS
1.1 misha 6206:
1.8 moko 6207: fi
1.1 misha 6208: fi
1.8 moko 6209: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6210: if test -n "$ac_ct_RANLIB"; then
1.10 ! moko 6211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 6212: $as_echo "$ac_ct_RANLIB" >&6; }
1.1 misha 6213: else
1.10 ! moko 6214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6215: $as_echo "no" >&6; }
1.1 misha 6216: fi
6217:
1.10 ! moko 6218: if test "x$ac_ct_RANLIB" = x; then
! 6219: RANLIB=":"
! 6220: else
! 6221: case $cross_compiling:$ac_tool_warned in
! 6222: yes:)
! 6223: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6224: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6225: ac_tool_warned=yes ;;
! 6226: esac
! 6227: RANLIB=$ac_ct_RANLIB
! 6228: fi
1.1 misha 6229: else
1.8 moko 6230: RANLIB="$ac_cv_prog_RANLIB"
1.1 misha 6231: fi
6232:
1.8 moko 6233: test -z "$RANLIB" && RANLIB=:
6234:
6235:
6236:
6237:
6238:
6239:
6240: # Determine commands to create old-style static archives.
6241: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6242: old_postinstall_cmds='chmod 644 $oldlib'
6243: old_postuninstall_cmds=
1.1 misha 6244:
1.8 moko 6245: if test -n "$RANLIB"; then
6246: case $host_os in
6247: openbsd*)
6248: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misha 6249: ;;
1.8 moko 6250: *)
6251: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misha 6252: ;;
1.8 moko 6253: esac
6254: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6255: fi
6256:
6257: case $host_os in
6258: darwin*)
6259: lock_old_archive_extraction=yes ;;
6260: *)
6261: lock_old_archive_extraction=no ;;
1.1 misha 6262: esac
6263:
6264:
6265:
6266:
6267:
6268:
6269:
6270:
6271:
6272:
6273:
6274:
6275:
6276:
6277:
6278:
6279:
6280:
6281:
6282:
6283:
6284:
6285:
6286:
6287:
6288:
6289:
6290:
6291:
6292:
6293:
6294:
6295:
6296:
1.8 moko 6297:
6298:
6299:
6300:
6301:
6302: # If no C compiler was specified, use CC.
6303: LTCC=${LTCC-"$CC"}
6304:
6305: # If no C compiler flags were specified, use CFLAGS.
6306: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6307:
6308: # Allow CC to be a program name with arguments.
6309: compiler=$CC
6310:
6311:
6312: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.10 ! moko 6313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
! 6314: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
! 6315: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
! 6316: $as_echo_n "(cached) " >&6
1.1 misha 6317: else
6318:
1.8 moko 6319: # These are sane defaults that work on at least a few old systems.
6320: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.1 misha 6321:
1.8 moko 6322: # Character class describing NM global symbol codes.
6323: symcode='[BCDEGRST]'
1.1 misha 6324:
1.8 moko 6325: # Regexp to match symbols that can be accessed directly from C.
6326: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.1 misha 6327:
1.8 moko 6328: # Define system-specific variables.
6329: case $host_os in
6330: aix*)
6331: symcode='[BCDT]'
6332: ;;
6333: cygwin* | mingw* | pw32* | cegcc*)
6334: symcode='[ABCDGISTW]'
6335: ;;
6336: hpux*)
6337: if test "$host_cpu" = ia64; then
6338: symcode='[ABCDEGRST]'
6339: fi
6340: ;;
6341: irix* | nonstopux*)
6342: symcode='[BCDEGRST]'
6343: ;;
6344: osf*)
6345: symcode='[BCDEGQRST]'
6346: ;;
6347: solaris*)
6348: symcode='[BDRT]'
6349: ;;
6350: sco3.2v5*)
6351: symcode='[DT]'
6352: ;;
6353: sysv4.2uw2*)
6354: symcode='[DT]'
6355: ;;
6356: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6357: symcode='[ABDT]'
6358: ;;
6359: sysv4)
6360: symcode='[DFNSTU]'
6361: ;;
6362: esac
6363:
6364: # If we're using GNU nm, then use its standard symbol codes.
6365: case `$NM -V 2>&1` in
6366: *GNU* | *'with BFD'*)
6367: symcode='[ABCDGIRSTW]' ;;
6368: esac
6369:
6370: # Transform an extracted symbol line into a proper C declaration.
6371: # Some systems (esp. on ia64) link data and code symbols differently,
6372: # so use this general approach.
6373: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6374:
6375: # Transform an extracted symbol line into symbol name and symbol address
6376: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6377: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6378:
6379: # Handle CRLF in mingw tool chain
6380: opt_cr=
6381: case $build_os in
6382: mingw*)
6383: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6384: ;;
6385: esac
6386:
6387: # Try without a prefix underscore, then with it.
6388: for ac_symprfx in "" "_"; do
6389:
6390: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6391: symxfrm="\\1 $ac_symprfx\\2 \\2"
6392:
6393: # Write the raw and C identifiers.
6394: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6395: # Fake it for dumpbin and say T for any non-static function
6396: # and D for any global variable.
6397: # Also find C++ and __fastcall symbols from MSVC++,
6398: # which start with @ or ?.
6399: lt_cv_sys_global_symbol_pipe="$AWK '"\
6400: " {last_section=section; section=\$ 3};"\
6401: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6402: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6403: " \$ 0!~/External *\|/{next};"\
6404: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6405: " {if(hide[section]) next};"\
6406: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6407: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6408: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6409: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6410: " ' prfx=^$ac_symprfx"
6411: else
6412: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6413: fi
6414: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6415:
6416: # Check to see that the pipe works correctly.
6417: pipe_works=no
1.1 misha 6418:
1.8 moko 6419: rm -f conftest*
6420: cat > conftest.$ac_ext <<_LT_EOF
6421: #ifdef __cplusplus
6422: extern "C" {
6423: #endif
6424: char nm_test_var;
6425: void nm_test_func(void);
6426: void nm_test_func(void){}
6427: #ifdef __cplusplus
1.1 misha 6428: }
1.8 moko 6429: #endif
6430: int main(){nm_test_var='a';nm_test_func();return(0);}
6431: _LT_EOF
6432:
1.10 ! moko 6433: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6434: (eval $ac_compile) 2>&5
1.1 misha 6435: ac_status=$?
1.10 ! moko 6436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6437: test $ac_status = 0; }; then
1.8 moko 6438: # Now try to grab the symbols.
6439: nlist=conftest.nm
1.10 ! moko 6440: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
1.8 moko 6441: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1.1 misha 6442: ac_status=$?
1.10 ! moko 6443: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6444: test $ac_status = 0; } && test -s "$nlist"; then
1.8 moko 6445: # Try sorting and uniquifying the output.
6446: if sort "$nlist" | uniq > "$nlist"T; then
6447: mv -f "$nlist"T "$nlist"
6448: else
6449: rm -f "$nlist"T
6450: fi
6451:
6452: # Make sure that we snagged all the symbols we need.
6453: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6454: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6455: cat <<_LT_EOF > conftest.$ac_ext
6456: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6457: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6458: /* DATA imports from DLLs on WIN32 con't be const, because runtime
6459: relocations are performed -- see ld's documentation on pseudo-relocs. */
6460: # define LT_DLSYM_CONST
6461: #elif defined(__osf__)
6462: /* This system does not cope well with relocations in const data. */
6463: # define LT_DLSYM_CONST
6464: #else
6465: # define LT_DLSYM_CONST const
6466: #endif
6467:
6468: #ifdef __cplusplus
6469: extern "C" {
6470: #endif
6471:
6472: _LT_EOF
6473: # Now generate the symbol file.
6474: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6475:
6476: cat <<_LT_EOF >> conftest.$ac_ext
6477:
6478: /* The mapping between symbol names and symbols. */
6479: LT_DLSYM_CONST struct {
6480: const char *name;
6481: void *address;
6482: }
6483: lt__PROGRAM__LTX_preloaded_symbols[] =
6484: {
6485: { "@PROGRAM@", (void *) 0 },
6486: _LT_EOF
6487: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6488: cat <<\_LT_EOF >> conftest.$ac_ext
6489: {0, (void *) 0}
6490: };
6491:
6492: /* This works around a problem in FreeBSD linker */
6493: #ifdef FREEBSD_WORKAROUND
6494: static const void *lt_preloaded_setup() {
6495: return lt__PROGRAM__LTX_preloaded_symbols;
6496: }
6497: #endif
6498:
6499: #ifdef __cplusplus
6500: }
6501: #endif
6502: _LT_EOF
6503: # Now try linking the two files.
6504: mv conftest.$ac_objext conftstm.$ac_objext
6505: lt_globsym_save_LIBS=$LIBS
6506: lt_globsym_save_CFLAGS=$CFLAGS
6507: LIBS="conftstm.$ac_objext"
6508: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.10 ! moko 6509: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 6510: (eval $ac_link) 2>&5
1.1 misha 6511: ac_status=$?
1.10 ! moko 6512: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6513: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.8 moko 6514: pipe_works=yes
6515: fi
6516: LIBS=$lt_globsym_save_LIBS
6517: CFLAGS=$lt_globsym_save_CFLAGS
6518: else
6519: echo "cannot find nm_test_func in $nlist" >&5
6520: fi
6521: else
6522: echo "cannot find nm_test_var in $nlist" >&5
6523: fi
6524: else
6525: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6526: fi
6527: else
6528: echo "$progname: failed program was:" >&5
6529: cat conftest.$ac_ext >&5
6530: fi
6531: rm -rf conftest* conftst*
6532:
6533: # Do not use the global_symbol_pipe unless it works.
6534: if test "$pipe_works" = yes; then
6535: break
6536: else
6537: lt_cv_sys_global_symbol_pipe=
6538: fi
6539: done
6540:
6541: fi
6542:
6543: if test -z "$lt_cv_sys_global_symbol_pipe"; then
6544: lt_cv_sys_global_symbol_to_cdecl=
6545: fi
6546: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.10 ! moko 6547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
! 6548: $as_echo "failed" >&6; }
1.1 misha 6549: else
1.10 ! moko 6550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
! 6551: $as_echo "ok" >&6; }
1.8 moko 6552: fi
1.1 misha 6553:
1.8 moko 6554: # Response file support.
6555: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6556: nm_file_list_spec='@'
6557: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6558: nm_file_list_spec='@'
1.1 misha 6559: fi
6560:
6561:
6562:
6563:
6564:
6565:
6566:
6567:
6568:
6569:
6570:
6571:
6572:
6573:
6574:
6575:
6576:
6577:
6578:
6579:
6580:
1.8 moko 6581:
6582:
6583:
6584:
6585:
6586:
1.10 ! moko 6587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 6588: $as_echo_n "checking for sysroot... " >&6; }
1.8 moko 6589:
1.10 ! moko 6590: # Check whether --with-sysroot was given.
! 6591: if test "${with_sysroot+set}" = set; then :
! 6592: withval=$with_sysroot;
1.1 misha 6593: else
1.8 moko 6594: with_sysroot=no
1.10 ! moko 6595: fi
! 6596:
1.1 misha 6597:
1.8 moko 6598: lt_sysroot=
6599: case ${with_sysroot} in #(
6600: yes)
6601: if test "$GCC" = yes; then
6602: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6603: fi
6604: ;; #(
6605: /*)
6606: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6607: ;; #(
6608: no|'')
6609: ;; #(
6610: *)
1.10 ! moko 6611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
! 6612: $as_echo "${with_sysroot}" >&6; }
! 6613: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.8 moko 6614: ;;
6615: esac
6616:
1.10 ! moko 6617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 6618: $as_echo "${lt_sysroot:-no}" >&6; }
1.8 moko 6619:
6620:
6621:
6622:
6623:
1.10 ! moko 6624: # Check whether --enable-libtool-lock was given.
! 6625: if test "${enable_libtool_lock+set}" = set; then :
! 6626: enableval=$enable_libtool_lock;
! 6627: fi
1.1 misha 6628:
1.8 moko 6629: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.1 misha 6630:
1.8 moko 6631: # Some flags need to be propagated to the compiler or linker for good
6632: # libtool support.
6633: case $host in
6634: ia64-*-hpux*)
6635: # Find out which ABI we are using.
6636: echo 'int i;' > conftest.$ac_ext
1.10 ! moko 6637: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6638: (eval $ac_compile) 2>&5
6639: ac_status=$?
1.10 ! moko 6640: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6641: test $ac_status = 0; }; then
1.8 moko 6642: case `/usr/bin/file conftest.$ac_objext` in
6643: *ELF-32*)
6644: HPUX_IA64_MODE="32"
6645: ;;
6646: *ELF-64*)
6647: HPUX_IA64_MODE="64"
6648: ;;
1.1 misha 6649: esac
6650: fi
1.8 moko 6651: rm -rf conftest*
6652: ;;
6653: *-*-irix6*)
6654: # Find out which ABI we are using.
6655: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.10 ! moko 6656: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6657: (eval $ac_compile) 2>&5
1.1 misha 6658: ac_status=$?
1.10 ! moko 6659: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6660: test $ac_status = 0; }; then
1.8 moko 6661: if test "$lt_cv_prog_gnu_ld" = yes; then
6662: case `/usr/bin/file conftest.$ac_objext` in
6663: *32-bit*)
6664: LD="${LD-ld} -melf32bsmip"
6665: ;;
6666: *N32*)
6667: LD="${LD-ld} -melf32bmipn32"
6668: ;;
6669: *64-bit*)
6670: LD="${LD-ld} -melf64bmip"
6671: ;;
6672: esac
6673: else
6674: case `/usr/bin/file conftest.$ac_objext` in
6675: *32-bit*)
6676: LD="${LD-ld} -32"
6677: ;;
6678: *N32*)
6679: LD="${LD-ld} -n32"
6680: ;;
6681: *64-bit*)
6682: LD="${LD-ld} -64"
6683: ;;
6684: esac
6685: fi
6686: fi
6687: rm -rf conftest*
6688: ;;
6689:
6690: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6691: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6692: # Find out which ABI we are using.
6693: echo 'int i;' > conftest.$ac_ext
1.10 ! moko 6694: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6695: (eval $ac_compile) 2>&5
1.1 misha 6696: ac_status=$?
1.10 ! moko 6697: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6698: test $ac_status = 0; }; then
1.8 moko 6699: case `/usr/bin/file conftest.o` in
6700: *32-bit*)
6701: case $host in
6702: x86_64-*kfreebsd*-gnu)
6703: LD="${LD-ld} -m elf_i386_fbsd"
6704: ;;
6705: x86_64-*linux*)
6706: LD="${LD-ld} -m elf_i386"
6707: ;;
6708: ppc64-*linux*|powerpc64-*linux*)
6709: LD="${LD-ld} -m elf32ppclinux"
6710: ;;
6711: s390x-*linux*)
6712: LD="${LD-ld} -m elf_s390"
6713: ;;
6714: sparc64-*linux*)
6715: LD="${LD-ld} -m elf32_sparc"
6716: ;;
6717: esac
1.1 misha 6718: ;;
1.8 moko 6719: *64-bit*)
6720: case $host in
6721: x86_64-*kfreebsd*-gnu)
6722: LD="${LD-ld} -m elf_x86_64_fbsd"
6723: ;;
6724: x86_64-*linux*)
6725: LD="${LD-ld} -m elf_x86_64"
6726: ;;
6727: ppc*-*linux*|powerpc*-*linux*)
6728: LD="${LD-ld} -m elf64ppc"
6729: ;;
6730: s390*-*linux*|s390*-*tpf*)
6731: LD="${LD-ld} -m elf64_s390"
6732: ;;
6733: sparc*-*linux*)
6734: LD="${LD-ld} -m elf64_sparc"
6735: ;;
6736: esac
1.1 misha 6737: ;;
1.8 moko 6738: esac
1.1 misha 6739: fi
1.8 moko 6740: rm -rf conftest*
6741: ;;
1.1 misha 6742:
1.8 moko 6743: *-*-sco3.2v5*)
6744: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6745: SAVE_CFLAGS="$CFLAGS"
6746: CFLAGS="$CFLAGS -belf"
1.10 ! moko 6747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
! 6748: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
! 6749: if test "${lt_cv_cc_needs_belf+set}" = set; then :
! 6750: $as_echo_n "(cached) " >&6
1.1 misha 6751: else
1.8 moko 6752: ac_ext=c
6753: ac_cpp='$CPP $CPPFLAGS'
6754: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6757:
1.10 ! moko 6758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 6759: /* end confdefs.h. */
6760:
6761: int
6762: main ()
6763: {
6764:
6765: ;
6766: return 0;
6767: }
6768: _ACEOF
1.10 ! moko 6769: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 6770: lt_cv_cc_needs_belf=yes
1.1 misha 6771: else
1.10 ! moko 6772: lt_cv_cc_needs_belf=no
1.1 misha 6773: fi
1.10 ! moko 6774: rm -f core conftest.err conftest.$ac_objext \
! 6775: conftest$ac_exeext conftest.$ac_ext
1.8 moko 6776: ac_ext=c
6777: ac_cpp='$CPP $CPPFLAGS'
6778: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6779: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6780: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 6781:
6782: fi
1.10 ! moko 6783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
! 6784: $as_echo "$lt_cv_cc_needs_belf" >&6; }
1.8 moko 6785: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6786: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6787: CFLAGS="$SAVE_CFLAGS"
6788: fi
6789: ;;
6790: *-*solaris*)
6791: # Find out which ABI we are using.
6792: echo 'int i;' > conftest.$ac_ext
1.10 ! moko 6793: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 6794: (eval $ac_compile) 2>&5
6795: ac_status=$?
1.10 ! moko 6796: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 6797: test $ac_status = 0; }; then
1.8 moko 6798: case `/usr/bin/file conftest.o` in
6799: *64-bit*)
6800: case $lt_cv_prog_gnu_ld in
6801: yes*)
6802: case $host in
6803: i?86-*-solaris*)
6804: LD="${LD-ld} -m elf_x86_64"
6805: ;;
6806: sparc*-*-solaris*)
6807: LD="${LD-ld} -m elf64_sparc"
6808: ;;
6809: esac
6810: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6811: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6812: LD="${LD-ld}_sol2"
6813: fi
6814: ;;
6815: *)
6816: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6817: LD="${LD-ld} -64"
6818: fi
6819: ;;
6820: esac
6821: ;;
6822: esac
6823: fi
6824: rm -rf conftest*
6825: ;;
6826: esac
1.1 misha 6827:
1.8 moko 6828: need_locks="$enable_libtool_lock"
1.1 misha 6829:
1.8 moko 6830: if test -n "$ac_tool_prefix"; then
6831: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6832: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.10 ! moko 6833: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6834: $as_echo_n "checking for $ac_word... " >&6; }
! 6835: if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
! 6836: $as_echo_n "(cached) " >&6
1.1 misha 6837: else
1.8 moko 6838: if test -n "$MANIFEST_TOOL"; then
6839: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6840: else
6841: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842: for as_dir in $PATH
6843: do
6844: IFS=$as_save_IFS
6845: test -z "$as_dir" && as_dir=.
1.10 ! moko 6846: for ac_exec_ext in '' $ac_executable_extensions; do
! 6847: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6848: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.10 ! moko 6849: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6850: break 2
6851: fi
6852: done
1.10 ! moko 6853: done
! 6854: IFS=$as_save_IFS
1.1 misha 6855:
1.8 moko 6856: fi
6857: fi
6858: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6859: if test -n "$MANIFEST_TOOL"; then
1.10 ! moko 6860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 6861: $as_echo "$MANIFEST_TOOL" >&6; }
1.1 misha 6862: else
1.10 ! moko 6863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6864: $as_echo "no" >&6; }
1.1 misha 6865: fi
6866:
1.10 ! moko 6867:
1.1 misha 6868: fi
1.8 moko 6869: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6870: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6871: # Extract the first word of "mt", so it can be a program name with args.
6872: set dummy mt; ac_word=$2
1.10 ! moko 6873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6874: $as_echo_n "checking for $ac_word... " >&6; }
! 6875: if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
! 6876: $as_echo_n "(cached) " >&6
1.8 moko 6877: else
6878: if test -n "$ac_ct_MANIFEST_TOOL"; then
6879: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6880: else
6881: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882: for as_dir in $PATH
6883: do
6884: IFS=$as_save_IFS
6885: test -z "$as_dir" && as_dir=.
1.10 ! moko 6886: for ac_exec_ext in '' $ac_executable_extensions; do
! 6887: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6888: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.10 ! moko 6889: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6890: break 2
6891: fi
6892: done
1.10 ! moko 6893: done
! 6894: IFS=$as_save_IFS
1.1 misha 6895:
1.8 moko 6896: fi
6897: fi
6898: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6899: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.10 ! moko 6900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 6901: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
1.8 moko 6902: else
1.10 ! moko 6903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6904: $as_echo "no" >&6; }
1.8 moko 6905: fi
6906:
1.10 ! moko 6907: if test "x$ac_ct_MANIFEST_TOOL" = x; then
! 6908: MANIFEST_TOOL=":"
! 6909: else
! 6910: case $cross_compiling:$ac_tool_warned in
! 6911: yes:)
! 6912: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 6913: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 6914: ac_tool_warned=yes ;;
! 6915: esac
! 6916: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
! 6917: fi
1.8 moko 6918: else
6919: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6920: fi
1.1 misha 6921:
1.8 moko 6922: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.10 ! moko 6923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 6924: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 6925: if test "${lt_cv_path_mainfest_tool+set}" = set; then :
! 6926: $as_echo_n "(cached) " >&6
1.1 misha 6927: else
1.8 moko 6928: lt_cv_path_mainfest_tool=no
6929: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6930: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6931: cat conftest.err >&5
6932: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6933: lt_cv_path_mainfest_tool=yes
6934: fi
6935: rm -f conftest*
6936: fi
1.10 ! moko 6937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
! 6938: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
1.8 moko 6939: if test "x$lt_cv_path_mainfest_tool" != xyes; then
6940: MANIFEST_TOOL=:
6941: fi
6942:
6943:
6944:
1.1 misha 6945:
6946:
6947:
1.8 moko 6948: case $host_os in
6949: rhapsody* | darwin*)
6950: if test -n "$ac_tool_prefix"; then
6951: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6952: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.10 ! moko 6953: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6954: $as_echo_n "checking for $ac_word... " >&6; }
! 6955: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
! 6956: $as_echo_n "(cached) " >&6
1.1 misha 6957: else
1.8 moko 6958: if test -n "$DSYMUTIL"; then
6959: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6960: else
6961: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962: for as_dir in $PATH
6963: do
6964: IFS=$as_save_IFS
6965: test -z "$as_dir" && as_dir=.
1.10 ! moko 6966: for ac_exec_ext in '' $ac_executable_extensions; do
! 6967: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 6968: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.10 ! moko 6969: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 6970: break 2
6971: fi
6972: done
1.10 ! moko 6973: done
! 6974: IFS=$as_save_IFS
1.1 misha 6975:
6976: fi
1.8 moko 6977: fi
6978: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6979: if test -n "$DSYMUTIL"; then
1.10 ! moko 6980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
! 6981: $as_echo "$DSYMUTIL" >&6; }
1.8 moko 6982: else
1.10 ! moko 6983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6984: $as_echo "no" >&6; }
1.8 moko 6985: fi
1.1 misha 6986:
1.10 ! moko 6987:
1.1 misha 6988: fi
1.8 moko 6989: if test -z "$ac_cv_prog_DSYMUTIL"; then
6990: ac_ct_DSYMUTIL=$DSYMUTIL
6991: # Extract the first word of "dsymutil", so it can be a program name with args.
6992: set dummy dsymutil; ac_word=$2
1.10 ! moko 6993: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6994: $as_echo_n "checking for $ac_word... " >&6; }
! 6995: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
! 6996: $as_echo_n "(cached) " >&6
1.8 moko 6997: else
6998: if test -n "$ac_ct_DSYMUTIL"; then
6999: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7000: else
7001: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002: for as_dir in $PATH
7003: do
7004: IFS=$as_save_IFS
7005: test -z "$as_dir" && as_dir=.
1.10 ! moko 7006: for ac_exec_ext in '' $ac_executable_extensions; do
! 7007: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7008: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.10 ! moko 7009: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7010: break 2
7011: fi
7012: done
1.10 ! moko 7013: done
! 7014: IFS=$as_save_IFS
1.1 misha 7015:
1.8 moko 7016: fi
7017: fi
7018: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7019: if test -n "$ac_ct_DSYMUTIL"; then
1.10 ! moko 7020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
! 7021: $as_echo "$ac_ct_DSYMUTIL" >&6; }
1.1 misha 7022: else
1.10 ! moko 7023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7024: $as_echo "no" >&6; }
1.1 misha 7025: fi
7026:
1.10 ! moko 7027: if test "x$ac_ct_DSYMUTIL" = x; then
! 7028: DSYMUTIL=":"
! 7029: else
! 7030: case $cross_compiling:$ac_tool_warned in
! 7031: yes:)
! 7032: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7033: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7034: ac_tool_warned=yes ;;
! 7035: esac
! 7036: DSYMUTIL=$ac_ct_DSYMUTIL
! 7037: fi
1.1 misha 7038: else
1.8 moko 7039: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
1.1 misha 7040: fi
7041:
1.8 moko 7042: if test -n "$ac_tool_prefix"; then
7043: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7044: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.10 ! moko 7045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7046: $as_echo_n "checking for $ac_word... " >&6; }
! 7047: if test "${ac_cv_prog_NMEDIT+set}" = set; then :
! 7048: $as_echo_n "(cached) " >&6
1.8 moko 7049: else
7050: if test -n "$NMEDIT"; then
7051: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7052: else
7053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054: for as_dir in $PATH
7055: do
7056: IFS=$as_save_IFS
7057: test -z "$as_dir" && as_dir=.
1.10 ! moko 7058: for ac_exec_ext in '' $ac_executable_extensions; do
! 7059: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7060: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.10 ! moko 7061: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7062: break 2
7063: fi
7064: done
1.10 ! moko 7065: done
! 7066: IFS=$as_save_IFS
1.1 misha 7067:
1.8 moko 7068: fi
7069: fi
7070: NMEDIT=$ac_cv_prog_NMEDIT
7071: if test -n "$NMEDIT"; then
1.10 ! moko 7072: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
! 7073: $as_echo "$NMEDIT" >&6; }
1.8 moko 7074: else
1.10 ! moko 7075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7076: $as_echo "no" >&6; }
1.8 moko 7077: fi
1.1 misha 7078:
1.10 ! moko 7079:
1.8 moko 7080: fi
7081: if test -z "$ac_cv_prog_NMEDIT"; then
7082: ac_ct_NMEDIT=$NMEDIT
7083: # Extract the first word of "nmedit", so it can be a program name with args.
7084: set dummy nmedit; ac_word=$2
1.10 ! moko 7085: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7086: $as_echo_n "checking for $ac_word... " >&6; }
! 7087: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
! 7088: $as_echo_n "(cached) " >&6
1.8 moko 7089: else
7090: if test -n "$ac_ct_NMEDIT"; then
7091: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
1.1 misha 7092: else
1.8 moko 7093: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094: for as_dir in $PATH
7095: do
7096: IFS=$as_save_IFS
7097: test -z "$as_dir" && as_dir=.
1.10 ! moko 7098: for ac_exec_ext in '' $ac_executable_extensions; do
! 7099: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7100: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.10 ! moko 7101: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7102: break 2
7103: fi
7104: done
1.10 ! moko 7105: done
! 7106: IFS=$as_save_IFS
1.1 misha 7107:
1.8 moko 7108: fi
7109: fi
7110: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7111: if test -n "$ac_ct_NMEDIT"; then
1.10 ! moko 7112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
! 7113: $as_echo "$ac_ct_NMEDIT" >&6; }
1.8 moko 7114: else
1.10 ! moko 7115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7116: $as_echo "no" >&6; }
1.1 misha 7117: fi
7118:
1.10 ! moko 7119: if test "x$ac_ct_NMEDIT" = x; then
! 7120: NMEDIT=":"
! 7121: else
! 7122: case $cross_compiling:$ac_tool_warned in
! 7123: yes:)
! 7124: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7125: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7126: ac_tool_warned=yes ;;
! 7127: esac
! 7128: NMEDIT=$ac_ct_NMEDIT
! 7129: fi
1.8 moko 7130: else
7131: NMEDIT="$ac_cv_prog_NMEDIT"
1.1 misha 7132: fi
7133:
1.8 moko 7134: if test -n "$ac_tool_prefix"; then
7135: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7136: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.10 ! moko 7137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7138: $as_echo_n "checking for $ac_word... " >&6; }
! 7139: if test "${ac_cv_prog_LIPO+set}" = set; then :
! 7140: $as_echo_n "(cached) " >&6
1.8 moko 7141: else
7142: if test -n "$LIPO"; then
7143: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7144: else
7145: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146: for as_dir in $PATH
7147: do
7148: IFS=$as_save_IFS
7149: test -z "$as_dir" && as_dir=.
1.10 ! moko 7150: for ac_exec_ext in '' $ac_executable_extensions; do
! 7151: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7152: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.10 ! moko 7153: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7154: break 2
7155: fi
7156: done
1.10 ! moko 7157: done
! 7158: IFS=$as_save_IFS
1.1 misha 7159:
1.8 moko 7160: fi
7161: fi
7162: LIPO=$ac_cv_prog_LIPO
7163: if test -n "$LIPO"; then
1.10 ! moko 7164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
! 7165: $as_echo "$LIPO" >&6; }
1.8 moko 7166: else
1.10 ! moko 7167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7168: $as_echo "no" >&6; }
1.8 moko 7169: fi
1.1 misha 7170:
1.10 ! moko 7171:
1.8 moko 7172: fi
7173: if test -z "$ac_cv_prog_LIPO"; then
7174: ac_ct_LIPO=$LIPO
7175: # Extract the first word of "lipo", so it can be a program name with args.
7176: set dummy lipo; ac_word=$2
1.10 ! moko 7177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7178: $as_echo_n "checking for $ac_word... " >&6; }
! 7179: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
! 7180: $as_echo_n "(cached) " >&6
1.8 moko 7181: else
7182: if test -n "$ac_ct_LIPO"; then
7183: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7184: else
7185: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186: for as_dir in $PATH
7187: do
7188: IFS=$as_save_IFS
7189: test -z "$as_dir" && as_dir=.
1.10 ! moko 7190: for ac_exec_ext in '' $ac_executable_extensions; do
! 7191: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7192: ac_cv_prog_ac_ct_LIPO="lipo"
1.10 ! moko 7193: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7194: break 2
1.1 misha 7195: fi
1.8 moko 7196: done
1.10 ! moko 7197: done
! 7198: IFS=$as_save_IFS
1.8 moko 7199:
7200: fi
7201: fi
7202: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7203: if test -n "$ac_ct_LIPO"; then
1.10 ! moko 7204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
! 7205: $as_echo "$ac_ct_LIPO" >&6; }
1.8 moko 7206: else
1.10 ! moko 7207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7208: $as_echo "no" >&6; }
1.8 moko 7209: fi
7210:
1.10 ! moko 7211: if test "x$ac_ct_LIPO" = x; then
! 7212: LIPO=":"
! 7213: else
! 7214: case $cross_compiling:$ac_tool_warned in
! 7215: yes:)
! 7216: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7217: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7218: ac_tool_warned=yes ;;
! 7219: esac
! 7220: LIPO=$ac_ct_LIPO
! 7221: fi
1.8 moko 7222: else
7223: LIPO="$ac_cv_prog_LIPO"
7224: fi
1.1 misha 7225:
1.8 moko 7226: if test -n "$ac_tool_prefix"; then
7227: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7228: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.10 ! moko 7229: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7230: $as_echo_n "checking for $ac_word... " >&6; }
! 7231: if test "${ac_cv_prog_OTOOL+set}" = set; then :
! 7232: $as_echo_n "(cached) " >&6
1.8 moko 7233: else
7234: if test -n "$OTOOL"; then
7235: ac_cv_prog_OTOOL="$OTOOL" # 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=.
1.10 ! moko 7242: for ac_exec_ext in '' $ac_executable_extensions; do
! 7243: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7244: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.10 ! moko 7245: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7246: break 2
7247: fi
7248: done
1.10 ! moko 7249: done
! 7250: IFS=$as_save_IFS
1.1 misha 7251:
1.8 moko 7252: fi
7253: fi
7254: OTOOL=$ac_cv_prog_OTOOL
7255: if test -n "$OTOOL"; then
1.10 ! moko 7256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
! 7257: $as_echo "$OTOOL" >&6; }
1.8 moko 7258: else
1.10 ! moko 7259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7260: $as_echo "no" >&6; }
1.8 moko 7261: fi
1.1 misha 7262:
1.10 ! moko 7263:
1.8 moko 7264: fi
7265: if test -z "$ac_cv_prog_OTOOL"; then
7266: ac_ct_OTOOL=$OTOOL
7267: # Extract the first word of "otool", so it can be a program name with args.
7268: set dummy otool; ac_word=$2
1.10 ! moko 7269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7270: $as_echo_n "checking for $ac_word... " >&6; }
! 7271: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
! 7272: $as_echo_n "(cached) " >&6
1.8 moko 7273: else
7274: if test -n "$ac_ct_OTOOL"; then
7275: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7276: else
7277: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278: for as_dir in $PATH
7279: do
7280: IFS=$as_save_IFS
7281: test -z "$as_dir" && as_dir=.
1.10 ! moko 7282: for ac_exec_ext in '' $ac_executable_extensions; do
! 7283: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7284: ac_cv_prog_ac_ct_OTOOL="otool"
1.10 ! moko 7285: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7286: break 2
7287: fi
7288: done
1.10 ! moko 7289: done
! 7290: IFS=$as_save_IFS
1.1 misha 7291:
1.8 moko 7292: fi
7293: fi
7294: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7295: if test -n "$ac_ct_OTOOL"; then
1.10 ! moko 7296: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
! 7297: $as_echo "$ac_ct_OTOOL" >&6; }
1.8 moko 7298: else
1.10 ! moko 7299: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7300: $as_echo "no" >&6; }
1.8 moko 7301: fi
1.1 misha 7302:
1.10 ! moko 7303: if test "x$ac_ct_OTOOL" = x; then
! 7304: OTOOL=":"
! 7305: else
! 7306: case $cross_compiling:$ac_tool_warned in
! 7307: yes:)
! 7308: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7309: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7310: ac_tool_warned=yes ;;
! 7311: esac
! 7312: OTOOL=$ac_ct_OTOOL
! 7313: fi
1.8 moko 7314: else
7315: OTOOL="$ac_cv_prog_OTOOL"
7316: fi
1.1 misha 7317:
1.8 moko 7318: if test -n "$ac_tool_prefix"; then
7319: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7320: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.10 ! moko 7321: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7322: $as_echo_n "checking for $ac_word... " >&6; }
! 7323: if test "${ac_cv_prog_OTOOL64+set}" = set; then :
! 7324: $as_echo_n "(cached) " >&6
1.8 moko 7325: else
7326: if test -n "$OTOOL64"; then
7327: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7328: else
7329: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330: for as_dir in $PATH
7331: do
7332: IFS=$as_save_IFS
7333: test -z "$as_dir" && as_dir=.
1.10 ! moko 7334: for ac_exec_ext in '' $ac_executable_extensions; do
! 7335: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7336: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.10 ! moko 7337: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7338: break 2
7339: fi
7340: done
1.10 ! moko 7341: done
! 7342: IFS=$as_save_IFS
1.1 misha 7343:
1.8 moko 7344: fi
7345: fi
7346: OTOOL64=$ac_cv_prog_OTOOL64
7347: if test -n "$OTOOL64"; then
1.10 ! moko 7348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
! 7349: $as_echo "$OTOOL64" >&6; }
1.8 moko 7350: else
1.10 ! moko 7351: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7352: $as_echo "no" >&6; }
1.8 moko 7353: fi
1.1 misha 7354:
1.10 ! moko 7355:
1.8 moko 7356: fi
7357: if test -z "$ac_cv_prog_OTOOL64"; then
7358: ac_ct_OTOOL64=$OTOOL64
7359: # Extract the first word of "otool64", so it can be a program name with args.
7360: set dummy otool64; ac_word=$2
1.10 ! moko 7361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7362: $as_echo_n "checking for $ac_word... " >&6; }
! 7363: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
! 7364: $as_echo_n "(cached) " >&6
1.8 moko 7365: else
7366: if test -n "$ac_ct_OTOOL64"; then
7367: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7368: else
7369: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370: for as_dir in $PATH
7371: do
7372: IFS=$as_save_IFS
7373: test -z "$as_dir" && as_dir=.
1.10 ! moko 7374: for ac_exec_ext in '' $ac_executable_extensions; do
! 7375: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 7376: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.10 ! moko 7377: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 7378: break 2
7379: fi
7380: done
1.10 ! moko 7381: done
! 7382: IFS=$as_save_IFS
1.1 misha 7383:
1.8 moko 7384: fi
7385: fi
7386: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7387: if test -n "$ac_ct_OTOOL64"; then
1.10 ! moko 7388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
! 7389: $as_echo "$ac_ct_OTOOL64" >&6; }
1.8 moko 7390: else
1.10 ! moko 7391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7392: $as_echo "no" >&6; }
1.8 moko 7393: fi
1.1 misha 7394:
1.10 ! moko 7395: if test "x$ac_ct_OTOOL64" = x; then
! 7396: OTOOL64=":"
! 7397: else
! 7398: case $cross_compiling:$ac_tool_warned in
! 7399: yes:)
! 7400: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7401: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 7402: ac_tool_warned=yes ;;
! 7403: esac
! 7404: OTOOL64=$ac_ct_OTOOL64
! 7405: fi
1.8 moko 7406: else
7407: OTOOL64="$ac_cv_prog_OTOOL64"
7408: fi
1.1 misha 7409:
7410:
7411:
7412:
7413:
7414:
7415:
7416:
7417:
7418:
7419:
7420:
7421:
7422:
7423:
7424:
7425:
7426:
7427:
7428:
7429:
7430:
7431:
7432:
7433:
7434:
7435:
1.10 ! moko 7436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
! 7437: $as_echo_n "checking for -single_module linker flag... " >&6; }
! 7438: if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
! 7439: $as_echo_n "(cached) " >&6
1.8 moko 7440: else
7441: lt_cv_apple_cc_single_mod=no
7442: if test -z "${LT_MULTI_MODULE}"; then
7443: # By default we will add the -single_module flag. You can override
7444: # by either setting the environment variable LT_MULTI_MODULE
7445: # non-empty at configure time, or by adding -multi_module to the
7446: # link flags.
7447: rm -rf libconftest.dylib*
7448: echo "int foo(void){return 1;}" > conftest.c
7449: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7450: -dynamiclib -Wl,-single_module conftest.c" >&5
7451: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7452: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7453: _lt_result=$?
7454: # If there is a non-empty error log, and "single_module"
7455: # appears in it, assume the flag caused a linker warning
7456: if test -s conftest.err && $GREP single_module conftest.err; then
7457: cat conftest.err >&5
7458: # Otherwise, if the output was created with a 0 exit code from
7459: # the compiler, it worked.
7460: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7461: lt_cv_apple_cc_single_mod=yes
7462: else
7463: cat conftest.err >&5
7464: fi
7465: rm -rf libconftest.dylib*
7466: rm -f conftest.*
7467: fi
7468: fi
1.10 ! moko 7469: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
! 7470: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1 misha 7471:
1.10 ! moko 7472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
! 7473: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
! 7474: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
! 7475: $as_echo_n "(cached) " >&6
1.8 moko 7476: else
7477: lt_cv_ld_exported_symbols_list=no
7478: save_LDFLAGS=$LDFLAGS
7479: echo "_main" > conftest.sym
7480: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.10 ! moko 7481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7482: /* end confdefs.h. */
1.1 misha 7483:
1.8 moko 7484: int
7485: main ()
7486: {
1.1 misha 7487:
1.8 moko 7488: ;
7489: return 0;
7490: }
7491: _ACEOF
1.10 ! moko 7492: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 7493: lt_cv_ld_exported_symbols_list=yes
7494: else
1.10 ! moko 7495: lt_cv_ld_exported_symbols_list=no
1.8 moko 7496: fi
1.10 ! moko 7497: rm -f core conftest.err conftest.$ac_objext \
! 7498: conftest$ac_exeext conftest.$ac_ext
1.8 moko 7499: LDFLAGS="$save_LDFLAGS"
1.1 misha 7500:
1.8 moko 7501: fi
1.10 ! moko 7502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
! 7503: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1 misha 7504:
1.10 ! moko 7505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 7506: $as_echo_n "checking for -force_load linker flag... " >&6; }
! 7507: if test "${lt_cv_ld_force_load+set}" = set; then :
! 7508: $as_echo_n "(cached) " >&6
1.8 moko 7509: else
7510: lt_cv_ld_force_load=no
7511: cat > conftest.c << _LT_EOF
7512: int forced_loaded() { return 2;}
7513: _LT_EOF
7514: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7515: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7516: echo "$AR cru libconftest.a conftest.o" >&5
7517: $AR cru libconftest.a conftest.o 2>&5
7518: echo "$RANLIB libconftest.a" >&5
7519: $RANLIB libconftest.a 2>&5
7520: cat > conftest.c << _LT_EOF
7521: int main() { return 0;}
7522: _LT_EOF
7523: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7524: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7525: _lt_result=$?
7526: if test -s conftest.err && $GREP force_load conftest.err; then
7527: cat conftest.err >&5
7528: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7529: lt_cv_ld_force_load=yes
7530: else
7531: cat conftest.err >&5
7532: fi
7533: rm -f conftest.err libconftest.a conftest conftest.c
7534: rm -rf conftest.dSYM
1.1 misha 7535:
1.8 moko 7536: fi
1.10 ! moko 7537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 7538: $as_echo "$lt_cv_ld_force_load" >&6; }
1.8 moko 7539: case $host_os in
7540: rhapsody* | darwin1.[012])
7541: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7542: darwin1.*)
7543: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7544: darwin*) # darwin 5.x on
7545: # if running on 10.5 or later, the deployment target defaults
7546: # to the OS version, if on x86, and 10.4, the deployment
7547: # target defaults to 10.4. Don't you love it?
7548: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7549: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7550: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7551: 10.[012]*)
7552: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553: 10.*)
7554: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7555: esac
1.1 misha 7556: ;;
1.8 moko 7557: esac
7558: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7559: _lt_dar_single_mod='$single_module'
7560: fi
7561: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7562: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7563: else
7564: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.1 misha 7565: fi
1.8 moko 7566: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7567: _lt_dsymutil='~$DSYMUTIL $lib || :'
1.1 misha 7568: else
1.8 moko 7569: _lt_dsymutil=
1.1 misha 7570: fi
7571: ;;
1.8 moko 7572: esac
1.1 misha 7573:
1.8 moko 7574: ac_ext=c
7575: ac_cpp='$CPP $CPPFLAGS'
7576: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.10 ! moko 7579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
! 7580: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.8 moko 7581: # On Suns, sometimes $CPP names a directory.
7582: if test -n "$CPP" && test -d "$CPP"; then
7583: CPP=
7584: fi
7585: if test -z "$CPP"; then
1.10 ! moko 7586: if test "${ac_cv_prog_CPP+set}" = set; then :
! 7587: $as_echo_n "(cached) " >&6
1.8 moko 7588: else
7589: # Double quotes because CPP needs to be expanded
7590: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7591: do
7592: ac_preproc_ok=false
7593: for ac_c_preproc_warn_flag in '' yes
7594: do
7595: # Use a header file that comes with gcc, so configuring glibc
7596: # with a fresh cross-compiler works.
7597: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598: # <limits.h> exists even on freestanding compilers.
7599: # On the NeXT, cc -E runs the code through the compiler's parser,
7600: # not just through cpp. "Syntax error" is here to catch this case.
1.10 ! moko 7601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7602: /* end confdefs.h. */
7603: #ifdef __STDC__
7604: # include <limits.h>
7605: #else
7606: # include <assert.h>
7607: #endif
7608: Syntax error
7609: _ACEOF
1.10 ! moko 7610: if ac_fn_c_try_cpp "$LINENO"; then :
! 7611:
1.8 moko 7612: else
7613: # Broken: fails on valid input.
7614: continue
7615: fi
1.10 ! moko 7616: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7617:
1.10 ! moko 7618: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 7619: # can be detected and how.
1.10 ! moko 7620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7621: /* end confdefs.h. */
7622: #include <ac_nonexistent.h>
7623: _ACEOF
1.10 ! moko 7624: if ac_fn_c_try_cpp "$LINENO"; then :
1.8 moko 7625: # Broken: success on invalid input.
7626: continue
7627: else
7628: # Passes both tests.
7629: ac_preproc_ok=:
7630: break
1.1 misha 7631: fi
1.10 ! moko 7632: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7633:
1.8 moko 7634: done
7635: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.10 ! moko 7636: rm -f conftest.i conftest.err conftest.$ac_ext
! 7637: if $ac_preproc_ok; then :
1.8 moko 7638: break
1.1 misha 7639: fi
7640:
1.8 moko 7641: done
7642: ac_cv_prog_CPP=$CPP
1.1 misha 7643:
1.8 moko 7644: fi
7645: CPP=$ac_cv_prog_CPP
7646: else
7647: ac_cv_prog_CPP=$CPP
7648: fi
1.10 ! moko 7649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
! 7650: $as_echo "$CPP" >&6; }
1.8 moko 7651: ac_preproc_ok=false
7652: for ac_c_preproc_warn_flag in '' yes
7653: do
7654: # Use a header file that comes with gcc, so configuring glibc
7655: # with a fresh cross-compiler works.
7656: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7657: # <limits.h> exists even on freestanding compilers.
7658: # On the NeXT, cc -E runs the code through the compiler's parser,
7659: # not just through cpp. "Syntax error" is here to catch this case.
1.10 ! moko 7660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7661: /* end confdefs.h. */
7662: #ifdef __STDC__
7663: # include <limits.h>
7664: #else
7665: # include <assert.h>
7666: #endif
7667: Syntax error
7668: _ACEOF
1.10 ! moko 7669: if ac_fn_c_try_cpp "$LINENO"; then :
! 7670:
1.8 moko 7671: else
7672: # Broken: fails on valid input.
7673: continue
7674: fi
1.10 ! moko 7675: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misha 7676:
1.10 ! moko 7677: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 7678: # can be detected and how.
1.10 ! moko 7679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7680: /* end confdefs.h. */
7681: #include <ac_nonexistent.h>
7682: _ACEOF
1.10 ! moko 7683: if ac_fn_c_try_cpp "$LINENO"; then :
1.8 moko 7684: # Broken: success on invalid input.
7685: continue
7686: else
7687: # Passes both tests.
7688: ac_preproc_ok=:
7689: break
7690: fi
1.10 ! moko 7691: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 7692:
7693: done
7694: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.10 ! moko 7695: rm -f conftest.i conftest.err conftest.$ac_ext
! 7696: if $ac_preproc_ok; then :
! 7697:
1.8 moko 7698: else
1.10 ! moko 7699: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 7700: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 7701: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 7702: See \`config.log' for more details" "$LINENO" 5 ; }
1.8 moko 7703: fi
1.1 misha 7704:
1.8 moko 7705: ac_ext=c
7706: ac_cpp='$CPP $CPPFLAGS'
7707: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 misha 7710:
7711:
1.10 ! moko 7712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
! 7713: $as_echo_n "checking for ANSI C header files... " >&6; }
! 7714: if test "${ac_cv_header_stdc+set}" = set; then :
! 7715: $as_echo_n "(cached) " >&6
1.8 moko 7716: else
1.10 ! moko 7717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7718: /* end confdefs.h. */
7719: #include <stdlib.h>
7720: #include <stdarg.h>
7721: #include <string.h>
7722: #include <float.h>
1.1 misha 7723:
1.8 moko 7724: int
7725: main ()
7726: {
1.1 misha 7727:
1.8 moko 7728: ;
7729: return 0;
7730: }
7731: _ACEOF
1.10 ! moko 7732: if ac_fn_c_try_compile "$LINENO"; then :
1.8 moko 7733: ac_cv_header_stdc=yes
7734: else
1.10 ! moko 7735: ac_cv_header_stdc=no
1.8 moko 7736: fi
1.10 ! moko 7737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misha 7738:
1.8 moko 7739: if test $ac_cv_header_stdc = yes; then
7740: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.10 ! moko 7741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7742: /* end confdefs.h. */
7743: #include <string.h>
7744:
7745: _ACEOF
7746: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.10 ! moko 7747: $EGREP "memchr" >/dev/null 2>&1; then :
! 7748:
1.8 moko 7749: else
7750: ac_cv_header_stdc=no
7751: fi
7752: rm -f conftest*
7753:
7754: fi
7755:
7756: if test $ac_cv_header_stdc = yes; then
7757: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.10 ! moko 7758: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7759: /* end confdefs.h. */
7760: #include <stdlib.h>
7761:
7762: _ACEOF
7763: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.10 ! moko 7764: $EGREP "free" >/dev/null 2>&1; then :
! 7765:
1.8 moko 7766: else
7767: ac_cv_header_stdc=no
7768: fi
7769: rm -f conftest*
7770:
7771: fi
1.1 misha 7772:
1.8 moko 7773: if test $ac_cv_header_stdc = yes; then
7774: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.10 ! moko 7775: if test "$cross_compiling" = yes; then :
1.8 moko 7776: :
7777: else
1.10 ! moko 7778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 7779: /* end confdefs.h. */
7780: #include <ctype.h>
1.10 ! moko 7781: #include <stdlib.h>
1.8 moko 7782: #if ((' ' & 0x0FF) == 0x020)
7783: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7784: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7785: #else
7786: # define ISLOWER(c) \
7787: (('a' <= (c) && (c) <= 'i') \
7788: || ('j' <= (c) && (c) <= 'r') \
7789: || ('s' <= (c) && (c) <= 'z'))
7790: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7791: #endif
1.1 misha 7792:
1.8 moko 7793: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7794: int
7795: main ()
7796: {
7797: int i;
7798: for (i = 0; i < 256; i++)
7799: if (XOR (islower (i), ISLOWER (i))
7800: || toupper (i) != TOUPPER (i))
1.10 ! moko 7801: return 2;
! 7802: return 0;
1.8 moko 7803: }
7804: _ACEOF
1.10 ! moko 7805: if ac_fn_c_try_run "$LINENO"; then :
! 7806:
1.8 moko 7807: else
1.10 ! moko 7808: ac_cv_header_stdc=no
1.8 moko 7809: fi
1.10 ! moko 7810: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 7811: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.8 moko 7812: fi
1.10 ! moko 7813:
1.8 moko 7814: fi
7815: fi
1.10 ! moko 7816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
! 7817: $as_echo "$ac_cv_header_stdc" >&6; }
1.8 moko 7818: if test $ac_cv_header_stdc = yes; then
1.1 misha 7819:
1.10 ! moko 7820: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 misha 7821:
1.8 moko 7822: fi
1.1 misha 7823:
1.8 moko 7824: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.10 ! moko 7825: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 7826: inttypes.h stdint.h unistd.h
! 7827: do :
! 7828: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 7829: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 7830: "
! 7831: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 7832: cat >>confdefs.h <<_ACEOF
! 7833: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 7834: _ACEOF
1.1 misha 7835:
1.10 ! moko 7836: fi
1.1 misha 7837:
1.10 ! moko 7838: done
1.1 misha 7839:
7840:
1.10 ! moko 7841: for ac_header in dlfcn.h
! 7842: do :
! 7843: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
! 7844: "
! 7845: if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
! 7846: cat >>confdefs.h <<_ACEOF
! 7847: #define HAVE_DLFCN_H 1
! 7848: _ACEOF
1.1 misha 7849:
1.10 ! moko 7850: fi
1.1 misha 7851:
1.10 ! moko 7852: done
1.1 misha 7853:
7854:
7855:
1.8 moko 7856:
7857: func_stripname_cnf ()
1.1 misha 7858: {
1.8 moko 7859: case ${2} in
7860: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7861: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7862: esac
7863: } # func_stripname_cnf
7864:
7865:
7866:
7867:
7868:
7869: # Set options
7870: enable_dlopen=yes
7871:
7872:
7873:
7874:
7875: enable_win32_dll=no
7876:
1.1 misha 7877:
1.10 ! moko 7878: # Check whether --enable-shared was given.
! 7879: if test "${enable_shared+set}" = set; then :
! 7880: enableval=$enable_shared; p=${PACKAGE-default}
1.8 moko 7881: case $enableval in
7882: yes) enable_shared=yes ;;
7883: no) enable_shared=no ;;
7884: *)
7885: enable_shared=no
7886: # Look at the argument we got. We use all the common list separators.
7887: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7888: for pkg in $enableval; do
7889: IFS="$lt_save_ifs"
7890: if test "X$pkg" = "X$p"; then
7891: enable_shared=yes
7892: fi
7893: done
7894: IFS="$lt_save_ifs"
7895: ;;
7896: esac
1.1 misha 7897: else
1.8 moko 7898: enable_shared=yes
1.10 ! moko 7899: fi
1.8 moko 7900:
7901:
7902:
7903:
7904:
7905:
7906:
1.1 misha 7907:
1.10 ! moko 7908:
! 7909: # Check whether --enable-static was given.
! 7910: if test "${enable_static+set}" = set; then :
! 7911: enableval=$enable_static; p=${PACKAGE-default}
1.8 moko 7912: case $enableval in
7913: yes) enable_static=yes ;;
7914: no) enable_static=no ;;
7915: *)
7916: enable_static=no
7917: # Look at the argument we got. We use all the common list separators.
7918: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919: for pkg in $enableval; do
7920: IFS="$lt_save_ifs"
7921: if test "X$pkg" = "X$p"; then
7922: enable_static=yes
7923: fi
7924: done
7925: IFS="$lt_save_ifs"
7926: ;;
7927: esac
1.1 misha 7928: else
1.8 moko 7929: enable_static=yes
1.10 ! moko 7930: fi
1.8 moko 7931:
7932:
7933:
7934:
7935:
7936:
7937:
7938:
7939:
1.10 ! moko 7940:
! 7941: # Check whether --with-pic was given.
! 7942: if test "${with_pic+set}" = set; then :
! 7943: withval=$with_pic; lt_p=${PACKAGE-default}
1.8 moko 7944: case $withval in
7945: yes|no) pic_mode=$withval ;;
7946: *)
7947: pic_mode=default
7948: # Look at the argument we got. We use all the common list separators.
7949: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7950: for lt_pkg in $withval; do
7951: IFS="$lt_save_ifs"
7952: if test "X$lt_pkg" = "X$lt_p"; then
7953: pic_mode=yes
7954: fi
7955: done
7956: IFS="$lt_save_ifs"
7957: ;;
7958: esac
1.1 misha 7959: else
1.8 moko 7960: pic_mode=default
1.10 ! moko 7961: fi
! 7962:
1.8 moko 7963:
7964: test -z "$pic_mode" && pic_mode=default
7965:
7966:
7967:
7968:
7969:
7970:
1.1 misha 7971:
1.10 ! moko 7972: # Check whether --enable-fast-install was given.
! 7973: if test "${enable_fast_install+set}" = set; then :
! 7974: enableval=$enable_fast_install; p=${PACKAGE-default}
1.8 moko 7975: case $enableval in
7976: yes) enable_fast_install=yes ;;
7977: no) enable_fast_install=no ;;
7978: *)
7979: enable_fast_install=no
7980: # Look at the argument we got. We use all the common list separators.
7981: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7982: for pkg in $enableval; do
7983: IFS="$lt_save_ifs"
7984: if test "X$pkg" = "X$p"; then
7985: enable_fast_install=yes
7986: fi
7987: done
7988: IFS="$lt_save_ifs"
7989: ;;
7990: esac
1.1 misha 7991: else
1.8 moko 7992: enable_fast_install=yes
1.10 ! moko 7993: fi
! 7994:
1.8 moko 7995:
7996:
7997:
7998:
7999:
8000:
8001:
8002:
8003:
8004:
8005: # This can be used to rebuild libtool when needed
8006: LIBTOOL_DEPS="$ltmain"
8007:
8008: # Always use our own libtool.
8009: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8010:
8011:
8012:
8013:
8014:
8015:
8016:
8017:
8018:
8019:
8020:
8021:
8022:
8023:
8024:
8025:
8026:
8027:
8028:
8029:
8030:
8031:
8032:
8033:
8034:
8035:
8036:
8037:
8038:
8039:
8040: test -z "$LN_S" && LN_S="ln -s"
8041:
8042:
8043:
8044:
8045:
8046:
8047:
8048:
8049:
8050:
8051:
8052:
8053:
1.1 misha 8054:
1.8 moko 8055: if test -n "${ZSH_VERSION+set}" ; then
8056: setopt NO_GLOB_SUBST
1.1 misha 8057: fi
1.8 moko 8058:
1.10 ! moko 8059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
! 8060: $as_echo_n "checking for objdir... " >&6; }
! 8061: if test "${lt_cv_objdir+set}" = set; then :
! 8062: $as_echo_n "(cached) " >&6
1.8 moko 8063: else
8064: rm -f .libs 2>/dev/null
8065: mkdir .libs 2>/dev/null
8066: if test -d .libs; then
8067: lt_cv_objdir=.libs
8068: else
8069: # MS-DOS does not allow filenames that begin with a dot.
8070: lt_cv_objdir=_libs
1.1 misha 8071: fi
1.8 moko 8072: rmdir .libs 2>/dev/null
8073: fi
1.10 ! moko 8074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
! 8075: $as_echo "$lt_cv_objdir" >&6; }
1.8 moko 8076: objdir=$lt_cv_objdir
1.1 misha 8077:
8078:
8079:
8080:
8081:
1.8 moko 8082: cat >>confdefs.h <<_ACEOF
8083: #define LT_OBJDIR "$lt_cv_objdir/"
8084: _ACEOF
1.1 misha 8085:
8086:
8087:
8088:
1.8 moko 8089: case $host_os in
8090: aix3*)
8091: # AIX sometimes has problems with the GCC collect2 program. For some
8092: # reason, if we set the COLLECT_NAMES environment variable, the problems
8093: # vanish in a puff of smoke.
8094: if test "X${COLLECT_NAMES+set}" != Xset; then
8095: COLLECT_NAMES=
8096: export COLLECT_NAMES
8097: fi
8098: ;;
8099: esac
1.1 misha 8100:
1.8 moko 8101: # Global variables:
8102: ofile=libtool
8103: can_build_shared=yes
1.1 misha 8104:
1.8 moko 8105: # All known linkers require a `.a' archive for static linking (except MSVC,
8106: # which needs '.lib').
8107: libext=a
1.1 misha 8108:
1.8 moko 8109: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.1 misha 8110:
1.8 moko 8111: old_CC="$CC"
8112: old_CFLAGS="$CFLAGS"
1.1 misha 8113:
1.8 moko 8114: # Set sane defaults for various variables
8115: test -z "$CC" && CC=cc
8116: test -z "$LTCC" && LTCC=$CC
8117: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8118: test -z "$LD" && LD=ld
8119: test -z "$ac_objext" && ac_objext=o
1.1 misha 8120:
1.8 moko 8121: for cc_temp in $compiler""; do
8122: case $cc_temp in
8123: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8124: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8125: \-*) ;;
8126: *) break;;
1.1 misha 8127: esac
1.8 moko 8128: done
8129: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1.1 misha 8130:
8131:
1.8 moko 8132: # Only perform the check for file, if the check method requires it
8133: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8134: case $deplibs_check_method in
8135: file_magic*)
8136: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.10 ! moko 8137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
! 8138: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
! 8139: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
! 8140: $as_echo_n "(cached) " >&6
1.8 moko 8141: else
8142: case $MAGIC_CMD in
8143: [\\/*] | ?:[\\/]*)
8144: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8145: ;;
8146: *)
8147: lt_save_MAGIC_CMD="$MAGIC_CMD"
8148: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8149: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8150: for ac_dir in $ac_dummy; do
8151: IFS="$lt_save_ifs"
8152: test -z "$ac_dir" && ac_dir=.
8153: if test -f $ac_dir/${ac_tool_prefix}file; then
8154: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8155: if test -n "$file_magic_test_file"; then
8156: case $deplibs_check_method in
8157: "file_magic "*)
8158: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8159: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8160: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8161: $EGREP "$file_magic_regex" > /dev/null; then
8162: :
8163: else
8164: cat <<_LT_EOF 1>&2
1.1 misha 8165:
1.8 moko 8166: *** Warning: the command libtool uses to detect shared libraries,
8167: *** $file_magic_cmd, produces output that libtool cannot recognize.
8168: *** The result is that libtool may fail to recognize shared libraries
8169: *** as such. This will affect the creation of libtool libraries that
8170: *** depend on shared libraries, but programs linked with such libtool
8171: *** libraries will work regardless of this problem. Nevertheless, you
8172: *** may want to report the problem to your system manager and/or to
8173: *** bug-libtool@gnu.org
1.1 misha 8174:
1.8 moko 8175: _LT_EOF
8176: fi ;;
8177: esac
8178: fi
8179: break
8180: fi
8181: done
8182: IFS="$lt_save_ifs"
8183: MAGIC_CMD="$lt_save_MAGIC_CMD"
8184: ;;
8185: esac
8186: fi
1.1 misha 8187:
1.8 moko 8188: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8189: if test -n "$MAGIC_CMD"; then
1.10 ! moko 8190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8191: $as_echo "$MAGIC_CMD" >&6; }
1.1 misha 8192: else
1.10 ! moko 8193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8194: $as_echo "no" >&6; }
1.8 moko 8195: fi
8196:
1.1 misha 8197:
8198:
8199:
8200:
1.8 moko 8201: if test -z "$lt_cv_path_MAGIC_CMD"; then
8202: if test -n "$ac_tool_prefix"; then
1.10 ! moko 8203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
! 8204: $as_echo_n "checking for file... " >&6; }
! 8205: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
! 8206: $as_echo_n "(cached) " >&6
1.8 moko 8207: else
8208: case $MAGIC_CMD in
8209: [\\/*] | ?:[\\/]*)
8210: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8211: ;;
8212: *)
8213: lt_save_MAGIC_CMD="$MAGIC_CMD"
8214: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8215: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8216: for ac_dir in $ac_dummy; do
8217: IFS="$lt_save_ifs"
8218: test -z "$ac_dir" && ac_dir=.
8219: if test -f $ac_dir/file; then
8220: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8221: if test -n "$file_magic_test_file"; then
8222: case $deplibs_check_method in
8223: "file_magic "*)
8224: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8225: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8227: $EGREP "$file_magic_regex" > /dev/null; then
8228: :
8229: else
8230: cat <<_LT_EOF 1>&2
8231:
8232: *** Warning: the command libtool uses to detect shared libraries,
8233: *** $file_magic_cmd, produces output that libtool cannot recognize.
8234: *** The result is that libtool may fail to recognize shared libraries
8235: *** as such. This will affect the creation of libtool libraries that
8236: *** depend on shared libraries, but programs linked with such libtool
8237: *** libraries will work regardless of this problem. Nevertheless, you
8238: *** may want to report the problem to your system manager and/or to
8239: *** bug-libtool@gnu.org
1.1 misha 8240:
1.8 moko 8241: _LT_EOF
8242: fi ;;
8243: esac
8244: fi
8245: break
8246: fi
8247: done
8248: IFS="$lt_save_ifs"
8249: MAGIC_CMD="$lt_save_MAGIC_CMD"
8250: ;;
8251: esac
8252: fi
1.1 misha 8253:
1.8 moko 8254: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255: if test -n "$MAGIC_CMD"; then
1.10 ! moko 8256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 8257: $as_echo "$MAGIC_CMD" >&6; }
1.8 moko 8258: else
1.10 ! moko 8259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8260: $as_echo "no" >&6; }
1.8 moko 8261: fi
1.1 misha 8262:
8263:
1.8 moko 8264: else
8265: MAGIC_CMD=:
1.1 misha 8266: fi
8267: fi
1.8 moko 8268:
8269: fi
8270: ;;
8271: esac
8272:
8273: # Use C for the default configuration in the libtool script
8274:
8275: lt_save_CC="$CC"
8276: ac_ext=c
8277: ac_cpp='$CPP $CPPFLAGS'
8278: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8281:
8282:
8283: # Source file extension for C test sources.
8284: ac_ext=c
8285:
8286: # Object file extension for compiled C test sources.
8287: objext=o
8288: objext=$objext
8289:
8290: # Code to be used in simple compile tests
8291: lt_simple_compile_test_code="int some_variable = 0;"
8292:
8293: # Code to be used in simple link tests
8294: lt_simple_link_test_code='int main(){return(0);}'
1.1 misha 8295:
8296:
8297:
8298:
8299:
8300:
8301:
1.8 moko 8302: # If no C compiler was specified, use CC.
8303: LTCC=${LTCC-"$CC"}
1.1 misha 8304:
1.8 moko 8305: # If no C compiler flags were specified, use CFLAGS.
8306: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.1 misha 8307:
1.8 moko 8308: # Allow CC to be a program name with arguments.
8309: compiler=$CC
1.1 misha 8310:
1.8 moko 8311: # Save the default compiler, since it gets overwritten when the other
8312: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8313: compiler_DEFAULT=$CC
1.1 misha 8314:
1.8 moko 8315: # save warnings/boilerplate of simple test code
8316: ac_outfile=conftest.$ac_objext
8317: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8318: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8319: _lt_compiler_boilerplate=`cat conftest.err`
8320: $RM conftest*
1.1 misha 8321:
1.8 moko 8322: ac_outfile=conftest.$ac_objext
8323: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8324: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325: _lt_linker_boilerplate=`cat conftest.err`
8326: $RM -r conftest*
1.1 misha 8327:
8328:
1.8 moko 8329: if test -n "$compiler"; then
1.1 misha 8330:
1.8 moko 8331: lt_prog_compiler_no_builtin_flag=
1.1 misha 8332:
1.8 moko 8333: if test "$GCC" = yes; then
8334: case $cc_basename in
8335: nvcc*)
8336: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8337: *)
8338: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
1.1 misha 8339: esac
8340:
1.10 ! moko 8341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 8342: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
! 8343: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
! 8344: $as_echo_n "(cached) " >&6
1.1 misha 8345: else
1.8 moko 8346: lt_cv_prog_compiler_rtti_exceptions=no
8347: ac_outfile=conftest.$ac_objext
8348: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349: lt_compiler_flag="-fno-rtti -fno-exceptions"
8350: # Insert the option either (1) after the last *FLAGS variable, or
8351: # (2) before a word containing "conftest.", or (3) at the end.
8352: # Note that $ac_compile itself does not contain backslashes and begins
8353: # with a dollar sign (not a hyphen), so the echo should work correctly.
8354: # The option is referenced via a variable to avoid confusing sed.
8355: lt_compile=`echo "$ac_compile" | $SED \
8356: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358: -e 's:$: $lt_compiler_flag:'`
8359: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8360: (eval "$lt_compile" 2>conftest.err)
8361: ac_status=$?
8362: cat conftest.err >&5
8363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364: if (exit $ac_status) && test -s "$ac_outfile"; then
8365: # The compiler can only warn and ignore the option if not recognized
8366: # So say no if there are warnings other than the usual output.
8367: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8368: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370: lt_cv_prog_compiler_rtti_exceptions=yes
8371: fi
8372: fi
8373: $RM conftest*
1.1 misha 8374:
8375: fi
1.10 ! moko 8376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 8377: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.1 misha 8378:
1.8 moko 8379: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8381: else
8382: :
1.1 misha 8383: fi
8384:
1.8 moko 8385: fi
1.1 misha 8386:
8387:
8388:
8389:
8390:
8391:
1.8 moko 8392: lt_prog_compiler_wl=
8393: lt_prog_compiler_pic=
8394: lt_prog_compiler_static=
1.1 misha 8395:
8396:
1.8 moko 8397: if test "$GCC" = yes; then
8398: lt_prog_compiler_wl='-Wl,'
8399: lt_prog_compiler_static='-static'
1.1 misha 8400:
1.8 moko 8401: case $host_os in
8402: aix*)
8403: # All AIX code is PIC.
8404: if test "$host_cpu" = ia64; then
8405: # AIX 5 now supports IA64 processor
8406: lt_prog_compiler_static='-Bstatic'
8407: fi
8408: ;;
1.1 misha 8409:
1.8 moko 8410: amigaos*)
8411: case $host_cpu in
8412: powerpc)
8413: # see comment about AmigaOS4 .so support
8414: lt_prog_compiler_pic='-fPIC'
8415: ;;
8416: m68k)
8417: # FIXME: we need at least 68020 code to build shared libraries, but
8418: # adding the `-m68020' flag to GCC prevents building anything better,
8419: # like `-m68040'.
8420: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8421: ;;
8422: esac
8423: ;;
1.1 misha 8424:
1.8 moko 8425: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8426: # PIC is the default for these OSes.
8427: ;;
1.1 misha 8428:
1.8 moko 8429: mingw* | cygwin* | pw32* | os2* | cegcc*)
8430: # This hack is so that the source file can tell whether it is being
8431: # built for inclusion in a dll (and should export symbols for example).
8432: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8433: # (--disable-auto-import) libraries
8434: lt_prog_compiler_pic='-DDLL_EXPORT'
8435: ;;
1.1 misha 8436:
1.8 moko 8437: darwin* | rhapsody*)
8438: # PIC is the default on this platform
8439: # Common symbols not allowed in MH_DYLIB files
8440: lt_prog_compiler_pic='-fno-common'
8441: ;;
1.1 misha 8442:
1.8 moko 8443: haiku*)
8444: # PIC is the default for Haiku.
8445: # The "-static" flag exists, but is broken.
8446: lt_prog_compiler_static=
8447: ;;
1.1 misha 8448:
1.8 moko 8449: hpux*)
8450: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8451: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8452: # sets the default TLS model and affects inlining.
8453: case $host_cpu in
8454: hppa*64*)
8455: # +Z the default
8456: ;;
8457: *)
8458: lt_prog_compiler_pic='-fPIC'
8459: ;;
8460: esac
8461: ;;
1.1 misha 8462:
1.8 moko 8463: interix[3-9]*)
8464: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8465: # Instead, we relocate shared libraries at runtime.
8466: ;;
1.1 misha 8467:
1.8 moko 8468: msdosdjgpp*)
8469: # Just because we use GCC doesn't mean we suddenly get shared libraries
8470: # on systems that don't support them.
8471: lt_prog_compiler_can_build_shared=no
8472: enable_shared=no
8473: ;;
1.1 misha 8474:
1.8 moko 8475: *nto* | *qnx*)
8476: # QNX uses GNU C++, but need to define -shared option too, otherwise
8477: # it will coredump.
8478: lt_prog_compiler_pic='-fPIC -shared'
8479: ;;
1.1 misha 8480:
1.8 moko 8481: sysv4*MP*)
8482: if test -d /usr/nec; then
8483: lt_prog_compiler_pic=-Kconform_pic
8484: fi
8485: ;;
1.1 misha 8486:
1.8 moko 8487: *)
8488: lt_prog_compiler_pic='-fPIC'
8489: ;;
8490: esac
1.1 misha 8491:
1.8 moko 8492: case $cc_basename in
8493: nvcc*) # Cuda Compiler Driver 2.2
8494: lt_prog_compiler_wl='-Xlinker '
8495: if test -n "$lt_prog_compiler_pic"; then
8496: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8497: fi
8498: ;;
8499: esac
8500: else
8501: # PORTME Check for flag to pass linker flags through the system compiler.
8502: case $host_os in
8503: aix*)
8504: lt_prog_compiler_wl='-Wl,'
8505: if test "$host_cpu" = ia64; then
8506: # AIX 5 now supports IA64 processor
8507: lt_prog_compiler_static='-Bstatic'
8508: else
8509: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8510: fi
8511: ;;
1.1 misha 8512:
1.8 moko 8513: mingw* | cygwin* | pw32* | os2* | cegcc*)
8514: # This hack is so that the source file can tell whether it is being
8515: # built for inclusion in a dll (and should export symbols for example).
8516: lt_prog_compiler_pic='-DDLL_EXPORT'
8517: ;;
1.1 misha 8518:
1.8 moko 8519: hpux9* | hpux10* | hpux11*)
8520: lt_prog_compiler_wl='-Wl,'
8521: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8522: # not for PA HP-UX.
8523: case $host_cpu in
8524: hppa*64*|ia64*)
8525: # +Z the default
8526: ;;
8527: *)
8528: lt_prog_compiler_pic='+Z'
8529: ;;
8530: esac
8531: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8532: lt_prog_compiler_static='${wl}-a ${wl}archive'
8533: ;;
1.1 misha 8534:
1.8 moko 8535: irix5* | irix6* | nonstopux*)
8536: lt_prog_compiler_wl='-Wl,'
8537: # PIC (with -KPIC) is the default.
8538: lt_prog_compiler_static='-non_shared'
8539: ;;
1.1 misha 8540:
1.8 moko 8541: linux* | k*bsd*-gnu | kopensolaris*-gnu)
8542: case $cc_basename in
8543: # old Intel for x86_64 which still supported -KPIC.
8544: ecc*)
8545: lt_prog_compiler_wl='-Wl,'
8546: lt_prog_compiler_pic='-KPIC'
8547: lt_prog_compiler_static='-static'
8548: ;;
8549: # icc used to be incompatible with GCC.
8550: # ICC 10 doesn't accept -KPIC any more.
8551: icc* | ifort*)
8552: lt_prog_compiler_wl='-Wl,'
8553: lt_prog_compiler_pic='-fPIC'
8554: lt_prog_compiler_static='-static'
8555: ;;
8556: # Lahey Fortran 8.1.
8557: lf95*)
8558: lt_prog_compiler_wl='-Wl,'
8559: lt_prog_compiler_pic='--shared'
8560: lt_prog_compiler_static='--static'
8561: ;;
8562: nagfor*)
8563: # NAG Fortran compiler
8564: lt_prog_compiler_wl='-Wl,-Wl,,'
8565: lt_prog_compiler_pic='-PIC'
8566: lt_prog_compiler_static='-Bstatic'
8567: ;;
8568: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8569: # Portland Group compilers (*not* the Pentium gcc compiler,
8570: # which looks to be a dead project)
8571: lt_prog_compiler_wl='-Wl,'
8572: lt_prog_compiler_pic='-fpic'
8573: lt_prog_compiler_static='-Bstatic'
8574: ;;
8575: ccc*)
8576: lt_prog_compiler_wl='-Wl,'
8577: # All Alpha code is PIC.
8578: lt_prog_compiler_static='-non_shared'
8579: ;;
8580: xl* | bgxl* | bgf* | mpixl*)
8581: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8582: lt_prog_compiler_wl='-Wl,'
8583: lt_prog_compiler_pic='-qpic'
8584: lt_prog_compiler_static='-qstaticlink'
8585: ;;
8586: *)
8587: case `$CC -V 2>&1 | sed 5q` in
8588: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8589: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8590: lt_prog_compiler_pic='-KPIC'
8591: lt_prog_compiler_static='-Bstatic'
8592: lt_prog_compiler_wl=''
8593: ;;
8594: *Sun\ F* | *Sun*Fortran*)
8595: lt_prog_compiler_pic='-KPIC'
8596: lt_prog_compiler_static='-Bstatic'
8597: lt_prog_compiler_wl='-Qoption ld '
8598: ;;
8599: *Sun\ C*)
8600: # Sun C 5.9
8601: lt_prog_compiler_pic='-KPIC'
8602: lt_prog_compiler_static='-Bstatic'
8603: lt_prog_compiler_wl='-Wl,'
8604: ;;
8605: *Intel*\ [CF]*Compiler*)
8606: lt_prog_compiler_wl='-Wl,'
8607: lt_prog_compiler_pic='-fPIC'
8608: lt_prog_compiler_static='-static'
8609: ;;
8610: *Portland\ Group*)
8611: lt_prog_compiler_wl='-Wl,'
8612: lt_prog_compiler_pic='-fpic'
8613: lt_prog_compiler_static='-Bstatic'
8614: ;;
8615: esac
8616: ;;
8617: esac
8618: ;;
1.1 misha 8619:
1.8 moko 8620: newsos6)
8621: lt_prog_compiler_pic='-KPIC'
8622: lt_prog_compiler_static='-Bstatic'
8623: ;;
1.1 misha 8624:
1.8 moko 8625: *nto* | *qnx*)
8626: # QNX uses GNU C++, but need to define -shared option too, otherwise
8627: # it will coredump.
8628: lt_prog_compiler_pic='-fPIC -shared'
8629: ;;
1.1 misha 8630:
1.8 moko 8631: osf3* | osf4* | osf5*)
8632: lt_prog_compiler_wl='-Wl,'
8633: # All OSF/1 code is PIC.
8634: lt_prog_compiler_static='-non_shared'
8635: ;;
1.1 misha 8636:
1.8 moko 8637: rdos*)
8638: lt_prog_compiler_static='-non_shared'
8639: ;;
1.1 misha 8640:
1.8 moko 8641: solaris*)
8642: lt_prog_compiler_pic='-KPIC'
8643: lt_prog_compiler_static='-Bstatic'
8644: case $cc_basename in
8645: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8646: lt_prog_compiler_wl='-Qoption ld ';;
8647: *)
8648: lt_prog_compiler_wl='-Wl,';;
8649: esac
8650: ;;
1.1 misha 8651:
1.8 moko 8652: sunos4*)
8653: lt_prog_compiler_wl='-Qoption ld '
8654: lt_prog_compiler_pic='-PIC'
8655: lt_prog_compiler_static='-Bstatic'
8656: ;;
1.1 misha 8657:
1.8 moko 8658: sysv4 | sysv4.2uw2* | sysv4.3*)
8659: lt_prog_compiler_wl='-Wl,'
8660: lt_prog_compiler_pic='-KPIC'
8661: lt_prog_compiler_static='-Bstatic'
8662: ;;
1.1 misha 8663:
1.8 moko 8664: sysv4*MP*)
8665: if test -d /usr/nec ;then
8666: lt_prog_compiler_pic='-Kconform_pic'
8667: lt_prog_compiler_static='-Bstatic'
8668: fi
8669: ;;
1.1 misha 8670:
1.8 moko 8671: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8672: lt_prog_compiler_wl='-Wl,'
8673: lt_prog_compiler_pic='-KPIC'
8674: lt_prog_compiler_static='-Bstatic'
8675: ;;
1.1 misha 8676:
1.8 moko 8677: unicos*)
8678: lt_prog_compiler_wl='-Wl,'
8679: lt_prog_compiler_can_build_shared=no
8680: ;;
1.1 misha 8681:
1.8 moko 8682: uts4*)
8683: lt_prog_compiler_pic='-pic'
8684: lt_prog_compiler_static='-Bstatic'
8685: ;;
1.1 misha 8686:
1.8 moko 8687: *)
8688: lt_prog_compiler_can_build_shared=no
8689: ;;
8690: esac
8691: fi
1.1 misha 8692:
1.8 moko 8693: case $host_os in
8694: # For platforms which do not support PIC, -DPIC is meaningless:
8695: *djgpp*)
8696: lt_prog_compiler_pic=
8697: ;;
8698: *)
8699: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8700: ;;
8701: esac
1.1 misha 8702:
1.10 ! moko 8703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 8704: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 8705: if test "${lt_cv_prog_compiler_pic+set}" = set; then :
! 8706: $as_echo_n "(cached) " >&6
1.8 moko 8707: else
8708: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8709: fi
1.10 ! moko 8710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 8711: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
1.8 moko 8712: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
1.1 misha 8713:
1.8 moko 8714: #
8715: # Check to make sure the PIC flag actually works.
8716: #
8717: if test -n "$lt_prog_compiler_pic"; then
1.10 ! moko 8718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 8719: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 8720: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
! 8721: $as_echo_n "(cached) " >&6
1.8 moko 8722: else
8723: lt_cv_prog_compiler_pic_works=no
8724: ac_outfile=conftest.$ac_objext
8725: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8727: # Insert the option either (1) after the last *FLAGS variable, or
8728: # (2) before a word containing "conftest.", or (3) at the end.
8729: # Note that $ac_compile itself does not contain backslashes and begins
8730: # with a dollar sign (not a hyphen), so the echo should work correctly.
8731: # The option is referenced via a variable to avoid confusing sed.
8732: lt_compile=`echo "$ac_compile" | $SED \
8733: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735: -e 's:$: $lt_compiler_flag:'`
8736: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737: (eval "$lt_compile" 2>conftest.err)
8738: ac_status=$?
8739: cat conftest.err >&5
8740: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741: if (exit $ac_status) && test -s "$ac_outfile"; then
8742: # The compiler can only warn and ignore the option if not recognized
8743: # So say no if there are warnings other than the usual output.
8744: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8745: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8747: lt_cv_prog_compiler_pic_works=yes
8748: fi
8749: fi
8750: $RM conftest*
1.1 misha 8751:
1.8 moko 8752: fi
1.10 ! moko 8753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 8754: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.1 misha 8755:
1.8 moko 8756: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8757: case $lt_prog_compiler_pic in
8758: "" | " "*) ;;
8759: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8760: esac
8761: else
8762: lt_prog_compiler_pic=
8763: lt_prog_compiler_can_build_shared=no
8764: fi
1.1 misha 8765:
1.8 moko 8766: fi
1.1 misha 8767:
8768:
8769:
8770:
8771:
8772:
8773:
8774:
8775:
8776:
8777:
1.8 moko 8778: #
8779: # Check to make sure the static flag actually works.
8780: #
8781: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.10 ! moko 8782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 8783: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 8784: if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
! 8785: $as_echo_n "(cached) " >&6
1.8 moko 8786: else
8787: lt_cv_prog_compiler_static_works=no
8788: save_LDFLAGS="$LDFLAGS"
8789: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8790: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8791: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8792: # The linker can only warn and ignore the option if not recognized
8793: # So say no if there are warnings
8794: if test -s conftest.err; then
8795: # Append any errors to the config.log.
8796: cat conftest.err 1>&5
8797: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8798: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799: if diff conftest.exp conftest.er2 >/dev/null; then
8800: lt_cv_prog_compiler_static_works=yes
8801: fi
8802: else
8803: lt_cv_prog_compiler_static_works=yes
8804: fi
8805: fi
8806: $RM -r conftest*
8807: LDFLAGS="$save_LDFLAGS"
1.1 misha 8808:
1.8 moko 8809: fi
1.10 ! moko 8810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 8811: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.1 misha 8812:
1.8 moko 8813: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8814: :
8815: else
8816: lt_prog_compiler_static=
8817: fi
1.1 misha 8818:
8819:
8820:
8821:
8822:
8823:
8824:
1.10 ! moko 8825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8826: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 8827: if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
! 8828: $as_echo_n "(cached) " >&6
1.8 moko 8829: else
8830: lt_cv_prog_compiler_c_o=no
8831: $RM -r conftest 2>/dev/null
8832: mkdir conftest
8833: cd conftest
8834: mkdir out
8835: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8836:
8837: lt_compiler_flag="-o out/conftest2.$ac_objext"
8838: # Insert the option either (1) after the last *FLAGS variable, or
8839: # (2) before a word containing "conftest.", or (3) at the end.
8840: # Note that $ac_compile itself does not contain backslashes and begins
8841: # with a dollar sign (not a hyphen), so the echo should work correctly.
8842: lt_compile=`echo "$ac_compile" | $SED \
8843: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8844: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8845: -e 's:$: $lt_compiler_flag:'`
8846: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8847: (eval "$lt_compile" 2>out/conftest.err)
8848: ac_status=$?
8849: cat out/conftest.err >&5
8850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8852: then
8853: # The compiler can only warn and ignore the option if not recognized
8854: # So say no if there are warnings
8855: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8856: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8857: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8858: lt_cv_prog_compiler_c_o=yes
8859: fi
8860: fi
8861: chmod u+w . 2>&5
8862: $RM conftest*
8863: # SGI C++ compiler will create directory out/ii_files/ for
8864: # template instantiation
8865: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8866: $RM out/* && rmdir out
8867: cd ..
8868: $RM -r conftest
8869: $RM conftest*
1.1 misha 8870:
1.8 moko 8871: fi
1.10 ! moko 8872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 8873: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misha 8874:
8875:
8876:
8877:
8878:
8879:
1.10 ! moko 8880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8881: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 8882: if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
! 8883: $as_echo_n "(cached) " >&6
1.8 moko 8884: else
8885: lt_cv_prog_compiler_c_o=no
8886: $RM -r conftest 2>/dev/null
8887: mkdir conftest
8888: cd conftest
8889: mkdir out
8890: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891:
8892: lt_compiler_flag="-o out/conftest2.$ac_objext"
8893: # Insert the option either (1) after the last *FLAGS variable, or
8894: # (2) before a word containing "conftest.", or (3) at the end.
8895: # Note that $ac_compile itself does not contain backslashes and begins
8896: # with a dollar sign (not a hyphen), so the echo should work correctly.
8897: lt_compile=`echo "$ac_compile" | $SED \
8898: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900: -e 's:$: $lt_compiler_flag:'`
8901: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8902: (eval "$lt_compile" 2>out/conftest.err)
8903: ac_status=$?
8904: cat out/conftest.err >&5
8905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8907: then
8908: # The compiler can only warn and ignore the option if not recognized
8909: # So say no if there are warnings
8910: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8911: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8912: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8913: lt_cv_prog_compiler_c_o=yes
8914: fi
8915: fi
8916: chmod u+w . 2>&5
8917: $RM conftest*
8918: # SGI C++ compiler will create directory out/ii_files/ for
8919: # template instantiation
8920: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8921: $RM out/* && rmdir out
8922: cd ..
8923: $RM -r conftest
8924: $RM conftest*
1.1 misha 8925:
1.8 moko 8926: fi
1.10 ! moko 8927: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 8928: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1.1 misha 8929:
8930:
8931:
8932:
1.8 moko 8933: hard_links="nottested"
8934: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8935: # do not overwrite the value of need_locks provided by the user
1.10 ! moko 8936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 8937: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.8 moko 8938: hard_links=yes
8939: $RM conftest*
8940: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941: touch conftest.a
8942: ln conftest.a conftest.b 2>&5 || hard_links=no
8943: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.10 ! moko 8944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 8945: $as_echo "$hard_links" >&6; }
1.8 moko 8946: if test "$hard_links" = no; then
1.10 ! moko 8947: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 8948: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 8949: need_locks=warn
8950: fi
8951: else
8952: need_locks=no
8953: fi
1.1 misha 8954:
8955:
8956:
8957:
8958:
8959:
1.10 ! moko 8960: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 8961: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.1 misha 8962:
1.8 moko 8963: runpath_var=
8964: allow_undefined_flag=
8965: always_export_symbols=no
8966: archive_cmds=
8967: archive_expsym_cmds=
8968: compiler_needs_object=no
8969: enable_shared_with_static_runtimes=no
8970: export_dynamic_flag_spec=
8971: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8972: hardcode_automatic=no
8973: hardcode_direct=no
8974: hardcode_direct_absolute=no
8975: hardcode_libdir_flag_spec=
8976: hardcode_libdir_separator=
8977: hardcode_minus_L=no
8978: hardcode_shlibpath_var=unsupported
8979: inherit_rpath=no
8980: link_all_deplibs=unknown
8981: module_cmds=
8982: module_expsym_cmds=
8983: old_archive_from_new_cmds=
8984: old_archive_from_expsyms_cmds=
8985: thread_safe_flag_spec=
8986: whole_archive_flag_spec=
8987: # include_expsyms should be a list of space-separated symbols to be *always*
8988: # included in the symbol list
8989: include_expsyms=
8990: # exclude_expsyms can be an extended regexp of symbols to exclude
8991: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8992: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8993: # as well as any symbol that contains `d'.
8994: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8995: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8996: # platforms (ab)use it in PIC code, but their linkers get confused if
8997: # the symbol is explicitly referenced. Since portable code cannot
8998: # rely on this symbol name, it's probably fine to never include it in
8999: # preloaded symbol tables.
9000: # Exclude shared library initialization/finalization symbols.
9001: extract_expsyms_cmds=
1.1 misha 9002:
1.8 moko 9003: case $host_os in
9004: cygwin* | mingw* | pw32* | cegcc*)
9005: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9006: # When not using gcc, we currently assume that we are using
9007: # Microsoft Visual C++.
9008: if test "$GCC" != yes; then
9009: with_gnu_ld=no
9010: fi
9011: ;;
9012: interix*)
9013: # we just hope/assume this is gcc and not c89 (= MSVC++)
9014: with_gnu_ld=yes
9015: ;;
9016: openbsd*)
9017: with_gnu_ld=no
9018: ;;
9019: esac
1.1 misha 9020:
1.8 moko 9021: ld_shlibs=yes
1.1 misha 9022:
1.8 moko 9023: # On some targets, GNU ld is compatible enough with the native linker
9024: # that we're better off using the native interface for both.
9025: lt_use_gnu_ld_interface=no
9026: if test "$with_gnu_ld" = yes; then
9027: case $host_os in
9028: aix*)
9029: # The AIX port of GNU ld has always aspired to compatibility
9030: # with the native linker. However, as the warning in the GNU ld
9031: # block says, versions before 2.19.5* couldn't really create working
9032: # shared libraries, regardless of the interface used.
9033: case `$LD -v 2>&1` in
9034: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9035: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9036: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9037: *)
9038: lt_use_gnu_ld_interface=yes
9039: ;;
9040: esac
9041: ;;
9042: *)
9043: lt_use_gnu_ld_interface=yes
9044: ;;
9045: esac
9046: fi
1.1 misha 9047:
1.8 moko 9048: if test "$lt_use_gnu_ld_interface" = yes; then
9049: # If archive_cmds runs LD, not CC, wlarc should be empty
9050: wlarc='${wl}'
9051:
9052: # Set some defaults for GNU ld with shared library support. These
9053: # are reset later if shared libraries are not supported. Putting them
9054: # here allows them to be overridden if necessary.
9055: runpath_var=LD_RUN_PATH
9056: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057: export_dynamic_flag_spec='${wl}--export-dynamic'
9058: # ancient GNU ld didn't support --whole-archive et. al.
9059: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9060: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061: else
9062: whole_archive_flag_spec=
9063: fi
9064: supports_anon_versioning=no
9065: case `$LD -v 2>&1` in
9066: *GNU\ gold*) supports_anon_versioning=yes ;;
9067: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9068: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9069: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9070: *\ 2.11.*) ;; # other 2.11 versions
9071: *) supports_anon_versioning=yes ;;
9072: esac
1.1 misha 9073:
1.8 moko 9074: # See if GNU ld supports shared libraries.
9075: case $host_os in
9076: aix[3-9]*)
9077: # On AIX/PPC, the GNU linker is very broken
9078: if test "$host_cpu" != ia64; then
9079: ld_shlibs=no
9080: cat <<_LT_EOF 1>&2
1.1 misha 9081:
1.8 moko 9082: *** Warning: the GNU linker, at least up to release 2.19, is reported
9083: *** to be unable to reliably create shared libraries on AIX.
9084: *** Therefore, libtool is disabling shared libraries support. If you
9085: *** really care for shared libraries, you may want to install binutils
9086: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9087: *** You will then need to restart the configuration process.
1.1 misha 9088:
1.8 moko 9089: _LT_EOF
9090: fi
9091: ;;
1.1 misha 9092:
1.8 moko 9093: amigaos*)
9094: case $host_cpu in
9095: powerpc)
9096: # see comment about AmigaOS4 .so support
9097: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098: archive_expsym_cmds=''
9099: ;;
9100: m68k)
9101: 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)'
9102: hardcode_libdir_flag_spec='-L$libdir'
9103: hardcode_minus_L=yes
9104: ;;
9105: esac
9106: ;;
1.1 misha 9107:
1.8 moko 9108: beos*)
9109: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110: allow_undefined_flag=unsupported
9111: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9112: # support --undefined. This deserves some investigation. FIXME
9113: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114: else
9115: ld_shlibs=no
9116: fi
9117: ;;
1.1 misha 9118:
1.8 moko 9119: cygwin* | mingw* | pw32* | cegcc*)
9120: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9121: # as there is no search path for DLLs.
9122: hardcode_libdir_flag_spec='-L$libdir'
9123: export_dynamic_flag_spec='${wl}--export-all-symbols'
9124: allow_undefined_flag=unsupported
9125: always_export_symbols=no
9126: enable_shared_with_static_runtimes=yes
9127: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9128: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9129:
9130: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9131: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132: # If the export-symbols file already is a .def file (1st line
9133: # is EXPORTS), use it as is; otherwise, prepend...
9134: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9135: cp $export_symbols $output_objdir/$soname.def;
9136: else
9137: echo EXPORTS > $output_objdir/$soname.def;
9138: cat $export_symbols >> $output_objdir/$soname.def;
9139: fi~
9140: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9141: else
9142: ld_shlibs=no
9143: fi
9144: ;;
1.1 misha 9145:
1.8 moko 9146: haiku*)
9147: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148: link_all_deplibs=yes
9149: ;;
1.1 misha 9150:
1.8 moko 9151: interix[3-9]*)
9152: hardcode_direct=no
9153: hardcode_shlibpath_var=no
9154: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9155: export_dynamic_flag_spec='${wl}-E'
9156: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9157: # Instead, shared libraries are loaded at an image base (0x10000000 by
9158: # default) and relocated if they conflict, which is a slow very memory
9159: # consuming and fragmenting process. To avoid this, we pick a random,
9160: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9161: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9162: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9163: 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'
9164: ;;
1.1 misha 9165:
1.8 moko 9166: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9167: tmp_diet=no
9168: if test "$host_os" = linux-dietlibc; then
9169: case $cc_basename in
9170: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9171: esac
9172: fi
9173: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9174: && test "$tmp_diet" = no
9175: then
9176: tmp_addflag=' $pic_flag'
9177: tmp_sharedflag='-shared'
9178: case $cc_basename,$host_cpu in
9179: pgcc*) # Portland Group C compiler
9180: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9181: tmp_addflag=' $pic_flag'
9182: ;;
9183: pgf77* | pgf90* | pgf95* | pgfortran*)
9184: # Portland Group f77 and f90 compilers
9185: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9186: tmp_addflag=' $pic_flag -Mnomain' ;;
9187: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9188: tmp_addflag=' -i_dynamic' ;;
9189: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9190: tmp_addflag=' -i_dynamic -nofor_main' ;;
9191: ifc* | ifort*) # Intel Fortran compiler
9192: tmp_addflag=' -nofor_main' ;;
9193: lf95*) # Lahey Fortran 8.1
9194: whole_archive_flag_spec=
9195: tmp_sharedflag='--shared' ;;
9196: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9197: tmp_sharedflag='-qmkshrobj'
9198: tmp_addflag= ;;
9199: nvcc*) # Cuda Compiler Driver 2.2
9200: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9201: compiler_needs_object=yes
9202: ;;
9203: esac
9204: case `$CC -V 2>&1 | sed 5q` in
9205: *Sun\ C*) # Sun C 5.9
9206: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9207: compiler_needs_object=yes
9208: tmp_sharedflag='-G' ;;
9209: *Sun\ F*) # Sun Fortran 8.3
9210: tmp_sharedflag='-G' ;;
9211: esac
9212: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.1 misha 9213:
1.8 moko 9214: if test "x$supports_anon_versioning" = xyes; then
9215: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9216: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9217: echo "local: *; };" >> $output_objdir/$libname.ver~
9218: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9219: fi
9220:
9221: case $cc_basename in
9222: xlf* | bgf* | bgxlf* | mpixlf*)
9223: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9224: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9225: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9226: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9227: if test "x$supports_anon_versioning" = xyes; then
9228: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230: echo "local: *; };" >> $output_objdir/$libname.ver~
9231: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9232: fi
9233: ;;
9234: esac
9235: else
9236: ld_shlibs=no
9237: fi
9238: ;;
1.1 misha 9239:
1.8 moko 9240: netbsd*)
9241: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9243: wlarc=
9244: else
9245: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9247: fi
9248: ;;
1.1 misha 9249:
1.8 moko 9250: solaris*)
9251: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9252: ld_shlibs=no
9253: cat <<_LT_EOF 1>&2
1.1 misha 9254:
1.8 moko 9255: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9256: *** create shared libraries on Solaris systems. Therefore, libtool
9257: *** is disabling shared libraries support. We urge you to upgrade GNU
9258: *** binutils to release 2.9.1 or newer. Another option is to modify
9259: *** your PATH or compiler configuration so that the native linker is
9260: *** used, and then restart.
1.1 misha 9261:
1.8 moko 9262: _LT_EOF
9263: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9266: else
9267: ld_shlibs=no
9268: fi
9269: ;;
1.1 misha 9270:
1.8 moko 9271: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9272: case `$LD -v 2>&1` in
9273: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9274: ld_shlibs=no
9275: cat <<_LT_EOF 1>&2
1.1 misha 9276:
1.8 moko 9277: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9278: *** reliably create shared libraries on SCO systems. Therefore, libtool
9279: *** is disabling shared libraries support. We urge you to upgrade GNU
9280: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9281: *** your PATH or compiler configuration so that the native linker is
9282: *** used, and then restart.
1.1 misha 9283:
1.8 moko 9284: _LT_EOF
9285: ;;
9286: *)
9287: # For security reasons, it is highly recommended that you always
9288: # use absolute paths for naming shared libraries, and exclude the
9289: # DT_RUNPATH tag from executables and libraries. But doing so
9290: # requires that you compile everything twice, which is a pain.
9291: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295: else
9296: ld_shlibs=no
9297: fi
9298: ;;
9299: esac
9300: ;;
1.1 misha 9301:
1.8 moko 9302: sunos4*)
9303: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9304: wlarc=
9305: hardcode_direct=yes
9306: hardcode_shlibpath_var=no
9307: ;;
1.1 misha 9308:
1.8 moko 9309: *)
9310: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313: else
9314: ld_shlibs=no
9315: fi
9316: ;;
9317: esac
1.1 misha 9318:
1.8 moko 9319: if test "$ld_shlibs" = no; then
9320: runpath_var=
9321: hardcode_libdir_flag_spec=
9322: export_dynamic_flag_spec=
9323: whole_archive_flag_spec=
9324: fi
9325: else
9326: # PORTME fill in a description of your system's linker (not GNU ld)
9327: case $host_os in
9328: aix3*)
9329: allow_undefined_flag=unsupported
9330: always_export_symbols=yes
9331: 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'
9332: # Note: this linker hardcodes the directories in LIBPATH if there
9333: # are no directories specified by -L.
9334: hardcode_minus_L=yes
9335: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9336: # Neither direct hardcoding nor static linking is supported with a
9337: # broken collect2.
9338: hardcode_direct=unsupported
9339: fi
9340: ;;
1.1 misha 9341:
1.8 moko 9342: aix[4-9]*)
9343: if test "$host_cpu" = ia64; then
9344: # On IA64, the linker does run time linking by default, so we don't
9345: # have to do anything special.
9346: aix_use_runtimelinking=no
9347: exp_sym_flag='-Bexport'
9348: no_entry_flag=""
9349: else
9350: # If we're using GNU nm, then we don't want the "-C" option.
9351: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9352: # Also, AIX nm treats weak defined symbols like other global
9353: # defined symbols, whereas GNU nm marks them as "W".
9354: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9355: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9356: else
9357: 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'
9358: fi
9359: aix_use_runtimelinking=no
1.1 misha 9360:
1.8 moko 9361: # Test if we are trying to use run time linking or normal
9362: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9363: # need to do runtime linking.
9364: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9365: for ld_flag in $LDFLAGS; do
9366: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9367: aix_use_runtimelinking=yes
9368: break
9369: fi
9370: done
9371: ;;
9372: esac
1.1 misha 9373:
1.8 moko 9374: exp_sym_flag='-bexport'
9375: no_entry_flag='-bnoentry'
9376: fi
1.1 misha 9377:
1.8 moko 9378: # When large executables or shared objects are built, AIX ld can
9379: # have problems creating the table of contents. If linking a library
9380: # or program results in "error TOC overflow" add -mminimal-toc to
9381: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9382: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9383:
9384: archive_cmds=''
9385: hardcode_direct=yes
9386: hardcode_direct_absolute=yes
9387: hardcode_libdir_separator=':'
9388: link_all_deplibs=yes
9389: file_list_spec='${wl}-f,'
9390:
9391: if test "$GCC" = yes; then
9392: case $host_os in aix4.[012]|aix4.[012].*)
9393: # We only want to do this on AIX 4.2 and lower, the check
9394: # below for broken collect2 doesn't work under 4.3+
9395: collect2name=`${CC} -print-prog-name=collect2`
9396: if test -f "$collect2name" &&
9397: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9398: then
9399: # We have reworked collect2
9400: :
9401: else
9402: # We have old collect2
9403: hardcode_direct=unsupported
9404: # It fails to find uninstalled libraries when the uninstalled
9405: # path is not listed in the libpath. Setting hardcode_minus_L
9406: # to unsupported forces relinking
9407: hardcode_minus_L=yes
9408: hardcode_libdir_flag_spec='-L$libdir'
9409: hardcode_libdir_separator=
9410: fi
9411: ;;
9412: esac
9413: shared_flag='-shared'
9414: if test "$aix_use_runtimelinking" = yes; then
9415: shared_flag="$shared_flag "'${wl}-G'
9416: fi
9417: else
9418: # not using gcc
9419: if test "$host_cpu" = ia64; then
9420: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9421: # chokes on -Wl,-G. The following line is correct:
9422: shared_flag='-G'
9423: else
9424: if test "$aix_use_runtimelinking" = yes; then
9425: shared_flag='${wl}-G'
9426: else
9427: shared_flag='${wl}-bM:SRE'
9428: fi
9429: fi
9430: fi
1.1 misha 9431:
1.8 moko 9432: export_dynamic_flag_spec='${wl}-bexpall'
9433: # It seems that -bexpall does not export symbols beginning with
9434: # underscore (_), so it is better to generate a list of symbols to export.
9435: always_export_symbols=yes
9436: if test "$aix_use_runtimelinking" = yes; then
9437: # Warning - without using the other runtime loading flags (-brtl),
9438: # -berok will link without error, but may produce a broken library.
9439: allow_undefined_flag='-berok'
9440: # Determine the default libpath from the value encoded in an
9441: # empty executable.
9442: if test "${lt_cv_aix_libpath+set}" = set; then
9443: aix_libpath=$lt_cv_aix_libpath
9444: else
1.10 ! moko 9445: if test "${lt_cv_aix_libpath_+set}" = set; then :
! 9446: $as_echo_n "(cached) " >&6
1.1 misha 9447: else
1.10 ! moko 9448: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 9449: /* end confdefs.h. */
1.8 moko 9450:
9451: int
9452: main ()
9453: {
9454:
9455: ;
9456: return 0;
9457: }
1.1 misha 9458: _ACEOF
1.10 ! moko 9459: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 9460:
9461: lt_aix_libpath_sed='
9462: /Import File Strings/,/^$/ {
9463: /^0/ {
9464: s/^0 *\([^ ]*\) *$/\1/
9465: p
9466: }
9467: }'
9468: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9469: # Check for a 64-bit object if we didn't find anything.
9470: if test -z "$lt_cv_aix_libpath_"; then
9471: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9472: fi
1.1 misha 9473: fi
1.10 ! moko 9474: rm -f core conftest.err conftest.$ac_objext \
! 9475: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9476: if test -z "$lt_cv_aix_libpath_"; then
9477: lt_cv_aix_libpath_="/usr/lib:/lib"
9478: fi
9479:
9480: fi
9481:
9482: aix_libpath=$lt_cv_aix_libpath_
9483: fi
1.1 misha 9484:
1.8 moko 9485: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9487: else
9488: if test "$host_cpu" = ia64; then
9489: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9490: allow_undefined_flag="-z nodefs"
9491: 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"
9492: else
9493: # Determine the default libpath from the value encoded in an
9494: # empty executable.
9495: if test "${lt_cv_aix_libpath+set}" = set; then
9496: aix_libpath=$lt_cv_aix_libpath
9497: else
1.10 ! moko 9498: if test "${lt_cv_aix_libpath_+set}" = set; then :
! 9499: $as_echo_n "(cached) " >&6
1.8 moko 9500: else
1.10 ! moko 9501: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 9502: /* end confdefs.h. */
1.8 moko 9503:
9504: int
9505: main ()
9506: {
9507:
9508: ;
9509: return 0;
9510: }
1.1 misha 9511: _ACEOF
1.10 ! moko 9512: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 9513:
9514: lt_aix_libpath_sed='
9515: /Import File Strings/,/^$/ {
9516: /^0/ {
9517: s/^0 *\([^ ]*\) *$/\1/
9518: p
9519: }
9520: }'
9521: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522: # Check for a 64-bit object if we didn't find anything.
9523: if test -z "$lt_cv_aix_libpath_"; then
9524: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.1 misha 9525: fi
9526: fi
1.10 ! moko 9527: rm -f core conftest.err conftest.$ac_objext \
! 9528: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9529: if test -z "$lt_cv_aix_libpath_"; then
9530: lt_cv_aix_libpath_="/usr/lib:/lib"
9531: fi
9532:
9533: fi
9534:
9535: aix_libpath=$lt_cv_aix_libpath_
9536: fi
9537:
9538: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9539: # Warning - without using the other run time loading flags,
9540: # -berok will link without error, but may produce a broken library.
9541: no_undefined_flag=' ${wl}-bernotok'
9542: allow_undefined_flag=' ${wl}-berok'
9543: if test "$with_gnu_ld" = yes; then
9544: # We only use this code for GNU lds that support --whole-archive.
9545: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9546: else
9547: # Exported symbols can be pulled into shared objects from archives
9548: whole_archive_flag_spec='$convenience'
9549: fi
9550: archive_cmds_need_lc=yes
9551: # This is similar to how AIX traditionally builds its shared libraries.
9552: 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'
9553: fi
9554: fi
9555: ;;
9556:
9557: amigaos*)
9558: case $host_cpu in
9559: powerpc)
9560: # see comment about AmigaOS4 .so support
9561: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562: archive_expsym_cmds=''
9563: ;;
9564: m68k)
9565: 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)'
9566: hardcode_libdir_flag_spec='-L$libdir'
9567: hardcode_minus_L=yes
9568: ;;
9569: esac
9570: ;;
9571:
9572: bsdi[45]*)
9573: export_dynamic_flag_spec=-rdynamic
9574: ;;
9575:
9576: cygwin* | mingw* | pw32* | cegcc*)
9577: # When not using gcc, we currently assume that we are using
9578: # Microsoft Visual C++.
9579: # hardcode_libdir_flag_spec is actually meaningless, as there is
9580: # no search path for DLLs.
9581: case $cc_basename in
9582: cl*)
9583: # Native MSVC
9584: hardcode_libdir_flag_spec=' '
9585: allow_undefined_flag=unsupported
9586: always_export_symbols=yes
9587: file_list_spec='@'
9588: # Tell ltmain to make .lib files, not .a files.
9589: libext=lib
9590: # Tell ltmain to make .dll files, not .so files.
9591: shrext_cmds=".dll"
9592: # FIXME: Setting linknames here is a bad hack.
9593: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9594: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9595: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9596: else
9597: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9598: fi~
9599: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9600: linknames='
9601: # The linker will not automatically build a static lib if we build a DLL.
9602: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9603: enable_shared_with_static_runtimes=yes
9604: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9605: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9606: # Don't use ranlib
9607: old_postinstall_cmds='chmod 644 $oldlib'
9608: postlink_cmds='lt_outputfile="@OUTPUT@"~
9609: lt_tool_outputfile="@TOOL_OUTPUT@"~
9610: case $lt_outputfile in
9611: *.exe|*.EXE) ;;
9612: *)
9613: lt_outputfile="$lt_outputfile.exe"
9614: lt_tool_outputfile="$lt_tool_outputfile.exe"
9615: ;;
9616: esac~
9617: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9618: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9619: $RM "$lt_outputfile.manifest";
9620: fi'
9621: ;;
9622: *)
9623: # Assume MSVC wrapper
9624: hardcode_libdir_flag_spec=' '
9625: allow_undefined_flag=unsupported
9626: # Tell ltmain to make .lib files, not .a files.
9627: libext=lib
9628: # Tell ltmain to make .dll files, not .so files.
9629: shrext_cmds=".dll"
9630: # FIXME: Setting linknames here is a bad hack.
9631: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9632: # The linker will automatically build a .lib file if we build a DLL.
9633: old_archive_from_new_cmds='true'
9634: # FIXME: Should let the user specify the lib program.
9635: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9636: enable_shared_with_static_runtimes=yes
9637: ;;
9638: esac
9639: ;;
9640:
9641: darwin* | rhapsody*)
9642:
9643:
9644: archive_cmds_need_lc=no
9645: hardcode_direct=no
9646: hardcode_automatic=yes
9647: hardcode_shlibpath_var=unsupported
9648: if test "$lt_cv_ld_force_load" = "yes"; then
9649: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9650:
9651: else
9652: whole_archive_flag_spec=''
9653: fi
9654: link_all_deplibs=yes
9655: allow_undefined_flag="$_lt_dar_allow_undefined"
9656: case $cc_basename in
9657: ifort*) _lt_dar_can_shared=yes ;;
9658: *) _lt_dar_can_shared=$GCC ;;
9659: esac
9660: if test "$_lt_dar_can_shared" = "yes"; then
9661: output_verbose_link_cmd=func_echo_all
9662: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9663: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9664: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9665: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9666:
9667: else
9668: ld_shlibs=no
9669: fi
9670:
9671: ;;
9672:
9673: dgux*)
9674: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675: hardcode_libdir_flag_spec='-L$libdir'
9676: hardcode_shlibpath_var=no
9677: ;;
9678:
9679: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9680: # support. Future versions do this automatically, but an explicit c++rt0.o
9681: # does not break anything, and helps significantly (at the cost of a little
9682: # extra space).
9683: freebsd2.2*)
9684: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9685: hardcode_libdir_flag_spec='-R$libdir'
9686: hardcode_direct=yes
9687: hardcode_shlibpath_var=no
9688: ;;
9689:
9690: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9691: freebsd2.*)
9692: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9693: hardcode_direct=yes
9694: hardcode_minus_L=yes
9695: hardcode_shlibpath_var=no
9696: ;;
9697:
9698: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9699: freebsd* | dragonfly*)
9700: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701: hardcode_libdir_flag_spec='-R$libdir'
9702: hardcode_direct=yes
9703: hardcode_shlibpath_var=no
9704: ;;
9705:
9706: hpux9*)
9707: if test "$GCC" = yes; then
9708: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9709: else
9710: 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'
9711: fi
9712: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9713: hardcode_libdir_separator=:
9714: hardcode_direct=yes
9715:
9716: # hardcode_minus_L: Not really in the search PATH,
9717: # but as the default location of the library.
9718: hardcode_minus_L=yes
9719: export_dynamic_flag_spec='${wl}-E'
9720: ;;
9721:
9722: hpux10*)
9723: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9724: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725: else
9726: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9727: fi
9728: if test "$with_gnu_ld" = no; then
9729: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9730: hardcode_libdir_separator=:
9731: hardcode_direct=yes
9732: hardcode_direct_absolute=yes
9733: export_dynamic_flag_spec='${wl}-E'
9734: # hardcode_minus_L: Not really in the search PATH,
9735: # but as the default location of the library.
9736: hardcode_minus_L=yes
9737: fi
9738: ;;
9739:
9740: hpux11*)
9741: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9742: case $host_cpu in
9743: hppa*64*)
9744: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745: ;;
9746: ia64*)
9747: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9748: ;;
9749: *)
9750: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9751: ;;
9752: esac
9753: else
9754: case $host_cpu in
9755: hppa*64*)
9756: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9757: ;;
9758: ia64*)
9759: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9760: ;;
9761: *)
1.1 misha 9762:
1.8 moko 9763: # Older versions of the 11.00 compiler do not understand -b yet
9764: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.10 ! moko 9765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 9766: $as_echo_n "checking if $CC understands -b... " >&6; }
! 9767: if test "${lt_cv_prog_compiler__b+set}" = set; then :
! 9768: $as_echo_n "(cached) " >&6
1.1 misha 9769: else
1.8 moko 9770: lt_cv_prog_compiler__b=no
9771: save_LDFLAGS="$LDFLAGS"
9772: LDFLAGS="$LDFLAGS -b"
9773: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9774: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9775: # The linker can only warn and ignore the option if not recognized
9776: # So say no if there are warnings
9777: if test -s conftest.err; then
9778: # Append any errors to the config.log.
9779: cat conftest.err 1>&5
9780: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9781: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782: if diff conftest.exp conftest.er2 >/dev/null; then
9783: lt_cv_prog_compiler__b=yes
9784: fi
9785: else
9786: lt_cv_prog_compiler__b=yes
9787: fi
9788: fi
9789: $RM -r conftest*
9790: LDFLAGS="$save_LDFLAGS"
1.1 misha 9791:
9792: fi
1.10 ! moko 9793: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 9794: $as_echo "$lt_cv_prog_compiler__b" >&6; }
1.1 misha 9795:
1.8 moko 9796: if test x"$lt_cv_prog_compiler__b" = xyes; then
9797: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798: else
9799: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.1 misha 9800: fi
9801:
1.8 moko 9802: ;;
9803: esac
9804: fi
9805: if test "$with_gnu_ld" = no; then
9806: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9807: hardcode_libdir_separator=:
9808:
9809: case $host_cpu in
9810: hppa*64*|ia64*)
9811: hardcode_direct=no
9812: hardcode_shlibpath_var=no
9813: ;;
9814: *)
9815: hardcode_direct=yes
9816: hardcode_direct_absolute=yes
9817: export_dynamic_flag_spec='${wl}-E'
1.1 misha 9818:
1.8 moko 9819: # hardcode_minus_L: Not really in the search PATH,
9820: # but as the default location of the library.
9821: hardcode_minus_L=yes
9822: ;;
9823: esac
9824: fi
9825: ;;
1.1 misha 9826:
1.8 moko 9827: irix5* | irix6* | nonstopux*)
9828: if test "$GCC" = yes; then
9829: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9830: # Try to use the -exported_symbol ld option, if it does not
9831: # work, assume that -exports_file does not work either and
9832: # implicitly export all symbols.
9833: # This should be the same for all languages, so no per-tag cache variable.
1.10 ! moko 9834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 9835: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 9836: if test "${lt_cv_irix_exported_symbol+set}" = set; then :
! 9837: $as_echo_n "(cached) " >&6
1.1 misha 9838: else
1.8 moko 9839: save_LDFLAGS="$LDFLAGS"
9840: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
1.10 ! moko 9841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misha 9842: /* end confdefs.h. */
1.8 moko 9843: int foo (void) { return 0; }
1.1 misha 9844: _ACEOF
1.10 ! moko 9845: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 9846: lt_cv_irix_exported_symbol=yes
1.1 misha 9847: else
1.10 ! moko 9848: lt_cv_irix_exported_symbol=no
1.1 misha 9849: fi
1.10 ! moko 9850: rm -f core conftest.err conftest.$ac_objext \
! 9851: conftest$ac_exeext conftest.$ac_ext
1.8 moko 9852: LDFLAGS="$save_LDFLAGS"
1.1 misha 9853: fi
1.10 ! moko 9854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 9855: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
1.8 moko 9856: if test "$lt_cv_irix_exported_symbol" = yes; then
9857: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9858: fi
9859: else
9860: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9861: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9862: fi
9863: archive_cmds_need_lc='no'
9864: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865: hardcode_libdir_separator=:
9866: inherit_rpath=yes
9867: link_all_deplibs=yes
9868: ;;
1.1 misha 9869:
1.8 moko 9870: netbsd*)
9871: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9872: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9873: else
9874: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9875: fi
9876: hardcode_libdir_flag_spec='-R$libdir'
9877: hardcode_direct=yes
9878: hardcode_shlibpath_var=no
9879: ;;
1.1 misha 9880:
1.8 moko 9881: newsos6)
9882: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883: hardcode_direct=yes
9884: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885: hardcode_libdir_separator=:
9886: hardcode_shlibpath_var=no
9887: ;;
1.1 misha 9888:
1.8 moko 9889: *nto* | *qnx*)
9890: ;;
1.1 misha 9891:
1.8 moko 9892: openbsd*)
9893: if test -f /usr/libexec/ld.so; then
9894: hardcode_direct=yes
9895: hardcode_shlibpath_var=no
9896: hardcode_direct_absolute=yes
9897: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9898: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9899: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9900: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9901: export_dynamic_flag_spec='${wl}-E'
9902: else
9903: case $host_os in
9904: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9905: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9906: hardcode_libdir_flag_spec='-R$libdir'
9907: ;;
9908: *)
9909: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9910: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9911: ;;
9912: esac
9913: fi
9914: else
9915: ld_shlibs=no
9916: fi
9917: ;;
1.1 misha 9918:
1.8 moko 9919: os2*)
9920: hardcode_libdir_flag_spec='-L$libdir'
9921: hardcode_minus_L=yes
9922: allow_undefined_flag=unsupported
9923: 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'
9924: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9925: ;;
1.1 misha 9926:
1.8 moko 9927: osf3*)
9928: if test "$GCC" = yes; then
9929: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9930: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9931: else
9932: allow_undefined_flag=' -expect_unresolved \*'
9933: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9934: fi
9935: archive_cmds_need_lc='no'
9936: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9937: hardcode_libdir_separator=:
9938: ;;
1.1 misha 9939:
1.8 moko 9940: osf4* | osf5*) # as osf3* with the addition of -msym flag
9941: if test "$GCC" = yes; then
9942: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9943: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9944: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9945: else
9946: allow_undefined_flag=' -expect_unresolved \*'
9947: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9948: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9949: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9950:
9951: # Both c and cxx compiler support -rpath directly
9952: hardcode_libdir_flag_spec='-rpath $libdir'
9953: fi
9954: archive_cmds_need_lc='no'
9955: hardcode_libdir_separator=:
9956: ;;
9957:
9958: solaris*)
9959: no_undefined_flag=' -z defs'
9960: if test "$GCC" = yes; then
9961: wlarc='${wl}'
9962: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9963: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9964: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9965: else
9966: case `$CC -V 2>&1` in
9967: *"Compilers 5.0"*)
9968: wlarc=''
9969: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9971: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9972: ;;
9973: *)
9974: wlarc='${wl}'
9975: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9977: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9978: ;;
9979: esac
9980: fi
9981: hardcode_libdir_flag_spec='-R$libdir'
9982: hardcode_shlibpath_var=no
9983: case $host_os in
9984: solaris2.[0-5] | solaris2.[0-5].*) ;;
9985: *)
9986: # The compiler driver will combine and reorder linker options,
9987: # but understands `-z linker_flag'. GCC discards it without `$wl',
9988: # but is careful enough not to reorder.
9989: # Supported since Solaris 2.6 (maybe 2.5.1?)
9990: if test "$GCC" = yes; then
9991: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9992: else
9993: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9994: fi
9995: ;;
9996: esac
9997: link_all_deplibs=yes
9998: ;;
9999:
10000: sunos4*)
10001: if test "x$host_vendor" = xsequent; then
10002: # Use $CC to link under sequent, because it throws in some extra .o
10003: # files that make .init and .fini sections work.
10004: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10005: else
10006: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10007: fi
10008: hardcode_libdir_flag_spec='-L$libdir'
10009: hardcode_direct=yes
10010: hardcode_minus_L=yes
10011: hardcode_shlibpath_var=no
10012: ;;
10013:
10014: sysv4)
10015: case $host_vendor in
10016: sni)
10017: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018: hardcode_direct=yes # is this really true???
10019: ;;
10020: siemens)
10021: ## LD is ld it makes a PLAMLIB
10022: ## CC just makes a GrossModule.
10023: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10024: reload_cmds='$CC -r -o $output$reload_objs'
10025: hardcode_direct=no
10026: ;;
10027: motorola)
10028: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10030: ;;
10031: esac
10032: runpath_var='LD_RUN_PATH'
10033: hardcode_shlibpath_var=no
10034: ;;
10035:
10036: sysv4.3*)
10037: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038: hardcode_shlibpath_var=no
10039: export_dynamic_flag_spec='-Bexport'
10040: ;;
10041:
10042: sysv4*MP*)
10043: if test -d /usr/nec; then
10044: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045: hardcode_shlibpath_var=no
10046: runpath_var=LD_RUN_PATH
10047: hardcode_runpath_var=yes
10048: ld_shlibs=yes
10049: fi
10050: ;;
10051:
10052: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10053: no_undefined_flag='${wl}-z,text'
10054: archive_cmds_need_lc=no
10055: hardcode_shlibpath_var=no
10056: runpath_var='LD_RUN_PATH'
10057:
10058: if test "$GCC" = yes; then
10059: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061: else
10062: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064: fi
10065: ;;
10066:
10067: sysv5* | sco3.2v5* | sco5v6*)
10068: # Note: We can NOT use -z defs as we might desire, because we do not
10069: # link with -lc, and that would cause any symbols used from libc to
10070: # always be unresolved, which means just about no library would
10071: # ever link correctly. If we're not using GNU ld we use -z text
10072: # though, which does catch some bad symbols but isn't as heavy-handed
10073: # as -z defs.
10074: no_undefined_flag='${wl}-z,text'
10075: allow_undefined_flag='${wl}-z,nodefs'
10076: archive_cmds_need_lc=no
10077: hardcode_shlibpath_var=no
10078: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10079: hardcode_libdir_separator=':'
10080: link_all_deplibs=yes
10081: export_dynamic_flag_spec='${wl}-Bexport'
10082: runpath_var='LD_RUN_PATH'
10083:
10084: if test "$GCC" = yes; then
10085: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087: else
10088: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090: fi
10091: ;;
1.1 misha 10092:
1.8 moko 10093: uts4*)
10094: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095: hardcode_libdir_flag_spec='-L$libdir'
10096: hardcode_shlibpath_var=no
1.1 misha 10097: ;;
1.8 moko 10098:
1.1 misha 10099: *)
1.8 moko 10100: ld_shlibs=no
1.1 misha 10101: ;;
1.8 moko 10102: esac
10103:
10104: if test x$host_vendor = xsni; then
10105: case $host in
10106: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10107: export_dynamic_flag_spec='${wl}-Blargedynsym'
10108: ;;
10109: esac
10110: fi
1.1 misha 10111: fi
10112:
1.10 ! moko 10113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
! 10114: $as_echo "$ld_shlibs" >&6; }
1.8 moko 10115: test "$ld_shlibs" = no && can_build_shared=no
10116:
10117: with_gnu_ld=$with_gnu_ld
1.1 misha 10118:
10119:
10120:
10121:
10122:
10123:
10124:
10125:
10126:
10127:
10128:
10129:
10130:
10131:
10132:
1.8 moko 10133: #
10134: # Do we need to explicitly link libc?
10135: #
10136: case "x$archive_cmds_need_lc" in
10137: x|xyes)
10138: # Assume -lc should be added
10139: archive_cmds_need_lc=yes
10140:
10141: if test "$enable_shared" = yes && test "$GCC" = yes; then
10142: case $archive_cmds in
10143: *'~'*)
10144: # FIXME: we may have to deal with multi-command sequences.
10145: ;;
10146: '$CC '*)
10147: # Test whether the compiler implicitly links with -lc since on some
10148: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10149: # to ld, don't add -lc before -lgcc.
1.10 ! moko 10150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 10151: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
! 10152: if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
! 10153: $as_echo_n "(cached) " >&6
1.1 misha 10154: else
1.8 moko 10155: $RM conftest*
10156: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157:
1.10 ! moko 10158: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 10159: (eval $ac_compile) 2>&5
10160: ac_status=$?
1.10 ! moko 10161: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10162: test $ac_status = 0; } 2>conftest.err; then
1.8 moko 10163: soname=conftest
10164: lib=conftest
10165: libobjs=conftest.$ac_objext
10166: deplibs=
10167: wl=$lt_prog_compiler_wl
10168: pic_flag=$lt_prog_compiler_pic
10169: compiler_flags=-v
10170: linker_flags=-v
10171: verstring=
10172: output_objdir=.
10173: libname=conftest
10174: lt_save_allow_undefined_flag=$allow_undefined_flag
10175: allow_undefined_flag=
1.10 ! moko 10176: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.8 moko 10177: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10178: ac_status=$?
1.10 ! moko 10179: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 10180: test $ac_status = 0; }
1.8 moko 10181: then
10182: lt_cv_archive_cmds_need_lc=no
10183: else
10184: lt_cv_archive_cmds_need_lc=yes
10185: fi
10186: allow_undefined_flag=$lt_save_allow_undefined_flag
10187: else
10188: cat conftest.err 1>&5
10189: fi
10190: $RM conftest*
10191:
1.1 misha 10192: fi
1.10 ! moko 10193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 10194: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
1.8 moko 10195: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10196: ;;
10197: esac
10198: fi
10199: ;;
10200: esac
10201:
10202:
10203:
10204:
10205:
10206:
10207:
10208:
10209:
10210:
10211:
10212:
10213:
10214:
10215:
10216:
10217:
10218:
10219:
10220:
10221:
10222:
10223:
10224:
10225:
10226:
10227:
10228:
10229:
10230:
10231:
10232:
10233:
10234:
10235:
10236:
10237:
10238:
10239:
10240:
10241:
10242:
10243:
10244:
10245:
10246:
10247:
10248:
10249:
10250:
10251:
10252:
10253:
10254:
10255:
10256:
10257:
10258:
10259:
10260:
10261:
1.1 misha 10262:
10263:
10264:
10265:
10266:
10267:
10268:
10269:
10270:
10271:
10272:
10273:
10274:
10275:
10276:
10277:
10278:
10279:
10280:
10281:
10282:
10283:
10284:
10285:
10286:
10287:
10288:
10289:
10290:
10291:
10292:
10293:
10294:
10295:
10296:
10297:
10298:
10299:
10300:
10301:
10302:
10303:
10304:
10305:
10306:
10307:
10308:
10309:
10310:
10311:
10312:
10313:
10314:
10315:
10316:
10317:
10318:
10319:
10320:
10321:
10322:
10323:
10324:
10325:
10326:
10327:
10328:
10329:
10330:
10331:
10332:
10333:
10334:
10335:
10336:
10337:
10338:
10339:
10340:
10341:
10342:
10343:
10344:
10345:
10346:
10347:
10348:
10349:
10350:
10351:
10352:
1.10 ! moko 10353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 10354: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.1 misha 10355:
1.8 moko 10356: if test "$GCC" = yes; then
10357: case $host_os in
10358: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10359: *) lt_awk_arg="/^libraries:/" ;;
10360: esac
10361: case $host_os in
10362: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10363: *) lt_sed_strip_eq="s,=/,/,g" ;;
10364: esac
10365: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10366: case $lt_search_path_spec in
10367: *\;*)
10368: # if the path contains ";" then we assume it to be the separator
10369: # otherwise default to the standard path separator (i.e. ":") - it is
10370: # assumed that no part of a normal pathname contains ";" but that should
10371: # okay in the real world where ";" in dirpaths is itself problematic.
10372: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10373: ;;
10374: *)
10375: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10376: ;;
10377: esac
10378: # Ok, now we have the path, separated by spaces, we can step through it
10379: # and add multilib dir if necessary.
10380: lt_tmp_lt_search_path_spec=
10381: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10382: for lt_sys_path in $lt_search_path_spec; do
10383: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10384: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10385: else
10386: test -d "$lt_sys_path" && \
10387: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10388: fi
10389: done
10390: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10391: BEGIN {RS=" "; FS="/|\n";} {
10392: lt_foo="";
10393: lt_count=0;
10394: for (lt_i = NF; lt_i > 0; lt_i--) {
10395: if ($lt_i != "" && $lt_i != ".") {
10396: if ($lt_i == "..") {
10397: lt_count++;
10398: } else {
10399: if (lt_count == 0) {
10400: lt_foo="/" $lt_i lt_foo;
10401: } else {
10402: lt_count--;
10403: }
10404: }
10405: }
10406: }
10407: if (lt_foo != "") { lt_freq[lt_foo]++; }
10408: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10409: }'`
10410: # AWK program above erroneously prepends '/' to C:/dos/paths
10411: # for these hosts.
10412: case $host_os in
10413: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10414: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10415: esac
10416: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1.1 misha 10417: else
1.8 moko 10418: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.1 misha 10419: fi
1.8 moko 10420: library_names_spec=
10421: libname_spec='lib$name'
10422: soname_spec=
10423: shrext_cmds=".so"
10424: postinstall_cmds=
10425: postuninstall_cmds=
10426: finish_cmds=
10427: finish_eval=
10428: shlibpath_var=
10429: shlibpath_overrides_runpath=unknown
10430: version_type=none
10431: dynamic_linker="$host_os ld.so"
10432: sys_lib_dlsearch_path_spec="/lib /usr/lib"
10433: need_lib_prefix=unknown
10434: hardcode_into_libs=no
10435:
10436: # when you set need_version to no, make sure it does not cause -set_version
10437: # flags to be left without arguments
10438: need_version=unknown
10439:
10440: case $host_os in
10441: aix3*)
10442: version_type=linux # correct to gnu/linux during the next big refactor
10443: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10444: shlibpath_var=LIBPATH
10445:
10446: # AIX 3 has no versioning support, so we append a major version to the name.
10447: soname_spec='${libname}${release}${shared_ext}$major'
10448: ;;
1.1 misha 10449:
1.8 moko 10450: aix[4-9]*)
10451: version_type=linux # correct to gnu/linux during the next big refactor
10452: need_lib_prefix=no
10453: need_version=no
10454: hardcode_into_libs=yes
10455: if test "$host_cpu" = ia64; then
10456: # AIX 5 supports IA64
10457: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10458: shlibpath_var=LD_LIBRARY_PATH
10459: else
10460: # With GCC up to 2.95.x, collect2 would create an import file
10461: # for dependence libraries. The import file would start with
10462: # the line `#! .'. This would cause the generated library to
10463: # depend on `.', always an invalid library. This was fixed in
10464: # development snapshots of GCC prior to 3.0.
10465: case $host_os in
10466: aix4 | aix4.[01] | aix4.[01].*)
10467: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10468: echo ' yes '
10469: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10470: :
10471: else
10472: can_build_shared=no
10473: fi
10474: ;;
10475: esac
10476: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10477: # soname into executable. Probably we can add versioning support to
10478: # collect2, so additional links can be useful in future.
10479: if test "$aix_use_runtimelinking" = yes; then
10480: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10481: # instead of lib<name>.a to let people know that these are not
10482: # typical AIX shared libraries.
10483: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.1 misha 10484: else
1.8 moko 10485: # We preserve .a as extension for shared libraries through AIX4.2
10486: # and later when we are not doing run time linking.
10487: library_names_spec='${libname}${release}.a $libname.a'
10488: soname_spec='${libname}${release}${shared_ext}$major'
10489: fi
10490: shlibpath_var=LIBPATH
10491: fi
10492: ;;
10493:
10494: amigaos*)
10495: case $host_cpu in
10496: powerpc)
10497: # Since July 2007 AmigaOS4 officially supports .so libraries.
10498: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10499: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500: ;;
10501: m68k)
10502: library_names_spec='$libname.ixlibrary $libname.a'
10503: # Create ${libname}_ixlibrary.a entries in /sys/libs.
10504: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10505: ;;
10506: esac
10507: ;;
10508:
10509: beos*)
10510: library_names_spec='${libname}${shared_ext}'
10511: dynamic_linker="$host_os ld.so"
10512: shlibpath_var=LIBRARY_PATH
10513: ;;
10514:
10515: bsdi[45]*)
10516: version_type=linux # correct to gnu/linux during the next big refactor
10517: need_version=no
10518: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519: soname_spec='${libname}${release}${shared_ext}$major'
10520: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10521: shlibpath_var=LD_LIBRARY_PATH
10522: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10523: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10524: # the default ld.so.conf also contains /usr/contrib/lib and
10525: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10526: # libtool to hard-code these into programs
10527: ;;
10528:
10529: cygwin* | mingw* | pw32* | cegcc*)
10530: version_type=windows
10531: shrext_cmds=".dll"
10532: need_version=no
10533: need_lib_prefix=no
10534:
10535: case $GCC,$cc_basename in
10536: yes,*)
10537: # gcc
10538: library_names_spec='$libname.dll.a'
10539: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10540: postinstall_cmds='base_file=`basename \${file}`~
10541: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10542: dldir=$destdir/`dirname \$dlpath`~
10543: test -d \$dldir || mkdir -p \$dldir~
10544: $install_prog $dir/$dlname \$dldir/$dlname~
10545: chmod a+x \$dldir/$dlname~
10546: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10547: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10548: fi'
10549: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10550: dlpath=$dir/\$dldll~
10551: $RM \$dlpath'
10552: shlibpath_overrides_runpath=yes
10553:
10554: case $host_os in
10555: cygwin*)
10556: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10557: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10558:
10559: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10560: ;;
10561: mingw* | cegcc*)
10562: # MinGW DLLs use traditional 'lib' prefix
10563: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10564: ;;
10565: pw32*)
10566: # pw32 DLLs use 'pw' prefix rather than 'lib'
10567: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10568: ;;
10569: esac
10570: dynamic_linker='Win32 ld.exe'
10571: ;;
10572:
10573: *,cl*)
10574: # Native MSVC
10575: libname_spec='$name'
10576: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10577: library_names_spec='${libname}.dll.lib'
10578:
10579: case $build_os in
10580: mingw*)
10581: sys_lib_search_path_spec=
10582: lt_save_ifs=$IFS
10583: IFS=';'
10584: for lt_path in $LIB
10585: do
10586: IFS=$lt_save_ifs
10587: # Let DOS variable expansion print the short 8.3 style file name.
10588: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10589: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10590: done
10591: IFS=$lt_save_ifs
10592: # Convert to MSYS style.
10593: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10594: ;;
10595: cygwin*)
10596: # Convert to unix form, then to dos form, then back to unix form
10597: # but this time dos style (no spaces!) so that the unix form looks
10598: # like /cygdrive/c/PROGRA~1:/cygdr...
10599: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10600: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10601: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10602: ;;
10603: *)
10604: sys_lib_search_path_spec="$LIB"
10605: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10606: # It is most probably a Windows format PATH.
10607: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10608: else
10609: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610: fi
10611: # FIXME: find the short name or the path components, as spaces are
10612: # common. (e.g. "Program Files" -> "PROGRA~1")
10613: ;;
10614: esac
10615:
10616: # DLL is installed to $(libdir)/../bin by postinstall_cmds
10617: postinstall_cmds='base_file=`basename \${file}`~
10618: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10619: dldir=$destdir/`dirname \$dlpath`~
10620: test -d \$dldir || mkdir -p \$dldir~
10621: $install_prog $dir/$dlname \$dldir/$dlname'
10622: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10623: dlpath=$dir/\$dldll~
10624: $RM \$dlpath'
10625: shlibpath_overrides_runpath=yes
10626: dynamic_linker='Win32 link.exe'
10627: ;;
10628:
10629: *)
10630: # Assume MSVC wrapper
10631: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10632: dynamic_linker='Win32 ld.exe'
10633: ;;
10634: esac
10635: # FIXME: first we should search . and the directory the executable is in
10636: shlibpath_var=PATH
10637: ;;
10638:
10639: darwin* | rhapsody*)
10640: dynamic_linker="$host_os dyld"
10641: version_type=darwin
10642: need_lib_prefix=no
10643: need_version=no
10644: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10645: soname_spec='${libname}${release}${major}$shared_ext'
10646: shlibpath_overrides_runpath=yes
10647: shlibpath_var=DYLD_LIBRARY_PATH
10648: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.1 misha 10649:
1.8 moko 10650: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10651: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10652: ;;
1.1 misha 10653:
1.8 moko 10654: dgux*)
10655: version_type=linux # correct to gnu/linux during the next big refactor
10656: need_lib_prefix=no
10657: need_version=no
10658: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10659: soname_spec='${libname}${release}${shared_ext}$major'
10660: shlibpath_var=LD_LIBRARY_PATH
10661: ;;
1.1 misha 10662:
1.8 moko 10663: freebsd* | dragonfly*)
10664: # DragonFly does not have aout. When/if they implement a new
10665: # versioning mechanism, adjust this.
10666: if test -x /usr/bin/objformat; then
10667: objformat=`/usr/bin/objformat`
1.1 misha 10668: else
1.8 moko 10669: case $host_os in
10670: freebsd[23].*) objformat=aout ;;
10671: *) objformat=elf ;;
10672: esac
1.1 misha 10673: fi
1.8 moko 10674: version_type=freebsd-$objformat
10675: case $version_type in
10676: freebsd-elf*)
10677: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10678: need_version=no
10679: need_lib_prefix=no
10680: ;;
10681: freebsd-*)
10682: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10683: need_version=yes
10684: ;;
10685: esac
10686: shlibpath_var=LD_LIBRARY_PATH
10687: case $host_os in
10688: freebsd2.*)
10689: shlibpath_overrides_runpath=yes
10690: ;;
10691: freebsd3.[01]* | freebsdelf3.[01]*)
10692: shlibpath_overrides_runpath=yes
10693: hardcode_into_libs=yes
10694: ;;
10695: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10696: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10697: shlibpath_overrides_runpath=no
10698: hardcode_into_libs=yes
10699: ;;
10700: *) # from 4.6 on, and DragonFly
10701: shlibpath_overrides_runpath=yes
10702: hardcode_into_libs=yes
10703: ;;
10704: esac
10705: ;;
10706:
10707: gnu*)
10708: version_type=linux # correct to gnu/linux during the next big refactor
10709: need_lib_prefix=no
10710: need_version=no
10711: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712: soname_spec='${libname}${release}${shared_ext}$major'
10713: shlibpath_var=LD_LIBRARY_PATH
10714: shlibpath_overrides_runpath=no
10715: hardcode_into_libs=yes
10716: ;;
10717:
10718: haiku*)
10719: version_type=linux # correct to gnu/linux during the next big refactor
10720: need_lib_prefix=no
10721: need_version=no
10722: dynamic_linker="$host_os runtime_loader"
10723: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10724: soname_spec='${libname}${release}${shared_ext}$major'
10725: shlibpath_var=LIBRARY_PATH
10726: shlibpath_overrides_runpath=yes
10727: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10728: hardcode_into_libs=yes
10729: ;;
10730:
10731: hpux9* | hpux10* | hpux11*)
10732: # Give a soname corresponding to the major version so that dld.sl refuses to
10733: # link against other versions.
10734: version_type=sunos
10735: need_lib_prefix=no
10736: need_version=no
10737: case $host_cpu in
10738: ia64*)
10739: shrext_cmds='.so'
10740: hardcode_into_libs=yes
10741: dynamic_linker="$host_os dld.so"
10742: shlibpath_var=LD_LIBRARY_PATH
10743: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10744: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745: soname_spec='${libname}${release}${shared_ext}$major'
10746: if test "X$HPUX_IA64_MODE" = X32; then
10747: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10748: else
10749: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10750: fi
10751: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10752: ;;
10753: hppa*64*)
10754: shrext_cmds='.sl'
10755: hardcode_into_libs=yes
10756: dynamic_linker="$host_os dld.sl"
10757: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10758: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760: soname_spec='${libname}${release}${shared_ext}$major'
10761: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10762: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10763: ;;
10764: *)
10765: shrext_cmds='.sl'
10766: dynamic_linker="$host_os dld.sl"
10767: shlibpath_var=SHLIB_PATH
10768: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10769: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770: soname_spec='${libname}${release}${shared_ext}$major'
10771: ;;
10772: esac
10773: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10774: postinstall_cmds='chmod 555 $lib'
10775: # or fails outright, so override atomically:
10776: install_override_mode=555
10777: ;;
10778:
10779: interix[3-9]*)
10780: version_type=linux # correct to gnu/linux during the next big refactor
10781: need_lib_prefix=no
10782: need_version=no
10783: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10784: soname_spec='${libname}${release}${shared_ext}$major'
10785: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10786: shlibpath_var=LD_LIBRARY_PATH
10787: shlibpath_overrides_runpath=no
10788: hardcode_into_libs=yes
10789: ;;
10790:
10791: irix5* | irix6* | nonstopux*)
10792: case $host_os in
10793: nonstopux*) version_type=nonstopux ;;
10794: *)
10795: if test "$lt_cv_prog_gnu_ld" = yes; then
10796: version_type=linux # correct to gnu/linux during the next big refactor
10797: else
10798: version_type=irix
10799: fi ;;
10800: esac
10801: need_lib_prefix=no
10802: need_version=no
10803: soname_spec='${libname}${release}${shared_ext}$major'
10804: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10805: case $host_os in
10806: irix5* | nonstopux*)
10807: libsuff= shlibsuff=
10808: ;;
10809: *)
10810: case $LD in # libtool.m4 will add one of these switches to LD
10811: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10812: libsuff= shlibsuff= libmagic=32-bit;;
10813: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10814: libsuff=32 shlibsuff=N32 libmagic=N32;;
10815: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10816: libsuff=64 shlibsuff=64 libmagic=64-bit;;
10817: *) libsuff= shlibsuff= libmagic=never-match;;
10818: esac
10819: ;;
10820: esac
10821: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10822: shlibpath_overrides_runpath=no
10823: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10824: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10825: hardcode_into_libs=yes
10826: ;;
10827:
10828: # No shared lib support for Linux oldld, aout, or coff.
10829: linux*oldld* | linux*aout* | linux*coff*)
10830: dynamic_linker=no
10831: ;;
10832:
10833: # This must be glibc/ELF.
10834: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10835: version_type=linux # correct to gnu/linux during the next big refactor
10836: need_lib_prefix=no
10837: need_version=no
10838: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839: soname_spec='${libname}${release}${shared_ext}$major'
10840: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10841: shlibpath_var=LD_LIBRARY_PATH
10842: shlibpath_overrides_runpath=no
10843:
10844: # Some binutils ld are patched to set DT_RUNPATH
1.10 ! moko 10845: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
! 10846: $as_echo_n "(cached) " >&6
1.8 moko 10847: else
10848: lt_cv_shlibpath_overrides_runpath=no
10849: save_LDFLAGS=$LDFLAGS
10850: save_libdir=$libdir
10851: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10852: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.10 ! moko 10853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 10854: /* end confdefs.h. */
10855:
10856: int
10857: main ()
10858: {
10859:
10860: ;
10861: return 0;
10862: }
10863: _ACEOF
1.10 ! moko 10864: if ac_fn_c_try_link "$LINENO"; then :
! 10865: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.8 moko 10866: lt_cv_shlibpath_overrides_runpath=yes
10867: fi
10868: fi
1.10 ! moko 10869: rm -f core conftest.err conftest.$ac_objext \
! 10870: conftest$ac_exeext conftest.$ac_ext
1.8 moko 10871: LDFLAGS=$save_LDFLAGS
10872: libdir=$save_libdir
10873:
10874: fi
10875:
10876: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10877:
10878: # This implies no fast_install, which is unacceptable.
10879: # Some rework will be needed to allow for fast_install
10880: # before this can be enabled.
10881: hardcode_into_libs=yes
10882:
10883: # Append ld.so.conf contents to the search path
10884: if test -f /etc/ld.so.conf; then
10885: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10886: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10887: fi
10888:
10889: # We used to test for /lib/ld.so.1 and disable shared libraries on
10890: # powerpc, because MkLinux only supported shared libraries with the
10891: # GNU dynamic linker. Since this was broken with cross compilers,
10892: # most powerpc-linux boxes support dynamic linking these days and
10893: # people can always --disable-shared, the test was removed, and we
10894: # assume the GNU/Linux dynamic linker is in use.
10895: dynamic_linker='GNU/Linux ld.so'
10896: ;;
10897:
10898: netbsd*)
10899: version_type=sunos
10900: need_lib_prefix=no
10901: need_version=no
10902: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10903: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10904: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10905: dynamic_linker='NetBSD (a.out) ld.so'
10906: else
10907: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10908: soname_spec='${libname}${release}${shared_ext}$major'
10909: dynamic_linker='NetBSD ld.elf_so'
10910: fi
10911: shlibpath_var=LD_LIBRARY_PATH
10912: shlibpath_overrides_runpath=yes
10913: hardcode_into_libs=yes
10914: ;;
10915:
10916: newsos6)
10917: version_type=linux # correct to gnu/linux during the next big refactor
10918: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919: shlibpath_var=LD_LIBRARY_PATH
10920: shlibpath_overrides_runpath=yes
10921: ;;
10922:
10923: *nto* | *qnx*)
10924: version_type=qnx
10925: need_lib_prefix=no
10926: need_version=no
10927: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928: soname_spec='${libname}${release}${shared_ext}$major'
10929: shlibpath_var=LD_LIBRARY_PATH
10930: shlibpath_overrides_runpath=no
10931: hardcode_into_libs=yes
10932: dynamic_linker='ldqnx.so'
10933: ;;
10934:
10935: openbsd*)
10936: version_type=sunos
10937: sys_lib_dlsearch_path_spec="/usr/lib"
10938: need_lib_prefix=no
10939: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10940: case $host_os in
10941: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10942: *) need_version=no ;;
10943: esac
10944: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10946: shlibpath_var=LD_LIBRARY_PATH
10947: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10948: case $host_os in
10949: openbsd2.[89] | openbsd2.[89].*)
10950: shlibpath_overrides_runpath=no
10951: ;;
10952: *)
10953: shlibpath_overrides_runpath=yes
10954: ;;
10955: esac
1.1 misha 10956: else
1.8 moko 10957: shlibpath_overrides_runpath=yes
10958: fi
10959: ;;
10960:
10961: os2*)
10962: libname_spec='$name'
10963: shrext_cmds=".dll"
10964: need_lib_prefix=no
10965: library_names_spec='$libname${shared_ext} $libname.a'
10966: dynamic_linker='OS/2 ld.exe'
10967: shlibpath_var=LIBPATH
10968: ;;
10969:
10970: osf3* | osf4* | osf5*)
10971: version_type=osf
10972: need_lib_prefix=no
10973: need_version=no
10974: soname_spec='${libname}${release}${shared_ext}$major'
10975: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976: shlibpath_var=LD_LIBRARY_PATH
10977: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10978: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10979: ;;
10980:
10981: rdos*)
10982: dynamic_linker=no
10983: ;;
10984:
10985: solaris*)
10986: version_type=linux # correct to gnu/linux during the next big refactor
10987: need_lib_prefix=no
10988: need_version=no
10989: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990: soname_spec='${libname}${release}${shared_ext}$major'
10991: shlibpath_var=LD_LIBRARY_PATH
10992: shlibpath_overrides_runpath=yes
10993: hardcode_into_libs=yes
10994: # ldd complains unless libraries are executable
10995: postinstall_cmds='chmod +x $lib'
10996: ;;
10997:
10998: sunos4*)
10999: version_type=sunos
11000: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11001: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11002: shlibpath_var=LD_LIBRARY_PATH
11003: shlibpath_overrides_runpath=yes
11004: if test "$with_gnu_ld" = yes; then
11005: need_lib_prefix=no
11006: fi
11007: need_version=yes
11008: ;;
11009:
11010: sysv4 | sysv4.3*)
11011: version_type=linux # correct to gnu/linux during the next big refactor
11012: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013: soname_spec='${libname}${release}${shared_ext}$major'
11014: shlibpath_var=LD_LIBRARY_PATH
11015: case $host_vendor in
11016: sni)
11017: shlibpath_overrides_runpath=no
11018: need_lib_prefix=no
11019: runpath_var=LD_RUN_PATH
11020: ;;
11021: siemens)
11022: need_lib_prefix=no
11023: ;;
11024: motorola)
11025: need_lib_prefix=no
11026: need_version=no
11027: shlibpath_overrides_runpath=no
11028: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11029: ;;
11030: esac
11031: ;;
11032:
11033: sysv4*MP*)
11034: if test -d /usr/nec ;then
11035: version_type=linux # correct to gnu/linux during the next big refactor
11036: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11037: soname_spec='$libname${shared_ext}.$major'
11038: shlibpath_var=LD_LIBRARY_PATH
11039: fi
11040: ;;
11041:
11042: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11043: version_type=freebsd-elf
11044: need_lib_prefix=no
11045: need_version=no
11046: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11047: soname_spec='${libname}${release}${shared_ext}$major'
11048: shlibpath_var=LD_LIBRARY_PATH
11049: shlibpath_overrides_runpath=yes
11050: hardcode_into_libs=yes
11051: if test "$with_gnu_ld" = yes; then
11052: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11053: else
11054: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11055: case $host_os in
11056: sco3.2v5*)
11057: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11058: ;;
11059: esac
11060: fi
11061: sys_lib_dlsearch_path_spec='/usr/lib'
11062: ;;
11063:
11064: tpf*)
11065: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11066: version_type=linux # correct to gnu/linux during the next big refactor
11067: need_lib_prefix=no
11068: need_version=no
11069: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070: shlibpath_var=LD_LIBRARY_PATH
11071: shlibpath_overrides_runpath=no
11072: hardcode_into_libs=yes
11073: ;;
11074:
11075: uts4*)
11076: version_type=linux # correct to gnu/linux during the next big refactor
11077: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078: soname_spec='${libname}${release}${shared_ext}$major'
11079: shlibpath_var=LD_LIBRARY_PATH
11080: ;;
11081:
11082: *)
11083: dynamic_linker=no
11084: ;;
11085: esac
1.10 ! moko 11086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 11087: $as_echo "$dynamic_linker" >&6; }
1.8 moko 11088: test "$dynamic_linker" = no && can_build_shared=no
11089:
11090: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11091: if test "$GCC" = yes; then
11092: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11093: fi
11094:
11095: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11096: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11097: fi
11098: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11099: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11100: fi
11101:
11102:
11103:
11104:
11105:
11106:
11107:
11108:
11109:
11110:
11111:
11112:
11113:
11114:
11115:
11116:
11117:
11118:
11119:
11120:
11121:
11122:
11123:
11124:
11125:
11126:
11127:
11128:
11129:
11130:
11131:
11132:
11133:
11134:
11135:
11136:
11137:
11138:
11139:
11140:
11141:
11142:
11143:
11144:
11145:
11146:
11147:
11148:
11149:
11150:
11151:
11152:
11153:
11154:
11155:
11156:
11157:
11158:
11159:
11160:
11161:
11162:
11163:
11164:
11165:
11166:
11167:
11168:
11169:
11170:
11171:
11172:
11173:
11174:
11175:
11176:
11177:
11178:
11179:
11180:
11181:
11182:
11183:
11184:
11185:
11186:
11187:
11188:
11189:
11190:
11191:
11192:
1.10 ! moko 11193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 11194: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.8 moko 11195: hardcode_action=
11196: if test -n "$hardcode_libdir_flag_spec" ||
11197: test -n "$runpath_var" ||
11198: test "X$hardcode_automatic" = "Xyes" ; then
11199:
11200: # We can hardcode non-existent directories.
11201: if test "$hardcode_direct" != no &&
11202: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11203: # have to relink, otherwise we might link with an installed library
11204: # when we should be linking with a yet-to-be-installed one
11205: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11206: test "$hardcode_minus_L" != no; then
11207: # Linking always hardcodes the temporary library directory.
11208: hardcode_action=relink
11209: else
11210: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11211: hardcode_action=immediate
11212: fi
11213: else
11214: # We cannot hardcode anything, or else we can only hardcode existing
11215: # directories.
11216: hardcode_action=unsupported
11217: fi
1.10 ! moko 11218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
! 11219: $as_echo "$hardcode_action" >&6; }
1.8 moko 11220:
11221: if test "$hardcode_action" = relink ||
11222: test "$inherit_rpath" = yes; then
11223: # Fast installation is not supported
11224: enable_fast_install=no
11225: elif test "$shlibpath_overrides_runpath" = yes ||
11226: test "$enable_shared" = no; then
11227: # Fast installation is not necessary
11228: enable_fast_install=needless
11229: fi
11230:
11231:
11232:
11233:
11234:
11235:
11236: if test "x$enable_dlopen" != xyes; then
11237: enable_dlopen=unknown
11238: enable_dlopen_self=unknown
11239: enable_dlopen_self_static=unknown
11240: else
11241: lt_cv_dlopen=no
11242: lt_cv_dlopen_libs=
11243:
11244: case $host_os in
11245: beos*)
11246: lt_cv_dlopen="load_add_on"
11247: lt_cv_dlopen_libs=
11248: lt_cv_dlopen_self=yes
11249: ;;
11250:
11251: mingw* | pw32* | cegcc*)
11252: lt_cv_dlopen="LoadLibrary"
11253: lt_cv_dlopen_libs=
11254: ;;
11255:
11256: cygwin*)
11257: lt_cv_dlopen="dlopen"
11258: lt_cv_dlopen_libs=
11259: ;;
11260:
11261: darwin*)
11262: # if libdl is installed we need to link against it
1.10 ! moko 11263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 11264: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 11265: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
! 11266: $as_echo_n "(cached) " >&6
1.8 moko 11267: else
11268: ac_check_lib_save_LIBS=$LIBS
11269: LIBS="-ldl $LIBS"
1.10 ! moko 11270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11271: /* end confdefs.h. */
11272:
1.10 ! moko 11273: /* Override any GCC internal prototype to avoid an error.
! 11274: Use char because int might match the return type of a GCC
! 11275: builtin and then its argument prototype would still apply. */
1.8 moko 11276: #ifdef __cplusplus
11277: extern "C"
11278: #endif
11279: char dlopen ();
11280: int
11281: main ()
11282: {
1.10 ! moko 11283: return dlopen ();
1.8 moko 11284: ;
11285: return 0;
11286: }
11287: _ACEOF
1.10 ! moko 11288: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11289: ac_cv_lib_dl_dlopen=yes
11290: else
1.10 ! moko 11291: ac_cv_lib_dl_dlopen=no
1.8 moko 11292: fi
1.10 ! moko 11293: rm -f core conftest.err conftest.$ac_objext \
! 11294: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11295: LIBS=$ac_check_lib_save_LIBS
11296: fi
1.10 ! moko 11297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 11298: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 11299: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1.8 moko 11300: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11301: else
11302:
11303: lt_cv_dlopen="dyld"
11304: lt_cv_dlopen_libs=
11305: lt_cv_dlopen_self=yes
11306:
11307: fi
11308:
11309: ;;
11310:
11311: *)
1.10 ! moko 11312: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 11313: if test "x$ac_cv_func_shl_load" = x""yes; then :
1.8 moko 11314: lt_cv_dlopen="shl_load"
11315: else
1.10 ! moko 11316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 11317: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 11318: if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
! 11319: $as_echo_n "(cached) " >&6
1.8 moko 11320: else
11321: ac_check_lib_save_LIBS=$LIBS
11322: LIBS="-ldld $LIBS"
1.10 ! moko 11323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11324: /* end confdefs.h. */
11325:
1.10 ! moko 11326: /* Override any GCC internal prototype to avoid an error.
! 11327: Use char because int might match the return type of a GCC
! 11328: builtin and then its argument prototype would still apply. */
1.8 moko 11329: #ifdef __cplusplus
11330: extern "C"
11331: #endif
11332: char shl_load ();
11333: int
11334: main ()
11335: {
1.10 ! moko 11336: return shl_load ();
1.8 moko 11337: ;
11338: return 0;
11339: }
11340: _ACEOF
1.10 ! moko 11341: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11342: ac_cv_lib_dld_shl_load=yes
11343: else
1.10 ! moko 11344: ac_cv_lib_dld_shl_load=no
1.8 moko 11345: fi
1.10 ! moko 11346: rm -f core conftest.err conftest.$ac_objext \
! 11347: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11348: LIBS=$ac_check_lib_save_LIBS
11349: fi
1.10 ! moko 11350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 11351: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 11352: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
1.8 moko 11353: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11354: else
1.10 ! moko 11355: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
! 11356: if test "x$ac_cv_func_dlopen" = x""yes; then :
1.8 moko 11357: lt_cv_dlopen="dlopen"
11358: else
1.10 ! moko 11359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 11360: $as_echo_n "checking for dlopen in -ldl... " >&6; }
! 11361: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
! 11362: $as_echo_n "(cached) " >&6
1.8 moko 11363: else
11364: ac_check_lib_save_LIBS=$LIBS
11365: LIBS="-ldl $LIBS"
1.10 ! moko 11366: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11367: /* end confdefs.h. */
11368:
1.10 ! moko 11369: /* Override any GCC internal prototype to avoid an error.
! 11370: Use char because int might match the return type of a GCC
! 11371: builtin and then its argument prototype would still apply. */
1.8 moko 11372: #ifdef __cplusplus
11373: extern "C"
11374: #endif
11375: char dlopen ();
11376: int
11377: main ()
11378: {
1.10 ! moko 11379: return dlopen ();
1.8 moko 11380: ;
11381: return 0;
11382: }
11383: _ACEOF
1.10 ! moko 11384: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11385: ac_cv_lib_dl_dlopen=yes
11386: else
1.10 ! moko 11387: ac_cv_lib_dl_dlopen=no
1.8 moko 11388: fi
1.10 ! moko 11389: rm -f core conftest.err conftest.$ac_objext \
! 11390: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11391: LIBS=$ac_check_lib_save_LIBS
11392: fi
1.10 ! moko 11393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 11394: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
! 11395: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1.8 moko 11396: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11397: else
1.10 ! moko 11398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 11399: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
! 11400: if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
! 11401: $as_echo_n "(cached) " >&6
1.8 moko 11402: else
11403: ac_check_lib_save_LIBS=$LIBS
11404: LIBS="-lsvld $LIBS"
1.10 ! moko 11405: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11406: /* end confdefs.h. */
11407:
1.10 ! moko 11408: /* Override any GCC internal prototype to avoid an error.
! 11409: Use char because int might match the return type of a GCC
! 11410: builtin and then its argument prototype would still apply. */
1.8 moko 11411: #ifdef __cplusplus
11412: extern "C"
11413: #endif
11414: char dlopen ();
11415: int
11416: main ()
11417: {
1.10 ! moko 11418: return dlopen ();
1.8 moko 11419: ;
11420: return 0;
11421: }
11422: _ACEOF
1.10 ! moko 11423: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11424: ac_cv_lib_svld_dlopen=yes
11425: else
1.10 ! moko 11426: ac_cv_lib_svld_dlopen=no
1.8 moko 11427: fi
1.10 ! moko 11428: rm -f core conftest.err conftest.$ac_objext \
! 11429: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11430: LIBS=$ac_check_lib_save_LIBS
11431: fi
1.10 ! moko 11432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 11433: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
! 11434: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1.8 moko 11435: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11436: else
1.10 ! moko 11437: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 11438: $as_echo_n "checking for dld_link in -ldld... " >&6; }
! 11439: if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
! 11440: $as_echo_n "(cached) " >&6
1.8 moko 11441: else
11442: ac_check_lib_save_LIBS=$LIBS
11443: LIBS="-ldld $LIBS"
1.10 ! moko 11444: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11445: /* end confdefs.h. */
11446:
1.10 ! moko 11447: /* Override any GCC internal prototype to avoid an error.
! 11448: Use char because int might match the return type of a GCC
! 11449: builtin and then its argument prototype would still apply. */
1.8 moko 11450: #ifdef __cplusplus
11451: extern "C"
11452: #endif
11453: char dld_link ();
11454: int
11455: main ()
11456: {
1.10 ! moko 11457: return dld_link ();
1.8 moko 11458: ;
11459: return 0;
11460: }
11461: _ACEOF
1.10 ! moko 11462: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 11463: ac_cv_lib_dld_dld_link=yes
11464: else
1.10 ! moko 11465: ac_cv_lib_dld_dld_link=no
1.8 moko 11466: fi
1.10 ! moko 11467: rm -f core conftest.err conftest.$ac_objext \
! 11468: conftest$ac_exeext conftest.$ac_ext
1.8 moko 11469: LIBS=$ac_check_lib_save_LIBS
11470: fi
1.10 ! moko 11471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 11472: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
! 11473: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1.8 moko 11474: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11475: fi
11476:
11477:
11478: fi
11479:
11480:
11481: fi
11482:
11483:
11484: fi
11485:
11486:
11487: fi
11488:
11489:
11490: fi
11491:
11492: ;;
11493: esac
11494:
11495: if test "x$lt_cv_dlopen" != xno; then
11496: enable_dlopen=yes
11497: else
11498: enable_dlopen=no
11499: fi
11500:
11501: case $lt_cv_dlopen in
11502: dlopen)
11503: save_CPPFLAGS="$CPPFLAGS"
11504: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11505:
11506: save_LDFLAGS="$LDFLAGS"
11507: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11508:
11509: save_LIBS="$LIBS"
11510: LIBS="$lt_cv_dlopen_libs $LIBS"
11511:
1.10 ! moko 11512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
! 11513: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
! 11514: if test "${lt_cv_dlopen_self+set}" = set; then :
! 11515: $as_echo_n "(cached) " >&6
1.8 moko 11516: else
11517: if test "$cross_compiling" = yes; then :
11518: lt_cv_dlopen_self=cross
11519: else
11520: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11521: lt_status=$lt_dlunknown
11522: cat > conftest.$ac_ext <<_LT_EOF
11523: #line $LINENO "configure"
11524: #include "confdefs.h"
11525:
11526: #if HAVE_DLFCN_H
11527: #include <dlfcn.h>
11528: #endif
11529:
11530: #include <stdio.h>
11531:
11532: #ifdef RTLD_GLOBAL
11533: # define LT_DLGLOBAL RTLD_GLOBAL
11534: #else
11535: # ifdef DL_GLOBAL
11536: # define LT_DLGLOBAL DL_GLOBAL
11537: # else
11538: # define LT_DLGLOBAL 0
11539: # endif
11540: #endif
11541:
11542: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11543: find out it does not work in some platform. */
11544: #ifndef LT_DLLAZY_OR_NOW
11545: # ifdef RTLD_LAZY
11546: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11547: # else
11548: # ifdef DL_LAZY
11549: # define LT_DLLAZY_OR_NOW DL_LAZY
11550: # else
11551: # ifdef RTLD_NOW
11552: # define LT_DLLAZY_OR_NOW RTLD_NOW
11553: # else
11554: # ifdef DL_NOW
11555: # define LT_DLLAZY_OR_NOW DL_NOW
11556: # else
11557: # define LT_DLLAZY_OR_NOW 0
11558: # endif
11559: # endif
11560: # endif
11561: # endif
11562: #endif
11563:
11564: /* When -fvisbility=hidden is used, assume the code has been annotated
11565: correspondingly for the symbols needed. */
11566: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11567: int fnord () __attribute__((visibility("default")));
11568: #endif
11569:
11570: int fnord () { return 42; }
11571: int main ()
11572: {
11573: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11574: int status = $lt_dlunknown;
11575:
11576: if (self)
11577: {
11578: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11579: else
11580: {
11581: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11582: else puts (dlerror ());
11583: }
11584: /* dlclose (self); */
11585: }
11586: else
11587: puts (dlerror ());
11588:
11589: return status;
11590: }
11591: _LT_EOF
1.10 ! moko 11592: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 11593: (eval $ac_link) 2>&5
11594: ac_status=$?
1.10 ! moko 11595: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 11596: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11597: (./conftest; exit; ) >&5 2>/dev/null
11598: lt_status=$?
11599: case x$lt_status in
11600: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11601: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11602: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11603: esac
11604: else :
11605: # compilation failed
11606: lt_cv_dlopen_self=no
11607: fi
11608: fi
11609: rm -fr conftest*
11610:
11611:
11612: fi
1.10 ! moko 11613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
! 11614: $as_echo "$lt_cv_dlopen_self" >&6; }
1.8 moko 11615:
11616: if test "x$lt_cv_dlopen_self" = xyes; then
11617: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.10 ! moko 11618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
! 11619: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
! 11620: if test "${lt_cv_dlopen_self_static+set}" = set; then :
! 11621: $as_echo_n "(cached) " >&6
1.8 moko 11622: else
11623: if test "$cross_compiling" = yes; then :
11624: lt_cv_dlopen_self_static=cross
11625: else
11626: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11627: lt_status=$lt_dlunknown
11628: cat > conftest.$ac_ext <<_LT_EOF
11629: #line $LINENO "configure"
11630: #include "confdefs.h"
11631:
11632: #if HAVE_DLFCN_H
11633: #include <dlfcn.h>
11634: #endif
11635:
11636: #include <stdio.h>
11637:
11638: #ifdef RTLD_GLOBAL
11639: # define LT_DLGLOBAL RTLD_GLOBAL
11640: #else
11641: # ifdef DL_GLOBAL
11642: # define LT_DLGLOBAL DL_GLOBAL
11643: # else
11644: # define LT_DLGLOBAL 0
11645: # endif
11646: #endif
11647:
11648: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11649: find out it does not work in some platform. */
11650: #ifndef LT_DLLAZY_OR_NOW
11651: # ifdef RTLD_LAZY
11652: # define LT_DLLAZY_OR_NOW RTLD_LAZY
11653: # else
11654: # ifdef DL_LAZY
11655: # define LT_DLLAZY_OR_NOW DL_LAZY
11656: # else
11657: # ifdef RTLD_NOW
11658: # define LT_DLLAZY_OR_NOW RTLD_NOW
11659: # else
11660: # ifdef DL_NOW
11661: # define LT_DLLAZY_OR_NOW DL_NOW
11662: # else
11663: # define LT_DLLAZY_OR_NOW 0
11664: # endif
11665: # endif
11666: # endif
11667: # endif
11668: #endif
11669:
11670: /* When -fvisbility=hidden is used, assume the code has been annotated
11671: correspondingly for the symbols needed. */
11672: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11673: int fnord () __attribute__((visibility("default")));
11674: #endif
11675:
11676: int fnord () { return 42; }
11677: int main ()
11678: {
11679: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11680: int status = $lt_dlunknown;
11681:
11682: if (self)
11683: {
11684: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11685: else
11686: {
11687: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11688: else puts (dlerror ());
11689: }
11690: /* dlclose (self); */
11691: }
11692: else
11693: puts (dlerror ());
11694:
11695: return status;
11696: }
11697: _LT_EOF
1.10 ! moko 11698: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 11699: (eval $ac_link) 2>&5
11700: ac_status=$?
1.10 ! moko 11701: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 11702: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 11703: (./conftest; exit; ) >&5 2>/dev/null
11704: lt_status=$?
11705: case x$lt_status in
11706: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11707: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11708: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11709: esac
11710: else :
11711: # compilation failed
11712: lt_cv_dlopen_self_static=no
11713: fi
11714: fi
11715: rm -fr conftest*
11716:
11717:
11718: fi
1.10 ! moko 11719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
! 11720: $as_echo "$lt_cv_dlopen_self_static" >&6; }
1.8 moko 11721: fi
11722:
11723: CPPFLAGS="$save_CPPFLAGS"
11724: LDFLAGS="$save_LDFLAGS"
11725: LIBS="$save_LIBS"
11726: ;;
11727: esac
11728:
11729: case $lt_cv_dlopen_self in
11730: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11731: *) enable_dlopen_self=unknown ;;
11732: esac
11733:
11734: case $lt_cv_dlopen_self_static in
11735: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11736: *) enable_dlopen_self_static=unknown ;;
11737: esac
11738: fi
11739:
11740:
11741:
11742:
11743:
11744:
11745:
11746:
11747:
11748:
11749:
11750:
11751:
11752:
11753:
11754:
11755:
11756: striplib=
11757: old_striplib=
1.10 ! moko 11758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
! 11759: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
1.8 moko 11760: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11761: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11762: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.10 ! moko 11763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 11764: $as_echo "yes" >&6; }
1.8 moko 11765: else
11766: # FIXME - insert some real tests, host_os isn't really good enough
11767: case $host_os in
11768: darwin*)
11769: if test -n "$STRIP" ; then
11770: striplib="$STRIP -x"
11771: old_striplib="$STRIP -S"
1.10 ! moko 11772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 11773: $as_echo "yes" >&6; }
1.8 moko 11774: else
1.10 ! moko 11775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 11776: $as_echo "no" >&6; }
1.8 moko 11777: fi
11778: ;;
11779: *)
1.10 ! moko 11780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 11781: $as_echo "no" >&6; }
1.8 moko 11782: ;;
11783: esac
11784: fi
11785:
11786:
11787:
11788:
11789:
11790:
11791:
11792:
11793:
11794:
11795:
11796:
11797: # Report which library types will actually be built
1.10 ! moko 11798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
! 11799: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
! 11800: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
! 11801: $as_echo "$can_build_shared" >&6; }
1.8 moko 11802:
1.10 ! moko 11803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
! 11804: $as_echo_n "checking whether to build shared libraries... " >&6; }
1.8 moko 11805: test "$can_build_shared" = "no" && enable_shared=no
11806:
11807: # On AIX, shared libraries and static libraries use the same namespace, and
11808: # are all built from PIC.
11809: case $host_os in
11810: aix3*)
11811: test "$enable_shared" = yes && enable_static=no
11812: if test -n "$RANLIB"; then
11813: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11814: postinstall_cmds='$RANLIB $lib'
11815: fi
11816: ;;
11817:
11818: aix[4-9]*)
11819: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11820: test "$enable_shared" = yes && enable_static=no
11821: fi
11822: ;;
11823: esac
1.10 ! moko 11824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
! 11825: $as_echo "$enable_shared" >&6; }
1.8 moko 11826:
1.10 ! moko 11827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
! 11828: $as_echo_n "checking whether to build static libraries... " >&6; }
1.8 moko 11829: # Make sure either enable_shared or enable_static is yes.
11830: test "$enable_shared" = yes || enable_static=yes
1.10 ! moko 11831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
! 11832: $as_echo "$enable_static" >&6; }
1.8 moko 11833:
11834:
11835:
11836:
11837: fi
11838: ac_ext=c
11839: ac_cpp='$CPP $CPPFLAGS'
11840: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11841: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11842: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11843:
11844: CC="$lt_save_CC"
11845:
11846: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11847: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11848: (test "X$CXX" != "Xg++"))) ; then
1.10 ! moko 11849: ac_ext=cpp
1.8 moko 11850: ac_cpp='$CXXCPP $CPPFLAGS'
11851: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11852: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11853: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.10 ! moko 11854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
! 11855: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1.8 moko 11856: if test -z "$CXXCPP"; then
1.10 ! moko 11857: if test "${ac_cv_prog_CXXCPP+set}" = set; then :
! 11858: $as_echo_n "(cached) " >&6
1.8 moko 11859: else
11860: # Double quotes because CXXCPP needs to be expanded
11861: for CXXCPP in "$CXX -E" "/lib/cpp"
11862: do
11863: ac_preproc_ok=false
11864: for ac_cxx_preproc_warn_flag in '' yes
11865: do
11866: # Use a header file that comes with gcc, so configuring glibc
11867: # with a fresh cross-compiler works.
11868: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869: # <limits.h> exists even on freestanding compilers.
11870: # On the NeXT, cc -E runs the code through the compiler's parser,
11871: # not just through cpp. "Syntax error" is here to catch this case.
1.10 ! moko 11872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11873: /* end confdefs.h. */
11874: #ifdef __STDC__
11875: # include <limits.h>
11876: #else
11877: # include <assert.h>
11878: #endif
11879: Syntax error
11880: _ACEOF
1.10 ! moko 11881: if ac_fn_cxx_try_cpp "$LINENO"; then :
! 11882:
1.8 moko 11883: else
11884: # Broken: fails on valid input.
11885: continue
11886: fi
1.10 ! moko 11887: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 11888:
1.10 ! moko 11889: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 11890: # can be detected and how.
1.10 ! moko 11891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11892: /* end confdefs.h. */
11893: #include <ac_nonexistent.h>
11894: _ACEOF
1.10 ! moko 11895: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.8 moko 11896: # Broken: success on invalid input.
11897: continue
11898: else
11899: # Passes both tests.
11900: ac_preproc_ok=:
11901: break
11902: fi
1.10 ! moko 11903: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 11904:
11905: done
11906: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.10 ! moko 11907: rm -f conftest.i conftest.err conftest.$ac_ext
! 11908: if $ac_preproc_ok; then :
1.8 moko 11909: break
11910: fi
11911:
11912: done
11913: ac_cv_prog_CXXCPP=$CXXCPP
11914:
11915: fi
11916: CXXCPP=$ac_cv_prog_CXXCPP
11917: else
11918: ac_cv_prog_CXXCPP=$CXXCPP
11919: fi
1.10 ! moko 11920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
! 11921: $as_echo "$CXXCPP" >&6; }
1.8 moko 11922: ac_preproc_ok=false
11923: for ac_cxx_preproc_warn_flag in '' yes
11924: do
11925: # Use a header file that comes with gcc, so configuring glibc
11926: # with a fresh cross-compiler works.
11927: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928: # <limits.h> exists even on freestanding compilers.
11929: # On the NeXT, cc -E runs the code through the compiler's parser,
11930: # not just through cpp. "Syntax error" is here to catch this case.
1.10 ! moko 11931: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11932: /* end confdefs.h. */
11933: #ifdef __STDC__
11934: # include <limits.h>
11935: #else
11936: # include <assert.h>
11937: #endif
11938: Syntax error
11939: _ACEOF
1.10 ! moko 11940: if ac_fn_cxx_try_cpp "$LINENO"; then :
! 11941:
1.8 moko 11942: else
1.10 ! moko 11943: # Broken: fails on valid input.
1.8 moko 11944: continue
11945: fi
1.10 ! moko 11946: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 11947:
1.10 ! moko 11948: # OK, works on sane cases. Now check whether nonexistent headers
1.8 moko 11949: # can be detected and how.
1.10 ! moko 11950: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 11951: /* end confdefs.h. */
11952: #include <ac_nonexistent.h>
11953: _ACEOF
1.10 ! moko 11954: if ac_fn_cxx_try_cpp "$LINENO"; then :
1.8 moko 11955: # Broken: success on invalid input.
11956: continue
11957: else
11958: # Passes both tests.
11959: ac_preproc_ok=:
11960: break
11961: fi
1.10 ! moko 11962: rm -f conftest.err conftest.i conftest.$ac_ext
1.8 moko 11963:
11964: done
11965: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.10 ! moko 11966: rm -f conftest.i conftest.err conftest.$ac_ext
! 11967: if $ac_preproc_ok; then :
! 11968:
1.8 moko 11969: else
1.10 ! moko 11970: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 11971: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 11972: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
! 11973: See \`config.log' for more details" "$LINENO" 5 ; }
1.8 moko 11974: fi
11975:
11976: ac_ext=c
11977: ac_cpp='$CPP $CPPFLAGS'
11978: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11979: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11980: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11981:
11982: else
11983: _lt_caught_CXX_error=yes
11984: fi
11985:
1.10 ! moko 11986: ac_ext=cpp
1.8 moko 11987: ac_cpp='$CXXCPP $CPPFLAGS'
11988: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11989: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11990: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11991:
11992: archive_cmds_need_lc_CXX=no
11993: allow_undefined_flag_CXX=
11994: always_export_symbols_CXX=no
11995: archive_expsym_cmds_CXX=
11996: compiler_needs_object_CXX=no
11997: export_dynamic_flag_spec_CXX=
11998: hardcode_direct_CXX=no
11999: hardcode_direct_absolute_CXX=no
12000: hardcode_libdir_flag_spec_CXX=
12001: hardcode_libdir_separator_CXX=
12002: hardcode_minus_L_CXX=no
12003: hardcode_shlibpath_var_CXX=unsupported
12004: hardcode_automatic_CXX=no
12005: inherit_rpath_CXX=no
12006: module_cmds_CXX=
12007: module_expsym_cmds_CXX=
12008: link_all_deplibs_CXX=unknown
12009: old_archive_cmds_CXX=$old_archive_cmds
12010: reload_flag_CXX=$reload_flag
12011: reload_cmds_CXX=$reload_cmds
12012: no_undefined_flag_CXX=
12013: whole_archive_flag_spec_CXX=
12014: enable_shared_with_static_runtimes_CXX=no
12015:
12016: # Source file extension for C++ test sources.
12017: ac_ext=cpp
12018:
12019: # Object file extension for compiled C++ test sources.
12020: objext=o
12021: objext_CXX=$objext
12022:
12023: # No sense in running all these tests if we already determined that
12024: # the CXX compiler isn't working. Some variables (like enable_shared)
12025: # are currently assumed to apply to all compilers on this platform,
12026: # and will be corrupted by setting them based on a non-working compiler.
12027: if test "$_lt_caught_CXX_error" != yes; then
12028: # Code to be used in simple compile tests
12029: lt_simple_compile_test_code="int some_variable = 0;"
12030:
12031: # Code to be used in simple link tests
12032: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12033:
12034: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12035:
12036:
12037:
12038:
12039:
12040:
12041: # If no C compiler was specified, use CC.
12042: LTCC=${LTCC-"$CC"}
12043:
12044: # If no C compiler flags were specified, use CFLAGS.
12045: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12046:
12047: # Allow CC to be a program name with arguments.
12048: compiler=$CC
12049:
12050:
12051: # save warnings/boilerplate of simple test code
12052: ac_outfile=conftest.$ac_objext
12053: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12054: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12055: _lt_compiler_boilerplate=`cat conftest.err`
12056: $RM conftest*
12057:
12058: ac_outfile=conftest.$ac_objext
12059: echo "$lt_simple_link_test_code" >conftest.$ac_ext
12060: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12061: _lt_linker_boilerplate=`cat conftest.err`
12062: $RM -r conftest*
12063:
12064:
12065: # Allow CC to be a program name with arguments.
12066: lt_save_CC=$CC
12067: lt_save_CFLAGS=$CFLAGS
12068: lt_save_LD=$LD
12069: lt_save_GCC=$GCC
12070: GCC=$GXX
12071: lt_save_with_gnu_ld=$with_gnu_ld
12072: lt_save_path_LD=$lt_cv_path_LD
12073: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12074: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12075: else
12076: $as_unset lt_cv_prog_gnu_ld
12077: fi
12078: if test -n "${lt_cv_path_LDCXX+set}"; then
12079: lt_cv_path_LD=$lt_cv_path_LDCXX
12080: else
12081: $as_unset lt_cv_path_LD
12082: fi
12083: test -z "${LDCXX+set}" || LD=$LDCXX
12084: CC=${CXX-"c++"}
12085: CFLAGS=$CXXFLAGS
12086: compiler=$CC
12087: compiler_CXX=$CC
12088: for cc_temp in $compiler""; do
12089: case $cc_temp in
12090: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12091: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12092: \-*) ;;
12093: *) break;;
12094: esac
12095: done
12096: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12097:
12098:
12099: if test -n "$compiler"; then
12100: # We don't want -fno-exception when compiling C++ code, so set the
12101: # no_builtin_flag separately
12102: if test "$GXX" = yes; then
12103: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12104: else
12105: lt_prog_compiler_no_builtin_flag_CXX=
12106: fi
12107:
12108: if test "$GXX" = yes; then
12109: # Set up default GNU C++ configuration
12110:
12111:
12112:
1.10 ! moko 12113: # Check whether --with-gnu-ld was given.
! 12114: if test "${with_gnu_ld+set}" = set; then :
! 12115: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.8 moko 12116: else
12117: with_gnu_ld=no
1.10 ! moko 12118: fi
! 12119:
1.8 moko 12120: ac_prog=ld
12121: if test "$GCC" = yes; then
12122: # Check if gcc -print-prog-name=ld gives a path.
1.10 ! moko 12123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 12124: $as_echo_n "checking for ld used by $CC... " >&6; }
1.8 moko 12125: case $host in
12126: *-*-mingw*)
12127: # gcc leaves a trailing carriage return which upsets mingw
12128: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12129: *)
12130: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12131: esac
12132: case $ac_prog in
12133: # Accept absolute paths.
12134: [\\/]* | ?:[\\/]*)
12135: re_direlt='/[^/][^/]*/\.\./'
12136: # Canonicalize the pathname of ld
12137: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12138: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12139: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12140: done
12141: test -z "$LD" && LD="$ac_prog"
12142: ;;
12143: "")
12144: # If it fails, then pretend we aren't using GCC.
12145: ac_prog=ld
12146: ;;
12147: *)
12148: # If it is relative, then search for the first ld in PATH.
12149: with_gnu_ld=unknown
12150: ;;
12151: esac
12152: elif test "$with_gnu_ld" = yes; then
1.10 ! moko 12153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 12154: $as_echo_n "checking for GNU ld... " >&6; }
1.8 moko 12155: else
1.10 ! moko 12156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 12157: $as_echo_n "checking for non-GNU ld... " >&6; }
1.8 moko 12158: fi
1.10 ! moko 12159: if test "${lt_cv_path_LD+set}" = set; then :
! 12160: $as_echo_n "(cached) " >&6
1.8 moko 12161: else
12162: if test -z "$LD"; then
12163: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12164: for ac_dir in $PATH; do
12165: IFS="$lt_save_ifs"
12166: test -z "$ac_dir" && ac_dir=.
12167: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12168: lt_cv_path_LD="$ac_dir/$ac_prog"
12169: # Check to see if the program is GNU ld. I'd rather use --version,
12170: # but apparently some variants of GNU ld only accept -v.
12171: # Break only if it was the GNU/non-GNU ld that we prefer.
12172: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12173: *GNU* | *'with BFD'*)
12174: test "$with_gnu_ld" != no && break
12175: ;;
12176: *)
12177: test "$with_gnu_ld" != yes && break
12178: ;;
12179: esac
12180: fi
12181: done
12182: IFS="$lt_save_ifs"
12183: else
12184: lt_cv_path_LD="$LD" # Let the user override the test with a path.
12185: fi
12186: fi
12187:
12188: LD="$lt_cv_path_LD"
12189: if test -n "$LD"; then
1.10 ! moko 12190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 12191: $as_echo "$LD" >&6; }
1.8 moko 12192: else
1.10 ! moko 12193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 12194: $as_echo "no" >&6; }
1.8 moko 12195: fi
1.10 ! moko 12196: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
! 12197: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 12198: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
! 12199: if test "${lt_cv_prog_gnu_ld+set}" = set; then :
! 12200: $as_echo_n "(cached) " >&6
1.8 moko 12201: else
12202: # I'd rather use --version here, but apparently some GNU lds only accept -v.
12203: case `$LD -v 2>&1 </dev/null` in
12204: *GNU* | *'with BFD'*)
12205: lt_cv_prog_gnu_ld=yes
12206: ;;
12207: *)
12208: lt_cv_prog_gnu_ld=no
12209: ;;
12210: esac
12211: fi
1.10 ! moko 12212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 12213: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.8 moko 12214: with_gnu_ld=$lt_cv_prog_gnu_ld
12215:
12216:
12217:
12218:
12219:
12220:
12221:
12222: # Check if GNU C++ uses GNU ld as the underlying linker, since the
12223: # archiving commands below assume that GNU ld is being used.
12224: if test "$with_gnu_ld" = yes; then
12225: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12226: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12227:
12228: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12229: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12230:
12231: # If archive_cmds runs LD, not CC, wlarc should be empty
12232: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12233: # investigate it a little bit more. (MM)
12234: wlarc='${wl}'
12235:
12236: # ancient GNU ld didn't support --whole-archive et. al.
12237: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12238: $GREP 'no-whole-archive' > /dev/null; then
12239: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12240: else
12241: whole_archive_flag_spec_CXX=
12242: fi
12243: else
12244: with_gnu_ld=no
12245: wlarc=
12246:
12247: # A generic and very simple default shared library creation
12248: # command for GNU C++ for the case where it uses the native
12249: # linker, instead of GNU ld. If possible, this setting should
12250: # overridden to take advantage of the native linker features on
12251: # the platform it is being used on.
12252: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12253: fi
12254:
12255: # Commands to make compiler produce verbose output that lists
12256: # what "hidden" libraries, object files and flags are used when
12257: # linking a shared library.
12258: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12259:
12260: else
12261: GXX=no
12262: with_gnu_ld=no
12263: wlarc=
12264: fi
12265:
12266: # PORTME: fill in a description of your system's C++ link characteristics
1.10 ! moko 12267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12268: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.8 moko 12269: ld_shlibs_CXX=yes
12270: case $host_os in
12271: aix3*)
12272: # FIXME: insert proper C++ library support
12273: ld_shlibs_CXX=no
12274: ;;
12275: aix[4-9]*)
12276: if test "$host_cpu" = ia64; then
12277: # On IA64, the linker does run time linking by default, so we don't
12278: # have to do anything special.
12279: aix_use_runtimelinking=no
12280: exp_sym_flag='-Bexport'
12281: no_entry_flag=""
12282: else
12283: aix_use_runtimelinking=no
12284:
12285: # Test if we are trying to use run time linking or normal
12286: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12287: # need to do runtime linking.
12288: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12289: for ld_flag in $LDFLAGS; do
12290: case $ld_flag in
12291: *-brtl*)
12292: aix_use_runtimelinking=yes
12293: break
12294: ;;
12295: esac
12296: done
12297: ;;
12298: esac
12299:
12300: exp_sym_flag='-bexport'
12301: no_entry_flag='-bnoentry'
12302: fi
12303:
12304: # When large executables or shared objects are built, AIX ld can
12305: # have problems creating the table of contents. If linking a library
12306: # or program results in "error TOC overflow" add -mminimal-toc to
12307: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12308: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12309:
12310: archive_cmds_CXX=''
12311: hardcode_direct_CXX=yes
12312: hardcode_direct_absolute_CXX=yes
12313: hardcode_libdir_separator_CXX=':'
12314: link_all_deplibs_CXX=yes
12315: file_list_spec_CXX='${wl}-f,'
12316:
12317: if test "$GXX" = yes; then
12318: case $host_os in aix4.[012]|aix4.[012].*)
12319: # We only want to do this on AIX 4.2 and lower, the check
12320: # below for broken collect2 doesn't work under 4.3+
12321: collect2name=`${CC} -print-prog-name=collect2`
12322: if test -f "$collect2name" &&
12323: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12324: then
12325: # We have reworked collect2
12326: :
12327: else
12328: # We have old collect2
12329: hardcode_direct_CXX=unsupported
12330: # It fails to find uninstalled libraries when the uninstalled
12331: # path is not listed in the libpath. Setting hardcode_minus_L
12332: # to unsupported forces relinking
12333: hardcode_minus_L_CXX=yes
12334: hardcode_libdir_flag_spec_CXX='-L$libdir'
12335: hardcode_libdir_separator_CXX=
12336: fi
12337: esac
12338: shared_flag='-shared'
12339: if test "$aix_use_runtimelinking" = yes; then
12340: shared_flag="$shared_flag "'${wl}-G'
12341: fi
12342: else
12343: # not using gcc
12344: if test "$host_cpu" = ia64; then
12345: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12346: # chokes on -Wl,-G. The following line is correct:
12347: shared_flag='-G'
12348: else
12349: if test "$aix_use_runtimelinking" = yes; then
12350: shared_flag='${wl}-G'
12351: else
12352: shared_flag='${wl}-bM:SRE'
12353: fi
12354: fi
12355: fi
12356:
12357: export_dynamic_flag_spec_CXX='${wl}-bexpall'
12358: # It seems that -bexpall does not export symbols beginning with
12359: # underscore (_), so it is better to generate a list of symbols to
12360: # export.
12361: always_export_symbols_CXX=yes
12362: if test "$aix_use_runtimelinking" = yes; then
12363: # Warning - without using the other runtime loading flags (-brtl),
12364: # -berok will link without error, but may produce a broken library.
12365: allow_undefined_flag_CXX='-berok'
12366: # Determine the default libpath from the value encoded in an empty
12367: # executable.
12368: if test "${lt_cv_aix_libpath+set}" = set; then
12369: aix_libpath=$lt_cv_aix_libpath
12370: else
1.10 ! moko 12371: if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
! 12372: $as_echo_n "(cached) " >&6
1.8 moko 12373: else
1.10 ! moko 12374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12375: /* end confdefs.h. */
12376:
12377: int
12378: main ()
12379: {
12380:
12381: ;
12382: return 0;
12383: }
12384: _ACEOF
1.10 ! moko 12385: if ac_fn_cxx_try_link "$LINENO"; then :
1.8 moko 12386:
12387: lt_aix_libpath_sed='
12388: /Import File Strings/,/^$/ {
12389: /^0/ {
12390: s/^0 *\([^ ]*\) *$/\1/
12391: p
12392: }
12393: }'
12394: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12395: # Check for a 64-bit object if we didn't find anything.
12396: if test -z "$lt_cv_aix_libpath__CXX"; then
12397: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12398: fi
12399: fi
1.10 ! moko 12400: rm -f core conftest.err conftest.$ac_objext \
! 12401: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12402: if test -z "$lt_cv_aix_libpath__CXX"; then
12403: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12404: fi
12405:
12406: fi
12407:
12408: aix_libpath=$lt_cv_aix_libpath__CXX
12409: fi
12410:
12411: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12412:
12413: 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12414: else
12415: if test "$host_cpu" = ia64; then
12416: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12417: allow_undefined_flag_CXX="-z nodefs"
12418: 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"
12419: else
12420: # Determine the default libpath from the value encoded in an
12421: # empty executable.
12422: if test "${lt_cv_aix_libpath+set}" = set; then
12423: aix_libpath=$lt_cv_aix_libpath
12424: else
1.10 ! moko 12425: if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
! 12426: $as_echo_n "(cached) " >&6
1.8 moko 12427: else
1.10 ! moko 12428: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 12429: /* end confdefs.h. */
12430:
12431: int
12432: main ()
12433: {
12434:
12435: ;
12436: return 0;
12437: }
12438: _ACEOF
1.10 ! moko 12439: if ac_fn_cxx_try_link "$LINENO"; then :
1.8 moko 12440:
12441: lt_aix_libpath_sed='
12442: /Import File Strings/,/^$/ {
12443: /^0/ {
12444: s/^0 *\([^ ]*\) *$/\1/
12445: p
12446: }
12447: }'
12448: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12449: # Check for a 64-bit object if we didn't find anything.
12450: if test -z "$lt_cv_aix_libpath__CXX"; then
12451: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12452: fi
12453: fi
1.10 ! moko 12454: rm -f core conftest.err conftest.$ac_objext \
! 12455: conftest$ac_exeext conftest.$ac_ext
1.8 moko 12456: if test -z "$lt_cv_aix_libpath__CXX"; then
12457: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12458: fi
12459:
12460: fi
12461:
12462: aix_libpath=$lt_cv_aix_libpath__CXX
12463: fi
12464:
12465: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12466: # Warning - without using the other run time loading flags,
12467: # -berok will link without error, but may produce a broken library.
12468: no_undefined_flag_CXX=' ${wl}-bernotok'
12469: allow_undefined_flag_CXX=' ${wl}-berok'
12470: if test "$with_gnu_ld" = yes; then
12471: # We only use this code for GNU lds that support --whole-archive.
12472: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12473: else
12474: # Exported symbols can be pulled into shared objects from archives
12475: whole_archive_flag_spec_CXX='$convenience'
12476: fi
12477: archive_cmds_need_lc_CXX=yes
12478: # This is similar to how AIX traditionally builds its shared
12479: # libraries.
12480: 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'
12481: fi
12482: fi
12483: ;;
12484:
12485: beos*)
12486: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12487: allow_undefined_flag_CXX=unsupported
12488: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12489: # support --undefined. This deserves some investigation. FIXME
12490: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12491: else
12492: ld_shlibs_CXX=no
12493: fi
12494: ;;
12495:
12496: chorus*)
12497: case $cc_basename in
12498: *)
12499: # FIXME: insert proper C++ library support
12500: ld_shlibs_CXX=no
12501: ;;
12502: esac
12503: ;;
12504:
12505: cygwin* | mingw* | pw32* | cegcc*)
12506: case $GXX,$cc_basename in
12507: ,cl* | no,cl*)
12508: # Native MSVC
12509: # hardcode_libdir_flag_spec is actually meaningless, as there is
12510: # no search path for DLLs.
12511: hardcode_libdir_flag_spec_CXX=' '
12512: allow_undefined_flag_CXX=unsupported
12513: always_export_symbols_CXX=yes
12514: file_list_spec_CXX='@'
12515: # Tell ltmain to make .lib files, not .a files.
12516: libext=lib
12517: # Tell ltmain to make .dll files, not .so files.
12518: shrext_cmds=".dll"
12519: # FIXME: Setting linknames here is a bad hack.
12520: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12521: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12522: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12523: else
12524: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12525: fi~
12526: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12527: linknames='
12528: # The linker will not automatically build a static lib if we build a DLL.
12529: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12530: enable_shared_with_static_runtimes_CXX=yes
12531: # Don't use ranlib
12532: old_postinstall_cmds_CXX='chmod 644 $oldlib'
12533: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12534: lt_tool_outputfile="@TOOL_OUTPUT@"~
12535: case $lt_outputfile in
12536: *.exe|*.EXE) ;;
12537: *)
12538: lt_outputfile="$lt_outputfile.exe"
12539: lt_tool_outputfile="$lt_tool_outputfile.exe"
12540: ;;
12541: esac~
12542: func_to_tool_file "$lt_outputfile"~
12543: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12544: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12545: $RM "$lt_outputfile.manifest";
12546: fi'
12547: ;;
12548: *)
12549: # g++
12550: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12551: # as there is no search path for DLLs.
12552: hardcode_libdir_flag_spec_CXX='-L$libdir'
12553: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12554: allow_undefined_flag_CXX=unsupported
12555: always_export_symbols_CXX=no
12556: enable_shared_with_static_runtimes_CXX=yes
12557:
12558: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12559: 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'
12560: # If the export-symbols file already is a .def file (1st line
12561: # is EXPORTS), use it as is; otherwise, prepend...
12562: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12563: cp $export_symbols $output_objdir/$soname.def;
12564: else
12565: echo EXPORTS > $output_objdir/$soname.def;
12566: cat $export_symbols >> $output_objdir/$soname.def;
12567: fi~
12568: $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'
12569: else
12570: ld_shlibs_CXX=no
12571: fi
12572: ;;
12573: esac
12574: ;;
12575: darwin* | rhapsody*)
12576:
12577:
12578: archive_cmds_need_lc_CXX=no
12579: hardcode_direct_CXX=no
12580: hardcode_automatic_CXX=yes
12581: hardcode_shlibpath_var_CXX=unsupported
12582: if test "$lt_cv_ld_force_load" = "yes"; then
12583: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12584:
12585: else
12586: whole_archive_flag_spec_CXX=''
12587: fi
12588: link_all_deplibs_CXX=yes
12589: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12590: case $cc_basename in
12591: ifort*) _lt_dar_can_shared=yes ;;
12592: *) _lt_dar_can_shared=$GCC ;;
12593: esac
12594: if test "$_lt_dar_can_shared" = "yes"; then
12595: output_verbose_link_cmd=func_echo_all
12596: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12597: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12598: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12599: module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12600: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12601: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12602: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12603: fi
12604:
12605: else
12606: ld_shlibs_CXX=no
12607: fi
12608:
12609: ;;
12610:
12611: dgux*)
12612: case $cc_basename in
12613: ec++*)
12614: # FIXME: insert proper C++ library support
12615: ld_shlibs_CXX=no
12616: ;;
12617: ghcx*)
12618: # Green Hills C++ Compiler
12619: # FIXME: insert proper C++ library support
12620: ld_shlibs_CXX=no
12621: ;;
12622: *)
12623: # FIXME: insert proper C++ library support
12624: ld_shlibs_CXX=no
12625: ;;
12626: esac
12627: ;;
12628:
12629: freebsd2.*)
12630: # C++ shared libraries reported to be fairly broken before
12631: # switch to ELF
12632: ld_shlibs_CXX=no
12633: ;;
12634:
12635: freebsd-elf*)
12636: archive_cmds_need_lc_CXX=no
12637: ;;
12638:
12639: freebsd* | dragonfly*)
12640: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12641: # conventions
12642: ld_shlibs_CXX=yes
12643: ;;
12644:
12645: gnu*)
12646: ;;
12647:
12648: haiku*)
12649: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12650: link_all_deplibs_CXX=yes
12651: ;;
12652:
12653: hpux9*)
12654: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12655: hardcode_libdir_separator_CXX=:
12656: export_dynamic_flag_spec_CXX='${wl}-E'
12657: hardcode_direct_CXX=yes
12658: hardcode_minus_L_CXX=yes # Not in the search PATH,
12659: # but as the default
12660: # location of the library.
12661:
12662: case $cc_basename in
12663: CC*)
12664: # FIXME: insert proper C++ library support
12665: ld_shlibs_CXX=no
12666: ;;
12667: aCC*)
12668: 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'
12669: # Commands to make compiler produce verbose output that lists
12670: # what "hidden" libraries, object files and flags are used when
12671: # linking a shared library.
12672: #
12673: # There doesn't appear to be a way to prevent this compiler from
12674: # explicitly linking system object files so we need to strip them
12675: # from the output so that they don't get included in the library
12676: # dependencies.
12677: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12678: ;;
12679: *)
12680: if test "$GXX" = yes; then
12681: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12682: else
12683: # FIXME: insert proper C++ library support
12684: ld_shlibs_CXX=no
12685: fi
12686: ;;
12687: esac
12688: ;;
12689:
12690: hpux10*|hpux11*)
12691: if test $with_gnu_ld = no; then
12692: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12693: hardcode_libdir_separator_CXX=:
12694:
12695: case $host_cpu in
12696: hppa*64*|ia64*)
12697: ;;
12698: *)
12699: export_dynamic_flag_spec_CXX='${wl}-E'
12700: ;;
12701: esac
12702: fi
12703: case $host_cpu in
12704: hppa*64*|ia64*)
12705: hardcode_direct_CXX=no
12706: hardcode_shlibpath_var_CXX=no
12707: ;;
12708: *)
12709: hardcode_direct_CXX=yes
12710: hardcode_direct_absolute_CXX=yes
12711: hardcode_minus_L_CXX=yes # Not in the search PATH,
12712: # but as the default
12713: # location of the library.
12714: ;;
12715: esac
12716:
12717: case $cc_basename in
12718: CC*)
12719: # FIXME: insert proper C++ library support
12720: ld_shlibs_CXX=no
12721: ;;
12722: aCC*)
12723: case $host_cpu in
12724: hppa*64*)
12725: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12726: ;;
12727: ia64*)
12728: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12729: ;;
12730: *)
12731: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12732: ;;
12733: esac
12734: # Commands to make compiler produce verbose output that lists
12735: # what "hidden" libraries, object files and flags are used when
12736: # linking a shared library.
12737: #
12738: # There doesn't appear to be a way to prevent this compiler from
12739: # explicitly linking system object files so we need to strip them
12740: # from the output so that they don't get included in the library
12741: # dependencies.
12742: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12743: ;;
12744: *)
12745: if test "$GXX" = yes; then
12746: if test $with_gnu_ld = no; then
12747: case $host_cpu in
12748: hppa*64*)
12749: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12750: ;;
12751: ia64*)
12752: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12753: ;;
12754: *)
12755: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12756: ;;
12757: esac
12758: fi
12759: else
12760: # FIXME: insert proper C++ library support
12761: ld_shlibs_CXX=no
12762: fi
12763: ;;
12764: esac
12765: ;;
12766:
12767: interix[3-9]*)
12768: hardcode_direct_CXX=no
12769: hardcode_shlibpath_var_CXX=no
12770: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12771: export_dynamic_flag_spec_CXX='${wl}-E'
12772: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12773: # Instead, shared libraries are loaded at an image base (0x10000000 by
12774: # default) and relocated if they conflict, which is a slow very memory
12775: # consuming and fragmenting process. To avoid this, we pick a random,
12776: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12777: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12778: 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'
12779: 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'
12780: ;;
12781: irix5* | irix6*)
12782: case $cc_basename in
12783: CC*)
12784: # SGI C++
12785: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12786:
12787: # Archives containing C++ object files must be created using
12788: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12789: # necessary to make sure instantiated templates are included
12790: # in the archive.
12791: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12792: ;;
12793: *)
12794: if test "$GXX" = yes; then
12795: if test "$with_gnu_ld" = no; then
12796: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12797: else
12798: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12799: fi
12800: fi
12801: link_all_deplibs_CXX=yes
12802: ;;
12803: esac
12804: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12805: hardcode_libdir_separator_CXX=:
12806: inherit_rpath_CXX=yes
12807: ;;
12808:
12809: linux* | k*bsd*-gnu | kopensolaris*-gnu)
12810: case $cc_basename in
12811: KCC*)
12812: # Kuck and Associates, Inc. (KAI) C++ Compiler
12813:
12814: # KCC will only create a shared library if the output file
12815: # ends with ".so" (or ".sl" for HP-UX), so rename the library
12816: # to its proper name (with version) after linking.
12817: 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'
12818: 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'
12819: # Commands to make compiler produce verbose output that lists
12820: # what "hidden" libraries, object files and flags are used when
12821: # linking a shared library.
12822: #
12823: # There doesn't appear to be a way to prevent this compiler from
12824: # explicitly linking system object files so we need to strip them
12825: # from the output so that they don't get included in the library
12826: # dependencies.
12827: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12828:
12829: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12830: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12831:
12832: # Archives containing C++ object files must be created using
12833: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12834: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12835: ;;
12836: icpc* | ecpc* )
12837: # Intel C++
12838: with_gnu_ld=yes
12839: # version 8.0 and above of icpc choke on multiply defined symbols
12840: # if we add $predep_objects and $postdep_objects, however 7.1 and
12841: # earlier do not add the objects themselves.
12842: case `$CC -V 2>&1` in
12843: *"Version 7."*)
12844: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845: 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'
12846: ;;
12847: *) # Version 8.0 or newer
12848: tmp_idyn=
12849: case $host_cpu in
12850: ia64*) tmp_idyn=' -i_dynamic';;
12851: esac
12852: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853: 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'
12854: ;;
12855: esac
12856: archive_cmds_need_lc_CXX=no
12857: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12859: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12860: ;;
12861: pgCC* | pgcpp*)
12862: # Portland Group C++ compiler
12863: case `$CC -V` in
12864: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12865: prelink_cmds_CXX='tpldir=Template.dir~
12866: rm -rf $tpldir~
12867: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12868: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12869: old_archive_cmds_CXX='tpldir=Template.dir~
12870: rm -rf $tpldir~
12871: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12872: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12873: $RANLIB $oldlib'
12874: archive_cmds_CXX='tpldir=Template.dir~
12875: rm -rf $tpldir~
12876: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12877: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12878: archive_expsym_cmds_CXX='tpldir=Template.dir~
12879: rm -rf $tpldir~
12880: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12881: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12882: ;;
12883: *) # Version 6 and above use weak symbols
12884: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12885: 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'
12886: ;;
12887: esac
12888:
12889: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12890: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12891: whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12892: ;;
12893: cxx*)
12894: # Compaq C++
12895: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896: 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'
12897:
12898: runpath_var=LD_RUN_PATH
12899: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12900: hardcode_libdir_separator_CXX=:
12901:
12902: # Commands to make compiler produce verbose output that lists
12903: # what "hidden" libraries, object files and flags are used when
12904: # linking a shared library.
12905: #
12906: # There doesn't appear to be a way to prevent this compiler from
12907: # explicitly linking system object files so we need to strip them
12908: # from the output so that they don't get included in the library
12909: # dependencies.
12910: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12911: ;;
12912: xl* | mpixl* | bgxl*)
12913: # IBM XL 8.0 on PPC, with GNU ld
12914: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12915: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12916: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917: if test "x$supports_anon_versioning" = xyes; then
12918: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12919: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12920: echo "local: *; };" >> $output_objdir/$libname.ver~
12921: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12922: fi
12923: ;;
12924: *)
12925: case `$CC -V 2>&1 | sed 5q` in
12926: *Sun\ C*)
12927: # Sun C++ 5.9
12928: no_undefined_flag_CXX=' -zdefs'
12929: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930: 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'
12931: hardcode_libdir_flag_spec_CXX='-R$libdir'
12932: whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12933: compiler_needs_object_CXX=yes
12934:
12935: # Not sure whether something based on
12936: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12937: # would be better.
12938: output_verbose_link_cmd='func_echo_all'
12939:
12940: # Archives containing C++ object files must be created using
12941: # "CC -xar", where "CC" is the Sun C++ compiler. This is
12942: # necessary to make sure instantiated templates are included
12943: # in the archive.
12944: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12945: ;;
12946: esac
12947: ;;
12948: esac
12949: ;;
12950:
12951: lynxos*)
12952: # FIXME: insert proper C++ library support
12953: ld_shlibs_CXX=no
12954: ;;
12955:
12956: m88k*)
12957: # FIXME: insert proper C++ library support
12958: ld_shlibs_CXX=no
12959: ;;
12960:
12961: mvs*)
12962: case $cc_basename in
12963: cxx*)
12964: # FIXME: insert proper C++ library support
12965: ld_shlibs_CXX=no
12966: ;;
12967: *)
12968: # FIXME: insert proper C++ library support
12969: ld_shlibs_CXX=no
12970: ;;
12971: esac
12972: ;;
12973:
12974: netbsd*)
12975: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12976: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12977: wlarc=
12978: hardcode_libdir_flag_spec_CXX='-R$libdir'
12979: hardcode_direct_CXX=yes
12980: hardcode_shlibpath_var_CXX=no
12981: fi
12982: # Workaround some broken pre-1.5 toolchains
12983: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12984: ;;
12985:
12986: *nto* | *qnx*)
12987: ld_shlibs_CXX=yes
12988: ;;
12989:
12990: openbsd2*)
12991: # C++ shared libraries are fairly broken
12992: ld_shlibs_CXX=no
12993: ;;
12994:
12995: openbsd*)
12996: if test -f /usr/libexec/ld.so; then
12997: hardcode_direct_CXX=yes
12998: hardcode_shlibpath_var_CXX=no
12999: hardcode_direct_absolute_CXX=yes
13000: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13001: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13002: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13003: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13004: export_dynamic_flag_spec_CXX='${wl}-E'
13005: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13006: fi
13007: output_verbose_link_cmd=func_echo_all
13008: else
13009: ld_shlibs_CXX=no
13010: fi
13011: ;;
13012:
13013: osf3* | osf4* | osf5*)
13014: case $cc_basename in
13015: KCC*)
13016: # Kuck and Associates, Inc. (KAI) C++ Compiler
13017:
13018: # KCC will only create a shared library if the output file
13019: # ends with ".so" (or ".sl" for HP-UX), so rename the library
13020: # to its proper name (with version) after linking.
13021: 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'
13022:
13023: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13024: hardcode_libdir_separator_CXX=:
13025:
13026: # Archives containing C++ object files must be created using
13027: # the KAI C++ compiler.
13028: case $host in
13029: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13030: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13031: esac
13032: ;;
13033: RCC*)
13034: # Rational C++ 2.4.1
13035: # FIXME: insert proper C++ library support
13036: ld_shlibs_CXX=no
13037: ;;
13038: cxx*)
13039: case $host in
13040: osf3*)
13041: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13042: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13043: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044: ;;
13045: *)
13046: allow_undefined_flag_CXX=' -expect_unresolved \*'
13047: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13048: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13049: echo "-hidden">> $lib.exp~
13050: $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~
13051: $RM $lib.exp'
13052: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13053: ;;
13054: esac
13055:
13056: hardcode_libdir_separator_CXX=:
13057:
13058: # Commands to make compiler produce verbose output that lists
13059: # what "hidden" libraries, object files and flags are used when
13060: # linking a shared library.
13061: #
13062: # There doesn't appear to be a way to prevent this compiler from
13063: # explicitly linking system object files so we need to strip them
13064: # from the output so that they don't get included in the library
13065: # dependencies.
13066: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13067: ;;
13068: *)
13069: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13070: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13071: case $host in
13072: osf3*)
13073: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13074: ;;
13075: *)
13076: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13077: ;;
13078: esac
13079:
13080: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13081: hardcode_libdir_separator_CXX=:
13082:
13083: # Commands to make compiler produce verbose output that lists
13084: # what "hidden" libraries, object files and flags are used when
13085: # linking a shared library.
13086: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13087:
13088: else
13089: # FIXME: insert proper C++ library support
13090: ld_shlibs_CXX=no
13091: fi
13092: ;;
13093: esac
13094: ;;
13095:
13096: psos*)
13097: # FIXME: insert proper C++ library support
13098: ld_shlibs_CXX=no
13099: ;;
13100:
13101: sunos4*)
13102: case $cc_basename in
13103: CC*)
13104: # Sun C++ 4.x
13105: # FIXME: insert proper C++ library support
13106: ld_shlibs_CXX=no
13107: ;;
13108: lcc*)
13109: # Lucid
13110: # FIXME: insert proper C++ library support
13111: ld_shlibs_CXX=no
13112: ;;
13113: *)
13114: # FIXME: insert proper C++ library support
13115: ld_shlibs_CXX=no
13116: ;;
13117: esac
13118: ;;
13119:
13120: solaris*)
13121: case $cc_basename in
13122: CC* | sunCC*)
13123: # Sun C++ 4.2, 5.x and Centerline C++
13124: archive_cmds_need_lc_CXX=yes
13125: no_undefined_flag_CXX=' -zdefs'
13126: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13127: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13128: $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'
13129:
13130: hardcode_libdir_flag_spec_CXX='-R$libdir'
13131: hardcode_shlibpath_var_CXX=no
13132: case $host_os in
13133: solaris2.[0-5] | solaris2.[0-5].*) ;;
13134: *)
13135: # The compiler driver will combine and reorder linker options,
13136: # but understands `-z linker_flag'.
13137: # Supported since Solaris 2.6 (maybe 2.5.1?)
13138: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13139: ;;
13140: esac
13141: link_all_deplibs_CXX=yes
13142:
13143: output_verbose_link_cmd='func_echo_all'
13144:
13145: # Archives containing C++ object files must be created using
13146: # "CC -xar", where "CC" is the Sun C++ compiler. This is
13147: # necessary to make sure instantiated templates are included
13148: # in the archive.
13149: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13150: ;;
13151: gcx*)
13152: # Green Hills C++ Compiler
13153: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13154:
13155: # The C++ compiler must be used to create the archive.
13156: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13157: ;;
13158: *)
13159: # GNU C++ compiler with Solaris linker
13160: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13161: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13162: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13163: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13164: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13165: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13166:
13167: # Commands to make compiler produce verbose output that lists
13168: # what "hidden" libraries, object files and flags are used when
13169: # linking a shared library.
13170: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13171: else
13172: # g++ 2.7 appears to require `-G' NOT `-shared' on this
13173: # platform.
13174: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13175: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13176: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13177:
13178: # Commands to make compiler produce verbose output that lists
13179: # what "hidden" libraries, object files and flags are used when
13180: # linking a shared library.
13181: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13182: fi
13183:
13184: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13185: case $host_os in
13186: solaris2.[0-5] | solaris2.[0-5].*) ;;
13187: *)
13188: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13189: ;;
13190: esac
13191: fi
13192: ;;
13193: esac
13194: ;;
13195:
13196: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13197: no_undefined_flag_CXX='${wl}-z,text'
13198: archive_cmds_need_lc_CXX=no
13199: hardcode_shlibpath_var_CXX=no
13200: runpath_var='LD_RUN_PATH'
13201:
13202: case $cc_basename in
13203: CC*)
13204: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13205: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13206: ;;
13207: *)
13208: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13210: ;;
13211: esac
13212: ;;
13213:
13214: sysv5* | sco3.2v5* | sco5v6*)
13215: # Note: We can NOT use -z defs as we might desire, because we do not
13216: # link with -lc, and that would cause any symbols used from libc to
13217: # always be unresolved, which means just about no library would
13218: # ever link correctly. If we're not using GNU ld we use -z text
13219: # though, which does catch some bad symbols but isn't as heavy-handed
13220: # as -z defs.
13221: no_undefined_flag_CXX='${wl}-z,text'
13222: allow_undefined_flag_CXX='${wl}-z,nodefs'
13223: archive_cmds_need_lc_CXX=no
13224: hardcode_shlibpath_var_CXX=no
13225: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13226: hardcode_libdir_separator_CXX=':'
13227: link_all_deplibs_CXX=yes
13228: export_dynamic_flag_spec_CXX='${wl}-Bexport'
13229: runpath_var='LD_RUN_PATH'
13230:
13231: case $cc_basename in
13232: CC*)
13233: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13234: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13236: '"$old_archive_cmds_CXX"
13237: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13238: '"$reload_cmds_CXX"
13239: ;;
13240: *)
13241: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13242: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13243: ;;
13244: esac
13245: ;;
13246:
13247: tandem*)
13248: case $cc_basename in
13249: NCC*)
13250: # NonStop-UX NCC 3.20
13251: # FIXME: insert proper C++ library support
13252: ld_shlibs_CXX=no
13253: ;;
13254: *)
13255: # FIXME: insert proper C++ library support
13256: ld_shlibs_CXX=no
13257: ;;
13258: esac
13259: ;;
13260:
13261: vxworks*)
13262: # FIXME: insert proper C++ library support
13263: ld_shlibs_CXX=no
13264: ;;
13265:
13266: *)
13267: # FIXME: insert proper C++ library support
13268: ld_shlibs_CXX=no
13269: ;;
13270: esac
13271:
1.10 ! moko 13272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 13273: $as_echo "$ld_shlibs_CXX" >&6; }
1.8 moko 13274: test "$ld_shlibs_CXX" = no && can_build_shared=no
13275:
13276: GCC_CXX="$GXX"
13277: LD_CXX="$LD"
13278:
13279: ## CAVEAT EMPTOR:
13280: ## There is no encapsulation within the following macros, do not change
13281: ## the running order or otherwise move them around unless you know exactly
13282: ## what you are doing...
13283: # Dependencies to place before and after the object being linked:
13284: predep_objects_CXX=
13285: postdep_objects_CXX=
13286: predeps_CXX=
13287: postdeps_CXX=
13288: compiler_lib_search_path_CXX=
13289:
13290: cat > conftest.$ac_ext <<_LT_EOF
13291: class Foo
13292: {
13293: public:
13294: Foo (void) { a = 0; }
13295: private:
13296: int a;
13297: };
13298: _LT_EOF
13299:
13300:
13301: _lt_libdeps_save_CFLAGS=$CFLAGS
13302: case "$CC $CFLAGS " in #(
13303: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13304: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13305: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13306: esac
13307:
1.10 ! moko 13308: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 13309: (eval $ac_compile) 2>&5
13310: ac_status=$?
1.10 ! moko 13311: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 13312: test $ac_status = 0; }; then
1.8 moko 13313: # Parse the compiler output and extract the necessary
13314: # objects, libraries and library flags.
13315:
13316: # Sentinel used to keep track of whether or not we are before
13317: # the conftest object file.
13318: pre_test_object_deps_done=no
13319:
13320: for p in `eval "$output_verbose_link_cmd"`; do
13321: case ${prev}${p} in
13322:
13323: -L* | -R* | -l*)
13324: # Some compilers place space between "-{L,R}" and the path.
13325: # Remove the space.
13326: if test $p = "-L" ||
13327: test $p = "-R"; then
13328: prev=$p
13329: continue
13330: fi
13331:
13332: # Expand the sysroot to ease extracting the directories later.
13333: if test -z "$prev"; then
13334: case $p in
13335: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13336: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13337: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13338: esac
13339: fi
13340: case $p in
13341: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13342: esac
13343: if test "$pre_test_object_deps_done" = no; then
13344: case ${prev} in
13345: -L | -R)
13346: # Internal compiler library paths should come after those
13347: # provided the user. The postdeps already come after the
13348: # user supplied libs so there is no need to process them.
13349: if test -z "$compiler_lib_search_path_CXX"; then
13350: compiler_lib_search_path_CXX="${prev}${p}"
13351: else
13352: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13353: fi
13354: ;;
13355: # The "-l" case would never come before the object being
13356: # linked, so don't bother handling this case.
13357: esac
13358: else
13359: if test -z "$postdeps_CXX"; then
13360: postdeps_CXX="${prev}${p}"
13361: else
13362: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13363: fi
13364: fi
13365: prev=
13366: ;;
13367:
13368: *.lto.$objext) ;; # Ignore GCC LTO objects
13369: *.$objext)
13370: # This assumes that the test object file only shows up
13371: # once in the compiler output.
13372: if test "$p" = "conftest.$objext"; then
13373: pre_test_object_deps_done=yes
13374: continue
13375: fi
13376:
13377: if test "$pre_test_object_deps_done" = no; then
13378: if test -z "$predep_objects_CXX"; then
13379: predep_objects_CXX="$p"
13380: else
13381: predep_objects_CXX="$predep_objects_CXX $p"
13382: fi
13383: else
13384: if test -z "$postdep_objects_CXX"; then
13385: postdep_objects_CXX="$p"
13386: else
13387: postdep_objects_CXX="$postdep_objects_CXX $p"
13388: fi
13389: fi
13390: ;;
13391:
13392: *) ;; # Ignore the rest.
13393:
13394: esac
13395: done
13396:
13397: # Clean up.
13398: rm -f a.out a.exe
13399: else
13400: echo "libtool.m4: error: problem compiling CXX test program"
13401: fi
13402:
13403: $RM -f confest.$objext
13404: CFLAGS=$_lt_libdeps_save_CFLAGS
13405:
13406: # PORTME: override above test on systems where it is broken
13407: case $host_os in
13408: interix[3-9]*)
13409: # Interix 3.5 installs completely hosed .la files for C++, so rather than
13410: # hack all around it, let's just trust "g++" to DTRT.
13411: predep_objects_CXX=
13412: postdep_objects_CXX=
13413: postdeps_CXX=
13414: ;;
13415:
13416: linux*)
13417: case `$CC -V 2>&1 | sed 5q` in
13418: *Sun\ C*)
13419: # Sun C++ 5.9
13420:
13421: # The more standards-conforming stlport4 library is
13422: # incompatible with the Cstd library. Avoid specifying
13423: # it if it's in CXXFLAGS. Ignore libCrun as
13424: # -library=stlport4 depends on it.
13425: case " $CXX $CXXFLAGS " in
13426: *" -library=stlport4 "*)
13427: solaris_use_stlport4=yes
13428: ;;
13429: esac
13430:
13431: if test "$solaris_use_stlport4" != yes; then
13432: postdeps_CXX='-library=Cstd -library=Crun'
13433: fi
13434: ;;
13435: esac
13436: ;;
13437:
13438: solaris*)
13439: case $cc_basename in
13440: CC* | sunCC*)
13441: # The more standards-conforming stlport4 library is
13442: # incompatible with the Cstd library. Avoid specifying
13443: # it if it's in CXXFLAGS. Ignore libCrun as
13444: # -library=stlport4 depends on it.
13445: case " $CXX $CXXFLAGS " in
13446: *" -library=stlport4 "*)
13447: solaris_use_stlport4=yes
13448: ;;
13449: esac
13450:
13451: # Adding this requires a known-good setup of shared libraries for
13452: # Sun compiler versions before 5.6, else PIC objects from an old
13453: # archive will be linked into the output, leading to subtle bugs.
13454: if test "$solaris_use_stlport4" != yes; then
13455: postdeps_CXX='-library=Cstd -library=Crun'
13456: fi
13457: ;;
13458: esac
13459: ;;
13460: esac
13461:
13462:
13463: case " $postdeps_CXX " in
13464: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13465: esac
13466: compiler_lib_search_dirs_CXX=
13467: if test -n "${compiler_lib_search_path_CXX}"; then
13468: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13469: fi
13470:
13471:
13472:
13473:
13474:
13475:
13476:
13477:
13478:
13479:
13480:
13481:
13482:
13483:
13484:
13485:
13486:
13487:
13488:
13489:
13490:
13491:
13492:
13493:
13494:
13495:
13496:
13497:
13498:
13499:
13500:
13501: lt_prog_compiler_wl_CXX=
13502: lt_prog_compiler_pic_CXX=
13503: lt_prog_compiler_static_CXX=
13504:
13505:
13506: # C++ specific cases for pic, static, wl, etc.
13507: if test "$GXX" = yes; then
13508: lt_prog_compiler_wl_CXX='-Wl,'
13509: lt_prog_compiler_static_CXX='-static'
13510:
13511: case $host_os in
13512: aix*)
13513: # All AIX code is PIC.
13514: if test "$host_cpu" = ia64; then
13515: # AIX 5 now supports IA64 processor
13516: lt_prog_compiler_static_CXX='-Bstatic'
13517: fi
13518: ;;
13519:
13520: amigaos*)
13521: case $host_cpu in
13522: powerpc)
13523: # see comment about AmigaOS4 .so support
13524: lt_prog_compiler_pic_CXX='-fPIC'
13525: ;;
13526: m68k)
13527: # FIXME: we need at least 68020 code to build shared libraries, but
13528: # adding the `-m68020' flag to GCC prevents building anything better,
13529: # like `-m68040'.
13530: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13531: ;;
13532: esac
13533: ;;
13534:
13535: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13536: # PIC is the default for these OSes.
13537: ;;
13538: mingw* | cygwin* | os2* | pw32* | cegcc*)
13539: # This hack is so that the source file can tell whether it is being
13540: # built for inclusion in a dll (and should export symbols for example).
13541: # Although the cygwin gcc ignores -fPIC, still need this for old-style
13542: # (--disable-auto-import) libraries
13543: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13544: ;;
13545: darwin* | rhapsody*)
13546: # PIC is the default on this platform
13547: # Common symbols not allowed in MH_DYLIB files
13548: lt_prog_compiler_pic_CXX='-fno-common'
13549: ;;
13550: *djgpp*)
13551: # DJGPP does not support shared libraries at all
13552: lt_prog_compiler_pic_CXX=
13553: ;;
13554: haiku*)
13555: # PIC is the default for Haiku.
13556: # The "-static" flag exists, but is broken.
13557: lt_prog_compiler_static_CXX=
13558: ;;
13559: interix[3-9]*)
13560: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13561: # Instead, we relocate shared libraries at runtime.
13562: ;;
13563: sysv4*MP*)
13564: if test -d /usr/nec; then
13565: lt_prog_compiler_pic_CXX=-Kconform_pic
13566: fi
13567: ;;
13568: hpux*)
13569: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13570: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13571: # sets the default TLS model and affects inlining.
13572: case $host_cpu in
13573: hppa*64*)
13574: ;;
13575: *)
13576: lt_prog_compiler_pic_CXX='-fPIC'
13577: ;;
13578: esac
13579: ;;
13580: *qnx* | *nto*)
13581: # QNX uses GNU C++, but need to define -shared option too, otherwise
13582: # it will coredump.
13583: lt_prog_compiler_pic_CXX='-fPIC -shared'
13584: ;;
13585: *)
13586: lt_prog_compiler_pic_CXX='-fPIC'
13587: ;;
13588: esac
13589: else
13590: case $host_os in
13591: aix[4-9]*)
13592: # All AIX code is PIC.
13593: if test "$host_cpu" = ia64; then
13594: # AIX 5 now supports IA64 processor
13595: lt_prog_compiler_static_CXX='-Bstatic'
13596: else
13597: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13598: fi
13599: ;;
13600: chorus*)
13601: case $cc_basename in
13602: cxch68*)
13603: # Green Hills C++ Compiler
13604: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13605: ;;
13606: esac
13607: ;;
13608: mingw* | cygwin* | os2* | pw32* | cegcc*)
13609: # This hack is so that the source file can tell whether it is being
13610: # built for inclusion in a dll (and should export symbols for example).
13611: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13612: ;;
13613: dgux*)
13614: case $cc_basename in
13615: ec++*)
13616: lt_prog_compiler_pic_CXX='-KPIC'
13617: ;;
13618: ghcx*)
13619: # Green Hills C++ Compiler
13620: lt_prog_compiler_pic_CXX='-pic'
13621: ;;
13622: *)
13623: ;;
13624: esac
13625: ;;
13626: freebsd* | dragonfly*)
13627: # FreeBSD uses GNU C++
13628: ;;
13629: hpux9* | hpux10* | hpux11*)
13630: case $cc_basename in
13631: CC*)
13632: lt_prog_compiler_wl_CXX='-Wl,'
13633: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13634: if test "$host_cpu" != ia64; then
13635: lt_prog_compiler_pic_CXX='+Z'
13636: fi
13637: ;;
13638: aCC*)
13639: lt_prog_compiler_wl_CXX='-Wl,'
13640: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13641: case $host_cpu in
13642: hppa*64*|ia64*)
13643: # +Z the default
13644: ;;
13645: *)
13646: lt_prog_compiler_pic_CXX='+Z'
13647: ;;
13648: esac
13649: ;;
13650: *)
13651: ;;
13652: esac
13653: ;;
13654: interix*)
13655: # This is c89, which is MS Visual C++ (no shared libs)
13656: # Anyone wants to do a port?
13657: ;;
13658: irix5* | irix6* | nonstopux*)
13659: case $cc_basename in
13660: CC*)
13661: lt_prog_compiler_wl_CXX='-Wl,'
13662: lt_prog_compiler_static_CXX='-non_shared'
13663: # CC pic flag -KPIC is the default.
13664: ;;
13665: *)
13666: ;;
13667: esac
13668: ;;
13669: linux* | k*bsd*-gnu | kopensolaris*-gnu)
13670: case $cc_basename in
13671: KCC*)
13672: # KAI C++ Compiler
13673: lt_prog_compiler_wl_CXX='--backend -Wl,'
13674: lt_prog_compiler_pic_CXX='-fPIC'
13675: ;;
13676: ecpc* )
13677: # old Intel C++ for x86_64 which still supported -KPIC.
13678: lt_prog_compiler_wl_CXX='-Wl,'
13679: lt_prog_compiler_pic_CXX='-KPIC'
13680: lt_prog_compiler_static_CXX='-static'
13681: ;;
13682: icpc* )
13683: # Intel C++, used to be incompatible with GCC.
13684: # ICC 10 doesn't accept -KPIC any more.
13685: lt_prog_compiler_wl_CXX='-Wl,'
13686: lt_prog_compiler_pic_CXX='-fPIC'
13687: lt_prog_compiler_static_CXX='-static'
13688: ;;
13689: pgCC* | pgcpp*)
13690: # Portland Group C++ compiler
13691: lt_prog_compiler_wl_CXX='-Wl,'
13692: lt_prog_compiler_pic_CXX='-fpic'
13693: lt_prog_compiler_static_CXX='-Bstatic'
13694: ;;
13695: cxx*)
13696: # Compaq C++
13697: # Make sure the PIC flag is empty. It appears that all Alpha
13698: # Linux and Compaq Tru64 Unix objects are PIC.
13699: lt_prog_compiler_pic_CXX=
13700: lt_prog_compiler_static_CXX='-non_shared'
13701: ;;
13702: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13703: # IBM XL 8.0, 9.0 on PPC and BlueGene
13704: lt_prog_compiler_wl_CXX='-Wl,'
13705: lt_prog_compiler_pic_CXX='-qpic'
13706: lt_prog_compiler_static_CXX='-qstaticlink'
13707: ;;
13708: *)
13709: case `$CC -V 2>&1 | sed 5q` in
13710: *Sun\ C*)
13711: # Sun C++ 5.9
13712: lt_prog_compiler_pic_CXX='-KPIC'
13713: lt_prog_compiler_static_CXX='-Bstatic'
13714: lt_prog_compiler_wl_CXX='-Qoption ld '
13715: ;;
13716: esac
13717: ;;
13718: esac
13719: ;;
13720: lynxos*)
13721: ;;
13722: m88k*)
13723: ;;
13724: mvs*)
13725: case $cc_basename in
13726: cxx*)
13727: lt_prog_compiler_pic_CXX='-W c,exportall'
13728: ;;
13729: *)
13730: ;;
13731: esac
13732: ;;
13733: netbsd*)
13734: ;;
13735: *qnx* | *nto*)
13736: # QNX uses GNU C++, but need to define -shared option too, otherwise
13737: # it will coredump.
13738: lt_prog_compiler_pic_CXX='-fPIC -shared'
13739: ;;
13740: osf3* | osf4* | osf5*)
13741: case $cc_basename in
13742: KCC*)
13743: lt_prog_compiler_wl_CXX='--backend -Wl,'
13744: ;;
13745: RCC*)
13746: # Rational C++ 2.4.1
13747: lt_prog_compiler_pic_CXX='-pic'
13748: ;;
13749: cxx*)
13750: # Digital/Compaq C++
13751: lt_prog_compiler_wl_CXX='-Wl,'
13752: # Make sure the PIC flag is empty. It appears that all Alpha
13753: # Linux and Compaq Tru64 Unix objects are PIC.
13754: lt_prog_compiler_pic_CXX=
13755: lt_prog_compiler_static_CXX='-non_shared'
13756: ;;
13757: *)
13758: ;;
13759: esac
13760: ;;
13761: psos*)
13762: ;;
13763: solaris*)
13764: case $cc_basename in
13765: CC* | sunCC*)
13766: # Sun C++ 4.2, 5.x and Centerline C++
13767: lt_prog_compiler_pic_CXX='-KPIC'
13768: lt_prog_compiler_static_CXX='-Bstatic'
13769: lt_prog_compiler_wl_CXX='-Qoption ld '
13770: ;;
13771: gcx*)
13772: # Green Hills C++ Compiler
13773: lt_prog_compiler_pic_CXX='-PIC'
13774: ;;
13775: *)
13776: ;;
13777: esac
13778: ;;
13779: sunos4*)
13780: case $cc_basename in
13781: CC*)
13782: # Sun C++ 4.x
13783: lt_prog_compiler_pic_CXX='-pic'
13784: lt_prog_compiler_static_CXX='-Bstatic'
13785: ;;
13786: lcc*)
13787: # Lucid
13788: lt_prog_compiler_pic_CXX='-pic'
13789: ;;
13790: *)
13791: ;;
13792: esac
13793: ;;
13794: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13795: case $cc_basename in
13796: CC*)
13797: lt_prog_compiler_wl_CXX='-Wl,'
13798: lt_prog_compiler_pic_CXX='-KPIC'
13799: lt_prog_compiler_static_CXX='-Bstatic'
13800: ;;
13801: esac
13802: ;;
13803: tandem*)
13804: case $cc_basename in
13805: NCC*)
13806: # NonStop-UX NCC 3.20
13807: lt_prog_compiler_pic_CXX='-KPIC'
13808: ;;
13809: *)
13810: ;;
13811: esac
13812: ;;
13813: vxworks*)
13814: ;;
13815: *)
13816: lt_prog_compiler_can_build_shared_CXX=no
13817: ;;
13818: esac
13819: fi
13820:
13821: case $host_os in
13822: # For platforms which do not support PIC, -DPIC is meaningless:
13823: *djgpp*)
13824: lt_prog_compiler_pic_CXX=
13825: ;;
13826: *)
13827: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13828: ;;
13829: esac
13830:
1.10 ! moko 13831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 13832: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
! 13833: if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
! 13834: $as_echo_n "(cached) " >&6
1.8 moko 13835: else
13836: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13837: fi
1.10 ! moko 13838: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
! 13839: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.8 moko 13840: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13841:
13842: #
13843: # Check to make sure the PIC flag actually works.
13844: #
13845: if test -n "$lt_prog_compiler_pic_CXX"; then
1.10 ! moko 13846: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 13847: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
! 13848: if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
! 13849: $as_echo_n "(cached) " >&6
1.8 moko 13850: else
13851: lt_cv_prog_compiler_pic_works_CXX=no
13852: ac_outfile=conftest.$ac_objext
13853: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13854: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13855: # Insert the option either (1) after the last *FLAGS variable, or
13856: # (2) before a word containing "conftest.", or (3) at the end.
13857: # Note that $ac_compile itself does not contain backslashes and begins
13858: # with a dollar sign (not a hyphen), so the echo should work correctly.
13859: # The option is referenced via a variable to avoid confusing sed.
13860: lt_compile=`echo "$ac_compile" | $SED \
13861: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13862: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13863: -e 's:$: $lt_compiler_flag:'`
13864: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13865: (eval "$lt_compile" 2>conftest.err)
13866: ac_status=$?
13867: cat conftest.err >&5
13868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869: if (exit $ac_status) && test -s "$ac_outfile"; then
13870: # The compiler can only warn and ignore the option if not recognized
13871: # So say no if there are warnings other than the usual output.
13872: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13873: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13874: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13875: lt_cv_prog_compiler_pic_works_CXX=yes
13876: fi
13877: fi
13878: $RM conftest*
13879:
13880: fi
1.10 ! moko 13881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 13882: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.8 moko 13883:
13884: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13885: case $lt_prog_compiler_pic_CXX in
13886: "" | " "*) ;;
13887: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13888: esac
13889: else
13890: lt_prog_compiler_pic_CXX=
13891: lt_prog_compiler_can_build_shared_CXX=no
13892: fi
13893:
13894: fi
13895:
13896:
13897:
13898:
13899:
13900: #
13901: # Check to make sure the static flag actually works.
13902: #
13903: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.10 ! moko 13904: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 13905: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 13906: if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
! 13907: $as_echo_n "(cached) " >&6
1.8 moko 13908: else
13909: lt_cv_prog_compiler_static_works_CXX=no
13910: save_LDFLAGS="$LDFLAGS"
13911: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13912: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13913: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13914: # The linker can only warn and ignore the option if not recognized
13915: # So say no if there are warnings
13916: if test -s conftest.err; then
13917: # Append any errors to the config.log.
13918: cat conftest.err 1>&5
13919: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13920: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921: if diff conftest.exp conftest.er2 >/dev/null; then
13922: lt_cv_prog_compiler_static_works_CXX=yes
13923: fi
13924: else
13925: lt_cv_prog_compiler_static_works_CXX=yes
13926: fi
13927: fi
13928: $RM -r conftest*
13929: LDFLAGS="$save_LDFLAGS"
13930:
13931: fi
1.10 ! moko 13932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 13933: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.8 moko 13934:
13935: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13936: :
13937: else
13938: lt_prog_compiler_static_CXX=
13939: fi
13940:
13941:
13942:
13943:
1.10 ! moko 13944: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 13945: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 13946: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
! 13947: $as_echo_n "(cached) " >&6
1.8 moko 13948: else
13949: lt_cv_prog_compiler_c_o_CXX=no
13950: $RM -r conftest 2>/dev/null
13951: mkdir conftest
13952: cd conftest
13953: mkdir out
13954: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13955:
13956: lt_compiler_flag="-o out/conftest2.$ac_objext"
13957: # Insert the option either (1) after the last *FLAGS variable, or
13958: # (2) before a word containing "conftest.", or (3) at the end.
13959: # Note that $ac_compile itself does not contain backslashes and begins
13960: # with a dollar sign (not a hyphen), so the echo should work correctly.
13961: lt_compile=`echo "$ac_compile" | $SED \
13962: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964: -e 's:$: $lt_compiler_flag:'`
13965: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13966: (eval "$lt_compile" 2>out/conftest.err)
13967: ac_status=$?
13968: cat out/conftest.err >&5
13969: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970: if (exit $ac_status) && test -s out/conftest2.$ac_objext
13971: then
13972: # The compiler can only warn and ignore the option if not recognized
13973: # So say no if there are warnings
13974: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13975: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13976: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13977: lt_cv_prog_compiler_c_o_CXX=yes
13978: fi
13979: fi
13980: chmod u+w . 2>&5
13981: $RM conftest*
13982: # SGI C++ compiler will create directory out/ii_files/ for
13983: # template instantiation
13984: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13985: $RM out/* && rmdir out
13986: cd ..
13987: $RM -r conftest
13988: $RM conftest*
13989:
13990: fi
1.10 ! moko 13991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 13992: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.8 moko 13993:
13994:
13995:
1.10 ! moko 13996: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 13997: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 13998: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
! 13999: $as_echo_n "(cached) " >&6
1.8 moko 14000: else
14001: lt_cv_prog_compiler_c_o_CXX=no
14002: $RM -r conftest 2>/dev/null
14003: mkdir conftest
14004: cd conftest
14005: mkdir out
14006: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14007:
14008: lt_compiler_flag="-o out/conftest2.$ac_objext"
14009: # Insert the option either (1) after the last *FLAGS variable, or
14010: # (2) before a word containing "conftest.", or (3) at the end.
14011: # Note that $ac_compile itself does not contain backslashes and begins
14012: # with a dollar sign (not a hyphen), so the echo should work correctly.
14013: lt_compile=`echo "$ac_compile" | $SED \
14014: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14015: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14016: -e 's:$: $lt_compiler_flag:'`
14017: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14018: (eval "$lt_compile" 2>out/conftest.err)
14019: ac_status=$?
14020: cat out/conftest.err >&5
14021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022: if (exit $ac_status) && test -s out/conftest2.$ac_objext
14023: then
14024: # The compiler can only warn and ignore the option if not recognized
14025: # So say no if there are warnings
14026: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14027: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14028: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14029: lt_cv_prog_compiler_c_o_CXX=yes
14030: fi
14031: fi
14032: chmod u+w . 2>&5
14033: $RM conftest*
14034: # SGI C++ compiler will create directory out/ii_files/ for
14035: # template instantiation
14036: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14037: $RM out/* && rmdir out
14038: cd ..
14039: $RM -r conftest
14040: $RM conftest*
14041:
14042: fi
1.10 ! moko 14043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 14044: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.8 moko 14045:
14046:
14047:
14048:
14049: hard_links="nottested"
14050: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14051: # do not overwrite the value of need_locks provided by the user
1.10 ! moko 14052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 14053: $as_echo_n "checking if we can lock with hard links... " >&6; }
1.8 moko 14054: hard_links=yes
14055: $RM conftest*
14056: ln conftest.a conftest.b 2>/dev/null && hard_links=no
14057: touch conftest.a
14058: ln conftest.a conftest.b 2>&5 || hard_links=no
14059: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.10 ! moko 14060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 14061: $as_echo "$hard_links" >&6; }
1.8 moko 14062: if test "$hard_links" = no; then
1.10 ! moko 14063: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 14064: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.8 moko 14065: need_locks=warn
14066: fi
14067: else
14068: need_locks=no
14069: fi
14070:
14071:
14072:
1.10 ! moko 14073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 14074: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.8 moko 14075:
14076: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14077: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14078: case $host_os in
14079: aix[4-9]*)
14080: # If we're using GNU nm, then we don't want the "-C" option.
14081: # -C means demangle to AIX nm, but means don't demangle with GNU nm
14082: # Also, AIX nm treats weak defined symbols like other global defined
14083: # symbols, whereas GNU nm marks them as "W".
14084: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14085: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14086: else
14087: 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'
14088: fi
14089: ;;
14090: pw32*)
14091: export_symbols_cmds_CXX="$ltdll_cmds"
14092: ;;
14093: cygwin* | mingw* | cegcc*)
14094: case $cc_basename in
14095: cl*)
14096: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14097: ;;
14098: *)
14099: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14100: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14101: ;;
14102: esac
14103: ;;
14104: *)
14105: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106: ;;
14107: esac
14108:
1.10 ! moko 14109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 14110: $as_echo "$ld_shlibs_CXX" >&6; }
1.8 moko 14111: test "$ld_shlibs_CXX" = no && can_build_shared=no
14112:
14113: with_gnu_ld_CXX=$with_gnu_ld
14114:
14115:
14116:
14117:
14118:
14119:
14120: #
14121: # Do we need to explicitly link libc?
14122: #
14123: case "x$archive_cmds_need_lc_CXX" in
14124: x|xyes)
14125: # Assume -lc should be added
14126: archive_cmds_need_lc_CXX=yes
14127:
14128: if test "$enable_shared" = yes && test "$GCC" = yes; then
14129: case $archive_cmds_CXX in
14130: *'~'*)
14131: # FIXME: we may have to deal with multi-command sequences.
14132: ;;
14133: '$CC '*)
14134: # Test whether the compiler implicitly links with -lc since on some
14135: # systems, -lgcc has to come before -lc. If gcc already passes -lc
14136: # to ld, don't add -lc before -lgcc.
1.10 ! moko 14137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 14138: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
! 14139: if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
! 14140: $as_echo_n "(cached) " >&6
1.8 moko 14141: else
14142: $RM conftest*
14143: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14144:
1.10 ! moko 14145: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 14146: (eval $ac_compile) 2>&5
14147: ac_status=$?
1.10 ! moko 14148: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 14149: test $ac_status = 0; } 2>conftest.err; then
1.8 moko 14150: soname=conftest
14151: lib=conftest
14152: libobjs=conftest.$ac_objext
14153: deplibs=
14154: wl=$lt_prog_compiler_wl_CXX
14155: pic_flag=$lt_prog_compiler_pic_CXX
14156: compiler_flags=-v
14157: linker_flags=-v
14158: verstring=
14159: output_objdir=.
14160: libname=conftest
14161: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14162: allow_undefined_flag_CXX=
1.10 ! moko 14163: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.8 moko 14164: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14165: ac_status=$?
1.10 ! moko 14166: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 14167: test $ac_status = 0; }
1.8 moko 14168: then
14169: lt_cv_archive_cmds_need_lc_CXX=no
14170: else
14171: lt_cv_archive_cmds_need_lc_CXX=yes
14172: fi
14173: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14174: else
14175: cat conftest.err 1>&5
14176: fi
14177: $RM conftest*
14178:
14179: fi
1.10 ! moko 14180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
! 14181: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.8 moko 14182: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14183: ;;
14184: esac
14185: fi
14186: ;;
14187: esac
14188:
14189:
14190:
14191:
14192:
14193:
14194:
14195:
14196:
14197:
14198:
14199:
14200:
14201:
14202:
14203:
14204:
14205:
14206:
14207:
14208:
14209:
14210:
14211:
14212:
14213:
14214:
14215:
14216:
14217:
14218:
14219:
14220:
14221:
14222:
14223:
14224:
14225:
14226:
14227:
14228:
14229:
14230:
14231:
14232:
14233:
14234:
14235:
14236:
14237:
14238:
14239:
14240:
14241:
14242:
14243:
14244:
14245:
14246:
14247:
14248:
14249:
1.10 ! moko 14250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 14251: $as_echo_n "checking dynamic linker characteristics... " >&6; }
1.8 moko 14252:
14253: library_names_spec=
14254: libname_spec='lib$name'
14255: soname_spec=
14256: shrext_cmds=".so"
14257: postinstall_cmds=
14258: postuninstall_cmds=
14259: finish_cmds=
14260: finish_eval=
14261: shlibpath_var=
14262: shlibpath_overrides_runpath=unknown
14263: version_type=none
14264: dynamic_linker="$host_os ld.so"
14265: sys_lib_dlsearch_path_spec="/lib /usr/lib"
14266: need_lib_prefix=unknown
14267: hardcode_into_libs=no
14268:
14269: # when you set need_version to no, make sure it does not cause -set_version
14270: # flags to be left without arguments
14271: need_version=unknown
14272:
14273: case $host_os in
14274: aix3*)
14275: version_type=linux # correct to gnu/linux during the next big refactor
14276: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14277: shlibpath_var=LIBPATH
14278:
14279: # AIX 3 has no versioning support, so we append a major version to the name.
14280: soname_spec='${libname}${release}${shared_ext}$major'
14281: ;;
14282:
14283: aix[4-9]*)
14284: version_type=linux # correct to gnu/linux during the next big refactor
14285: need_lib_prefix=no
14286: need_version=no
14287: hardcode_into_libs=yes
14288: if test "$host_cpu" = ia64; then
14289: # AIX 5 supports IA64
14290: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14291: shlibpath_var=LD_LIBRARY_PATH
14292: else
14293: # With GCC up to 2.95.x, collect2 would create an import file
14294: # for dependence libraries. The import file would start with
14295: # the line `#! .'. This would cause the generated library to
14296: # depend on `.', always an invalid library. This was fixed in
14297: # development snapshots of GCC prior to 3.0.
14298: case $host_os in
14299: aix4 | aix4.[01] | aix4.[01].*)
14300: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14301: echo ' yes '
14302: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14303: :
14304: else
14305: can_build_shared=no
14306: fi
14307: ;;
14308: esac
14309: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14310: # soname into executable. Probably we can add versioning support to
14311: # collect2, so additional links can be useful in future.
14312: if test "$aix_use_runtimelinking" = yes; then
14313: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14314: # instead of lib<name>.a to let people know that these are not
14315: # typical AIX shared libraries.
14316: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317: else
14318: # We preserve .a as extension for shared libraries through AIX4.2
14319: # and later when we are not doing run time linking.
14320: library_names_spec='${libname}${release}.a $libname.a'
14321: soname_spec='${libname}${release}${shared_ext}$major'
14322: fi
14323: shlibpath_var=LIBPATH
14324: fi
14325: ;;
14326:
14327: amigaos*)
14328: case $host_cpu in
14329: powerpc)
14330: # Since July 2007 AmigaOS4 officially supports .so libraries.
14331: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14332: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14333: ;;
14334: m68k)
14335: library_names_spec='$libname.ixlibrary $libname.a'
14336: # Create ${libname}_ixlibrary.a entries in /sys/libs.
14337: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14338: ;;
14339: esac
14340: ;;
14341:
14342: beos*)
14343: library_names_spec='${libname}${shared_ext}'
14344: dynamic_linker="$host_os ld.so"
14345: shlibpath_var=LIBRARY_PATH
14346: ;;
14347:
14348: bsdi[45]*)
14349: version_type=linux # correct to gnu/linux during the next big refactor
14350: need_version=no
14351: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352: soname_spec='${libname}${release}${shared_ext}$major'
14353: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14354: shlibpath_var=LD_LIBRARY_PATH
14355: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14356: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14357: # the default ld.so.conf also contains /usr/contrib/lib and
14358: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14359: # libtool to hard-code these into programs
14360: ;;
14361:
14362: cygwin* | mingw* | pw32* | cegcc*)
14363: version_type=windows
14364: shrext_cmds=".dll"
14365: need_version=no
14366: need_lib_prefix=no
14367:
14368: case $GCC,$cc_basename in
14369: yes,*)
14370: # gcc
14371: library_names_spec='$libname.dll.a'
14372: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14373: postinstall_cmds='base_file=`basename \${file}`~
14374: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14375: dldir=$destdir/`dirname \$dlpath`~
14376: test -d \$dldir || mkdir -p \$dldir~
14377: $install_prog $dir/$dlname \$dldir/$dlname~
14378: chmod a+x \$dldir/$dlname~
14379: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14380: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14381: fi'
14382: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14383: dlpath=$dir/\$dldll~
14384: $RM \$dlpath'
14385: shlibpath_overrides_runpath=yes
14386:
14387: case $host_os in
14388: cygwin*)
14389: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14390: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14391:
14392: ;;
14393: mingw* | cegcc*)
14394: # MinGW DLLs use traditional 'lib' prefix
14395: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14396: ;;
14397: pw32*)
14398: # pw32 DLLs use 'pw' prefix rather than 'lib'
14399: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14400: ;;
14401: esac
14402: dynamic_linker='Win32 ld.exe'
14403: ;;
14404:
14405: *,cl*)
14406: # Native MSVC
14407: libname_spec='$name'
14408: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14409: library_names_spec='${libname}.dll.lib'
14410:
14411: case $build_os in
14412: mingw*)
14413: sys_lib_search_path_spec=
14414: lt_save_ifs=$IFS
14415: IFS=';'
14416: for lt_path in $LIB
14417: do
14418: IFS=$lt_save_ifs
14419: # Let DOS variable expansion print the short 8.3 style file name.
14420: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14421: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14422: done
14423: IFS=$lt_save_ifs
14424: # Convert to MSYS style.
14425: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14426: ;;
14427: cygwin*)
14428: # Convert to unix form, then to dos form, then back to unix form
14429: # but this time dos style (no spaces!) so that the unix form looks
14430: # like /cygdrive/c/PROGRA~1:/cygdr...
14431: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14432: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14433: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14434: ;;
14435: *)
14436: sys_lib_search_path_spec="$LIB"
14437: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14438: # It is most probably a Windows format PATH.
14439: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14440: else
14441: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14442: fi
14443: # FIXME: find the short name or the path components, as spaces are
14444: # common. (e.g. "Program Files" -> "PROGRA~1")
14445: ;;
14446: esac
14447:
14448: # DLL is installed to $(libdir)/../bin by postinstall_cmds
14449: postinstall_cmds='base_file=`basename \${file}`~
14450: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14451: dldir=$destdir/`dirname \$dlpath`~
14452: test -d \$dldir || mkdir -p \$dldir~
14453: $install_prog $dir/$dlname \$dldir/$dlname'
14454: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14455: dlpath=$dir/\$dldll~
14456: $RM \$dlpath'
14457: shlibpath_overrides_runpath=yes
14458: dynamic_linker='Win32 link.exe'
14459: ;;
14460:
14461: *)
14462: # Assume MSVC wrapper
14463: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14464: dynamic_linker='Win32 ld.exe'
14465: ;;
14466: esac
14467: # FIXME: first we should search . and the directory the executable is in
14468: shlibpath_var=PATH
14469: ;;
14470:
14471: darwin* | rhapsody*)
14472: dynamic_linker="$host_os dyld"
14473: version_type=darwin
14474: need_lib_prefix=no
14475: need_version=no
14476: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14477: soname_spec='${libname}${release}${major}$shared_ext'
14478: shlibpath_overrides_runpath=yes
14479: shlibpath_var=DYLD_LIBRARY_PATH
14480: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14481:
14482: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14483: ;;
14484:
14485: dgux*)
14486: version_type=linux # correct to gnu/linux during the next big refactor
14487: need_lib_prefix=no
14488: need_version=no
14489: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14490: soname_spec='${libname}${release}${shared_ext}$major'
14491: shlibpath_var=LD_LIBRARY_PATH
14492: ;;
14493:
14494: freebsd* | dragonfly*)
14495: # DragonFly does not have aout. When/if they implement a new
14496: # versioning mechanism, adjust this.
14497: if test -x /usr/bin/objformat; then
14498: objformat=`/usr/bin/objformat`
14499: else
14500: case $host_os in
14501: freebsd[23].*) objformat=aout ;;
14502: *) objformat=elf ;;
14503: esac
14504: fi
14505: version_type=freebsd-$objformat
14506: case $version_type in
14507: freebsd-elf*)
14508: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14509: need_version=no
14510: need_lib_prefix=no
14511: ;;
14512: freebsd-*)
14513: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14514: need_version=yes
14515: ;;
14516: esac
14517: shlibpath_var=LD_LIBRARY_PATH
14518: case $host_os in
14519: freebsd2.*)
14520: shlibpath_overrides_runpath=yes
14521: ;;
14522: freebsd3.[01]* | freebsdelf3.[01]*)
14523: shlibpath_overrides_runpath=yes
14524: hardcode_into_libs=yes
14525: ;;
14526: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14527: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14528: shlibpath_overrides_runpath=no
14529: hardcode_into_libs=yes
14530: ;;
14531: *) # from 4.6 on, and DragonFly
14532: shlibpath_overrides_runpath=yes
14533: hardcode_into_libs=yes
14534: ;;
14535: esac
14536: ;;
14537:
14538: gnu*)
14539: version_type=linux # correct to gnu/linux during the next big refactor
14540: need_lib_prefix=no
14541: need_version=no
14542: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14543: soname_spec='${libname}${release}${shared_ext}$major'
14544: shlibpath_var=LD_LIBRARY_PATH
14545: shlibpath_overrides_runpath=no
14546: hardcode_into_libs=yes
14547: ;;
14548:
14549: haiku*)
14550: version_type=linux # correct to gnu/linux during the next big refactor
14551: need_lib_prefix=no
14552: need_version=no
14553: dynamic_linker="$host_os runtime_loader"
14554: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14555: soname_spec='${libname}${release}${shared_ext}$major'
14556: shlibpath_var=LIBRARY_PATH
14557: shlibpath_overrides_runpath=yes
14558: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14559: hardcode_into_libs=yes
14560: ;;
14561:
14562: hpux9* | hpux10* | hpux11*)
14563: # Give a soname corresponding to the major version so that dld.sl refuses to
14564: # link against other versions.
14565: version_type=sunos
14566: need_lib_prefix=no
14567: need_version=no
14568: case $host_cpu in
14569: ia64*)
14570: shrext_cmds='.so'
14571: hardcode_into_libs=yes
14572: dynamic_linker="$host_os dld.so"
14573: shlibpath_var=LD_LIBRARY_PATH
14574: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576: soname_spec='${libname}${release}${shared_ext}$major'
14577: if test "X$HPUX_IA64_MODE" = X32; then
14578: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14579: else
14580: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14581: fi
14582: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14583: ;;
14584: hppa*64*)
14585: shrext_cmds='.sl'
14586: hardcode_into_libs=yes
14587: dynamic_linker="$host_os dld.sl"
14588: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14589: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14590: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591: soname_spec='${libname}${release}${shared_ext}$major'
14592: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14593: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14594: ;;
14595: *)
14596: shrext_cmds='.sl'
14597: dynamic_linker="$host_os dld.sl"
14598: shlibpath_var=SHLIB_PATH
14599: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14600: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601: soname_spec='${libname}${release}${shared_ext}$major'
14602: ;;
14603: esac
14604: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14605: postinstall_cmds='chmod 555 $lib'
14606: # or fails outright, so override atomically:
14607: install_override_mode=555
14608: ;;
14609:
14610: interix[3-9]*)
14611: version_type=linux # correct to gnu/linux during the next big refactor
14612: need_lib_prefix=no
14613: need_version=no
14614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615: soname_spec='${libname}${release}${shared_ext}$major'
14616: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14617: shlibpath_var=LD_LIBRARY_PATH
14618: shlibpath_overrides_runpath=no
14619: hardcode_into_libs=yes
14620: ;;
14621:
14622: irix5* | irix6* | nonstopux*)
14623: case $host_os in
14624: nonstopux*) version_type=nonstopux ;;
14625: *)
14626: if test "$lt_cv_prog_gnu_ld" = yes; then
14627: version_type=linux # correct to gnu/linux during the next big refactor
14628: else
14629: version_type=irix
14630: fi ;;
14631: esac
14632: need_lib_prefix=no
14633: need_version=no
14634: soname_spec='${libname}${release}${shared_ext}$major'
14635: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14636: case $host_os in
14637: irix5* | nonstopux*)
14638: libsuff= shlibsuff=
14639: ;;
14640: *)
14641: case $LD in # libtool.m4 will add one of these switches to LD
14642: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14643: libsuff= shlibsuff= libmagic=32-bit;;
14644: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14645: libsuff=32 shlibsuff=N32 libmagic=N32;;
14646: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14647: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14648: *) libsuff= shlibsuff= libmagic=never-match;;
14649: esac
14650: ;;
14651: esac
14652: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14653: shlibpath_overrides_runpath=no
14654: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14655: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14656: hardcode_into_libs=yes
14657: ;;
14658:
14659: # No shared lib support for Linux oldld, aout, or coff.
14660: linux*oldld* | linux*aout* | linux*coff*)
14661: dynamic_linker=no
14662: ;;
14663:
14664: # This must be glibc/ELF.
14665: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14666: version_type=linux # correct to gnu/linux during the next big refactor
14667: need_lib_prefix=no
14668: need_version=no
14669: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670: soname_spec='${libname}${release}${shared_ext}$major'
14671: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14672: shlibpath_var=LD_LIBRARY_PATH
14673: shlibpath_overrides_runpath=no
14674:
14675: # Some binutils ld are patched to set DT_RUNPATH
1.10 ! moko 14676: if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
! 14677: $as_echo_n "(cached) " >&6
1.8 moko 14678: else
14679: lt_cv_shlibpath_overrides_runpath=no
14680: save_LDFLAGS=$LDFLAGS
14681: save_libdir=$libdir
14682: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14683: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.10 ! moko 14684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 14685: /* end confdefs.h. */
14686:
14687: int
14688: main ()
14689: {
14690:
14691: ;
14692: return 0;
14693: }
14694: _ACEOF
1.10 ! moko 14695: if ac_fn_cxx_try_link "$LINENO"; then :
! 14696: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
1.8 moko 14697: lt_cv_shlibpath_overrides_runpath=yes
14698: fi
14699: fi
1.10 ! moko 14700: rm -f core conftest.err conftest.$ac_objext \
! 14701: conftest$ac_exeext conftest.$ac_ext
1.8 moko 14702: LDFLAGS=$save_LDFLAGS
14703: libdir=$save_libdir
14704:
14705: fi
14706:
14707: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14708:
14709: # This implies no fast_install, which is unacceptable.
14710: # Some rework will be needed to allow for fast_install
14711: # before this can be enabled.
14712: hardcode_into_libs=yes
14713:
14714: # Append ld.so.conf contents to the search path
14715: if test -f /etc/ld.so.conf; then
14716: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14717: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14718: fi
14719:
14720: # We used to test for /lib/ld.so.1 and disable shared libraries on
14721: # powerpc, because MkLinux only supported shared libraries with the
14722: # GNU dynamic linker. Since this was broken with cross compilers,
14723: # most powerpc-linux boxes support dynamic linking these days and
14724: # people can always --disable-shared, the test was removed, and we
14725: # assume the GNU/Linux dynamic linker is in use.
14726: dynamic_linker='GNU/Linux ld.so'
14727: ;;
14728:
14729: netbsd*)
14730: version_type=sunos
14731: need_lib_prefix=no
14732: need_version=no
14733: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14734: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14735: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14736: dynamic_linker='NetBSD (a.out) ld.so'
14737: else
14738: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14739: soname_spec='${libname}${release}${shared_ext}$major'
14740: dynamic_linker='NetBSD ld.elf_so'
14741: fi
14742: shlibpath_var=LD_LIBRARY_PATH
14743: shlibpath_overrides_runpath=yes
14744: hardcode_into_libs=yes
14745: ;;
14746:
14747: newsos6)
14748: version_type=linux # correct to gnu/linux during the next big refactor
14749: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750: shlibpath_var=LD_LIBRARY_PATH
14751: shlibpath_overrides_runpath=yes
14752: ;;
14753:
14754: *nto* | *qnx*)
14755: version_type=qnx
14756: need_lib_prefix=no
14757: need_version=no
14758: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759: soname_spec='${libname}${release}${shared_ext}$major'
14760: shlibpath_var=LD_LIBRARY_PATH
14761: shlibpath_overrides_runpath=no
14762: hardcode_into_libs=yes
14763: dynamic_linker='ldqnx.so'
14764: ;;
14765:
14766: openbsd*)
14767: version_type=sunos
14768: sys_lib_dlsearch_path_spec="/usr/lib"
14769: need_lib_prefix=no
14770: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14771: case $host_os in
14772: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14773: *) need_version=no ;;
14774: esac
14775: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777: shlibpath_var=LD_LIBRARY_PATH
14778: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14779: case $host_os in
14780: openbsd2.[89] | openbsd2.[89].*)
14781: shlibpath_overrides_runpath=no
14782: ;;
14783: *)
14784: shlibpath_overrides_runpath=yes
14785: ;;
14786: esac
14787: else
14788: shlibpath_overrides_runpath=yes
14789: fi
14790: ;;
14791:
14792: os2*)
14793: libname_spec='$name'
14794: shrext_cmds=".dll"
14795: need_lib_prefix=no
14796: library_names_spec='$libname${shared_ext} $libname.a'
14797: dynamic_linker='OS/2 ld.exe'
14798: shlibpath_var=LIBPATH
14799: ;;
14800:
14801: osf3* | osf4* | osf5*)
14802: version_type=osf
14803: need_lib_prefix=no
14804: need_version=no
14805: soname_spec='${libname}${release}${shared_ext}$major'
14806: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807: shlibpath_var=LD_LIBRARY_PATH
14808: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14809: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14810: ;;
14811:
14812: rdos*)
14813: dynamic_linker=no
14814: ;;
14815:
14816: solaris*)
14817: version_type=linux # correct to gnu/linux during the next big refactor
14818: need_lib_prefix=no
14819: need_version=no
14820: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821: soname_spec='${libname}${release}${shared_ext}$major'
14822: shlibpath_var=LD_LIBRARY_PATH
14823: shlibpath_overrides_runpath=yes
14824: hardcode_into_libs=yes
14825: # ldd complains unless libraries are executable
14826: postinstall_cmds='chmod +x $lib'
14827: ;;
14828:
14829: sunos4*)
14830: version_type=sunos
14831: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14832: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14833: shlibpath_var=LD_LIBRARY_PATH
14834: shlibpath_overrides_runpath=yes
14835: if test "$with_gnu_ld" = yes; then
14836: need_lib_prefix=no
14837: fi
14838: need_version=yes
14839: ;;
14840:
14841: sysv4 | sysv4.3*)
14842: version_type=linux # correct to gnu/linux during the next big refactor
14843: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844: soname_spec='${libname}${release}${shared_ext}$major'
14845: shlibpath_var=LD_LIBRARY_PATH
14846: case $host_vendor in
14847: sni)
14848: shlibpath_overrides_runpath=no
14849: need_lib_prefix=no
14850: runpath_var=LD_RUN_PATH
14851: ;;
14852: siemens)
14853: need_lib_prefix=no
14854: ;;
14855: motorola)
14856: need_lib_prefix=no
14857: need_version=no
14858: shlibpath_overrides_runpath=no
14859: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14860: ;;
14861: esac
14862: ;;
14863:
14864: sysv4*MP*)
14865: if test -d /usr/nec ;then
14866: version_type=linux # correct to gnu/linux during the next big refactor
14867: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14868: soname_spec='$libname${shared_ext}.$major'
14869: shlibpath_var=LD_LIBRARY_PATH
14870: fi
14871: ;;
14872:
14873: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14874: version_type=freebsd-elf
14875: need_lib_prefix=no
14876: need_version=no
14877: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14878: soname_spec='${libname}${release}${shared_ext}$major'
14879: shlibpath_var=LD_LIBRARY_PATH
14880: shlibpath_overrides_runpath=yes
14881: hardcode_into_libs=yes
14882: if test "$with_gnu_ld" = yes; then
14883: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14884: else
14885: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14886: case $host_os in
14887: sco3.2v5*)
14888: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14889: ;;
14890: esac
14891: fi
14892: sys_lib_dlsearch_path_spec='/usr/lib'
14893: ;;
14894:
14895: tpf*)
14896: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14897: version_type=linux # correct to gnu/linux during the next big refactor
14898: need_lib_prefix=no
14899: need_version=no
14900: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901: shlibpath_var=LD_LIBRARY_PATH
14902: shlibpath_overrides_runpath=no
14903: hardcode_into_libs=yes
14904: ;;
14905:
14906: uts4*)
14907: version_type=linux # correct to gnu/linux during the next big refactor
14908: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909: soname_spec='${libname}${release}${shared_ext}$major'
14910: shlibpath_var=LD_LIBRARY_PATH
14911: ;;
14912:
14913: *)
14914: dynamic_linker=no
14915: ;;
14916: esac
1.10 ! moko 14917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 14918: $as_echo "$dynamic_linker" >&6; }
1.8 moko 14919: test "$dynamic_linker" = no && can_build_shared=no
14920:
14921: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14922: if test "$GCC" = yes; then
14923: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14924: fi
14925:
14926: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14927: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14928: fi
14929: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14930: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14931: fi
14932:
14933:
14934:
14935:
14936:
14937:
14938:
14939:
14940:
14941:
14942:
14943:
14944:
14945:
14946:
14947:
14948:
14949:
14950:
14951:
14952:
14953:
14954:
14955:
14956:
14957:
14958:
14959:
14960:
14961:
14962:
14963:
14964:
14965:
14966:
14967:
14968:
14969:
1.10 ! moko 14970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 14971: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.8 moko 14972: hardcode_action_CXX=
14973: if test -n "$hardcode_libdir_flag_spec_CXX" ||
14974: test -n "$runpath_var_CXX" ||
14975: test "X$hardcode_automatic_CXX" = "Xyes" ; then
14976:
14977: # We can hardcode non-existent directories.
14978: if test "$hardcode_direct_CXX" != no &&
14979: # If the only mechanism to avoid hardcoding is shlibpath_var, we
14980: # have to relink, otherwise we might link with an installed library
14981: # when we should be linking with a yet-to-be-installed one
14982: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14983: test "$hardcode_minus_L_CXX" != no; then
14984: # Linking always hardcodes the temporary library directory.
14985: hardcode_action_CXX=relink
14986: else
14987: # We can link without hardcoding, and we can hardcode nonexisting dirs.
14988: hardcode_action_CXX=immediate
14989: fi
14990: else
14991: # We cannot hardcode anything, or else we can only hardcode existing
14992: # directories.
14993: hardcode_action_CXX=unsupported
14994: fi
1.10 ! moko 14995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
! 14996: $as_echo "$hardcode_action_CXX" >&6; }
1.8 moko 14997:
14998: if test "$hardcode_action_CXX" = relink ||
14999: test "$inherit_rpath_CXX" = yes; then
15000: # Fast installation is not supported
15001: enable_fast_install=no
15002: elif test "$shlibpath_overrides_runpath" = yes ||
15003: test "$enable_shared" = no; then
15004: # Fast installation is not necessary
15005: enable_fast_install=needless
15006: fi
15007:
15008:
15009:
15010:
15011:
15012:
15013:
15014: fi # test -n "$compiler"
15015:
15016: CC=$lt_save_CC
15017: CFLAGS=$lt_save_CFLAGS
15018: LDCXX=$LD
15019: LD=$lt_save_LD
15020: GCC=$lt_save_GCC
15021: with_gnu_ld=$lt_save_with_gnu_ld
15022: lt_cv_path_LDCXX=$lt_cv_path_LD
15023: lt_cv_path_LD=$lt_save_path_LD
15024: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15025: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15026: fi # test "$_lt_caught_CXX_error" != yes
15027:
15028: ac_ext=c
15029: ac_cpp='$CPP $CPPFLAGS'
15030: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15033:
15034:
15035:
15036:
15037:
15038:
15039:
15040:
15041:
15042:
15043:
15044:
15045:
15046:
15047:
1.10 ! moko 15048: ac_config_commands="$ac_config_commands libtool"
1.8 moko 15049:
15050:
15051:
15052:
15053: # Only expand once:
15054:
15055:
15056:
15057:
15058:
15059:
15060:
15061:
15062:
15063:
15064:
15065:
15066:
15067:
15068:
15069:
15070: case $enable_ltdl_convenience in
1.10 ! moko 15071: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.8 moko 15072: "") enable_ltdl_convenience=yes
15073: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
15074: esac
1.10 ! moko 15075: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 15076: LTDLDEPS=$LIBLTDL
15077: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
15078:
15079:
15080:
15081:
15082:
15083: # For backwards non-gettext consistent compatibility...
15084: INCLTDL="$LTDLINCL"
15085:
15086:
15087:
15088:
15089:
1.10 ! moko 15090: # Check whether --enable-static was given.
! 15091: if test "${enable_static+set}" = set; then :
! 15092: enableval=$enable_static; p=${PACKAGE-default}
1.8 moko 15093: case $enableval in
15094: yes) enable_static=yes ;;
15095: no) enable_static=no ;;
15096: *)
15097: enable_static=no
15098: # Look at the argument we got. We use all the common list separators.
15099: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15100: for pkg in $enableval; do
15101: IFS="$lt_save_ifs"
15102: if test "X$pkg" = "X$p"; then
15103: enable_static=yes
15104: fi
15105: done
15106: IFS="$lt_save_ifs"
15107: ;;
15108: esac
15109: else
15110: enable_static=no
1.10 ! moko 15111: fi
! 15112:
1.8 moko 15113:
15114:
15115:
15116:
15117:
15118: enable_win32_dll=yes
15119:
15120: case $host in
15121: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
15122: if test -n "$ac_tool_prefix"; then
15123: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
15124: set dummy ${ac_tool_prefix}as; ac_word=$2
1.10 ! moko 15125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 15126: $as_echo_n "checking for $ac_word... " >&6; }
! 15127: if test "${ac_cv_prog_AS+set}" = set; then :
! 15128: $as_echo_n "(cached) " >&6
1.8 moko 15129: else
15130: if test -n "$AS"; then
15131: ac_cv_prog_AS="$AS" # Let the user override the test.
15132: else
15133: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15134: for as_dir in $PATH
15135: do
15136: IFS=$as_save_IFS
15137: test -z "$as_dir" && as_dir=.
1.10 ! moko 15138: for ac_exec_ext in '' $ac_executable_extensions; do
! 15139: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 15140: ac_cv_prog_AS="${ac_tool_prefix}as"
1.10 ! moko 15141: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15142: break 2
15143: fi
15144: done
1.10 ! moko 15145: done
! 15146: IFS=$as_save_IFS
1.8 moko 15147:
15148: fi
15149: fi
15150: AS=$ac_cv_prog_AS
15151: if test -n "$AS"; then
1.10 ! moko 15152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
! 15153: $as_echo "$AS" >&6; }
1.8 moko 15154: else
1.10 ! moko 15155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15156: $as_echo "no" >&6; }
1.8 moko 15157: fi
15158:
1.10 ! moko 15159:
1.8 moko 15160: fi
15161: if test -z "$ac_cv_prog_AS"; then
15162: ac_ct_AS=$AS
15163: # Extract the first word of "as", so it can be a program name with args.
15164: set dummy as; ac_word=$2
1.10 ! moko 15165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 15166: $as_echo_n "checking for $ac_word... " >&6; }
! 15167: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
! 15168: $as_echo_n "(cached) " >&6
1.8 moko 15169: else
15170: if test -n "$ac_ct_AS"; then
15171: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15172: else
15173: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174: for as_dir in $PATH
15175: do
15176: IFS=$as_save_IFS
15177: test -z "$as_dir" && as_dir=.
1.10 ! moko 15178: for ac_exec_ext in '' $ac_executable_extensions; do
! 15179: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 15180: ac_cv_prog_ac_ct_AS="as"
1.10 ! moko 15181: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15182: break 2
15183: fi
15184: done
1.10 ! moko 15185: done
! 15186: IFS=$as_save_IFS
1.8 moko 15187:
15188: fi
15189: fi
15190: ac_ct_AS=$ac_cv_prog_ac_ct_AS
15191: if test -n "$ac_ct_AS"; then
1.10 ! moko 15192: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
! 15193: $as_echo "$ac_ct_AS" >&6; }
1.8 moko 15194: else
1.10 ! moko 15195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15196: $as_echo "no" >&6; }
1.8 moko 15197: fi
15198:
1.10 ! moko 15199: if test "x$ac_ct_AS" = x; then
! 15200: AS="false"
! 15201: else
! 15202: case $cross_compiling:$ac_tool_warned in
! 15203: yes:)
! 15204: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 15205: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 15206: ac_tool_warned=yes ;;
! 15207: esac
! 15208: AS=$ac_ct_AS
! 15209: fi
1.8 moko 15210: else
15211: AS="$ac_cv_prog_AS"
15212: fi
15213:
15214: if test -n "$ac_tool_prefix"; then
15215: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15216: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.10 ! moko 15217: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 15218: $as_echo_n "checking for $ac_word... " >&6; }
! 15219: if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
! 15220: $as_echo_n "(cached) " >&6
1.8 moko 15221: else
15222: if test -n "$DLLTOOL"; then
15223: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15224: else
15225: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15226: for as_dir in $PATH
15227: do
15228: IFS=$as_save_IFS
15229: test -z "$as_dir" && as_dir=.
1.10 ! moko 15230: for ac_exec_ext in '' $ac_executable_extensions; do
! 15231: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 15232: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.10 ! moko 15233: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15234: break 2
15235: fi
15236: done
1.10 ! moko 15237: done
! 15238: IFS=$as_save_IFS
1.8 moko 15239:
15240: fi
15241: fi
15242: DLLTOOL=$ac_cv_prog_DLLTOOL
15243: if test -n "$DLLTOOL"; then
1.10 ! moko 15244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 15245: $as_echo "$DLLTOOL" >&6; }
1.8 moko 15246: else
1.10 ! moko 15247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15248: $as_echo "no" >&6; }
1.8 moko 15249: fi
15250:
1.10 ! moko 15251:
1.8 moko 15252: fi
15253: if test -z "$ac_cv_prog_DLLTOOL"; then
15254: ac_ct_DLLTOOL=$DLLTOOL
15255: # Extract the first word of "dlltool", so it can be a program name with args.
15256: set dummy dlltool; ac_word=$2
1.10 ! moko 15257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 15258: $as_echo_n "checking for $ac_word... " >&6; }
! 15259: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
! 15260: $as_echo_n "(cached) " >&6
1.8 moko 15261: else
15262: if test -n "$ac_ct_DLLTOOL"; then
15263: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15264: else
15265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15266: for as_dir in $PATH
15267: do
15268: IFS=$as_save_IFS
15269: test -z "$as_dir" && as_dir=.
1.10 ! moko 15270: for ac_exec_ext in '' $ac_executable_extensions; do
! 15271: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 15272: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.10 ! moko 15273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15274: break 2
15275: fi
15276: done
1.10 ! moko 15277: done
! 15278: IFS=$as_save_IFS
1.8 moko 15279:
15280: fi
15281: fi
15282: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15283: if test -n "$ac_ct_DLLTOOL"; then
1.10 ! moko 15284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 15285: $as_echo "$ac_ct_DLLTOOL" >&6; }
1.8 moko 15286: else
1.10 ! moko 15287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15288: $as_echo "no" >&6; }
1.8 moko 15289: fi
15290:
1.10 ! moko 15291: if test "x$ac_ct_DLLTOOL" = x; then
! 15292: DLLTOOL="false"
! 15293: else
! 15294: case $cross_compiling:$ac_tool_warned in
! 15295: yes:)
! 15296: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 15297: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 15298: ac_tool_warned=yes ;;
! 15299: esac
! 15300: DLLTOOL=$ac_ct_DLLTOOL
! 15301: fi
1.8 moko 15302: else
15303: DLLTOOL="$ac_cv_prog_DLLTOOL"
15304: fi
15305:
15306: if test -n "$ac_tool_prefix"; then
15307: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15308: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.10 ! moko 15309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 15310: $as_echo_n "checking for $ac_word... " >&6; }
! 15311: if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
! 15312: $as_echo_n "(cached) " >&6
1.8 moko 15313: else
15314: if test -n "$OBJDUMP"; then
15315: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15316: else
15317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15318: for as_dir in $PATH
15319: do
15320: IFS=$as_save_IFS
15321: test -z "$as_dir" && as_dir=.
1.10 ! moko 15322: for ac_exec_ext in '' $ac_executable_extensions; do
! 15323: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 15324: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.10 ! moko 15325: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15326: break 2
15327: fi
15328: done
1.10 ! moko 15329: done
! 15330: IFS=$as_save_IFS
1.8 moko 15331:
15332: fi
15333: fi
15334: OBJDUMP=$ac_cv_prog_OBJDUMP
15335: if test -n "$OBJDUMP"; then
1.10 ! moko 15336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 15337: $as_echo "$OBJDUMP" >&6; }
1.8 moko 15338: else
1.10 ! moko 15339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15340: $as_echo "no" >&6; }
1.8 moko 15341: fi
15342:
1.10 ! moko 15343:
1.8 moko 15344: fi
15345: if test -z "$ac_cv_prog_OBJDUMP"; then
15346: ac_ct_OBJDUMP=$OBJDUMP
15347: # Extract the first word of "objdump", so it can be a program name with args.
15348: set dummy objdump; ac_word=$2
1.10 ! moko 15349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 15350: $as_echo_n "checking for $ac_word... " >&6; }
! 15351: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
! 15352: $as_echo_n "(cached) " >&6
1.8 moko 15353: else
15354: if test -n "$ac_ct_OBJDUMP"; then
15355: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15356: else
15357: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15358: for as_dir in $PATH
15359: do
15360: IFS=$as_save_IFS
15361: test -z "$as_dir" && as_dir=.
1.10 ! moko 15362: for ac_exec_ext in '' $ac_executable_extensions; do
! 15363: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.8 moko 15364: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.10 ! moko 15365: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.8 moko 15366: break 2
15367: fi
15368: done
1.10 ! moko 15369: done
! 15370: IFS=$as_save_IFS
1.8 moko 15371:
15372: fi
15373: fi
15374: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15375: if test -n "$ac_ct_OBJDUMP"; then
1.10 ! moko 15376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 15377: $as_echo "$ac_ct_OBJDUMP" >&6; }
1.8 moko 15378: else
1.10 ! moko 15379: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15380: $as_echo "no" >&6; }
1.8 moko 15381: fi
15382:
1.10 ! moko 15383: if test "x$ac_ct_OBJDUMP" = x; then
! 15384: OBJDUMP="false"
! 15385: else
! 15386: case $cross_compiling:$ac_tool_warned in
! 15387: yes:)
! 15388: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 15389: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 15390: ac_tool_warned=yes ;;
! 15391: esac
! 15392: OBJDUMP=$ac_ct_OBJDUMP
! 15393: fi
1.8 moko 15394: else
15395: OBJDUMP="$ac_cv_prog_OBJDUMP"
15396: fi
15397:
15398: ;;
15399: esac
15400:
15401: test -z "$AS" && AS=as
15402:
15403:
15404:
15405:
15406:
15407: test -z "$DLLTOOL" && DLLTOOL=dlltool
15408:
15409:
15410: test -z "$OBJDUMP" && OBJDUMP=objdump
15411:
15412:
15413:
15414:
15415:
15416:
1.10 ! moko 15417: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
! 15418: $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
! 15419: if test "${libltdl_cv_shlibext+set}" = set; then :
! 15420: $as_echo_n "(cached) " >&6
1.8 moko 15421: else
15422:
15423: module=yes
15424: eval libltdl_cv_shlibext=$shrext_cmds
15425: module=no
15426: eval libltdl_cv_shrext=$shrext_cmds
15427:
15428: fi
1.10 ! moko 15429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
! 15430: $as_echo "$libltdl_cv_shlibext" >&6; }
1.8 moko 15431: if test -n "$libltdl_cv_shlibext"; then
15432:
15433: cat >>confdefs.h <<_ACEOF
15434: #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15435: _ACEOF
15436:
15437: fi
15438: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
15439:
15440: cat >>confdefs.h <<_ACEOF
15441: #define LT_SHARED_EXT "$libltdl_cv_shrext"
15442: _ACEOF
15443:
15444: fi
15445:
1.10 ! moko 15446: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
! 15447: $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
! 15448: if test "${lt_cv_module_path_var+set}" = set; then :
! 15449: $as_echo_n "(cached) " >&6
1.8 moko 15450: else
15451: lt_cv_module_path_var="$shlibpath_var"
15452: fi
1.10 ! moko 15453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
! 15454: $as_echo "$lt_cv_module_path_var" >&6; }
1.8 moko 15455: if test -n "$lt_cv_module_path_var"; then
15456:
15457: cat >>confdefs.h <<_ACEOF
15458: #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15459: _ACEOF
15460:
15461: fi
15462:
1.10 ! moko 15463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
! 15464: $as_echo_n "checking for the default library search path... " >&6; }
! 15465: if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
! 15466: $as_echo_n "(cached) " >&6
1.8 moko 15467: else
15468: lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15469: fi
1.10 ! moko 15470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
! 15471: $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
1.8 moko 15472: if test -n "$lt_cv_sys_dlsearch_path"; then
15473: sys_dlsearch_path=
15474: for dir in $lt_cv_sys_dlsearch_path; do
15475: if test -z "$sys_dlsearch_path"; then
15476: sys_dlsearch_path="$dir"
15477: else
15478: sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15479: fi
15480: done
15481:
15482: cat >>confdefs.h <<_ACEOF
15483: #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15484: _ACEOF
15485:
15486: fi
15487:
15488:
15489: LT_DLLOADERS=
15490:
15491:
15492: ac_ext=c
15493: ac_cpp='$CPP $CPPFLAGS'
15494: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15495: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15496: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15497:
15498:
15499: LIBADD_DLOPEN=
1.10 ! moko 15500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
! 15501: $as_echo_n "checking for library containing dlopen... " >&6; }
! 15502: if test "${ac_cv_search_dlopen+set}" = set; then :
! 15503: $as_echo_n "(cached) " >&6
1.8 moko 15504: else
15505: ac_func_search_save_LIBS=$LIBS
1.10 ! moko 15506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15507: /* end confdefs.h. */
15508:
1.10 ! moko 15509: /* Override any GCC internal prototype to avoid an error.
! 15510: Use char because int might match the return type of a GCC
! 15511: builtin and then its argument prototype would still apply. */
1.8 moko 15512: #ifdef __cplusplus
15513: extern "C"
15514: #endif
15515: char dlopen ();
15516: int
15517: main ()
15518: {
1.10 ! moko 15519: return dlopen ();
1.8 moko 15520: ;
15521: return 0;
15522: }
15523: _ACEOF
1.10 ! moko 15524: for ac_lib in '' dl; do
! 15525: if test -z "$ac_lib"; then
! 15526: ac_res="none required"
! 15527: else
! 15528: ac_res=-l$ac_lib
! 15529: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 15530: fi
! 15531: if ac_fn_c_try_link "$LINENO"; then :
! 15532: ac_cv_search_dlopen=$ac_res
! 15533: fi
! 15534: rm -f core conftest.err conftest.$ac_objext \
! 15535: conftest$ac_exeext
! 15536: if test "${ac_cv_search_dlopen+set}" = set; then :
! 15537: break
1.8 moko 15538: fi
1.10 ! moko 15539: done
! 15540: if test "${ac_cv_search_dlopen+set}" = set; then :
1.8 moko 15541:
15542: else
1.10 ! moko 15543: ac_cv_search_dlopen=no
1.8 moko 15544: fi
1.10 ! moko 15545: rm conftest.$ac_ext
1.8 moko 15546: LIBS=$ac_func_search_save_LIBS
15547: fi
1.10 ! moko 15548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
! 15549: $as_echo "$ac_cv_search_dlopen" >&6; }
! 15550: ac_res=$ac_cv_search_dlopen
! 15551: if test "$ac_res" != no; then :
! 15552: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.8 moko 15553:
1.10 ! moko 15554: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15555:
15556: if test "$ac_cv_search_dlopen" != "none required" ; then
15557: LIBADD_DLOPEN="-ldl"
15558: fi
15559: libltdl_cv_lib_dl_dlopen="yes"
15560: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15561: else
1.10 ! moko 15562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15563: /* end confdefs.h. */
15564: #if HAVE_DLFCN_H
15565: # include <dlfcn.h>
15566: #endif
15567:
15568: int
15569: main ()
15570: {
15571: dlopen(0, 0);
15572: ;
15573: return 0;
15574: }
15575: _ACEOF
1.10 ! moko 15576: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15577:
1.10 ! moko 15578: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15579:
15580: libltdl_cv_func_dlopen="yes"
15581: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15582: else
1.10 ! moko 15583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 15584: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
! 15585: if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
! 15586: $as_echo_n "(cached) " >&6
1.8 moko 15587: else
15588: ac_check_lib_save_LIBS=$LIBS
15589: LIBS="-lsvld $LIBS"
1.10 ! moko 15590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15591: /* end confdefs.h. */
15592:
1.10 ! moko 15593: /* Override any GCC internal prototype to avoid an error.
! 15594: Use char because int might match the return type of a GCC
! 15595: builtin and then its argument prototype would still apply. */
1.8 moko 15596: #ifdef __cplusplus
15597: extern "C"
15598: #endif
15599: char dlopen ();
15600: int
15601: main ()
15602: {
1.10 ! moko 15603: return dlopen ();
1.8 moko 15604: ;
15605: return 0;
15606: }
15607: _ACEOF
1.10 ! moko 15608: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15609: ac_cv_lib_svld_dlopen=yes
15610: else
1.10 ! moko 15611: ac_cv_lib_svld_dlopen=no
1.8 moko 15612: fi
1.10 ! moko 15613: rm -f core conftest.err conftest.$ac_objext \
! 15614: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15615: LIBS=$ac_check_lib_save_LIBS
15616: fi
1.10 ! moko 15617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 15618: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
! 15619: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1.8 moko 15620:
1.10 ! moko 15621: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
1.8 moko 15622:
15623: LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
15624: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
15625: fi
15626:
15627: fi
1.10 ! moko 15628: rm -f core conftest.err conftest.$ac_objext \
! 15629: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15630: fi
15631:
15632: if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
15633: then
15634: lt_save_LIBS="$LIBS"
15635: LIBS="$LIBS $LIBADD_DLOPEN"
1.10 ! moko 15636: for ac_func in dlerror
! 15637: do :
! 15638: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
! 15639: if test "x$ac_cv_func_dlerror" = x""yes; then :
1.8 moko 15640: cat >>confdefs.h <<_ACEOF
1.10 ! moko 15641: #define HAVE_DLERROR 1
1.8 moko 15642: _ACEOF
15643:
15644: fi
15645: done
15646:
15647: LIBS="$lt_save_LIBS"
15648: fi
15649:
15650:
15651: LIBADD_SHL_LOAD=
1.10 ! moko 15652: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
! 15653: if test "x$ac_cv_func_shl_load" = x""yes; then :
1.8 moko 15654:
1.10 ! moko 15655: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.8 moko 15656:
15657: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15658: else
1.10 ! moko 15659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 15660: $as_echo_n "checking for shl_load in -ldld... " >&6; }
! 15661: if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
! 15662: $as_echo_n "(cached) " >&6
1.8 moko 15663: else
15664: ac_check_lib_save_LIBS=$LIBS
15665: LIBS="-ldld $LIBS"
1.10 ! moko 15666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15667: /* end confdefs.h. */
15668:
1.10 ! moko 15669: /* Override any GCC internal prototype to avoid an error.
! 15670: Use char because int might match the return type of a GCC
! 15671: builtin and then its argument prototype would still apply. */
1.8 moko 15672: #ifdef __cplusplus
15673: extern "C"
15674: #endif
15675: char shl_load ();
15676: int
15677: main ()
15678: {
1.10 ! moko 15679: return shl_load ();
1.8 moko 15680: ;
15681: return 0;
15682: }
15683: _ACEOF
1.10 ! moko 15684: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15685: ac_cv_lib_dld_shl_load=yes
15686: else
1.10 ! moko 15687: ac_cv_lib_dld_shl_load=no
1.8 moko 15688: fi
1.10 ! moko 15689: rm -f core conftest.err conftest.$ac_objext \
! 15690: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15691: LIBS=$ac_check_lib_save_LIBS
15692: fi
1.10 ! moko 15693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 15694: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
! 15695: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
1.8 moko 15696:
1.10 ! moko 15697: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.8 moko 15698:
15699: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
15700: LIBADD_SHL_LOAD="-ldld"
15701: fi
15702:
15703: fi
15704:
15705:
15706:
15707: case $host_os in
15708: darwin[1567].*)
15709: # We only want this for pre-Mac OS X 10.4.
1.10 ! moko 15710: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
! 15711: if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
1.8 moko 15712:
1.10 ! moko 15713: $as_echo "#define HAVE_DYLD 1" >>confdefs.h
1.8 moko 15714:
15715: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
15716: fi
15717:
15718: ;;
15719: beos*)
15720: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
15721: ;;
15722: cygwin* | mingw* | os2* | pw32*)
1.10 ! moko 15723: ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
! 15724: "
! 15725: if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
! 15726: ac_have_decl=1
1.8 moko 15727: else
1.10 ! moko 15728: ac_have_decl=0
1.8 moko 15729: fi
15730:
15731: cat >>confdefs.h <<_ACEOF
1.10 ! moko 15732: #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
1.8 moko 15733: _ACEOF
15734:
15735: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
15736: ;;
15737: esac
15738:
1.10 ! moko 15739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 15740: $as_echo_n "checking for dld_link in -ldld... " >&6; }
! 15741: if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
! 15742: $as_echo_n "(cached) " >&6
1.8 moko 15743: else
15744: ac_check_lib_save_LIBS=$LIBS
15745: LIBS="-ldld $LIBS"
1.10 ! moko 15746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 15747: /* end confdefs.h. */
15748:
1.10 ! moko 15749: /* Override any GCC internal prototype to avoid an error.
! 15750: Use char because int might match the return type of a GCC
! 15751: builtin and then its argument prototype would still apply. */
1.8 moko 15752: #ifdef __cplusplus
15753: extern "C"
15754: #endif
15755: char dld_link ();
15756: int
15757: main ()
15758: {
1.10 ! moko 15759: return dld_link ();
1.8 moko 15760: ;
15761: return 0;
15762: }
15763: _ACEOF
1.10 ! moko 15764: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 15765: ac_cv_lib_dld_dld_link=yes
15766: else
1.10 ! moko 15767: ac_cv_lib_dld_dld_link=no
1.8 moko 15768: fi
1.10 ! moko 15769: rm -f core conftest.err conftest.$ac_objext \
! 15770: conftest$ac_exeext conftest.$ac_ext
1.8 moko 15771: LIBS=$ac_check_lib_save_LIBS
15772: fi
1.10 ! moko 15773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 15774: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
! 15775: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1.8 moko 15776:
1.10 ! moko 15777: $as_echo "#define HAVE_DLD 1" >>confdefs.h
1.8 moko 15778:
15779: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
15780: fi
15781:
15782:
15783:
15784:
15785: LT_DLPREOPEN=
15786: if test -n "$LT_DLLOADERS"
15787: then
15788: for lt_loader in $LT_DLLOADERS; do
15789: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
15790: done
15791:
1.10 ! moko 15792: $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.8 moko 15793:
15794: fi
15795:
15796:
15797: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
15798:
15799:
15800: ac_ext=c
15801: ac_cpp='$CPP $CPPFLAGS'
15802: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15803: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15804: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15805:
15806:
1.10 ! moko 15807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
! 15808: $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
! 15809: if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
! 15810: $as_echo_n "(cached) " >&6
1.8 moko 15811: else
15812: lt_cv_sys_symbol_underscore=no
15813: cat > conftest.$ac_ext <<_LT_EOF
15814: void nm_test_func(){}
15815: int main(){nm_test_func;return 0;}
15816: _LT_EOF
1.10 ! moko 15817: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.8 moko 15818: (eval $ac_compile) 2>&5
15819: ac_status=$?
1.10 ! moko 15820: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15821: test $ac_status = 0; }; then
1.8 moko 15822: # Now try to grab the symbols.
15823: ac_nlist=conftest.nm
1.10 ! moko 15824: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.8 moko 15825: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
15826: ac_status=$?
1.10 ! moko 15827: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15828: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.8 moko 15829: # See whether the symbols have a leading underscore.
15830: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
15831: lt_cv_sys_symbol_underscore=yes
15832: else
15833: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
15834: :
15835: else
15836: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15837: fi
15838: fi
15839: else
15840: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15841: fi
15842: else
15843: echo "configure: failed program was:" >&5
15844: cat conftest.c >&5
15845: fi
15846: rm -rf conftest*
15847:
15848: fi
1.10 ! moko 15849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
! 15850: $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
1.8 moko 15851: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
15852:
15853:
15854: if test x"$lt_cv_sys_symbol_underscore" = xyes; then
15855: if test x"$libltdl_cv_func_dlopen" = xyes ||
15856: test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
1.10 ! moko 15857: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
! 15858: $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
! 15859: if test "${libltdl_cv_need_uscore+set}" = set; then :
! 15860: $as_echo_n "(cached) " >&6
1.8 moko 15861: else
15862: libltdl_cv_need_uscore=unknown
15863: save_LIBS="$LIBS"
15864: LIBS="$LIBS $LIBADD_DLOPEN"
15865: if test "$cross_compiling" = yes; then :
15866: libltdl_cv_need_uscore=cross
15867: else
15868: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15869: lt_status=$lt_dlunknown
15870: cat > conftest.$ac_ext <<_LT_EOF
15871: #line $LINENO "configure"
15872: #include "confdefs.h"
15873:
15874: #if HAVE_DLFCN_H
15875: #include <dlfcn.h>
15876: #endif
15877:
15878: #include <stdio.h>
15879:
15880: #ifdef RTLD_GLOBAL
15881: # define LT_DLGLOBAL RTLD_GLOBAL
15882: #else
15883: # ifdef DL_GLOBAL
15884: # define LT_DLGLOBAL DL_GLOBAL
15885: # else
15886: # define LT_DLGLOBAL 0
15887: # endif
15888: #endif
15889:
15890: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15891: find out it does not work in some platform. */
15892: #ifndef LT_DLLAZY_OR_NOW
15893: # ifdef RTLD_LAZY
15894: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15895: # else
15896: # ifdef DL_LAZY
15897: # define LT_DLLAZY_OR_NOW DL_LAZY
15898: # else
15899: # ifdef RTLD_NOW
15900: # define LT_DLLAZY_OR_NOW RTLD_NOW
15901: # else
15902: # ifdef DL_NOW
15903: # define LT_DLLAZY_OR_NOW DL_NOW
15904: # else
15905: # define LT_DLLAZY_OR_NOW 0
15906: # endif
15907: # endif
15908: # endif
15909: # endif
15910: #endif
15911:
15912: /* When -fvisbility=hidden is used, assume the code has been annotated
15913: correspondingly for the symbols needed. */
15914: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15915: int fnord () __attribute__((visibility("default")));
15916: #endif
15917:
15918: int fnord () { return 42; }
15919: int main ()
15920: {
15921: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15922: int status = $lt_dlunknown;
15923:
15924: if (self)
15925: {
15926: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15927: else
15928: {
15929: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15930: else puts (dlerror ());
15931: }
15932: /* dlclose (self); */
15933: }
15934: else
15935: puts (dlerror ());
15936:
15937: return status;
15938: }
15939: _LT_EOF
1.10 ! moko 15940: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.8 moko 15941: (eval $ac_link) 2>&5
15942: ac_status=$?
1.10 ! moko 15943: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15944: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.8 moko 15945: (./conftest; exit; ) >&5 2>/dev/null
15946: lt_status=$?
15947: case x$lt_status in
15948: x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
15949: x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
15950: x$lt_dlunknown|x*) ;;
15951: esac
15952: else :
15953: # compilation failed
15954:
15955: fi
15956: fi
15957: rm -fr conftest*
15958:
15959: LIBS="$save_LIBS"
15960:
15961: fi
1.10 ! moko 15962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
! 15963: $as_echo "$libltdl_cv_need_uscore" >&6; }
1.8 moko 15964: fi
15965: fi
15966:
15967: if test x"$libltdl_cv_need_uscore" = xyes; then
15968:
1.10 ! moko 15969: $as_echo "#define NEED_USCORE 1" >>confdefs.h
1.8 moko 15970:
15971: fi
15972:
1.10 ! moko 15973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
! 15974: $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
! 15975: if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
! 15976: $as_echo_n "(cached) " >&6
1.8 moko 15977: else
15978: # PORTME does your system automatically load deplibs for dlopen?
15979: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
15980: # For now, we just catch OSes we know something about -- in the
15981: # future, we'll try test this programmatically.
15982: lt_cv_sys_dlopen_deplibs=unknown
15983: case $host_os in
15984: aix3*|aix4.1.*|aix4.2.*)
15985: # Unknown whether this is true for these versions of AIX, but
15986: # we want this `case' here to explicitly catch those versions.
15987: lt_cv_sys_dlopen_deplibs=unknown
15988: ;;
15989: aix[4-9]*)
15990: lt_cv_sys_dlopen_deplibs=yes
15991: ;;
15992: amigaos*)
15993: case $host_cpu in
15994: powerpc)
15995: lt_cv_sys_dlopen_deplibs=no
15996: ;;
15997: esac
15998: ;;
15999: darwin*)
16000: # Assuming the user has installed a libdl from somewhere, this is true
16001: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16002: lt_cv_sys_dlopen_deplibs=yes
16003: ;;
16004: freebsd* | dragonfly*)
16005: lt_cv_sys_dlopen_deplibs=yes
16006: ;;
16007: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16008: # GNU and its variants, using gnu ld.so (Glibc)
16009: lt_cv_sys_dlopen_deplibs=yes
16010: ;;
16011: hpux10*|hpux11*)
16012: lt_cv_sys_dlopen_deplibs=yes
16013: ;;
16014: interix*)
16015: lt_cv_sys_dlopen_deplibs=yes
16016: ;;
16017: irix[12345]*|irix6.[01]*)
16018: # Catch all versions of IRIX before 6.2, and indicate that we don't
16019: # know how it worked for any of those versions.
16020: lt_cv_sys_dlopen_deplibs=unknown
16021: ;;
16022: irix*)
16023: # The case above catches anything before 6.2, and it's known that
16024: # at 6.2 and later dlopen does load deplibs.
16025: lt_cv_sys_dlopen_deplibs=yes
16026: ;;
16027: netbsd*)
16028: lt_cv_sys_dlopen_deplibs=yes
16029: ;;
16030: openbsd*)
16031: lt_cv_sys_dlopen_deplibs=yes
16032: ;;
16033: osf[1234]*)
16034: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16035: # it did *not* use an RPATH in a shared library to find objects the
16036: # library depends on, so we explicitly say `no'.
16037: lt_cv_sys_dlopen_deplibs=no
16038: ;;
16039: osf5.0|osf5.0a|osf5.1)
16040: # dlopen *does* load deplibs and with the right loader patch applied
16041: # it even uses RPATH in a shared library to search for shared objects
16042: # that the library depends on, but there's no easy way to know if that
16043: # patch is installed. Since this is the case, all we can really
16044: # say is unknown -- it depends on the patch being installed. If
16045: # it is, this changes to `yes'. Without it, it would be `no'.
16046: lt_cv_sys_dlopen_deplibs=unknown
16047: ;;
16048: osf*)
16049: # the two cases above should catch all versions of osf <= 5.1. Read
16050: # the comments above for what we know about them.
16051: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16052: # is used to find them so we can finally say `yes'.
16053: lt_cv_sys_dlopen_deplibs=yes
16054: ;;
16055: qnx*)
16056: lt_cv_sys_dlopen_deplibs=yes
16057: ;;
16058: solaris*)
16059: lt_cv_sys_dlopen_deplibs=yes
16060: ;;
16061: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16062: libltdl_cv_sys_dlopen_deplibs=yes
16063: ;;
16064: esac
16065:
16066: fi
1.10 ! moko 16067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
! 16068: $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
1.8 moko 16069: if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16070:
1.10 ! moko 16071: $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.8 moko 16072:
16073: fi
16074:
16075: :
16076:
16077: for ac_header in argz.h
1.10 ! moko 16078: do :
! 16079: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
! 16080: "
! 16081: if test "x$ac_cv_header_argz_h" = x""yes; then :
1.8 moko 16082: cat >>confdefs.h <<_ACEOF
1.10 ! moko 16083: #define HAVE_ARGZ_H 1
1.8 moko 16084: _ACEOF
16085:
16086: fi
16087:
16088: done
16089:
16090:
1.10 ! moko 16091: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.8 moko 16092: # include <argz.h>
16093: #endif
1.10 ! moko 16094: "
! 16095: if test "x$ac_cv_type_error_t" = x""yes; then :
1.8 moko 16096:
16097: cat >>confdefs.h <<_ACEOF
16098: #define HAVE_ERROR_T 1
16099: _ACEOF
16100:
16101:
16102: else
16103:
1.10 ! moko 16104: $as_echo "#define error_t int" >>confdefs.h
1.8 moko 16105:
16106:
1.10 ! moko 16107: $as_echo "#define __error_t_defined 1" >>confdefs.h
1.8 moko 16108:
16109: fi
16110:
16111:
16112: ARGZ_H=
16113: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16114: argz_next argz_stringify
1.10 ! moko 16115: do :
! 16116: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16117: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16118: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.8 moko 16119: cat >>confdefs.h <<_ACEOF
1.10 ! moko 16120: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16121: _ACEOF
16122:
16123: else
16124: ARGZ_H=argz.h;
16125:
16126: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16127:
16128: fi
16129: done
16130:
16131:
1.10 ! moko 16132: if test -z "$ARGZ_H"; then :
! 16133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
! 16134: $as_echo_n "checking if argz actually works... " >&6; }
! 16135: if test "${lt_cv_sys_argz_works+set}" = set; then :
! 16136: $as_echo_n "(cached) " >&6
1.8 moko 16137: else
16138: case $host_os in #(
16139: *cygwin*)
16140: lt_cv_sys_argz_works=no
16141: if test "$cross_compiling" != no; then
16142: lt_cv_sys_argz_works="guessing no"
16143: else
16144: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16145: save_IFS=$IFS
16146: IFS=-.
16147: set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16148: IFS=$save_IFS
16149: lt_os_major=${2-0}
16150: lt_os_minor=${3-0}
16151: lt_os_micro=${4-0}
16152: if test "$lt_os_major" -gt 1 \
16153: || { test "$lt_os_major" -eq 1 \
16154: && { test "$lt_os_minor" -gt 5 \
16155: || { test "$lt_os_minor" -eq 5 \
16156: && test "$lt_os_micro" -gt 24; }; }; }; then
16157: lt_cv_sys_argz_works=yes
16158: fi
16159: fi
16160: ;; #(
16161: *) lt_cv_sys_argz_works=yes ;;
16162: esac
16163: fi
1.10 ! moko 16164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
! 16165: $as_echo "$lt_cv_sys_argz_works" >&6; }
! 16166: if test "$lt_cv_sys_argz_works" = yes; then :
1.8 moko 16167:
1.10 ! moko 16168: $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.8 moko 16169:
16170: else
16171: ARGZ_H=argz.h
16172:
16173:
16174: _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16175:
16176: fi
16177: fi
16178:
16179:
16180:
1.10 ! moko 16181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 16182: $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
! 16183: if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
! 16184: $as_echo_n "(cached) " >&6
1.8 moko 16185: else
16186: if test -n "$lt_cv_sys_global_symbol_pipe"; then
16187: libltdl_cv_preloaded_symbols=yes
16188: else
16189: libltdl_cv_preloaded_symbols=no
16190: fi
16191:
16192: fi
1.10 ! moko 16193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
! 16194: $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
1.8 moko 16195: if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16196:
1.10 ! moko 16197: $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.8 moko 16198:
16199: fi
16200:
1.10 ! moko 16201:
! 16202:
1.8 moko 16203: # Set options
16204:
16205:
16206:
16207:
16208:
16209:
16210:
16211:
16212:
16213:
16214:
16215:
1.10 ! moko 16216: # Check whether --with-included_ltdl was given.
! 16217: if test "${with_included_ltdl+set}" = set; then :
! 16218: withval=$with_included_ltdl;
! 16219: fi
1.8 moko 16220:
16221:
16222: if test "x$with_included_ltdl" != xyes; then
16223: # We are not being forced to use the included libltdl sources, so
16224: # decide whether there is a useful installed version we can use.
1.10 ! moko 16225: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.8 moko 16226:
1.10 ! moko 16227: "
! 16228: if test "x$ac_cv_header_ltdl_h" = x""yes; then :
! 16229: ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.8 moko 16230: #include <ltdl.h>
1.10 ! moko 16231: "
! 16232: if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
! 16233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
! 16234: $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
! 16235: if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
! 16236: $as_echo_n "(cached) " >&6
1.8 moko 16237: else
16238: ac_check_lib_save_LIBS=$LIBS
16239: LIBS="-lltdl $LIBS"
1.10 ! moko 16240: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.8 moko 16241: /* end confdefs.h. */
16242:
1.10 ! moko 16243: /* Override any GCC internal prototype to avoid an error.
! 16244: Use char because int might match the return type of a GCC
! 16245: builtin and then its argument prototype would still apply. */
1.8 moko 16246: #ifdef __cplusplus
16247: extern "C"
16248: #endif
16249: char lt_dladvise_preload ();
16250: int
16251: main ()
16252: {
1.10 ! moko 16253: return lt_dladvise_preload ();
1.8 moko 16254: ;
16255: return 0;
16256: }
16257: _ACEOF
1.10 ! moko 16258: if ac_fn_c_try_link "$LINENO"; then :
1.8 moko 16259: ac_cv_lib_ltdl_lt_dladvise_preload=yes
16260: else
1.10 ! moko 16261: ac_cv_lib_ltdl_lt_dladvise_preload=no
1.8 moko 16262: fi
1.10 ! moko 16263: rm -f core conftest.err conftest.$ac_objext \
! 16264: conftest$ac_exeext conftest.$ac_ext
1.8 moko 16265: LIBS=$ac_check_lib_save_LIBS
16266: fi
1.10 ! moko 16267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
! 16268: $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
! 16269: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
1.8 moko 16270: with_included_ltdl=no
16271: else
16272: with_included_ltdl=yes
16273: fi
16274:
16275: else
16276: with_included_ltdl=yes
16277: fi
16278:
16279: else
16280: with_included_ltdl=yes
16281: fi
16282:
16283:
16284: fi
16285:
16286:
16287:
16288:
1.10 ! moko 16289: # Check whether --with-ltdl_include was given.
! 16290: if test "${with_ltdl_include+set}" = set; then :
! 16291: withval=$with_ltdl_include;
! 16292: fi
1.8 moko 16293:
16294:
16295: if test -n "$with_ltdl_include"; then
16296: if test -f "$with_ltdl_include/ltdl.h"; then :
16297: else
1.10 ! moko 16298: as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
1.8 moko 16299: fi
16300: else
16301: with_ltdl_include=no
16302: fi
16303:
16304:
1.10 ! moko 16305: # Check whether --with-ltdl_lib was given.
! 16306: if test "${with_ltdl_lib+set}" = set; then :
! 16307: withval=$with_ltdl_lib;
! 16308: fi
1.8 moko 16309:
16310:
16311: if test -n "$with_ltdl_lib"; then
16312: if test -f "$with_ltdl_lib/libltdl.la"; then :
16313: else
1.10 ! moko 16314: as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
1.8 moko 16315: fi
16316: else
16317: with_ltdl_lib=no
16318: fi
16319:
16320: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16321: ,yes,no,no,)
16322: case $enable_ltdl_convenience in
1.10 ! moko 16323: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.8 moko 16324: "") enable_ltdl_convenience=yes
16325: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16326: esac
1.10 ! moko 16327: LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.8 moko 16328: LTDLDEPS=$LIBLTDL
16329: LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16330:
16331:
16332:
16333:
16334:
16335: # For backwards non-gettext consistent compatibility...
16336: INCLTDL="$LTDLINCL"
16337:
16338:
16339: ;;
16340: ,no,no,no,)
16341: # If the included ltdl is not to be used, then use the
16342: # preinstalled libltdl we found.
16343:
1.10 ! moko 16344: $as_echo "#define HAVE_LTDL 1" >>confdefs.h
1.8 moko 16345:
16346: LIBLTDL=-lltdl
16347: LTDLDEPS=
16348: LTDLINCL=
16349: ;;
16350: ,no*,no,*)
1.10 ! moko 16351: as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
1.8 moko 16352: ;;
16353: *) with_included_ltdl=no
16354: LIBLTDL="-L$with_ltdl_lib -lltdl"
16355: LTDLDEPS=
16356: LTDLINCL="-I$with_ltdl_include"
16357: ;;
16358: esac
16359: INCLTDL="$LTDLINCL"
16360:
16361: # Report our decision...
1.10 ! moko 16362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
! 16363: $as_echo_n "checking where to find libltdl headers... " >&6; }
! 16364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
! 16365: $as_echo "$LTDLINCL" >&6; }
! 16366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
! 16367: $as_echo_n "checking where to find libltdl library... " >&6; }
! 16368: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
! 16369: $as_echo "$LIBLTDL" >&6; }
1.8 moko 16370:
16371:
16372:
1.10 ! moko 16373: # Check whether --enable-ltdl-install was given.
! 16374: if test "${enable_ltdl_install+set}" = set; then :
! 16375: enableval=$enable_ltdl_install;
! 16376: fi
1.8 moko 16377:
16378:
16379: case ,${enable_ltdl_install},${enable_ltdl_convenience} in
16380: *yes*) ;;
16381: *) enable_ltdl_convenience=yes ;;
16382: esac
16383:
16384:
16385:
16386: if test x"${enable_ltdl_install-no}" != xno; then
16387: INSTALL_LTDL_TRUE=
16388: INSTALL_LTDL_FALSE='#'
16389: else
16390: INSTALL_LTDL_TRUE='#'
16391: INSTALL_LTDL_FALSE=
16392: fi
16393:
16394:
16395:
16396: if test x"${enable_ltdl_convenience-no}" != xno; then
16397: CONVENIENCE_LTDL_TRUE=
16398: CONVENIENCE_LTDL_FALSE='#'
16399: else
16400: CONVENIENCE_LTDL_TRUE='#'
16401: CONVENIENCE_LTDL_FALSE=
16402: fi
16403:
16404:
16405:
1.10 ! moko 16406: subdirs="$subdirs libltdl"
1.8 moko 16407:
16408:
16409:
16410:
16411: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16412: # the user used. This is so that ltdl.h can pick up the parent projects
16413: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16414: # definitions required by ltdl.c.
16415: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16416:
16417:
16418:
1.10 ! moko 16419: for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
! 16420: do :
! 16421: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16422: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 16423: "
! 16424: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 16425: cat >>confdefs.h <<_ACEOF
! 16426: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 16427: _ACEOF
! 16428:
! 16429: fi
1.8 moko 16430:
1.10 ! moko 16431: done
1.8 moko 16432:
16433:
1.10 ! moko 16434: for ac_func in closedir opendir readdir
! 16435: do :
! 16436: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16437: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16438: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 16439: cat >>confdefs.h <<_ACEOF
! 16440: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16441: _ACEOF
1.8 moko 16442:
1.10 ! moko 16443: else
1.8 moko 16444:
16445:
1.10 ! moko 16446: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.8 moko 16447:
1.10 ! moko 16448: fi
1.8 moko 16449: done
16450:
16451: for ac_func in strlcat strlcpy
1.10 ! moko 16452: do :
! 16453: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16454: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 16455: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.8 moko 16456: cat >>confdefs.h <<_ACEOF
1.10 ! moko 16457: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.8 moko 16458: _ACEOF
16459:
16460: else
16461:
16462:
16463: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16464:
16465: fi
16466: done
16467:
16468:
16469:
16470: cat >>confdefs.h <<_ACEOF
16471: #define LT_LIBEXT "$libext"
16472: _ACEOF
16473:
16474:
16475: name=
16476: eval "lt_libprefix=\"$libname_spec\""
16477:
16478: cat >>confdefs.h <<_ACEOF
16479: #define LT_LIBPREFIX "$lt_libprefix"
16480: _ACEOF
16481:
16482:
16483: name=ltdl
16484: eval "LTDLOPEN=\"$libname_spec\""
16485:
16486:
16487:
16488:
16489:
16490:
16491:
16492:
16493: # Only expand once:
16494:
16495:
16496:
16497:
16498:
16499: for ac_header in stdio.h \
16500: stdlib.h \
16501: string.h \
16502: setjmp.h \
16503: ctype.h
16504:
1.10 ! moko 16505: do :
! 16506: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 16507: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
! 16508: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.8 moko 16509: cat >>confdefs.h <<_ACEOF
1.10 ! moko 16510: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.8 moko 16511: _ACEOF
16512:
16513: fi
16514:
16515: done
16516:
16517:
16518:
1.10 ! moko 16519: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
! 16520: if test "x$ac_cv_type_size_t" = x""yes; then :
1.8 moko 16521:
16522: else
16523:
16524: cat >>confdefs.h <<_ACEOF
1.10 ! moko 16525: #define size_t unsigned int
1.8 moko 16526: _ACEOF
16527:
16528: fi
16529:
16530:
16531:
16532:
1.10 ! moko 16533: ac_config_files="$ac_config_files Makefile"
! 16534:
1.8 moko 16535: cat >confcache <<\_ACEOF
16536: # This file is a shell script that caches the results of configure
16537: # tests run on this system so they can be shared between configure
16538: # scripts and configure runs, see configure's option --config-cache.
16539: # It is not useful on other systems. If it contains results you don't
16540: # want to keep, you may remove or edit it.
16541: #
16542: # config.status only pays attention to the cache file if you give it
16543: # the --recheck option to rerun configure.
16544: #
16545: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16546: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16547: # following values.
16548:
16549: _ACEOF
16550:
16551: # The following way of writing the cache mishandles newlines in values,
16552: # but we know of no workaround that is simple, portable, and efficient.
1.10 ! moko 16553: # So, we kill variables containing newlines.
1.8 moko 16554: # Ultrix sh set writes to stderr and can't be redirected directly,
16555: # and sets the high bit in the cache file unless we assign to the vars.
1.10 ! moko 16556: (
! 16557: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
! 16558: eval ac_val=\$$ac_var
! 16559: case $ac_val in #(
! 16560: *${as_nl}*)
! 16561: case $ac_var in #(
! 16562: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 16563: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
! 16564: esac
! 16565: case $ac_var in #(
! 16566: _ | IFS | as_nl) ;; #(
! 16567: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
! 16568: *) { eval $ac_var=; unset $ac_var;} ;;
! 16569: esac ;;
! 16570: esac
! 16571: done
! 16572:
1.8 moko 16573: (set) 2>&1 |
1.10 ! moko 16574: case $as_nl`(ac_space=' '; set) 2>&1` in #(
! 16575: *${as_nl}ac_space=\ *)
! 16576: # `set' does not quote correctly, so add quotes: double-quote
! 16577: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.8 moko 16578: sed -n \
16579: "s/'/'\\\\''/g;
16580: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.10 ! moko 16581: ;; #(
1.8 moko 16582: *)
16583: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.10 ! moko 16584: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.8 moko 16585: ;;
1.10 ! moko 16586: esac |
! 16587: sort
! 16588: ) |
1.8 moko 16589: sed '
1.10 ! moko 16590: /^ac_cv_env_/b end
1.8 moko 16591: t clear
1.10 ! moko 16592: :clear
1.8 moko 16593: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16594: t end
1.10 ! moko 16595: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 16596: :end' >>confcache
! 16597: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
! 16598: if test -w "$cache_file"; then
! 16599: test "x$cache_file" != "x/dev/null" &&
! 16600: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 16601: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.8 moko 16602: cat confcache >$cache_file
16603: else
1.10 ! moko 16604: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 16605: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.8 moko 16606: fi
16607: fi
16608: rm -f confcache
16609:
16610: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16611: # Let make expand exec_prefix.
16612: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16613:
16614: DEFS=-DHAVE_CONFIG_H
16615:
16616: ac_libobjs=
16617: ac_ltlibobjs=
1.10 ! moko 16618: U=
1.8 moko 16619: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16620: # 1. Remove the extension, and $U if already installed.
1.10 ! moko 16621: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
! 16622: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
! 16623: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
! 16624: # will be set to the directory where LIBOBJS objects are built.
! 16625: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 16626: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.8 moko 16627: done
16628: LIBOBJS=$ac_libobjs
16629:
16630: LTLIBOBJS=$ac_ltlibobjs
16631:
16632:
16633: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.10 ! moko 16634: as_fn_error $? "conditional \"AMDEP\" was never defined.
! 16635: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16636: fi
16637: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.10 ! moko 16638: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
! 16639: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16640: fi
16641: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.10 ! moko 16642: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
! 16643: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16644: fi
16645: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.10 ! moko 16646: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
! 16647: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16648: fi
16649: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.10 ! moko 16650: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
! 16651: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.8 moko 16652: fi
1.10 ! moko 16653: LT_CONFIG_H=config_auto.h
1.8 moko 16654:
16655: _ltdl_libobjs=
16656: _ltdl_ltlibobjs=
16657: if test -n "$_LT_LIBOBJS"; then
16658: # Remove the extension.
16659: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16660: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16661: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16662: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16663: done
16664: fi
16665: ltdl_LIBOBJS=$_ltdl_libobjs
16666:
16667: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16668:
16669:
16670:
16671: : ${CONFIG_STATUS=./config.status}
1.10 ! moko 16672: ac_write_fail=0
1.8 moko 16673: ac_clean_files_save=$ac_clean_files
16674: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.10 ! moko 16675: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 16676: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 16677: as_write_fail=0
! 16678: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.8 moko 16679: #! $SHELL
16680: # Generated by $as_me.
16681: # Run this file to recreate the current configuration.
16682: # Compiler output produced by configure, useful for debugging
16683: # configure, is in config.log if it exists.
16684:
16685: debug=false
16686: ac_cs_recheck=false
16687: ac_cs_silent=false
1.10 ! moko 16688:
1.8 moko 16689: SHELL=\${CONFIG_SHELL-$SHELL}
1.10 ! moko 16690: export SHELL
! 16691: _ASEOF
! 16692: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
! 16693: ## -------------------- ##
! 16694: ## M4sh Initialization. ##
! 16695: ## -------------------- ##
1.8 moko 16696:
1.10 ! moko 16697: # Be more Bourne compatible
! 16698: DUALCASE=1; export DUALCASE # for MKS sh
! 16699: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.8 moko 16700: emulate sh
16701: NULLCMD=:
1.10 ! moko 16702: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.8 moko 16703: # is contrary to our usage. Disable this feature.
16704: alias -g '${1+"$@"}'='"$@"'
1.10 ! moko 16705: setopt NO_GLOB_SUBST
! 16706: else
! 16707: case `(set -o) 2>/dev/null` in #(
! 16708: *posix*) :
! 16709: set -o posix ;; #(
! 16710: *) :
! 16711: ;;
! 16712: esac
! 16713: fi
! 16714:
! 16715:
! 16716: as_nl='
! 16717: '
! 16718: export as_nl
! 16719: # Printing a long string crashes Solaris 7 /usr/bin/printf.
! 16720: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
! 16721: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
! 16722: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
! 16723: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 16724: # but without wasting forks for bash or zsh.
! 16725: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 16726: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 16727: as_echo='print -r --'
! 16728: as_echo_n='print -rn --'
! 16729: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
! 16730: as_echo='printf %s\n'
! 16731: as_echo_n='printf %s'
! 16732: else
! 16733: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
! 16734: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
! 16735: as_echo_n='/usr/ucb/echo -n'
! 16736: else
! 16737: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
! 16738: as_echo_n_body='eval
! 16739: arg=$1;
! 16740: case $arg in #(
! 16741: *"$as_nl"*)
! 16742: expr "X$arg" : "X\\(.*\\)$as_nl";
! 16743: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
! 16744: esac;
! 16745: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
! 16746: '
! 16747: export as_echo_n_body
! 16748: as_echo_n='sh -c $as_echo_n_body as_echo'
! 16749: fi
! 16750: export as_echo_body
! 16751: as_echo='sh -c $as_echo_body as_echo'
1.8 moko 16752: fi
16753:
1.10 ! moko 16754: # The user is always right.
! 16755: if test "${PATH_SEPARATOR+set}" != set; then
! 16756: PATH_SEPARATOR=:
! 16757: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
! 16758: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
! 16759: PATH_SEPARATOR=';'
! 16760: }
1.8 moko 16761: fi
16762:
16763:
1.10 ! moko 16764: # IFS
! 16765: # We need space, tab and new line, in precisely that order. Quoting is
! 16766: # there to prevent editors from complaining about space-tab.
! 16767: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
! 16768: # splitting by setting IFS to empty value.)
! 16769: IFS=" "" $as_nl"
! 16770:
! 16771: # Find who we are. Look in the path if we contain no directory separator.
! 16772: case $0 in #((
! 16773: *[\\/]* ) as_myself=$0 ;;
! 16774: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 16775: for as_dir in $PATH
! 16776: do
! 16777: IFS=$as_save_IFS
! 16778: test -z "$as_dir" && as_dir=.
! 16779: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 16780: done
! 16781: IFS=$as_save_IFS
! 16782:
! 16783: ;;
! 16784: esac
! 16785: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 16786: # in which case we are not to be found in the path.
! 16787: if test "x$as_myself" = x; then
! 16788: as_myself=$0
! 16789: fi
! 16790: if test ! -f "$as_myself"; then
! 16791: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
! 16792: exit 1
! 16793: fi
! 16794:
! 16795: # Unset variables that we do not need and which cause bugs (e.g. in
! 16796: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 16797: # suppresses any "Segmentation fault" message there. '((' could
! 16798: # trigger a bug in pdksh 5.2.14.
! 16799: for as_var in BASH_ENV ENV MAIL MAILPATH
! 16800: do eval test x\${$as_var+set} = xset \
! 16801: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 16802: done
1.8 moko 16803: PS1='$ '
16804: PS2='> '
16805: PS4='+ '
16806:
16807: # NLS nuisances.
1.10 ! moko 16808: LC_ALL=C
! 16809: export LC_ALL
! 16810: LANGUAGE=C
! 16811: export LANGUAGE
! 16812:
! 16813: # CDPATH.
! 16814: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 16815:
! 16816:
! 16817: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 16818: # ----------------------------------------
! 16819: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 16820: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 16821: # script with STATUS, using 1 if that was 0.
! 16822: as_fn_error ()
! 16823: {
! 16824: as_status=$1; test $as_status -eq 0 && as_status=1
! 16825: if test "$4"; then
! 16826: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 16827: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 16828: fi
! 16829: $as_echo "$as_me: error: $2" >&2
! 16830: as_fn_exit $as_status
! 16831: } # as_fn_error
! 16832:
! 16833:
! 16834: # as_fn_set_status STATUS
! 16835: # -----------------------
! 16836: # Set $? to STATUS, without forking.
! 16837: as_fn_set_status ()
! 16838: {
! 16839: return $1
! 16840: } # as_fn_set_status
! 16841:
! 16842: # as_fn_exit STATUS
! 16843: # -----------------
! 16844: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 16845: as_fn_exit ()
! 16846: {
! 16847: set +e
! 16848: as_fn_set_status $1
! 16849: exit $1
! 16850: } # as_fn_exit
! 16851:
! 16852: # as_fn_unset VAR
! 16853: # ---------------
! 16854: # Portably unset VAR.
! 16855: as_fn_unset ()
! 16856: {
! 16857: { eval $1=; unset $1;}
! 16858: }
! 16859: as_unset=as_fn_unset
! 16860: # as_fn_append VAR VALUE
! 16861: # ----------------------
! 16862: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 16863: # advantage of any shell optimizations that allow amortized linear growth over
! 16864: # repeated appends, instead of the typical quadratic growth present in naive
! 16865: # implementations.
! 16866: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 16867: eval 'as_fn_append ()
! 16868: {
! 16869: eval $1+=\$2
! 16870: }'
! 16871: else
! 16872: as_fn_append ()
! 16873: {
! 16874: eval $1=\$$1\$2
! 16875: }
! 16876: fi # as_fn_append
! 16877:
! 16878: # as_fn_arith ARG...
! 16879: # ------------------
! 16880: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 16881: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 16882: # must be portable across $(()) and expr.
! 16883: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 16884: eval 'as_fn_arith ()
! 16885: {
! 16886: as_val=$(( $* ))
! 16887: }'
! 16888: else
! 16889: as_fn_arith ()
! 16890: {
! 16891: as_val=`expr "$@" || test $? -eq 1`
! 16892: }
! 16893: fi # as_fn_arith
! 16894:
1.8 moko 16895:
1.10 ! moko 16896: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 16897: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.8 moko 16898: as_expr=expr
16899: else
16900: as_expr=false
16901: fi
16902:
1.10 ! moko 16903: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.8 moko 16904: as_basename=basename
16905: else
16906: as_basename=false
16907: fi
16908:
1.10 ! moko 16909: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 16910: as_dirname=dirname
! 16911: else
! 16912: as_dirname=false
! 16913: fi
1.8 moko 16914:
1.10 ! moko 16915: as_me=`$as_basename -- "$0" ||
1.8 moko 16916: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16917: X"$0" : 'X\(//\)$' \| \
1.10 ! moko 16918: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 16919: $as_echo X/"$0" |
! 16920: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 16921: s//\1/
! 16922: q
! 16923: }
! 16924: /^X\/\(\/\/\)$/{
! 16925: s//\1/
! 16926: q
! 16927: }
! 16928: /^X\/\(\/\).*/{
! 16929: s//\1/
! 16930: q
! 16931: }
! 16932: s/.*/./; q'`
1.8 moko 16933:
16934: # Avoid depending upon Character Ranges.
16935: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16936: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16937: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16938: as_cr_digits='0123456789'
16939: as_cr_alnum=$as_cr_Letters$as_cr_digits
16940:
1.10 ! moko 16941: ECHO_C= ECHO_N= ECHO_T=
! 16942: case `echo -n x` in #(((((
! 16943: -n*)
! 16944: case `echo 'xy\c'` in
! 16945: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 16946: xy) ECHO_C='\c';;
! 16947: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 16948: ECHO_T=' ';;
! 16949: esac;;
! 16950: *)
! 16951: ECHO_N='-n';;
1.8 moko 16952: esac
16953:
1.10 ! moko 16954: rm -f conf$$ conf$$.exe conf$$.file
! 16955: if test -d conf$$.dir; then
! 16956: rm -f conf$$.dir/conf$$.file
1.8 moko 16957: else
1.10 ! moko 16958: rm -f conf$$.dir
! 16959: mkdir conf$$.dir 2>/dev/null
1.8 moko 16960: fi
1.10 ! moko 16961: if (echo >conf$$.file) 2>/dev/null; then
! 16962: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 16963: as_ln_s='ln -s'
! 16964: # ... but there are two gotchas:
! 16965: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
! 16966: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
! 16967: # In both cases, we have to default to `cp -p'.
! 16968: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
! 16969: as_ln_s='cp -p'
! 16970: elif ln conf$$.file conf$$ 2>/dev/null; then
! 16971: as_ln_s=ln
! 16972: else
1.8 moko 16973: as_ln_s='cp -p'
16974: fi
16975: else
16976: as_ln_s='cp -p'
16977: fi
1.10 ! moko 16978: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
! 16979: rmdir conf$$.dir 2>/dev/null
! 16980:
! 16981:
! 16982: # as_fn_mkdir_p
! 16983: # -------------
! 16984: # Create "$as_dir" as a directory, including parents if necessary.
! 16985: as_fn_mkdir_p ()
! 16986: {
! 16987:
! 16988: case $as_dir in #(
! 16989: -*) as_dir=./$as_dir;;
! 16990: esac
! 16991: test -d "$as_dir" || eval $as_mkdir_p || {
! 16992: as_dirs=
! 16993: while :; do
! 16994: case $as_dir in #(
! 16995: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 16996: *) as_qdir=$as_dir;;
! 16997: esac
! 16998: as_dirs="'$as_qdir' $as_dirs"
! 16999: as_dir=`$as_dirname -- "$as_dir" ||
! 17000: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 17001: X"$as_dir" : 'X\(//\)[^/]' \| \
! 17002: X"$as_dir" : 'X\(//\)$' \| \
! 17003: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 17004: $as_echo X"$as_dir" |
! 17005: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 17006: s//\1/
! 17007: q
! 17008: }
! 17009: /^X\(\/\/\)[^/].*/{
! 17010: s//\1/
! 17011: q
! 17012: }
! 17013: /^X\(\/\/\)$/{
! 17014: s//\1/
! 17015: q
! 17016: }
! 17017: /^X\(\/\).*/{
! 17018: s//\1/
! 17019: q
! 17020: }
! 17021: s/.*/./; q'`
! 17022: test -d "$as_dir" && break
! 17023: done
! 17024: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 17025: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 17026:
1.8 moko 17027:
1.10 ! moko 17028: } # as_fn_mkdir_p
1.8 moko 17029: if mkdir -p . 2>/dev/null; then
1.10 ! moko 17030: as_mkdir_p='mkdir -p "$as_dir"'
1.8 moko 17031: else
17032: test -d ./-p && rmdir ./-p
17033: as_mkdir_p=false
17034: fi
17035:
1.10 ! moko 17036: if test -x / >/dev/null 2>&1; then
! 17037: as_test_x='test -x'
! 17038: else
! 17039: if ls -dL / >/dev/null 2>&1; then
! 17040: as_ls_L_option=L
! 17041: else
! 17042: as_ls_L_option=
! 17043: fi
! 17044: as_test_x='
! 17045: eval sh -c '\''
! 17046: if test -d "$1"; then
! 17047: test -d "$1/.";
! 17048: else
! 17049: case $1 in #(
! 17050: -*)set "./$1";;
! 17051: esac;
! 17052: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
! 17053: ???[sx]*):;;*)false;;esac;fi
! 17054: '\'' sh
! 17055: '
! 17056: fi
! 17057: as_executable_p=$as_test_x
1.8 moko 17058:
17059: # Sed expression to map a string onto a valid CPP name.
17060: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17061:
17062: # Sed expression to map a string onto a valid variable name.
17063: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17064:
17065:
17066: exec 6>&1
1.10 ! moko 17067: ## ----------------------------------- ##
! 17068: ## Main body of $CONFIG_STATUS script. ##
! 17069: ## ----------------------------------- ##
! 17070: _ASEOF
! 17071: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.8 moko 17072:
1.10 ! moko 17073: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17074: # Save the log message, to keep $0 and so on meaningful, and to
1.8 moko 17075: # report actual input values of CONFIG_FILES etc. instead of their
1.10 ! moko 17076: # values after options handling.
! 17077: ac_log="
1.8 moko 17078: This file was extended by $as_me, which was
1.10 ! moko 17079: generated by GNU Autoconf 2.67. Invocation command line was
1.8 moko 17080:
17081: CONFIG_FILES = $CONFIG_FILES
17082: CONFIG_HEADERS = $CONFIG_HEADERS
17083: CONFIG_LINKS = $CONFIG_LINKS
17084: CONFIG_COMMANDS = $CONFIG_COMMANDS
17085: $ $0 $@
17086:
1.10 ! moko 17087: on `(hostname || uname -n) 2>/dev/null | sed 1q`
! 17088: "
! 17089:
1.8 moko 17090: _ACEOF
17091:
1.10 ! moko 17092: case $ac_config_files in *"
! 17093: "*) set x $ac_config_files; shift; ac_config_files=$*;;
! 17094: esac
1.8 moko 17095:
1.10 ! moko 17096: case $ac_config_headers in *"
! 17097: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
! 17098: esac
1.8 moko 17099:
17100:
1.10 ! moko 17101: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17102: # Files that config.status was made for.
! 17103: config_files="$ac_config_files"
! 17104: config_headers="$ac_config_headers"
! 17105: config_commands="$ac_config_commands"
1.8 moko 17106:
1.10 ! moko 17107: _ACEOF
1.8 moko 17108:
1.10 ! moko 17109: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 17110: ac_cs_usage="\
1.10 ! moko 17111: \`$as_me' instantiates files and other configuration actions
! 17112: from templates according to the current configuration. Unless the files
! 17113: and actions are specified as TAGs, all are instantiated by default.
1.8 moko 17114:
1.10 ! moko 17115: Usage: $0 [OPTION]... [TAG]...
1.8 moko 17116:
17117: -h, --help print this help, then exit
1.10 ! moko 17118: -V, --version print version number and configuration settings, then exit
! 17119: --config print configuration, then exit
! 17120: -q, --quiet, --silent
! 17121: do not print progress messages
1.8 moko 17122: -d, --debug don't remove temporary files
17123: --recheck update $as_me by reconfiguring in the same conditions
1.10 ! moko 17124: --file=FILE[:TEMPLATE]
! 17125: instantiate the configuration file FILE
! 17126: --header=FILE[:TEMPLATE]
! 17127: instantiate the configuration header FILE
1.8 moko 17128:
17129: Configuration files:
17130: $config_files
17131:
17132: Configuration headers:
17133: $config_headers
17134:
17135: Configuration commands:
17136: $config_commands
17137:
1.10 ! moko 17138: Report bugs to the package provider."
! 17139:
1.8 moko 17140: _ACEOF
1.10 ! moko 17141: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17142: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.8 moko 17143: ac_cs_version="\\
17144: config.status
1.10 ! moko 17145: configured by $0, generated by GNU Autoconf 2.67,
! 17146: with options \\"\$ac_cs_config\\"
1.8 moko 17147:
1.10 ! moko 17148: Copyright (C) 2010 Free Software Foundation, Inc.
1.8 moko 17149: This config.status script is free software; the Free Software Foundation
17150: gives unlimited permission to copy, distribute and modify it."
1.10 ! moko 17151:
! 17152: ac_pwd='$ac_pwd'
! 17153: srcdir='$srcdir'
! 17154: INSTALL='$INSTALL'
! 17155: AWK='$AWK'
! 17156: test -n "\$AWK" || AWK=awk
1.8 moko 17157: _ACEOF
17158:
1.10 ! moko 17159: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17160: # The default lists apply if the user does not specify any file.
1.8 moko 17161: ac_need_defaults=:
17162: while test $# != 0
17163: do
17164: case $1 in
1.10 ! moko 17165: --*=?*)
! 17166: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 17167: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
! 17168: ac_shift=:
! 17169: ;;
! 17170: --*=)
! 17171: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 17172: ac_optarg=
1.8 moko 17173: ac_shift=:
17174: ;;
1.10 ! moko 17175: *)
1.8 moko 17176: ac_option=$1
17177: ac_optarg=$2
17178: ac_shift=shift
17179: ;;
17180: esac
17181:
17182: case $ac_option in
17183: # Handling of the options.
17184: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17185: ac_cs_recheck=: ;;
1.10 ! moko 17186: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
! 17187: $as_echo "$ac_cs_version"; exit ;;
! 17188: --config | --confi | --conf | --con | --co | --c )
! 17189: $as_echo "$ac_cs_config"; exit ;;
! 17190: --debug | --debu | --deb | --de | --d | -d )
1.8 moko 17191: debug=: ;;
17192: --file | --fil | --fi | --f )
17193: $ac_shift
1.10 ! moko 17194: case $ac_optarg in
! 17195: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 17196: '') as_fn_error $? "missing file argument" ;;
! 17197: esac
! 17198: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.8 moko 17199: ac_need_defaults=false;;
17200: --header | --heade | --head | --hea )
17201: $ac_shift
1.10 ! moko 17202: case $ac_optarg in
! 17203: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 17204: esac
! 17205: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.8 moko 17206: ac_need_defaults=false;;
1.10 ! moko 17207: --he | --h)
! 17208: # Conflict between --help and --header
! 17209: as_fn_error $? "ambiguous option: \`$1'
! 17210: Try \`$0 --help' for more information.";;
! 17211: --help | --hel | -h )
! 17212: $as_echo "$ac_cs_usage"; exit ;;
1.8 moko 17213: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17214: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17215: ac_cs_silent=: ;;
17216:
17217: # This is an error.
1.10 ! moko 17218: -*) as_fn_error $? "unrecognized option: \`$1'
! 17219: Try \`$0 --help' for more information." ;;
1.8 moko 17220:
1.10 ! moko 17221: *) as_fn_append ac_config_targets " $1"
! 17222: ac_need_defaults=false ;;
1.8 moko 17223:
17224: esac
17225: shift
17226: done
17227:
17228: ac_configure_extra_args=
17229:
17230: if $ac_cs_silent; then
17231: exec 6>/dev/null
17232: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.10 ! moko 17233: fi
! 17234:
! 17235: _ACEOF
! 17236: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17237: if \$ac_cs_recheck; then
! 17238: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
! 17239: shift
! 17240: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
! 17241: CONFIG_SHELL='$SHELL'
! 17242: export CONFIG_SHELL
! 17243: exec "\$@"
! 17244: fi
! 17245:
! 17246: _ACEOF
! 17247: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17248: exec 5>>config.log
! 17249: {
! 17250: echo
! 17251: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 17252: ## Running $as_me. ##
! 17253: _ASBOX
! 17254: $as_echo "$ac_log"
! 17255: } >&5
1.8 moko 17256:
17257: _ACEOF
1.10 ! moko 17258: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.8 moko 17259: #
1.10 ! moko 17260: # INIT-COMMANDS
1.8 moko 17261: #
17262: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17263:
17264:
17265: # The HP-UX ksh and POSIX shell print the target directory to stdout
17266: # if CDPATH is set.
17267: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17268:
17269: sed_quote_subst='$sed_quote_subst'
17270: double_quote_subst='$double_quote_subst'
17271: delay_variable_subst='$delay_variable_subst'
17272: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17273: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17274: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17275: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17276: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17277: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17278: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17279: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17280: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17281: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17282: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17283: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17284: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17285: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17286: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17287: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17288: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17289: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17290: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17291: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17292: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17293: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17294: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17295: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17296: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17297: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17298: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17299: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17300: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17301: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17302: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17303: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17304: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17305: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17306: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17307: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17308: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17309: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17310: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17311: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17312: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17313: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17314: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17315: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17316: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17317: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17318: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17319: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17320: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17321: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17322: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17323: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17324: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17325: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17326: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17327: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17328: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17329: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17330: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17331: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17332: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17333: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17334: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17335: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17336: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17337: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17338: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17339: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17340: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17341: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17342: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17343: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17344: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17345: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17346: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17347: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17348: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17349: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17350: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17351: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17352: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17353: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17354: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17355: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17356: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17357: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17358: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17359: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17360: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17361: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17362: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17363: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17364: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17365: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17366: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17367: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17368: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17369: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17370: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17371: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17372: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17373: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17374: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17375: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17376: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17377: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17378: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17379: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17380: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17381: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17382: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17383: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17384: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17385: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17386: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17387: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17388: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17389: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17390: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17391: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17392: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17393: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17394: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17395: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17396: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17397: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17398: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17399: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17400: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17401: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17402: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17403: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17404: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17405: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17406: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17407: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17408: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17409: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17410: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17411: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17412: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17413: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17414: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17415: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17416: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17417: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17418: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17419: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17420: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17421: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17422: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17423: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17424: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17425: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17426: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17427: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17428: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17429: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17430: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17432: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17433: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17434: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17435: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17436: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17437: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17438: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17439: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17440: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17441: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17442: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17443: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17444: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17445: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17446: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17447: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17448: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17449: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17450: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17451: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17452: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17453: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17454: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17455: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17456: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17457:
17458: LTCC='$LTCC'
17459: LTCFLAGS='$LTCFLAGS'
17460: compiler='$compiler_DEFAULT'
17461:
17462: # A function that is used when there is no print builtin or printf.
17463: func_fallback_echo ()
17464: {
17465: eval 'cat <<_LTECHO_EOF
17466: \$1
17467: _LTECHO_EOF'
17468: }
17469:
17470: # Quote evaled strings.
17471: for var in SHELL \
17472: ECHO \
17473: PATH_SEPARATOR \
17474: SED \
17475: GREP \
17476: EGREP \
17477: FGREP \
17478: LD \
17479: NM \
17480: LN_S \
17481: lt_SP2NL \
17482: lt_NL2SP \
17483: reload_flag \
17484: OBJDUMP \
17485: deplibs_check_method \
17486: file_magic_cmd \
17487: file_magic_glob \
17488: want_nocaseglob \
17489: DLLTOOL \
17490: sharedlib_from_linklib_cmd \
17491: AR \
17492: AR_FLAGS \
17493: archiver_list_spec \
17494: STRIP \
17495: RANLIB \
17496: CC \
17497: CFLAGS \
17498: compiler \
17499: lt_cv_sys_global_symbol_pipe \
17500: lt_cv_sys_global_symbol_to_cdecl \
17501: lt_cv_sys_global_symbol_to_c_name_address \
17502: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17503: nm_file_list_spec \
17504: lt_prog_compiler_no_builtin_flag \
17505: lt_prog_compiler_pic \
17506: lt_prog_compiler_wl \
17507: lt_prog_compiler_static \
17508: lt_cv_prog_compiler_c_o \
17509: need_locks \
17510: MANIFEST_TOOL \
17511: DSYMUTIL \
17512: NMEDIT \
17513: LIPO \
17514: OTOOL \
17515: OTOOL64 \
17516: shrext_cmds \
17517: export_dynamic_flag_spec \
17518: whole_archive_flag_spec \
17519: compiler_needs_object \
17520: with_gnu_ld \
17521: allow_undefined_flag \
17522: no_undefined_flag \
17523: hardcode_libdir_flag_spec \
17524: hardcode_libdir_separator \
17525: exclude_expsyms \
17526: include_expsyms \
17527: file_list_spec \
17528: variables_saved_for_relink \
17529: libname_spec \
17530: library_names_spec \
17531: soname_spec \
17532: install_override_mode \
17533: finish_eval \
17534: old_striplib \
17535: striplib \
17536: compiler_lib_search_dirs \
17537: predep_objects \
17538: postdep_objects \
17539: predeps \
17540: postdeps \
17541: compiler_lib_search_path \
17542: AS \
17543: LD_CXX \
17544: reload_flag_CXX \
17545: compiler_CXX \
17546: lt_prog_compiler_no_builtin_flag_CXX \
17547: lt_prog_compiler_pic_CXX \
17548: lt_prog_compiler_wl_CXX \
17549: lt_prog_compiler_static_CXX \
17550: lt_cv_prog_compiler_c_o_CXX \
17551: export_dynamic_flag_spec_CXX \
17552: whole_archive_flag_spec_CXX \
17553: compiler_needs_object_CXX \
17554: with_gnu_ld_CXX \
17555: allow_undefined_flag_CXX \
17556: no_undefined_flag_CXX \
17557: hardcode_libdir_flag_spec_CXX \
17558: hardcode_libdir_separator_CXX \
17559: exclude_expsyms_CXX \
17560: include_expsyms_CXX \
17561: file_list_spec_CXX \
17562: compiler_lib_search_dirs_CXX \
17563: predep_objects_CXX \
17564: postdep_objects_CXX \
17565: predeps_CXX \
17566: postdeps_CXX \
17567: compiler_lib_search_path_CXX; do
17568: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17569: *[\\\\\\\`\\"\\\$]*)
17570: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17571: ;;
17572: *)
17573: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17574: ;;
17575: esac
17576: done
17577:
17578: # Double-quote double-evaled strings.
17579: for var in reload_cmds \
17580: old_postinstall_cmds \
17581: old_postuninstall_cmds \
17582: old_archive_cmds \
17583: extract_expsyms_cmds \
17584: old_archive_from_new_cmds \
17585: old_archive_from_expsyms_cmds \
17586: archive_cmds \
17587: archive_expsym_cmds \
17588: module_cmds \
17589: module_expsym_cmds \
17590: export_symbols_cmds \
17591: prelink_cmds \
17592: postlink_cmds \
17593: postinstall_cmds \
17594: postuninstall_cmds \
17595: finish_cmds \
17596: sys_lib_search_path_spec \
17597: sys_lib_dlsearch_path_spec \
17598: reload_cmds_CXX \
17599: old_archive_cmds_CXX \
17600: old_archive_from_new_cmds_CXX \
17601: old_archive_from_expsyms_cmds_CXX \
17602: archive_cmds_CXX \
17603: archive_expsym_cmds_CXX \
17604: module_cmds_CXX \
17605: module_expsym_cmds_CXX \
17606: export_symbols_cmds_CXX \
17607: prelink_cmds_CXX \
17608: postlink_cmds_CXX; do
17609: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17610: *[\\\\\\\`\\"\\\$]*)
17611: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17612: ;;
17613: *)
17614: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17615: ;;
17616: esac
17617: done
17618:
17619: ac_aux_dir='$ac_aux_dir'
17620: xsi_shell='$xsi_shell'
17621: lt_shell_append='$lt_shell_append'
17622:
17623: # See if we are running on zsh, and set the options which allow our
17624: # commands through without removal of \ escapes INIT.
17625: if test -n "\${ZSH_VERSION+set}" ; then
17626: setopt NO_GLOB_SUBST
17627: fi
17628:
17629:
17630: PACKAGE='$PACKAGE'
17631: VERSION='$VERSION'
17632: TIMESTAMP='$TIMESTAMP'
17633: RM='$RM'
17634: ofile='$ofile'
17635:
17636:
17637:
17638:
17639:
17640:
17641: _ACEOF
17642:
1.10 ! moko 17643: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 17644:
1.10 ! moko 17645: # Handling of arguments.
1.8 moko 17646: for ac_config_target in $ac_config_targets
17647: do
1.10 ! moko 17648: case $ac_config_target in
! 17649: "config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS config_auto.h" ;;
! 17650: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
! 17651: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
! 17652: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 17653:
! 17654: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.8 moko 17655: esac
17656: done
17657:
1.10 ! moko 17658:
1.8 moko 17659: # If the user did not use the arguments to specify the items to instantiate,
17660: # then the envvar interface is used. Set only those that are not.
17661: # We use the long form for the default assignment because of an extremely
17662: # bizarre bug on SunOS 4.1.3.
17663: if $ac_need_defaults; then
17664: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17665: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17666: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17667: fi
17668:
17669: # Have a temporary directory for convenience. Make it in the build tree
1.10 ! moko 17670: # simply because there is no reason against having it here, and in addition,
1.8 moko 17671: # creating and moving files from /tmp can sometimes cause problems.
1.10 ! moko 17672: # Hook for its removal unless debugging.
! 17673: # Note that there is a small window in which the directory will not be cleaned:
! 17674: # after its creation but before its name has been assigned to `$tmp'.
1.8 moko 17675: $debug ||
17676: {
1.10 ! moko 17677: tmp=
! 17678: trap 'exit_status=$?
! 17679: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
! 17680: ' 0
! 17681: trap 'as_fn_exit 1' 1 2 13 15
1.8 moko 17682: }
17683: # Create a (secure) tmp directory for tmp files.
17684:
17685: {
1.10 ! moko 17686: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.8 moko 17687: test -n "$tmp" && test -d "$tmp"
17688: } ||
17689: {
1.10 ! moko 17690: tmp=./conf$$-$RANDOM
! 17691: (umask 077 && mkdir "$tmp")
! 17692: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 17693:
! 17694: # Set up the scripts for CONFIG_FILES section.
! 17695: # No need to generate them if there are no CONFIG_FILES.
! 17696: # This happens for instance with `./config.status config.h'.
! 17697: if test -n "$CONFIG_FILES"; then
! 17698:
! 17699:
! 17700: ac_cr=`echo X | tr X '\015'`
! 17701: # On cygwin, bash can eat \r inside `` if the user requested igncr.
! 17702: # But we know of no other shell where ac_cr would be empty at this
! 17703: # point, so we can use a bashism as a fallback.
! 17704: if test "x$ac_cr" = x; then
! 17705: eval ac_cr=\$\'\\r\'
! 17706: fi
! 17707: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
! 17708: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
! 17709: ac_cs_awk_cr='\\r'
! 17710: else
! 17711: ac_cs_awk_cr=$ac_cr
! 17712: fi
! 17713:
! 17714: echo 'BEGIN {' >"$tmp/subs1.awk" &&
! 17715: _ACEOF
! 17716:
! 17717:
! 17718: {
! 17719: echo "cat >conf$$subs.awk <<_ACEOF" &&
! 17720: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
! 17721: echo "_ACEOF"
! 17722: } >conf$$subs.sh ||
! 17723: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17724: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
! 17725: ac_delim='%!_!# '
! 17726: for ac_last_try in false false false false false :; do
! 17727: . ./conf$$subs.sh ||
! 17728: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17729:
! 17730: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
! 17731: if test $ac_delim_n = $ac_delim_num; then
! 17732: break
! 17733: elif $ac_last_try; then
! 17734: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 17735: else
! 17736: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
! 17737: fi
! 17738: done
! 17739: rm -f conf$$subs.sh
! 17740:
! 17741: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17742: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
! 17743: _ACEOF
! 17744: sed -n '
! 17745: h
! 17746: s/^/S["/; s/!.*/"]=/
! 17747: p
! 17748: g
! 17749: s/^[^!]*!//
! 17750: :repl
! 17751: t repl
! 17752: s/'"$ac_delim"'$//
! 17753: t delim
! 17754: :nl
! 17755: h
! 17756: s/\(.\{148\}\)..*/\1/
! 17757: t more1
! 17758: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
! 17759: p
! 17760: n
! 17761: b repl
! 17762: :more1
! 17763: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 17764: p
! 17765: g
! 17766: s/.\{148\}//
! 17767: t nl
! 17768: :delim
! 17769: h
! 17770: s/\(.\{148\}\)..*/\1/
! 17771: t more2
! 17772: s/["\\]/\\&/g; s/^/"/; s/$/"/
! 17773: p
! 17774: b
! 17775: :more2
! 17776: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
! 17777: p
! 17778: g
! 17779: s/.\{148\}//
! 17780: t delim
! 17781: ' <conf$$subs.awk | sed '
! 17782: /^[^""]/{
! 17783: N
! 17784: s/\n//
! 17785: }
! 17786: ' >>$CONFIG_STATUS || ac_write_fail=1
! 17787: rm -f conf$$subs.awk
! 17788: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17789: _ACAWK
! 17790: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
! 17791: for (key in S) S_is_set[key] = 1
! 17792: FS = ""
! 17793:
! 17794: }
1.8 moko 17795: {
1.10 ! moko 17796: line = $ 0
! 17797: nfields = split(line, field, "@")
! 17798: substed = 0
! 17799: len = length(field[1])
! 17800: for (i = 2; i < nfields; i++) {
! 17801: key = field[i]
! 17802: keylen = length(key)
! 17803: if (S_is_set[key]) {
! 17804: value = S[key]
! 17805: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
! 17806: len += length(value) + length(field[++i])
! 17807: substed = 1
! 17808: } else
! 17809: len += 1 + keylen
! 17810: }
! 17811:
! 17812: print line
1.8 moko 17813: }
17814:
1.10 ! moko 17815: _ACAWK
! 17816: _ACEOF
! 17817: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17818: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
! 17819: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
! 17820: else
! 17821: cat
! 17822: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
! 17823: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.8 moko 17824: _ACEOF
17825:
1.10 ! moko 17826: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 17827: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
! 17828: # trailing colons and then remove the whole line if VPATH becomes empty
! 17829: # (actually we leave an empty line to preserve line numbers).
! 17830: if test "x$srcdir" = x.; then
! 17831: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 17832: h
! 17833: s///
! 17834: s/^/:/
! 17835: s/[ ]*$/:/
! 17836: s/:\$(srcdir):/:/g
! 17837: s/:\${srcdir}:/:/g
! 17838: s/:@srcdir@:/:/g
! 17839: s/^:*//
! 17840: s/:*$//
! 17841: x
! 17842: s/\(=[ ]*\).*/\1/
! 17843: G
! 17844: s/\n//
! 17845: s/^[^=]*=[ ]*$//
! 17846: }'
! 17847: fi
1.8 moko 17848:
1.10 ! moko 17849: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17850: fi # test -n "$CONFIG_FILES"
1.8 moko 17851:
1.10 ! moko 17852: # Set up the scripts for CONFIG_HEADERS section.
! 17853: # No need to generate them if there are no CONFIG_HEADERS.
! 17854: # This happens for instance with `./config.status Makefile'.
! 17855: if test -n "$CONFIG_HEADERS"; then
! 17856: cat >"$tmp/defines.awk" <<\_ACAWK ||
! 17857: BEGIN {
! 17858: _ACEOF
! 17859:
! 17860: # Transform confdefs.h into an awk script `defines.awk', embedded as
! 17861: # here-document in config.status, that substitutes the proper values into
! 17862: # config.h.in to produce config.h.
! 17863:
! 17864: # Create a delimiter string that does not exist in confdefs.h, to ease
! 17865: # handling of long lines.
! 17866: ac_delim='%!_!# '
! 17867: for ac_last_try in false false :; do
! 17868: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
! 17869: if test -z "$ac_t"; then
! 17870: break
! 17871: elif $ac_last_try; then
! 17872: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
! 17873: else
! 17874: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.8 moko 17875: fi
1.10 ! moko 17876: done
1.8 moko 17877:
1.10 ! moko 17878: # For the awk script, D is an array of macro values keyed by name,
! 17879: # likewise P contains macro parameters if any. Preserve backslash
! 17880: # newline sequences.
! 17881:
! 17882: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
! 17883: sed -n '
! 17884: s/.\{148\}/&'"$ac_delim"'/g
! 17885: t rset
! 17886: :rset
! 17887: s/^[ ]*#[ ]*define[ ][ ]*/ /
! 17888: t def
! 17889: d
! 17890: :def
! 17891: s/\\$//
! 17892: t bsnl
! 17893: s/["\\]/\\&/g
! 17894: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 17895: D["\1"]=" \3"/p
! 17896: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
! 17897: d
! 17898: :bsnl
! 17899: s/["\\]/\\&/g
! 17900: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
! 17901: D["\1"]=" \3\\\\\\n"\\/p
! 17902: t cont
! 17903: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
! 17904: t cont
! 17905: d
! 17906: :cont
! 17907: n
! 17908: s/.\{148\}/&'"$ac_delim"'/g
! 17909: t clear
! 17910: :clear
! 17911: s/\\$//
! 17912: t bsnlc
! 17913: s/["\\]/\\&/g; s/^/"/; s/$/"/p
! 17914: d
! 17915: :bsnlc
! 17916: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
! 17917: b cont
! 17918: ' <confdefs.h | sed '
! 17919: s/'"$ac_delim"'/"\\\
! 17920: "/g' >>$CONFIG_STATUS || ac_write_fail=1
! 17921:
! 17922: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 17923: for (key in D) D_is_set[key] = 1
! 17924: FS = ""
! 17925: }
! 17926: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
! 17927: line = \$ 0
! 17928: split(line, arg, " ")
! 17929: if (arg[1] == "#") {
! 17930: defundef = arg[2]
! 17931: mac1 = arg[3]
! 17932: } else {
! 17933: defundef = substr(arg[1], 2)
! 17934: mac1 = arg[2]
! 17935: }
! 17936: split(mac1, mac2, "(") #)
! 17937: macro = mac2[1]
! 17938: prefix = substr(line, 1, index(line, defundef) - 1)
! 17939: if (D_is_set[macro]) {
! 17940: # Preserve the white space surrounding the "#".
! 17941: print prefix "define", macro P[macro] D[macro]
! 17942: next
! 17943: } else {
! 17944: # Replace #undef with comments. This is necessary, for example,
! 17945: # in the case of _POSIX_SOURCE, which is predefined and required
! 17946: # on some systems where configure will not decide to define it.
! 17947: if (defundef == "undef") {
! 17948: print "/*", prefix defundef, macro, "*/"
! 17949: next
! 17950: }
! 17951: }
! 17952: }
! 17953: { print }
! 17954: _ACAWK
1.8 moko 17955: _ACEOF
1.10 ! moko 17956: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 17957: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
! 17958: fi # test -n "$CONFIG_HEADERS"
! 17959:
! 17960:
! 17961: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
! 17962: shift
! 17963: for ac_tag
! 17964: do
! 17965: case $ac_tag in
! 17966: :[FHLC]) ac_mode=$ac_tag; continue;;
! 17967: esac
! 17968: case $ac_mode$ac_tag in
! 17969: :[FHL]*:*);;
! 17970: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
! 17971: :[FH]-) ac_tag=-:-;;
! 17972: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
! 17973: esac
! 17974: ac_save_IFS=$IFS
! 17975: IFS=:
! 17976: set x $ac_tag
! 17977: IFS=$ac_save_IFS
! 17978: shift
! 17979: ac_file=$1
! 17980: shift
! 17981:
! 17982: case $ac_mode in
! 17983: :L) ac_source=$1;;
! 17984: :[FH])
! 17985: ac_file_inputs=
! 17986: for ac_f
! 17987: do
! 17988: case $ac_f in
! 17989: -) ac_f="$tmp/stdin";;
! 17990: *) # Look for the file first in the build tree, then in the source tree
! 17991: # (if the path is not absolute). The absolute path cannot be DOS-style,
! 17992: # because $ac_f cannot contain `:'.
! 17993: test -f "$ac_f" ||
! 17994: case $ac_f in
! 17995: [\\/$]*) false;;
! 17996: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
! 17997: esac ||
! 17998: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
! 17999: esac
! 18000: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
! 18001: as_fn_append ac_file_inputs " '$ac_f'"
! 18002: done
! 18003:
! 18004: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 18005: # use $as_me), people would be surprised to read:
! 18006: # /* config.h. Generated by config.status. */
! 18007: configure_input='Generated from '`
! 18008: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
! 18009: `' by configure.'
! 18010: if test x"$ac_file" != x-; then
! 18011: configure_input="$ac_file. $configure_input"
! 18012: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 18013: $as_echo "$as_me: creating $ac_file" >&6;}
! 18014: fi
! 18015: # Neutralize special characters interpreted by sed in replacement strings.
! 18016: case $configure_input in #(
! 18017: *\&* | *\|* | *\\* )
! 18018: ac_sed_conf_input=`$as_echo "$configure_input" |
! 18019: sed 's/[\\\\&|]/\\\\&/g'`;; #(
! 18020: *) ac_sed_conf_input=$configure_input;;
! 18021: esac
! 18022:
! 18023: case $ac_tag in
! 18024: *:-:* | *:-) cat >"$tmp/stdin" \
! 18025: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
! 18026: esac
! 18027: ;;
1.8 moko 18028: esac
18029:
1.10 ! moko 18030: ac_dir=`$as_dirname -- "$ac_file" ||
1.8 moko 18031: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18032: X"$ac_file" : 'X\(//\)[^/]' \| \
18033: X"$ac_file" : 'X\(//\)$' \| \
1.10 ! moko 18034: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
! 18035: $as_echo X"$ac_file" |
! 18036: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18037: s//\1/
! 18038: q
! 18039: }
! 18040: /^X\(\/\/\)[^/].*/{
! 18041: s//\1/
! 18042: q
! 18043: }
! 18044: /^X\(\/\/\)$/{
! 18045: s//\1/
! 18046: q
! 18047: }
! 18048: /^X\(\/\).*/{
! 18049: s//\1/
! 18050: q
! 18051: }
! 18052: s/.*/./; q'`
! 18053: as_dir="$ac_dir"; as_fn_mkdir_p
1.8 moko 18054: ac_builddir=.
18055:
1.10 ! moko 18056: case "$ac_dir" in
! 18057: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 18058: *)
! 18059: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 18060: # A ".." for each directory in $ac_dir_suffix.
! 18061: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 18062: case $ac_top_builddir_sub in
! 18063: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 18064: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 18065: esac ;;
! 18066: esac
! 18067: ac_abs_top_builddir=$ac_pwd
! 18068: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 18069: # for backward compatibility:
! 18070: ac_top_builddir=$ac_top_build_prefix
1.8 moko 18071:
18072: case $srcdir in
1.10 ! moko 18073: .) # We are building in place.
1.8 moko 18074: ac_srcdir=.
1.10 ! moko 18075: ac_top_srcdir=$ac_top_builddir_sub
! 18076: ac_abs_top_srcdir=$ac_pwd ;;
! 18077: [\\/]* | ?:[\\/]* ) # Absolute name.
1.8 moko 18078: ac_srcdir=$srcdir$ac_dir_suffix;
1.10 ! moko 18079: ac_top_srcdir=$srcdir
! 18080: ac_abs_top_srcdir=$srcdir ;;
! 18081: *) # Relative name.
! 18082: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 18083: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 18084: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.8 moko 18085: esac
1.10 ! moko 18086: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.8 moko 18087:
18088:
1.10 ! moko 18089: case $ac_mode in
! 18090: :F)
! 18091: #
! 18092: # CONFIG_FILE
! 18093: #
1.8 moko 18094:
18095: case $INSTALL in
18096: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.10 ! moko 18097: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.8 moko 18098: esac
1.10 ! moko 18099: _ACEOF
1.8 moko 18100:
1.10 ! moko 18101: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 18102: # If the template does not know about datarootdir, expand it.
! 18103: # FIXME: This hack should be removed a few years after 2.60.
! 18104: ac_datarootdir_hack=; ac_datarootdir_seen=
! 18105: ac_sed_dataroot='
! 18106: /datarootdir/ {
! 18107: p
! 18108: q
! 18109: }
! 18110: /@datadir@/p
! 18111: /@docdir@/p
! 18112: /@infodir@/p
! 18113: /@localedir@/p
! 18114: /@mandir@/p'
! 18115: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
! 18116: *datarootdir*) ac_datarootdir_seen=yes;;
! 18117: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
! 18118: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 18119: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
! 18120: _ACEOF
! 18121: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 18122: ac_datarootdir_hack='
! 18123: s&@datadir@&$datadir&g
! 18124: s&@docdir@&$docdir&g
! 18125: s&@infodir@&$infodir&g
! 18126: s&@localedir@&$localedir&g
! 18127: s&@mandir@&$mandir&g
! 18128: s&\\\${datarootdir}&$datarootdir&g' ;;
! 18129: esac
! 18130: _ACEOF
1.8 moko 18131:
1.10 ! moko 18132: # Neutralize VPATH when `$srcdir' = `.'.
! 18133: # Shell code in configure.ac might set extrasub.
! 18134: # FIXME: do we really want to maintain this feature?
! 18135: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
! 18136: ac_sed_extra="$ac_vpsub
1.8 moko 18137: $extrasub
18138: _ACEOF
1.10 ! moko 18139: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.8 moko 18140: :t
18141: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.10 ! moko 18142: s|@configure_input@|$ac_sed_conf_input|;t t
! 18143: s&@top_builddir@&$ac_top_builddir_sub&;t t
! 18144: s&@top_build_prefix@&$ac_top_build_prefix&;t t
! 18145: s&@srcdir@&$ac_srcdir&;t t
! 18146: s&@abs_srcdir@&$ac_abs_srcdir&;t t
! 18147: s&@top_srcdir@&$ac_top_srcdir&;t t
! 18148: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
! 18149: s&@builddir@&$ac_builddir&;t t
! 18150: s&@abs_builddir@&$ac_abs_builddir&;t t
! 18151: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
! 18152: s&@INSTALL@&$ac_INSTALL&;t t
! 18153: $ac_datarootdir_hack
! 18154: "
! 18155: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
! 18156: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18157:
! 18158: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
! 18159: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 18160: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
! 18161: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 18162: which seems to be undefined. Please make sure it is defined" >&5
! 18163: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 18164: which seems to be undefined. Please make sure it is defined" >&2;}
1.8 moko 18165:
1.10 ! moko 18166: rm -f "$tmp/stdin"
1.8 moko 18167: case $ac_file in
1.10 ! moko 18168: -) cat "$tmp/out" && rm -f "$tmp/out";;
! 18169: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
! 18170: esac \
! 18171: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18172: ;;
! 18173: :H)
! 18174: #
! 18175: # CONFIG_HEADER
! 18176: #
1.8 moko 18177: if test x"$ac_file" != x-; then
1.10 ! moko 18178: {
! 18179: $as_echo "/* $configure_input */" \
! 18180: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
! 18181: } >"$tmp/config.h" \
! 18182: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 18183: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
! 18184: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
! 18185: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.8 moko 18186: else
1.10 ! moko 18187: rm -f "$ac_file"
! 18188: mv "$tmp/config.h" "$ac_file" \
! 18189: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.8 moko 18190: fi
18191: else
1.10 ! moko 18192: $as_echo "/* $configure_input */" \
! 18193: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
! 18194: || as_fn_error $? "could not create -" "$LINENO" 5
1.8 moko 18195: fi
1.10 ! moko 18196: # Compute "$ac_file"'s index in $config_headers.
1.8 moko 18197: _am_stamp_count=1
18198: for _am_header in $config_headers :; do
18199: case $_am_header in
1.10 ! moko 18200: "$ac_file" | "$ac_file":* )
1.8 moko 18201: break ;;
18202: * )
18203: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18204: esac
18205: done
1.10 ! moko 18206: echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
! 18207: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 18208: X"$ac_file" : 'X\(//\)[^/]' \| \
! 18209: X"$ac_file" : 'X\(//\)$' \| \
! 18210: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
! 18211: $as_echo X"$ac_file" |
! 18212: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18213: s//\1/
! 18214: q
! 18215: }
! 18216: /^X\(\/\/\)[^/].*/{
! 18217: s//\1/
! 18218: q
! 18219: }
! 18220: /^X\(\/\/\)$/{
! 18221: s//\1/
! 18222: q
! 18223: }
! 18224: /^X\(\/\).*/{
! 18225: s//\1/
! 18226: q
! 18227: }
! 18228: s/.*/./; q'`/stamp-h$_am_stamp_count
! 18229: ;;
1.8 moko 18230:
1.10 ! moko 18231: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
! 18232: $as_echo "$as_me: executing $ac_file commands" >&6;}
! 18233: ;;
! 18234: esac
1.8 moko 18235:
18236:
1.10 ! moko 18237: case $ac_file$ac_mode in
! 18238: "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.8 moko 18239: # Strip MF so we end up with the name of the file.
18240: mf=`echo "$mf" | sed -e 's/:.*$//'`
18241: # Check whether this is an Automake generated Makefile or not.
18242: # We used to match only the files named `Makefile.in', but
18243: # some people rename them; so instead we look at the file content.
18244: # Grep'ing the first line is not enough: some people post-process
18245: # each Makefile.in and add a new line on top of each file to say so.
18246: # So let's grep whole file.
18247: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.10 ! moko 18248: dirpart=`$as_dirname -- "$mf" ||
1.8 moko 18249: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18250: X"$mf" : 'X\(//\)[^/]' \| \
18251: X"$mf" : 'X\(//\)$' \| \
1.10 ! moko 18252: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
! 18253: $as_echo X"$mf" |
! 18254: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18255: s//\1/
! 18256: q
! 18257: }
! 18258: /^X\(\/\/\)[^/].*/{
! 18259: s//\1/
! 18260: q
! 18261: }
! 18262: /^X\(\/\/\)$/{
! 18263: s//\1/
! 18264: q
! 18265: }
! 18266: /^X\(\/\).*/{
! 18267: s//\1/
! 18268: q
! 18269: }
! 18270: s/.*/./; q'`
1.8 moko 18271: else
18272: continue
18273: fi
18274: # Extract the definition of DEPDIR, am__include, and am__quote
18275: # from the Makefile without running `make'.
18276: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18277: test -z "$DEPDIR" && continue
18278: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18279: test -z "am__include" && continue
18280: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18281: # When using ansi2knr, U may be empty or an underscore; expand it
18282: U=`sed -n 's/^U = //p' < "$mf"`
18283: # Find all dependency output files, they are included files with
18284: # $(DEPDIR) in their names. We invoke sed twice because it is the
18285: # simplest approach to changing $(DEPDIR) to its actual value in the
18286: # expansion.
18287: for file in `sed -n "
18288: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18289: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18290: # Make sure the directory exists.
18291: test -f "$dirpart/$file" && continue
1.10 ! moko 18292: fdir=`$as_dirname -- "$file" ||
1.8 moko 18293: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294: X"$file" : 'X\(//\)[^/]' \| \
18295: X"$file" : 'X\(//\)$' \| \
1.10 ! moko 18296: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
! 18297: $as_echo X"$file" |
! 18298: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 18299: s//\1/
! 18300: q
! 18301: }
! 18302: /^X\(\/\/\)[^/].*/{
! 18303: s//\1/
! 18304: q
! 18305: }
! 18306: /^X\(\/\/\)$/{
! 18307: s//\1/
! 18308: q
! 18309: }
! 18310: /^X\(\/\).*/{
! 18311: s//\1/
! 18312: q
! 18313: }
! 18314: s/.*/./; q'`
! 18315: as_dir=$dirpart/$fdir; as_fn_mkdir_p
1.8 moko 18316: # echo "creating $dirpart/$file"
18317: echo '# dummy' > "$dirpart/$file"
18318: done
18319: done
18320: ;;
1.10 ! moko 18321: "libtool":C)
1.8 moko 18322:
18323: # See if we are running on zsh, and set the options which allow our
18324: # commands through without removal of \ escapes.
18325: if test -n "${ZSH_VERSION+set}" ; then
18326: setopt NO_GLOB_SUBST
18327: fi
18328:
18329: cfgfile="${ofile}T"
18330: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18331: $RM "$cfgfile"
18332:
18333: cat <<_LT_EOF >> "$cfgfile"
18334: #! $SHELL
18335:
18336: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18337: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18338: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18339: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18340: #
18341: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18342: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18343: # Foundation, Inc.
18344: # Written by Gordon Matzigkeit, 1996
18345: #
18346: # This file is part of GNU Libtool.
18347: #
18348: # GNU Libtool is free software; you can redistribute it and/or
18349: # modify it under the terms of the GNU General Public License as
18350: # published by the Free Software Foundation; either version 2 of
18351: # the License, or (at your option) any later version.
18352: #
18353: # As a special exception to the GNU General Public License,
18354: # if you distribute this file as part of a program or library that
18355: # is built using GNU Libtool, you may include this file under the
18356: # same distribution terms that you use for the rest of that program.
18357: #
18358: # GNU Libtool is distributed in the hope that it will be useful,
18359: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18360: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18361: # GNU General Public License for more details.
18362: #
18363: # You should have received a copy of the GNU General Public License
18364: # along with GNU Libtool; see the file COPYING. If not, a copy
18365: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18366: # obtained by writing to the Free Software Foundation, Inc.,
18367: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18368:
18369:
18370: # The names of the tagged configurations supported by this script.
18371: available_tags="CXX "
18372:
18373: # ### BEGIN LIBTOOL CONFIG
18374:
18375: # Which release of libtool.m4 was used?
18376: macro_version=$macro_version
18377: macro_revision=$macro_revision
18378:
18379: # Whether or not to build shared libraries.
18380: build_libtool_libs=$enable_shared
18381:
18382: # Whether or not to build static libraries.
18383: build_old_libs=$enable_static
18384:
18385: # What type of objects to build.
18386: pic_mode=$pic_mode
18387:
18388: # Whether or not to optimize for fast installation.
18389: fast_install=$enable_fast_install
18390:
18391: # Shell to use when invoking shell scripts.
18392: SHELL=$lt_SHELL
18393:
18394: # An echo program that protects backslashes.
18395: ECHO=$lt_ECHO
18396:
18397: # The PATH separator for the build system.
18398: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18399:
18400: # The host system.
18401: host_alias=$host_alias
18402: host=$host
18403: host_os=$host_os
18404:
18405: # The build system.
18406: build_alias=$build_alias
18407: build=$build
18408: build_os=$build_os
18409:
18410: # A sed program that does not truncate output.
18411: SED=$lt_SED
18412:
18413: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18414: Xsed="\$SED -e 1s/^X//"
18415:
18416: # A grep program that handles long lines.
18417: GREP=$lt_GREP
18418:
18419: # An ERE matcher.
18420: EGREP=$lt_EGREP
18421:
18422: # A literal string matcher.
18423: FGREP=$lt_FGREP
18424:
18425: # A BSD- or MS-compatible name lister.
18426: NM=$lt_NM
18427:
18428: # Whether we need soft or hard links.
18429: LN_S=$lt_LN_S
18430:
18431: # What is the maximum length of a command?
18432: max_cmd_len=$max_cmd_len
18433:
18434: # Object file suffix (normally "o").
18435: objext=$ac_objext
18436:
18437: # Executable file suffix (normally "").
18438: exeext=$exeext
18439:
18440: # whether the shell understands "unset".
18441: lt_unset=$lt_unset
18442:
18443: # turn spaces into newlines.
18444: SP2NL=$lt_lt_SP2NL
18445:
18446: # turn newlines into spaces.
18447: NL2SP=$lt_lt_NL2SP
18448:
18449: # convert \$build file names to \$host format.
18450: to_host_file_cmd=$lt_cv_to_host_file_cmd
18451:
18452: # convert \$build files to toolchain format.
18453: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18454:
18455: # An object symbol dumper.
18456: OBJDUMP=$lt_OBJDUMP
18457:
18458: # Method to check whether dependent libraries are shared objects.
18459: deplibs_check_method=$lt_deplibs_check_method
18460:
18461: # Command to use when deplibs_check_method = "file_magic".
18462: file_magic_cmd=$lt_file_magic_cmd
18463:
18464: # How to find potential files when deplibs_check_method = "file_magic".
18465: file_magic_glob=$lt_file_magic_glob
18466:
18467: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18468: want_nocaseglob=$lt_want_nocaseglob
18469:
18470: # DLL creation program.
18471: DLLTOOL=$lt_DLLTOOL
18472:
18473: # Command to associate shared and link libraries.
18474: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18475:
18476: # The archiver.
18477: AR=$lt_AR
18478:
18479: # Flags to create an archive.
18480: AR_FLAGS=$lt_AR_FLAGS
18481:
18482: # How to feed a file listing to the archiver.
18483: archiver_list_spec=$lt_archiver_list_spec
18484:
18485: # A symbol stripping program.
18486: STRIP=$lt_STRIP
18487:
18488: # Commands used to install an old-style archive.
18489: RANLIB=$lt_RANLIB
18490: old_postinstall_cmds=$lt_old_postinstall_cmds
18491: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18492:
18493: # Whether to use a lock for old archive extraction.
18494: lock_old_archive_extraction=$lock_old_archive_extraction
18495:
18496: # A C compiler.
18497: LTCC=$lt_CC
18498:
18499: # LTCC compiler flags.
18500: LTCFLAGS=$lt_CFLAGS
18501:
18502: # Take the output of nm and produce a listing of raw symbols and C names.
18503: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18504:
18505: # Transform the output of nm in a proper C declaration.
18506: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18507:
18508: # Transform the output of nm in a C name address pair.
18509: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18510:
18511: # Transform the output of nm in a C name address pair when lib prefix is needed.
18512: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18513:
18514: # Specify filename containing input files for \$NM.
18515: nm_file_list_spec=$lt_nm_file_list_spec
18516:
18517: # The root where to search for dependent libraries,and in which our libraries should be installed.
18518: lt_sysroot=$lt_sysroot
18519:
18520: # The name of the directory that contains temporary libtool files.
18521: objdir=$objdir
18522:
18523: # Used to examine libraries when file_magic_cmd begins with "file".
18524: MAGIC_CMD=$MAGIC_CMD
18525:
18526: # Must we lock files when doing compilation?
18527: need_locks=$lt_need_locks
18528:
18529: # Manifest tool.
18530: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18531:
18532: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18533: DSYMUTIL=$lt_DSYMUTIL
18534:
18535: # Tool to change global to local symbols on Mac OS X.
18536: NMEDIT=$lt_NMEDIT
18537:
18538: # Tool to manipulate fat objects and archives on Mac OS X.
18539: LIPO=$lt_LIPO
18540:
18541: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18542: OTOOL=$lt_OTOOL
18543:
18544: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18545: OTOOL64=$lt_OTOOL64
18546:
18547: # Old archive suffix (normally "a").
18548: libext=$libext
18549:
18550: # Shared library suffix (normally ".so").
18551: shrext_cmds=$lt_shrext_cmds
18552:
18553: # The commands to extract the exported symbol list from a shared archive.
18554: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18555:
18556: # Variables whose values should be saved in libtool wrapper scripts and
18557: # restored at link time.
18558: variables_saved_for_relink=$lt_variables_saved_for_relink
18559:
18560: # Do we need the "lib" prefix for modules?
18561: need_lib_prefix=$need_lib_prefix
18562:
18563: # Do we need a version for libraries?
18564: need_version=$need_version
18565:
18566: # Library versioning type.
18567: version_type=$version_type
18568:
18569: # Shared library runtime path variable.
18570: runpath_var=$runpath_var
18571:
18572: # Shared library path variable.
18573: shlibpath_var=$shlibpath_var
18574:
18575: # Is shlibpath searched before the hard-coded library search path?
18576: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18577:
18578: # Format of library name prefix.
18579: libname_spec=$lt_libname_spec
18580:
18581: # List of archive names. First name is the real one, the rest are links.
18582: # The last name is the one that the linker finds with -lNAME
18583: library_names_spec=$lt_library_names_spec
18584:
18585: # The coded name of the library, if different from the real name.
18586: soname_spec=$lt_soname_spec
18587:
18588: # Permission mode override for installation of shared libraries.
18589: install_override_mode=$lt_install_override_mode
18590:
18591: # Command to use after installation of a shared archive.
18592: postinstall_cmds=$lt_postinstall_cmds
18593:
18594: # Command to use after uninstallation of a shared archive.
18595: postuninstall_cmds=$lt_postuninstall_cmds
18596:
18597: # Commands used to finish a libtool library installation in a directory.
18598: finish_cmds=$lt_finish_cmds
18599:
18600: # As "finish_cmds", except a single script fragment to be evaled but
18601: # not shown.
18602: finish_eval=$lt_finish_eval
18603:
18604: # Whether we should hardcode library paths into libraries.
18605: hardcode_into_libs=$hardcode_into_libs
18606:
18607: # Compile-time system search path for libraries.
18608: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18609:
18610: # Run-time system search path for libraries.
18611: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18612:
18613: # Whether dlopen is supported.
18614: dlopen_support=$enable_dlopen
18615:
18616: # Whether dlopen of programs is supported.
18617: dlopen_self=$enable_dlopen_self
18618:
18619: # Whether dlopen of statically linked programs is supported.
18620: dlopen_self_static=$enable_dlopen_self_static
18621:
18622: # Commands to strip libraries.
18623: old_striplib=$lt_old_striplib
18624: striplib=$lt_striplib
18625:
18626: # Assembler program.
18627: AS=$lt_AS
18628:
18629:
18630: # The linker used to build libraries.
18631: LD=$lt_LD
18632:
18633: # How to create reloadable object files.
18634: reload_flag=$lt_reload_flag
18635: reload_cmds=$lt_reload_cmds
18636:
18637: # Commands used to build an old-style archive.
18638: old_archive_cmds=$lt_old_archive_cmds
18639:
18640: # A language specific compiler.
18641: CC=$lt_compiler
18642:
18643: # Is the compiler the GNU compiler?
18644: with_gcc=$GCC
18645:
18646: # Compiler flag to turn off builtin functions.
18647: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18648:
18649: # Additional compiler flags for building library objects.
18650: pic_flag=$lt_lt_prog_compiler_pic
18651:
18652: # How to pass a linker flag through the compiler.
18653: wl=$lt_lt_prog_compiler_wl
18654:
18655: # Compiler flag to prevent dynamic linking.
18656: link_static_flag=$lt_lt_prog_compiler_static
18657:
18658: # Does compiler simultaneously support -c and -o options?
18659: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18660:
18661: # Whether or not to add -lc for building shared libraries.
18662: build_libtool_need_lc=$archive_cmds_need_lc
18663:
18664: # Whether or not to disallow shared libs when runtime libs are static.
18665: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18666:
18667: # Compiler flag to allow reflexive dlopens.
18668: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18669:
18670: # Compiler flag to generate shared objects directly from archives.
18671: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18672:
18673: # Whether the compiler copes with passing no objects directly.
18674: compiler_needs_object=$lt_compiler_needs_object
18675:
18676: # Create an old-style archive from a shared archive.
18677: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18678:
18679: # Create a temporary old-style archive to link instead of a shared archive.
18680: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18681:
18682: # Commands used to build a shared archive.
18683: archive_cmds=$lt_archive_cmds
18684: archive_expsym_cmds=$lt_archive_expsym_cmds
18685:
18686: # Commands used to build a loadable module if different from building
18687: # a shared archive.
18688: module_cmds=$lt_module_cmds
18689: module_expsym_cmds=$lt_module_expsym_cmds
18690:
18691: # Whether we are building with GNU ld or not.
18692: with_gnu_ld=$lt_with_gnu_ld
18693:
18694: # Flag that allows shared libraries with undefined symbols to be built.
18695: allow_undefined_flag=$lt_allow_undefined_flag
18696:
18697: # Flag that enforces no undefined symbols.
18698: no_undefined_flag=$lt_no_undefined_flag
18699:
18700: # Flag to hardcode \$libdir into a binary during linking.
18701: # This must work even if \$libdir does not exist
18702: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18703:
18704: # Whether we need a single "-rpath" flag with a separated argument.
18705: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18706:
18707: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18708: # DIR into the resulting binary.
18709: hardcode_direct=$hardcode_direct
18710:
18711: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18712: # DIR into the resulting binary and the resulting library dependency is
18713: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18714: # library is relocated.
18715: hardcode_direct_absolute=$hardcode_direct_absolute
18716:
18717: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18718: # into the resulting binary.
18719: hardcode_minus_L=$hardcode_minus_L
18720:
18721: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18722: # into the resulting binary.
18723: hardcode_shlibpath_var=$hardcode_shlibpath_var
18724:
18725: # Set to "yes" if building a shared library automatically hardcodes DIR
18726: # into the library and all subsequent libraries and executables linked
18727: # against it.
18728: hardcode_automatic=$hardcode_automatic
18729:
18730: # Set to yes if linker adds runtime paths of dependent libraries
18731: # to runtime path list.
18732: inherit_rpath=$inherit_rpath
18733:
18734: # Whether libtool must link a program against all its dependency libraries.
18735: link_all_deplibs=$link_all_deplibs
18736:
18737: # Set to "yes" if exported symbols are required.
18738: always_export_symbols=$always_export_symbols
18739:
18740: # The commands to list exported symbols.
18741: export_symbols_cmds=$lt_export_symbols_cmds
18742:
18743: # Symbols that should not be listed in the preloaded symbols.
18744: exclude_expsyms=$lt_exclude_expsyms
18745:
18746: # Symbols that must always be exported.
18747: include_expsyms=$lt_include_expsyms
18748:
18749: # Commands necessary for linking programs (against libraries) with templates.
18750: prelink_cmds=$lt_prelink_cmds
18751:
18752: # Commands necessary for finishing linking programs.
18753: postlink_cmds=$lt_postlink_cmds
18754:
18755: # Specify filename containing input files.
18756: file_list_spec=$lt_file_list_spec
18757:
18758: # How to hardcode a shared library path into an executable.
18759: hardcode_action=$hardcode_action
18760:
18761: # The directories searched by this compiler when creating a shared library.
18762: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18763:
18764: # Dependencies to place before and after the objects being linked to
18765: # create a shared library.
18766: predep_objects=$lt_predep_objects
18767: postdep_objects=$lt_postdep_objects
18768: predeps=$lt_predeps
18769: postdeps=$lt_postdeps
18770:
18771: # The library search path used internally by the compiler when linking
18772: # a shared library.
18773: compiler_lib_search_path=$lt_compiler_lib_search_path
18774:
18775: # ### END LIBTOOL CONFIG
18776:
18777: _LT_EOF
18778:
18779: case $host_os in
18780: aix3*)
18781: cat <<\_LT_EOF >> "$cfgfile"
18782: # AIX sometimes has problems with the GCC collect2 program. For some
18783: # reason, if we set the COLLECT_NAMES environment variable, the problems
18784: # vanish in a puff of smoke.
18785: if test "X${COLLECT_NAMES+set}" != Xset; then
18786: COLLECT_NAMES=
18787: export COLLECT_NAMES
18788: fi
18789: _LT_EOF
18790: ;;
18791: esac
18792:
18793:
18794: ltmain="$ac_aux_dir/ltmain.sh"
18795:
18796:
18797: # We use sed instead of cat because bash on DJGPP gets confused if
18798: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18799: # text mode, it properly converts lines to CR/LF. This bash problem
18800: # is reportedly fixed, but why not run on old versions too?
18801: sed '$q' "$ltmain" >> "$cfgfile" \
18802: || (rm -f "$cfgfile"; exit 1)
18803:
18804: if test x"$xsi_shell" = xyes; then
18805: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18806: func_dirname ()\
18807: {\
18808: \ case ${1} in\
18809: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18810: \ * ) func_dirname_result="${3}" ;;\
18811: \ esac\
18812: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18813: && mv -f "$cfgfile.tmp" "$cfgfile" \
18814: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18815: test 0 -eq $? || _lt_function_replace_fail=:
18816:
18817:
18818: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18819: func_basename ()\
18820: {\
18821: \ func_basename_result="${1##*/}"\
18822: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18823: && mv -f "$cfgfile.tmp" "$cfgfile" \
18824: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18825: test 0 -eq $? || _lt_function_replace_fail=:
18826:
18827:
18828: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18829: func_dirname_and_basename ()\
18830: {\
18831: \ case ${1} in\
18832: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18833: \ * ) func_dirname_result="${3}" ;;\
18834: \ esac\
18835: \ func_basename_result="${1##*/}"\
18836: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18837: && mv -f "$cfgfile.tmp" "$cfgfile" \
18838: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18839: test 0 -eq $? || _lt_function_replace_fail=:
18840:
18841:
18842: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18843: func_stripname ()\
18844: {\
18845: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18846: \ # positional parameters, so assign one to ordinary parameter first.\
18847: \ func_stripname_result=${3}\
18848: \ func_stripname_result=${func_stripname_result#"${1}"}\
18849: \ func_stripname_result=${func_stripname_result%"${2}"}\
18850: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18851: && mv -f "$cfgfile.tmp" "$cfgfile" \
18852: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18853: test 0 -eq $? || _lt_function_replace_fail=:
18854:
18855:
18856: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18857: func_split_long_opt ()\
18858: {\
18859: \ func_split_long_opt_name=${1%%=*}\
18860: \ func_split_long_opt_arg=${1#*=}\
18861: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18862: && mv -f "$cfgfile.tmp" "$cfgfile" \
18863: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18864: test 0 -eq $? || _lt_function_replace_fail=:
18865:
18866:
18867: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18868: func_split_short_opt ()\
18869: {\
18870: \ func_split_short_opt_arg=${1#??}\
18871: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18872: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18873: && mv -f "$cfgfile.tmp" "$cfgfile" \
18874: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18875: test 0 -eq $? || _lt_function_replace_fail=:
18876:
18877:
18878: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18879: func_lo2o ()\
18880: {\
18881: \ case ${1} in\
18882: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18883: \ *) func_lo2o_result=${1} ;;\
18884: \ esac\
18885: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18886: && mv -f "$cfgfile.tmp" "$cfgfile" \
18887: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18888: test 0 -eq $? || _lt_function_replace_fail=:
18889:
18890:
18891: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18892: func_xform ()\
18893: {\
18894: func_xform_result=${1%.*}.lo\
18895: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18896: && mv -f "$cfgfile.tmp" "$cfgfile" \
18897: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18898: test 0 -eq $? || _lt_function_replace_fail=:
18899:
18900:
18901: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18902: func_arith ()\
18903: {\
18904: func_arith_result=$(( $* ))\
18905: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18906: && mv -f "$cfgfile.tmp" "$cfgfile" \
18907: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18908: test 0 -eq $? || _lt_function_replace_fail=:
18909:
18910:
18911: sed -e '/^func_len ()$/,/^} # func_len /c\
18912: func_len ()\
18913: {\
18914: func_len_result=${#1}\
18915: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18916: && mv -f "$cfgfile.tmp" "$cfgfile" \
18917: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18918: test 0 -eq $? || _lt_function_replace_fail=:
18919:
18920: fi
18921:
18922: if test x"$lt_shell_append" = xyes; then
18923: sed -e '/^func_append ()$/,/^} # func_append /c\
18924: func_append ()\
18925: {\
18926: eval "${1}+=\\${2}"\
18927: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18928: && mv -f "$cfgfile.tmp" "$cfgfile" \
18929: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18930: test 0 -eq $? || _lt_function_replace_fail=:
18931:
18932:
18933: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18934: func_append_quoted ()\
18935: {\
18936: \ func_quote_for_eval "${2}"\
18937: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18938: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18939: && mv -f "$cfgfile.tmp" "$cfgfile" \
18940: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18941: test 0 -eq $? || _lt_function_replace_fail=:
18942:
18943:
18944: # Save a `func_append' function call where possible by direct use of '+='
18945: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18946: && mv -f "$cfgfile.tmp" "$cfgfile" \
18947: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18948: test 0 -eq $? || _lt_function_replace_fail=:
18949: else
18950: # Save a `func_append' function call even when '+=' is not available
18951: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18952: && mv -f "$cfgfile.tmp" "$cfgfile" \
18953: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18954: test 0 -eq $? || _lt_function_replace_fail=:
18955: fi
18956:
18957: if test x"$_lt_function_replace_fail" = x":"; then
1.10 ! moko 18958: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
! 18959: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
1.8 moko 18960: fi
18961:
18962:
18963: mv -f "$cfgfile" "$ofile" ||
18964: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18965: chmod +x "$ofile"
18966:
18967:
18968: cat <<_LT_EOF >> "$ofile"
18969:
18970: # ### BEGIN LIBTOOL TAG CONFIG: CXX
18971:
18972: # The linker used to build libraries.
18973: LD=$lt_LD_CXX
18974:
18975: # How to create reloadable object files.
18976: reload_flag=$lt_reload_flag_CXX
18977: reload_cmds=$lt_reload_cmds_CXX
18978:
18979: # Commands used to build an old-style archive.
18980: old_archive_cmds=$lt_old_archive_cmds_CXX
18981:
18982: # A language specific compiler.
18983: CC=$lt_compiler_CXX
18984:
18985: # Is the compiler the GNU compiler?
18986: with_gcc=$GCC_CXX
18987:
18988: # Compiler flag to turn off builtin functions.
18989: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18990:
18991: # Additional compiler flags for building library objects.
18992: pic_flag=$lt_lt_prog_compiler_pic_CXX
18993:
18994: # How to pass a linker flag through the compiler.
18995: wl=$lt_lt_prog_compiler_wl_CXX
18996:
18997: # Compiler flag to prevent dynamic linking.
18998: link_static_flag=$lt_lt_prog_compiler_static_CXX
18999:
19000: # Does compiler simultaneously support -c and -o options?
19001: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19002:
19003: # Whether or not to add -lc for building shared libraries.
19004: build_libtool_need_lc=$archive_cmds_need_lc_CXX
19005:
19006: # Whether or not to disallow shared libs when runtime libs are static.
19007: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19008:
19009: # Compiler flag to allow reflexive dlopens.
19010: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19011:
19012: # Compiler flag to generate shared objects directly from archives.
19013: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19014:
19015: # Whether the compiler copes with passing no objects directly.
19016: compiler_needs_object=$lt_compiler_needs_object_CXX
19017:
19018: # Create an old-style archive from a shared archive.
19019: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19020:
19021: # Create a temporary old-style archive to link instead of a shared archive.
19022: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19023:
19024: # Commands used to build a shared archive.
19025: archive_cmds=$lt_archive_cmds_CXX
19026: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19027:
19028: # Commands used to build a loadable module if different from building
19029: # a shared archive.
19030: module_cmds=$lt_module_cmds_CXX
19031: module_expsym_cmds=$lt_module_expsym_cmds_CXX
19032:
19033: # Whether we are building with GNU ld or not.
19034: with_gnu_ld=$lt_with_gnu_ld_CXX
19035:
19036: # Flag that allows shared libraries with undefined symbols to be built.
19037: allow_undefined_flag=$lt_allow_undefined_flag_CXX
19038:
19039: # Flag that enforces no undefined symbols.
19040: no_undefined_flag=$lt_no_undefined_flag_CXX
19041:
19042: # Flag to hardcode \$libdir into a binary during linking.
19043: # This must work even if \$libdir does not exist
19044: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19045:
19046: # Whether we need a single "-rpath" flag with a separated argument.
19047: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19048:
19049: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19050: # DIR into the resulting binary.
19051: hardcode_direct=$hardcode_direct_CXX
19052:
19053: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19054: # DIR into the resulting binary and the resulting library dependency is
19055: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19056: # library is relocated.
19057: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19058:
19059: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19060: # into the resulting binary.
19061: hardcode_minus_L=$hardcode_minus_L_CXX
19062:
19063: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19064: # into the resulting binary.
19065: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19066:
19067: # Set to "yes" if building a shared library automatically hardcodes DIR
19068: # into the library and all subsequent libraries and executables linked
19069: # against it.
19070: hardcode_automatic=$hardcode_automatic_CXX
19071:
19072: # Set to yes if linker adds runtime paths of dependent libraries
19073: # to runtime path list.
19074: inherit_rpath=$inherit_rpath_CXX
19075:
19076: # Whether libtool must link a program against all its dependency libraries.
19077: link_all_deplibs=$link_all_deplibs_CXX
19078:
19079: # Set to "yes" if exported symbols are required.
19080: always_export_symbols=$always_export_symbols_CXX
19081:
19082: # The commands to list exported symbols.
19083: export_symbols_cmds=$lt_export_symbols_cmds_CXX
19084:
19085: # Symbols that should not be listed in the preloaded symbols.
19086: exclude_expsyms=$lt_exclude_expsyms_CXX
19087:
19088: # Symbols that must always be exported.
19089: include_expsyms=$lt_include_expsyms_CXX
19090:
19091: # Commands necessary for linking programs (against libraries) with templates.
19092: prelink_cmds=$lt_prelink_cmds_CXX
19093:
19094: # Commands necessary for finishing linking programs.
19095: postlink_cmds=$lt_postlink_cmds_CXX
19096:
19097: # Specify filename containing input files.
19098: file_list_spec=$lt_file_list_spec_CXX
19099:
19100: # How to hardcode a shared library path into an executable.
19101: hardcode_action=$hardcode_action_CXX
19102:
19103: # The directories searched by this compiler when creating a shared library.
19104: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19105:
19106: # Dependencies to place before and after the objects being linked to
19107: # create a shared library.
19108: predep_objects=$lt_predep_objects_CXX
19109: postdep_objects=$lt_postdep_objects_CXX
19110: predeps=$lt_predeps_CXX
19111: postdeps=$lt_postdeps_CXX
19112:
19113: # The library search path used internally by the compiler when linking
19114: # a shared library.
19115: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19116:
19117: # ### END LIBTOOL TAG CONFIG: CXX
19118: _LT_EOF
1.1 misha 19119:
19120: ;;
1.10 ! moko 19121:
1.1 misha 19122: esac
1.10 ! moko 19123: done # for ac_tag
1.1 misha 19124:
19125:
1.10 ! moko 19126: as_fn_exit 0
1.1 misha 19127: _ACEOF
19128: ac_clean_files=$ac_clean_files_save
19129:
1.10 ! moko 19130: test $ac_write_fail = 0 ||
! 19131: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
! 19132:
1.1 misha 19133:
19134: # configure is writing to config.log, and then calls config.status.
19135: # config.status does its own redirection, appending to config.log.
19136: # Unfortunately, on DOS this fails, as config.log is still kept open
19137: # by configure, so config.status won't be able to write to it; its
19138: # output is simply discarded. So we exec the FD to /dev/null,
19139: # effectively closing config.log, so it can be properly (re)opened and
19140: # appended to by config.status. When coming back to configure, we
19141: # need to make the FD available again.
19142: if test "$no_create" != yes; then
19143: ac_cs_success=:
19144: ac_config_status_args=
19145: test "$silent" = yes &&
19146: ac_config_status_args="$ac_config_status_args --quiet"
19147: exec 5>/dev/null
19148: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19149: exec 5>>config.log
19150: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19151: # would make configure fail if this is the last instruction.
1.10 ! moko 19152: $ac_cs_success || as_fn_exit 1
1.1 misha 19153: fi
19154:
19155: #
19156: # CONFIG_SUBDIRS section.
19157: #
19158: if test "$no_recursion" != yes; then
19159:
1.10 ! moko 19160: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
! 19161: # so they do not pile up.
1.1 misha 19162: ac_sub_configure_args=
19163: ac_prev=
1.10 ! moko 19164: eval "set x $ac_configure_args"
! 19165: shift
! 19166: for ac_arg
! 19167: do
1.1 misha 19168: if test -n "$ac_prev"; then
19169: ac_prev=
19170: continue
19171: fi
19172: case $ac_arg in
19173: -cache-file | --cache-file | --cache-fil | --cache-fi \
19174: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19175: ac_prev=cache_file ;;
19176: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19177: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19178: | --c=*)
19179: ;;
19180: --config-cache | -C)
19181: ;;
19182: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19183: ac_prev=srcdir ;;
19184: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19185: ;;
19186: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19187: ac_prev=prefix ;;
19188: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19189: ;;
1.10 ! moko 19190: --disable-option-checking)
! 19191: ;;
! 19192: *)
! 19193: case $ac_arg in
! 19194: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 19195: esac
! 19196: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 misha 19197: esac
19198: done
19199:
19200: # Always prepend --prefix to ensure using the same prefix
19201: # in subdir configurations.
1.10 ! moko 19202: ac_arg="--prefix=$prefix"
! 19203: case $ac_arg in
! 19204: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 19205: esac
! 19206: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
! 19207:
! 19208: # Pass --silent
! 19209: if test "$silent" = yes; then
! 19210: ac_sub_configure_args="--silent $ac_sub_configure_args"
! 19211: fi
! 19212:
! 19213: # Always prepend --disable-option-checking to silence warnings, since
! 19214: # different subdirs can have different --enable and --with options.
! 19215: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.1 misha 19216:
19217: ac_popdir=`pwd`
19218: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19219:
19220: # Do not complain, so a configure script can configure whichever
19221: # parts of a large source tree are present.
1.10 ! moko 19222: test -d "$srcdir/$ac_dir" || continue
1.1 misha 19223:
1.10 ! moko 19224: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
! 19225: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
! 19226: $as_echo "$ac_msg" >&6
! 19227: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 misha 19228: ac_builddir=.
19229:
1.10 ! moko 19230: case "$ac_dir" in
! 19231: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 19232: *)
! 19233: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
! 19234: # A ".." for each directory in $ac_dir_suffix.
! 19235: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
! 19236: case $ac_top_builddir_sub in
! 19237: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
! 19238: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
! 19239: esac ;;
! 19240: esac
! 19241: ac_abs_top_builddir=$ac_pwd
! 19242: ac_abs_builddir=$ac_pwd$ac_dir_suffix
! 19243: # for backward compatibility:
! 19244: ac_top_builddir=$ac_top_build_prefix
1.1 misha 19245:
19246: case $srcdir in
1.10 ! moko 19247: .) # We are building in place.
1.1 misha 19248: ac_srcdir=.
1.10 ! moko 19249: ac_top_srcdir=$ac_top_builddir_sub
! 19250: ac_abs_top_srcdir=$ac_pwd ;;
! 19251: [\\/]* | ?:[\\/]* ) # Absolute name.
1.1 misha 19252: ac_srcdir=$srcdir$ac_dir_suffix;
1.10 ! moko 19253: ac_top_srcdir=$srcdir
! 19254: ac_abs_top_srcdir=$srcdir ;;
! 19255: *) # Relative name.
! 19256: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
! 19257: ac_top_srcdir=$ac_top_build_prefix$srcdir
! 19258: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.1 misha 19259: esac
1.10 ! moko 19260: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 misha 19261:
19262:
1.10 ! moko 19263: cd "$ac_dir"
1.1 misha 19264:
19265: # Check for guested configure; otherwise get Cygnus style configure.
1.10 ! moko 19266: if test -f "$ac_srcdir/configure.gnu"; then
! 19267: ac_sub_configure=$ac_srcdir/configure.gnu
! 19268: elif test -f "$ac_srcdir/configure"; then
! 19269: ac_sub_configure=$ac_srcdir/configure
! 19270: elif test -f "$ac_srcdir/configure.in"; then
! 19271: # This should be Cygnus configure.
! 19272: ac_sub_configure=$ac_aux_dir/configure
1.1 misha 19273: else
1.10 ! moko 19274: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
! 19275: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 misha 19276: ac_sub_configure=
19277: fi
19278:
19279: # The recursion is here.
19280: if test -n "$ac_sub_configure"; then
19281: # Make the cache file name correct relative to the subdirectory.
19282: case $cache_file in
19283: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.10 ! moko 19284: *) # Relative name.
! 19285: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 misha 19286: esac
19287:
1.10 ! moko 19288: { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
! 19289: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 misha 19290: # The eval makes quoting arguments work.
1.10 ! moko 19291: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
! 19292: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
! 19293: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 misha 19294: fi
19295:
1.10 ! moko 19296: cd "$ac_popdir"
1.1 misha 19297: done
19298: fi
1.10 ! moko 19299: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
! 19300: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 19301: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
! 19302: fi
1.1 misha 19303:
E-mail: